PageSourceSearch

https://www.optumhealthslco.com/etc.clientlibs/dmp/clientlibs/clie…-39830a4d25aeabc07b5e88faa39cd14d-lc.min.js

js optumhealthslco.com collected 2026-10-06 10:14:28 UTC 727,175 bytes, 6 lines download raw bytes

1function o5_analyticsAccordionTrack(a,n,c,e){a=a.replace(/[\n\r   ]+/g," ");try{adobeDataLayer.push({event:"link track",link:{name:a,location:n,type:c,destinationUrl:e}})}catch(a){console.error(a)}}
2var bankHost=["bank.optum.com","optumbank.com"];document.addEventListener("DOMContentLoaded",function(){var e=window.location.href,t=["business.optum.com"];if(e.includes(t)&&(setTimeout(function(){let e=document.querySelector(".dmp-col button.js-uie-filter-tray-apply-btn");e&&e.addEventListener("click",function(){let e=document.querySelector(".o5-hubs-m-header__heading span"),t=e?e.textContent.replace(/[()]/g,"").trim():"";adobeDataLayer.push({event:"impression track",impression:{type:"",message:t}});let o=document.querySelectorAll(".is--checked"),n=Array.from(o).map(function(e){let t=e.closest(".ui-b-form-checkbox__label")?e.closest(".ui-b-form-checkbox__label").parentElement:e.parentElement,o=t?t.querySelector(".ui-b-form-checkbox__label"):null;return(o?o.textContent:"").replace(/\s+/g," ").trim()}).filter(Boolean).join(" | "),r=this.closest(".o5-hubs"),a=r?r.getAttribute("id"):"",i=document.querySelector(".uie-pills__inner"),l=(i?i.textContent:"").replace(/[\r?\n|\r /]+/g," ");adobeDataLayer.push({event:"search filter",search:{term:l,type:"site",filters:n,customAttributes:{}},component:{name:a,customAttributes:{}}})})},3e3),document.addEventListener("click",function(e){let t=e.target.closest(".o5-link-button--button-action-form, .show-model");if(t){o5_analyticsModalTrack(this,linkTextCheck(this,t.textContent.trim().toLowerCase()))}})),document.addEventListener("click",function(e){let t=e.target.closest(".breadcrumb__home");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("lpos")?t.getAttribute("lpos").replace(/\s+/g,""):"",n=t.getAttribute("href")||void 0;o5_analyticsLinkTrack(e,o,getLinkType(n),n)}}),bankHost.some(t=>e.includes(t))){document.addEventListener("click",function(e){let t=e.target.closest("#ues-mini-serp-search-input");if(t&&t){let e="";o5_analyticsLinkTrack("search initiated","search results",getLinkType(e),e)}}),document.addEventListener("click",function(e){if(e.target.closest("#ues-mini-serp-clear-button")){let e="";o5_analyticsLinkTrack("close","search results",getLinkType(e),e)}},!0),document.addEventListener("click",function(e){const t=e.target.closest("#ues-mini-serp-pagination-next, #ues-mini-serp-pagination-prev");if(t){let e="";o5_analyticsLinkTrack("ues-mini-serp-pagination-next"===t.id?"next":"previous","search results",getLinkType(e),e)}},!0),document.addEventListener("click",function(e){let t=e.target.closest(".o5-mobile-alert-content a.o5-mobile-alert-view-link, button.o5-mobile-alert-close-btn");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase());"×"===e&&(e="x close");let o="optum bank mobile app download banner",n=t.getAttribute("href")||"";o5_analyticsDownloadLinkTrack(e,o,getLinkType(n),n)}},!0);let e=document.querySelector(".o5-mobile-alert-container");if(!e)return;e&&"block"===window.getComputedStyle(e).display&&adobeDataLayer.push({event:"subpage track",subpage:{contentSection:"optum bank mobile app download banner"}})}document.addEventListener("click",function(e){let t=e.target.closest(".o5-site-toggle__link");if(t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href")||"";o5_analyticsLinkTrack(e,"header",getLinkType(o),o)}}),document.addEventListener("click",function(e){const t=document.querySelector("#ues-search-component");if(!(t?.getAttribute("data-prop-model")||"").includes('"appName":"optumbusiness"'))return;const o=e.target.closest("#ues-search-thumbnail");if(o){const e=o.textContent.trim().toLowerCase();return void adobeDataLayer.push({event:"modal track",modal:{name:e,customAttributes:{}},component:{name:"unified search",customAttributes:{}}})}const n=e.target.closest("#ues-drawer-search-input");if(n){const t=(n.getAttribute("placeholder")||"").trim().toLowerCase().replace(/\?/g,"");let o="";return e.target.closest("a")&&(o=e.target.closest("a").getAttribute("href")),void adobeDataLayer.push({event:"link track",link:{name:"search box text field initiated",location:"search modal: "+t,type:getLinkType(o),destinationUrl:o,customAttributes:{}},component:{name:"unified search",customAttributes:{}}})}const r=e.target.closest("a");if(!r)return;const a=r.closest("section");if(!a)return;const i=a.querySelector("h2");if(!i)return;const l=i.textContent.trim().toLowerCase();if("helpful links"!==l)return;const s=r.textContent.trim().toLowerCase(),c=r.getAttribute("href")||"";adobeDataLayer.push({event:"link track",link:{name:s,location:"search modal: "+l,type:getLinkType(c),destinationUrl:c,customAttributes:{}},component:{name:"unified search",customAttributes:{}}})}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-reveal-mega-nav__level1Dropdown"),o=e.target.closest(".o5-reveal-mega-nav__level2Dropdown");
2if(!t&&!o)return;let n="",r="",a="";if("A"===e.tagName&&(a=e.getAttribute("href")),a=a||"",t){let e=t.querySelector(".o5-reveal-mega-nav__labelText");if(n=linkTextCheck(this,e?e.textContent.trim().toLowerCase():""),"no text"==n){let e=t.querySelector(".o5-reveal-mega-nav__labelTextLink");n=linkTextCheck(this,e?e.textContent.trim().toLowerCase():"")}let o=document.querySelector('.o5-reveal-mega-nav__mainMenuButton[aria-expanded="true"]');if(o)r="menu: "+o.textContent.trim().toLowerCase().replace(/\s*\n.*/,"");else{let e=t.closest(".o5-reveal-mega-nav__mobileHeader"),o=e?e.querySelector(".o5-reveal-mega-nav__activeMenuLabel"):null;r="menu: "+(o?o.textContent.trim().toLowerCase():"")}}else if(o){n=linkTextCheck(this,o.textContent.trim().toLowerCase());let e=document.querySelector('.o5-reveal-mega-nav__level1Dropdown[aria-expanded="true"]'),t=e?e.querySelector("span"):null,a=t?t.textContent.trim().toLowerCase():"";if(a)r="menu: "+a.trim().toLowerCase().replace(/\s*\n.*/,"");else{let e=o.closest(".o5-reveal-mega-nav__level2"),t=e?e.querySelector(".o5-reveal-mega-nav__level2LabelEyebrow"):"";r="menu: "+(t?t.textContent:"").trim().toLowerCase()}}o5_analyticsLinkTrack(n,r,getLinkType(a),a)}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-reveal-mega-nav__level3Label");if(t&&t){let e=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),o=t.getAttribute("a"),n=t.getAttribute("href")||(o?o.getAttribute("href"):""),r="",a=document.querySelector('.o5-reveal-mega-nav__level2Dropdown[aria-expanded="true"]');if(a&&a.textContent){r="menu: "+a.textContent.trim().toLowerCase().trim().replace(/\s*\n.*/,"")}else{let e=t.closest(".o5-reveal-mega-nav__level3"),o=e?e.querySelector(".o5-reveal-mega-nav__level3LabelEyebrow"):null;r="menu: "+(o?o.textContent.trim().toLowerCase():"")}o5_analyticsLinkTrack(e,r,getLinkType(n),n)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-reveal-mega-nav__mainMenuButton");if(!t)return;if(t){let e=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),o=t.getAttribute("href")||(t.querySelector("a")?t.querySelector("a").getAttribute("href"):"")||"";e=e.replace(/\s*\n.*/,"");let n=t.getAttribute("aria-expanded"),r="";"true"===n?r="menu closed: ":"false"===n&&(r="menu opened: "),e=r+e;o5_analyticsLinkTrack(e,"header",getLinkType(o),o)}let o=e.target.closest(".o5-reveal-mega-nav__labelTextLinkTag");if(o&&o){let e=linkTextCheck(this,o.textContent?o.textContent.trim().toLowerCase():""),t=o.getAttribute("href")||"";e=e.replace(/\s*\n.*/,"");o5_analyticsLinkTrack(e,"header",linkType,t)}});var o=window.location.href;o5_lposHeader(),o5_lposFooter(),document.querySelectorAll(".back-to-top").forEach(e=>{e.setAttribute("lpos","back to top")}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-utility__btn, .o5-utility__pbtn, .o5-reveal-mega-nav__mainMenuButton");if(t&&!t.classList.contains("o5-mega-nav--item-link--standalone")&&!t.classList.contains("o5-mega-nav__btn-loaded")){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href")||void 0,n="header: "+e;e=e.replace(/\s*\n.*/,"");let r=t.getAttribute("aria-expanded"),a="";"true"===r?a="menu opened: ":"false"===r&&(a="menu closed: "),e=a+e,t.className.includes("o5-utility")||(n="header"),o5_analyticsLinkTrack(e,n,getLinkType(o),o)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-mega-nav--item-link--standalone");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href")||void 0,n="header",r=getLinkType(o);void 0===o&&(o=""),o5_analyticsLinkTrack(e,n,r,o)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-mega-nav-menu-items--list-item-link, .o5-mega-nav-card__action-link");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href")||void 0,n=t.getAttribute("lpos")?t.getAttribute("lpos").toLowerCase():"",r=document.querySelector('.o5-mega-nav--item[aria-expanded="true"] > .o5-mega-nav--item-link'),a=r?r.textContent.trim().toLowerCase():"";a&&(n="menu: "+a.replace(/\s*\n.*/,""));let i=getLinkType(o);void 0===o&&(o=""),o5_analyticsLinkTrack(e,n,i,o)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-mega-nav-card__description a");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href"),n=t.getAttribute("lpos")?t.getAttribute("lpos"):"";if(!e||"no text"===e){let o=t.querySelector("img.text-component__badge");o&&(e=o.getAttribute("alt"))}let r=document.querySelector('.o5-mega-nav--item[aria-expanded="true"]');if(r){let e=r.querySelector(".o5-mega-nav--item-link");if(e){n="menu: "+e.textContent.trim().toLowerCase().replace(/\s*\n.*/,"")}}o5_analyticsLinkTrack(e,n,getLinkType(o),o)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-nav__sublink,.o5-nav__link,.o5-l2-nav__sublink,.o5-l2-nav__link, .o5-utility__dmp-btn");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href");
2o5_analyticsLinkTrack(e,t.getAttribute("lpos")?t.getAttribute("lpos").toLowerCase():"",getLinkType(o),o)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-l2-nav__btn a, .o5-l2-nav__button a");if(t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href")?t.getAttribute("href").toLowerCase():"";o5_analyticsLinkTrack(e,t.getAttribute("lpos")?t.getAttribute("lpos").toLowerCase():"",getLinkType(o),o)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-utility__sublink,.o5-utility__link,.o5-dynamic-alerts__link,.o5-dynamic-alerts__close,.o5-utility__btnitem button.show-popUpModel");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href")||"",n=(t.getAttribute("lpos")||"header").toLowerCase();void 0!==n&&(n=n.toLowerCase());let r=t.className||"";null!=n&&""!==n.trim()&&(-1!=r.indexOf("o5-utility")?n.startsWith("header:")?n=n.replace("header:","header menu: "):-1!=r.indexOf("o5-utility__link")&&(n="header: "+e):-1!=n.indexOf("header")&&(n="header")),-1!=r.indexOf("o5-dynamic-alerts")&&(n="dynamic alert"),-1!=window.location.pathname.indexOf("/get-started.html")&&("sign-in for optum rx members"!==e&&"sign in"!==e&&"create an account"!==e||(n="nav")),o5_analyticsLinkTrack(e,n,getLinkType(o),o)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-logo__link");if(t){let e="home logo",o=t.getAttribute("href")||"";o5_analyticsLinkTrack(e,"logo",getLinkType(o),o)}}),o5_footerAnalytics(),document.addEventListener("mouseup",function(e){let t=e.target.closest(".js-state-submit");if(t&&t){let e=document.querySelector(".js-uib-customselect-selected-value"),t=linkTextCheck(this,e&&e.textContent?e.textContent.trim().toLowerCase():""),o=document.querySelector(".uib-customselect option:checked")?document.querySelector(".uib-customselect option:checked").value:"",n="";if(e){let t=e.closest(":has(h1, h2, h3)")||e.parentElement;if(t){let e=t.querySelector("h1, h2, h3");n=e?e.textContent.trim().toLowerCase():""}}let r="";try{r=new URL(o).hostname}catch(e){}r!==window.location.hostname&&o5_analyticsLinkTrack(t,n,"exit",o)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-serp__tabSection .o5-search-form__btn");if(t&&t){let e="no value for text",o=t.getAttribute("name")||"",n=t.closest(".o5-search-form");e=n.querySelector("input")?n.querySelector("input").value.toLowerCase():"";let r=0;setTimeout(function(){let t=document.querySelector(".o5-serp-tabs__tab");if(t&&void 0!==t.textContent){let e=t.textContent.match(/[\d\.]+/g);e&&(r=e[0],"locations"===o&&e[1]&&(r=e[1]))}let n=[];window.location.search&&n.push(window.location.search.replace(/^\?/,"").split("&")),setO5ProviderSearchResultsAnalyticsTracking(e,r,o,n)},3e3)}});const n=document.getElementById("main-content");if(n&&n.addEventListener("click",function(e){let t=e.target.closest("a");if(!t)return;let o=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),n=t.getAttribute("href")||"";n.startsWith("#")&&(n=window.location.href+n);let r=t.getAttribute("lpos")?t.getAttribute("lpos").toLowerCase():"";if(r=r.replaceAll("main content : ",""),"no text"===o||""===o){const e=t.querySelector("img");e&&(o=e.getAttribute("alt")?e.getAttribute("alt").trim().toLowerCase():"")}if(window.location.pathname.includes("/get-started.html")){(t.closest("div")?t.closest("div").getAttribute("class"):"").includes("hero")&&(r="hero")}r.includes("hubs :")||o5_analyticsLinkTrack(o,r,getLinkType(n),n)}),document.addEventListener("click",function(e){let t=e.target.closest(".ui-b-form-checkbox");if(!t)return;const o=[];t&&(document.querySelectorAll(".ui-b-form-checkbox").forEach(function(e){if("true"===e.getAttribute("aria-checked")){const t=e.getAttribute("data-ui-label");t&&o.push(t.toLowerCase())}}),o5_analyticsFilterTrack(o))}),-1!=window.location.pathname.indexOf("/get-started.html"))document.addEventListener("click",function(e){let t=e.target.closest("#main-content button");if(t){let e=o5_getNearestHeadingInfo(t.parentElement)+" - ",o=linkTextCheck(this,t.textContent?t.textContent.trim().toLocaleLowerCase():""),n="",r=o5_getNearestHeadingInfo(t),a=t.getAttribute("class");null==a&&(a="no class"),r=r.replaceAll("main content : ","");let i=o5_getNearestHeadingElement(t);i&&-1!==i.className.indexOf("video__transcript-title")&&(e=t.parentElement.closest(".o5-mixed-row__card")+" - "),i&&-1!==i.className.indexOf("video__transcript-title")&&(r=o5_getNearestHeadingInfo(t.closest(".o5-mixed-card-complex"))),t.parentElement&&-1!==t.parentElement.className.indexOf("o5-mixed-card")&&(r=o5_getNearestHeadingInfo(t.closest(".o5-mixed-row__container")));let l=window.location.href;return n.startsWith("#")&&(n=l+n),"play_arrow"===o&&(o=e+"play video"),"watch video"===o&&(o=e+"watch video"),void(-1===r.indexOf("hubs :")&&-1===a.indexOf("vjs-control")&&-1===a.indexOf("vjs-button")&&o5_analyticsLinkTrack(o,r,getLinkType(n),n))}if(e.target.closest(".o5-50-50-content-block__image")){let e="";o5_analyticsLinkTrack("play video",o5_getNearestHeadingInfo(document.querySelector(".o5-50-50-content-block__container")),getLinkType(e),e)}});else{const n=document.getElementById("main-content");n&&n.addEventListener("click",function(n){const r=n.target.closest("button:not(form button):not(.o5-link-button--button-action-form):not(.o5-mobile-alert--button-action-form):not(.o5-accordion__button):not(.o5-promo-bar__button), .play-icon:not(button .play-icon), .o5-detail-hero-banner__close");if(!r)return;if(r.closest(".o5-contacts-accordion"))return;if(n.target.closest(".o5-calendar-salesforce"))return;let a=n.target.closest(".o5-link-button--dialog");a&&a.previousElementSibling&&a.previousElementSibling.classList.contains("o5-link-button--button-action-form");if(e.includes(t)){let e=n.target.closest("dialog"),t=e?e.querySelector("form"):null,o=t?(t.getAttribute("class")||"").toLowerCase():"",r=a?(a.getAttribute("aria-labelledby")||"").toLowerCase():"";adobeDataLayer.push({event:"link track",link:{name:"close",location:r,type:"internal",destinationUrl:"",customAttributes:{formName:o}}})}else{let r=linkTextCheck(this,n.target.textContent?n.target.textContent.trim().toLowerCase():""),a=n.target.getAttribute("class")||"";"play-icon"===a&&("undefined"!==r&&""!==r&&null!==r||(r="play-arrow")),"o5-detail-hero-banner__close"===a&&(r="close");let i="",l=o5_getNearestHeadingInfo(n.target);if(void 0!==l&&""!==l&&null!==l||(l=r),l=l.replaceAll("main content : ",""),-1!=o.indexOf("labs.optum.com/reports.html")){i=n.target.getAttribute("data-download-href")||"","download"==getLinkType(i)&&o5_analyticsLinkTrack(r,l,getLinkType(i),i)}-1===l.indexOf("hubs :")&&(e.includes(t)&&-1==a.indexOf("o5-link-button--button-action-form")&&-1==a.indexOf("o5-mobile-alert--button-action-form")?o5_anal
2yticsLinkTrack(r,l,"internal",i):e.includes(t)||-1!=a.indexOf("o5-hsac-steps-topper")||o5_analyticsLinkTrack(r,l,"internal",i))}})}var r="forminitaiate_single";if(document.addEventListener("click",function(e){let t=e.target.closest("form input, textarea#comment, form select");if(t&&"o5search"!==t.id&&"forminitaiate_single"===r){let e=t.getAttribute("type"),o=t.getAttribute("name"),n=t.closest("form"),a=n.getAttribute("type"),i=n.getAttribute("name"),l=n.getAttribute("id"),s=n.getAttribute("class"),c=n.classList.contains("hubs-paginator__go-to-page");if(void 0!==a&&""!==a&&null!==a||(a="form"),void 0!==i&&""!==i&&null!==i||(i=void 0!==l&&""!==l&&null!==l?l:void 0!==s&&""!==s&&null!==s?s:"form"),t.closest(".o5-calendar-salesforce")&&(i="event registration form"),t.closest(".o5-hsac__content")&&(i="Health savings account (HSA) calculator"),"search"!==e&&"provider-search__form"!==l&&"search"!==o&&"yxt-SearchBar-form"!==s&&"dpl-search__form"!==s&&"o5-search-form"!==s&&"O5-search-bar__form"!==s&&!c){try{if(adobeDataLayer.push({event:"form started",form:{name:i.trim().toLowerCase()}}),t.closest(".o5-hsac__content")){let e=t.closest(".o5-hsac-question__section"),o=e?e.querySelector(".o5-hsac-question__section-title"):"",n=o?o.textContent.trim().toLowerCase():"";o5_HSAFormStep(i.trim().toLowerCase(),n)}sessionStorage.setItem("formname",i.trim().toLowerCase())}catch(e){}r=""}}}),-1!==window.location.href.indexOf("/search-results.html?")&&document.addEventListener("click",function(e){let t=e.target.closest(".results__link");if(t&&t){let e=window.location.href.split("q="),o="";e[1]&&(o=decodeURIComponent(e[1].toString()).toLowerCase().trim()),searchResultClick(o,"solr search(local)",t.innerText.toLowerCase().trim(),(t.getAttribute("lpos")||"").replace(/(<([^>]+)>)/gi,"").toLowerCase().trim())}}),-1!==o.indexOf("/locations-nav/provider-lookup/provider-search-results.html?")||-1!==o.indexOf("/locations/optum-washington/find-care/search-results.html?")){let e=1,t=1;setTimeout(function(){const o=new URLSearchParams(window.location.search);let n="no value for text";o.has("search")&&(n=o.get("search").toLowerCase());let r=0;const a=document.querySelector(".pluv2-results__info");if(a){const e=a.textContent.trim().toLowerCase().split(" ");r=e[e.length-2]||0}const i=[];window.location.search&&i.push(window.location.search.replaceAll("?","").split("&")),setO5ProviderSearchResultsAnalyticsTracking(n,r,"provider",i);const l=document.getElementById("providers-labelledby");l&&l.addEventListener("click",function(){setTimeout(function(){document.querySelectorAll(".pluv2-team__member").forEach(function(t){t.setAttribute("linkposition",e),e+=1})},5e3)});const s=document.getElementById("locations-labelledby");s&&s.addEventListener("click",function(){setTimeout(function(){document.querySelectorAll(".pluv2-locations__card").forEach(function(e){e.setAttribute("linkposition",t),t+=1})},5e3)})},5e3),setTimeout(function(){document.querySelectorAll(".pluv2-team__member").forEach(function(t){t.setAttribute("linkposition",e),e+=1}),document.querySelectorAll(".pluv2-team__member, .pluv2-locations__card").forEach(function(e){e.addEventListener("click",function(){const e=new URLSearchParams(window.location.search);let t="no value for text";e.has("search")&&(t=e.get("search").toLowerCase());const o=[];window.location.search&&o.push(window.location.search.replaceAll("?","").split("&"));const n=this.querySelector(".pluv2-team__name"),r=n?n.textContent.trim().toLowerCase():"";searchProviderResultClick(t,"provider",r,r,o)})})},5e3),setTimeout(function(){document.querySelectorAll(".js-specialty-filter-field, .pluv2-checkbox, .pluv2-radio").forEach(function(e){e.addEventListener("click",function(){const e=new URLSearchParams(window.location.search);let t="no value for text";e.has("search")&&(t=e.get("search").toLowerCase());const o=[];window.location.search&&o.push(window.location.search.replaceAll("?","").split("&"));const n=this.querySelector(".pluv2-team__name");n&&n.textContent.trim().toLowerCase();searchProviderFilter(t,"provider",o)})})},5e3)}var a=null;function i(){return a||(window.ContextHub&&window.ContextHub.getStore&&(
2a=window.ContextHub.getStore("formstore")),a)}setTimeout(function(){document.addEventListener("click",function(e){let t=e.target.closest("form button");if(t&&t){let e=t.closest("form");if(!e)return;let n=e.getAttribute("name"),r=e.getAttribute("id");if(void 0===n||""===n||null===n){let t=e.getAttribute("class");n=void 0!==r&&""!==r&&null!==r?r:void 0!==t&&""!==t&&null!==t?t:"form"}let a="",l="",s="",c="",u="",d="",m=0;document.querySelectorAll("input:not([type='hidden']):not([type='radio'])").forEach(function(e){s=s+m+":",s=s+(e.getAttribute("name")||"")+"|",d=d+(e.getAttribute("name")||"")+":",d=d+e.value+"|";let t=e.closest(".cmp-adaptiveform-textinput")||e.parentElement,o=t?t.querySelector(".cmp-adaptiveform-textinput__errormessage"):null;o&&o.textContent.trim().length>0?l+=s:u+=d,d="",s="",m++});let f="",h="";document.querySelectorAll(".cmp-adaptiveform-dropdown__widget").forEach(function(e){s=s+m+":",s=s+(e.getAttribute("name")||"")+"|",d=d+(e.getAttribute("name")||"")+":",d=d+e.value+"|";let t=e.closest(".cmp-adaptiveform-dropdown")||e.parentElement,o=t?t.querySelector(".cmp-adaptiveform-dropdown__errormessage"):null;o&&o.textContent.trim().length>0?h+=s:f+=d,d="",s="",m++}
2);let p="",g="",k="",b="";document.querySelectorAll(".radio-vertical").forEach(function(e){let t=e.querySelector("legend"),o=t?t.innerHTML:"";p=p+m+" ",p=p+o+"|",g=g+o+" ";let n=e.querySelector("input[type='radio']:checked"),r="";if(n){let e=n.closest("label"),t=e?e.querySelector("span"):null;t&&(r=t.innerHTML)}g=g+r+"|";let a=e;for(;a&&a!==document.body&&!a.querySelector(".cmp-adaptiveform-radiobutton__errormessage");)a=a.parentElement;let i=a?a.querySelector(".cmp-adaptiveform-radiobutton__errormessage"):null;i&&i.textContent.trim().length>0?b+=p:k+=g,g="",p="",m++}),c=u+f+k,a=l+h+b;let _=i();_&&(_.setItem("errorform_values",a),_.setItem("form_values",c),_.setItem("formName",n));let y=a.length>0?"validation error":"";if(a.length>0){let e="";fetch(o).then(function(t){e=t.ok?"ui error":t.status;let o=i();null!=o&&null!=o&&adobeDataLayer.push({event:"func error",error:{message:y,source:o.getItem("errorform_values"),code:e,subtype:""}})})}}})},2e3),-1===o.indexOf("thank-you.html")&&-1===o.indexOf("thankyou.html")&&-1===o.indexOf("success.html")||function(e,t){t=t||10;var o=0;!function n(){var r=i();r?e(r):o<t&&(o++,setTimeout(n,200))}()}(function(e){adobeDataLayer.push({event:"form complete",form:{name:e.getItem("formName"),userSelections:e.getItem("form_values")}})}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-link-button--button-action-form");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.parentElement.querySelector("dialog"),n=o?o.querySelector("form"):null;return void o5_analyticsFormStep(this,e,n?(n.getAttribute("class")||"").toLowerCase():"")}}),document.addEventListener("click",function(e){let t=e.target.closest("button.mktoButton");if(t&&t){let e=t.closest("form");if(!e)return;let r="",a="",l="",s="",c="",u="",d=0,m=e.getAttribute("class")||"",f=m.split(" ").pop();if(e.getAttribute("class")===m){e.querySelectorAll("."+f+" .mktoField.mktoHasWidth.mktoRequired").forEach(e=>{let t=e.getAttribute("name"),o=e.value||"";s=s+d+":",s=s+t+"|",u=u+t+":",u=u+o+"|",e.classList.contains("mktoValid")||"Phone__ui"===e.id||(c+=s),-1===c.indexOf("Email")&&"Email"===t?-1!==o.indexOf("@")&&-1!==o.indexOf(".")||(c+=s):a+=u,u="",s="",d++})}r=a,l=c;var n=i();n&&(n.setItem("errorform_values",l),n.setItem("form_values",r),n.setItem("formName",m));let h="";if(h=l.length>0?"validation error":"",l.length>0){let e="";fetch(o).then(t=>{e=t.ok?"ui error":t.status,adobeDataLayer.push({event:"func error",error:{message:h,source:l,code:e,subtype:""}})})}else 0===l.length&&adobeDataLayer.push({event:"form complete",form:{name:m,userSelections:r}})}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-marketo-form-container a");if(t&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=t.getAttribute("href")||void 0,n=t.closest(".o5-link-button--dialog-content"),r=n?n.querySelector(".o5-marketo-form__headline"):null;o5_analyticsLinkTrack(e,r?r.textContent.trim().toLowerCase():"",getLinkType(o),o)}}),document.addEventListener("click",function(o){let n=o.target.closest(".o5-link-button--dialog-close");if(n&&n){let o=n.closest(".o5-header__utility-desktop");if(o&&"o5-header__utility-desktop"===o.getAttribute("class")){let o=n.closest(".o5-link-button--dialog"),r=o?o.previousElementSibling:null,a=e.includes(t),i=r&&r.classList.contains("o5-link-button--button-action-form");if(a&&i){let e=n.closest("dialog"),t=e?e.querySelector("form"):null,r=t?(t.getAttribute("class")||"").toLowerCase():"",a=o?(o.getAttribute("aria-labelledby")||"").toLowerCase():"";adobeDataLayer.push({event:"link track",link:{name:"close",location:a,type:"internal",destinationUrl:"",customAttributes:{formName:r}}})}else{let e=n.textContent.trim().toLowerCase();e||(e="close");let t="",o=n.parentElement?n.parentElement.querySelector(".o5-link-button--dialog-content"):null,r=o?o.querySelector(".o5-marketo-form__headline"):null;o5_analyticsLinkTrack(e,r?r.textContent.trim().toLowerCase():"","internal",t)}}}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-tabs__oc-tabs-tab-item");if(t&&t){subPageTrack(t.textContent.replace(/[\r  ]/gm,"").replace(/[\r\n]/gm," ").trim().toLowerCase())}}),hubsTracking(),setTimeout(function(){document.addEventListener("click",function(e){let t=e.target.closest(".
2js-zui-b-filter-apply-btn, .js-zui-b-filter-clear-btn, .zui-c-pills__clear, .zui-c-pagination__menu-btn, .zui-c-pagination__btn");t&&t&&hubsTracking()}),document.addEventListener("change",function(e){e.target.closest(".js-ResultPerPage-pagi-btn")&&hubsTracking()})},5e3),document.addEventListener("click",function(e){let t=e.target.closest("button.o5-site-toggle__lang-item-btn, .flatpickr-next-month, .flatpickr-prev-month");if(t&&t){let e="language preference",o="header: language preference widget";(t.classList.contains("flatpickr-next-month")||t.classList.contains("flatpickr-prev-month"))&&(e=t.getAttribute("aria-label")?t.getAttribute("aria-label").trim().toLowerCase():"",o="event calendar");let n=t.getAttribute("aria-expanded"),r="accordion close";r=null===n?"internal":"true"===n?"accordion open":"accordion close",o5siteToggleLinkTrack(e,o,r,"")}}),document.addEventListener("click",function(e){let t=e.target.closest("li.o5-site-toggle__lang-eng");if(t&&t){let e="preferred language",o="header: language preference widget",n="accordion close";n="true"===t.getAttribute("aria-expanded")?"accordion open":"accordion close";let r=t.querySelector("a"),a="";r&&(a=r.getAttribute("lang")||""),o5siteToggleLinkTrack(e,o,n,a)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-legal-banner-container__body a, button.o5-legal-banner-container__close");if(t){let e=t.closest(".o5-legal-banner-container__close")?"x close":t.textContent.toLowerCase().replace(".",""),o=t.getAttribute("href")||"",n=getLinkType(o);"exit"===n&&(n="external"),o5_analyticsLinkTrack(e,"banner pixel legal consent for data use",n,o)}}),document.addEventListener("click",function(e){const t=e.target.closest(".o5-calendar-salesforce");if(t&&t){let t=e.target.closest("a");if(t&&(t.textContent.includes("Terms of Use")||t.textContent.includes("Website Privacy Policy"))){let e=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),o=t.closest(".calendar-sf-registration__group"),n="";if(o){let e=o.querySelector(".calendar-sf-registration__group-heading");n=e?e.textContent.trim().toLowerCase():""}n="event registration form: "+n;let r,a=t.getAttribute("href");null==a?(a="",r="internal"):r=getLinkType(a),o5_calendarSalesforceLinkTrack(e,n,r,"",a)}}}),document.addEventListener("click",function(e){let t=e.target.closest(".calendar-sf-results__topic, .calendar-sf-event-sharebar__back-btn, .calendar-sf-event__add-calendar-button, #location-apply-btn, .js-sharebar-save, .js-sharebar-print, .js-sharebar-mail, #location-clear-btn, .calendar-sf-event-sharebar__menu-link, .calendar-sf-event__address, .calendar-sf-event__pills-button, .calendar-sf-registration__checkbox, button.calendar-sf-registration__submit-btn, .calendar-sf-filter-tray__filters, .calendar-sf-event-sharebar__share-btn");const o=e.target.closest(".o5-calendar-salesforce");if(t&&o){let e="",o="event detail page",n="internal",r="",a="",i=window.location.href;if(t.classList.contains("calendar-sf-event-sharebar__back-btn")){let o=t.querySelector(".o5-cal-share-title");e=linkTextCheck(this,o?o.textContent.trim().toLowerCase():"")}if(t.classList.contains("calendar-sf-event__add-calendar-button")){e=linkTextCheck(this,t.textContent?t.textContent.replace("calendar_add_on","").trim().toLowerCase():"");let o=t.closest("a");r=o?o.getAttribute("href"):""}if(t.classList.contains("calendar-sf-results__topic")){e=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),o="event list panel";let n=t.closest("a");r=n?n.getAttribute("href"):null,null!=r&&r.startsWith("#")&&(r=i)}if(t.classList.contains("js-sharebar-save")&&(e=linkTextCheck(this,t.textContent?t.textContent.replace("download_for_offline","").trim().toLowerCase():""),r=t.closest("a")?t.closest("a").getAttribute("href"):""),t.classList.contains("js-sharebar-print")&&(e=linkTextCheck(this,t.textContent?t.textContent.replace("print","").trim().toLowerCase():""),r=t.closest("a")?t.closest("a").getAttribute("href"):""),t.classList.contains("js-sharebar-mail")&&(e=linkTextCheck(this,t.textContent?t.textContent.replace("mail","").trim().toLowerCase():""),n="email",r=t.closest("a")?t.closest("a").getAttribute("href"):""),t.classList.contains("calendar-sf-event-sharebar__menu-link")){let o=t.querySelector(".o5-cal-share-title");e=linkTextCheck(this,o?o.textContent.trim().toLowerCase():""),e="share: "+e;let r=t.closest(".calendar-sf-event-sharebar__mobile"),a=r?r.querySelector(".calendar-sf-event-sharebar__share-btn"):null,i=a?a.getAttribute("aria-expanded"):null,l="accordion close";
2null!=i&&(l="true"===i?"accordion open":"accordion close"),n=l;t.closest("a")&&t.closest("a").getAttribute("href")}if(t.classList.contains("calendar-sf-event__address")){r=t.querySelector("a")?t.querySelector("a").getAttribute("href"):"";let o=document.querySelector(".calendar-sf-event__location > div:first-of-type"),a="";o&&o.textContent&&(a=o.textContent.replace("location_on","").trim().toLowerCase()),e="event detail:location info:{"+a+"}",n=getLinkType(r)}if(t.classList.contains("calendar-sf-event__pills-button")&&(e=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),e="event detail:category tags:{"+e+"}",r=t.closest("a")?t.closest("a").getAttribute("href"):""),t.classList.contains("calendar-sf-registration__checkbox")){let n=t.querySelector("label"),a="";if(n){let e=n.cloneNode(!0),t=e.querySelector("i");t&&t.remove(),a=e.textContent.trim().toLowerCase()}e=linkTextCheck(this,a),o="event registration form: terms & conditions",r=t.closest("a")?t.closest("a").getAttribute("href"):""}if("location-apply-btn"!==t.id&&"location-clear-btn"!==t.id||(e=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),o="filter by",r=t.closest("a")?t.closest("a").getAttribute("href"):""),void 0===r)r="";else{if(t.classList.contains("calendar-sf-registration__submit-btn")){let i=t.closest(".calendar-sf-registration__form");if(!i)return;let l=i.querySelectorAll(".is--invalid");return e=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),o="event registration form",r=t.closest("a")?t.closest("a").getAttribute("href"):null,null===r?(r="",n="internal"):n=getLinkType(r),a="",void(l.length>0?adobeDataLayer.push({event:"func error",error:{message:"site error message"}}):(o5_calendarSalesforceLinkTrack(e,o,n,a,r),adobeDataLayer.push({event:"form complete",form:{name:"event registration form"}})))}if(t.classList.contains("calendar-sf-filter-tray__filters")||t.classList.contains("calendar-sf-event-sharebar__share-btn")){if(t.classList.contains("calendar-sf-filter-tray__filters")&&(e=linkTextCheck(this,t.textContent?t.textContent.trim().toLowerCase():""),o="filter by"),t.classList.contains("calendar-sf-event-sharebar__share-btn")){let n=t.querySelector(".o5-cal-share-title");if(!n)return;n&&(e=linkTextCheck(this,n.textContent?n.textContent.trim().toLowerCase():"")),o="event detail page",r=t.closest("a")?t.closest("a").getAttribute("href"):null,null===r&&(r="")}let n="accordion close";return n="true"===t.getAttribute("aria-expanded")?"accordion open":"accordion close",void o5siteToggleLinkTrack(e,o,n,"")}}o5_calendarSalesforceLinkTrack(e,o,n,a,r)}}),document.addEventListener("click",function(e){if(e.target.closest(".o5-calendar-salesforce")){if(e.target.closest(".address-link")){let t=linkTextCheck(this,e.target?e.target.textContent.trim().toLowerCase():""),o="event list panel",n=e.target?e.target.getAttribute("href"):null;null==n?(n="",linktype="internal"):linktype=getLinkType(n),o5_calendarSalesforceLinkTrack(t,o,linktype,"",n)}}},!0),document.addEventListener("change",function(e){if("function"!=typeof e.target.matches||!e.target.matches("input[type='checkbox']"))return;let t=e.target.closest(".calendar-sf-filter-tray__category");if(!t)return;let o="";if(t){let n=t.previousElementSibling;if(n&&n.classList.contains("calendar-sf-filter-tray__filters")){let e=n.querySelector("span");e&&(o=e.textContent.trim().toLowerCase()+" checkboxes")}let r=t.querySelectorAll('input[type="checkbox"]:checked'),a=[];r.forEach(function(e){let t=e.parentElement;for(;t&&!t.querySelector(".calendar-sf-filter-tray__checkbox-label");)t=t.parentElement;if(t){let e=t.querySelector(".calendar-sf-filter-tray__checkbox-label");e&&a.push(e.textContent.replace(/\s+/g,"").trim())}});let i=a.join("|"),l="filter by",s="internal",c="";e.target.closest(".o5-calendar-salesforce")&&o5_calendarSalesforceLinkTrack(o,l,s,i,c)}})}),document.addEventListener("click",function(e){let t=e.target.closest("button.o5-site-toggle__btn--location");if(t&&t){let e="accordion close";e="true"===t.getAttribute("aria-expanded")?"accordion open":"accordion close";let o=document.querySelector("span.o5-site-toggle__LocText");setLocationLinkTrack(e,o?o.innerText:"")}}),document.addEventListener("click",function(e){let t=e.target.closest("button.o5-site-toggle__location-btn, button.o5-site-toggle__location-link");if(t&&t){let e=document.querySelector(".o5-site-toggle__location-error");
2if(e){locationFuncError(e?e.innerText:"")}else{let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=" header: Location Widget",n=document.querySelector("span.o5-site-toggle__LocText");o5_addLocationLinkTrack(e,o,n?n.innerText:"")}}}),document.addEventListener("click",function(e){let t=e.target.closest(".pluv2-tabs__label");if(t&&t){o5_analyticsLinkTrack(linkTextCheck(this,t.textContent.trim().replace(/ *\([^)]*\) */g,"").toLowerCase()),"body nav","internal","")}});var headerLastMegaNavTrigger="";document.addEventListener("click",function(e){let t=e.target.closest(".o5-mega-nav__btn-loaded");if(t&&t){if(!(e.target.classList.contains("o5-mega-nav-menu-items--list-item-link")||e.target.closest(".o5-mega-nav-menu-items--list-item-link"))&&!t.classList.contains("o5-mega-nav--item-link--standalone")){let e=t.querySelector(".o5-utility__txt"),o=t.querySelector(".o5-mega-nav--item-link"),n="";e?n=e.textContent:o&&(n=o.textContent);let r=linkTextCheck(this,n.trim().toLowerCase()),a=t.getAttribute("href")||"";r=r.replace(/\s*\n.*/,""),headerLastMegaNavTrigger=r;let i=t.getAttribute("aria-expanded"),l="";"true"===i?l="menu opened: ":"false"===i&&(l="menu closed: "),r=l+r,o5_analyticsLinkTrack(r,"header",getLinkType(a),a)}}}),document.addEventListener("click",function(e){let t=e.target.closest("button.o5-mega-nav--back-button");if(t&&t){let e="menu closed: "+headerLastMegaNavTrigger,o="header",n=t.getAttribute("href")||"";o5_analyticsLinkTrack(e,o,getLinkType(n),n)}}),document.addEventListener("click",function(e){let t=e.target.closest(".o5-hsac-frame-button__cta-section-btn, .o5-hsac-question__subtext, .o5-hsac-steps-topper__btn, .o5-hsac-bluecard__link, .o5-hsac-steps-topper__header-container button"),o=e.target.closest(".o5-hsac__content");if(o&&t&&o&&t){let e="",o="",n="",r="",a="",i="",l="";if(t.classList.contains("o5-hsac-frame-button__cta-section-btn")){let o=t.closest(".o5-hsac-question__section");if(l=o?o.querySelector(".o5-hsac-question__section-title"):null,n=l?l.textContent.trim().toLowerCase():"",e=linkTextCheck(this,t.textContent.trim().toLowerCase()),i=t.getAttribute("href")||"",o){let e=[];
2if(o.querySelectorAll('[id^="error-msg-"]').forEach(function(t){null!==t.offsetParent&&e.push(t)}),e.length>0)return void adobeDataLayer.push({event:"func error",link:{message:" site error message"}})}"calculate future value"===e.toLowerCase()&&adobeDataLayer.push({event:"form complete",form:{name:"health savings account (hsa) calculator"}})}if(t.classList.contains("o5-hsac-question__subtext")){let e=t.querySelector("a");o=linkTextCheck(this,e?e.textContent.trim().toLowerCase():"");let n=null,l=t.parentElement;for(;l&&l!=document.body;){let e=l.querySelector("h1, h2, h3");if(e){n=e;break}l=l.parentElement}return r=n?n.textContent.trim().toLowerCase():"",i=e?e.getAttribute("href"):"",a=getLinkType(i),void o5_analyticsDownloadLinkTrack(o,r,a,i)}if(t.classList.contains("o5-hsac-steps-topper__btn")){let o=t.closest(".o5-hsac-steps-topper");l=o?o.querySelector(".o5-hsac-steps-topper__header"):null,n=l?l.textContent.trim().toLowerCase():"",e=linkTextCheck(this,t.textContent.trim().toLowerCase()),i=t.getAttribute("href")?t.getAttribute("href").trim().toLowerCase():""}if(t.classList.contains("o5-hsac-bluecard__link")){let o=null,r=t.parentElement;for(;r&&r!==document.body;){let e=r.querySelector("h1, h2, h3");if(e){o=e;break}r=r.parentElement}n=o?o.textContent.trim().toLowerCase():"",e=linkTextCheck(this,t.textContent.trim().toLowerCase()),i=t.getAttribute("href")||""}if("function"==typeof t.matches&&t.matches(".o5-hsac-steps-topper__header-container button")){let o=t.childNodes[0];e=linkTextCheck(this,o?(o.textContent||"").trim().toLowerCase():""),i=t.getAttribute("href")||"";let r=null,a=t.parentElement;for(;a&&a!==document.body;){let e=a.querySelector("h1, h2, h3");if(e){r=e;break}a=a.parentElement}n=r?r.textContent.trim().toLowerCase():"",setTimeout(function(){let e=document.querySelector("#o5-hsac-downloadDialog__modelTopDescription"),t=e?e.childNodes[0]:null;o5_analyticsModalTrack(this,linkTextCheck(this,t?(t.textContent||"").trim().toLowerCase():""))},500)}o5_analyticsLinkTrack(e,n,getLinkType(i),i)}});var hsaStepTracked={};function o5_analyticsDownloadLinkTrack(e,t,o,n){adobeDataLayer.push({event:"link track",link:{name:e,location:t,type:o,destinationUrl:n}})}function o5_HSAFormStep(e,t){try{adobeDataLayer.push({event:"form step",form:{step:t,name:e}})}catch(e){console.error(e)}}function o5_analyticsHeaderNavExpand(e){try{adobeDataLayer.push({event:"link track",link:{name:e.toLowerCase(),location:"header nav",type:"internal",destinationUrl:""}})}catch(e){console.error(e)}}function o5_analyticsLinkTrack(e,t,o,n){t=t.replaceAll("hubs : ","");try{if("download"===o){var r=n.split("/"),a=r[r.length-1];a=(a=(a=a.indexOf("{")>=0||a.indexOf("%7b")>=0?(a=a.replace(/{(.*)}/,"").toLowerCase()).replace(/%7b(.*)%7d/,"").toLowerCase():a.toLowerCase()).replace("#","").toLowerCase()).replace(/{(.*)}/,"").toLowerCase(),adobeDataLayer.push({event:"download",download:{fileName:a},link:{name:e,location:t,type:o,destinationUrl:n}})}else if("phone"===o){e="1-888-346-6037"===e||"1-877-927-8363"===e?t+" call":"Customer Service Call",adobeDataLayer.push({event:"link track",link:{name:e,location:t,type:o,destinationUrl:""}})}else null==n||""===n||-1===n.indexOf("#")||"dev-helix.optum.com"!==window.location.hostname&&"stg-helix.optum.com"!==window.location.hostname&&"www.optum.ai"!==window.location.hostname||(adobeDataLayer.push({event:"viewStart",target:{targetBusinessUnit:"optum",count:"true",targetLanguage:"en",viewName:document.title+":"+e,targetPageName:document.title+":"+e,targetWebsite:window.location.hostname}}),adobeDataLayer.push({event:"page track",page:{experienceType:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"mobile":"desktop",is404:"",lang:"en",name:e,group:"",loginStatus:"not logged in",sitesection1:"public",sitesection2:"content",sitesection3:"helix",sitesection4:"",test:"",referringSite:""},user:{loginStatus:"not logged in",userType:"",groupId:"",carrierId:"",hsid:"",rallyId:"",patientId:"",payerGroup:"",memberId:""}})),adobeDataLayer.push({event:"link track",link:{name:e,location:t,type:o,destinationUrl:n}})}catch(e){console.error(e)}}function setLocationLinkTrack(e,t){try{adobeDataLayer.push({event:"link track",link:{name:"location info",location:"header: Location Widget",type:e,userSelections:t,destinationUrl:""}})}catch(e){console.error(e)}}function locationFuncError(e){adobeDataLayer.push({event:"func error",error:{message:e,source:" ",code:"",subtype:""}})}function o5_addLocationLinkTrack(e,t,o){try{adobeDataLayer.push({event:"link track",link:{name:e,location:t,type:"internal",userSelections:o,destinationUrl:""}})}catch(e){console.error(e)}}
2function o5_analyticsModalTrack(e,t){var o=t;null!=o&&""!==o||(o=this.getAttribute("lpos")),void 0===o&&(o="modal video");try{adobeDataLayer.push({event:"modal track",modal:{name:o}})}catch(e){}}function o5_analyticsFormStep(e,t,o){var n=t;null!=n&&""!==n||(n=e.getAttribute("lpos")),void 0===n&&(n="modal video");try{adobeDataLayer.push({event:"form step",form:{name:o,step:"step 1 : modal open"},modal:{name:n}})}catch(e){}}function o5_analyticsFilterTrack(e){adobeDataLayer.push({event:"filter track",selectedfilters:{label:e}})}function o5_footerAnalytics(){Array.prototype.slice.call(document.querySelectorAll("footer a")).filter(function(e){return!e.closest(".o5-legal__disclaimer")}).forEach(function(e){e.addEventListener("click",function(){let t=linkTextCheck(this,e.textContent.trim().toLowerCase()),o=e.getAttribute("href"),n="";n="apple store"!==t&&"google play"!==t&&"contact us"!==t&&"learn more"!==t||!e.closest("o5-footer__prefooter")?"footer":o5_getNearestHeadingInfo(e).trim().toLowerCase(),o5_analyticsLinkTrack(t,n,getLinkType(o),o)})}),document.querySelectorAll("footer .o5-legal__disclaimer a").forEach(function(e){e.addEventListener("click",function(){let t=linkTextCheck(this,e.textContent.trim().toLowerCase()),o=e.getAttribute("href");if(""===t||"undefined"===t||"no text"===t||"footer"===t){let e=document.querySelectorAll("img");t=e.getAttribute("alt")&&""!==e.getAttribute("alt").trim()?e.getAttribute(alt):e.getAttribute("src").split("/").pop().split(".").slice(0,-1).join(".")}o5_analyticsLinkTrack(t,"footer",getLinkType(o),o)})})}function exitlinkCheck(e){const t=window.location.host;let o=["healthsafe-id.com","sso.optum.com","m3p-form.optumrx.com"];if(""===e||-1!==e.indexOf(t)||"#"===e||0===e.indexOf("#")||e.startsWith("/"))return!1;try{const t=new URL(e),n=t&&t.hostname;return!o.includes(n)}catch(e){return!1}}function linkTextCheck(e,t){return null!=t&&""!==t||(t=e&&e.getAttribute?e.getAttribute("lpos"):""),null==t&&(t="no text"),"medicare.gov/basics/costs/help/drug-costs"===t&&(t="medicare help"),t}function getLinkType(e){void 0===e&&(e="");var t="";if(void 0!==e&&""!==e&&(e.endsWith(".xls")>0||e.endsWith(".ics")>0||e.endsWith(".png")>0||e.endsWith(".gif")>0||e.endsWith(".jpeg")>0||e.endsWith(".jpg")>0||e.endsWith(".mp4")>0||e.endsWith(".m4v")>0||e.endsWith(".wav")>0||e.endsWith(".mp3")>0||e.endsWith(".wmv")>0||e.endsWith(".avi")>0||e.endsWith(".mov")>0||e.endsWith(".wma")>0||e.endsWith(".exe")>0||e.endsWith(".rar")>0||e.endsWith(".css")>0||e.endsWith(".js")>0||e.endsWith(".xml")>0||e.endsWith(".vxd")>0||e.endsWith(".vsd")>0||e.endsWith(".txt")>0||e.endsWith(".zip")>0||e.endsWith(".tab")>0||e.endsWith(".eps")>0||e.endsWith(".pdf")>0||e.endsWith(".doc")>0||e.endsWith(".docx")>0||e.endsWith(".xlsx")>0||e.endsWith(".csv")>0||e.endsWith(".pptx")>0||e.endsWith(".ppt")>0||e.endsWith(".docs")>0||e.endsWith(".svg")>0))t="download";else if(exitlinkCheck(e))if(-1!==e.indexOf("tel:"))t="phone";else if(-1!==e.indexOf("mailto:"))t="email";else{t="exit";var o=window.location.href;(-1!==o.indexOf("/forms/medicare-prescription-payment-plan")||-1!==o.indexOf("/forms/medicare-prescription-payment-plan/sample-payment-calculation")||bankHost.some(e=>o.includes(e)))&&(t="external")}else t="internal";return t}function setO5SearchResultsAnalyticsTracking(e,t,o){adobeDataLayer.push({event:"standard search",search:{term:e,type:o,filters:[],results:t}})}function searchResultClick(e,t,o,n){adobeDataLayer.push({event:"search result click",search:{term:e,type:t,filters:[],linkName:o,linkPosition:n}})}function setO5ProviderSearchResultsAnalyticsTracking(e,t,o,n){adobeDataLayer.push({event:"standard search",search:{term:e,type:o,filters:n,results:t}})}function searchProviderResultClick(e,t,o,n,r){adobeDataLayer.push({event:"search result click",search:{term:e,type:t,filters:r,linkName:o,linkPosition:n}})}function searchProviderFilter(e,t,o){adobeDataLayer.push({event:"search filter",search:{term:e,type:t,filters:o}})}function o5_lposHeader(){document.querySelectorAll(".o5-utility__link, .o5-nav__link").forEach(function(e){e.setAttribute("lpos","header")}),document.querySelectorAll(".o5-l2-nav__link").forEach(function(e){e.setAttribute("lpos","sub-header")}),document.querySelectorAll(".o5-logo__link").forEach(function(e){e.setAttribute("lpos","home logo")}),document.querySelectorAll(".o5-nav__item").forEach(function(e){if(e.setAttribute("lpos","header"),e.classList.contains("o5-nav__sublink")){let t=e.closest(".o5-nav__item")&&e.closest(".o5-nav__item").querySelector(".o5-nav__btn-content")?e.closest(".o5-nav__item").querySelector(".o5-nav__btn-content").textContent.trim().toLowerCase():"";e.setAttribute("lpos","header:"+t)}}),document.querySelectorAll(".o5-l2-nav__item a").forEach(function(e){if(e.setAttribute("lpos","sub-header"),e.classList.contains("o5-l2-nav__sublink")){let t=e.closest(".o5-l2-nav__item")&&e.closest(".o5-l2-nav__item").querySelector(".o5-l2-nav__btn-content")?e.closest(".o5-l2-nav__item").querySelector(".o5-l2-nav__btn-content").textContent.trim().toLowerCase():"";e.setAttribute("lpos","sub-header:"+t)}}),document.querySelectorAll(".o5-utility__item a").forEach(function(e){if(e.setAttribute("lpos","header"),e.classList.contains("o5-utility__sublink")){let t=e.closest(".o5-utility__item")&&e.closest(".o5-utility__item").querySelector(".o5-utility__btn")?e.closest(".o5-utility__item").querySelector(".o5-utility__btn").textContent.trim().toLowerCase():"";e.setAttribute("lpos","header:"+t)}}),document.querySelectorAll(".o5-l2-nav__button a").forEach(function(e){e.setAttribute("lpos","sub-header")})}function o5_lposFooter(){document.querySelectorAll(".o5-footer__wrapper a").forEach(function(e){if(e.setAttribute("lpos","footer"),e.classList.contains("o5-footer__link")){let t=e.closest(".o5-footer__wrapper")&&e.closest(".o5-footer__wrapper").querySelector(".o5-footer__heading")?e.closest(".o5-footer__wrapper").querySelector(".o5-footer__heading").textContent.trim().toLowerCase():"";
2e.setAttribute("lpos","footer:"+t)}}),document.querySelectorAll(".o5-footer-legal-social-bar a").forEach(function(e){e.setAttribute("lpos","footer")})}function hubsTracking(){setTimeout(function(){document.querySelectorAll(".o5-hubs__cards a").forEach(function(e){let t=e.closest(".o5-hubs__cards")&&e.closest(".o5-hubs__cards").querySelector(".o5-hubs__newscard-text-headline")?e.closest(".o5-hubs__cards").querySelector(".o5-hubs__newscard-text-headline").textContent.trim().toLowerCase():"";if(e.setAttribute("lpos","hubs : "+t),""===t){let t=o5_getNearestHeadingInfo(e).trim().toLowerCase();e.setAttribute("lpos","hubs : "+t)}}),document.querySelectorAll(".o5-hubs__cards a").forEach(function(e){e.addEventListener("click",function(){let t=linkTextCheck(this,e.textContent.trim().toLowerCase()),o=e.getAttribute("href");o5_analyticsLinkTrack(t,e.getAttribute("lpos")?e.getAttribute("lpos").toLowerCase():"",getLinkType(o),o)})})},3e3)}function subPageTrack(e){try{adobeDataLayer.push({event:"subpage track",data:{subpage:{contentSection:e}}})}catch(e){console.error(e)}}function o5siteToggleLinkTrack(e,t,o,n){adobeDataLayer.push({event:"link track",link:{name:e,location:t,type:o,userSelection:n}})}function o5_calendarSalesforceLinkTrack(e,t,o,n,r){adobeDataLayer.push({event:"link track",link:{name:e,location:t,type:o,userSelections:n,destinationUrl:r}})}function o5_getNearestHeadingInfo(e){let t=e.parentElement;for(;t;){let e=t.querySelector("h1,h2,h3,h4,h5,h6");if(e)return e.textContent.trim().toLowerCase();t=t.parentElement}return""}function o5_getNearestHeadingElement(e){let t=e.parentElement;for(;t;){let e=t.querySelector("h1,h2,h3,h4,h5,h6");if(e)return e;t=t.parentElement}return""}document.addEventListener("click",function(e){if("function"!=typeof e.target.matches)return;const t=e.target.matches("form input, form select"),o=e.target.closest("form input, form select"),n=e.target.closest(".MuiMenuItem-root");if(t||o||n){let r=t?e.target:o||(n?$(".MuiInputBase-root"):n);if(!r)return;let a=r.closest(".o5-hsac__content");if(a){if(null!==a.querySelector(".o5-hsac-steps-topper")){let e=r.closest(".o5-hsac-question__section"),t=e?e.querySelector(".o5-hsac-question__section-title"):null,o=t?t.textContent.trim().toLowerCase():"",n=null,a=r.parentElement;for(;a&&a!==document.body;){if(a.querySelector("h1")){n=a;break}a=a.parentElement}let i=n?n.querySelector("h1"):null,l=linkTextCheck(this,i?i.textContent.trim().toLowerCase():""),s=o.match(/Step\s+\d+/i),c=s?s[0]:"unknown";hsaStepTracked[c]||(o5_HSAFormStep(l,o),hsaStepTracked[c]=!0)}}}},!0),document.addEventListener("click",function(e){const t=e.target.closest("a");if(t&&t.closest(".o5-hsac-downloadDialog__modelBottomDescription")&&t){let e=linkTextCheck(this,t.textContent.trim().toLowerCase()),o=null,n=t.parentElement;for(;n&&n!==document.body;){let e=n.querySelector("h1, h2, h3");if(e){o=e;break}n=n.parentElement}let r=o?o.textContent.trim().toLowerCase():"",a=t.getAttribute("href")||"";o5_analyticsLinkTrack(e,"modal: "+r,getLinkType(a),a)}const o=e.target.closest("button");if(o&&o.closest(".MuiDialogActions-root")&&o){let e=linkTextCheck(this,o.textContent.trim().toLowerCase()),t=null,n=o.parentElement;for(;n&&n!==document.body;){let e=n.querySelector("h1, h2, h3");if(e){t=e;break}n=n.parentElement}o5_analyticsDownloadLinkTrack(e,"modal: "+(t?t.textContent.trim().toLowerCase():""),"download",o.getAttribute("href")||"")}},!0),document.addEventListener("click",function(e){const t=e.target.closest(".o5-promo-bar__button");if(!t)return;let o=t.textContent?t.textContent.trim().toLowerCase():"",n=t.getAttribute("data-download-href"),r=o5_getNearestHeadingInfo(t);void 0!==r&&""!==r&&null!==r||(r=linktext),o5_analyticsLinkTrack(o,r,getLinkType(n),n)});
3function lposHeaderBar(){$(".site-links__list__item").each(function(){var t=$(this).find("button.site-links__list__item__text").text().trim().toLowerCase();""!=t&&$(this).find("a").attr("lpos","header bar : "+t)}),$("li.header_social_icons").find("a").attr("lpos","header bar : social icons"),$(".header-sign-in__container a").attr("lpos","header bar : register")}function lposMainNav(){var t=$("nav.header-nav__container");if(t.length>0){t.siblings("div.header-logo__container").find("a").attr("lpos","main navigation : logo");var n=$("#solutions").find("ul");n.eq(0).find("a").attr("lpos","main navigation : drop down : solutions : how we help"),n.eq(1).find("a").attr("lpos","main navigation : drop down : solutions : who we help");var a=$("#resources");a.find(".header-nav__subnav__heading").siblings("p").find("a").attr("lpos","main navigation : drop down : resources"),a.find("ul").find("a").attr("lpos","main navigation : drop down : resources : article type"),a.find("aside").find("a").attr("lpos","main navigation : drop down : resources : featured article"),$("#about").find("a").attr("lpos","main navigation : drop down : about us : secondary page"),t.find("li").eq(3).find("a").attr("lpos","main navigation : contact us"),t.siblings("div.header-search-sign-in__container").find("a").attr("lpos","main navigation : sign-in"),t.find("li").eq(4).find("a").attr("lpos","main navigation : sign-in")}}function lposMainNavV2(){$("li.main-nav__list").each(function(){var t=$(this).find(".main-nav__list--main-item").text().trim().toLowerCase();$(this).find(".dropdown_subnav").each(function(n,a){var o=$(a).attr("aria-label")?$(a).attr("aria-label"):"blank section";o=o.toLowerCase(),$(a).find("a").attr("lpos","main navigation : dropdown : "+t+" : "+o)})})}function lposBreadcrumb(){var t=$(".breadcrumb-nav");t.length>0&&t.find("a").attr("lpos","bread crumb")}function lposMainHeroBanner(){$(".banner__main-hero--cta").find("a").attr("lpos","Banner:Hero Banner")}function lposSegmentTray(){var t=$(".health-providers__content");
3t.find("a.button").attr("lpos","content tray link : providers : segment"),t.find("a.resourcebox__imglin--link").attr("lpos","content tray link : providers : resource");var n=$(".employers__content");n.find("a.button").attr("lpos","content tray link : employers : segment"),n.find("a.resourcebox__imglin--link").attr("lpos","content tray link : employers : resource");var a=$(".health-insurers__content");a.find("a.button").attr("lpos","content tray link : health plans : segment"),a.find("a.resourcebox__imglin--link").attr("lpos","content tray link : health plans : resource");var o=$(".life-sciences__content");o.find("a.button").attr("lpos","content tray link : life sciences : segment"),o.find("a.resourcebox__imglin--link").attr("lpos","content tray link : life sciences : resource");var i=$(".government__content");i.find("a.button").attr("lpos","content tray link : government : segment"),i.find("a.resourcebox__imglin--link").attr("lpos","content tray link : government : resource");var e=$(".individuals__content");e.find("a.button").attr("lpos","content tray link : individuals : segment"),e.find("a.resourcebox__imglin--link").attr("lpos","content tray link : individuals : resource")}function lposFooterNav(){var t=$(".sitemap_inner").find("ul");t.eq(0).find("a.sitemap_nav_link").attr("lpos","footer nav : solutions"),t.eq(1).find("a.sitemap_nav_link").attr("lpos","footer nav : resources"),t.eq(2).find("a.sitemap_nav_link").attr("lpos","footer nav : about us"),t.eq(3).find("a.sitemap_nav_link").attr("lpos","footer nav : our sites"),$(".footernav__social__item li").find("a.social__links").attr("lpos","footer nav : social icons"),$(".finder__text").find("a.button").attr("lpos","footer nav : find a solution"),$(".footer__bottom").find("a").attr("lpos","footer bar"),$(".footer-legal-bar").find("a").attr("lpos","footer legal links")}function lposCardBlock(){$(".card-box").find("a.mcard__cta-link").attr("lpos","3 Card Block")}function lposPageCard(){$(".expanding-card").find("a").attr("lpos","Expandable Card")}function lposPageCardV2(){$(".expanding-card-v2 .expanding-card__list").find("a").attr("lpos","Expandable Card"),$(".expanding-card-v2 a.open-button").attr("lpos","Non-Expandable Card")}function lposHomeTwitterFeed(){$(".twitter-social-bar").find("a").attr("lpos","Twitter:Feed")}function lposPullQuote(){$(".pull-quote").find("a.pq__link").attr("lpos","Pull quote")}function lposSocialSharing(){$(".share-bar").find("a").attr("lpos","Share Bar")}function lposResourceSlider(){var t=$(".slider").find(".slider__container");t.each(function(n){var a=$(this).find("a");a.each(function(o){$(this).attr("lpos","Resource slider : slider "+(n+1)+" of "+t.length+" : slide "+(o+1)+" of "+a.length)}),$(this).parent().find(".slider__title__seemorbtn").find("a").attr("lpos","view all button: slider "+(n+1)+" of "+a.length)})}function lposSolutionTile(){var t=$(".product-line__tiles").find("a"),n=$(".hubs-paginator__link--active").text(),a=$(".hubs-paginator__link").last().text();t.each(function(o){$(this).attr("lpos","Solution Tile:"+(o+1)+" of "+t.length+"|Page "+n+" of "+a)})}function lposTextArea(){var t="",n="";$("div[promo-lpos]").each(function(){t=$(this).attr("promo-lpos"),n=$(this).attr("promo-name"),$(this).find("a").attr("promo-lpos",t),$(this).find("a").attr("promo-name",n)})}function lposHeaderLogo(){$("a.logo__link").attr("lpos","header_logo_link"),$("a.o5-logo__link").attr("lpos","header_logo_link")}function lposStructureDefault(){$(".iconstrip__list a").each(function(){""!=$(this).attr("lpos")&&null!=$(this).attr("lpos")||$(this).attr("lpos","icon strip")}),-1==window.location.pathname.indexOf("site-map")&&-1==window.location.pathname.indexOf("sitemap")&&setTimeout(function(){$(".cmp-container .aem-GridColumn").each(function(){var t="";$(this).find("a").each(function(n,a){var o=$(this).closest(":has(:header)").find(":header:first").text().trim().toLowerCase();""!==$(this).parentsUntil(".aem-GridColumn").find(":header:first").text().trim()||""==t?(""!=o&&(o=" : "+o),""!=$(a).attr("lpos")&&null!=$(a).attr("lpos")||$(a).attr("lpos","main content"+o),t=o):$(a).attr("lpos","main content"+t)," "!=$(this).text().replace(/[\n\r   ]+/g," ")&&"main content : "+$(this).text().trim().toLowerCase()!=$(this).attr("lpos")||(o=$(this).parentsUntil(".aem-GridColumn").find(":header").first().text().trim().toLowerCase(),$(a).attr("lpos","main content : "+o))})})},3e3),$("footer a").each(function(t,n){""!=$(n).attr("lpos")&&null!=$(n).attr("lpos")||$(n).attr("lpos","footer")}),$(".o5-quick-links__topper").each(function(){const t=$(this).find("h1").attr("style");t&&"display: none;"==t.trim()&&$(this).attr("style","display: none;")})}function lposArticleListCard(){document.querySelectorAll(".o5-article-list-card__action-link").forEach(function(t){const n=t.closest(".o5-article-list-card")?t.closest(".o5-article-list-card").querySelector("h1, h2, h3, h4, h5, h6"):"",a=n?n.textContent.trim().toLowerCase():"";t.setAttribute("lpos","insights: "+a)})}$(document).ready(function(){lposArticleListCard(),lposHeaderLogo(),lposHeaderBar(),lposMainNav(),lposMainNavV2(),lposBreadcrumb(),lposMainHeroBanner(),lposSegmentTray(),lposFooterNav(),lposCardBlock(),lposPageCard(),lposPageCardV2(),lposHomeTwitterFeed(),lposPullQuote(),lposSocialSharing(),lposResourceSlider(),lposTextArea(),lposStructureDefault()});
4function lposAndTrackingHubs(){setTimeout(function(){$(".uie-pagination__btn, .uie-pagination__item").click(function(){$(".o5-hubs__cards").find("a").each(function(){$(this).attr("lpos","hubs : "+$(this).closest(":has(.o5-hubs__newscard-text-headline)").find(".o5-hubs__newscard-text-headline").text().trim().toLowerCase()),""==$(this).closest(":has(.o5-hubs__newscard-text-headline)").find(".o5-hubs__newscard-text-headline").text().trim().toLowerCase()&&$(this).attr("lpos","hubs : "+$(this).closest(":has(h1,h2,h3,h4,h5,h6)").find("h1,h2,h3,h4,h5,h6").text().trim().toLowerCase())}),$(".o5-hubs__cards").find("a").on("click",function(){var t=linkTextCheck($(this).text().trim().toLowerCase()),i=$(this).attr("href");o5_Missing_analyticsLinkTrack(t,$(this).attr("lpos")?$(this).attr("lpos").toLowerCase():"",getLinkType(i),i)})}),$(".uie-pagination__input").change(function(){$(".o5-hubs__cards").find("a").each(function(){$(this).attr("lpos","hubs : "+$(this).closest(":has(.o5-hubs__newscard-text-headline)").find(".o5-hubs__newscard-text-headline").text().trim().toLowerCase()),""==$(this).closest(":has(.o5-hubs__newscard-text-headline)").find(".o5-hubs__newscard-text-headline").text().trim().toLowerCase()&&$(this).attr("lpos","hubs : "+$(this).closest(":has(h1,h2,h3,h4,h5,h6)").find("h1,h2,h3,h4,h5,h6").text().trim().toLowerCase())}),$(".o5-hubs__cards").find("a").on("click",function(){var t=linkTextCheck($(this).text().trim().toLowerCase()),i=$(this).attr("href");o5_Missing_analyticsLinkTrack(t,$(this).attr("lpos")?$(this).attr("lpos").toLowerCase():"",getLinkType(i),i)})})},3e3)}function lposAndTrackingArticles(){$(".o5-article-list__load-more-btn").click(function(){setTimeout(function(){$(".o5-article-list-card").find("a").each(function(){if(null==$(this).attr("lpos")){$(this).attr("lpos","main content : "+$(this).parentsUntil(".aem-GridColumn").find(":header").first().text().trim().toLowerCase());var t=linkTextCheck($(this).text().trim().toLowerCase()),i=$(this).attr("href"),e=$(this).attr("lpos").toLowerCase();"no text"==t&&$(this).has("img")&&(t=$(this).find("img").attr("alt").trim().toLowerCase()),$(this).attr("onclick","o5_Missing_analyticsLinkTrack('"+t+"','"+e+"','"+getLinkType(i)+"','"+i+"')")}})},2e3)})}function o5_Missing_analyticsLinkTrack(t,i,e,s){i=(i=i.replaceAll("hubs : ","")).replaceAll("main content : ","");try{adobeDataLayer.push({event:"link track",link:{name:t,location:i,type:e,destinationUrl:s}})}catch(t){console.error(t)}}function lposAndTrackingHealthArticles(){setTimeout(function(){$(".ces-hubs-landing a").each(function(){$(this).attr("lpos","main content : "+$(this).closest(":has(h1,h2,h3,h4,h5,h6)").find("h1,h2,h3,h4,h5,h6").first().text().trim().toLowerCase())}),$(".ces-hubs-landing a").click(function(){var t=linkTextCheck($(this).text().trim().toLowerCase()),i=$(this).attr("href");o5_Missing_analyticsLinkTrack(t,$(this).attr("lpos")?$(this).attr("lpos").toLowerCase():"",getLinkType(i),i)}),$("#o5-ces-app").find(".ces-toc__content-btn").on("click",function(){o5_Missing_analyticsLinkTrack($(this).text().trim().toLowerCase(),$(".ces-toc__content-heading").text().trim().toLowerCase(),"internal","#")})},3e3)}
5/*! For license information please see optum.js.LICENSE.txt */
6(()=>{var e,t,n,o,r,i,a={60861(e,t,n){"use strict";function o(e,t,n){var o=n.getPlayer(e),r=e.replace("vid-",""),i=t?document.getElementById(t):document.querySelector('[data-vi
6deo="'+r+'"]');if(i){var a=i.querySelector(".video__transcript"),l=i.querySelector(".video__transcript-close"),c=i.querySelector(".video__transcript-content");if(a&&a.classList.contains("video__transcript--has-transcript")){!function(e){if(!e)return;var t=e;if("true"===t.dataset.transcriptHydrated)return;var n=function(e){var t=e.querySelector("a[href]");if(t){var n=(t.getAttribute("href")||"").trim();return/^https?:\/\//i.test(n)?n:""}var o=(e.textContent||"").trim();return/^https?:\/\/\S+$/i.test(o)?o:""}(e);if(!n)return;t.dataset.transcriptHydrated="true",fetch(n).then(function(e){if(!e.ok)throw new Error("Transcript request failed: "+e.status);return e.text()}).then(function(t){var n,o=(t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n").trim();o&&(e.innerHTML=(n=o,String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")).replace(/\n/g,"<br />"))}).catch(function(){t.dataset.transcriptHydrated="false"})}(c);var s=n.getComponent("Button"),u=n.extend(s,{constructor:function(){s.apply(this,arguments)},handleClick:function(){o.one("fullscreenchange",function(){window.scrollTo(window.scrollX,i.getBoundingClientRect().top+window.scrollY)}),o.exitFullscreen().catch(function(){return null});var e=i.querySelector(".vjs-button.vjs-button-transcript");a.classList.contains("video__transcript--show")?(a.classList.remove("video__transcript--show"),e&&e.setAttribute("aria-expanded","false")):(a.classList.add("video__transcript--show"),e&&e.setAttribute("aria-expanded","true"))}});n.registerComponent("TranscriptButton",u),o.getChild("controlBar").addChild("TranscriptButton",{}).addClass("vjs-button-transcript");var d=i.querySelectorAll(".vjs-button.vjs-button-transcript");d.forEach(function(e){e.setAttribute("aria-label","Show Transcript"),e.setAttribute("title","Show Transcript"),e.setAttribute("aria-expanded","false")});d.forEach(function(e){var t=e.querySelector(".vjs-icon-placeholder");t||((t=document.createElement("span")).className="vjs-icon-placeholder",e.insertAdjacentElement("afterbegin",t)),t.classList.add("vjs-button-transcript-icon-host"),t.querySelector(".vjs-button-transcript-icon")||t.insertAdjacentHTML("afterbegin",'<svg class="vjs-button-transcript-icon" aria-hidden="true" focusable="false" viewBox="0 -960 960 960" role="presentation"><path d="M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"></path></svg>')}),d.forEach(function(e){return e.removeAttribute("aria-disabled")}),l&&l.addEventListener("click",function(){a.classList.remove("video__transcript--show"),d.forEach(function(e){e.setAttribute("aria-expanded","false")}),d[0]&&d[0].focus()})}}}function r(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function l(n,o,r,a){var l=o&&o.prototype instanceof s?o:s,u=Object.create(l.prototype);return i(u,"_invoke",function(n,o,r){var i,a,l,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,l=e,f.n=n,c}};function p(n,o){for(a=n,l=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(a=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,a=0))}if(r||n>1)return c;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),a=u,l=m;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,l)):f.n=l:f.v=l);try{if(s=2,i){if(a||(r="next"),t=i[r]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==c)break}catch(t){i=e,a=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,r,a),!0),u}var c={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(i(t={},o,function(){return this}),t),p=d.prototype=s.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,i(p,"constructor",d),i(d,"constructor",u),u.displayName="GeneratorFunction",i(d,a,"GeneratorFunction"),i(p),i(p,a,"Generator"),i(p,o,function(){return this}),i(p,"toString",function(){return"[object Generator]"}),(r=function(){return{w:l,m}})()}function i(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}i=function(e,t,n,o){function a(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},i(e,t,n,o)}function a(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function l(e){return c.apply(this,arguments)}function c(){var e;return e=r().m(function e(t){var i,a,l,c,s,u,d,f,p,m,h,v;return r().w(function(e){for(;;
6)switch(e.n){case 0:if(!(i=document.querySelector('[data-video="'.concat(t.videoId,'"]')))||window.videojs){e.n=1;break}return e.n=1,n.e(7225).then(n.bind(n,13255));case 1:if(!window.videojs){e.n=4;break}if(a=function(){var e=document.getElementById(l);e&&e.querySelectorAll("track[src]").forEach(function(e){var t=e.getAttribute("src");t&&-1!==t.indexOf("/content/dam/content/dam/")&&e.setAttribute("src",t.replace(/\/content\/dam\/(?:content\/dam\/)+/g,"/content/dam/"))});var n=window.videojs(l,{controls:!0,autoplay:!1,preload:"auto",techOrder:u,poster:s,textTrackSettings:!1,playbackRates:t.playbackRates&&t.playbackRates.length?t.playbackRates:[],plugins:{videoJsResolutionSwitcher:{default:"high",dynamicLabel:!1}},controlBar:{children:m}},p);n.on("error",function(){}),n.on("loadeddata",function(){var e=document.querySelectorAll(".vjs-subs-caps-button ul.vjs-menu-content");e.length>0?e.forEach(function(e){var t=document.querySelector(".vjs-subs-caps-button button"),n=e.querySelectorAll("li.vjs-menu-item"),o=window.location.href;if(o.includes("/es/")||o.includes("/es.html")){if(t){t.setAttribute("title","Subtítulos");var r=t.querySelector(".vjs-control-text");r&&(r.textContent="Subtítulos")}n.forEach(function(e,t){var n=e.querySelector("span.vjs-menu-item-text");n&&(n.textContent=0===t?"Legendas desactivados":"Legendas activados")})}else n.forEach(function(e,t){var n=e.querySelector("span.vjs-menu-item-text");n&&(n.textContent=0===t?"Captions off":"Captions on")})}):console.warn("Captions menu not found.")});var r=document.getElementById(l),i=n.textTracks().tracks_;r.classList.add("video-js"),r.querySelectorAll("object").length>0&&checkFlash()&&document.querySelectorAll(".vjs-poster").forEach(function(e){return e.remove()}),o(l,d,window.videojs);for(var a=0;a<i.length;a++)i[a].mode="hidden";var c=r.querySelector(".vjs-control-bar");c&&c.setAttribute("qa_handles","vjs-control-section")},i){e.n=2;break}return e.a(2);case 2:if(!i.classList.contains("vs-triggered")){e.n=3;break}return e.a(2);case 3:l="vid-"+t.videoId,c=t.videoURL,s=t.imgURL,u=[],d=t.transcriptId||"",f=void 0===t.videoClosedCaption?"":t.videoClosedCaption,p=null,m=["playToggle","muteToggle","volumeMenuButton","volumeControl","durationDisplay","timeDivider","currentTimeDisplay","progressControl","remainingTimeDisplay","fullscreenToggle"],""!=f&&m.push("subsCapsButton"),t.enableDownload&&window.videojs&&!window.videojs.getComponent("DownloadButton")&&(h=window.videojs.getComponent("Button"),(v=window.videojs.extend(h,{buildCSSClass:function(){return"vjs-download-button vjs-control vjs-button "+h.prototype.buildCSSClass.call(this)},handleClick:function(){var e=this.player_.currentSrc();if(e){var t=document.createElement("a");t.href=e,t.setAttribute("download",""),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}}})).prototype.controlText_="Download",window.videojs.registerComponent("DownloadButton",v)),Array.isArray(t.extraControls)&&t.extraControls.length&&t.extraControls.forEach(function(e){if(-1===m.indexOf(e)){var t=m.indexOf("fullscreenToggle");t>-1?m.splice(t,0,e):m.push(e)}}),u.push("html5"),fetch(c+"/jcr:content/renditions/m4v480x270.mp4",{method:"HEAD"}).then(function(e){if(e.ok){var t=document.createElement("source");t.setAttribute("src",c+"/jcr:content/renditions/m4v480x270.mp4"),t.setAttribute("type","video/mp4"),t.setAttribute("label","Low");var n=document.createElement("source");n.setAttribute("src",c+"/jcr:content/renditions/m4v960x540.mp4"),n.setAttribute("type","video/mp4"),n.setAttribute("label","High");var o=document.getElementById(l);o.querySelectorAll("source").forEach(function(e){return e.remove()}),o.appendChild(n),o.appendChild(t),p=function(){window.player=this,this.updateSrc([{src:c+"/jcr:content/renditions/cq5dam.video.m4v960x540.m4v",type:"video/x-m4v",label:"High"},{src:c+"/jcr:content/renditions/cq5dam.video.m4v480x270.m4v",type:"video/x-m4v",label:"Low"}]),this.on("resolutionchange",function(){var e=this.children_[7].resolutionSwitcher,t=e.querySelectorAll(".vjs-menu-item");e.setAttribute("tabindex","0");for(var n=0;n<t.length;n++)t[n].addEventListener("keydown",function(t){13==t.keyCode&&(e.classList.add("addFocus"),e.firstChild.focus())});var o=document.querySelectorAll(".addFocus");document.addEventListener("keydown",function(e){"Tab"===e.key&&o.forEach(function(e){e.classList.remove("addFocus")})})})},a()}else a()}).catch(function(){a()}),i.classList.add("vs-triggered"),window.onpageshow=function(e){e.persisted&&window.location.reload()};case 4:return e.a(2)}},e)}),c=function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function l(e){a(i,o,r,l,c,"next",e)}function c(e){a(i,o,r,l,c,"throw",e)}l(void 0)})},c.apply(this,arguments)}function s(e){return window.videojs?window.videojs.getPlayer(e):void 0}n.d(t,{l:()=>s,E:()=>l})},31370(){var e;e=function(){document.querySelectorAll('.o5-homepage-hero__desktopimage, .o5-homepage-hero__imagemobile, .o5-generic-hero-banner img, [data-optum-cmp="o5-hero-banner"] img').forEach(function(e){e.setAttribute("fetchpriority","high"),e.setAttribute("loading","eager")}),document.querySelectorAll("img:not([fetchpriority])").forEach(function(e){var t=e.getBoundingClientRect();t.top>=0&&t.bottom<=600&&e.setAttribute("fetchpriority","high")})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()},50263(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}n.d(t,{A:()=>l});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"autocomplete",value:function(e,t){var n,o,r,i=-1,a=function(t){e.setAttribute("aria-expanded",String(t)),t||e.removeAttribute("aria-activedescendant")};function l(t){if(!t)return!1;!function(e){for(var t=0;t<e.length;t++)e[t].classList.remove("autocomplete-active"),e[t].setAttribute("aria-selected","false")}(t),i>=t.length&&(i=0),i<0&&(i=t.length-1),t&&t.length>0?i>=0&&i<t.length?(t[i].classList.add("autocomplete-active"),t[i].setAttribute("aria-selected","true"),e.setAttribute("aria-activedescendant",t[i].id||""),e.value=t[i].getElementsByTagName("input")[0].value,t[i].scrollIntoView({behavior:"smooth",block:"nearest"})):console.error("Invalid index: currentFocus = ".concat(i,", listItems.length = ").concat(t.length)):console.error("Element list 'listItems' is not defined or empty")}function c(t){for(var n=document.getElementsByClassName("autocomplete-items"),o=0;o<n.length;o++)t!=n[o]&&t!=e&&n[o].parentNode.removeChild(n[o]);a(!1)}e.addEventListener("input",(n=function(n){var o,r=this.value;if(c(n),!r)return!1;i=-1,(o=document.createElement("ul")).setAttribute("id",this.id+"autocomplete-list"),o.setAttribute("class","autocomplete-items"),o.setAttribute("role","listbox"),o.setAttribute("aria-label","State City and Zip suggestions"),this.parentNode.appendChild(o);for(var l=0,s=0;s<t.length&&l<10;s++)if(t[s].toUpperCase().includes(r.toUpperCase())){var u=document.createElement("li");u.id="".concat(this.id,"autocomplete-option-").concat(l),u.setAttribute("class","autocomplete-item"),u.setAttribute("qa-handles","locationInput-megaNav-mobile"===this.id?"autocomplete-list-mobile":"autocomplete-list-desktop"),u.setAttribute("role","option"),u.setAttribute("aria-selected","false");var d=t[s].toUpperCase().indexOf(r.toUpperCase());u.innerHTML=t[s].substr(0,d)+"<strong>"+t[s].substr(d,r.length)+"</strong>"+t[s].substr(d+r.length),u.innerHTML+="<input type='hidden' value='"+t[s]+"'>",u.addEventListener("click",function(t){e.value=this.getElementsByTagName("input")[0].value,c(t),a(!1)}),o.appendChild(u),l++}var f=o.querySelector(".autocomplete-item");f&&(i=0,f.classList.add("autocomplete-active"),f.setAttribute("aria-selected","true"),e.setAttribute("aria-activedescendant",f.id)),a(l>0),0===l&&this.parentNode.removeChild(o)},o=300,function(){for(var e=this,t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];clearTimeout(r),r=setTimeout(function(){return n.apply(e,i)},o)})),e.addEventListener("keydown",function(e){var t,n,o,r=document.getElementById(this.id+"autocomplete-list");if(r||40!=e.keyCode&&38!=e.keyCode||null===(t=this.value)||void 0===t||!t.trim()){var s=null;if(r){s=r.getElementsByTagName("li");for(var u=0;u<s.length;u++)s[u]}40==e.keyCode?(i++,l(s)):38==e.keyCode?(i--,l(s)):36==e.keyCode&&null!==(n=s)&&void 0!==n&&n.length?(e.preventDefault(),i=0,l(s)):35==e.keyCode&&null!==(o=s)&&void 0!==o&&o.length?(e.preventDefault(),i=s.length-1,l(s)):13==e.keyCode?(e.preventDefault(),i>
6-1&&s&&s[i].click()):27==e.keyCode&&(c(e),a(!1))}else this.dispatchEvent(new Event("input"))}),document.addEventListener("click",function(e){c(e.target)})}}],t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();const l=new a},1253(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var a=o&&o.prototype instanceof s?o:s,u=Object.create(a.prototype);return l(u,"_invoke",function(n,o,r){var i,a,l,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,l=e,f.n=n,c}};function p(n,o){for(a=n,l=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(a=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,a=0))}if(r||n>1)return c;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),a=u,l=m;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,l)):f.n=l:f.v=l);try{if(s=2,i){if(a||(r="next"),t=i[r]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==c)break}catch(t){i=e,a=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),u}var c={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(l(t={},o,function(){return this}),t),p=d.prototype=s.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,l(p,"constructor",d),l(d,"constructor",u),u.displayName="GeneratorFunction",l(d,r,"GeneratorFunction"),l(p),l(p,r,"Generator"),l(p,o,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m}})()}function l(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}l=function(e,t,n,o){function i(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},l(e,t,n,o)}function c(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function m(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}n.d(t,{A:()=>b});var v="UES_PROV_LOCATION_DATA",y=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,"locations",[]),m(this,"formatted",null),m(this,"fetchPromise",null);try{var t=localStorage.getItem(v);if(t){var n=JSON.parse(t);n.length>0&&(this.locations=n)}}catch(e){}},t=[{key:"fetchLocations",value:function(){var e=this;return this.fetchPromise||(this.fetchPromise=fetch("https://prod.ui.search.optum.com/provider-widget/v1.0.0/locs.json",{method:"GET",credentials:"omit"}).then(function(e){if(!e.ok)throw new Error("locations request failed with status ".concat(e.status));return e.json()}).then(function(t){var n=[];for(var o in t)for(var r in t[o]){var i,a=u(t[o][r]);try{for(a.s();!(i=a.n()).done;){var l=s(i.value,3),c=l[0],d=l[1],f=l[2];n.push({stateId:o,city:r,lat:c,lng:d,zip:f})}}catch(e){a.e(e)}finally{a.f()}}n.sort(function(e,t){return e.stateId.localeCompare(t.stateId)}),e.locations=n,e.formatted=null;try{localStorage.setItem(v,JSON.stringify(n))}catch(e){}}).catch(function(t){console.warn("failed to fetch provider locations",t),e.fetchPromise=null})),this.fetchPromise}},{key:"ensureLoaded",value:(o=a().m(function e(){return a().w(function(e){for(;;)switch(e.n){case 0:if(0!==this.locations.length){e.n=1;break}return e.n=1,this.fetchLocations();case 1:return e.a(2)}},e,this)}
6),r=function(){var e=this,t=arguments;return new Promise(function(n,r){var i=o.apply(e,t);function a(e){c(i,n,r,a,l,"next",e)}function l(e){c(i,n,r,a,l,"throw",e)}a(void 0)})},function(){return r.apply(this,arguments)})},{key:"getAllLocations",value:function(){return this.locations}},{key:"getFormattedLocation",value:function(){return this.formatted||(this.formatted=this.locations.map(function(e){return"".concat(e.city,", ").concat(e.stateId," ").concat(e.zip)})),this.formatted}},{key:"getNearestLocation",value:function(e,t){var n,o,r=1/0,a=u(this.locations);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.pow(l.lat-e,2)+Math.pow(l.lng-t,2);c<r&&(n=l,r=c)}}catch(e){a.e(e)}finally{a.f()}return n?i(i({},n),{},{lat:e,lng:t}):void 0}},{key:"getLocationsByZip",value:function(e){return this.locations.filter(function(t){return t.zip.startsWith(e)})}},{key:"getLocationsByCityOrZip",value:function(e){var t=e.toLowerCase();return this.locations.filter(function(n){return n.city.toLowerCase().includes(t)||n.stateId.toLowerCase().includes(t)||n.zip.startsWith(e)})}},{key:"validateLocation",value:function(e){return this.locations.some(function(t){return"".concat(t.city,", ").concat(t.stateId," ").concat(t.zip)===e})}}],t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,o,r}();const b=new y},65105(e,t,n){"use strict";n.d(t,{A:()=>O});var o,r=n(77963),i=n(1253),a=n(50263),l=n(66633),c=n(90694),s=n(77939),u=n(67610);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function v(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return y(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
6if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(y(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,y(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,y(d,"constructor",s),y(s,"constructor",c),c.displayName="GeneratorFunction",y(s,r,"GeneratorFunction"),y(d),y(d,r,"Generator"),y(d,o,function(){return this}),y(d,"toString",function(){return"[object Generator]"}),(v=function(){return{w:i,m:f}})()}function y(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}y=function(e,t,n,o){function i(t,n){y(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},y(e,t,n,o)}function b(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){b(i,o,r,a,l,"next",e)}function l(e){b(i,o,r,a,l,"throw",e)}a(void 0)})}}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,C(o.key),o)}}function S(e,t,n){return t=k(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(t,n||[],k(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function A(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}var T=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=S(this,t,[e]),(0,l.HU)(),n.store={ui:{wrapper:".o5-header-bar",personalToggle:".o5-site-toggle__personal",businessToggle:".o5-site-toggle__business",component:".o5-site-toggle__right",list:".o5-site-toggle__list",item:".o5-site-toggle__item",button:".o5-site-toggle__btn",buttonSelected:".o5-site-toggle__btn--selected",itemSelected:".o5-site-toggle__item--selected",subNav:".o5-site-toggle__sub",subNavHidden:".o5-site-toggle--hidden",subNavFadeout:".o5-site-toggle__sub--fadeout",subNavRight:".o5-site-toggle__sub--right",dropdown:".js-site-toggle-dd",siteToggleLinks:".o5-site-toggle__links",siteToggleLink:".o5-site-toggle__link",locationLink:".o5-site-toggle__location-link",locationItemLocation:".o5-site-toggle__lang-item-location",locText:".o5-site-toggle__LocText",locationHeaderBar:".o5-site-toggle__location-header-bar",locationError:".o5-site-toggle__location-error",locationBtn:".o5-site-toggle__location-btn",locationBtnSelector:".o5-site-toggle__btn--location",locationInput:".o5-site-toggle__location-input",linkContainer:".o5-site-toggle__link-container",language:".o5-site-toggle__language",langEng:".o5-site-toggle__lang-eng",langItemBtn:".o5-site-toggle__lang-item-btn"},navClicked:!1,transitionTime:window.matchMedia("(min-width: 1025px)").matches?400:300},n.init(),n.setup(),n.hydrateFromCookie(),i.A.ensureLoaded(),(0,s.JA)(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){var e=this;if(t.isBusiness&&document.querySelector(this.store.ui.wrapper)&&document.querySelector(this.store.ui.wrapper).classList.add("business"),document.querySelector(this.store.ui.siteToggleLinks)){if(t.isBusiness){var n=document.querySelector(this.store.ui.businessToggle),o=document.querySelector(this.store.ui.personalToggle);n&&n.classList.add("toggle-active"),o&&o.classList.remove("toggle-active")}else{var r=document.querySelector(this.store.ui.personalToggle),s=document.querySelector(this.store.ui.businessToggle);r&&r.classList.add("toggle-active"),s&&s.classList.remove("toggle-active")}var d=document.querySelector(".toggle-active ".concat(this.store.ui.siteToggleLink));d&&d.setAttribute("aria-current","true")}if(document.querySelectorAll(this.store.ui.siteToggleLink).forEac
6h(function(e){e.classList.contains("o5-site-toggle__link-loaded")||e.classList.add("o5-site-toggle__link-loaded")}),document.querySelectorAll(this.store.ui.button).forEach(function(t){t.classList.contains("o5-site-toggle__btn-loaded")||(t.classList.add("o5-site-toggle__btn-loaded"),t.classList.add("o5-site-toggle__btn-disabled"),t.addEventListener("click",e.clickLangNavBtn.bind(e)))}),document.querySelector(this.store.ui.component)){window.addEventListener("load",this.onPageSiteLangLoad.bind(this)),window.addEventListener("resize",this.positionsiteLangMenus.bind(this)),document.addEventListener("keydown",this.checkSiteLanKey.bind(this)),document.body.addEventListener("click",this.checkSiteLanClick.bind(this)),document.querySelectorAll(".o5-site-toggle__sublink.o5-site-toggle__English, .o5-site-toggle__sublink.o5-site-toggle__Spanish").forEach(function(e){e.addEventListener("click",function(){var t=e.getAttribute("lang");"es"===t?(0,l.rQ)(l.KW):"en"===t&&(0,l.rQ)(l.RH)})}),document.querySelectorAll("".concat(this.store.ui.subNav,":last-of-type")).forEach(function(t){var n=t.querySelector("li:last-of-type a:last-of-type");n&&n.addEventListener("keydown",e.trapLastTab.bind(e))}),document.querySelectorAll(this.store.ui.locationLink).forEach(function(t){t.addEventListener("click",function(){return e.useLocationService()})}),window.addEventListener("location-update",function(t){var n,o=null===(n=t.detail)||void 0===n?void 0:n.locationValue;o&&e.updateLocationText(o)});var f=(0,u.bi)("locationValue");if(f)if((f.match(/,/g)||[]).length>1){var p=f.replace(/,([^,]*)$/," $1");document.querySelectorAll(this.store.ui.locText).forEach(function(e){e.textContent=p}),(0,u.FX)("locationValue",p),this.setLocationAttributies(f)}else document.querySelectorAll(this.store.ui.locText).forEach(function(e){e.textContent=f});if(!(0,c.Iq)()&&!(0,u.bi)("locationValue")&&document.querySelector(this.store.ui.locationItemLocation)){var m=function(){var t;(0,c.Iq)()||(0,u.bi)("locationValue")||null===(t=navigator.permissions)||void 0===t||t.query({name:"geolocation"}).then(function(t){"denied"!==t.state?("prompt"===t.state&&t.addEventListener("change",function e(){t.removeEventListener("change",e),"denied"===t.state&&window.dispatchEvent(new CustomEvent("geolocation-denied"))}),e.useLocationService(!0)):window.dispatchEvent(new CustomEvent("geolocation-denied"))}).catch(function(){e.useLocationService(!0)})};"complete"===document.readyState?setTimeout(m,500):window.addEventListener("load",m,{once:!0})}document.querySelectorAll(this.store.ui.locationHeaderBar).forEach(function(t){t.addEventListener("input",function(){var t=g(v().m(function t(n){var o,r,l;return v().w(function(t){for(;;)switch(t.n){case 0:return n.preventDefault(),t.n=1,i.A.ensureLoaded();case 1:r=n.target,l=null===(o=r.closest("li"))||void 0===o?void 0:o.querySelector(e.store.ui.locationError),a.A.autocomplete(r,i.A.getFormattedLocation()),r.classList.add("autocomplete-active-input"),null==l||l.setAttribute("aria-hidden","true"),null==l||l.classList.add("is--hidden"),r.removeAttribute("aria-describedby"),r.value.length>0?r.setAttribute("aria-expanded","true"):(r.setAttribute("aria-expanded","false"),r.removeAttribute("aria-describedby"));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}())}),document.addEventListener("click",function(){var t=g(v().m(function t(n){var o,r,a,l,c,s,u,d;return v().w(function(t){for(;;)switch(t.n){case 0:if(a=null===(o=n.target)||void 0===o?void 0:o.closest(e.store.ui.locationBtn)){t.n=1;break}return t.a(2);case 1:return l=a.closest("li"),c=null==l?void 0:l.querySelector(e.store.ui.locationInput),s=null==l?void 0:l.querySelector(e.store.ui.locationError),u=(null==c||null===(r=c.value)||void 0===r?void 0:r.trim())||"",t.n=2,i.A.ensureLoaded();case 2:i.A.validateLocation(u)?(e.saveAndBroadcastLocation(u),e.closeLangMenus(),null===(d=document.querySelector(e.store.ui.locationBtnSelector))||void 0===d||d.focus()):(null==c||c.setAttribute("aria-describedby","input-error"),null==s||s.removeAttribute("aria-hidden"),null==s||s.classList.remove("is--hidden"),null==c||c.focus());case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()),document.addEventListener("click",function(){var t=g(v().m(function t(n){var o,r,a,l,c,s;return v().w(function(t){for(;;)switch(t.n){case 0:if(null!==(o=n.target)&&void 0!==o&&o.closest(".autocomplete-item")){t.n=1;break}return t.a(2);case 1:return t.n=2,new Promise(function(e){return setTimeout(e,50)});case 2:r=Array.from(document.querySelectorAll("".concat(e.store.ui.locationInput,".autocomplete-active-input"))),a=0,l=r;case 3:if(!(a<l.length)){t.n=10;break}if(!(c=l[a]).closest("[data-location-prompt]")){t.n=4;break}return t.a(3,9);case 4:if("locationInput-megaNav-mobile"===c.id){t.n=5;break}return t.a(3,9);case 5:if(s=c.value.trim()){t.n=6;break}return t.a(3,9);case 6:return t.n=7,i.A.ensureLoaded();case 7:if(i.A.validateLocation(s)){t.n=8;break}return t.a(3,9);case 8:return e.saveAndBroadcastLocation(s),e.closeLangMenus(),t.a(3,10);case 9:a++,t.n=3;break;case 10:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}())}document.querySelector(this.store.ui.language)&&document.querySelector(".o5-header__main-mobile-language")&&t.updateMobileLangNav()}},{key:"positionsiteLangMenus",value:function(){var e=this,t=document.querySelector(this.store.ui.list),n=t?t.getBoundingClientRect().left+t.clientWidth:0,o=document.getElementById("o5-site-toggle-measurement-host");o||((o=document.createElement("div")).id="o5-site-toggle-measurement-host",o.style.position="absolute",o.style.left="-99999px",o.style.top="0",o.style.visibility="hidden",o.style.pointerEvents="none",o.style.width="0",o.style.height="0",o.style.overflow="hidden",document.body.appendChild(o)),document.querySelectorAll(this.store.ui.subNav).forEach(function(t){var r,i,a=t.parentElement?t.parentElement.clientWidth:0,l=e.store.ui.subNavHidden.replace(".",""),c=t.cloneNode(!0);if(c.classList.remove(l),c.style.position="absolute",c.style.left="0",c.style.top="0",c.style.visibility="hidden",c.style.display="block",c.style.width="auto",o.appendChild(c),i=c.getBoundingClientRect().left+(r=c.clientWidth),o.removeChild(c),r<a)t.setAttribute("style","width: ".concat(a,"px; ")),t.firstElementChild&&t.firstElementChild.setAttribute("style","width: 100%;");else if(i>n){var s=e.store.ui.subNavRight.replace(".","");t.classList.add(s)}})}},{key:"setLocationAttributies",value:function(e){var t=this;if("undefined"!=typeof google&&google.maps&&google.maps.Geocoder){var n=new google.maps.Geocoder,o=e.match(/([^,]+),\s*(\w{2})\s+(\d{5})/);if(o){var r=m(o,4),i=r[1],a=r[2],l=r[3];n.geocode({address:l},function(e,t){if(t===google.maps.GeocoderStatus.OK&&e[0]){var n={stateId:a,city:i,lat:e[0].geometry.location.lat(),lng:e[0].geometry.location.lng(),zip:l},o=JSON.stringify(n);
6(0,u.FX)("UES_PROV_LOCATION_SELECTION",o),sessionStorage.setItem("UES_LOCATION_CHANGED",o),window.dispatchEvent(new CustomEvent("UES_LOCATION_CHANGED",{detail:o}))}})}}else e&&setTimeout(function(){t.setLocationAttributies(e)},500)}},{key:"checkSiteLanClick",value:function(e){var t=!1,n=!1,o=this.store.ui.itemSelected.replace(".","");if(!this.store.siteLangClicked){for(var r=e.target;r&&r!==document.body;){if("string"==typeof r.className&&r.className.includes(o)){t=!0;break}r=r.parentElement}if("string"==typeof e.target.className&&e.target.className.includes("autocomplete-item")||e.target.getElementsByTagName("strong").length>0)return n=!0,!1;t||n||this.closeLangMenus()}this.store.siteLangClicked=!1}},{key:"checkSiteLanKey",value:function(e){var t=document.querySelector(this.store.ui.buttonSelected),n="";if(27===e.keyCode&&t){n=t.getAttribute("id"),this.closeLangMenus();var o=document.getElementById(n);o&&o.focus()}}},{key:"trapLastTab",value:function(e){if(9===e.keyCode&&!e.shiftKey){var t="jsUtilityFocus",n=document.activeElement,o=this.store.ui.itemSelected.replace(".",""),r=this.store.ui.buttonSelected.replace(".",""),i=this.store.ui.subNavHidden.replace(".",""),a=this.store.ui.dropdown.replace(".","");n&&n.classList.add(t);var l=document.querySelector(this.store.ui.itemSelected);if(l&&l.classList.remove(o),window.innerWidth>1048){var c=document.querySelector(this.store.ui.buttonSelected);c&&(c.classList.remove(r),c.setAttribute("aria-expanded","false"));var s=e.currentTarget.closest(this.store.ui.dropdown);s&&(s.classList.add(i),s.classList.remove(a))}var u=document.querySelector(".".concat(t));
6u&&(u.focus(),u.classList.remove(t))}}},{key:"closeLangMenus",value:function(){var e=document.querySelector(this.store.ui.dropdown);if(!e)return!1;var t=e.getAttribute("data-height"),n=this.store.ui,o=this.store.transitionTime,r=n.itemSelected.replace(".",""),i=n.buttonSelected.replace(".",""),a=n.subNavFadeout.replace(".",""),l=n.subNavHidden.replace(".",""),c=n.dropdown.replace(".",""),s=document.querySelector(n.itemSelected);s&&s.classList.remove(r);var u=document.querySelector(n.buttonSelected);return u&&(u.classList.remove(i),u.setAttribute("aria-expanded","false")),e.classList.add(a),void 0!==t&&e.setAttribute("style","height: 0"),window.setTimeout(function(){e.classList.add(l),e.classList.remove(c)},o),!1}},{key:"clickLangNavBtn",value:function(e){if(e.currentTarget.classList.contains("o5-site-toggle__btn-disabled"))e.preventDefault();else{e.preventDefault();var t=this.store.transitionTime,n=e.currentTarget,o=e.currentTarget.nextElementSibling,r=o?o.getAttribute("data-height"):void 0,i=this.store.ui,a=i.itemSelected.replace(".",""),l=i.buttonSelected.replace(".",""),c=i.subNavHidden.replace(".",""),s=i.dropdown.replace(".",""),u=i.subNavFadeout.replace(".","");this.store.siteLangClicked=!0,e.shiftKey&&9===e.keyCode&&this.closeLangMenus(),"false"===n.getAttribute("aria-expanded")?(this.closeLangMenus(),n.parentElement&&n.parentElement.classList.add(a),n.setAttribute("aria-expanded","true"),n.classList.add(l),o&&(o.classList.remove(c),o.classList.add(s),o.offsetHeight,o.classList.remove(u),void 0!==r&&o.setAttribute("style","height: ".concat(r)))):(n.parentElement&&n.parentElement.classList.remove(a),n.setAttribute("aria-expanded","false"),n.classList.remove(l),o&&(o.classList.add(u),void 0!==r&&o.setAttribute("style","height: 0"),setTimeout(function(){o.classList.add(c),o.classList.remove(s)},t)))}}},{key:"useLocationService",value:(d=g(v().m(function e(){var t,n=this,o=arguments;return v().w(function(e){for(;;)switch(e.n){case 0:if(t=o.length>0&&void 0!==o[0]&&o[0],navigator.geolocation){e.n=1;break}return t&&window.dispatchEvent(new CustomEvent("geolocation-denied")),e.a(2);case 1:navigator.geolocation.getCurrentPosition(function(){var e=g(v().m(function e(t){var o,r,a,l,c;return v().w(function(e){for(;;)switch(e.n){case 0:return o=t.coords,r=o.latitude,a=o.longitude,e.n=1,i.A.ensureLoaded();case 1:if(0!==i.A.getAllLocations().length){e.n=2;break}return e.a(2);case 2:if(l=i.A.getNearestLocation(r,a)){e.n=3;break}return e.a(2);case 3:c="".concat(l.city,", ").concat(l.stateId," ").concat(l.zip),n.saveAndBroadcastLocation(c,{locationValue:c,stateId:l.stateId,city:l.city,lat:l.lat,lng:l.lng,zip:l.zip});case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),function(){window.dispatchEvent(new CustomEvent("geolocation-denied"))},p({enableHighAccuracy:!1,maximumAge:6e5},t?{}:{timeout:1e4}));case 2:return e.a(2)}},e)})),function(){return d.apply(this,arguments)})},{key:"setLocationValue",value:function(e){(0,u.FX)("locationValue",e),this.setLocationAttributies(e);var t=new CustomEvent("location-update",{detail:{locationValue:e}});window.dispatchEvent(t)}},{key:"saveAndBroadcastLocation",value:function(e,t){var n,o=null!=t?t:(n=i.A.getAllLocations().find(function(t){return"".concat(t.city,", ").concat(t.stateId," ").concat(t.zip)===e}))?{locationValue:e,stateId:n.stateId,city:n.city,lat:n.lat,lng:n.lng,zip:n.zip}:null;o?((0,c.KR)(o),(0,s.s0)(o)):(0,u.FX)("locationValue",e),this.updateLocationText(e),window.dispatchEvent(new CustomEvent("location-update",{detail:{locationValue:e}})),(0,s.f8)()}},{key:"updateLocationText",value:function(e){var t=e.replace(/,([^,]*)$/," $1");document.querySelectorAll(this.store.ui.locText).forEach(function(e){e.textContent=t})}},{key:"hydrateFromCookie",value:function(){var e=(0,c.Iq)();e&&((0,s.s0)(e),this.updateLocationText(e.locationValue))}},{key:"onPageSiteLangLoad",value:function(){if(this.positionsiteLangMenus(),document.querySelectorAll(this.store.ui.button).forEach(function(e){e.classList.remove("o5-site-toggle__btn-disabled")}),document.querySelector(this.store.ui.language)){var e=document.querySelectorAll(this.store.ui.langEng);if(e.length>1){var n=e[1].querySelector("a");n&&(n.className="o5-site-toggle__sublink o5-site-toggle__Spanish",n.textContent="Español",n.setAttribute("data-mobile-label","Español"),n.setAttribute("lang","es"),n.setAttribute("qa_handles","O5-language-selector_Spanish"),n.addEventListener("click",function(){(0,l.rQ)(l.KW)})),t.isSpanish?e[1].setAttribute("aria-current","page"):e[0].setAttribute("aria-current","page");var o=e[0].querySelector("a");o&&o.addEventListener("click",function(){(0,l.rQ)(l.RH)})}var r=document.querySelector(this.store.ui.langItemBtn);r&&r.setAttribute("lang",t.isSpanish?"es":"en")}}}],r=[{key:"updateMobileUtilNav",value:function(){var e=document.querySelector(".o5-header"),n="true"===(null==e?void 0:e.getAttribute("data-enable-enhanced-mobile-view")),o=document.querySelector(".o5-mega-nav:not(.cmp-editor) .o5-mega-nav--list-ul"),r=document.querySelector(".o5-mega-nav:not(.cmp-editor) .o5-mega-nav--main");if(o||r){var i=t.isBusiness?".o5-site-toggle__personal":".o5-site-toggle__business",a=document.querySelector(i+" .o5-site-toggle__link");if(!a)return;var l=a.cloneNode(!0);if(l.textContent=l.getAttribute("data-mobile-label"),l.addEventListener("click",function(e){e.preventDefault();var t=l.getAttribute("href");t&&(window.location.href=t)}),n){var c=document.createElement("div");c.classList.add("o5-site-toggle__mobile-toggle-list","o5-site-toggle__mobile-item"),c.appendChild(l),r&&r.appendChild(c)}else{l.classList.add("dmp-link-std");var s=document.createElement("li");s.classList.add("o5-site-toggle__mobile-item"),s.appendChild(l),o&&o.appendChild(s)}}}},{key:"updateMobileLangNav",value:function(){var e=document.querySelectorAll(".o5-site-toggle__lang-eng");
6if(e.length>1){var n=e[1].querySelector("a");n&&(n.className="o5-site-toggle__sublink o5-site-toggle__Spanish",n.textContent="Español",n.setAttribute("data-mobile-label","Español"),n.setAttribute("lang","es"),n.setAttribute("qa_handles","O5-language-selector_Spanish"))}var o=document.querySelector(".o5-header"),r="true"===(null==o?void 0:o.getAttribute("data-enable-enhanced-mobile-view")),i=document.querySelector(".o5-mega-nav:not(.cmp-editor) .o5-mega-nav--list-ul"),a=document.querySelector(".o5-header__main-mobile-language");if((i||a)&&!r){var c=t.isSpanish?".o5-site-toggle__English":".o5-site-toggle__Spanish",s=document.querySelector(c);if(!s)return;var u=s.cloneNode(!0);u.textContent=u.getAttribute("data-mobile-label"),u.classList.add("dmp-link-std"),u.addEventListener("click",function(){var e=u.getAttribute("lang");"es"===e?(0,l.rQ)(l.KW):"en"===e&&(0,l.rQ)(l.RH)});var d=document.createElement("li");d.classList.add("o5-site-toggle__section"),d.classList.add("o5-site-toggle__section-mega-nav"),d.appendChild(u),i?i.appendChild(d):a&&a.appendChild(d)}}}],o&&w(n.prototype,o),r&&w(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r,d}(r.o6);o=T,A(T,"domain",document.location.hostname),A(T,"path",document.location.href),A(T,"isBusiness",o.domain.split(".")[0].indexOf("business")>=0||o.path.search("/content/business")>0),A(T,"isSpanish",-1!==o.path.indexOf("/es/")||-1!==o.path.indexOf("/es.html")),A(T,"checkElement",document.querySelector(".o5-site-toggle__language")),A(T,"langPath",document.querySelector(".o5-site-toggle__txt-lang")),A(T,"updateLang",o.checkElement?o.isSpanish?o.langPath.textContent="English":o.langPath.textContent="Español":null),A(T,"langAttr",o.checkElement?o.isSpanish?o.langPath.setAttribute("lang","es"):o.langPath.setAttribute("lang","en"):null),(0,r.fe)({componentName:"o5-header-bar",component:T});const O=T},77939(e,t,n){"use strict";n.d(t,{JA:()=>w,f8:()=>S,s0:()=>y});var o=n(1253),r=n(50263),i=n(90694),a=n(67610);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var c=["locationValue"];function s(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(u(t={},o,function(){return this}),t),p=d.prototype=l.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,u(p,"constructor",d),u(d,"constructor",c),c.displayName="GeneratorFunction",u(d,r,"GeneratorFunction"),u(p),u(p,r,"Generator"),u(p,o,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m}})()}function u(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}u=function(e,t,n,o){function i(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},u(e,t,n,o)}function d(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){d(i,o,r,a,l,"next",e)}function l(e){d(i,o,r,a,l,"throw",e)}a(void 0)})}}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function m(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var v=[function(){return window.location.pathname.includes("/editor.html")},function(){return["edit","preview","design"].some(function(e){return window.location.href.includes("wcmmode=".concat(e))})},function(){return window.location.hostname.startsWith("author-")&&window.location.hostname.endsWith(".adobeaemcloud.com")&&!window.location.href.includes("wcmmode=disabled")}];function y(e){var t=e.locationValue,n=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,c);(0,a.FX)("locationValue",t);var o=JSON.stringify(n);
6(0,a.FX)("UES_PROV_LOCATION_SELECTION",o),(0,a.FX)("UES_PROV_LOCATION_SELECTION",o,"sessionStorage"),(0,a.FX)("UES_LOCATION_CHANGED",o,"sessionStorage"),window.dispatchEvent(new CustomEvent("UES_LOCATION_CHANGED",{detail:o}))}var b=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,"modal",void 0),m(this,"previousFocus",null),m(this,"escHandler",void 0),m(this,"trapHandler",void 0),m(this,"currentVariant","prompt"),m(this,"autocompleteInitialized",!1),m(this,"geolocationPermissionDenied",!1),this.modal=t,this.escHandler=function(e){"Escape"!==e.key||t.hasAttribute("hidden")||n.hide()},this.trapHandler=function(e){if("Tab"===e.key){var n=Array.from(t.querySelectorAll('button:not([disabled]):not([hidden]), input:not([disabled]):not([hidden]), [tabindex]:not([tabindex="-1"])')).filter(function(e){return!e.closest("[hidden]")});if(0!==n.length){var o=n[0],r=n[n.length-1];e.shiftKey?document.activeElement===o&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),o.focus())}}},this.init()},t=[{key:"setupGeolocationPermissionMonitor",value:function(){var e,t=this;null!==(e=navigator.permissions)&&void 0!==e&&e.query&&navigator.permissions.query({name:"geolocation"}).then(function(e){t.applyGeolocationPermissionState(e.state),e.addEventListener("change",function(){return t.applyGeolocationPermissionState(e.state)})}).catch(function(){})}},{key:"applyGeolocationPermissionState",value:function(e){this.geolocationPermissionDenied="denied"===e,this.refreshUseLocationVisibility()}},{key:"refreshUseLocationVisibility",value:function(){var e=this.modal.querySelector("[data-location-prompt-use-location]");null==e||e.toggleAttribute("hidden",this.geolocationPermissionDenied)}},{key:"init",value:function(){var e=this;v.some(function(e){return e()})||(this.bindEvents(),this.setupGeolocationPermissionMonitor(),(0,i.Iq)()||(0,a.bi)("locationValue")||this.isOnConfiguredPath()&&(o.A.ensureLoaded(),navigator.permissions?navigator.permissions.query({name:"geolocation"}).then(function(t){"denied"===t.state?setTimeout(function(){return e.show()},300):window.addEventListener("geolocation-denied",function(){return e.show()},{once:!0})}).catch(function(){setTimeout(function(){return e.show()},600)}):setTimeout(function(){return e.show()},600)))}},{key:"isOnConfiguredPath",value:function(){var e=(this.modal.getAttribute("data-location-prompt-paths")||"").split(",").map(function(e){return e.trim()}).filter(Boolean);if(0===e.length)return!1;var t=window.location.pathname;return e.some(function(e){try{return t.includes(new URL(e).pathname)}catch(e){}var n=e.match(/^\/content\/[^/]+(\/.+)$/);return n?t.includes(n[1]):t.includes(e)})}},{key:"bindEvents",value:function(){var e,t,n,o,r,i=this,a=function(e){return i.modal.querySelector(e)};null===(e=a("[data-location-prompt-backdrop]"))||void 0===e||e.addEventListener("click",function(){return i.hide()}),null===(t=a("[data-location-prompt-skip]"))||void 0===t||t.addEventListener("click",function(){return i.hide()}),null===(n=a("[data-location-prompt-close]"))||void 0===n||n.addEventListener("click",function(){return i.hide()});var l=a("[data-location-prompt-use-location]");null==l||l.addEventListener("click",function(){return i.handleUseLocation(l)}),null===(o=a("[data-location-prompt-manual]"))||void 0===o||o.addEventListener("click",function(){return i.openManualInput()}),null===(r=a("[data-location-prompt-clear]"))||void 0===r||r.addEventListener("click",function(){return i.clearManualInput()});var c=a("[data-location-prompt-manual-input]"),s=a("[data-location-prompt-error]"),u=a("[data-location-prompt-submit]");null==u||u.addEventListener("click",function(){return i.handleManualSubmit(c,s)}),null==c||c.addEventListener("keydown",function(e){"Enter"===e.key&&(e.preventDefault(),i.handleManualSubmit(c,s))})}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"prompt";this.currentVariant=e,this.modal.setAttribute("data-location-prompt-variant",e),"picker"===e?this.preparePickerVariant():this.preparePromptVariant(),this.refreshUseLocationVisibility(),this.previousFocus=document.activeElement,this.modal.removeAttribute("hidden"),this.modal.setAttribute("aria-hidden","false"),document.body.classList.add("o5-location-prompt--open"),document.addEventListener("keydown",this.escHandler),document.addEventListener("keydown",this.trapHandler);var t="picker"===e?this.modal.querySelector("[data-location-prompt-manual-input]"):this.modal.querySelector("button:not([hidden]):not([disabled])");null==t||t.focus()}},{key:"hide",value:function(){var e;this.modal.setAttribute("hidden",""),this.modal.setAttribute("aria-hidden","true"),this.modal.setAttribute("data-location-prompt-variant","prompt"),this.currentVariant="prompt",document.body.classList.remove("o5-location-prompt--open"),document.removeEventListener("keydown",this.escHandler),document.removeEventListener("keydown",this.trapHandler),this.hideValidationError(),null===(e=this.previousFocus)||void 0===e||e.focus()}},{key:"handleUseLocation",value:(c=f(s().m(function e(t){var n,r=this;return s().w(function(e){for(;;)switch(e.n){case 0:if(navigator.geolocation){e.n=1;break}return this.openManualInput(),e.a(2);case 1:t.disabled=!0,n=function(){t.disabled=!1},navigator.geolocation.getCurrentPosition(function(){var e=f(s().m(function e(t){var i,a;return s().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,o.A.ensureLoaded();case 1:if(i=o.A.getNearestLocation(t.coords.latitude,t.coords.longitude)){e.n=2;break}return r.openManualInput(),e.a(2);case 2:a="".concat(i.city,", ").concat(i.stateId," ").concat(i.zip),r.persistAndBroadcast({locationValue:a,stateId:i.stateId,city:i.city,lat:t.coords.latitude,lng:t.coords.longitude,zip:i.zip}),r.hide(),e.n=4;break;case 3:e.p=3,e.v,r.openManualInput();case 4:return e.p=4,n(),e.f(4);case 5:return e.a(2)}},e,null,[[0,3,4,5]])}));return function(t){return e.apply(this,arguments)}}
6(),function(e){n(),e.code===e.PERMISSION_DENIED&&(r.geolocationPermissionDenied=!0,r.refreshUseLocationVisibility()),r.openManualInput()},{enableHighAccuracy:!1,timeout:8e3,maximumAge:3e5});case 2:return e.a(2)}},e,this)})),function(e){return c.apply(this,arguments)})},{key:"openManualInput",value:function(){var e=this,t=this.modal.querySelector("[data-location-prompt-manual]"),n=this.modal.querySelector("[data-location-prompt-manual-section]"),i=this.modal.querySelector("[data-location-prompt-manual-input]");this.hideValidationError(),null==n||n.removeAttribute("hidden"),"picker"!==this.currentVariant&&(null==t||t.setAttribute("hidden","")),o.A.ensureLoaded().then(function(){i&&(e.autocompleteInitialized||(r.A.autocomplete(i,o.A.getFormattedLocation()),e.autocompleteInitialized=!0),i.classList.add("autocomplete-active-input"),i.focus())})}},{key:"handleManualSubmit",value:(l=f(s().m(function e(t,n){var r,i,l,c;return s().w(function(e){for(;;)switch(e.n){case 0:if(l=null!==(r=null==t||null===(i=t.value)||void 0===i?void 0:i.trim())&&void 0!==r?r:""){e.n=1;break}return e.a(2);case 1:return e.n=2,o.A.ensureLoaded();case 2:if(o.A.validateLocation(l)){e.n=3;break}return this.showValidationError(n),null==t||t.focus(),e.a(2);case 3:this.hideValidationError(n),(c=o.A.getAllLocations().find(function(e){return"".concat(e.city,", ").concat(e.stateId," ").concat(e.zip)===l}))?this.persistAndBroadcast({locationValue:l,stateId:c.stateId,city:c.city,lat:c.lat,lng:c.lng,zip:c.zip}):((0,a.FX)("locationValue",l),window.dispatchEvent(new CustomEvent("location-update",{detail:{locationValue:l}}))),this.hide();case 4:return e.a(2)}},e,this)})),function(e,t){return l.apply(this,arguments)})},{key:"persistAndBroadcast",value:function(e){(0,i.KR)(e),y(e),window.dispatchEvent(new CustomEvent("location-update",{detail:{locationValue:e.locationValue}}))}},{key:"preparePromptVariant",value:function(){var e=this.modal.querySelector("[data-location-prompt-manual]"),t=this.modal.querySelector("[data-location-prompt-manual-section]");null==e||e.removeAttribute("hidden"),null==t||t.setAttribute("hidden",""),this.hideValidationError()}},{key:"preparePickerVariant",value:function(){var e=this.modal.querySelector("[data-location-prompt-manual-input]");e&&(e.value=this.getStoredLocationValue()),this.openManualInput()}},{key:"getStoredLocationValue",value:function(){var e;return(0,a.bi)("locationValue")||(null===(e=(0,i.Iq)())||void 0===e?void 0:e.locationValue)||""}},{key:"clearManualInput",value:function(){var e=this.modal.querySelector("[data-location-prompt-manual-input]");e&&(e.value="",this.hideValidationError(),e.focus())}},{key:"showValidationError",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.modal.querySelector("[data-location-prompt-error]");null==e||e.removeAttribute("hidden"),null==e||e.classList.remove("is--hidden"),null==e||e.setAttribute("aria-hidden","false")}},{key:"hideValidationError",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.modal.querySelector("[data-location-prompt-error]");null==e||e.setAttribute("hidden",""),null==e||e.classList.add("is--hidden"),null==e||e.setAttribute("aria-hidden","true")}}],t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,l,c}(),g=null;function w(){var e=document.querySelector("[data-location-prompt]");e&&(g=new b(e))}function S(){var e;null===(e=g)||void 0===e||e.hide()}},47521(){var e="o5MobileAlertDismissedIds",t="o5MobileAlertDismissedSiteSession",n=null;function o(e){var t;return e.dataset.bannerId||e.id||function(e){var t=e.getAttribute("aria-labelledby");return t&&t.trim().split(/\s+/).find(function(e){return e.length>0})||null}(e)||(null===(t=e.querySelector("h2"))||void 0===t?void 0:t.id)||null}function r(){if(n)return n;try{var t=sessionStorage.getItem(e);if(!t)return n=new Set;var o=JSON.parse(t);if(!Array.isArray(o))return n=new Set;var r=Array.from(new Set(o.filter(function(e){return"string"==typeof e}).map(function(e){return e.trim()}).filter(function(e){return e.length>0})));return r.length!==o.length&&sessionStorage.setItem(e,JSON.stringify(r)),n=new Set(r)}catch(e){return n=new Set}}function i(n){if("true"!==n.dataset.initialized){n.dataset.initialized="true";var i,a,l=(i=navigator.userAgent||navigator.vendor||window.opera,a=null,/android/i.test(i)?a="Android":/iPad|iPhone|iPod/.test(i)&&!window.MSStream&&(a="iOS"),{os:a}),c=n.classList.contains("o5-mobile-alert--author-visible")||"true"===n.dataset.authorMode,s=n.dataset.deepLinkUrl||"",u=n.dataset.androidStoreUrl,d=n.dataset.iosStoreUrl;if(c)n.style.display="block";else if("Android"===l.os||"iOS"===l.os){if(function(e){try{if("true"===sessionStorage.getItem(t))return!0}catch(e){}var n=o(e);return!!n&&r().has(n)}(n))return void(n.style.display="none");var f=document.querySelector(".o5-dynamic-alerts");f&&f.parentElement&&f.previousElementSibling!==n&&f.parentElement.insertBefore(n,f),n.style.display="block";var p=n.querySelector(".o5-mobile-alert-close-btn");p&&p.addEventListener("click",function(i){i.preventDefault(),i.stopPropagation(),function(n){try{sessionStorage.setItem(t,"true");var i=o(n);if(!i)return;var a=r();a.has(i)||(a.add(i),sessionStorage.setItem(e,JSON.stringify(Array.from(a))))}catch(e){}}(n),n.style.display="none"});var m=n.querySelector(".o5-mobile-alert-view-link");if(m){var h="Android"===l.os?u:d,v=s||h||"#";m.setAttribute("href",v),m.addEventListener("click",function(e){if(e.preventDefault(),e.stopPropagation(),h){var t=!1,n=function(){document.removeEventListener("visibilitychange",o),window.removeEventListener("pagehide",r),clearTimeout(i)},o=function(){document.hidden&&(t=!0,n())},r=function(){t=!0,n()};document.addEventListener("visibilitychange",o),window.addEventListener("pagehide",r);var i=window.setTimeout(function(){t||window.location.replace(h),n()},1500)}s?window.location.assign(s):h&&window.location.replace(h)})}}}}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".o5-mobile-alert-container").forEach(function(e){return i(e)}),new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEac
6h(function(e){e instanceof HTMLElement&&(e.classList.contains("o5-mobile-alert-container")&&i(e),e.querySelectorAll(".o5-mobile-alert-container").forEach(function(e){return i(e)}))})})}).observe(document.body,{childList:!0,subtree:!0})})},20294(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,a(o.key),o)}}function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}n.d(t,{A:()=>l});const l=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"ui",void 0),i(this,"element",void 0),i(this,"modifiers",void 0),i(this,"behaviorName",void 0),this.behaviorName=t.behaviorName||this.behaviorName,this.element=t.element,this.modifiers={active:"is--active",selected:"is-selected",collapsed:"is--collapsed"}},(t=[{key:"setHandlers",value:function(){return null}},{key:"start",value:function(e){this.ui=e||this.ui,this.setHandlers()}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},8184(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,a(o.key),o)}}function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}n.d(t,{A:()=>l});const l=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"ui",void 0),i(this,"store",void 0),i(this,"element",void 0),i(this,"uieName",void 0),i(this,"selector",void 0),i(this,"attrName",void 0),i(this,"componentName",void 0);var n=t.selector;if(this.store=t.store,this.element=t.element,this.attrName=t.attrName||"data-optum-library-cmp",this.componentName=t.componentName,n&&this.element){var o=this.element.querySelector('[data-optum-library-cmp="'.concat(n,'"]'));o&&(this.element=o)}},(t=[{key:"init",value:function(){this.element&&this.element.removeAttribute(this.attrName)}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},63736(e,t,n){"use strict";n.d(t,{A:()=>u});var o=n(99750),r=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,i=[].push;function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new a.fn.GetNodeElement(e,t)}function l(e,t){var n=this,o=e[0],r=e[1],i=!e[2]||e[2];if("function"==typeof e[1])t.addEventListener(o,function(e){r.call(null,e,e.detail)},i);else{var a=e[1];r=e[2],i=!e[3]||e[3];var l=void 0===e[4]||e[4];t.addEventListener(o,function(e){for(var t=e.target;t&&t!=n;t=t.parentNode)if(t.nodeType===Node.ELEMENT_NODE&&t.matches(a)){l&&e.stopPropagation(),e.delegate=t,r.call(null,e,e.detail);break}},i)}return t}function c(e,t){var n=this.length;if(n>1)for(var o=0;o<n;o++)this[o].classList[e](t);else this[0].classList[e](t)}a.fn=a.prototype=Object.assign({constructor:a,on:function(){for(var e=this.length,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];if(1===e)return new l(n,this[0]);for(var r=0;r<e;r++)new l(n,this[r]);return this},find:function(e){return a(e,this)},data:function(e){var t=e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});return(0,o._q)(this[0].dataset[t])},each:function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)},val:function(e){return void 0===e?this[0].value:(this[0].value=e,this)},prop:function(e,t){var n=this.length;if(void 0===t)return this[0][e];if(1===n)this[0][e]=t;else for(var o=0;o<n;o++)this[o][e]=t;return this},trigger:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.exists&&(t=n?new CustomEvent(e,{detail:n}):new Event(e),this[0].dispatchEvent(t)),this},html:function(e){var t=this.length;if(1===t)this[0].innerHTML=e;else for(var n=0;n<t;n++){var o=this[n];""!==o.innerHTML&&o.replaceChildren(),o.innerHTML=e}return this},attr:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.length;if(null===t)return this[0].getAttribute(e);
6if(1===n)this[0].setAttribute(e,t);else for(var o=0;o<n;o++)this[o].setAttribute(e,t);return this},addClass:function(e){return c.call(this,"add",e),this},removeClass:function(e){return c.call(this,"remove",e),this},clone:function(e,t){for(var n=e.cloneNode(null==t||t),o=Object.keys(e),r=0;r<o.length;r++){var i=o[r];"cloneNode"===i||"attributes"===i||i in n||(n[i]=e[i])}for(var a=e.attributes,l=0;l<a.length;l++){var c=a[l],s=c.name,u=c.value;n.setAttribute(s,u)}return n}});var s=a.fn.GetNodeElement=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return o===document||(o=o[0]),"string"==typeof e?(null!==(t=r.exec(e))?t[1]?(n=o.getElementById?o.getElementById(t[1]):o.querySelector(t[0]))&&(this[0]=n,this.length=1):t[2]?(n=o.getElementsByTagName(t[2]),i.apply(this,n)):t[3]&&(n=o.getElementsByClassName(t[3]),i.apply(this,n)):(n=o.querySelectorAll(e),i.apply(this,n)),this.strName=e):void 0===e.exists&&(this[0]=e,this.length=1),this.exists=this.length>0,this};s.prototype=a.fn;const u=a},77963(e,t,n){"use strict";n.d(t,{nS:()=>g.A,uA:()=>b,o6:()=>o.A,fe:()=>q});var o=n(8184),r=n(17777);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var a=o&&o.prototype instanceof s?o:s,u=Object.create(a.prototype);return l(u,"_invoke",function(n,o,r){var i,a,l,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,l=e,f.n=n,c}};function p(n,o){for(a=n,l=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(a=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,a=0))}if(r||n>1)return c;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),a=u,l=m;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,l)):f.n=l:f.v=l);try{if(s=2,i){if(a||(r="next"),t=i[r]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==c)break}catch(t){i=e,a=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),u}var c={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(l(t={},o,function(){return this}),t),p=d.prototype=s.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,l(p,"constructor",d),l(d,"constructor",u),u.displayName="GeneratorFunction",l(d,r,"GeneratorFunction"),l(p),l(p,r,"Generator"),l(p,o,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m}})()}function l(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}l=function(e,t,n,o){function i(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},l(e,t,n,o)}function c(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
6function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function m(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var v=/^\.+(js)?-/,y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m(n=u(this,t,[e]),"renderType",void 0),m(n,"shouldRender",void 0),m(n,"hasRendered",void 0),n.hasRendered=!1,n.element?n.shouldRender=!0:n.shouldRender=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,o=[{key:"init",value:(l=a().m(function e(){return a().w(function(e){for(;;)switch(e.n){case 0:if(this.element){e.n=1;break}return e.a(2);case 1:this.element.removeAttribute(this.attrName),this.componentName&&this.element.classList.add(this.componentName),this.render();case 2:return e.a(2)}},e,this)}),d=function(){var e=this,t=arguments;return new Promise(function(n,o){var r=l.apply(e,t);function i(e){c(r,n,o,i,a,"next",e)}function a(e){c(r,n,o,i,a,"throw",e)}i(void 0)})},function(){return d.apply(this,arguments)})},{key:"destroy",value:function(){if(!this.hasRendered)return null;var e=this.element.cloneNode(!1);this.element.replaceChildren(),this.element.replaceWith(e),this.element=e,this.hasRendered=!1}},{key:"beforeRender",value:function(){return null}},{key:"serializeData",value:function(){return null}},{key:"render",value:function(){if(this.destroy(),this.beforeRender(),!this.shouldRender)return null;var e=this.serializeData();e=Object.assign({},e,{ui:this.modifyUIForTemplating(this.ui),cn:this.componentName}),this.determineRenderType(e),this.afterRender(),this.hasRendered=!0}},{key:"modifyUIForTemplating",value:function(e){var t={};if(e&&0===Object.keys(e).length)return t;for(var n in this.ui){var o=this.ui[n];v.test(o)&&(t[n]=o.slice(1))}return t}},{key:"determineRenderType",value:function(e){var t=this.template(e),n=r.default.sanitize(t,{ADD_ATTR:["qa_handles","qa-handles"]});switch(this.renderType){case"prepend":this.element.insertAdjacentHTML("afterBegin",n);break;case"append":this.element.insertAdjacentHTML("beforeend",n);break;default:this.element.innerHTML=n}}},{key:"afterRender",value:function(){return null}},{key:"template",value:function(e){return e}}],o&&s(n.prototype,o),i&&s(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i,l,d}(o.A);const b=y;var g=n(20294),w=n(99750);function S(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return _(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(_(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,_(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,_(d,"constructor",s),_(s,"constructor",c),c.displayName="GeneratorFunction",_(s,r,"GeneratorFunction"),_(d),_(d,r,"Generator"),_(d,o,function(){return this}),_(d,"toString",function(){return"[object Generator]"}),(S=function(){return{w:i,m:f}})()}function _(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}_=function(e,t,n,o){function i(t,n){_(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_(e,t,n,o)}function k(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function E(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){k(i,o,r,a,l,"next",e)}function l(e){k(i,o,r,a,l,"throw",e)}a(void 0)})}}function A(e,t,n){return new MutationObserver(function(o){o.forEach(function(o){var r=[].slice.call(o.addedNodes);r.length>0&&r.every(function(o){return!o.querySelectorAll||([].slice.call(o.querySelectorAll(e)).forEac
6h(function(o){new t({element:o,attrName:(0,w.ct)(e),componentName:n})}),!1)})})})}function C(e){return T.apply(this,arguments)}function T(){return T=E(S().m(function e(t){var n,o,r,i,a,l,c;return S().w(function(e){for(;;)switch(e.n){case 0:for(n=t.component,o=t.componentName,r='[data-optum-cmp="'.concat(o,'"]'),i=document.querySelectorAll(r),a=0,l=i.length;a<l;a++)new n({element:i[a],attrName:(0,w.ct)(r),componentName:o});c=document.querySelector("body"),A(r,n,o).observe(c,{subtree:!0,childList:!0,characterData:!0});case 1:return e.a(2)}},e)})),T.apply(this,arguments)}function O(e){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",C.bind(null,e)):C(e)}function L(){return L=E(S().m(function e(t){var n,o,r,i;return S().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=t.component,e.n=1,n();case 1:return o=e.v,e.n=2,o.default;case 2:if(r=e.v){e.n=3;break}r=o;case 3:t.component=r,O(t),e.n=5;break;case 4:e.p=4,i=e.v,console.error(i);case 5:return e.a(2)}},e,null,[[0,4]])})),L.apply(this,arguments)}function q(e){var t=e.componentName,n=e.isDynamic,o=null!==document.querySelector('[data-optum-cmp="'.concat(t,'"]'));n&&o?function(e){L.apply(this,arguments)}(e):O(e)}},74029(){function e(e,n){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,n){if(e){if("string"==typeof e)return t(e,n);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){o&&(e=o);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==o.return||o.return()}finally{if(c)throw a}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var n=Element.prototype;n.replaceChildren||(n.replaceChildren=function(){for(;this.firstChild;)this.removeChild(this.firstChild);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];if(n.length>0){var r,i=e(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;this.appendChild(a instanceof Node?a:document.createTextNode(a))}}catch(e){i.e(e)}finally{i.f()}}}),n.replaceWith||(n.replaceWith=function(){if(this.parentNode){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var o=0,r=t;o<r.length;o++){var i=r[o];i instanceof Node?this.parentNode.insertBefore(i,this):this.parentNode.insertBefore(document.createTextNode(i),this)}this.parentNode.removeChild(this)}})},67610(e,t,n){"use strict";function o(e){try{return"undefined"!=typeof window?window[e]:null}catch(e){return null}}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=o(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"localStorage");if(!n)return t;try{var r=n.getItem(e);return null!=r?r:t}catch(e){return t}}function i(e,t){var n=o(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"localStorage");if(!n)return!1;try{return n.setItem(e,t),!0}catch(e){return!1}}function a(e,t){var n=r(e,null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"localStorage");if(null===n)return t;try{return JSON.parse(n)}catch(e){return t}}n.d(t,{FX:()=>i,bi:()=>r,w6:()=>a})},99750(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}
6finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Ds:()=>d,FB:()=>p,Yk:()=>y,Yq:()=>h,ZS:()=>g,_q:()=>f,ct:()=>l,ix:()=>S,lF:()=>v,n:()=>b,oG:()=>w,pu:()=>c,vA:()=>u});var a={hasNumber:/^[0-9]+$/,hasBoolean:/^[true|false]+$/};function l(e){var t=/(\w.*?)=/.exec(e);if(null!==t)return t[1]}function c(){document.querySelectorAll("a").forEach(function(e){var t=e.getAttribute("href");t&&(t.includes(".pdf")&&e.setAttribute("target","_self"),t.includes("://")&&!t.includes(document.location.hostname)&&e.setAttribute("target","_self"))})}function s(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=0,r=e.length;o<r;o++){var i=e[o].split("=");if(2===i.length){var a=i[0],l=decodeURIComponent(i[1]).replace(/\+/g," ");/^[a-zA-Z0-9_]+$/.test(a)&&(t[a]=n?f(l):l)}}}function u(){var e,t=window.location.search.substring(1),n={};return void 0!==t&&""!==t&&(e=t.split(/&(?=[a-z])/g),("localhost"===window.location.hostname||"localhost"!==window.location.hostname&&""!==t)&&s(e,n),n)}function d(){var e=new Uint32Array(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1);return window.crypto.getRandomValues(e),1===e.length?e[0]:e}function f(e){var t=e;return a.hasNumber.test(e)&&(t=parseInt(e)),a.hasBoolean.test(e)&&(t=JSON.parse(e)),t}function p(e){var t=null;switch(e.toUpperCase()){case"AL":t="Alabama";break;case"AK":t="Alaska";break;case"AZ":t="Arizona";break;case"AR":t="Arkansas";break;case"CA":t="California";break;case"CO":t="Colorado";break;case"CT":t="Connecticut";break;case"DE":t="Delaware";break;case"FL":t="Florida";break;case"GA":t="Georgia";break;case"HI":t="Hawaii";break;case"ID":t="Idaho";break;case"IL":t="Illinois";break;case"IN":t="Indiana";break;case"IA":t="Iowa";break;case"KS":t="Kansas";break;case"KY":t="Kentucky";break;case"LA":t="Louisiana";break;case"ME":t="Maine";break;case"MD":t="Maryland";break;case"MA":t="Massachusetts";break;case"MI":t="Michigan";break;case"MN":t="Minnesota";break;case"MS":t="Mississippi";break;case"MO":t="Missouri";break;case"MT":t="Montana";break;case"NE":t="Nebraska";break;case"NV":t="Nevada";break;case"NH":t="New Hampshire";break;case"NJ":t="New Jersey";break;case"NM":t="New Mexico";break;case"NY":t="New York";break;case"NC":t="North Carolina";break;case"ND":t="North Dakota";break;case"OH":t="Ohio";break;case"OK":t="Oklahoma";break;case"OR":t="Oregon";break;case"PA":t="Pennsylvania";break;case"RI":t="Rhode Island";break;case"SC":t="South Carolina";break;case"SD":t="South Dakota";break;case"TN":t="Tennessee";break;case"TX":t="Texas";break;case"UT":t="Utah";break;case"VT":t="Vermont";break;case"VA":t="Virginia";break;case"WA":t="Washington";break;case"WV":t="West Virginia";break;case"WI":t="Wisconsin";break;case"WY":t="Wyoming";break;case"AS":t="American Samoa";break;case"DC":t="District of Columbia";break;case"GU":t="Guam";break;case"MP":t="Northern Mariana Islands";break;case"PR":t="Puerto Rico";break;case"VI":t="Virgin Islands"}return t}function m(e){if("click"==e.type||"keydown"==e.type&&(13===e.keyCode||32===e.keyCode)){e.preventDefault();window.location.href;var t,n,o,r=document.createElement("input"),i=e.currentTarget;t=i.offsetLeft,o=(n=window.innerWidth-(t+8))-158,r.setAttribute("value",window.location.href),document.body.appendChild(r),r.select(),document.execCommand("copy"),i.insertAdjacentHTML("beforeend",'<span  style="opacity:0;" class="text-component__tooltip" id="custom-tooltip"><span aria-live="polite" id="shareTooltip" class="text-component__tooltip__text"><svg class="icon icon--link" aria-hidden="true" width="18" height="18" viewBox="0 -960 960 960" fill="currentColor"><path d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"/></svg>copied</span></span>');var a=i.getElementsByTagName("span")[0];a.style.cssText="opacity:1; justify-content:center;transition: opacity .5s ease-in-out;",n<182&&(a.style.left=o+"px"),a.setAttribute("aria-hidden","false"),i.setAttribute("aria-describedby","shareTooltip"),i.focus(),document.body.removeChild(r);e.currentTarget;setTimeout(function(){a.style.cssText="opacity:0;",a.remove(),a.setAttribute("aria-hidden","true"),a.setAttribute("aria-describedby","")},3e3)}}function h(e){var t,n,r,i,a,l,c,s,u,d,f,p,m,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(h||(h="mm/dd/yyyy"),l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
6ay","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],s=(e=e&&"string"==typeof e||e&&"object"===o(e)?new Date(e):new Date).getHours(),u=e.getMinutes(),d=h,f="",s>=12?(s=s>12?s-12:s,f="PM"):(s=0===s?12:s,f="AM"),t=e.getMonth()+1,i=l[e.getDay()],n=(a=c[e.getMonth()]).slice(0,3),r=i.slice(0,3),m=e.toTimeString().match(/[A-Z]/g),Array.isArray(m)){if(m.length>3){var v=m.length;m=m.slice(v-3,v)}m=m.join("")}return 1===t.toString().length&&(t="0"+t),u<10&&(u="0"+u),p={mm:t,mmm:n,MMM:n.toUpperCase(),month:a,dd:e.getDate(),ddd:r,DDD:r.toUpperCase(),day:i,yyyy:e.getFullYear(),h:s,m:u,a:f,zzz:m},h.match(/\w+[a-zA-Z]?/g).forEach(function(e){""!==e&&(d=d.replace(e,p[e]))}),d}function v(e){var t,n=/[,_/'&%-]/g;return"encode"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"decode")?t={_:"%5F","/":"%2F","'":"%27","-":"%2D",",":"%2C","&":"%26","%":"%25"}:(n=/\%2C|\%20|\%5F|\%2F|\%7C|\%27|\%25|\%26|\%2D/g,t={"%2D":"-","%5F":"_","%20":" ","%2F":"/","%27":"'","%2C":",","%26":"&","%7C":"|","%25":"%"}),e.replace(n,function(e){return t[e]})}function y(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e]}function b(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=window.location.origin,n=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var o=t[n].split("=");if(o[0]==e)return o[1]}return"false"}("devmode");return!(!(t.indexOf("dev-")||t.indexOf("test-")||t.indexOf("localhost"))||"true"!==n||e)||!(!e||"true"!==n)}function g(e){var t={};return e&&Object.keys(e).length>0&&Object.keys(e).forEach(function(n){t[n]=e[n].slice(1)}),t}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:800,t=document.documentElement.scrollTop||document.body.scrollTop,n=performance.now();requestAnimationFrame(function o(r){var i=r-n,a=Math.min(i/e,1),l=.5*(1-Math.cos(Math.PI*a)),c=t*(1-l);document.documentElement.scrollTop=c,document.body.scrollTop=c,a<1&&requestAnimationFrame(o)})}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.querySelector(".qr-badge")||e.querySelector(".qr-badge-light");if(t&&function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"matches";if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]){var n=window.navigator.userAgent,o=/Macintosh/i.test(n)&&navigator.maxTouchPoints>1;return/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile/i.test(n)||o}return window.matchMedia(e)[t]}()){var n,o,r=document.createElement("a"),i=document.createElement("img"),a={googlePlay:{badgeImg:"".concat(window.location.origin,"/content/dam/optum5/badges/badge-google-play.svg"),badgeImgLight:"".concat(window.location.origin,"/content/dam/optum5/badges/get-it-on-google-play-badge-white.svg"),altText:"Get it on Google Play",urls:{default:"https://play.google.com/store/apps",optumBank:"https://play.google.com/store/apps/details?id=com.optum.mobile.OptumBank&hl=en_US",optumRx:"https://play.google.com/store/apps/details?id=com.optum.rx",hbpV1:"https://play.google.com/store/apps/details?id=com.solutran.otc&pcampaignid=web_share",hbpV2:"https://play.google.com/store/apps/details?id=com.uhg.ace"}},appStore:{badgeImg:"".concat(window.location.origin,"/content/dam/optum5/badges/download-on-app-store-badge-us-uk-rgb-black.svg"),badgeImgLight:"".concat(window.location.origin,"/content/dam/optum5/badges/download-on-app-store-badge-us-uk-rgb-white.svg"),altText:"Download on the App Store",urls:{default:"https://apps.apple.com/",optumBank:"https://apps.apple.com/us/app/optum-bank/id1322690077",optumRx:"https://apps.apple.com/us/app/optumrx/id941641944",hbpV1:"https://apps.apple.com/us/app/healthy-benefits-plus/id1442107413",hbpV2:"https://apps.apple.com/us/app/healthy-benefits/id6670488991"}}},l=t.classList.contains("qr-badge-light"),c=t.classList.contains("optumbank"),s=t.classList.contains("optumrx"),u=t.classList.contains("hbpv1"),d=t.classList.contains("hbpv2");if(/Android/i.test(window.navigator.userAgent))l?(i.src=a.googlePlay.badgeImgLight,r.className="qr-badge-light__downloadAppBtn",i.className="qr-badge-light__badge-img"):(i.src=a.googlePlay.badgeImg,r.className="qr-badge__downloadAppBtn",i.className="qr-badge__badge-img"),i.alt=a.googlePlay.altText,r.href=a.googlePlay.urls.default,s&&(r.href=a.googlePlay.urls.optumRx),u&&(r.href=a.googlePlay.urls.hbpV1),d&&(r.href=a.googlePlay.urls.hbpV2),c&&(r.href=a.googlePlay.urls.optumBank);else{if(n=window.navigator.userAgent,o=/Macintosh/i.test(n)&&navigator.maxTouchPoints>1,!/iPhone|iPad|iPod/i.test(n)&&!o)return;l?(i.src=a.appStore.badgeImgLight,r.className="qr-badge-light__downloadAppBtn",i.className="qr-badge-light__badge-img"):(i.src=a.appStore.badgeImg,r.className="qr-badge__downloadAppBtn",i.className="qr-badge__badge-img"),i.alt=a.appStore.altText,r.href=a.appStore.urls.default,c&&(r.href=a.appStore.urls.optumBank),s&&(r.href=a.appStore.urls.optumRx),u&&(r.href=a.appStore.urls.hbpV1),d&&(r.href=a.appStore.urls.hbpV2)}r.target="_self",r.rel="noopener noreferrer",r.appendChild(i),t.replaceWith(r)}}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".jsShareCopy").forEach(function(e){e.setAttribute("role","button"),e.setAttribute("tabindex","0")}),document.addEventListener("click",function(e){var t=e.target;t.closest(".text-component__socialIcon")&&function(e){var t=e.target.parentElement;"click"!=e.type&&("keydown"!=e.type||13!==e.keyCode&&32!==e.keyCode)||t.classList.contains("jsShareCopy")||(t.getAttribute("href").indexOf("facebook")>-1&&t.setAttribute("href",encodeURI("http://facebook.com/sharer.php?u="+window.location.href)),t.getAttribute("href").indexOf("twitter")>-1&&t.setAttribute("href",encodeURI("http://twitter.com/share?url="+window.location.href)),t.getAttribute("href").indexOf("linkedin")>-1&&t.setAttribute("href",encodeURI("http://www.linkedin.com/cws/share?url="+window.location.href)),t.getAttribute("href").indexOf("pinterest")>-1&&t.setAttribute("href",encodeURI("https://pinterest.com/pin/create/button/?url="+window.location.href)),t.getAttribute("href").indexOf("mailto")>
6-1&&t.setAttribute("href",encodeURI("mailto:?subject=I wanted you to see this site&body=Check out this site:"+window.location.href)))}(e),t.closest(".jsShareCopy")&&m(e)}),document.addEventListener("keydown",function(e){e.target.closest(".jsShareCopy")&&m(e)}),document.querySelectorAll(".text-component.text-inner p .dmp-btn--md,.text-component.text-inner p .dmp-btn--lg,.text-component.text-inner p .dmp-btn--sm").forEach(function(e){"P"==e.parentElement.tagName&&e.parentElement.classList.add("text-component__buttonSpace")}),function(){var e=window.location.href.indexOf("?");if(e>0){window.location.href.substring(e+1).split("&").forEach(function(e){var t=r(e.split("="),2),n=t[0],o=t[1];n&&o&&["utm_campaign","utm_medium","utm_term","utm_content","utm_source","utm_referrer","utm_sfgocampaignid","cid"].includes(n)&&sessionStorage.setItem(n,o)})}document.querySelectorAll("a").forEach(function(e){var t=e.getAttribute("href");if(t){var n=["utm_campaign","utm_medium","utm_term","utm_content","utm_source","utm_referrer","utm_sfgocampaignid","cid","CID"].filter(function(e){return new URLSearchParams(window.location.search).has(e)}).map(function(e){var t=sessionStorage.getItem(e);return t?"".concat(e,"=").concat(t):null}).filter(Boolean).join("&");n&&(t=t.includes("?")?"".concat(t,"&").concat(n):"".concat(t,"?").concat(n),e.setAttribute("href",t))}})}()})},19952(e,t,n){"use strict";n.d(t,{A:()=>m});var o=n(77963),r=n(99750),i=n(17777);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function c(e,t,n){return t=u(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}const m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(n=c(this,t,[e]),"name",void 0),f(n,"keyCodes",void 0),f(n,"isExpanded",void 0),f(n,"currActualSelect",void 0),f(n,"currActiveSelectMenu",void 0),f(n,"selectedOptionIndex",void 0),f(n,"parentSelector",void 0),n.modifiers={focused:"is--focused",selected:"is--selected",collapsed:"is--collapsed"},n.name="uib-customselect",n.keyCodes=[9,13,40,38],n.isExpanded=!1,n.currActualSelect=null,n.currActiveSelectMenu=null,n.selectedOptionIndex=0,n.parentSelector=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,o=[{key:"start",value:function(){var e=(0,r.Ds)(1),t=this.name;this.ui={select:"[data-uib-custom-select]",menu:".".concat(t,"__menu"),wrapper:".".concat(t,"__wrapper"),customSelect:".".concat(t),customOption:".js-".concat(t,"-option"),selectBtn:".js-".concat(t,"-btn"),display:".js-".concat(t,"-selected-value"),uniqueId:"".concat(t,"-").concat(e)},this.setup(),this.handlers(this.parentSelector),this.parentSelector=null}},{key:"setup",value:function(){var e=this,t=["","#","none"],n=this.parentSelector instanceof HTMLElement?this.parentSelector:this.parentSelector&&this.parentSelector.length>0?this.parentSelector[0]:null,o=n?n.querySelectorAll(this.ui.select):[],r=this.name;if(0===o.length)return!1;o.forEach(function(n){var o=n.value,a=n.querySelectorAll("option"),l="",c=n.getAttribute("label-id");if(a.length>0){var s,u=n.classList,d=[],f=0,p=Array.from(a).slice(0,4);a.forEach(function(n){var i=n.value,a=o===i,c=a?" is--selected":"",u=e.getOptionAttributes(n),d=t.includes(i);(a||!a&&d)&&(s=n.textContent.trim()),l+='<div class="'.concat(r,"__option dmp-type__body-2 ").concat("js-uib-customselect-option"+c,'"\n                        data-').concat(r,'-option-index="').concat(f,'"\n                        data-').concat(r,'-value="').concat(i,'" aria-selected="false"\n                        ').concat(u,'\n                        tabindex="-1" role="option">\n                        ').concat(n.textContent.trim(),"\n                    </div>"),f+=1}),u&&u.length>0&&u.forEach(function(e){-1!==e.indexOf("js-")||d.includes(e)||d.push(e)}),s=p[0].textContent.trim();var m=n.parentElement;if(m&&!m.classList.contains("uib-customselect")){n.setAttribute("tabindex","-1");var h=document.createElement("div");h.className="uib-customselect",m.insertBefore(h,n),h.appendChild(n);var v=i.default.sanitize(e.template(l,s,d,c),{ADD_ATTR:["qa_handles","qa-handles"]});n.insertAdjacentHTML("afterend",v)}}})}},{key:"getOptionAttributes",value:function(e){var t=["class","value","selected","data-qahandle"],n=e.attributes,o=[];
6return Array.from(n).forEach(function(e){t.includes(e.name)||o.push("".concat(e.name,'="').concat(e.value,'"'))}),o.length>0?o.join(" "):""}},{key:"template",value:function(e,t,n,o){var i=this.name,a=(0,r.Ds)();if(o){var l=document.querySelector("select[label-id='".concat(o,"']"));l&&l.removeAttribute("label-id")}return'<div class="'.concat(i,"__wrapper ").concat(n.join(" "),'">\n            <button class="').concat(i,"__btn dmp-type__body-2 js-").concat(i,"-btn ").concat(this.ui.uniqueId,'__btn" aria-controls="').concat(a,'" ').concat(o?'aria-labelledby="'.concat(o,'"'):'aria-label="Select Option"','\n             role="combobox" aria-expanded="false" aria-haspopup="listbox" qa_handles="dropdown_select_button" tabindex="0">\n                <span class="js-').concat(i,'-selected-value">').concat(t,'</span>\n                <svg class="').concat(i,'__icon icon icon--arrow-drop-down" aria-hidden="true" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg>\n            </button>\n            <div class="').concat(i,'__menu is--collapsed" id="').concat(a,'" qa_handles="dropdown_menu" role="listbox" ').concat(o?'aria-labelledby="'.concat(o,'"'):'aria-label="Select Option"',">").concat(e,"</div>\n        </div>")}},{key:"handlers",value:function(e){var t=this,n=e instanceof HTMLElement?e:e&&e.length>0?e[0]:null,o=n?n.querySelectorAll(".".concat(this.ui.uniqueId,"__btn")):[],r=document.querySelectorAll(".js-uib-customselect-option");o.forEach(function(e){e.addEventListener("click",t.onOpenMenu.bind(t)),e.addEventListener("keydown",t.onOpenMenu.bind(t))}),r.forEach(function(e){e.addEventListener("mouseover",t.onMenuhover.bind(t))}),document.addEventListener("click",this.onClickOutsideCloseMenu.bind(this))}},{key:"onMenuhover",value:function(e){var t=e.currentTarget.parentElement.querySelector(".".concat(this.modifiers.selected));t&&t.blur()}},{key:"onOpenMenu",value:function(e){var t=this;if("keydown"===e.type){var n=e.keyCode||e.which;if(![40].includes(n))return;e.preventDefault()}var o=e.currentTarget,r=o.nextElementSibling,i=this.modifiers.collapsed,a=document.querySelectorAll(".uib-customselect__btn");if(Array.from(a).filter(function(e){return e!==o}).forEach(function(e){var n=e.nextElementSibling;n&&!n.classList.contains("is--collapsed")&&e!==o&&t.closeActiveMenu()}),r&&r.classList.contains(i)){var l=o.closest(this.ui.wrapper),c=l?l.previousElementSibling:null,s=r.querySelector(".".concat(this.modifiers.selected));if(r.querySelectorAll(this.ui.customOption).forEach(function(e){e.addEventListener("click",function(e){return t.onSelectOption(o,e)}),e.addEventListener("keydown",function(e){return t.onSelectOption(o,e)}),e.addEventListener("keypress",function(e){return t.onClickAlphabet(o,e)})}),r.classList.remove(i),o.setAttribute("aria-expanded","true"),setTimeout(function(){r.offsetHeight>300&&(r.style.maxHeight="300px",r.style.overflowY="scroll")},0),s){var u=s.getAttribute("data-".concat(this.name,"-option-index"));this.selectedOptionIndex=u?parseInt(u):0}var d=o.getBoundingClientRect(),f=window.innerHeight,p=r.offsetHeight,m=f-d.bottom,h=d.top;m<p&&h>m?r.classList.add("flip-up"):r.classList.remove("flip-up"),s&&s.focus(),this.currActualSelect=c,this.currActiveSelectMenu=r}else this.closeActiveMenu()}},{key:"onClickOutsideCloseMenu",value:function(e){var t=e.target.closest(this.ui.customSelect),n=this.currActiveSelectMenu;null!==t||null===n||n.classList.contains(this.modifiers.collapsed)||this.closeActiveMenu()}},{key:"closeActiveMenu",value:function(){null!==this.currActiveSelectMenu&&(this.currActiveSelectMenu.classList.add(this.modifiers.collapsed),this.currActiveSelectMenu.classList.contains("flip-up")&&this.currActiveSelectMenu.classList.remove("flip-up"),this.currActiveSelectMenu=null,this.currActualSelect=null,document.querySelectorAll(this.ui.selectBtn).forEach(function(e){e.setAttribute("aria-expanded","false")}))}},{key:"onSelectOption",value:function(e,t){var n,o,r,i,a,l=t.keyCode||t.which;if("keydown"===t.type){if(!this.keyCodes.includes(l)&&27!==l)return;9!==l&&t.preventDefault()}if(27!==l){var c;o=t.currentTarget,r=this.modifiers.selected;var s=o.parentElement;if(i=s?s.querySelector(".".concat(r)):null,a=o.getAttribute("data-".concat(this.name,"-value")),40===l||38===l){var u=o.getAttribute("data-".concat(this.name,"-option-index"));
6return u&&(this.selectedOptionIndex=parseInt(u)),void this.handleMenuKeyboardNav(t)}var d=e.querySelector(this.ui.display);d&&(d.textContent=o.textContent.trim()),i&&i.classList.remove(r);var f=null===(c=t.currentTarget.closest(".uib-customselect__menu"))||void 0===c?void 0:c.querySelectorAll(".uib-customselect__option");if(f&&f.forEach(function(e){return e.setAttribute("aria-selected","false")}),!o.classList.contains(r)&&(o.classList.add(r),o.setAttribute("aria-selected","true"),null!==this.currActualSelect)){this.currActualSelect.value=a;var p=new Event("change",{bubbles:!0});this.currActualSelect.dispatchEvent(p)}}this.closeActiveMenu(),"keydown"===t.type&&9!==l&&setTimeout(function(){e.focus()},300);var m=null===(n=t.currentTarget.closest(".uib-customselect__menu"))||void 0===n?void 0:n.parentElement;m&&9!==l&&m.focus()}},{key:"onClickAlphabet",value:function(e,t){var n=this,o=t.which||t.keyCode,r=[],i="",a=this.currActiveSelectMenu.querySelectorAll(this.ui.customOption);if(o>=97&&o<=122||o>=65&&o<=90){var l=String.fromCharCode(o);if(l!=i){r=[];for(var c=0;c<a.length;c++)a[c].textContent.trim().toLowerCase().startsWith(l)&&r.push(c)}if(r.length>0){var s=r.findIndex(function(e){return e>n.selectedOptionIndex}),u=-1!==s?r[s]:r[0];if(null!=u){this.selectedOptionIndex=u;var d=a[this.selectedOptionIndex];d&&d.focus()}}i=l}}},{key:"handleMenuKeyboardNav",value:function(e){var t=e.keyCode||e.which,n=this.currActiveSelectMenu.querySelectorAll(this.ui.customOption),o=Array.from(n),r=this.selectedOptionIndex;switch(t){case 38:for(r=this.selectedOptionIndex-1;r>=0;){var i;if(null===(i=o[r])||void 0===i||!i.hasAttribute("disabled")){this.selectedOptionIndex=r;break}r--}if(r<0)return!1;break;case 40:for(r=this.selectedOptionIndex+1;r<n.length;){var a;if(null===(a=o[r])||void 0===a||!a.hasAttribute("disabled")){this.selectedOptionIndex=r;break}r++}if(r>=n.length)return!1;break;default:return}var l=o[this.selectedOptionIndex];l&&l.focus()}}],o&&l(n.prototype,o),a&&l(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(o.nS)},22705(e,t,n){"use strict";var o=!1;function r(){if(!o&&"undefined"!=typeof document)if(document.getElementById("svg-sprite-container"))o=!0;else{var e=function(){if(document.getElementById("svg-sprite-container"))o=!0;else{var e=document.createElement("div");e.id="svg-sprite-container",e.setAttribute("aria-hidden","true"),e.style.cssText="position: absolute; width: 0; height: 0; overflow: hidden;",e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">\n<symbol id="icon-chevron-right" viewBox="0 -960 960 960"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></symbol>\n<symbol id="icon-chevron-left" viewBox="0 -960 960 960"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></symbol>\n<symbol id="icon-chevron-down" viewBox="0 -960 960 960"><path d="M480-360 280-560h400L480-360Z"/></symbol>\n<symbol id="icon-arrow-back" viewBox="0 -960 960 960"><path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/></symbol>\n<symbol id="icon-arrow-forward" viewBox="0 -960 960 960"><path d="M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z"/></symbol>\n<symbol id="icon-arrow-left-alt" viewBox="0 -960 960 960"><path d="M400-80 0-480l400-400 56 57-343 343 343 343-56 57Z"/></symbol>\n<symbol id="icon-arrow-right-alt" viewBox="0 -960 960 960"><path d="m560-80-56-57 343-343-343-343 56-57 400 400L560-80Z"/></symbol>\n<symbol id="icon-arrow-drop-down" viewBox="0 -960 960 960"><path d="M480-360 280-560h400L480-360Z"/></symbol>\n<symbol id="icon-expand-more" viewBox="0 -960 960 960"><path d="M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"/></symbol>\n<symbol id="icon-expand-less" viewBox="0 -960 960 960"><path d="m296-345-56-56 240-240 240 240-56 56-184-184-184 184Z"/></symbol>\n<symbol id="icon-expand-circle-up" viewBox="0 -960 960 960"><path d="m296-345-56-56 240-240 240 240-56 56-184-184-184 184Zm184 265q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q
6-54 54-127 85.5T480-80Z"/></symbol>\n<symbol id="icon-close" viewBox="0 -960 960 960"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></symbol>\n<symbol id="icon-cancel" viewBox="0 -960 960 960"><path d="m336-280 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144 56 56ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></symbol>\n<symbol id="icon-check" viewBox="0 -960 960 960"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></symbol>\n<symbol id="icon-check-circle" viewBox="0 -960 960 960"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></symbol>\n<symbol id="icon-check-box" viewBox="0 -960 960 960"><path d="m424-312 282-282-56-56-226 226-114-114-56 56 170 170ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z"/></symbol>\n<symbol id="icon-check-box-outline-blank" viewBox="0 -960 960 960"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Z"/></symbol>\n<symbol id="icon-share" viewBox="0 -960 960 960"><path d="M720-80q-50 0-85-35t-35-85q0-7 1-14.5t3-13.5L322-392q-17 15-38 23.5t-44 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q23 0 44 8.5t38 23.5l282-164q-2-6-3-13.5t-1-14.5q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-23 0-44-8.5T638-672L356-508q2 6 3 13.5t1 14.5q0 7-1 14.5t-3 13.5l282 164q17-15 38-23.5t44-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Z"/></symbol>\n<symbol id="icon-print" viewBox="0 -960 960 960"><path d="M640-640v-120H320v120h-80v-200h480v200h-80Zm-480 80h640-640Zm560 100q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320Zm80 80H240v-160H80v-240q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v240H720v160Z"/></symbol>\n<symbol id="icon-download" viewBox="0 -960 960 960"><path d="M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"/></symbol>\n<symbol id="icon-download-for-offline" viewBox="0 -960 960 960"><path d="M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></symbol>\n<symbol id="icon-email" viewBox="0 -960 960 960"><path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"/></symbol>\n<symbol id="icon-mail" viewBox="0 -960 960 960"><path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"/></symbol>\n<symbol id="icon-link" viewBox="0 -960 960 960"><path d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"/></symbol>\n<symbol id="icon-error" viewBox="0 -960 960 960"><path d="M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></symbol>\n<symbol id="icon-filter-list" viewBox="0 -960 960 960"><path d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></symbol>
6\n<symbol id="icon-location-on" viewBox="0 -960 960 960"><path d="M480-480q33 0 56.5-23.5T560-560q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 33 23.5 56.5T480-480Zm0 294q122-112 181-203.5T720-552q0-109-69.5-178.5T480-800q-101 0-170.5 69.5T240-552q0 71 59 162.5T480-186Zm0 106Q319-217 239.5-334.5T160-552q0-150 96.5-239T480-880q127 0 223.5 89T800-552q0 100-79.5 217.5T480-80Z"/></symbol>\n<symbol id="icon-pin-drop" viewBox="0 -960 960 960"><path d="M480-320q33 0 56.5-23.5T560-400q0-33-23.5-56.5T480-480q-33 0-56.5 23.5T400-400q0 33 23.5 56.5T480-320Zm0 240Q339-186 259.5-313.5T180-552q0-150 96.5-239T480-880q107 0 203.5 89T780-552q0 111-79.5 238.5T480-80ZM200-80v-80h560v80H200Z"/></symbol>\n<symbol id="icon-near-me" viewBox="0 -960 960 960"><path d="m600-120-240-84-186 72q-20 8-37-4.5T120-170v-560q0-13 7.5-23t20.5-15l212-72 240 84 186-72q20-8 37 4.5t17 33.5v560q0 13-7.5 23T812-192l-212 72Zm-40-98v-468l-160-56v468l160 56Z"/></symbol>\n<symbol id="icon-calendar-month" viewBox="0 -960 960 960"><path d="M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z"/></symbol>\n<symbol id="icon-calendar-add-on" viewBox="0 -960 960 960"><path d="M680-80v-120H560v-80h120v-120h80v120h120v80H760v120h-80Zm-480 0q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v270q-19-9-39-15t-41-9v-166H200v400h270q3 21 9 41t15 39H200ZM200-560h560v-80H200v80Zm0 0v-80 80Z"/></symbol>\n<symbol id="icon-schedule" viewBox="0 -960 960 960"><path d="m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z"/></symbol>\n<symbol id="icon-tv" viewBox="0 -960 960 960"><path d="M80-120v-80h80v-520q0-33 23.5-56.5T240-800h480q33 0 56.5 23.5T800-720v520h80v80H80Zm160-80h480v-520H240v520Zm0 0v-520 520Z"/></symbol>\n<symbol id="icon-group" viewBox="0 -960 960 960"><path d="M0-240v-63q0-43 44-70t116-27q13 0 25 .5t23 2.5q-14 21-21 44t-7 48v65H0Zm240 0v-65q0-32 17.5-58.5T307-410q32-20 76.5-30t96.5-10q53 0 97.5 10t76.5 30q32 20 49 46.5t17 58.5v65H240Zm540 0v-65q0-26-6.5-49T754-397q11-2 22.5-2.5t23.5-.5q72 0 116 26.5t44 70.5v63H780Zm-455-80h311q-10-20-55.5-35T480-370q-55 0-100.5 15T325-320ZM160-440q-33 0-56.5-23.5T80-520q0-34 23.5-57t56.5-23q34 0 57 23t23 57q0 33-23 56.5T160-440Zm640 0q-33 0-56.5-23.5T720-520q0-34 23.5-57t56.5-23q34 0 57 23t23 57q0 33-23 56.5T800-440Zm-320-40q-50 0-85-35t-35-85q0-51 35-85.5t85-34.5q51 0 85.5 34.5T600-600q0 50-34.5 85T480-480Z"/></symbol>\n<symbol id="icon-cached" viewBox="0 -960 960 960"><path d="M480-80q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440h80q0 117 81.5 198.5T480-160q117 0 198.5-81.5T760-440q0-117-81.5-198.5T480-720h-6l62 62-56 58-160-160 160-160 56 58-62 62h6q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-440q0 75-28.5 140.5t-77 114q-48.5 48.5-114 77T480-80Z"/></symbol>\n<symbol id="icon-play-circle" viewBox="0 -960 960 960"><path d="m380-300 280-180-280-180v360ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></symbol>\n<symbol id="icon-pause-circle" viewBox="0 -960 960 960"><path d="M360-320h80v-320h-80v320Zm160 0h80v-320h-80v320ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q
6-54 54-127 85.5T480-80Z"/></symbol>\n<symbol id="icon-replay-10" viewBox="0 -960 960 960"><path d="M480-80q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440h80q0 117 81.5 198.5T480-160q117 0 198.5-81.5T760-440q0-117-81.5-198.5T480-720h-6l62 62-56 58-160-160 160-160 56 58-62 62h6q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-440q0 75-28.5 140.5t-77 114q-48.5 48.5-114 77T480-80ZM360-310v-180h-40v-50h90v230h-50Zm140 0q-17 0-28.5-11.5T460-350v-140q0-17 11.5-28.5T500-530h60q17 0 28.5 11.5T600-490v140q0 17-11.5 28.5T560-310h-60Zm10-50h40v-120h-40v120Z"/></symbol>\n<symbol id="icon-forward-10" viewBox="0 -960 960 960"><path d="M480-80q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440q0-75 28.5-140.5t77-114q48.5-48.5 114-77T480-800h6l-62-62 56-58 160 160-160 160-56-58 62-62h-6q-117 0-198.5 81.5T200-440q0 117 81.5 198.5T480-160q117 0 198.5-81.5T760-440h80q0 75-28.5 140.5t-77 114q-48.5 48.5-114 77T480-80ZM360-310v-180h-40v-50h90v230h-50Zm140 0q-17 0-28.5-11.5T460-350v-140q0-17 11.5-28.5T500-530h60q17 0 28.5 11.5T600-490v140q0 17-11.5 28.5T560-310h-60Zm10-50h40v-120h-40v120Z"/></symbol>\n<symbol id="icon-volume-up" viewBox="0 -960 960 960"><path d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320Z"/></symbol>\n<symbol id="icon-volume-off" viewBox="0 -960 960 960"><path d="M792-56 671-177q-25 16-53 27.5T560-131v-82q14-5 27.5-10t25.5-12L480-368v208L280-360H120v-240h128L56-792l56-56 736 736-56 56Zm-8-232-58-58q17-31 25.5-65t8.5-70q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 53-14.5 102T784-288ZM650-422l-90-90v-130q47 22 73.5 66t26.5 96q0 15-2.5 29.5T650-422ZM480-592 376-696l104-104v208Z"/></symbol>\n<symbol id="icon-linkedin" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></symbol>\n<symbol id="icon-facebook" viewBox="0 0 24 24"><path d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"/></symbol>\n<symbol id="icon-twitter" viewBox="0 0 24 24"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></symbol>\n<symbol id="icon-stethoscope" viewBox="0 -960 960 960"><path d="M540-80q-108 0-184-76t-76-184v-23q-86-14-143-80.5T80-600v-200h120v-80h80v160h-80v120q0 66 47 113t113 47q66 0 113-47t47-113v-120h-80v-160h80v80h120v200q0 90-57 156.5T440-363v23q0 75 52.5 127.5T620-160q75 0 127.5-52.5T800-340v-67q-35-12-57.5-43T720-520q0-50 35-85t85-35q50 0 85 35t35 85q0 39-22.5 70T880-407v67q0 108-76 184T620-80h-80Zm300-400q17 0 28.5-11.5T880-520q0-17-11.5-28.5T840-560q-17 0-28.5 11.5T800-520q0 17 11.5 28.5T840-480Z"/></symbol>\n<symbol id="icon-search" viewBox="0 -960 960 960"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></symbol>\n<symbol id="icon-help" viewBox="0 -960 960 960"><path d="M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></symbol>\n<symbol id="icon-radio-button-unchecked" viewBox="0 -960 960 960"><path d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q
6-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></symbol>\n<symbol id="icon-radio-button-checked" viewBox="0 -960 960 960"><path d="M480-280q83 0 141.5-58.5T680-480q0-83-58.5-141.5T480-680q-83 0-141.5 58.5T280-480q0 83 58.5 141.5T480-280Zm0 200q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></symbol>\n<symbol id="icon-caret" viewBox="0 0 36 36"><path d="M18.0051 25.4999C17.6751 25.4999 17.3601 25.3799 17.1201 25.1549L8.12507 16.6549C7.61507 16.1749 7.59007 15.3799 8.07007 14.8699C8.55007 14.3599 9.34507 14.3349 9.85507 14.8149L18.0001 22.5049L26.1451 14.8149C26.6551 14.3349 27.4501 14.3599 27.9301 14.8699C28.4101 15.3799 28.3851 16.1749 27.8751 16.6549L18.8751 25.1549C18.6401 25.3749 18.3251 25.4949 18.0051 25.4999Z" fill="currentColor"/></symbol>
6\n<symbol id="icon-breadcrumb-arrow" viewBox="0 -960 960 960"><path d="M348-268q-11-11-11-28t11-28l156-156-156-156q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11Z"/></symbol>\n<symbol id="icon-breadcrumb-arrow-mobile" viewBox="0 -960 960 960"><path d="M530-270 350-450q-7-7-10-14.5t-3-15.5q0-8 3-15.5t10-14.5l180-180q13-13 30-13t30 13q13 13 13 30t-13 30L440-480l150 150q13 13 13 30t-13 30q-13 13-30 13t-30-13Z"/></symbol>\n<symbol id="icon-play" viewBox="0 -960 960 960"><path d="M320-200v-560l440 280-440 280Z"/></symbol>\n<symbol id="icon-list" viewBox="0 -960 960 960"><path d="M280-600v-80h560v80H280Zm0 160v-80h560v80H280Zm0 160v-80h560v80H280ZM160-600q-17 0-28.5-11.5T120-640q0-17 11.5-28.5T160-680q17 0 28.5 11.5T200-640q0 17-11.5 28.5T160-600Zm0 160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520q17 0 28.5 11.5T200-480q0 17-11.5 28.5T160-440Zm0 160q-17 0-28.5-11.5T120-320q0-17 11.5-28.5T160-360q17 0 28.5 11.5T200-320q0 17-11.5 28.5T160-280Z"/></symbol>\n<symbol id="icon-upload" viewBox="0 -960 960 960"><path d="M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"/></symbol>\n<symbol id="icon-lock" viewBox="0 -960 960 960"><path d="M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm240-200q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80Z"/></symbol>\n<symbol id="icon-podcasts" viewBox="0 -960 960 960"><path d="M480-400q-50 0-85-35t-35-85v-240q0-50 35-85t85-35q50 0 85 35t35 85v240q0 50-35 85t-85 35Zm0-240Zm-40 520v-123q-104-14-172-93t-68-184h80q0 83 58.5 141.5T480-320q83 0 141.5-58.5T680-520h80q0 105-68 184t-172 93v123h-80Zm40-360q17 0 28.5-11.5T520-520v-240q0-17-11.5-28.5T480-800q-17 0-28.5 11.5T440-760v240q0 17 11.5 28.5T480-480Z"/></symbol>\n<symbol id="icon-description" viewBox="0 -960 960 960"><path d="M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></symbol>
6\n<symbol id="icon-mic" viewBox="0 -960 960 960"><path d="M480-400q-50 0-85-35t-35-85v-240q0-50 35-85t85-35q50 0 85 35t35 85v240q0 50-35 85t-85 35Zm0-240Zm-40 520v-123q-104-14-172-93t-68-184h80q0 83 58.5 141.5T480-320q83 0 141.5-58.5T680-520h80q0 105-68 184t-172 93v123h-80Zm40-360q17 0 28.5-11.5T520-520v-240q0-17-11.5-28.5T480-800q-17 0-28.5 11.5T440-760v240q0 17 11.5 28.5T480-480Z"/></symbol>\n</svg>',document.body&&(document.body.firstChild?document.body.insertBefore(e,document.body.firstChild):document.body.appendChild(e),o=!0)}};document.body?e():document.addEventListener("DOMContentLoaded",e)}}var i=["chevron-right","chevron-left","chevron-down","arrow-back","arrow-forward","arrow-left-alt","arrow-right-alt","arrow-drop-down","expand-more","expand-less","expand-circle-up","close","cancel","check","check-circle","check-box","check-box-outline-blank","share","print","download","download-for-offline","email","mail","link","error","filter-list","location-on","pin-drop","near-me","calendar-month","calendar-add-on","schedule","tv","group","cached","play-circle","pause-circle","replay-10","forward-10","volume-up","volume-off","linkedin","facebook","twitter","stethoscope","search","help","radio-button-unchecked","radio-button-checked","caret","breadcrumb-arrow","breadcrumb-arrow-mobile","play"];function a(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.size,i=void 0===r?24:r,a=o.width,l=o.height,c=o.className,s=void 0===c?"":c,u=o.ariaLabel,d=o.ariaHidden,f=void 0===d||d,p=o.fill,m=void 0===p?"currentColor":p,h=a||i,v=l||i,y=["icon","icon--".concat(e),s].filter(Boolean).join(" "),b=u?'aria-label="'.concat(u,'" role="img"'):'aria-hidden="'.concat(f,'"');return'<svg class="'.concat(y,'" width="').concat(h,'" height="').concat(v,'" fill="').concat(m,'" ').concat(b,'>\n    <use href="').concat((n=(t=e).startsWith("icon-")?t:"icon-".concat(t),"#".concat(n)),'"></use>\n  </svg>')}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("template");return n.innerHTML=a(e,t).trim(),n.content.firstChild}var c={cancel:"cancel",arrow_back:"arrow-back",arrow_forward:"arrow-forward",arrow_left_alt:"arrow-left-alt",arrow_right_alt:"arrow-right-alt",arrow_drop_down:"arrow-drop-down",check_box:"check-box",check_box_outline_blank:"check-box-outline-blank",check_circle:"check-circle",check:"check",close:"close",share:"share",expand_more:"expand-more",expand_less:"expand-less",expand_circle_up:"expand-circle-up",print:"print",email:"email",mail:"mail",download:"download",download_for_offline:"download-for-offline",error:"error",filter_list:"filter-list",chevron_right:"chevron-right",chevron_left:"chevron-left",near_me:"near-me",location_on:"location-on",pin_drop:"pin-drop",calendar_month:"calendar-month",calendar_add_on:"calendar-add-on",schedule:"schedule",tv:"tv",group:"group",play_circle:"play-circle",pause_circle:"pause-circle",replay_10:"replay-10",forward_10:"forward-10",volume_up:"volume-up",volume_off:"volume-off",stethoscope:"stethoscope",search:"search",help:"help",link:"link",Cached:"cached",chevron_backward:"chevron-left"};n(74029),n(31370);var s=n(77963);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function p(e,t,n){return t=h(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}
6function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var y=new Set,b=null,g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=p(this,t,[e])).init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){var e=this,t=this.element.dataset.uid,n=this.element.querySelectorAll(".js-o5-accordion-btn"),o=0;t&&document.querySelector('[data-uid="'.concat(t,'"]'))!==this.element&&(t="".concat(t,"-").concat(++o),this.element.setAttribute("data-uid",t));for(var r=0;r<n.length;r++){var i=n[r],a=i.parentElement.nextElementSibling,l="o5-accordion-btn-".concat(t,"-").concat(r);i.setAttribute("aria-controls",l),i.setAttribute("id","".concat(l,"-btn")),a&&(a.id=l,a.setAttribute("aria-labelledby","".concat(l,"-btn")))}this.element.addEventListener("click",function(t){var n=t.target.closest(".js-o5-accordion-btn");n&&(t.stopPropagation(),e.accbtnclick({delegate:n}))}),this.faqtoggle(),this.biotoggle(),this.basictoggle(),this.generateFaqStructuredData()}},{key:"accbtnclick",value:function(e){var t=e.delegate,n=t.getAttribute("aria-controls"),o=document.querySelector("#".concat(n));if(o&&o.classList.contains("is--hidden")){t.parentElement.parentElement.classList.add("is--open"),this.slideDown(o),o.classList.remove("is--hidden"),t.setAttribute("aria-expanded","true");var r=this.closest(t,".o5-accordion__heading"),i=r?r.textContent.trim().toLowerCase():"";if(""===i){var a=this.closest(t,".o5-accordion"),l=a?a.previousElementSibling:null,c=l?this.closest(l,"h1, h2, h3")||l.querySelector("h1, h2, h3"):null,s=c?c.textContent.trim().toLowerCase():"";o5_analyticsAccordionTrack(t.textContent.trim().toLowerCase(),s,"accordion open","")}else o5_analyticsAccordionTrack(t.textContent.trim().toLowerCase(),i,"accordion open","")}else if(o){t.parentElement.parentElement.classList.remove("is--open"),this.slideUp(o),o.classList.add("is--hidden"),t.setAttribute("aria-expanded","false");var u=this.closest(t,".o5-accordion__heading"),d=u?u.textContent.trim().toLowerCase():"";if(""===d){var f=this.closest(t,".o5-accordion"),p=f?f.previousElementSibling:null,m=p?this.closest(p,"h1, h2, h3")||p.querySelector("h1, h2, h3"):null,h=m?m.textContent.trim().toLowerCase():"";o5_analyticsAccordionTrack(t.textContent.trim().toLowerCase(),h,"accordion close","")}else o5_analyticsAccordionTrack(t.textContent.trim().toLowerCase(),d,"accordion close","")}}},{key:"closest",value:function(e,t){for(var n=e;n&&n!==document.body;){if(n.matches(t))return n;var o=n.querySelector(t);if(o)return o;n=n.parentElement}return null}},{key:"slideDown",value:function(e){e.style.removeProperty("display");var t=window.getComputedStyle(e).display;"none"===t&&(t="block"),e.style.display=t;var n=e.scrollHeight;e.style.overflow="hidden",e.style.height="0",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.marginTop="0",e.style.marginBottom="0",e.offsetHeight,e.style.transition="height 200ms ease, padding 200ms ease, margin 200ms ease",e.style.height=n+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout(function(){e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition")},200)}},{key:"slideUp",value:function(e){e.style.height=e.scrollHeight+"px",e.style.overflow="hidden",e.offsetHeight,e.style.transition="height 200ms ease, padding 200ms ease, margin 200ms ease",e.style.height="0",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.marginTop="0",e.
6style.marginBottom="0",window.setTimeout(function(){e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition")},200)}},{key:"faqtoggle",value:function(){document.querySelectorAll(".faqtoggle").forEach(function(e){var t=e.getAttribute("value");if(e.nextElementSibling){var n=e.nextElementSibling,o=n.firstElementChild;"true"==t&&(n.classList.add("is--open"),o.nextElementSibling.classList.remove("is--hidden"),o.setAttribute("aria-expanded","true"))}})}},{key:"basictoggle",value:function(){document.querySelectorAll(".basictoggle").forEach(function(e){var t=e.getAttribute("value");if(e.nextElementSibling){var n=e.nextElementSibling,o=n.firstElementChild;"true"==t&&(n.classList.add("is--open"),o.nextElementSibling.classList.remove("is--hidden"),o.setAttribute("aria-expanded","true"))}})}},{key:"biotoggle",value:function(){document.querySelectorAll(".biotoggle").forEach(function(e){var t=e.getAttribute("value");if(e.nextElementSibling){var n=e.nextElementSibling,o=n.firstElementChild;"true"==t&&(n.classList.add("is--open"),o.nextElementSibling.classList.remove("is--hidden"),o.setAttribute("aria-expanded","true"))}})}},{key:"generateFaqStructuredData",value:function(){var e=this,t=this.element.getAttribute("data-faq-items"),n=this.element.querySelector(".o5-accordion__faq");(t&&""!==t.trim()||n)&&(y.add(this.element),null!==b&&window.clearTimeout(b),b=window.setTimeout(function(){e.aggregateAllFaqSchemas()},100))}},{key:"aggregateAllFaqSchemas",value:function(){for(var e=0,t=Array.from(document.querySelectorAll('script[type="application/ld+json"]'));e<t.length;e++){var n=t[e].textContent;if(n&&n.includes('"@type":"FAQPage"'))return}var o=[];if(Array.from(y).forEach(function(e){var t=e.getAttribute("data-faq-items");if(t&&""!==t.trim())try{var n=JSON.parse(t);
6Array.isArray(n)&&n.forEach(function(e){e.name&&e.acceptedAnswer&&e.acceptedAnswer.text&&o.push({question:e.name,answer:e.acceptedAnswer.text})})}catch(e){console.warn("Invalid FAQ items data:",e)}else{var r=e.querySelector(".o5-accordion__faq");r&&r.querySelectorAll(".o5-accordion__section").forEach(function(e){var t=e.querySelector(".o5-accordion__question"),n=e.querySelector(".o5-accordion__answer");if(t&&n){var r=t.textContent.trim(),i=n.innerHTML.trim();r&&i&&o.push({question:r,answer:i})}})}}),o.length>0){var r={"@context":"https://schema.org","@type":"FAQPage",mainEntity:o.map(function(e){return{"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}})},i=document.createElement("script");i.type="application/ld+json",i.textContent=JSON.stringify(r),document.head.appendChild(i)}}}],o&&d(n.prototype,o),r&&d(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,q(o.key),o)}}function A(e,t,n){return t=T(t),function(e,t){if(t&&("object"==w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],T(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function L(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}(0,s.fe)({componentName:"o5-accordion",component:g});var x=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),L(n=A(this,t,[e]),"root",void 0),L(n,"headings",[]),L(n,"links",[]),L(n,"highlightedSource",null),L(n,"ignoreScrollUntil",0),n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=document.querySelector(".o5-article-details-prohealth.ph-article");e&&(this.root=e,this.setupToc(),this.setupSourceReferences(),this.setupStickyCta(),this.setupShare())}},{key:"setupSourceReferences",value:function(){var e,n=this,o=Array.from(this.root.querySelectorAll(".ph-article__sources-body ol > li")),r=this.root.querySelector(".ph-article__body");
6if(o.length&&r){o.forEach(function(e,n){e.id||(e.id=t.SOURCE_ID_PREFIX+(n+1)),e.setAttribute("tabindex","-1")});var i=new Map;r.querySelectorAll("sup").forEach(function(e){n.linkSourceMarker(e,o,i)}),i.size&&(null===(e=o[0].parentElement)||void 0===e||e.classList.add("ph-article__sources-list--linked"),o.forEach(function(e,t){var o;n.prependSourceNumber(e,t+1,null===(o=i.get(e))||void 0===o?void 0:o[0])}))}}},{key:"linkSourceMarker",value:function(e,n,o){var r=this;if(!e.querySelector("a")){var i=(e.textContent||"").match(/\d+|\D+/g);if(i){var a=document.createDocumentFragment(),l=[];i.forEach(function(e){var t=/^\d+$/.test(e)?n[Number(e)-1]:void 0;if(t){var o=document.createElement("a");o.className="ph-article__ref-link",o.href="#"+t.id,o.textContent=e,o.setAttribute("aria-label","Source "+e),o.addEventListener("click",function(e){return r.onSourceRefClick(e,t,o)}),a.appendChild(o),l.push([t,o])}else a.appendChild(document.createTextNode(e))}),l.length&&(e.textContent="",e.appendChild(a),e.classList.add("ph-article__ref"),l.forEach(function(e){var n=S(e,2),r=n[0],i=n[1],a=o.get(r)||[];i.id=t.REF_ID_PREFIX+r.id+"-"+(a.length+1),a.push(i),o.set(r,a)}))}}}},{key:"prependSourceNumber",value:function(e,t,n){var o,r=this;if(n){var i=document.createElement("a");i.href="#"+n.id,i.setAttribute("aria-label","Definition of "+t+" in the article"),i.addEventListener("click",function(e){return r.onSourceBackLinkClick(e,i)}),o=i}else o=document.createElement("span");o.classList.add("ph-article__source-backlink"),o.textContent=t+".",e.prepend(o,document.createTextNode(" "))}},{key:"onSourceRefClick",value:function(e,t,n){e.preventDefault();var o=t.querySelector("a.ph-article__source-backlink");o&&n.id&&(o.href="#"+n.id),t.scrollIntoView({behavior:"smooth",block:"center"}),t.focus({preventScroll:!0}),this.highlightSource(t),window.location.hash!=="#"+t.id&&window.history.replaceState(null,"","#"+t.id)}},{key:"highlightSource",value:function(e){var t,n=this;null===(t=this.highlightedSource)||void 0===t||t.classList.remove("is-highlighted"),this.highlightedSource=e,e.classList.add("is-highlighted"),e.addEventListener("blur",function(){e.classList.remove("is-highlighted"),n.highlightedSource===e&&(n.highlightedSource=null)},{once:!0})}},{key:"onSourceBackLinkClick",value:function(e,t){var n=document.getElementById(t.hash.slice(1));n&&(e.preventDefault(),n.scrollIntoView({behavior:"smooth",block:"center"}),n.focus({preventScroll:!0}),window.location.hash!==t.hash&&window.history.replaceState(null,"",t.hash))}},{key:"setupToc",value:function(){var e=this;this.headings=Array.from(this.root.querySelectorAll(".ph-article__body h2[id]")),this.links=Array.from(this.root.querySelectorAll(".ph-article__toc-link[data-toc-id]")),this.setupTocToggle(),this.headings.length&&this.links.length&&(this.links.forEach(function(t){t.addEventListener("click",function(n){return e.onTocLinkClick(n,t)})}),document.addEventListener("scroll",function(){Date.now()<e.ignoreScrollUntil||e.updateActiveLink()},{passive:!0,capture:!0}),this.updateActiveLink())}},{key:"setupTocToggle",value:function(){var e=this,t=this.root.querySelector(".ph-article__toc-toggle"),n=this.root.querySelector(".ph-article__toc-panel");if(t&&n){var o=function(){e.isMobile()?t.setAttribute("aria-expanded",String(n.classList.contains("ph-article__toc-panel--open"))):t.setAttribute("aria-expanded","true")};o(),window.addEventListener("resize",o),t.addEventListener("click",function(){if(e.isMobile()){var o=n.classList.toggle("ph-article__toc-panel--open");t.setAttribute("aria-expanded",String(o))}})}}},{key:"closeTocPanel",value:function(){if(this.isMobile()){var e=this.root.querySelector(".ph-article__toc-toggle"),t=this.root.querySelector(".ph-article__toc-panel");e&&t&&(t.classList.remove("ph-article__toc-panel--open"),e.setAttribute("aria-expanded","false"))}}},{key:"onTocLinkClick",value:function(e,t){var n=t.getAttribute("data-toc-id");if(n){var o=document.getElementById(n);if(o){e.preventDefault(),this.setActiveLink(t),this.closeTocPanel(),this.ignoreScrollUntil=Date.now()+1e3,null===o.getAttribute("tabindex")&&o.setAttribute("tabindex","-1"),this.updateTocScrollOffset();var r=window.matchMedia("(prefers-reduced-motion: reduce)").matches;o.scrollIntoView({behavior:r?"auto":"smooth",block:"start"}),o.focus({preventScroll:!0}),window.location.hash!=="#"+n&&window.history.replaceState(null,"","#"+n)}}}},{key:"updateTocScrollOffset",value:function(){var e=this.root.querySelector(".ph-article__toc"),n=(null==e?void 0:e.getBoundingClientRect().height)||0,o=this.isMobile()?Math.max(t.SCROLL_OFFSET,Math.ceil(n)+16):t.SCROLL_OFFSET;this.root.style.setProperty("--ph-article-toc-scroll-offset",o+"px")}},{key:"updateActiveLink",value:function(){if(this.headings[0].getBoundingClientRect().top>t.SCROLL_OFFSET)this.clearActiveLinks();else{var e,n=null,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=_(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.headings);try{for(o.s();!(e=o.n()).done;){var r=e.value;if(!(r.getBoundingClientRect().top<=t.SCROLL_OFFSET))break;n=r.id}}catch(e){o.e(e)}finally{o.f()}if(n){var i=this.links.find(function(e){return e.getAttribute("data-toc-id")===n});i&&this.setActiveLink(i)}}}},{key:"setActiveLink",value:function(e){this.links.forEach(function(t){var n=t===e;t.classList.toggle("is-active",n),n?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}},{key:"clearActiveLinks",value:function(){this.links.forEach(function(e){e.classList.remove("is-active"),e.removeAttribute("aria-current")})}},{key:"isMobile",value:function(){return window.innerWidth<=t.MOBILE_BREAKPOINT}},{key:"setupStickyCta",value:function(){var e=this,t=this.root.querySelector(".ph-cta-sticky");t&&this.ensureStickyCloseButton(t).addEventListener("click",function(){t.classList.add("ph-cta-sticky--dismissed"),e.moveFocusAfterStickyDismiss(t)})}},{key:"moveFocusAfterStickyDismiss",value:function(e){var n=this,o=Array.from(document.querySelectorAll(t.FOCUSABLE_SELECTOR)).filter(function(t){return!e.contains(t)&&n.isFocusable(t)}),r=o.find(function(t){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)})||o[0]||this.root;r!==this.root||this.root.hasAttribute("tabindex")||this.root.setAttribute("tabindex","-1"),r.focus()}},{key:"isFocusable",value:function(e){return!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden")&&e.tabIndex>=0&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}},{key:"ensureStickyCloseButton",value:function(e){var t=e.querySelector(".ph-cta-sticky__close");if(t)return t.type="button",t.setAttribute("aria-label","Dismiss coverage banner"),t.querySelectorAll("svg").forEach(function(e){e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false")}),t;var n=document.createElement("button");return n.type="button",n.className="ph-cta-sticky__close",n.setAttribute("aria-label","Dismiss coverage banner"),n.innerHTML='<svg class="ph-cta-sticky__close-icon" focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',e.prepend(n),n}},{key:"setupShare",value:function(){this.root.querySelectorAll("[data-ph-share-copy]").forEach(function(e){e.addEventListener("click",function(){var t,n,o=e.getAttribute("data-ph-share-copy")||window.location.href,r=null===(t=e.parentElement)||void 0===t?void 0:t.querySelector(".ph-article__share-copy-status");null===(n=navigator.clipboard)||void 0===n||n.writeText(o).then(function(){e.classList.add("ph-article__share-copy--copied"),e.setAttribute("aria-label","Link copied to clipboard."),r&&(r.textContent="Link copied to clipboard."),window.setTimeout(function(){e.classList.remove("ph-article__share-copy--copied"),e.setAttribute("aria-label","Copy link"),r&&(r.textContent="")},2e3)})})})}}],o&&E(n.prototype,o),r&&E(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,F(o.key),o)}}function N(e,t,n){return t=I(t),function(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,M()?Reflect.construct(t,n||[],I(e).constructor):t.apply(e,n))}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(M=function(){return!!e})()}
6function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function B(e,t,n){return(t=F(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}L(x,"MOBILE_BREAKPOINT",992),L(x,"SCROLL_OFFSET",96),L(x,"FOCUSABLE_SELECTOR",'a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])'),L(x,"SOURCE_ID_PREFIX","ph-article-source-"),L(x,"REF_ID_PREFIX","ph-article-ref-"),(0,s.fe)({componentName:"o5-article-details-prohealth",component:x});var R=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),B(n=N(this,t,[e]),"nextPage",void 0),B(n,"dataBaseUrl",void 0),B(n,"component",void 0),B(n,"loadMoreBtn",void 0),B(n,"canLoadMore",void 0),B(n,"classScope",void 0),n.component=n.element,n.classScope=n,n.nextPage=2,n.dataBaseUrl=n.component.getAttribute("data-path"),n.loadMoreBtn=n.component.querySelector(".o5-article-list__load-more"),n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(t,e),n=t,o=[{key:"updateLoadMoreButton",value:function(){this.loadMoreBtn&&(this.loadMoreBtn.style.display=this.canLoadMore?"flex":"none")}},{key:"initialLoadCheck",value:function(){null!==this.element.querySelector("[data-next]")&&(this.canLoadMore=!0,this.updateLoadMoreButton())}},{key:"getNextPageUrl",value:function(){return this.dataBaseUrl.replace(".html",".".concat(this.nextPage,".html"))}},{key:"loadPosts",value:function(){var e=this,t=this.component.querySelector(".o5-article-list__items"),n=this.getNextPageUrl();fetch(n).then(function(e){if(!e.ok)throw new Error("HTTP error! status: ".concat(e.status));return e.text()}).then(function(n){!function(n){var o=document.createElement("div");o.style.display="none",o.innerHTML=n,e.canLoadMore=null!==o.querySelector("[data-next]"),o.querySelectorAll(".o5-article-list__items .o5-article-list-card").forEach(function(e,n){0==n&&e.classList.add("focus"),t.append(e)});var r=t.querySelectorAll(".focus .o5-article-list-card__action-link");r[r.length-1]&&r[r.length-1].focus(),e.nextPage+=1,e.updateLoadMoreButton()}(n)}).catch(function(e){console.error("Request failed: ".concat(e.message))}),lposAndTrackingArticles()}},{key:"addEventListeners",value:function(){var e=this;null!==this.loadMoreBtn&&this.loadMoreBtn.querySelector("button").addEventListener("click",function(t){t.preventDefault(),e.classScope.loadPosts()})}},{key:"init",value:function(){this.addEventListeners(),this.initialLoadCheck()}}],o&&j(n.prototype,o),r&&j(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function U(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,W(o.key),o)}}function V(e,t,n){return t=Z(t),function(e,t){if(t&&("object"==H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,z()?Reflect.construct(t,n||[],Z(e).constructor):t.apply(e,n))}function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(z=function(){return!!e})()}
6function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function W(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=H(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H(t)?t:t+""}(0,s.fe)({componentName:"o5-article-list",component:R});var K=function(e){function t(e){var n,o,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=V(this,t,[e]),o=n,i="",(r=W(r="selectedOption"))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,n.store={ui:{closeBtn:".o5-articleText__close",modelContainer:".o5-articleText__modelContainer",buttonContainer:".o5-articleText__buttonContainer",modelTextContainer:".o5-articleText__modelTextContainer",mainModelContainer:".o5-articleText__imageContainer"},hasContent:!0},n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){$(".show-model").on("click",this.showInfoModel.bind(this)),$(".show-model").on("keypress",this.showInfoModel.bind(this)),$(".close-model").on("click",this.hideInfoModel.bind(this)),$(".close-model").on("keypress",this.hideInfoModel.bind(this)),$(".o5-articleText__modelContainer").on("click",this.hidetextImgModel.bind(this)),$(".model").on("keydown",function(e){if(27===e.keyCode||"Escape"===e.key){var t=e.currentTarget.closest(".o5-articleText__imageContainer");$(".model").hide(),$(".model").attr("display","none"),$(t).find(".show-model").focus()}})}},{key:"showInfoModel",value:function(e){var t=e.currentTarget.closest(this.store.ui.mainModelContainer);$(t).find(this.store.ui.modelContainer).show(),$(t).find(this.store.ui.modelContainer).addClass("image-model"),$(t).find(this.store.ui.modelContainer).attr("display","block");var n=$(t).find(this.store.ui.modelContainer);n.find(".close-model span").trigger("focus");var o=n.find(".o5-articleText__modelTextContainer").find(".o5-articleText__bodyCopy");n.on("keydown",function(e){null!==o.find("a").length&&o.find("a").attr("tabindex","0");var t=n.find('[tabindex="0"]'),r=t[0],i=t[t.length-1];e.shiftKey&&9==e.keyCode&&document.activeElement==r&&($(i).focus(),e.preventDefault()),!0!==e.shiftKey&&9==e.keyCode&&document.activeElement==i&&($(r).focus(),e.preventDefault())})}},{key:"hideInfoModel",value:function(e){var t=e.currentTarget.closest(this.store.ui.mainModelContainer);$(t).find(this.store.ui.modelContainer).hide(),$(t).find(this.store.ui.modelContainer).attr("display","none"),$(t).find(".show-model").focus()}},{key:"hidetextImgModel",value:function(e){$(e.target).hasClass("image-model")&&this.hideInfoModel(e)}}],o&&U(n.prototype,o),r&&U(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,oe(o.key),o)}}function X(e,t,n){return t=ee(t),function(e,t){if(t&&("object"==Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,J()?Reflect.construct(t,n||[],ee(e).constructor):t.apply(e,n))}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e,t,n){return(t=oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:t+""}(0,s.fe)({componentName:"o5-article-image",component:K});var re=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ne(n=X(this,t,[e]),"backTopFixedBtn",void 0),ne(n,"backTopStaticBtn",void 0),n.store={ui:{}},n.backTopFixedBtn=document.getElementById("back-top-fixed"),n.backTopStaticBtn=document.getElementById("back-top-static"),n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&te(e,t)}(t,e),n=t,o=[{key:"setHeightPos",value:function(){var e,t,n,o,r,i,a,l,c,s,u=document.body.scrollTop||document.documentElement.scrollTop,d=null===(e=this.backTopStaticBtn)||void 0===e?void 0:e.offsetTop,f=null===(t=this.backTopFixedBtn)||void 0===t?void 0:t.offsetTop;null!==(n=this.backTopFixedBtn)&&void 0!==n&&n.classList.contains("fixed")&&(r=f-u),u>100?(null!==(i=this.backTopFixedBtn)&&void 0!==i&&i.classList.contains("hidden")&&this.backTopFixedBtn.classList.remove("hidden"),null===(a=this.backTopFixedBtn)||void 0===a||a.classList.remove("fade-out"),null===(l=this.backTopFixedBtn)||void 0===l||l.classList.add("fade-in")):(null===(c=this.backTopFixedBtn)||void 0===c||c.classList.remove("fade-in"),null===(s=this.backTopFixedBtn)||void 0===s||s.classList.add("fade-out")),null!==(o=this.backTopFixedBtn)&&void 0!==o&&o.classList.contains("fixed")&&f>=d?(this.backTopFixedBtn.classList.remove("fixed"),this.backTopFixedBtn.classList.add("static")):u+r<=d&&(this.backTopFixedBtn.classList.remove("static"),this.backTopFixedBtn.classList.add("fixed"))}},{key:"setScrollListen",value:function(){var e=this;document.documentElement.scrollHeight>=window.innerHeight&&document.body.addEventListener("scroll",function(){e.setHeightPos()})}},{key:"setup",value:function(){this.setScrollListen(),this.setupBackToTopClick()}},{key:"setupBackToTopClick",value:function(){document.querySelectorAll("a.back-to-top").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),document.body.setAttribute("tabindex","0"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:800,t=document.documentElement.scrollTop||document.body.scrollTop,n=performance.now();function o(r){var i=r-n,a=Math.min(i/e,1),l=.5*(1-Math.cos(Math.PI*a)),c=t*(1-l);document.documentElement.scrollTop=c,document.body.scrollTop=c,a<1&&requestAnimationFrame(o)}requestAnimationFrame(o)}(800),document.body.focus(),setTimeout(function(){document.body.removeAttribute("tabindex")},1e3)})})}}],o&&Q(n.prototype,o),r&&Q(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".breadcrumb-nav",t=document.querySelector(e);
6if(!t)return console.warn("Breadcrumb container not found:",e),null;var n=t.querySelectorAll("a");if(0===n.length)return console.warn("No breadcrumb links found"),null;var o=[];return n.forEach(function(e){if(null!==e.offsetParent&&!e.classList.contains("hidden")&&"none"!==window.getComputedStyle(e).display){var t,n=(null===(t=e.textContent)||void 0===t?void 0:t.trim())||"",r=e.getAttribute("href")||"";if(n&&r){var i=new URL(r,window.location.origin).href;o.push({"@type":"ListItem",position:o.length+1,name:n,item:i})}}}),0===o.length?(console.warn("No visible breadcrumb items found"),null):{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:o}}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"breadcrumb-schema";if(e){var n=document.getElementById(t);n&&n.remove();var o=document.createElement("script");o.id=t,o.type="application/ld+json",o.textContent=JSON.stringify(e),document.head.appendChild(o)}else console.warn("No schema to inject")}function le(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"breadcrumb-schema";ae(ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:".breadcrumb-nav"),e)}(0,s.fe)({componentName:"o5-Back-to-Top",component:re});var ce=n(99750);function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}function ue(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,de(o.key),o)}}function de(e){var t=function(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=se(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==se(t)?t:t+""}function fe(e,t,n){return t=me(t),function(e,t){if(t&&("object"==se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pe()?Reflect.construct(t,n||[],me(e).constructor):t.apply(e,n))}function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pe=function(){return!!e})()}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},me(e)}function he(e,t){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},he(e,t)}var ve=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=fe(this,t,[e])).init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(t,e),n=t,o=[{key:"escapeHtml",value:function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}},{key:"getCurrentBreadcrumbMarkup",value:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" height="18" viewBox="0 -960 960 960" width="18" fill="#3D3C38" class="breadcrumb__arrow" qa_handles="o5-breadcrumb__arrow" aria-hidden="true" focusable="false"><path d="M348-268q-11-11-11-28t11-28l156-156-156-156q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11Z"/></svg>'+'<span class="'.concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"breadcrumb__link disabled-item",'" qa_handles="o5-breadcrumb__linkdisableditem" aria-current="page">').concat(e,"</span>")+'<svg xmlns="http://www.w3.org/2000/svg" height="18" viewBox="0 -960 960 960" width="18" fill="#3D3C38" class="breadcrumb__arrow-mobile" aria-hidden="true" focusable="false">
6<path d="M530-270 350-450q-7-7-10-14.5t-3-15.5q0-8 3-15.5t10-14.5l180-180q13-13 30-13t30 13q13 13 13 30t-13 30L440-480l150 150q13 13 13 30t-13 30q-13 13-30 13t-30-13Z"/></svg>'}},{key:"isPricewiseDrugDetailPage",value:function(){var e=window.location.hostname.toLowerCase(),t=/(^|[.-])pricewise\.optum\.com$/.test(e),n=window.location.pathname.includes("/content/pricewise/"),o=/\/drug-detail(?:\.html)?$/.test(window.location.pathname),r=/^\/drugs\/[^/]+\.html$/.test(window.location.pathname),i=/\/drugs\.html$/.test(window.location.pathname)&&new URLSearchParams(window.location.search).has("drugname");return(o||r||i)&&(t||n)}},{key:"getPricewiseDrugBreadcrumbTitle",value:function(){var e,t,n=document.querySelector(".o5-pricewise-drug__title"),o=null==n||null===(e=n.textContent)||void 0===e?void 0:e.trim();return o||(null===(t=document.title.split("|")[0])||void 0===t?void 0:t.trim())||null}},{key:"applyPricewiseDrugDetailFallback",value:function(e){var t;if(this.isPricewiseDrugDetailPage()){var n=this.getPricewiseDrugBreadcrumbTitle();if(n){var o=e.querySelectorAll("li.breadcrumb__item"),r=o[o.length-1];if(r){var i=(null===(t=r.textContent)||void 0===t?void 0:t.trim().toLowerCase())||"",a="section"===i;if(r.classList.contains("hidden")||a||!(i.length>0)){var l=this.escapeHtml(n),c=this.getCurrentBreadcrumbMarkup(l);r.innerHTML=c,r.classList.remove("hidden"),r.classList.add("fadeIn")}}}}}},{key:"isProHealthArticleDetailPage",value:function(){return!!document.querySelector(".o5-article-details-prohealth .ph-article__title")}},{key:"getProHealthArticleBreadcrumbTitle",value:function(){var e,t,n=document.querySelector(".o5-article-details-prohealth .ph-article__title"),o=null==n||null===(e=n.textContent)||void 0===e?void 0:e.trim();return o||(null===(t=document.title.split("|")[0])||void 0===t?void 0:t.trim())||null}},{key:"getBreadcrumbLabelFromHref",value:function(e){var t=(e||"").split("?")[0].split("#")[0].replace(/\.html$/,"").split("/").filter(Boolean).pop()||"";return decodeURIComponent(t).replace(/[-_]+/g," ").trim().replace(/\b\w/g,function(e){return e.toUpperCase()})}},{key:"ensureProHealthMobileParent",value:function(e){var t,n=e.querySelectorAll("li.breadcrumb__item"),o=n[n.length-2];if(o){o.classList.add("mobile-parent");var r=(null===(t=o.textContent)||void 0===t?void 0:t.trim().toLowerCase())||"",i="section"===r||0===r.length;if(o.classList.contains("hidden")||i){var a,l=o.querySelector("a.breadcrumb__link"),c=(null==l||null===(a=l.textContent)||void 0===a?void 0:a.trim())||"";!l||c&&"section"!==c.toLowerCase()||(l.textContent=this.getBreadcrumbLabelFromHref(l.getAttribute("href"))),o.classList.remove("hidden"),o.classList.add("fadeIn")}}}},{key:"applyProHealthArticleDetailFallback",value:function(e){var t;if(this.isProHealthArticleDetailPage()){var n=this.getProHealthArticleBreadcrumbTitle();if(n){var o=e.querySelectorAll("li.breadcrumb__item"),r=o[o.length-1];if(r){var i=(null===(t=r.textContent)||void 0===t?void 0:t.trim().toLowerCase())||"",a="section"===i;if(r.classList.contains("hidden")||a||!(i.length>0)){var l=this.escapeHtml(n),c=this.getCurrentBreadcrumbMarkup(l);r.innerHTML=c,r.classList.remove("hidden"),r.classList.add("fadeIn"),this.ensureProHealthMobileParent(e)}}}}}},{key:"generateSchemaWithDelay",value:function(){setTimeout(function(){le(".breadcrumb-nav","breadcrumb-schema")},100)}},{key:"normalizeRelativePath",value:function(e){if(!e)return"";var t=e.split("/").map(function(e){return e.trim()}).filter(function(e){return e.length>0}).map(function(e){return encodeURIComponent(e)});return t.length?"/".concat(t.join("/")):""}},{key:"sanitizeRelativePath",value:function(e){var t=(e||"").trim();return t&&t.startsWith("/")&&!t.startsWith("//")?/[<>"'\\\u0000-\u001F\u007F]/.test(t)||/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)?"":t:""}},{key:"init",value:function(){var e=this,t="detailPage",n=".html",o=document.querySelector(".breadcrumb-nav"),r=document.querySelector("div.error-404"),i=document.querySelector(".nav__open"),a="",l=null==o?void 0:o.querySelector("a.breadcrumb__home"),c=null==l?void 0:l.getAttribute("href"),s=this.sanitizeRelativePath(c),u=this.normalizeRelativePath(s);if(o&&!r&&(u||"/"===s)){var d=o.querySelector("li.breadcrumb__item:last-child"),f=null==d?void 0:d.cloneNode(!0);a=u=u.replace(n,"");var p=o.querySelector("li.breadcrumb__item:last-child");null==p||p.remove();var m=o.getAttribute("data-attr"),h=window.location.pathname,v=!1,y=document.referrer,b="true"===o.getAttribute("data-global-plu"),g="true"===sessionStorage.getItem("isPluDetailRedirect");if(g&&sessionStorage.setItem("isPluDetailRedirect","false"),b&&g)h=new URL(y).pathname+"/"+t,v=!0;else{var w=window.location.pathname.split("/").filter(function(e){return""!==e}),S=("en"===w[0]||"es"===w[0])&&"care"===w[1],_="providers"===w[2]||"facilities"===w[2]||"msc"===w[2],k=!!document.querySelector(".o5-ups-detail-ssr__title, .ues-plu-detail__seo-title");if(w.length>3&&S&&(_||b&&k)){var E="";if(window.location.hostname.includes("promed")||window.location.hostname.includes("prohealthmd")||window.location.hostname.includes("holstonmedicalgroup"))E="/find-care";else if(b)E="/".concat(w[0],"/").concat(w[1],"/find-doctor");else{var A=(0,ce.FB)(w[3].toUpperCase());if(A){var C=A.replace(/\s/g,"-").toLowerCase();E="/".concat(w[0],"/care/locations/optum-").concat(C,"/find-care")}}h="".concat(E,"/").concat(t),y="".concat(window.location.origin).concat(E).concat(n),v=!0}}var T=h.replace(n,""),O=window.location.origin,L=(u=u.replace(O,"")).split("/"),q=T.split("/"),x="";if(""==L[0]&&L.splice(0,1),""==q[0]&&q.splice(0,1),q.length<L.length&&L.length>=3){var P="";
6L.forEach(function(e,t){t>2&&(P="/"+e)}),x=T.replace(P,"")}else x=T.replace(u,"");var j=x.split("/").filter(function(e){return""!==e}).map(function(e){return encodeURIComponent(decodeURIComponent(e))});this.isPricewiseDrugDetailPage()&&"drugs"===j[0]&&j.unshift("medications"),this.isProHealthArticleDetailPage()&&"articles"===j[0]&&j.unshift("patient-resources");for(var N=j.length,M=a,I=0;I<N;I++){var D=f.cloneNode(!0),B="",F=encodeURIComponent((j[I]||"").trim());B=M+="/".concat(F),B+=n;var R=D.querySelector("a");if(null==R||R.setAttribute("href",B),I===N-1){var H=D.querySelector("a");null==H||H.classList.add("disabled-item"),null==H||H.setAttribute("aria-current","page")}else if(!this.isPricewiseDrugDetailPage()&&I===N-2||this.isPricewiseDrugDetailPage()&&0===I){var U,V=D.querySelector("a");null==V||null===(U=V.parentElement)||void 0===U||U.classList.add("mobile-parent")}o.appendChild(D)}var z=o.querySelectorAll("a"),$=Array.from(z).filter(function(e,t){return 0!==t&&!e.classList.contains("breadcrumb__home")}),Z=[];$.forEach(function(o,r){var i,a=o.parentElement,l=(null===(i=o.getAttribute("href"))||void 0===i?void 0:i.replace(n,""))||"",c=window.location.href,s=new URL(c).hostname;["stg-care.optum.com","www.optumcare.com"].includes(s)&&-1==c.indexOf("/content/optumcare3/en")&&(l="/content/optumcare3/en"+l),l.indexOf(m||"")<0&&(l=(m||"")+l),v&&r===$.length-2&&!l.endsWith(t)&&o.setAttribute("href",y);var u=fetch("/bin/dmp/pagePropertiesServlet?path=".concat(encodeURIComponent(l)),{method:"GET",headers:{Accept:"application/json"}}).then(function(e){var t=e.headers.get("content-type")||"";return e.ok&&t.includes("application/json")?e.json():null}).then(function(n){var r=e.isPricewiseDrugDetailPage()&&o.classList.contains("disabled-item")?e.getPricewiseDrugBreadcrumbTitle():null;if(n)if(n.page){var i=r||n.page.navTitle;if(i){if(o.classList.contains("disabled-item")){var c=e.escapeHtml(i),s=e.getCurrentBreadcrumbMarkup(c);a.innerHTML=s}else o.textContent=i;a.classList.remove("hidden"),a.classList.add("fadeIn")}}else if(v&&l.endsWith(t)){var u,d,f=window.location.pathname.includes("/msc/")?document.querySelector("h2.ues-prov-det-MuiTypography-h2"):null,p=null!=f&&null!==(u=f.textContent)&&void 0!==u&&u.trim()?f:[".o5-ups-detail-ssr__title",".ues-plu-detail__seo-title"].map(function(e){return document.querySelector(e)}).find(function(e){var t;return null==e||null===(t=e.textContent)||void 0===t?void 0:t.trim()}),m=e.escapeHtml((null==p||null===(d=p.textContent)||void 0===d?void 0:d.trim())||""),h=e.getCurrentBreadcrumbMarkup(m,"breadcrumb__link provider_nav__title disabled-item");a.innerHTML=h,a.classList.remove("hidden"),a.classList.add("fadeIn")}else o.textContent=o.textContent;else if(r){var y=e.escapeHtml(r),b=e.getCurrentBreadcrumbMarkup(y);a.innerHTML=b,a.classList.remove("hidden"),a.classList.add("fadeIn")}}).catch(function(e){console.error("Error fetching page properties:",e)});Z.push(u)}),Promise.all(Z).then(function(){e.applyPricewiseDrugDetailFallback(o),e.applyProHealthArticleDetailFallback(o),e.generateSchemaWithDelay()}).catch(function(t){console.error("Error loading breadcrumbs:",t),e.applyPricewiseDrugDetailFallback(o),e.applyProHealthArticleDetailFallback(o),e.generateSchemaWithDelay()});var G=document.querySelector("a.breadcrumb__home"),W=null==G?void 0:G.getAttribute("href"),K=o.querySelectorAll("li");window.location.pathname!==W&&K.length>1&&(o.classList.remove("hidden"),i&&i.classList.add("has_breadcrumb"));var Y=document.querySelectorAll(".breadcrumb__item");if(!Array.from(Y).some(function(e){return e.classList.contains("mobile-parent")})&&!this.isPricewiseDrugDetailPage()){var Q=Y[0];Q&&Q.classList.add("mobile-parent")}var X=document.querySelector(".breadcrumb__bg"),J=document.querySelector(".breadcrumb_comp"),ee=null==X?void 0:X.querySelector(".o5-breadcrumb-editor");o.classList.contains("hidden")&&!ee&&(null==X||X.classList.add("hidden"),null==J||J.classList.add("hidden"));var te,ne=document.querySelectorAll("li.header-nav__item");if(T.indexOf("solutions")>-1)null===(te=ne[0])||void 0===te||te.classList.add("highlight");else if(T.indexOf("resources")>-1){var oe;null===(oe=ne[1])||void 0===oe||oe.classList.add("highlight")}else if(T.indexOf("about")>-1){var re;null===(re=ne[2])||void 0===re||re.classList.add("highlight")}else if(T.indexOf("contact")>-1){var ie;null===(ie=ne[3])||void 0===ie||ie.classList.add("highlight")}}}}],o&&ue(n.prototype,o),r&&ue(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ee(o.key),o)}}function ge(e,t,n){return t=Se(t),function(e,t){if(t&&("object"==ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
6(e,we()?Reflect.construct(t,n||[],Se(e).constructor):t.apply(e,n))}function we(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(we=function(){return!!e})()}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}function _e(e,t){return _e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_e(e,t)}function ke(e,t,n){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){var t=function(e,t){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ye(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ye(t)?t:t+""}(0,s.fe)({componentName:"breadcrumb",component:ve});var Ae=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ke(n=ge(this,t,[e]),"parentSelector",null),ke(n,"shouldBreak",!1),n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_e(e,t)}(t,e),n=t,(o=[{key:"init",value:function(){this.addEllipsisToParagraphs(250)}},{key:"addEllipsisToParagraphs",value:function(e){var t=this.element.id;if(this.parentSelector=document.getElementById(t),this.parentSelector){var n=this.parentSelector.querySelector(".o5-byline-card__bioDescription");if(n){var o=Array.from(n.querySelectorAll("p")),r="";if(o.forEach(function(e){var t,n=(null!==(t=e.textContent)&&void 0!==t?t:"").trim();r+=n+" ",e.remove()}),r.length>e){var i=r.slice(0,e)+"...",a=document.createElement("p");a.textContent=i,n.append(a)}else{var l=document.createElement("p");l.textContent=r,n.append(l)}}}}}])&&be(n.prototype,o),r&&be(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Ce(e){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(e)}function Te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Oe(o.key),o)}}function Oe(e){var t=function(e,t){if("object"!=Ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ce(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ce(t)?t:t+""}function Le(e,t,n){return t=xe(t),function(e,t){if(t&&("object"==Ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qe()?Reflect.construct(t,n||[],xe(e).constructor):t.apply(e,n))}function qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qe=function(){return!!e})()}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}function Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pe(e,t)}(0,s.fe)({componentName:"O5-byline-card",component:Ae});var je=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Le(this,t,[e])).init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}(t,e),n=t,(o=[{key:"setup",value:function(){var e=document.querySelectorAll(".o5-callToAction__buttons_wo-ohid > a");if(e)for(var t=0;t<e.length;t++){var n=e[t].getAttribute("data-href"),o=encodeURI(n);e[t].setAttribute("href",o)}}}])&&Te(n.prototype,o),r&&Te(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ie(o.key),o)}}function Ie(e){var t=function(e,t){if("object"!=Ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ne(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ne(t)?t:t+""}function De(e,t,n){return t=Fe(t),function(e,t){if(t&&("object"==Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Be()?Reflect.construct(t,n||[],Fe(e).constructor):t.apply(e,n))}function Be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Be=function(){return!!e})()}function Fe(e){return Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fe(e)}function Re(e,t){return Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Re(e,t)}(0,s.fe)({componentName:"o5-call-to-action-bar",component:je});var He=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=De(this,t,[e])).init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Re(e,t)}(t,e),n=t,(o=[{key:"setup",value:function(){var e=document.querySelectorAll(".o5-mixed-row__button--link");if(e)for(var t=0;t<e.length;t++){var n=e[t].getAttribute("data-href"),o=encodeURI(n);e[t].setAttribute("href",o)}}}])&&Me(n.prototype,o),r&&Me(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);(0,s.fe)({componentName:"o5-complex-card-row",component:He});var Ue=n(60861);function Ve(e){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(e)}function ze(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ye(o.key),o)}}function $e(e,t,n){return t=Ge(t),function(e,t){if(t&&("object"==Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ze()?Reflect.construct(t,n||[],Ge(e).constructor):t.apply(e,n))}function Ze(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ze=function(){return!!e})()}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ge(e)}function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}function Ke(e,t,n){return(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e){var t=function(e,t){if("object"!=Ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ve(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ve(t)?t:t+""}var Qe=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ke(n=$e(this,t,[e]),"endedHandler",null),Ke(n,"fullscreenHandler",null),Ke(n,"closeFocusTrapHandler",null),Ke(n,"ctaEndFocusTrapHandler",null),n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){var e=this,t=this.element;t.querySelectorAll(".o5-mixed-card-complex__cta .dmp-btn__video").forEach(function(t){t.addEventListener("click",e.videoBtnClick.bind(e))}),t.querySelectorAll(".o5-mixed-card-complex__videoicon-1").forEach(function(t){t.addEventListener("click",e.videoBtnClick.bind(e))}),t.querySelectorAll(".o5-mixed-card-complex__close").forEach(function(t){t.addEventListener("click",e.closeVideoModel.bind(e)),t.addEventListener("keydown",e.keyboardVideoModal.bind(e))}),t.querySelectorAll(".o5-mixed-card-complex__video-modal").forEach(function(t){t.addEventListener("click",e.hideVideoModal.bind(e)),t.addEventListener("keydown",e.closeModal.bind(e))}),new MutationObserver(function(){t.querySelectorAll(".vjs-slider, .vjs-button").forEach(function(t){t.hasAttribute("data-cc-escape-bound")||(t.setAttribute("data-cc-escape-bound","true"),t.addEventListener("keydown",function(t){"Escape"===t.key&&e.handleVideoControlEscape(t.currentTarget)}))})}).observe(t,{childList:!0,subtree:!0}),t.querySelectorAll(".vjs-slider, .vjs-button").forEach(function(t){t.hasAttribute("data-cc-escape-bound")||(t.setAttribute("data-cc-escape-bound","true"),t.addEventListener("keydown",function(t){"Escape"===t.key&&e.handleVideoControlEscape(t.currentTarget)}))}),t.querySelectorAll("#o5-complex-card-data-id").forEach(function(e){var t={videolink:"",videoId:e.dataset.videoId,videoURL:e.dataset.videoUrl,imgURL:e.dataset.imgURL,videoTitle:e.dataset.videoTitle,videoAltText:e.dataset.videoAltText,videoClosedCaption:e.dataset.videoClosedCaption};(0,Ue.E)(t)}),document.addEventListener("keydown",function(e){if("Escape"===e.key){var n=t.querySelector(".o5-mixed-card-complex__video-modal.modal--active");if(n){var o=n.querySelector(".o5-mixed-card-complex__close");o&&o.click()}}},!0)}},{key:"getDataModalOpen",value:function(e){var t=e.split("-"),n="videoPlayer__vid-";return e&&e.includes("--")?n+="-"+t[2]:n+=t[1],n}},{key:"handleVideoControlEscape",value:function(e){var t=e.closest(".video__container")||e.closest(".o5-mixed-card-complex__video-modal");if(t){var n=t.querySelector(".video-js");if(n){var o=n.id,r=(0,Ue.l)(o),i=this.getDataModalOpen(o),a=document.querySelector(globalThis.buttonSelected+'[data-modal-open="'+i+'"]');a&&a.focus(),r&&r.pause();var l=document.getElementById("videoPlayer__"+o);l&&(l.style.display="none"),document.querySelectorAll(".o5-mixed-card-complex__video-modal").forEach(function(e){e.classList.remove("modal--active"),e.setAttribute("aria-hidden","true")}),document.documentElement.style.overflow="auto"}}}},{key:"videoBtnClick",value:function(e){var t,n=this;e.preventDefault();var o=e.currentTarget,r=o.closest(".o5-mixed-card-complex");if(r){var i=r.querySelector(".video-js"),a=r.querySelector(".modal");if(i&&a){var l=i.id,c=a.id,s=(0,Ue.l)(l),u=document.getElementById(c);u&&u.querySelectorAll(".modal__end-overlay").forEach(function(e){e.style.display="none"});var d=i.closest(".video__container");d&&d.querySelectorAll(".modal__end-overlay").forEach(function(e){e.style.display="none"}),o.classList.contains("o5-mixed-card-complex__videoicon-1")&&(globalThis.buttonSelected=".o5-mixed-card-complex__videoicon-1"),o.classList.contains("dmp-btn__video")&&(globalThis.buttonSelected=".dmp-btn__video"),s&&(null===(t=s.play())||void 0===t||t.catch(function(){}));var f=document.getElementById("videoPlayer__"+l);f&&(f.style.display="block"),u&&u.focus(),this.removeFocusTrapHandlers(),this.endedHandler&&s.off("ended",this.endedHandler),this.fullscreenHandler&&s.off("fullscreenchange",this.fullscreenHandler),this.endedHandler=function(){u&&u.querySelectorAll(".modal__end-overlay").forEach(function(e){e.style.display="flex"}),d&&d.querySelectorAll(".modal__end-overlay").forEach(function(e){e.style.display="flex"});var e=document.querySelector(".jsctaend");e&&e.focus(),e&&(n.closeFocusTrapHandler=function(e){if("Tab"===e.key&&!e.shiftKey){var t=document.querySelector(".jsctaend");t&&t.focus(),e.preventDefault(),e.stopPropagation()}},n.ctaEndFocusTrapHandler=function(e){if(e.shiftKey&&"Tab"===e.key){var t=document.querySelector(".o5-mixed-card-complex__close");t&&t.focus(),e.preventDefault(),e.stopPropagation()}},document.querySelectorAll(".o5-mixed-card-complex__close").forEach(function(e){e.addEventListener("keydown",n.closeFocusTrapHandler)}),e.addEventListener("keydown",n.ctaEndFocusTrapHandler))},this.fullscreenHandler=function(){if(s.isFullscreen()&&u&&i){var e=u.querySelector(".modal__end-overlay");e&&i.appendChild(e)}},s.on("ended",this.endedHandler),s.on("fullscreenchange",this.fullscreenHandler),this.openModal(c)}}}},{key:"removeFocusTrapHandlers",value:function(){var e=this;if(this.closeFocusTrapHandler&&(document.querySelectorAll(".o5-mixed-card-complex__close").forEach(function(t){t.removeEventListener("keydown",e.closeFocusTrapHandler)}),this.closeFocusTrapHandler=null),this.ctaEndFocusTrapHandler){var t=document.querySelector(".jsctaend");t&&t.removeEventListener("keydown",this.ctaEndFocusTrapHandler),this.ctaEndFocusTrapHandler=null}}},{key:"closeVideoModel",value:function(e){var t=e.currentTarget.closest(".o5-mixed-card-complex__video-modal.modal--active")||document.querySelector(".o5-mixed-card-complex__video-modal.modal--active");if(t){var n=t.querySelector(".video-js");if(n){var o=n.id,r=(0,Ue.l)(o),i=this.getDataModalOpen(o),a=document.querySelector(globalThis.buttonSelected+'[data-modal-open="'+i+'"]');a&&a.focus(),r&&r.pause();var l=document.getElementById("videoPlayer__"+o);l&&(l.style.display="none"),document.querySelectorAll(".o5-mixed-card-complex__video-modal").forEach(function(e){e.classList.remove("modal--active")}),document.documentElement.style.overflow="auto"}}}},{key:"keyboardVideoModal",value:function(e){var t=e.currentTarget.closest(".o5-mixed-card-complex__video-modal.modal--active")||document.querySelector(".o5-mixed-card-complex__video-modal.modal--active");if(t){var n=t.querySelector(".video-js");if(n){var o=n.id,r=this.getDataModalOpen(o);if("Enter"===e.key||"Escape"===e.key||" "===e.key){e.preventDefault(),e.stopPropagation();var i=(0,Ue.l)(o);i&&i.pause();var a=document.getElementById("videoPlayer__"+o);a&&(a.style.display="none");var l=document.querySelector(globalThis.buttonSelected+'[data-modal-open="'+r+'"]');l&&l.focus(),document.documentElement.style.overflow="auto"}}}}},{key:"hideVideoModal",value:function(e){e.target.classList.contains("modal")&&this.closeVideoModel(e)}},{key:"closeModal",value:function(e){"Escape"===e.key&&(this.closeVideoModel(e),document.querySelectorAll(".o5-mixed-card-complex__video-modal").forEach(function(e){e.style.display="none",e.setAttribute("aria-hidden","true")}),document.documentElement.style.overflow="auto")}},{key:"openModal",value:function(e){var t=document.getElementById(e);
6if(t){var n=t.querySelectorAll('a[href], area[href], input:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]'),o=t.querySelector(".vjs-controls-enabled");o&&o.classList.remove("vjs-controls-disabled");var r=null;if(n.length>1){var i=n[1];r=n[n.length-1],t.addEventListener("keydown",function(e){e.shiftKey&&"Tab"===e.key?document.activeElement===i&&(r.focus(),e.preventDefault()):"Tab"===e.key&&document.activeElement===r&&t.focus()})}t.classList.add("modal--active"),t.setAttribute("aria-hidden","false"),document.documentElement.style.overflow="hidden",r?r.focus():t.focus()}}}],o&&ze(n.prototype,o),r&&ze(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,rt(o.key),o)}}function et(e,t,n){return t=nt(t),function(e,t){if(t&&("object"==Xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tt()?Reflect.construct(t,n||[],nt(e).constructor):t.apply(e,n))}function tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tt=function(){return!!e})()}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function ot(e,t){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ot(e,t)}function rt(e){var t=function(e,t){if("object"!=Xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Xe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xe(t)?t:t+""}(0,s.fe)({componentName:"o5-complex-card",component:Qe});var it=function(e){function t(e){var n,o,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=et(this,t,[e]),o=n,i=function(){var e=window.location.hash;if(e){var t=e.substring(1);try{t=decodeURIComponent(t)}catch(e){return}var o=$(n.element).find(".o5-contacts-accordion__anchor").filter(function(e,n){return n.id===t});if(0!==o.length){var r=o.closest(".o5-contacts-accordion__blade");if(0!==r.length){var i=r.find(".js--ca-btn"),a=i.data("uid"),l=$("#o5-accordion__drawer-content-".concat(a)),c=$("#o5-contacts-accordion__drawer-face-icon-".concat(a," > svg"));i.hasClass("is--expanded")||(i.addClass("is--expanded"),l.addClass("is--expanded"),i.attr("aria-expanded","true"),c.addClass("is--expanded"));var s=i[0],u=o[0],d=window.matchMedia("(prefers-reduced-motion: reduce)").matches,f=d?"auto":"smooth",p=function(){return s.focus({preventScroll:!0})};!d&&"onscrollend"in window?(window.addEventListener("scrollend",p,{once:!0}),u.scrollIntoView({behavior:"smooth",block:"start"})):(u.scrollIntoView({behavior:f,block:"start"}),requestAnimationFrame(p))}}}},(r=rt(r="handleDeepLink"))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,n.bindEventListeners(),n.handleDeepLink(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(t,e),n=t,o=[{key:"bindEventListeners",value:function(){var e=window.matchMedia("(max-width: 540px)");$(this.element).on("click",".js--ca-btn",this.expandOnClick.bind(this)),this.handleViewportChange(e),e.addEventListener("change",this.handleViewportChange.bind(this)),window.addEventListener("hashchange",this.handleDeepLink)}},{key:"beforeDestroy",value:function(){window.removeEventListener("hashchange",this.handleDeepLink)}},{key:"handleViewportChange",value:function(e){var t=$(this.element);e.matches?(t.find(".o5-contacts-accordion__drawer-content").each(function(e,t){$(t).children(".js--role-table").attr("role","presentation").removeAttr("aria-label")}),t.find(".js--role-rowgroup").attr("role","presentation"),t.find(".js--role-row").attr("role","presentation"),t.find(".js--role-columnheader").attr("role","presentation"),t.find(".js--role-rowheader").attr("role","presentation"),t.find(".js--role-cell").attr("role","presentation")):(t.find(".o5-contacts-accordion__drawer-content").each(function(e,t){var n=$(t).children(".js--role-table"),o=n.data("label");n.attr("aria-label",o),n.attr("role","table")}),t.find(".js--role-rowgroup").attr("role","rowgroup"),t.find(".js--role-row").attr("role","row"),t.find(".js--role-columnheader").attr("role","columnheader"),t.find(".js--role-rowheader").attr("role","rowheader"),t.find(".js--role-cell").attr("role","cell"))}},{key:"expandOnClick",value:function(e){var t=$(e.currentTarget),n=t.data("uid"),o=$("#o5-accordion__drawer-content-".concat(n)),r=t.hasClass("is--expanded"),i=$("#o5-contacts-accordion__drawer-face-icon-".concat(n," > svg")),a=t.find(".o5-contacts-accordion__drawer-face-title").text().trim().toLowerCase(),l=t.closest(".o5-contacts-accordion").find(".o5-contacts-accordion__topper-title").text().trim().toLowerCase();r?(t.removeClass("is--expanded"),o.removeClass("is--expanded"),t.attr("aria-expanded","fal
6se"),i.removeClass("is--expanded"),o5_analyticsAccordionTrack(a,l,"accordion close","")):(t.addClass("is--expanded"),o.addClass("is--expanded"),t.attr("aria-expanded","true"),i.addClass("is--expanded"),o5_analyticsAccordionTrack(a,l,"accordion open",""))}}],o&&Je(n.prototype,o),r&&Je(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);(0,s.fe)({componentName:"o5-contacts-accordion",component:it});var at=n(19952);function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ct(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return st(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(st(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,st(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,st(d,"constructor",s),st(s,"constructor",c),c.displayName="GeneratorFunction",st(s,r,"GeneratorFunction"),st(d),st(d,r,"Generator"),st(d,o,function(){return this}),st(d,"toString",function(){return"[object Generator]"}),(ct=function(){return{w:i,m:f}})()}function st(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}st=function(e,t,n,o){function i(t,n){st(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},st(e,t,n,o)}function ut(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function dt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,vt(o.key),o)}}function ft(e,t,n){return t=mt(t),function(e,t){if(t&&("object"==lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pt()?Reflect.construct(t,n||[],mt(e).constructor):t.apply(e,n))}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pt=function(){return!!e})()}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ht(e,t)}function vt(e){var t=function(e,t){if("object"!=lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=lt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lt(t)?t:t+""}var yt=function(e){function t(e){var n,o,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=ft(this,t,[e]),o=n,i="",(r=vt(r="selectedOption"))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=new at.A({element:this.element});e.parentSelector=this.element,e.start()}}
6,{key:"setup",value:function(){var e=$(this.element).find(".o5-detail-hero-banner__button");(0,ce.ix)(this.element),1!==e.children().length&&e.addClass("o5-detail-hero-banner__multiple-button"),$(".js-state-submit").on("click",this.dropdownbtnclick.bind(this)),$(".js-state-select").on("change",this.onChangeStateOption.bind(this)),$(".js-o5-sec-btn").on("click",this.handleSecBtnClick.bind(this)),$(".o5-detail-hero-banner .dmp-link-std--lg__playvid").on("click",this.videoBtnClick.bind(this)),$(".o5-detail-hero-banner .dmp-link-std__playvid").on("click",this.videoBtnClick.bind(this)),$(".o5-detail-hero-banner .dmp-btn__video").on("click",this.videoBtnClick.bind(this)),$(".o5-detail-hero-banner .play-icon").on("click keypress",this.videoBtnClick.bind(this)),$(".o5-detail-hero-banner__close").on("click",this.closeVideoModel.bind(this)),$(".o5-detail-hero-banner__close").on("keydown",this.keyboardVideoModal.bind(this)),$(".o5-detail-hero-banner__video-modal").on("click",this.hideVideoModal.bind(this)),$(".o5-detail-hero-banner__video-modal").on("keydown",this.closeModal.bind(this)),$(document).on("ajaxSuccess",function(){$(document).find(".vjs-slider, .vjs-button").on("keydown",function(e){if(27==e.keyCode){var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=(0,Ue.l)(n),r=n.split("-"),i="videoPlayer__vid-";n&&n.includes("--")?i+="-"+r[2]:i+=r[1],$(document).find(globalThis.buttonSelected+'[data-modal-open="'+i+'"]').focus(),o&&o.pause(),$(document).find("#videoPlayer__"+n).hide(),$(".o5-detail-hero-banner__video-modal").removeClass("modal--active"),$(".o5-detail-hero-banner__video-modal").attr("aria-hidden","true"),document.documentElement.style.overflow="auto"}})}),document.querySelectorAll("#o5-detail-banner-data-id").forEach(function(e){var t=e,n={videolink:"",videoId:t.dataset.videoId,videoURL:t.dataset.videoUrl,imgURL:t.dataset.imgURL,videoTitle:t.dataset.videoTitle,videoAltText:t.dataset.videoAltText,videoClosedCaption:t.dataset.videoClosedCaption};(0,Ue.E)(n)}),this.setupInlineLoopingVideo(),document.addEventListener("keydown",function(e){if("Escape"===e.key){var t=document.querySelector(".o5-detail-hero-banner__video-modal.modal--active");if(t){var n=t.querySelector(".o5-detail-hero-banner__close");n&&n.click()}}},!0)}},{key:"getActiveInlineVideo",value:function(e){var t=globalThis.matchMedia("(min-width: 768px)").matches,n=e.querySelector(".o5-detail-hero-banner__inline-video-player--desktop"),o=e.querySelector(".o5-detail-hero-banner__inline-video-player--mobile");return t?n||null:o&&!o.classList.contains("o5-detail-hero-banner__inline-video-player--mobile-disabled")?o:null}},{key:"setInlineControlState",value:function(e,t,n){var o=e.querySelector(".o5-detail-hero-banner__inline-video-btn--pause"),r=e.querySelector(".o5-detail-hero-banner__inline-video-btn--play");o&&r&&(o.dataset.state=t?"visible":"hidden",o.setAttribute("aria-hidden",t?"false":"true"),o.setAttribute("tabindex",t?"0":"-1"),r.dataset.state=t?"hidden":"visible",r.setAttribute("aria-hidden",t?"true":"false"),r.setAttribute("tabindex",t?"-1":"0"),n&&(t?o:r).focus())}},{key:"hideInlineControls",value:function(e){var t=e.querySelector(".o5-detail-hero-banner__inline-video-btn--pause"),n=e.querySelector(".o5-detail-hero-banner__inline-video-btn--play");t&&n&&(t.dataset.state="hidden",t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),n.dataset.state="hidden",n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1"))}},{key:"safeInlinePlay",value:(i=ct().m(function e(t){var n;return ct().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,!1);case 1:if(e.p=1,t.muted=!0,t.loop=!0,t.playsInline=!0,t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),!((n=t.play())instanceof Promise)){e.n=2;break}return e.n=2,n;case 2:return e.a(2,!0);case 3:return e.p=3,e.v,e.a(2,!1)}},e,null,[[1,3]])}),a=function(){var e=this,t=arguments;return new Promise(function(n,o){var r=i.apply(e,t);function a(e){ut(r,n,o,a,l,"next",e)}function l(e){ut(r,n,o,a,l,"throw",e)}a(void 0)})},function(e){return a.apply(this,arguments)})},{key:"loadInlineVideoSources",value:function(e){"true"!==e.dataset.videoLoaded&&(e.querySelectorAll(".o5-detail-hero-banner__inline-video-player").forEach(function(e){var t=e,n=t.querySelector("source");
6n&&n.dataset.src&&!n.src&&(n.src=n.dataset.src,t.load())}),e.dataset.videoLoaded="true")}},{key:"trackInlineVideoAction",value:function(e,t){if(globalThis.adobeDataLayer){var n=t.getAttribute("data-play-label")||"play background animation",o=t.getAttribute("data-pause-label")||"pause background animation";globalThis.adobeDataLayer.push({event:"video track",video:{action:e,component:"o5-detail-hero-banner",label:"pause"===e?o:n}})}}},{key:"setupInlineLoopingVideo",value:function(){var e=this,t=this.element.querySelectorAll('[data-inline-looping-video="true"]');if(t.length){var n=globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;t.forEach(function(t){var o=t,r=o.querySelector(".o5-detail-hero-banner__inline-video-btn--pause"),i=o.querySelector(".o5-detail-hero-banner__inline-video-btn--play");if("true"===o.getAttribute("data-lazy-load")){var a=new IntersectionObserver(function(t,r){t.forEach(function(t){if(t.isIntersecting){e.loadInlineVideoSources(o);var i=e.getActiveInlineVideo(o);if(!i)return e.hideInlineControls(o),void r.unobserve(t.target);if(n)return i.pause(),e.setInlineControlState(o,!1,!1),void r.unobserve(t.target);e.safeInlinePlay(i).then(function(t){e.setInlineControlState(o,t,!1),t&&e.trackInlineVideoAction("start",o)}),r.unobserve(t.target)}})},{rootMargin:"200px 0px"});a.observe(o)}else{var l=e.getActiveInlineVideo(o);if(!l)return void e.hideInlineControls(o);if(n)return l.pause(),void e.setInlineControlState(o,!1,!1);e.safeInlinePlay(l).then(function(t){e.setInlineControlState(o,t,!1),t&&e.trackInlineVideoAction("start",o)})}r&&r.addEventListener("click",function(t){t.preventDefault();var n=e.getActiveInlineVideo(o);n&&(n.pause(),e.setInlineControlState(o,!1,!0),e.trackInlineVideoAction("pause",o))}),i&&i.addEventListener("click",function(t){t.preventDefault();var n=e.getActiveInlineVideo(o);n?e.safeInlinePlay(n).then(function(t){e.setInlineControlState(o,t,!0),t&&e.trackInlineVideoAction("resume",o)}):e.hideInlineControls(o)})}),globalThis.addEventListener("resize",function(){t.forEach(function(t){var o=t,r=e.getActiveInlineVideo(o);if(r)return n?(r.pause(),void e.setInlineControlState(o,!1,!1)):void e.setInlineControlState(o,!!r&&!r.paused,!1);e.hideInlineControls(o)})})}}},{key:"onChangeStateOption",value:function(e){this.selectedOption=e.target.value}},{key:"dropdownbtnclick",value:function(e){if(e.stopImmediatePropagation(),e.preventDefault(),""===this.selectedOption&&null===this.selectedOption)return!1;window.open(this.selectedOption,"_self")}},{key:"handleSecBtnClick",value:function(e){var t=e.currentTarget;if(!["dmp-link-std--lg__playvid","dmp-link-std__playvid","dmp-btn__video","play-icon"].some(function(e){return t.classList.contains(e)})){var n=t.getAttribute("href");n.includes(".html")||n.includes("https://")||(n+=".html"),window.location.href=n}}},{key:"videoBtnClick",value:function(e){e.preventDefault();var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=$(t).parents().eq(3).find(".modal").attr("ID"),r=$("#"+n),i=(0,Ue.l)(n);$("#"+o).find(".modal__end-overlay").css("display","none"),$(r).find(".modal__end-overlay").css("display","none"),t.classList.contains("play-icon")&&(globalThis.buttonSelected=".play-icon");var a=["dmp-btn__video","dmp-link-std--lg__playvid","dmp-link-std__playvid","play-icon"];a.some(function(e){return t.classList.contains(e)})&&(globalThis.buttonSelected="."+a.find(function(e){return t.classList.contains(e)})),i&&i.play(),$(document).find("#videoPlayer__"+n).show(),$("#"+o).focus(),$(".o5-detail-hero-banner__close").off("keydown.o5dhbclose"),$(".endbtn").off("keydown.o5dhbendbtn"),i.on("ended",function(){$("#"+o).find(".modal__end-overlay").css("display","flex"),$(r).find(".modal__end-overlay").css("display","flex"),$(".endbtn").focus(),$(".endbtn").length&&($(".o5-detail-hero-banner__close").on("keydown.o5dhbclose",function(e){"Tab"==e.key&&($(".endbtn").focus(),e.preventDefault(),e.stopPropagation())}),$(".endbtn").on("keydown.o5dhbendbtn",function(e){e.shiftKey&&"Tab"==e.key&&($(".o5-detail-hero-banner__close").focus(),e.preventDefault(),e.stopPropagation())}))}),i.on("fullscreenchange",function(){this.isFullscreen()&&$("#"+o).find(".modal__end-overlay").appendTo(r)}),this.openModal(o)}},{key:"closeVideoModel",value:function(e){e.preventDefault();var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=(0,Ue.l)(n),r=n.split("-"),i="videoPlayer__vid-";n&&n.includes("--")?i+="-"+r[2]:i+=r[1],$(document).find(globalThis.buttonSelected+'[data-modal-open="'+i+'"]').focus(),o&&o.pause(),$(t).closest("#videoPlayer__"+n).hide(),$(".o5-detail-hero-banner__video-modal").removeClass("modal--active"),document.documentElement.style.overflow="auto"}},{key:"keyboardVideoModal",value:function(e){var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=n.split("-"),r="videoPlayer__vid-";if(n&&n.includes("--")?r+="-"+o[2]:r+=o[1],"Enter"==e.key||"Escape"==e.key||" "===e.key||32===e.keyCode){e.preventDefault(e),e.stopPropagation();var i=(0,Ue.l)(n);i&&i.pause(),$(document).find("#videoPlayer__"+n).hide(),$(".o5-detail-hero-banner__video-modal").removeClass("modal--active"),document.documentElement.style.overflow="auto",$(document).find(globalThis.buttonSelected+'[data-modal-open="'+r+'"]').focus()}}},{key:"hideVideoModal",value:function(e){$(e.target).hasClass("modal")&&this.closeVideoModel(e)}},{key:"closeModal",value:function(e){27==e.keyCode&&(this.closeVideoModel(e),$(".o5-detail-hero-banner__video-modal").hide().attr("aria-hidden","true"),document.documentElement.style.overflow="auto")}},{key:"openModal",value:function(e){var t=document.getElementById(e),n=$("#"+e),o=t.querySelectorAll('a[href], area[href], input
6:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]');if(n.find(".vjs-controls-enabled").removeClass("vjs-controls-disabled"),n.length>0){var r=o[1],i=o[o.length-1];n.on("keydown",function(e){e.shiftKey&&9==e.keyCode&&document.activeElement==r&&($(i).focus(),e.preventDefault()),!0!==e.shiftKey&&9==e.keyCode&&document.activeElement==i&&n.focus()}),n.addClass("modal--active").attr("aria-hidden","false"),document.documentElement.style.overflow="hidden",$(i).focus()}}}],o&&dt(n.prototype,o),r&&dt(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r,i,a}(s.o6);function bt(e){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(e)}function gt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,At(o.key),o)}}function wt(e,t,n){return t=_t(t),function(e,t){if(t&&("object"==bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,St()?Reflect.construct(t,n||[],_t(e).constructor):t.apply(e,n))}function St(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(St=function(){return!!e})()}function _t(e){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_t(e)}function kt(e,t){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kt(e,t)}function Et(e,t,n){return(t=At(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e){var t=function(e,t){if("object"!=bt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=bt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bt(t)?t:t+""}(0,s.fe)({componentName:"o5-detail-hero-banner",component:yt});var Ct=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Et(n=wt(this,t,[e]),"listSize",void 0),Et(n,"component",void 0),Et(n,"classScope",void 0),Et(n,"elements",void 0),Et(n,"componentName",void 0),n.component=n.element,n.classScope=n,n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}(t,e),n=t,(o=[{key:"init",value:function(){this.elements={assetListItems:this.element.querySelectorAll(".o5-downloadable-assets__item")},this.listSize=this.elements.assetListItems.length}}])&&gt(n.prototype,o),r&&gt(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);(0,s.fe)({componentName:"o5-downloadable-assets",component:Ct});var Tt=n(67610);function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function Lt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Nt(o.key),o)}}function qt(e,t,n){return t=Pt(t),function(e,t){if(t&&("object"==Ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xt()?Reflect.construct(t,n||[],Pt(e).constructor):t.apply(e,n))}
6function xt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xt=function(){return!!e})()}function Pt(e){return Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pt(e)}function jt(e,t){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jt(e,t)}function Nt(e){var t=function(e,t){if("object"!=Ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ot(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ot(t)?t:t+""}var Mt=function(e){function t(e){var n,o,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=qt(this,t,[e]),o=n,i="",(r=Nt(r="selectedOption"))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,n.store={ui:{authorMode:".o5-dynamic-alerts.cq-Editable-dom",container:".o5-dynamic-alerts__container",message:".o5-dynamic-alerts__message",row:".o5-dynamic-alerts__row",fadeout:"o5-dynamic-alerts__container--fadeout",hidden:"o5-dynamic-alerts__container--hidden",initHidden:"o5-dynamic-alerts__container--init-hidden",closejs:".jsDynamicClose"},authoredContent:""},n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jt(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=this,t={},n=document.querySelectorAll(this.store.ui.container);n.forEach(function(t){t.classList.remove(e.store.ui.initHidden)}),document.querySelectorAll(this.store.ui.row).forEach(function(e,n){var o=e.querySelector("p.o5-dynamic-alerts__headline");if(o){var r=(o.id||"").replace(/\s/g,"-");o.id=r;var i=e.closest(".o5-dynamic-alerts__container");i&&i.setAttribute("aria-labelledby",r.replace(/\s/g,"-"))}t[n]=e.textContent||""}),this.store.authoredContent=JSON.stringify(t);var o=sessionStorage.getItem("clickedElementIds"),r=(0,Tt.bi)("optumAlert");r&&r===this.store.authoredContent&&!document.querySelector(this.store.ui.authorMode)&&o?n.forEach(function(t){t.classList.remove(e.store.ui.initHidden),t.classList.add(e.store.ui.hidden)}):n.forEach(function(t){t.classList.remove(e.store.ui.initHidden),t.classList.remove(e.store.ui.hidden)});var i=sessionStorage.getItem("clickedAlerts");i&&JSON.parse(i).forEach(function(t){document.querySelectorAll(e.store.ui.message).forEach(function(n){if(n.textContent===t){var o=n.closest(".o5-dynamic-alerts__container");o&&(o.classList.remove(e.store.ui.initHidden),o.classList.add(e.store.ui.hidden))}})}),document.querySelectorAll(this.store.ui.closejs).forEach(function(t){t.addEventListener("click",e.hideAlert.bind(e))});var a=document.getElementById("ues-search-component");a&&a.addEventListener("click",this.updateUesSearchPadding.bind(this)),this.updateUesSearchPadding()}},{key:"modifyUIForTemplating",value:function(e){var t={};return e&&Object.keys(e).length>0&&Object.keys(e).forEach(function(n){t[n]=e[n].slice(1)}),t}},{key:"updateUesSearchPadding",value:function(){var e,t,n=document.querySelector(".o5-header__wrapper");if(n){var o=n.getBoundingClientRect().top;t=o+40,e=o,document.documentElement.style.setProperty("--ues-search-padding-top","".concat(t,"px")),document.documentElement.style.setProperty("--mobile-nav-margin-top","".concat(e,"px")),document.documentElement.style.setProperty("overflow","hidden")}}},{key:"hideAlert",value:function(e){var t=this;e.stopPropagation();var n=e.currentTarget.closest(this.store.ui.container);if(n){var o=n.id;if((0,Tt.FX)("optumAlert",this.store.authoredContent),o){var r=sessionStorage.getItem("clickedAlerts"),i=r?JSON.parse(r):[],a=n.querySelector(this.store.ui.message),l=a&&a.textContent||"";i.push(l),sessionStorage.setItem("clickedAlerts",JSON.stringify(i))}n.classList.add(this.store.ui.fadeout),this.updateUesSearchPadding(),setTimeout(function(){n.classList.add(t.store.ui.hidden)},400)}}}],o&&Lt(n.prototype,o),r&&Lt(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
6t%2?Dt(Object(n),!0).forEach(function(t){zt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ft(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,$t(o.key),o)}}function Rt(e,t,n){return t=Ut(t),function(e,t){if(t&&("object"==It(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ht()?Reflect.construct(t,n||[],Ut(e).constructor):t.apply(e,n))}function Ht(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ht=function(){return!!e})()}function Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ut(e)}function Vt(e,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vt(e,t)}function zt(e,t,n){return(t=$t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e){var t=function(e,t){if("object"!=It(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=It(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==It(t)?t:t+""}(0,s.fe)({componentName:"o5-dynamic-alerts",component:Mt});var Zt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zt(n=Rt(this,t,[e]),"componentUid",void 0),zt(n,"titleNode",void 0),zt(n,"strengthTrigger",void 0),zt(n,"quantityTrigger",void 0),zt(n,"strengthDropdown",void 0),zt(n,"quantityDropdown",void 0),zt(n,"strengthValueNode",void 0),zt(n,"quantityValueNode",void 0),zt(n,"formValueNode",void 0),zt(n,"strengthOptionBtns",void 0),zt(n,"quantityOptionBtns",void 0),zt(n,"yourPriceDisplay",void 0),zt(n,"yourPriceRowNode",void 0),zt(n,"listPriceNode",void 0),zt(n,"pharmacyFeeNode",void 0),zt(n,"priceUpdateStatusNode",void 0),zt(n,"getStartedBtn",void 0),zt(n,"drawer",void 0),zt(n,"drawerPanel",void 0),zt(n,"drawerCloseBtn",void 0),zt(n,"drawerCloseTimer",void 0),zt(n,"currentQuantity",void 0),zt(n,"typeaheadBuffer",void 0),zt(n,"typeaheadTimer",void 0),zt(n,"inertSiblings",void 0),zt(n,"ariaHiddenSiblings",void 0),n.componentUid="o5-pricewise-".concat(window.crypto.getRandomValues(new Uint32Array(1))[0].toString(36).slice(0,8)),n.titleNode=n.element.querySelector(".o5-pricewise-drug__title"),n.strengthTrigger=n.element.querySelector('[data-role="strength-select"] .o5-pricewise-drug__select-trigger'),n.quantityTrigger=n.element.querySelector('[data-role="quantity-select"] .o5-pricewise-drug__select-trigger'),n.strengthDropdown=n.element.querySelector('[data-role="strength-select"] .o5-pricewise-drug__dropdown'),n.quantityDropdown=n.element.querySelector('[data-role="quantity-select"] .o5-pricewise-drug__dropdown'),n.strengthValueNode=n.element.querySelector('[data-role="strength-value"]'),n.quantityValueNode=n.element.querySelector('[data-role="quantity-value"]'),n.formValueNode=n.element.querySelector('[data-role="form-value"]'),n.strengthOptionBtns=Array.from(n.element.querySelectorAll('[data-role="strength-select"] .o5-pricewise-drug__option-btn')),n.quantityOptionBtns=Array.from(n.element.querySelectorAll('[data-role="quantity-select"] .o5-pricewise-drug__option-btn')),n.yourPriceDisplay=n.element.querySelector('[data-role="your-price"]'),n.yourPriceRowNode=n.element.querySelector('[data-role="your-price-row"]'),n.listPriceNode=n.element.querySelector('[data-role="list-price"]'),n.pharmacyFeeNode=n.element.querySelector('[data-role="pharmacy-fee"]'),n.priceUpdateStatusNode=n.element.querySelector('[data-role="price-update-status"]'),n.getStartedBtn=n.element.querySelector(".o5-pricewise-drug__get-started"),n.drawer=n.element.querySelector(".o5-pricewise-drug__drawer"),n.drawerPanel=n.element.querySelector(".o5-pricewise-drug__drawer
6-panel"),n.drawerCloseBtn=n.element.querySelector(".o5-pricewise-drug__drawer-close"),n.drawerCloseTimer=null,n.currentQuantity=0,n.typeaheadBuffer="",n.typeaheadTimer=null,n.inertSiblings=[],n.ariaHiddenSiblings=[],n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vt(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=this;if(this.titleNode&&(this.titleNode.id="".concat(this.componentUid,"-drug-title"),this.element.setAttribute("aria-labelledby",this.titleNode.id),"false"===this.titleNode.dataset.headlineOverride&&(this.titleNode.textContent=this.toTitleCase(this.titleNode.textContent||"",""))),this.strengthOptionBtns.length){this.strengthTrigger&&(this.strengthTrigger.addEventListener("click",function(){return e.toggleDropdown("strength")}),this.strengthTrigger.addEventListener("keydown",function(t){return e.handleTriggerKeyDown("strength",t)})),this.quantityTrigger&&(this.quantityTrigger.addEventListener("click",function(){return e.toggleDropdown("quantity")}),this.quantityTrigger.addEventListener("keydown",function(t){return e.handleTriggerKeyDown("quantity",t)})),this.strengthOptionBtns.forEach(function(t){t.addEventListener("click",e.handleStrengthSelect.bind(e))}),this.quantityOptionBtns.forEach(function(t){t.addEventListener("click",e.handleQuantitySelect.bind(e))}),document.addEventListener("click",this.handleOutsideClick.bind(this)),document.addEventListener("keydown",this.handleKeyDown.bind(this),!0),this.getStartedBtn&&this.getStartedBtn.addEventListener("click",this.openDrawer.bind(this)),Array.from(this.element.querySelectorAll('[data-action="close-drawer"]')).forEach(function(t){return t.addEventListener("click",e.closeDrawer.bind(e))}),this.setupAriaAttributes(),this.setupSignInLink();var t=this.getDefaultQuantity();this.currentQuantity=t,this.quantityOptionBtns.forEach(function(n){var o=e.parseIntValue(n.dataset.quantityOption)===t;n.classList.toggle("is-selected",o),n.setAttribute("aria-selected",o?"true":"false")}),this.quantityValueNode&&(this.quantityValueNode.textContent="".concat(t," count")),this.selectStrength(this.strengthOptionBtns[0])}else{this.quantityTrigger&&(this.quantityTrigger.addEventListener("click",function(){return e.toggleDropdown("quantity")}),this.quantityTrigger.addEventListener("keydown",function(t){return e.handleTriggerKeyDown("quantity",t)})),this.quantityOptionBtns.forEach(function(t){t.addEventListener("click",e.handleQuantitySelect.bind(e))}),document.addEventListener("click",this.handleOutsideClick.bind(this)),document.addEventListener("keydown",this.handleKeyDown.bind(this),!0),this.getStartedBtn&&this.getStartedBtn.addEventListener("click",this.openDrawer.bind(this)),Array.from(this.element.querySelectorAll('[data-action="close-drawer"]')).forEach(function(t){return t.addEventListener("click",e.closeDrawer.bind(e))}),this.setupAriaAttributes(),this.setupSignInLink();var n=this.getDefaultQuantity();this.currentQuantity=n,this.quantityOptionBtns.forEach(function(t){var o=e.parseIntValue(t.dataset.quantityOption)===n;t.classList.toggle("is-selected",o),t.setAttribute("aria-selected",o?"true":"false")}),this.quantityValueNode&&(this.quantityValueNode.textContent="".concat(n," count"));var o=this.quantityOptionBtns.find(function(t){return e.parseIntValue(t.dataset.quantityOption)===n});o&&this.updateSummary(o,n)}}},{key:"setupSignInLink",value:function(){var e=this.element.querySelector("[data-sign-in-url]");e&&e.dataset.signInUrl&&(e.href=e.dataset.signInUrl,e.dataset.preserveTarget="true",e.target="_blank",e.rel="noopener noreferrer")}},{key:"setupAriaAttributes",value:function(){var e=this,t=this.element.querySelector("#pw-form-trigger"),n=this.element.querySelector("#pw-form-label"),o=this.element.querySelector("#pw-strength-label"),r=this.element.querySelector("#pw-quantity-label");if(t&&(t.id="".concat(this.componentUid,"-form-trigger")),n&&(n.id="".concat(this.componentUid,"-form-label")),t&&n&&(this.formValueNode?(this.formValueNode.id="".concat(this.componentUid,"-form-value"),t.setAttribute("aria-labelledby","".concat(n.id," ").concat(this.formValueNode.id))):t.setAttribute("aria-labelledby",n.id)),this.strengthDropdown&&this.strengthTrigger&&(this.strengthTrigger.id="".concat(this.componentUid,"-strength-trigger"),o&&(o.id="".concat(this.componentUid,"-strength-label"),this.strengthValueNode?(this.strengthValueNode.id="".concat(this.componentUid,"-strength-value"),this.strengthTrigger.setAttribute("aria-labelledby",o.id)):this.strengthTrigger.setAttribute("aria-labelledby",o.id),this.strengthDropdown.setAttribute("aria-labelledby",o.id)),this.strengthDropdown.id="".concat(this.componentUid,"-strength-listbox"),this.strengthDropdown.setAttribute("aria-orientation","vertical"),this.strengthOptionBtns.forEach(function(t,n){t.id="".concat(e.componentUid,"-strength-option-").concat(n),t.setAttribute("tabindex","-1")}),this.strengthTrigger.setAttribute("role","combobox"),this.strengthTrigger.setAttribute("aria-autocomplete","none"),this.strengthTrigger.setAttribute("aria-haspopup","listbox"),this.strengthTrigger.setAttribute("aria-expanded","fal
6se"),this.strengthTrigger.setAttribute("aria-controls",this.strengthDropdown.id),this.syncComboboxState("strength")),this.quantityDropdown&&this.quantityTrigger&&(this.quantityTrigger.id="".concat(this.componentUid,"-quantity-trigger"),r&&(r.id="".concat(this.componentUid,"-quantity-label"),this.quantityValueNode?(this.quantityValueNode.id="".concat(this.componentUid,"-quantity-value"),this.quantityTrigger.setAttribute("aria-labelledby",r.id)):this.quantityTrigger.setAttribute("aria-labelledby",r.id),this.quantityDropdown.setAttribute("aria-labelledby",r.id)),this.quantityDropdown.id="".concat(this.componentUid,"-quantity-listbox"),this.quantityDropdown.setAttribute("aria-orientation","vertical"),this.quantityOptionBtns.forEach(function(t,n){t.id="".concat(e.componentUid,"-quantity-option-").concat(n),t.setAttribute("tabindex","-1")}),this.quantityTrigger.setAttribute("role","combobox"),this.quantityTrigger.setAttribute("aria-autocomplete","none"),this.quantityTrigger.setAttribute("aria-haspopup","listbox"),this.quantityTrigger.setAttribute("aria-expanded","false"),this.quantityTrigger.setAttribute("aria-controls",this.quantityDropdown.id),this.syncComboboxState("quantity")),this.drawerPanel&&this.getStartedBtn){var i=this.element.querySelector('[data-role="drawer-title"]');this.drawerPanel.id="".concat(this.componentUid,"-dialog"),this.drawerPanel.addEventListener("keydown",this.handleDrawerKeyDown.bind(this)),this.getStartedBtn.setAttribute("aria-controls",this.drawerPanel.id),i&&(i.id="".concat(this.componentUid,"-dialog-title"),this.drawerPanel.setAttribute("aria-labelledby",i.id))}}},{key:"getDropdownElements",value:function(e){return"strength"===e?{trigger:this.strengthTrigger,dropdown:this.strengthDropdown,options:this.strengthOptionBtns}:{trigger:this.quantityTrigger,dropdown:this.quantityDropdown,options:this.quantityOptionBtns}}},{key:"openDropdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getDropdownElements(e),o=n.trigger,r=n.dropdown;o&&r&&(this.closeDropdown("strength"===e?"quantity":"strength"),r.hidden=!1,o.setAttribute("aria-expanded","true"),t&&this.setActiveSelectedOrFirstOption(e))}},{key:"closeDropdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getDropdownElements(e),o=n.trigger,r=n.dropdown;o&&r&&(r.hidden=!0,o.setAttribute("aria-expanded","false"),this.syncComboboxState(e),t&&o.focus())}},{key:"closeAllDropdowns",value:function(){this.closeDropdown("strength"),this.closeDropdown("quantity")}},{key:"setActiveSelectedOrFirstOption",value:function(e){var t=this.getDropdownElements(e).options;if(t.length){var n=t.findIndex(function(e){return"true"===e.getAttribute("aria-selected")||e.classList.contains("is-selected")}),o=n>=0?n:0;this.setActiveOption(e,o)}}},{key:"handleTriggerKeyDown",value:function(e,t){var n=this.getDropdownElements(e).dropdown,o=!!n&&!n.hidden;if("Escape"!==t.key){if("ArrowDown"===t.key)return t.preventDefault(),o?void this.moveActiveOption(e,1):(this.openDropdown(e),void this.setActiveNextOrFirstOption(e));if("ArrowUp"===t.key)return t.preventDefault(),o||this.openDropdown(e,!0),void this.moveActiveOption(e,-1);if("Home"===t.key)return t.preventDefault(),o||this.openDropdown(e,!0),void this.setActiveOption(e,0);if("End"!==t.key){if("Enter"===t.key||" "===t.key)return t.preventDefault(),o?void this.selectActiveOption(e):void this.openDropdown(e,!0);1!==t.key.length||t.altKey||t.ctrlKey||t.metaKey||(t.preventDefault(),o||this.openDropdown(e,!0),this.handleTypeahead(e,t.key))}else{t.preventDefault(),o||this.openDropdown(e,!0);var r=this.getDropdownElements(e).options;this.setActiveOption(e,r.length-1)}}else o&&(t.preventDefault(),this.closeDropdown(e,!0))}},{key:"toggleDropdown",value:function(e){var t=this.getDropdownElements(e),n=t.trigger,o=t.dropdown;n&&o&&(o.hidden?this.openDropdown(e,!0):this.closeDropdown(e))}},{key:"getSelectedOptionIndex",value:function(e){var t=this.getDropdownElements(e).options.findIndex(function(e){return"true"===e.getAttribute("aria-selected")||e.classList.contains("is-selected")});return t>=0?t:0}},{key:"getExplicitSelectedOptionIndex",value:function(e){return this.getDropdownElements(e).options.findIndex(function(e){return"true"===e.getAttribute("aria-selected")||e.classList.contains("is-selected")})}},{key:"setActiveNextOrFirstOption",value:function(e){if(this.getDropdownElements(e).options.length){var t=this.getExplicitSelectedOptionIndex(e),n=t>=0?t+1:0;this.setActiveOption(e,n)}}},{key:"getActiveOptionIndex",value:function(e){var t=this.getDropdownElements(e),n=t.trigger,o=t.options;if(!n||!o.length)return-1;var r=n.getAttribute("aria-activedescendant");
6if(!r)return this.getSelectedOptionIndex(e);var i=o.findIndex(function(e){return e.id===r});return i>=0?i:this.getSelectedOptionIndex(e)}},{key:"setActiveOption",value:function(e,t){var n=this.getDropdownElements(e),o=n.trigger,r=n.options;if(o&&r.length){var i=(t%r.length+r.length)%r.length;r.forEach(function(e,t){e.classList.toggle("is-active",t===i)}),o.setAttribute("aria-activedescendant",r[i].id)}}},{key:"syncComboboxState",value:function(e){var t=this.getDropdownElements(e),n=t.trigger,o=t.dropdown;n&&o&&!o.hidden?this.setActiveOption(e,this.getSelectedOptionIndex(e)):null==n||n.removeAttribute("aria-activedescendant")}},{key:"moveActiveOption",value:function(e,t){if(this.getDropdownElements(e).options.length){var n=this.getActiveOptionIndex(e),o=n>=0?n+t:0;this.setActiveOption(e,o)}}},{key:"selectActiveOption",value:function(e){var t=this.getDropdownElements(e).options;if(t.length){var n=this.getActiveOptionIndex(e),o=t[n>=0?n:0];"strength"!==e?this.commitQuantitySelection(o,"quantity_keyboard"):this.commitStrengthSelection(o,"strength_keyboard")}}},{key:"handleTypeahead",value:function(e,t){var n=this,o=this.getDropdownElements(e).options;if(o.length){this.typeaheadTimer&&clearTimeout(this.typeaheadTimer),this.typeaheadBuffer="".concat(this.typeaheadBuffer).concat(t).toLowerCase(),this.typeaheadTimer=setTimeout(function(){n.typeaheadBuffer="",n.typeaheadTimer=null},700);var r=this.getActiveOptionIndex(e),i=o.slice(r+1).concat(o.slice(0,r+1)).find(function(e){return String(e.textContent||"").trim().toLowerCase().startsWith(n.typeaheadBuffer)});i&&this.setActiveOption(e,o.indexOf(i))}}},{key:"commitStrengthSelection",value:function(e,t){var n;this.selectStrength(e,!0),this.syncComboboxState("strength"),this.closeAllDropdowns(),null===(n=this.strengthTrigger)||void 0===n||n.focus(),this.trackInteraction("strength_select",Bt({selectionSource:t},this.buildPricingContext(e,this.currentQuantity)))}},{key:"commitQuantitySelection",value:function(e,t){var n,o=this.resolveAllowedQuantity(this.parseIntValue(e.dataset.quantityOption)),r=this.currentQuantity;this.currentQuantity=o,this.quantityOptionBtns.forEach(function(e){e.classList.remove("is-selected"),e.setAttribute("aria-selected","false")}),e.classList.add("is-selected"),e.setAttribute("aria-selected","true"),this.syncComboboxState("quantity"),this.quantityValueNode&&(this.quantityValueNode.textContent="".concat(o," count"));var i=this.getSelectedStrength();i?this.updateSummary(i,o,!0):this.updateSummary(e,o,!0),this.closeAllDropdowns(),null===(n=this.quantityTrigger)||void 0===n||n.focus(),r!==o&&this.trackInteraction("quantity_change",Bt({selectionSource:t,previousQuantity:r},this.buildPricingContext(i,o)))}},{key:"handleOutsideClick",value:function(e){var t=e.target,n=this.element.querySelector('[data-role="strength-select"]'),o=this.element.querySelector('[data-role="quantity-select"]');n&&!n.contains(t)&&this.strengthDropdown&&!this.strengthDropdown.hidden&&this.closeDropdown("strength"),o&&!o.contains(t)&&this.quantityDropdown&&!this.quantityDropdown.hidden&&this.closeDropdown("quantity")}},{key:"handleKeyDown",value:function(e){"Tab"===e.key&&this.isDrawerOpen()?this.trapFocusInDrawer(e):"Escape"===e.key&&(this.closeAllDropdowns(),this.isDrawerOpen()&&this.closeDrawer())}},{key:"handleDrawerKeyDown",value:function(e){"Tab"!==e.key?"Escape"===e.key&&(e.preventDefault(),this.closeDrawer()):this.trapFocusInDrawer(e)}},{key:"handleStrengthSelect",value:function(e){var t=e.currentTarget;this.commitStrengthSelection(t,"strength_option")}},{key:"selectStrength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.strengthOptionBtns.forEach(function(e){e.classList.remove("is-selected"),e.setAttribute("aria-selected","false")}),e.classList.add("is-selected"),e.setAttribute("aria-selected","true"),this.strengthValueNode&&(this.strengthValueNode.textContent=e.dataset.strength||"--"),this.formValueNode&&(this.formValueNode.textContent=this.toTitleCase(e.dataset.form||"capsule")),this.updateSummary(e,this.currentQuantity,t)}},{key:"handleQuantitySelect",value:function(e){var t=e.currentTarget;this.commitQuantitySelection(t,"quantity_option")}},{key:"getSelectedStrength",value:function(){return this.strengthOptionBtns.find(function(e){return e.classList.contains("is-selected")})||null}},{key:"getAllowedQuantities",value:function(){var e=this,t=this.quantityOptionBtns.map(function(t){return e.parseIntValue(t.dataset.quantityOption)}).filter(function(e){return Number.isFinite(e)&&e>0});return t.length?t:[30,60,90]}},{key:"getDefaultQuantity",value:function(){return this.getAllowedQuantities()[0]}},{key:"resolveAllowedQuantity",value:function(e){var t=this.getAllowedQuantities(),n=t[0];return t.includes(e)?e:n}},{key:"updateSummary",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.calculatePricing(e,t),r=this.formatCurrency(o.yourPrice);if(this.yourPriceDisplay&&(this.yourPriceDisplay.textContent=r),this.yourPriceRowNode&&(this.yourPriceRowNode.textContent=r),this.listPriceNode&&(this.listPriceNode.textContent=this.formatCurrency(o.listPrice)),this.pharmacyFeeNode&&(this.pharmacyFeeNode.textContent=this.formatCurrency(o.pharmacyFee)),n&&this.priceUpdateStatusNode){var i=e.dataset.strength,a=i?"".concat(i,", ").concat(t," count"):"".concat(t," count");this.priceUpdateStatusNode.textContent="Your price updated to ".concat(r," for ").concat(a,".")}}},{key:"calculatePricing",value:function(e,t){if(!e)return{retailPrice:0,listPrice:0,pharmacyFee:0,yourPrice
6:0};var n=this.parseFloatValue(e.dataset.retailPrice),o=this.parseFloatValue(e.dataset.percentMarkup),r=this.parseFloatValue(e.dataset.clientDispenseFee);if(Number.isFinite(n)&&Number.isFinite(o)&&Number.isFinite(r)){var i=this.roundToCents(n*t),a=this.roundToCents(i*o/100+r);return{retailPrice:n,listPrice:i,pharmacyFee:a,yourPrice:this.roundToCents(i+a)}}var l=this.resolveAllowedQuantity(this.parseIntValue(e.dataset.defaultQuantity)),c=this.parseFloatValue(e.dataset.listPrice),s=this.parseFloatValue(e.dataset.pharmacyFee);if(Number.isFinite(c)&&Number.isFinite(s)&&l>0){var u=t/l,d=this.roundToCents(c*u),f=this.roundToCents(s*u),p=this.roundToCents(d+f);return{retailPrice:Number.isFinite(n)?n:0,listPrice:d,pharmacyFee:f,yourPrice:p}}if(Number.isFinite(n)&&n>0){var m=this.roundToCents(n*t);return{retailPrice:n,listPrice:m,pharmacyFee:0,yourPrice:m}}return{retailPrice:Number.isFinite(n)?n:0,listPrice:0,pharmacyFee:0,yourPrice:0}}},{key:"openDrawer",value:function(){var e=this;if(this.drawer&&this.getStartedBtn){this.drawerCloseTimer&&(clearTimeout(this.drawerCloseTimer),this.drawerCloseTimer=null),this.drawer.hidden=!1,this.drawer.classList.remove("is-closing"),requestAnimationFrame(function(){var t;null===(t=e.drawer)||void 0===t||t.classList.add("is-open")}),document.body.classList.add("o5-pricewise-drug-drawer-open"),this.setPageContentInert(!0),this.get
6StartedBtn.setAttribute("aria-expanded","true"),this.drawerCloseBtn?this.drawerCloseBtn.focus():this.drawerPanel&&this.drawerPanel.focus();var t=this.getSelectedStrength();this.trackInteraction("drawer_open",Bt({selectionSource:"get_started_button"},this.buildPricingContext(t,this.currentQuantity)))}}},{key:"closeDrawer",value:function(){var e=this;this.drawer&&this.getStartedBtn&&(this.drawerCloseTimer&&(clearTimeout(this.drawerCloseTimer),this.drawerCloseTimer=null),this.drawer.classList.remove("is-open"),this.drawer.classList.add("is-closing"),this.drawerCloseTimer=setTimeout(function(){e.drawer&&(e.drawer.hidden=!0,e.drawer.classList.remove("is-closing"),e.drawerCloseTimer=null)},t.DRAWER_ANIMATION_MS),document.body.classList.remove("o5-pricewise-drug-drawer-open"),this.setPageContentInert(!1),this.getStartedBtn.setAttribute("aria-expanded","false"),this.getStartedBtn.focus())}},{key:"setPageContentInert",value:function(e){var t=this,n=Array.from(document.body.children).find(function(e){return e===t.element||e.contains(t.element)}),o=Array.from(document.body.children).filter(function(e){return e instanceof HTMLElement&&e!==n});if(e)return this.inertSiblings=o.filter(function(e){return!e.hasAttribute("inert")}),this.inertSiblings.forEach(function(e){e.setAttribute("inert","")}),this.ariaHiddenSiblings=o.filter(function(e){return!e.hasAttribute("aria-hidden")}),void this.ariaHiddenSiblings.forEach(function(e){e.setAttribute("aria-hidden","true")});this.inertSiblings.forEach(function(e){e.removeAttribute("inert")}),this.inertSiblings=[],this.ariaHiddenSiblings.forEach(function(e){e.removeAttribute("aria-hidden")}),this.ariaHiddenSiblings=[]}},{key:"isDrawerOpen",value:function(){var e;return!!this.drawer&&!this.drawer.hidden&&"true"===(null===(e=this.getStartedBtn)||void 0===e?void 0:e.getAttribute("aria-expanded"))}},{key:"getDrawerFocusableElements",value:function(){if(!this.drawerPanel)return[];var e=["a[href]",'button:not([disabled]):not([aria-disabled="true"])','input:not([disabled]):not([aria-disabled="true"])','select:not([disabled]):not([aria-disabled="true"])','textarea:not([disabled]):not([aria-disabled="true"])','[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(this.drawerPanel.querySelectorAll(e))}},{key:"trapFocusInDrawer",value:function(e){var t,n=this.getDrawerFocusableElements();if(!n.length)return e.preventDefault(),void(null===(t=this.drawerPanel)||void 0===t||t.focus());var o=n[0],r=n[n.length-1],i=document.activeElement;if(e.shiftKey&&i===o)return e.preventDefault(),void r.focus();e.shiftKey||i!==r||(e.preventDefault(),o.focus())}},{key:"parseFloatValue",value:function(e){return e?Number.parseFloat(e):NaN}},{key:"parseIntValue",value:function(e){return e?Number.parseInt(e,10):NaN}},{key:"toTitleCase",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--";return e?e.toLowerCase().replace(/\b\w/g,function(e){return e.toUpperCase()}):t}},{key:"roundToCents",value:function(e){return Math.round(100*e)/100}},{key:"formatCurrency",value:function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}},{key:"buildPricingContext",value:function(e,t){if(!e)return{quantity:t};var n=this.calculatePricing(e,t);return{drugName:e.dataset.drugName||"",brandName:e.dataset.brandName||"",form:e.dataset.form||"capsule",strength:e.dataset.strength||"",ndc:e.dataset.ndc||"",quantity:t,retailPrice:n.retailPrice,listPrice:n.listPrice,pharmacyFee:n.pharmacyFee,yourPrice:n.yourPrice}}},{key:"trackInteraction",value:function(e,t){var n=globalThis.adobeDataLayer;n&&"function"==typeof n.push&&n.push({event:"pricewise interaction",pricewise:Bt({component:"o5-dynamic-pricewise-drug",action:e},t)})}}],o&&Ft(n.prototype,o),r&&Ft(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Wt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Jt(o.key),o)}}
6function Kt(e,t,n){return t=Qt(t),function(e,t){if(t&&("object"==Gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yt()?Reflect.construct(t,n||[],Qt(e).constructor):t.apply(e,n))}function Yt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yt=function(){return!!e})()}function Qt(e){return Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qt(e)}function Xt(e,t){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xt(e,t)}function Jt(e){var t=function(e,t){if("object"!=Gt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Gt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gt(t)?t:t+""}zt(Zt,"DRAWER_ANIMATION_MS",300),(0,s.fe)({componentName:"o5-dynamic-pricewise-drug",component:Zt});var en=function(e){function t(e){var n,o,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Kt(this,t,[e]),o=n,i="",(r=Jt(r="selectedOption"))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=new at.A({element:this.element});e.parentSelector=this.element,e.start()}},{key:"setup",value:function(){$(".o5-generic-hero-banner-search__input").on("focus blur",this.focusInput.bind(this)),$(".o5-generic-hero-banner-search__input").on("input keyup",this.checkInput.bind(this)),$(".o5-generic-hero-banner-search__submit").on("click keydown",this.checkInput.bind(this)),$(".js-state-submit").on("click",this.dropdownbtnclick.bind(this)),$(".js-state-select").on("change",this.onChangeStateOption.bind(this)),$(".js-o5-sec-btn").on("click",this.handleSecBtnClick.bind(this)),$(".o5-generic-hero-banner .dmp-btn__video").on("click",this.videoBtnClick.bind(this)),$(".o5-generic-hero-banner .dmp-link-std__playvid").on("click",this.videoBtnClick.bind(this)),$(".o5-generic-hero-banner__close").on("click",this.closeVideoModel.bind(this)),$(".o5-generic-hero-banner__close").on("keydown",this.keyboardVideoModal.bind(this)),$(".o5-generic-hero-banner__video-modal").on("click",this.hideVideoModal.bind(this)),$(".o5-generic-hero-banner__video-modal").on("keydown",this.closeModal.bind(this)),$(document).on("ajaxSuccess",function(){$(document).find(".vjs-slider, .vjs-button").on("keydown",function(e){if(27==e.keyCode){var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=(0,Ue.l)(n),r=n.split("-"),i="videoPlayer__vid-";n&&n.includes("--")?i+="-"+r[2]:i+=r[1],$('[data-modal-open="'+i+'"]').focus(),o&&o.pause(),$(document).find("#videoPlayer__"+n).hide(),$(".o5-generic-hero-banner__video-modal").removeClass("modal--active"),$(".o5-generic-hero-banner__video-modal").attr("aria-hidden","true"),document.documentElement.style.overflow="auto"}})}),document.querySelectorAll("#o5-generic-hero-banner-data-id").forEach(function(e){var t=e,n={videolink:"",videoId:t.dataset.videoId,videoURL:t.dataset.videoUrl,imgURL:t.dataset.imgURL,videoTitle:t.dataset.videoTitle,videoAltText:t.dataset.videoAltText,videoClosedCaption:t.dataset.videoClosedCaption};(0,Ue.E)(n)})}},{key:"focusInput",value:function(e){"focus"===e.type&&e.target.parentElement.parentElement.classList.add("o5-generic-hero-banner-search__box--focus"),"blur"===e.type&&e.target.parentElement.parentElement.classList.remove("o5-generic-hero-banner-search__box--focus")}},{key:"checkInput",value:function(e){var t=e.target.value;
6"keyup"===e.type&&"Enter"===e.key&&""!==t&&(this.performSearch(t.replaceAll(/[^a-zA-Z0-9,.']/g,"")),e.preventDefault()),"input"===e.type&&(e.target.nextSibling.nextSibling.disabled=""===t)}},{key:"submitSearch",value:function(e){("keydown"===e.type&&"Enter"===e.key||"click"===e.type)&&this.performSearch(e.delegate.previousElementSibling.value.trim())}},{key:"performSearch",value:function(e){if(null!==e&&""!==e){var t=e.replace(/%|\[|\]|:/g,"").trim(),n="/search-results.html",o=window.location.origin,r="/content/optum5/en";window.location.pathname.startsWith(r)?location.href=o+r+n+"?q="+encodeURIComponent(t):location.href=o+n+"?q="+encodeURIComponent(t)}}},{key:"onChangeStateOption",value:function(e){this.selectedOption=e.target.value}},{key:"dropdownbtnclick",value:function(e){if(e.stopImmediatePropagation(),e.preventDefault(),""===this.selectedOption&&null===this.selectedOption)return!1;window.open(this.selectedOption,"_self")}},{key:"handleSecBtnClick",value:function(e){e.preventDefault();var t=e.currentTarget.getAttribute("href");t.includes(".html")||t.includes("https://")||(t+=".html"),window.location.href=t}},{key:"videoBtnClick",value:function(e){var t;e.preventDefault();var n=e.currentTarget,o=$(n).parents().eq(3).find(".video-js").attr("ID"),r=$(n).parents().eq(3).find(".modal").attr("ID"),i=$("#"+o),a=(0,Ue.l)(o);$("#"+r).find(".modal__end-overlay").css("display","none"),$(i).find(".modal__end-overlay").css("display","none"),a&&(null===(t=a.play())||void 0===t||t.catch(function(){})),$(document).find("#videoPlayer__"+o).show(),$("#"+r).focus(),a.on("ended",function(){$("#"+r).find(".modal__end-overlay").css("display","flex"),$(i).find(".modal__end-overlay").css("display","flex"),$(".endbtn").focus(),$(".o5-generic-hero-banner__close").on("keydown",function(e){"Tab"==e.key&&($(".endbtn").focus(),e.preventDefault(),e.stopPropagation())}),$(".endbtn").on("keydown",function(e){e.shiftKey&&"Tab"==e.key&&($("o5-generic-hero-banner__close").focus(),e.preventDefault(),e.stopPropagation())})}),a.on("fullscreenchange",function(){this.isFullscreen()&&$("#"+r).find(".modal__end-overlay").appendTo(i)}),this.openModal(r)}},{key:"closeVideoModel",value:function(e){var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=(0,Ue.l)(n),r=n.split("-"),i="videoPlayer__vid-";n&&n.includes("--")?i+="-"+r[2]:i+=r[1],$('.dmp-btn__video[data-modal-open="'+i+'"]').focus(),o&&o.pause(),$(t).closest("#videoPlayer__"+n).hide(),$("o5-generic-hero-banner__video-modal").removeClass("modal--active"),document.documentElement.style.overflow="auto"}},{key:"keyboardVideoModal",value:function(e){var t=e.delegateTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=n.split("-"),r="videoPlayer__vid-";if(n&&n.includes("--")?r+="-"+o[2]:r+=o[1],"Enter"==e.key){e.preventDefault();var i=(0,Ue.l)(n);i&&i.pause(),$(document).find("#videoPlayer__"+n).hide(),document.documentElement.style.overflow="auto",$(document).find('[data-modal-open="'+r+'"]').focus()}}},{key:"hideVideoModal",value:function(e){$(e.target).hasClass("modal")&&this.closeVideoModel(e)}},{key:"closeModal",value:function(e){27==e.keyCode&&(this.closeVideoModel(e),$("o5-generic-hero-banner__video-modal").hide().attr("aria-hidden","true"),document.documentElement.style.overflow="auto")}},{key:"openModal",value:function(e){var t=document.getElementById(e),n=$("#"+e),o=t.querySelectorAll('a[href], area[href], input:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]');if(n.find(".vjs-controls-enabled").removeClass("vjs-controls-disabled"),n.length>0){var r=o[1],i=o[o.length-1];n.on("keydown",function(e){e.shiftKey&&9==e.keyCode&&document.activeElement==r&&($(i).focus(),e.preventDefault()),!0!==e.shiftKey&&9==e.keyCode&&document.activeElement==i&&n.focus()}),n.addClass("modal--active").attr("aria-hidden","false"),document.documentElement.style.overflow="hidden",$(i).focus()}}}],o&&Wt(n.prototype,o),r&&Wt(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function tn(e){return tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(e)}function nn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,on(o.key),o)}}function on(e){var t=function(e,t){if("object"!=tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tn(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tn(t)?t:t+""}function rn(e,t,n){return t=ln(t),function(e,t){if(t&&("object"==tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,an()?Reflect.construct(t,n||[],ln(e).constructor):t.apply(e,n))}function an(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(an=function(){return!!e})()}
6function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(e)}function cn(e,t){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cn(e,t)}(0,s.fe)({componentName:"o5-generic-hero-banner",component:en});var sn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=rn(this,t,[e])).store={ui:{component:".o5-search",input:".o5-search__input",boxFocus:".o5-search__box--focus",submit:".o5-search__submit",mobileContainer:".o5-nav__mobile-container",mobileSearch:".o5-nav__mobile-search",mobileMenu:".o5-header__hamburger",searchOnly:".o5-header__search-only",mobileMainNav:".o5-nav__mobile-nav",mobileUtilityNav:".o5-utility"},placeholderText:"Search"},n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cn(e,t)}(t,e),n=t,o=[{key:"init",value:function(){if(this.store.ui.component.length>0){this.searchOnly();var e=this.focusInput.bind(this),t=this.checkInput.bind(this);document.querySelectorAll(this.store.ui.input).forEach(function(n){n.addEventListener("focus",e),n.addEventListener("blur",e),n.addEventListener("keydown",t),n.addEventListener("input",t)});var n=this.submitSearch.bind(this);document.querySelectorAll(this.store.ui.submit).forEach(function(e){e.addEventListener("click",n),e.addEventListener("keydown",n)})}}},{key:"performSearch",value:function(e){if(null!==e&&""!==e){var t=e.replace(/%|\[|\]|:/g,"").trim(),n="/search-results.html",o=window.location.origin,r="/content/optum5/en";window.location.pathname.startsWith(r)?location.href=o+r+n+"?q="+encodeURIComponent(t):location.href=o+n+"?q="+encodeURIComponent(t)}}},{key:"modifyUIForTemplating",value:function(e){var t={};return e&&Object.keys(e).length>0&&Object.keys(e).forEach(function(n){t[n]=e[n].slice(1)}),t}},{key:"searchOnly",value:function(){var e=this;0===document.querySelectorAll(this.store.ui.mobileMainNav).length&&0===document.querySelectorAll(this.store.ui.mobileUtilityNav).length&&document.querySelectorAll(this.store.ui.mobileMenu).forEach(function(t){t.classList.add(e.store.ui.searchOnly)})}},{key:"focusInput",value:function(e){if("focus"===e.type&&(e.currentTarget.setAttribute("placeholder",""),e.currentTarget.parentNode.parentNode.classList.add("o5-search__box--focus")),"blur"===e.type){e.currentTarget.parentNode.parentNode.classList.remove("o5-search__box--focus");var t=document.querySelector(this.store.ui.input);t&&""===t.value&&e.currentTarget.setAttribute("placeholder",this.store.placeholderText)}}},{key:"checkInput",value:function(e){var t=e.currentTarget.value;"keydown"===e.type&&"Enter"===e.key&&""!==t&&(this.performSearch(t),e.preventDefault()),"input"===e.type&&(e.currentTarget.nextSibling.nextSibling.disabled=""===t)}},{key:"submitSearch",value:function(e){"keydown"===e.type&&"Tab"===e.key&&9===e.keyCode&&document.querySelectorAll(".o5-utility__link").forEach(function(e){return e.focus()}),("keydown"===e.type&&"Enter"===e.key||"click"===e.type)&&this.performSearch(e.currentTarget.previousElementSibling.value)}}],o&&nn(n.prototype,o),r&&nn(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);(0,s.fe)({componentName:"o5-search",component:sn}
6);var un=n(50263),dn=n(1253),fn=(n(65105),n(77939)),pn=function(e,t){return"".concat("dmp-cmp-state",":").concat(window.location.pathname,":").concat(e,":").concat(t)};function mn(e){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function hn(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return vn(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(vn(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,vn(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,vn(d,"constructor",s),vn(s,"constructor",c),c.displayName="GeneratorFunction",vn(s,r,"GeneratorFunction"),vn(d),vn(d,r,"Generator"),vn(d,o,function(){return this}),vn(d,"toString",function(){return"[object Generator]"}),(hn=function(){return{w:i,m:f}})()}function vn(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}vn=function(e,t,n,o){function i(t,n){vn(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},vn(e,t,n,o)}function yn(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function bn(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){yn(i,o,r,a,l,"next",e)}function l(e){yn(i,o,r,a,l,"throw",e)}a(void 0)})}}function gn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,An(o.key),o)}}function wn(e,t,n){return t=_n(t),function(e,t){if(t&&("object"==mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sn()?Reflect.construct(t,n||[],_n(e).constructor):t.apply(e,n))}function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sn=function(){return!!e})()}function _n(e){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(e)}function kn(e,t){return kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kn(e,t)}function En(e,t,n){return(t=An(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function An(e){var t=function(e,t){if("object"!=mn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=mn(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mn(t)?t:t+""}var Cn="o5-hero-banner-looping-video",Tn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),En(n=wn(this,t,[e]),"component",void 0),En(n,"pauseButton",void 0),En(n,"playButton",void 0),En(n,"desktopVideo",void 0),En(n,"mobileVideo",void 0),En(n,"instanceKey",void 0),n.component=n.element,n.pauseButton=n.component.querySelector(".o5-hero-banner-looping-video__controls-pause"),n.playButton=n.component.querySelector(".o5-hero-banner-looping-video__controls-play"),n.desktopVideo=n.component.querySelector(".o5-hero-banner-looping-video__video--desktop"),n.mobileVideo=n.component.querySelector(".o5-hero-banner-looping-video__video--mobile"),n.instanceKey=function(e,t){if(e.id)return e.id;var n=Array.from(document.querySelectorAll('[data-optum-cmp="'.concat(t,'"]'))).indexOf(e);return String(-1===n?0:n)}(n.component,Cn),n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kn(e,t)}(t,e),n=t,o=[{key:"isDesktop",value:function(){return globalThis.matchMedia("(min-width: 768px)").matches}},{key:"getActiveVideo",value:function(){return this.isDesktop()?this.desktopVideo:this.mobileVideo}},{key:"safePlay",value:(a=bn(hn().m(function e(t){var n,o;return hn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,!1);
6case 1:if(e.p=1,t.muted=!0,t.loop=!0,t.playsInline=!0,t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),!((n=t.play())instanceof Promise)){e.n=2;break}return e.n=2,n;case 2:return e.a(2,!0);case 3:return e.p=3,o=e.v,console.debug("[o5-hero-banner-looping-video] play() blocked:",o),e.a(2,!1)}},e,null,[[1,3]])})),function(e){return a.apply(this,arguments)})},{key:"setControlVisibility",value:function(e,t){if(this.pauseButton&&this.playButton){var n="pause"===e;this.pauseButton.dataset.state=n?"visible":"hidden",this.pauseButton.setAttribute("aria-hidden",n?"false":"true"),this.pauseButton.setAttribute("tabindex",n?"0":"-1"),this.playButton.dataset.state=n?"hidden":"visible",this.playButton.setAttribute("aria-hidden",n?"true":"false"),this.playButton.setAttribute("tabindex",n?"-1":"0"),t&&(n?this.pauseButton:this.playButton).focus()}}},{key:"pauseActiveVideo",value:function(e){var t=this.getActiveVideo();t&&(t.pause(),this.setControlVisibility("play",e))}},{key:"playActiveVideo",value:(i=bn(hn().m(function e(t){var n,o;return hn().w(function(e){for(;;)switch(e.n){case 0:if(n=this.getActiveVideo()){e.n=1;break}return e.a(2);case 1:return e.n=2,this.safePlay(n);case 2:o=e.v,this.setControlVisibility(o?"pause":"play",t);case 3:return e.a(2)}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"syncUiToVideoState",value:function(){var e=this.getActiveVideo();e&&this.setControlVisibility(e.paused?"play":"pause",!1)}},{key:"persistState",value:function(e){!function(e,t,n){(0,Tt.FX)(pn(e,t),JSON.stringify(n),"sessionStorage")}(Cn,this.instanceKey,e)}},{key:"init",value:function(){var e,t,n=this;this.pauseButton&&this.playButton&&("paused"===(e=Cn,t=this.instanceKey,(0,Tt.w6)(pn(e,t),null,"sessionStorage"))?this.pauseActiveVideo(!1):(this.setControlVisibility("pause",!1),this.playActiveVideo(!1).then(function(){return n.syncUiToVideoState()})),this.pauseButton.addEventListener("click",function(e){e.preventDefault(),n.pauseActiveVideo(!0),n.persistState("paused")}),this.playButton.addEventListener("click",function(e){e.preventDefault(),n.playActiveVideo(!0),n.persistState("playing")}),globalThis.addEventListener("resize",function(){n.syncUiToVideoState()}))}}],o&&gn(n.prototype,o),r&&gn(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r,i,a}(s.o6);function On(e){return On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},On(e)}function Ln(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return qn(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(qn(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,qn(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,qn(d,"constructor",s),qn(s,"constructor",c),c.displayName="GeneratorFunction",qn(s,r,"GeneratorFunction"),qn(d),qn(d,r,"Generator"),qn(d,o,function(){return this}),qn(d,"toString",function(){return"[object Generator]"}),(Ln=function(){return{w:i,m:f}})()}function qn(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}qn=function(e,t,n,o){function i(t,n){qn(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},qn(e,t,n,o)}function xn(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Pn(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){xn(i,o,r,a,l,"next",e)}function l(e){xn(i,o,r,a,l,"throw",e)}a(void 0)})}}function jn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fn(o.key),o)}}function Nn(e,t,n){return t=In(t),function(e,t){if(t&&("object"==On(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Mn()?Reflect.construct(t,n||[],In(e).constructor):t.apply(e,n))}function Mn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Mn=function(){return!!e})()}
6function In(e){return In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},In(e)}function Dn(e,t){return Dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dn(e,t)}function Bn(e,t,n){return(t=Fn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fn(e){var t=function(e,t){if("object"!=On(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=On(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==On(t)?t:t+""}(0,s.fe)({componentName:"o5-hero-banner-looping-video",component:Tn});var Rn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Bn(n=Nn(this,t,[e]),"component",void 0),Bn(n,"pauseButton",void 0),Bn(n,"playButton",void 0),Bn(n,"desktopVideo",void 0),Bn(n,"mobileVideo",void 0),Bn(n,"viewMedsButton",void 0),n.component=n.element,n.pauseButton=n.component.querySelector(".o5-homepage-hero__animation-controls-pause"),n.playButton=n.component.querySelector(".o5-homepage-hero__animation-controls-play"),n.desktopVideo=n.component.querySelector(".o5-homepage-hero__animation-video--desktop"),n.mobileVideo=n.component.querySelector(".o5-homepage-hero__animation-video--mobile"),n.viewMedsButton=n.component.querySelector(".js-ues-trigger"),n.setup(),n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dn(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){this.checkViewportWidth(),window.addEventListener("resize",this.checkViewportWidth),$(".o5-homepage-hero-search__input").on("focus blur",this.focusInput.bind(this)),$(".o5-homepage-hero-search__input").on("input keyup",this.checkInput.bind(this)),$(".o5-homepage-hero-search__submit").on("click keydown",this.checkInput.bind(this)),$(".o5-homepage-hero__wrapper .dmp-btn__video").on("click",this.videoBtnClick.bind(this)),$(".o5-homepage-hero-banner__close").on("click",this.closeVideoModel.bind(this)),$(".o5-homepage-hero-banner__video-modal").on("click",this.hideVideoModal.bind(this)),$(".o5-homepage-hero-banner__close").on("keydown",this.keyboardVideoModal.bind(this)),$(".o5-homepage-hero-banner__video-modal").on("keydown",this.closeModal.bind(this)),this.viewMedsButton&&$(this.component).find(".js-ues-trigger").on("click keydown",this.triggerUESBtn.bind(this)),$(document).on("ajaxSuccess",function(){$(document).find(".vjs-slider, .vjs-button").on("keydown",function(e){if(27==e.keyCode){var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=(0,Ue.l)(n),r=n.split("-"),i="videoPlayer__vid-";n&&n.includes("--")?i+="-"+r[2]:i+=r[1],$(globalThis.buttonSelected+'[data-modal-open="'+i+'"]').focus(),o&&o.pause(),$(document).find("#videoPlayer__"+n).hide(),$(".o5-homepage-hero-banner__video-modal").removeClass("modal--active"),$(".o5-homepage-hero-banner__video-modal").attr("aria-hidden","true"),document.documentElement.style.overflow="auto"}})}),document.querySelectorAll("#o5-homepage-hero-banner-data-id").forEach(function(e){var t=e,n={videolink:"",videoId:t.dataset.videoId,videoURL:t.dataset.videoUrl,imgURL:t.dataset.imgURL,videoTitle:t.dataset.videoTitle,videoAltText:t.dataset.videoAltText,videoClosedCaption:t.dataset.videoClosedCaption};(0,Ue.E)(n)}),document.addEventListener("keydown",function(e){if("Escape"===e.key){var t=document.querySelector(".o5-detail-hero-banner__video-modal.modal--active");if(t){var n=t.querySelector(".o5-detail-hero-banner__close");n&&n.click()}}},!0)}}
6,{key:"checkViewportWidth",value:function(){var e=$(".o5-homepage-hero__buttons a:eq(1)");(e.hasClass("dmp-link-rev")||e.hasClass("dmp-link-rev--lg")||e.hasClass("dmp-link-std")||e.hasClass("dmp-link-std--lg"))&&(window.innerWidth<936?(e.hasClass("dmp-link-rev")&&(e.removeClass("dmp-link-rev"),e.addClass("dmp-link-std")),e.hasClass("dmp-link-rev--lg")&&(e.removeClass("dmp-link-rev--lg"),e.addClass("dmp-link-std--lg"))):(e.hasClass("dmp-link-std")&&(e.removeClass("dmp-link-std"),e.addClass("dmp-link-rev")),e.hasClass("dmp-link-std--lg")&&(e.removeClass("dmp-link-std--lg"),e.addClass("dmp-link-rev--lg"))))}},{key:"triggerUESBtn",value:function(e){var t=document.getElementById("ues-mini-search-thumbnail");("keydown"===e.type&&"Enter"===e.key||"click"===e.type)&&(null==t||t.click())}},{key:"focusInput",value:function(e){"focus"===e.type&&e.target.parentElement.parentElement.classList.add("o5-homepage-hero-search__box--focus"),"blur"===e.type&&e.target.parentElement.parentElement.classList.remove("o5-homepage-hero-search__box--focus")}},{key:"checkInput",value:function(e){var t=e.target.value;"keyup"===e.type&&"Enter"===e.key&&""!==t&&(this.performSearch(t.replaceAll(/[^a-zA-Z0-9,.']/g,"")),e.preventDefault()),"input"===e.type&&(e.target.nextSibling.nextSibling.disabled=""===t)}},{key:"submitSearch",value:function(e){("keydown"===e.type&&"Enter"===e.key||"click"===e.type)&&this.performSearch(e.delegate.previousElementSibling.value.trim())}},{key:"performSearch",value:function(e){if(null!==e&&""!==e){var t=e.replace(/%|\[|\]|:/g,"").trim(),n="/search-results.html",o=window.location.origin,r="/content/optum5/en";window.location.pathname.startsWith(r)?location.href=o+r+n+"?q="+encodeURIComponent(t):location.href=o+n+"?q="+encodeURIComponent(t)}}},{key:"videoBtnClick",value:function(e){var t;e.preventDefault();var n=e.currentTarget,o=$(n).parents().eq(2).find(".video-js").attr("ID"),r=$(n).parents().eq(2).find(".modal").attr("ID"),i=$("#"+o),a=(0,Ue.l)(o);$("#"+r).find(".modal__end-overlay").css("display","none"),$(i).find(".modal__end-overlay").css("display","none"),n.classList.contains("o5-homepage-hero__buttons")&&(globalThis.buttonSelected=".o5-homepage-hero__buttons"),n.classList.contains("dmp-btn__video")&&(globalThis.buttonSelected=".dmp-btn__video"),a&&(null===(t=a.play())||void 0===t||t.catch(function(){})),$(document).find("#videoPlayer__"+o).show(),$("#"+r).focus(),$(".o5-homepage-hero-banner__close").off("keydown.herobanner"),$(".endbtn").off("keydown.herobanner"),a.on("ended",function(){$("#"+r).find(".modal__end-overlay").css("display","flex"),$(i).find(".modal__end-overlay").css("display","flex"),$(".endbtn").focus(),$(".endbtn").length&&($(".o5-homepage-hero-banner__close").on("keydown.herobanner",function(e){"Tab"==e.key&&($(".endbtn").focus(),e.preventDefault(),e.stopPropagation())}),$(".endbtn").on("keydown.herobanner",function(e){e.shiftKey&&"Tab"==e.key&&($(".o5-homepage-hero-banner__close").focus(),e.preventDefault(),e.stopPropagation())}))}),a.on("fullscreenchange",function(){this.isFullscreen()&&$("#"+r).find(".modal__end-overlay").appendTo(i)}),this.openModal(r)}},{key:"closeVideoModel",value:function(e){var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=(0,Ue.l)(n),r=n.split("-"),i="videoPlayer__vid-";n&&n.includes("--")?i+="-"+r[2]:i+=r[1],$(document).find(globalThis.buttonSelected+'[data-modal-open="'+i+'"]').focus(),o&&o.pause(),$(t).closest("#videoPlayer__"+n).hide(),$(".o5-homepage-hero-banner__video-modal").removeClass("modal--active"),document.documentElement.style.overflow="auto"}},{key:"keyboardVideoModal",value:function(e){var t=e.currentTarget,n=$(t).parents().eq(3).find(".video-js").attr("ID"),o=n.split("-"),r="videoPlayer__vid-";if(n&&n.includes("--")?r+="-"+o[2]:r+=o[1],"Enter"===e.key||"Escape"===e.key||" "===e.key||32===e.keyCode){e.preventDefault(),e.stopPropagation();var i=(0,Ue.l)(n);i&&i.pause(),$(document).find("#videoPlayer__"+n).hide(),$(".o5-detail-hero-banner__video-modal").removeClass("modal--active"),document.documentElement.style.overflow="auto",$(document).find(globalThis.buttonSelected+'[data-modal-open="'+r+'"]').focus()}}},{key:"hideVideoModal",value:function(e){$(e.target).hasClass("modal")&&this.closeVideoModel(e)}},{key:"closeModal",value:function(e){27==e.keyCode&&(this.closeVideoModel(e),$(".o5-homepage-hero-banner__video-modal").hide().attr("aria-hidden","true"),document.documentElement.style.overflow="auto")}},{key:"openModal",value:function(e){var t=document.getElementById(e),n=$("#"+e),o=t.querySelectorAll('a[href], area[href], input
6:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]');if(n.find(".vjs-controls-enabled").removeClass("vjs-controls-disabled"),n.length>0){var r=o[1],i=o[o.length-1];n.on("keydown",function(e){e.shiftKey&&9==e.keyCode&&document.activeElement==r&&($(i).focus(),e.preventDefault()),!0!==e.shiftKey&&9==e.keyCode&&document.activeElement==i&&n.focus()}),n.addClass("modal--active").attr("aria-hidden","false"),document.documentElement.style.overflow="hidden",$(i).focus()}}},{key:"isDesktop",value:function(){return globalThis.matchMedia("(min-width: 936px)").matches}},{key:"getActiveVideo",value:function(){return this.isDesktop()?this.desktopVideo:this.mobileVideo}},{key:"safePlay",value:(a=Pn(Ln().m(function e(t){var n,o;return Ln().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,!1);case 1:if(e.p=1,t.muted=!0,t.loop=!0,t.playsInline=!0,t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),!((n=t.play())instanceof Promise)){e.n=2;break}return e.n=2,n;case 2:return e.a(2,!0);case 3:return e.p=3,o=e.v,console.debug("[o5-homepage-hero-banner__animation] play() blocked:",o),e.a(2,!1)}},e,null,[[1,3]])})),function(e){return a.apply(this,arguments)})},{key:"setControlVisibility",value:function(e,t){if(this.pauseButton&&this.playButton){var n="pause"===e;this.pauseButton.dataset.state=n?"visible":"hidden",this.pauseButton.setAttribute("aria-hidden",n?"false":"true"),this.pauseButton.setAttribute("tabindex",n?"0":"-1"),this.playButton.dataset.state=n?"hidden":"visible",this.playButton.setAttribute("aria-hidden",n?"true":"false"),this.playButton.setAttribute("tabindex",n?"-1":"0"),t&&(n?this.pauseButton:this.playButton).focus()}}},{key:"pauseActiveVideo",value:function(e){var t=this.getActiveVideo();t&&(t.pause(),this.setControlVisibility("play",e))}},{key:"playActiveVideo",value:(i=Pn(Ln().m(function e(t){var n,o;return Ln().w(function(e){for(;;)switch(e.n){case 0:if(n=this.getActiveVideo()){e.n=1;break}return e.a(2);case 1:return e.n=2,this.safePlay(n);case 2:o=e.v,this.setControlVisibility(o?"pause":"play",t);case 3:return e.a(2)}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"syncUiToVideoState",value:function(){var e=this.getActiveVideo();e&&this.setControlVisibility(e.paused?"play":"pause",!1)}},{key:"init",value:function(){var e=this;this.pauseButton&&this.playButton&&(this.setControlVisibility("pause",!1),this.playActiveVideo(!1).then(function(){return e.syncUiToVideoState()}),this.pauseButton.addEventListener("click",function(t){t.preventDefault(),e.pauseActiveVideo(!0)}),this.playButton.addEventListener("click",function(t){t.preventDefault(),e.playActiveVideo(!0)}),globalThis.addEventListener("resize",function(){e.syncUiToVideoState()}))}}],o&&jn(n.prototype,o),r&&jn(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r,i,a}(s.o6);(0,s.fe)({componentName:"o5-hero-banner",component:Rn});var Hn=n(63736);n(19652);function Un(e){return Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(e)}function Vn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,zn(o.key),o)}}function zn(e){var t=function(e,t){if("object"!=Un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Un(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Un(t)?t:t+""}function $n(e,t,n){return t=Gn(t),function(e,t){if(t&&("object"==Un(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Zn()?Reflect.construct(t,n||[],Gn(e).constructor):t.apply(e,n))}function Zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zn=function(){return!!e})()}
6function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gn(e)}function Wn(e,t){return Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wn(e,t)}var Kn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=$n(this,t,[e])).store={iframeContainerCount:$(".iframeContainer").length,activeContainer:"",activeEnlarge:"",activeShrink:"",activeIframeTag:"",windowWidth:$(window).width(),windowHeight:$(window).height(),bodyPositionTop:0,isEscapePressed:!1,touchMovePreventDefault:null},n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wn(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){var e=this;this.renameIframeClasses(),this.embedIframeCSS(),document.querySelectorAll(".jsEnlarge").forEach(function(t){t.classList.contains("jsEnlarge-loaded")||(t.classList.add("jsEnlarge-loaded"),t.addEventListener("click",e.jsEnlarge.bind(e)))}),document.querySelectorAll(".jsShrink").forEach(function(t){t.classList.contains("jsShrink-loaded")||(t.classList.add("jsShrink-loaded"),t.addEventListener("click",e.jsShrink.bind(e)))}),document.addEventListener("fullscreenchange",this.fsHandler.bind(this)),document.addEventListener("webkitfullscreenchange",this.fsHandler.bind(this)),document.addEventListener("mozfullscreenchange",this.fsHandler.bind(this)),document.addEventListener("MSFullscreenchange",this.fsHandler.bind(this)),window.addEventListener("resize",this.resizeFrame.bind(this))}},{key:"fsHandler",value:function(){document.fullscreenElement||this.jsShrink()}},{key:"renameIframeClasses",value:function(){for(var e=0;e<this.store.iframeContainerCount;e++){var t="iframeContainer"+e;$(".iframeContainer").first().attr("class",t)}}},{key:"embedIframeCSS",value:function(){for(var e=0;e<this.store.iframeContainerCount;e++){var t=".iframeContainer"+e,n=$(t+" .iframeTag").attr("src"),o=Number($(".iframeContainer"+e+" .desktopIframeHeight").val()),r=Number($(".iframeContainer"+e+" .ipadIframeHeight").val()),i=Number($(".iframeContainer"+e+" .iphoneIframeHeight").val()),a="";void 0===n?$(t).css({display:"none"}):((isNaN(o)||0===o)&&$(t).addClass("desktopHide"),(isNaN(r)||0===r)&&$(t).addClass("ipadHide"),(isNaN(i)||0===i)&&$(t).addClass("iphoneHide"),a='<style type="text/css">'+t+"{ margin: 10px; position: relative;}"+t+" .iframeTag.jsExitScreen {height:"+i+"px;}@media only screen and (min-width: 768px){"+t+" .iframeTag.jsExitScreen {height:"+r+"px;}}@media only screen and (min-width: 1024px) {"+t+" .iframeTag.jsExitScreen {height:"+o+"px;}}</style>",$("head").append(a))}}},{key:"fitIframeToViewport",value:function(){var e="-"+$(this.store.activeIframeTag).offset().left+"px",t="-"+$(this.store.activeIframeTag).offset().top+"px";$(this.store.activeIframeTag).css({position:"absolute",left:e,top:t,"z-index":"10000",width:this.store.windowWidth,height:this.store.windowHeight})}},{key:"requestFullscreen",value:function(){var e=(0,Hn.A)(this.store.activeIframeTag);$(e[0]).addClass("o5-iframe-content--fullscreenscontainer");var t=document.getElementsByClassName(this.store.activeContainer)[0];t.requestFullscreen?t.requestFullscreen().catch(function(){}):t.webkitRequestFullscreen&&t.webkitRequestFullscreen(),$("."+this.store.activeContainer).addClass("o5-iframe-content--fullscreen")}},{key:"exitFullscreen",value:function(){document.exitFullscreen&&document.exitFullscreen();var e=(0,Hn.A)(this.store.activeIframeTag);$(e[0]).removeClass("o5-iframe-content--fullscreenscontainer"),$("."+this.store.activeContainer).removeClass("o5-iframe-content--fullscreen")}},{key:"positionShrinkBttn",value:function(){var e=this.store.windowWidth-$(this.store.activeShrink).offset().left-$(this.store.activeShrink).width(),t=this.store.windowHeight-$(this.store.activeShrink).offset().top-$(this.store.activeShrink).height();
6$(this.store.activeShrink).css({left:e+"px",top:t+"px"})}},{key:"jsEnlarge",value:function(e){var t=($(e.currentTarget.parentElement).attr("class")||"").trim().split(/\s+/);this.store.activeContainer=t.find(function(e){return/^iframeContainer\d+$/.test(e)})||t[0],this.store.activeEnlarge="."+this.store.activeContainer+" .jsEnlarge",this.store.activeShrink="."+this.store.activeContainer+" .jsShrink",this.store.activeIframeTag="."+this.store.activeContainer+" .iframeTag",$(this.store.activeIframeTag).removeClass("jsExitScreen"),this.store.bodyPositionTop=$(window).scrollTop(),$("body").css({overflow:"hidden",position:"fixed",top:"-"+this.store.bodyPositionTop+"px",left:"0",right:"0",width:"100%"}),document.documentElement.style.overflow="hidden",document.documentElement.style.overscrollBehavior="none",document.body.style.overscrollBehavior="none",this.store.touchMovePreventDefault=function(e){return e.preventDefault()},document.addEventListener("touchmove",this.store.touchMovePreventDefault,{passive:!1}),this.requestFullscreen(),$(".jsEnlarge").css({visibility:"hidden"}),$(this.store.activeShrink).css({visibility:"visible"}),$(this.store.activeShrink).trigger("focus")}},{key:"resizeFrame",value:function(){if($(this.store.activeIframeTag).hasClass("isEnlarged")){var e=$(this.store.activeIframeTag).css("left"),t=e.substr(0,e.length-2)-$(this.store.activeIframeTag).offset().left+"px",n=$(window).width()-$("."+this.store.activeContainer).offset().left-$(this.store.activeShrink).width()+"px",o=$(window).height()-$("."+this.store.activeContainer).offset().top-$(this.store.activeShrink).height()+"px";$(this.store.activeIframeTag).css({width:$(window).width()+"px",height:$(window).height()+"px"}),$(this.store.activeShrink).css({left:n,top:o}),$(this.store.activeIframeTag).css({left:t})}}},{key:"jsShrink",value:function(){$(this.store.activeIframeTag).removeClass("isEnlarged"),$(this.store.activeShrink).attr("style","").css({visibility:"hidden"}),$(".jsEnlarge").css({visibility:"visible"}),$(this.store.activeIframeTag).attr("style",""),$(this.store.activeIframeTag).addClass("jsExitScreen"),$(".jsEnlarge").trigger("focus"),$("body").css({overflow:"",position:"",top:"",left:"",right:"",width:""}),document.documentElement.style.overflow="",document.documentElement.style.overscrollBehavior="",document.body.style.overscrollBehavior="",this.store.touchMovePreventDefault&&(document.removeEventListener("touchmove",this.store.touchMovePreventDefault),this.store.touchMovePreventDefault=null),document.exitFullscreen&&document.exitFullscreen(),$("."+this.store.activeContainer).removeClass("o5-iframe-content--fullscreen"),$(window).scrollTop(this.store.bodyPositionTop)}}],o&&Vn(n.prototype,o),r&&Vn(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Qn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xn(o.key),o)}}function Xn(e){var t=function(e,t){if("object"!=Yn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Yn(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yn(t)?t:t+""}function Jn(e,t,n){return t=to(t),function(e,t){if(t&&("object"==Yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,eo()?Reflect.construct(t,n||[],to(e).constructor):t.apply(e,n))}function eo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eo=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},to(e)}
6function no(e,t){return no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},no(e,t)}(0,s.fe)({componentName:"o5-iframe-content",component:Kn});var oo=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Jn(this,t,[e])).store={ui:{wrapper:"o5-l2-nav-standalone__wrapper",item:"o5-l2-nav-standalone__item",itemSelected:"o5-l2-nav-standalone__item--selected",multiColumn:"o5-l2-nav-standalone__item--multi",button:"o5-l2-nav-standalone__btn",webbutton:"o5-l2-nav-standalone__webbtn",buttonSelected:"o5-l2-nav-standalone__btn--selected",subNav:"o5-l2-nav-standalone__sub",subNavHidden:"o5-l2-nav-standalone__sub--hidden",subNavFadeout:"o5-l2-nav-standalone__sub--fadeout",subNavLeft:"o5-l2-nav-standalone__sub--left",subNavRight:"o5-l2-nav-standalone__sub--right",column:"o5-l2-nav-standalone__col",dropdown:"js-l2-nav-standalone-dd",mobileItem:"o5-l2-nav-standalone__mobile-item",mobileClose:"js-l2-standalone-mobile-close",mobiletitledropdown:"js-l2-nav-standalone-title-dd"},navClicked:!1,transitionTime:400},n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=this;if(document.querySelector(".o5-l2-nav-standalone__wrapper")){this.positionMenus(),window.addEventListener("resize",this.positionMenus.bind(this)),document.addEventListener("keydown",this.checkKey.bind(this)),document.body.addEventListener("click",this.checkClick.bind(this)),document.querySelectorAll(".o5-l2-nav-standalone__btn").forEach(function(t){t.addEventListener("click",e.clickNavBtn.bind(e)),t.addEventListener("keydown",e.trapFirstTab.bind(e))}),document.querySelectorAll(".o5-l2-nav-standalone__col:last-of-type").forEach(function(t){var n=t.querySelectorAll("ul li:last-of-type a"),o=n.length?n[n.length-1]:null;o&&o.addEventListener("keydown",e.trapLastTab.bind(e))});var t=document.querySelector(".o5-l2-nav-standalone__wrapper");t&&0!==t.children.length&&document.querySelector(".js-standalone-has-content")||(document.querySelectorAll(".o5-l2-nav-standalone__container-bg").forEach(function(e){return e.classList.add("remove--style")}),document.querySelectorAll(".o5-l2-nav-standalone__container-content").forEach(function(e){return e.classList.add("remove--style")}),document.querySelectorAll(".o5-l2-nav-standalone__mobile").forEach(function(e){return e.classList.add("hidden")}))}}},{key:"modifyUIForTemplating",value:function(e){var t={};return e&&Object.keys(e).length>0&&Object.keys(e).forEach(function(n){t[n]=e[n].slice(1)}),t}},{key:"positionMenus",value:function(){var e=this,t=document.querySelector(".o5-l2-nav-standalone__wrapper");if(t){var n=t.getBoundingClientRect(),o=n.left+window.scrollX,r=o+n.width;document.querySelectorAll(".o5-l2-nav-standalone__sub").forEach(function(t){var n,i,a,l,c=(null===(n=t.parentElement)||void 0===n?void 0:n.getBoundingClientRect().width)||0;t.classList.remove(e.store.ui.subNavHidden);var s=t.getBoundingClientRect();l=(i=s.left+window.scrollX)+(a=s.width),t.classList.add(e.store.ui.subNavHidden),a>c&&(i<o?t.classList.add(e.store.ui.subNavLeft):l>r&&t.classList.add(e.store.ui.subNavRight))}),document.querySelectorAll("".concat(this.store.ui.mobileItem," ").concat(this.store.ui.subNav)).forEac
6h(function(t){var n;t.classList.remove(e.store.ui.subNavHidden),n=t.getBoundingClientRect().height,t.classList.add(e.store.ui.subNavHidden),t.setAttribute("data-height","".concat(n,"px")),t.setAttribute("style","height: 0")})}}},{key:"checkClick",value:function(e){var t=!1,n=this.store.ui.itemSelected;if(!this.store.navClicked){var o=e.target;o&&o.closest(".".concat(n))&&(t=!0),t||this.closeMenus()}this.store.navClicked=!1}},{key:"checkKey",value:function(e){var t=document.querySelector(".o5-l2-nav-standalone__btn--selected"),n="";if(27===e.keyCode&&t&&(n=t.getAttribute("id")||"",this.closeMenus(),n)){var o=document.getElementById(n);null==o||o.focus()}}},{key:"trapFirstTab",value:function(e){var t=e.currentTarget;t&&t.classList.contains(this.store.ui.button)&&e.shiftKey&&9===e.keyCode&&this.closeMenus()}},{key:"trapLastTab",value:function(e){var t=this;if(9===e.keyCode&&!e.shiftKey){var n="jsl2NavFocus",o=document.activeElement;null==o||o.classList.add(n),document.querySelectorAll(".o5-l2-nav-standalone__btn--selected").forEach(function(e){e.classList.remove(t.store.ui.buttonSelected),e.setAttribute("aria-expanded","false")});var r=e.currentTarget,i=null==r?void 0:r.closest(".js-l2-nav-standalone-dd");null==i||i.classList.add(this.store.ui.subNavHidden),null==i||i.classList.remove(this.store.ui.dropdown);var a=document.querySelector(".".concat(n));null==a||a.focus(),null==a||a.classList.remove(n)}}},{key:"closeMenus",value:function(){var e=this,t=Array.from(document.querySelectorAll(".js-l2-nav-standalone-dd"));return document.querySelectorAll(".o5-l2-nav-standalone__item--selected").forEach(function(t){return t.classList.remove(e.store.ui.itemSelected)}),document.querySelectorAll(".o5-l2-nav-standalone__btn--selected").forEach(function(t){t.classList.remove(e.store.ui.buttonSelected),t.setAttribute("aria-expanded","false")}),t.forEach(function(t){t.classList.add(e.store.ui.subNavFadeout),null!==t.getAttribute("data-height")&&t.setAttribute("style","height: 0")}),window.setTimeout(function(){t.forEach(function(e){e.classList.add("o5-l2-nav-standalone__sub--hidden"),e.classList.remove("js-l2-nav-standalone-dd")})},this.store.transitionTime),!1}},{key:"clickNavBtn",value:function(e){var t=this;e.preventDefault();var n=e.currentTarget,o=n,r=n.nextElementSibling;if(r){var i,a,l=r.getAttribute("data-height");this.store.navClicked=!0,"false"===n.getAttribute("aria-expanded")?(window.innerWidth>1024&&this.closeMenus(),document.querySelectorAll(".o5-l2-mb-title-dd .o5-l2-nav-standalone__btn").forEach(function(e){e.setAttribute("aria-expanded","false"),e.classList.remove(t.store.ui.buttonSelected)}),document.querySelectorAll(".o5-l2-nav-standalone__btnmain .o5-l2-nav-standalone__sub").forEach(function(e){e.classList.add(t.store.ui.subNavHidden),e.classList.remove(t.store.ui.dropdown)}),null===(i=o.parentElement)||void 0===i||i.classList.add(this.store.ui.itemSelected),o.setAttribute("aria-expanded","true"),o.classList.add(this.store.ui.buttonSelected),r.classList.remove(this.store.ui.subNavHidden),r.classList.add(this.store.ui.dropdown),r.getBoundingClientRect(),r.classList.remove(this.store.ui.subNavFadeout),void 0!==l&&r.setAttribute("style","height: auto")):(null===(a=o.parentElement)||void 0===a||a.classList.remove(this.store.ui.itemSelected),o.setAttribute("aria-expanded","false"),o.classList.remove(this.store.ui.buttonSelected),r.classList.add(this.store.ui.subNavFadeout),void 0!==l&&r.setAttribute("style","height: 0"),window.setTimeout(function(){r.classList.add("o5-l2-nav-standalone__sub--hidden"),r.classList.remove("js-l2-nav-standalone-dd")},this.store.transitionTime))}}}],o&&Qn(n.prototype,o),r&&Qn(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function ro(e){return ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ro(e)}function io(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ao(o.key),o)}}function ao(e){var t=function(e,t){if("object"!=ro(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ro(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ro(t)?t:t+""}function lo(e,t,n){return t=so(t),function(e,t){if(t&&("object"==ro(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,co()?Reflect.construct(t,n||[],so(e).constructor):t.apply(e,n))}function co(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(co=function(){return!!e})()}
6function so(e){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},so(e)}function uo(e,t){return uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uo(e,t)}(0,s.fe)({componentName:"o5-l2-nav-standalone",component:oo});var fo=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=lo(this,t,[e])).store={ui:{wrapper:"o5-l2-nav__wrapper",item:"o5-l2-nav__item",itemSelected:"o5-l2-nav__item--selected",multiColumn:"o5-l2-nav__item--multi",button:"o5-l2-nav__btn",webbutton:"o5-l2-nav__webbtn",buttonSelected:"o5-l2-nav__btn--selected",subNav:"o5-l2-nav__sub",subNavHidden:"o5-l2-nav__sub--hidden",subNavFadeout:"o5-l2-nav__sub--fadeout",subNavLeft:"o5-l2-nav__sub--left",subNavRight:"o5-l2-nav__sub--right",column:"o5-l2-nav__col",dropdown:"js-l2-nav-dd",mobileItem:"o5-l2-nav__mobile-item",mobileClose:"js-l2-mobile-close",mobiletitledropdown:"js-l2-nav-title-dd"},navClicked:!1,transitionTime:400},n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uo(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=this;if(document.querySelector(".o5-l2-nav__wrapper")){setTimeout(function(){e.positionMenus()},0),window.addEventListener("resize",this.positionMenus.bind(this)),document.addEventListener("keydown",this.checkKey.bind(this)),document.body.addEventListener("click",this.checkClick.bind(this)),document.querySelectorAll(".o5-l2-nav__btn").forEach(function(t){t.addEventListener("click",e.clickNavBtn.bind(e)),t.addEventListener("keydown",e.trapFirstTab.bind(e))}),document.querySelectorAll(".o5-l2-nav__col:last-of-type").forEach(function(t){var n=t.querySelectorAll("ul li:last-of-type a"),o=n.length?n[n.length-1]:null;o&&o.addEventListener("keydown",e.trapLastTab.bind(e))});var t=document.querySelector(".o5-l2-nav__wrapper");t&&0!==t.children.length&&document.querySelector(".js-has-content")||(document.querySelectorAll(".o5-l2-nav__container-bg").forEach(function(e){return e.classList.add("remove--style")}),document.querySelectorAll(".o5-l2-nav__container-content").forEach(function(e){return e.classList.add("remove--style")}),document.querySelectorAll(".o5-l2-nav__mobile").forEach(function(e){return e.classList.add("hidden")}))}}},{key:"modifyUIForTemplating",value:function(e){var t={};return e&&Object.keys(e).length>0&&Object.keys(e).forEach(function(n){t[n]=e[n].slice(1)}),t}},{key:"positionMenus",value:function(){var e=this,t=document.querySelector(".o5-l2-nav__wrapper");if(t&&null!==t.offsetParent){var n=t.getBoundingClientRect(),o=n.left+window.scrollX,r=o+n.width;document.querySelectorAll(".o5-l2-nav__sub").forEach(function(t){t.classList.remove(e.store.ui.subNavLeft),t.classList.remove(e.store.ui.subNavRight),t.style.left="",t.style.right="",t.classList.remove(e.store.ui.subNavHidden),t.offsetHeight;var n=t.getBoundingClientRect(),i=n.left+window.scrollX,a=i+n.width;t.classList.add(e.store.ui.subNavHidden),i<o?t.classList.add(e.store.ui.subNavLeft):a>r&&t.classList.add(e.store.ui.subNavRight)}),document.querySelectorAll("".concat(this.store.ui.mobileItem," ").concat(this.store.ui.subNav)).forEac
6h(function(t){var n;t.classList.remove(e.store.ui.subNavHidden),n=t.getBoundingClientRect().height,t.classList.add(e.store.ui.subNavHidden),t.setAttribute("data-height","".concat(n,"px")),t.setAttribute("style","height: 0")})}}},{key:"checkClick",value:function(e){var t=!1,n=this.store.ui.itemSelected;if(!this.store.navClicked){var o=e.target;o&&o.closest(".".concat(n))&&(t=!0),t||this.closeMenus()}this.store.navClicked=!1}},{key:"checkKey",value:function(e){var t=document.querySelector(".o5-l2-nav__btn--selected"),n="";if(27===e.keyCode&&t&&(n=t.getAttribute("id")||"",this.closeMenus(),n)){var o=document.getElementById(n);null==o||o.focus()}}},{key:"trapFirstTab",value:function(e){var t=e.currentTarget;t&&t.classList.contains(this.store.ui.button)&&e.shiftKey&&9===e.keyCode&&this.closeMenus()}},{key:"trapLastTab",value:function(e){var t=this;if(9===e.keyCode&&!e.shiftKey){var n="jsl2NavFocus",o=document.activeElement;null==o||o.classList.add(n),document.querySelectorAll(".o5-l2-nav__btn--selected").forEach(function(e){e.classList.remove(t.store.ui.buttonSelected),e.setAttribute("aria-expanded","false")});var r=e.currentTarget,i=null==r?void 0:r.closest(".js-l2-nav-dd");null==i||i.classList.add(this.store.ui.subNavHidden),null==i||i.classList.remove(this.store.ui.dropdown);var a=document.querySelector(".".concat(n));null==a||a.focus(),null==a||a.classList.remove(n)}}},{key:"closeMenus",value:function(){var e=this,t=Array.from(document.querySelectorAll(".js-l2-nav-dd"));return document.querySelectorAll(".o5-l2-nav__item--selected").forEach(function(t){return t.classList.remove(e.store.ui.itemSelected)}),document.querySelectorAll(".o5-l2-nav__btn--selected").forEach(function(t){t.classList.remove(e.store.ui.buttonSelected),t.setAttribute("aria-expanded","false")}),t.forEach(function(t){t.classList.add(e.store.ui.subNavFadeout),null!==t.getAttribute("data-height")&&t.setAttribute("style","height: 0")}),setTimeout(function(){t.forEach(function(e){e.classList.add("o5-l2-nav__sub--hidden"),e.classList.remove("js-l2-nav-dd")})},this.store.transitionTime),!1}},{key:"clickNavBtn",value:function(e){var t=this;e.preventDefault();var n=e.currentTarget,o=n,r=n.nextElementSibling;if(r){var i,a,l=r.getAttribute("data-height");this.store.navClicked=!0,"false"===n.getAttribute("aria-expanded")?(window.innerWidth>1024&&this.closeMenus(),document.querySelectorAll(".o5-l2-mb-title-dd .o5-l2-nav__btn").forEach(function(e){e.setAttribute("aria-expanded","false"),e.classList.remove(t.store.ui.buttonSelected)}),document.querySelectorAll(".o5-l2-nav__btnmain .o5-l2-nav__sub").forEach(function(e){e.classList.add(t.store.ui.subNavHidden),e.classList.remove(t.store.ui.dropdown)}),null===(i=o.parentElement)||void 0===i||i.classList.add(this.store.ui.itemSelected),o.setAttribute("aria-expanded","true"),o.classList.add(this.store.ui.buttonSelected),r.classList.remove(this.store.ui.subNavHidden),r.classList.add(this.store.ui.dropdown),r.getBoundingClientRect(),r.classList.remove(this.store.ui.subNavFadeout),void 0!==l&&r.setAttribute("style","height: auto")):(null===(a=o.parentElement)||void 0===a||a.classList.remove(this.store.ui.itemSelected),o.setAttribute("aria-expanded","false"),o.classList.remove(this.store.ui.buttonSelected),r.classList.add(this.store.ui.subNavFadeout),void 0!==l&&r.setAttribute("style","height: 0"),setTimeout(function(){r.classList.add("o5-l2-nav__sub--hidden"),r.classList.remove("js-l2-nav-dd")},this.store.transitionTime))}}}],o&&io(n.prototype,o),r&&io(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function po(e){return po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},po(e)}function mo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,wo(o.key),o)}}function ho(e,t,n){return t=yo(t),function(e,t){if(t&&("object"==po(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vo()?Reflect.construct(t,n||[],yo(e).constructor):t.apply(e,n))}function vo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vo=function(){return!!e})()}
6function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yo(e)}function bo(e,t){return bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bo(e,t)}function go(e,t,n){return(t=wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wo(e){var t=function(e,t){if("object"!=po(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=po(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==po(t)?t:t+""}(0,s.fe)({componentName:"o5-l2-nav",component:fo});var So=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),go(n=ho(this,t,[e]),"storageKey","o5LegalBannerDismissed"),go(n,"resizeObserver",null),go(n,"banner",null),go(n,"skipLink",null),go(n,"isAuthorMode",!1),go(n,"handlePageShow",function(){return n.applyDismissedState()}),go(n,"handlePageHide",function(){return n.teardown()}),go(n,"handleResize",function(){return n.updateBackToTopOffset(n.banner)}),go(n,"handleScroll",function(){return n.scheduleOffsetUpdate()}),go(n,"isBound",!1),go(n,"pendingOffsetUpdate",!1),n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bo(e,t)}(t,e),n=t,(o=[{key:"init",value:function(){var e=this;this.teardown();var t=this.element,n=t.querySelector(".o5-legal-banner-container__region"),o=t.querySelector(".o5-legal-banner-container__close"),r=t.querySelector(".o5-legal-banner-container__text"),i=document.querySelector(".o5-legal-banner__skip-link"),a=document.querySelector("#skip-to-main-content"),l="true"===t.dataset.authorMode,c=t.dataset.defaultLabel||"Data Use Notice",s=this.getLabelText(r,c);this.banner=t,this.skipLink=i,this.isAuthorMode=l,this.applyAria(n,r,o,s,"Legal banner"),this.updateSkipLink(i),this.updateBackToTopOffset(t),this.bindOffsetUpdates(t),this.scheduleOffsetUpdate(),this.applyDismissedState(),o&&(o.addEventListener("click",function(n){n.preventDefault(),e.dismissBanner(t,i,null)}),o.addEventListener("keydown",function(n){"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),e.dismissBanner(t,i,a))})),i&&o&&i.addEventListener("click",function(e){e.preventDefault(),o.focus()}),window.addEventListener("pageshow",this.handlePageShow),window.addEventListener("pagehide",this.handlePageHide),window.addEventListener("resize",this.handleResize),window.addEventListener("orientationchange",this.handleResize),window.addEventListener("scroll",this.handleScroll,{passive:!0}),this.isBound=!0}},{key:"getLabelText",value:function(e,t){if(!e)return t;var n=e.querySelector(".o5-legal-banner-container__label");return((null==n?void 0:n.textContent)||e.textContent||"").trim()||t}},{key:"applyAria",value:function(e,t,n,o,r){if(e){var i=null==t?void 0:t.querySelector(".o5-legal-banner-container__label");if(i){if(!i.id){var a=this.element.id?"".concat(this.element.id,"-label"):"o5-legal-banner-label";i.id=a}e.setAttribute("aria-labelledby",i.id),e.removeAttribute("aria-label")}else e.setAttribute("aria-label",o||r)}n&&n.setAttribute("aria-label","Close Data Use Notice")}},{key:"updateSkipLink",value:function(e){e&&(e.textContent="Skip to Data Use Notice")}},{key:"showBanner",value:function(e,t){e.classList.remove("o5-legal-banner-container--hidden"),this.setSkipLinkVisibility(t,!0),this.updateBackToTopOffset(e)}},{key:"hideBanner",value:function(e,t){e.classList.add("o5-legal-banner-container--hidden"),this.setSkipLinkVisibility(t,!1),this.updateBackToTopOffset(null)}},{key:"dismissBanner",value:function(e,t,n){sessionStorage.setItem(this.storageKey,"true"),this.hideBanner(e,t),n&&n.focus()}},{key:"setSkipLinkVisibility",value:function(e,t){e&&(t?(e.removeAttribute("hidden"),e.removeAttribute("aria-hidden"),e.style.display=""):(e.setAttribute("hidden","true"),e.setAttribute("aria-hidden","true"),e.style.display="none"))}},{key:"scheduleOffsetUpdate",value:function(){var e=this;this.pendingOffsetUpdate||(this.pendingOffsetUpdate=!0,requestAnimationFrame(function(){e.pendingOffsetUpdate=!1,e.updateBackToTopOffset(e.banner)}
6))}},{key:"updateBackToTopOffset",value:function(e){var t=e&&!e.classList.contains("o5-legal-banner-container--hidden")?e.getBoundingClientRect().height:0;document.documentElement.style.setProperty("--o5-legal-banner-offset","".concat(t,"px"));var n=this.getBackToTopHeight(),o=n>0?n+40:0;document.documentElement.style.setProperty("--o5-back-to-top-offset","".concat(o,"px"))}},{key:"getBackToTopHeight",value:function(){var e=document.getElementById("back-top-fixed");if(!e)return 0;var t=e.getBoundingClientRect().height||0;return t>0?t:75}},{key:"applyDismissedState",value:function(){if(this.banner){var e="true"===sessionStorage.getItem(this.storageKey);this.isAuthorMode||!e?this.showBanner(this.banner,this.skipLink):this.hideBanner(this.banner,this.skipLink)}}},{key:"bindOffsetUpdates",value:function(e){var t=this;this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){t.updateBackToTopOffset(e)}),this.resizeObserver.observe(e))}},{key:"teardown",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.isBound&&(window.removeEventListener("pageshow",this.handlePageShow),window.removeEventListener("pagehide",this.handlePageHide),window.removeEventListener("resize",this.handleResize),window.removeEventListener("orientationchange",this.handleResize),window.removeEventListener("scroll",this.handleScroll),this.isBound=!1)}}])&&mo(n.prototype,o),r&&mo(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function _o(e){return _o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_o(e)}function ko(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Oo(o.key),o)}}function Eo(e,t,n){return t=Co(t),function(e,t){if(t&&("object"==_o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ao()?Reflect.construct(t,n||[],Co(e).constructor):t.apply(e,n))}function Ao(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ao=function(){return!!e})()}
6function Co(e){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Co(e)}function To(e,t){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},To(e,t)}function Oo(e){var t=function(e,t){if("object"!=_o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=_o(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_o(t)?t:t+""}(0,s.fe)({componentName:"o5-legal-banner",component:So});var Lo="openSalesModal";function qo(){var e=new URLSearchParams(window.location.search).get(Lo);return"true"===e||"1"===e}function xo(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.querySelector(".o5-utility__standalone .o5-link-button--button-action-form");if(!t||t.disabled)return!1;if(t.click(),e){var n,o=null===(n=t.closest(".o5-link-button"))||void 0===n?void 0:n.querySelector("dialog.o5-link-button--dialog");if(o){var r=o.querySelector(".o5-link-button--dialog-close");null==r||r.addEventListener("click",function(){var e=new URL(window.location.href);e.searchParams.delete(Lo),window.history.replaceState({},document.title,e.toString())})}}return!0}function Po(){if(qo()){var e,t=function(){var t,n;xo(!0)?null===(n=e)||void 0===n||n.disconnect():null===(t=e)||void 0===t||t.observe(document.body,{childList:!0,subtree:!0})};document.body&&(e=new MutationObserver(t)),t()}}var jo=function(e){function t(e){var n,o,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Eo(this,t,[e]),o=n,r="dialog",i=n.element.querySelector(".o5-link-button dialog.o5-link-button--dialog"),(r=Oo(r))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,n.store={ui:{formButton:n.element.querySelector(".o5-link-button--button-action-form"),dialogCloseBtn:n.element.querySelector(".o5-link-button--dialog-close")}},n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&To(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e;this.store.ui.formButton&&this.store.ui.formButton.addEventListener("click",this.handleClick.bind(this)),this.store.ui.dialogCloseBtn&&this.store.ui.dialogCloseBtn.addEventListener("click",this.handleCloseDialog.bind(this)),null===(e=this.dialog)||void 0===e||e.addEventListener("cancel",this.handleCloseDialog.bind(this))}},{key:"handleClick",value:function(e){var t=this;if(e.preventDefault(),this.dialog&&!this.dialog.open){this.dialog.showModal();var n=this.dialog.querySelector(".o5-marketo-form__headline");n&&this.dialog.setAttribute("aria-labelledby",n.id),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document;return new Promise(function(r,i){var a=Date.now();!function l(){var c=o.querySelector(e);c?r(c):Date.now()-a>t?i(new Error("Form did not load in the allotted time")):setTimeout(l,n)}()})}("form.mktoForm.mktoHasWidth.mktoLayoutLeft",5e3,100,this.dialog).then(function(){t.addFullWidthClass()})}}},{key:"addFullWidthClass",value:function(){this.element.querySelectorAll(".mktoForm > div").forEach(function(e){var t=e.querySelector(".mktoHtmlText"),n=e.querySelector("textarea"),o=e.querySelector("input[type=checkbox]");(e.className.includes("mktoButtonRow")||t||n||o)&&e.classList.add("full-width")})}},{key:"handleCloseDialog",value:function(e){e.preventDefault(),this.dialog.close()}}],o&&ko(n.prototype,o),r&&ko(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function No(e){return No="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},No(e)}function Mo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Io(o.key),o)}}function Io(e){var t=function(e,t){if("object"!=No(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=No(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==No(t)?t:t+""}
6function Do(e,t,n){return t=Fo(t),function(e,t){if(t&&("object"==No(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bo()?Reflect.construct(t,n||[],Fo(e).constructor):t.apply(e,n))}function Bo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bo=function(){return!!e})()}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fo(e)}function Ro(e,t){return Ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ro(e,t)}(0,s.fe)({componentName:"o5-link-button",component:jo}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Po,{once:!0}):Po();var Ho=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Do(this,t,[e])).init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ro(e,t)}(t,e),n=t,(o=[{key:"init",value:function(){var e;!function(e){!function(){for(var e=document.getElementsByTagName("link"),t=document.getElementsByTagName("head")[0],n=0;n<e.length;n++)"shortcut icon"===e[n].getAttribute("rel")&&t.removeChild(e[n])}();var t=document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=function(e){if("string"!=typeof e)return null;var t=e.trim(),n=(t=t.replace(/["'<>]/g,"")).toLowerCase();return/^(javascript:|data:|vbscript:|about:)/.test(n)||/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!/^(https?:)/.test(n)?null:/(\.ico$|\.png$|\.gif$|\.svg$)/i.test(t.split("?")[0].split("#")[0])?t:null}(e),document.getElementsByTagName("head")[0].appendChild(t)}(null===(e=document.querySelector("#faviconLink"))||void 0===e?void 0:e.getAttribute("data-favicon"))}}])&&Mo(n.prototype,o),r&&Mo(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);(0,s.fe)({componentName:"o5-logo",component:Ho});var Uo=n(17777);function Vo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return zo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var $o="ecid",Zo="AMCV_".concat("8E391C8B533058250A490D4D@AdobeOrg".replace(/@/g,"%40")),Go=null;function Wo(e){return"string"==typeof e&&/^\d{16,64}$/.test(e)}function Ko(){try{var e=window.sessionStorage.getItem($o);return Wo(e)?e:null}catch(e){return null}}function Yo(e){if("undefined"==typeof document||!document.cookie)return null;var t,n=Vo(document.cookie.split(";"));try{for(n.s();!(t=n.n()).done;){var o=t.value,r=o.indexOf("=");if(-1!==r&&o.slice(0,r).trim()===e)return o.slice(r+1)}}catch(e){n.e(e)}finally{n.f()}return null}function Qo(e){if(!e)return null;var t=e;try{t=decodeURIComponent(e)}catch(e){}var n=t.split("|"),o=n.indexOf("MCMID");if(-1===o)return null;var r=n[o+1];return Wo(r)?r:null}function Xo(){return Qo(Yo(Zo))||Qo(Yo("s_ecid"))}function Jo(){var e=window._satellite;if(!e||"function"!=typeof e.getVar)return null;try{var t=e.getVar("ECID");return Wo(t)?t:null}catch(e){return null}}function er(e){return function(e){try{window.sessionStorage.setItem($o,e)}catch(e){}}(e),e}function tr(){var e,t=Ko();return t?Promise.resolve(t):Go||(Go=(e=Jo(),e?Promise.resolve(e):new Promise(function(e){var t=Date.now()+3e3,n=window.setInterval(function(){var o=Jo();(o||Date.now()>=t)&&(window.clearInterval(n),e(o))},100)})).then(function(e){return e||Xo()}).then(function(e){return e?er(e):(Go=null,null)}
6).catch(function(){return Go=null,null}))}function nr(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return or(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(or(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,or(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,or(d,"constructor",s),or(s,"constructor",c),c.displayName="GeneratorFunction",or(s,r,"GeneratorFunction"),or(d),or(d,r,"Generator"),or(d,o,function(){return this}),or(d,"toString",function(){return"[object Generator]"}),(nr=function(){return{w:i,m:f}})()}function or(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}or=function(e,t,n,o){function i(t,n){or(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},or(e,t,n,o)}function rr(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function ir(){var e;return e=nr().m(function e(t,n){var o,r,i,a,l,c,s,u,d=arguments;return nr().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=d.length>2&&void 0!==d[2]?d[2]:"",i=(null===(o=window.location)||void 0===o?void 0:o.hostname)||"",a=new URLSearchParams({pagePath:t||"",formId:n||"",siteContext:r||"",hostname:i||""}),l="/bin/dmp/marketo-form-resolve?".concat(a.toString()),e.p=1,e.n=2,fetch(l);case 2:if((c=e.v).ok){e.n=3;break}return console.error("Form type resolution failed: ".concat(c.status," ").concat(c.statusText)),e.a(2,ar("fetch_failed"));case 3:return e.n=4,c.json();case 4:if((s=e.v)&&"string"==typeof s.formType){e.n=5;break}return console.error("Invalid form type resolution response:",s),e.a(2,ar("invalid_response"));case 5:return e.a(2,{formType:s.formType,formTypeReason:s.formTypeReason||"unknown_reason",dynamicRuleName:s.dynamicRuleName||"",ruleVersion:s.ruleVersion||""});case 6:return e.p=6,u=e.v,console.error("Form type resolution error:",u),e.a(2,ar("fetch_error"))}},e,null,[[1,6]])}),ir=function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){rr(i,o,r,a,l,"next",e)}function l(e){rr(i,o,r,a,l,"throw",e)}a(void 0)})},ir.apply(this,arguments)}function ar(e){return{formType:"standard",formTypeReason:e,dynamicRuleName:"",ruleVersion:""}}var lr={rx_slug_non_gated:"RX",partnership_slug:"PARTNERSHIP",rx_gated_slug:"RX_GATED",rx_pharmacy_slug:"RX_PHARMACY",brokers_consultants_slug:"BROKERS_CONSULTANTS",product_merchant_slug:"PRODUCT_MERCHANT",optum_ai_form_id_match:"OPTUM_AI",no_slug_matched:"NONE",gated_form_no_slug_matched:"NONE",not_in_configured_form_ids:"NONE",blank_form_id:"NONE",optum_ai_form_id_mismatch:"NONE",fetch_failed:"NONE",fetch_error:"NONE",invalid_response:"NONE",config_unavailable:"NONE",unknown_reason:"NONE"};function cr(e){return{RX:"Pharmacy Benefit Management",PARTNERSHIP:"Partnerships",RX_GATED:"Specialty Pharmacy (Gated)",RX_PHARMACY:"Pharmacy Services",BROKERS_CONSULTANTS:"Brokers & Consultants",PRODUCT_MERCHANT:"Financial Products",OPTUM_AI:"Optum AI",NONE:"Standard (No Customization)"}[e]||"Unknown"}function sr(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return ur(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
6if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(ur(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,ur(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,ur(d,"constructor",s),ur(s,"constructor",c),c.displayName="GeneratorFunction",ur(s,r,"GeneratorFunction"),ur(d),ur(d,r,"Generator"),ur(d,o,function(){return this}),ur(d,"toString",function(){return"[object Generator]"}),(sr=function(){return{w:i,m:f}})()}function ur(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ur=function(e,t,n,o){function i(t,n){ur(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ur(e,t,n,o)}function dr(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function fr(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){dr(i,o,r,a,l,"next",e)}function l(e){dr(i,o,r,a,l,"throw",e)}a(void 0)})}}function pr(){return(pr=fr(sr().m(function e(t,n,o){var r;return sr().w(function(e){for(;;)switch(e.n){case 0:console.log("Applying ".concat(cr(t)," customization ")+'(type: "'.concat(t,'") to form ').concat(n)),r=t,e.n="RX"===r?1:"PARTNERSHIP"===r?3:"RX_GATED"===r?5:"RX_PHARMACY"===r?7:"BROKERS_CONSULTANTS"===r?9:"PRODUCT_MERCHANT"===r?11:"OPTUM_AI"===r?13:"NONE"===r?15:17;break;case 1:return e.n=2,vr(n);case 2:return e.a(3,18);case 3:return e.n=4,br(n);case 4:return e.a(3,18);case 5:return e.n=6,wr(n);case 6:return e.a(3,18);case 7:return e.n=8,_r(n);case 8:return e.a(3,18);case 9:return e.n=10,Er(n);case 10:return e.a(3,18);case 11:return e.n=12,Cr(n);case 12:return e.a(3,18);case 13:return e.n=14,Or(n);case 14:return e.a(3,18);case 15:return e.n=16,mr(n,o);case 16:return e.a(3,18);case 17:console.warn("Unknown customization type: ".concat(t));case 18:return e.a(2)}},e)}))).apply(this,arguments)}function mr(e,t){return hr.apply(this,arguments)}function hr(){return(hr=fr(sr().m(function e(t,n){return sr().w(function(e){for(;;)switch(e.n){case 0:try{console.log("✓ Applying default customizations to form ".concat(t)),"gated_form_no_slug_matched"===n&&(Pr(t,"#LblformFlex1",[0,1,2],"Non-Gated content"),Pr(t,"#MktoPersonNotes",[0,1,2],"Non-Gated content"),Pr(t,"#formFlex4",[0,1,2],"Non-Broker Gated content"),Ir(t,[0,1,2],'input[name="dataComplianceConsentCommunicateSMS"]',"Non-Broker Gated content","smsRemovalBound"),Ir(t,[0,1,2],'input[name="flexField15"]',"Non-Broker Gated content","emailRemovalBound")),Pr(t,"#numberofEmployeesRange",[0,1,2],"Non-RX contact"),Pr(t,"#formFlex1",[0,1,2],"Non-RX Pharmacy contact"),Pr(t,"#formFlex2",[0,1,2],"Non-RX Pharmacy contact"),Pr(t,"#formFlex3",[0,1,2],"Non-RX Pharmacy contact")}catch(e){console.error("Failed to apply default customization to form ".concat(t,":"),e)}case 1:return e.a(2)}},e)}))).apply(this,arguments)}function vr(e){return yr.apply(this,arguments)}function yr(){return(yr=fr(sr().m(function e(t){var n;return sr().w(function(e){for(;;)switch(e.n){case 0:try{console.log("✓ Applying RX customizations to form ".concat(t)),n=[{value:"",text:"-- Please Select --"},{value:"Consultant",text:"Consultant"},{value:"Employer",text:"Employer"},{value:"Health Plan",text:"Health Plan"},{value:"Hospital System",text:"Hospital System"},{value:"Labor Union",text:"Labor Union"},{value:"Public Sector",text:"Public Sector"},{value:"Third-Party Administrator",text:"Third-Party Administrator"},{value:"Other",text:"Other"}],Pr(t,"#formFlex1",[0,1,2],"Non-RX Pharmacy contact"),Pr(t,"#formFlex2",[0,1,2],"Non-RX Pharmacy contact"),Pr(t,"#formFlex3",[0,1,2],"Non-RX Pharmacy contact"),[0,1,2].forEach(function(e){qr("form.mktoForm_".concat(t,"_").concat(e),5e3,100).then(function(t){Nr(t,"Business Type",n,e)}).catch(function(t){console.error("Form ".concat(e," failed to load:"),t.message)})})}catch(e){console.error("Failed to apply RX customization to form ".concat(t,":"),e)}case 1:return e.a(2)}},e)}))).apply(this,arguments)}function br(e){return gr.apply(this,arguments)}function gr(){return(gr=fr(sr().m(function e(t){return sr().w(function(e){for(;;
6)switch(e.n){case 0:try{console.log("✓ Applying Partnership customizations to form ".concat(t)),Pr(t,"#formFlex1",[0,1,2],"Non-RX Pharmacy contact"),Pr(t,"#formFlex2",[0,1,2],"Non-RX Pharmacy contact"),Pr(t,"#formFlex3",[0,1,2],"Non-RX Pharmacy contact"),[0,1,2].forEach(function(e){qr("form.mktoForm_".concat(t,"_").concat(e),5e3,100).then(function(t){Mr(t,e)}).catch(function(t){console.error("Partnership form ".concat(e," failed to load:"),t.message)})})}catch(e){console.error("Failed to apply Partnership customization to form ".concat(t,":"),e)}case 1:return e.a(2)}},e)}))).apply(this,arguments)}function wr(e){return Sr.apply(this,arguments)}function Sr(){return(Sr=fr(sr().m(function e(t){return sr().w(function(e){for(;;)switch(e.n){case 0:try{console.log("✓ Applying RX Gated customizations to form ".concat(t)),Pr(t,"#LblPhone",[0,1,2],"Gated content"),Pr(t,"#LblmDMGroup",[0,1,2],"Gated content"),Pr(t,"#formFlex4",[0,1,2],"Non-Broker Gated content"),Ir(t,[0,1,2],'input[name="dataComplianceConsentCommunicateSMS"]',"Non-Broker Gated content","smsRemovalBound"),Ir(t,[0,1,2],'input[name="flexField15"]',"Non-Broker Gated content","emailRemovalBound")}catch(e){console.error("Failed to apply RX Gated customization to form ".concat(t,":"),e)}case 1:return e.a(2)}},e)}))).apply(this,arguments)}function _r(e){return kr.apply(this,arguments)}function kr(){return(kr=fr(sr().m(function e(t){var n;return sr().w(function(e){for(;;)switch(e.n){case 0:try{console.log("✓ Applying RX Pharmacy customizations to form ".concat(t)),n=[{value:"",text:"-- Please Select --"},{value:"Specialty Pharmacy",text:"Specialty Pharmacy"},{value:"Infusion Pharmacy",text:"Infusion Pharmacy"},{value:"Home Delivery Pharmacy",text:"Home Delivery Pharmacy"},{value:"Frontier - Rare Diseases",text:"Frontier - Rare Diseases"},{value:"Genoa Healthcare",text:"Genoa Healthcare"}],[0,1,2].forEach(function(e){qr("form.mktoForm_".concat(t,"_").concat(e),5e3,100).then(function(o){var r=o;xr(r,"#numberofEmployeesRange"),xr(r,"#jobLevel"),xr(r,"#jobFunction"),xr(r,"#productSolutionofInterest1");var i=window.MktoForms2;i&&i.whenReady(function(n){var o=n.getFormElem()[0];(o===r||o.classList.contains("mktoForm_".concat(t,"_").concat(e)))&&n.addHiddenFields({productSolutionofInterest1:"Pharmacies"})}),Nr(r,"Organization Type",n,e)}).catch(function(t){console.error("RX Pharmacy form ".concat(e," failed to load:"),t.message)})})}catch(e){console.error("Failed to apply RX Pharmacy customization to form ".concat(t,":"),e)}case 1:return e.a(2)}},e)}))).apply(this,arguments)}function Er(e){return Ar.apply(this,arguments)}function Ar(){return(Ar=fr(sr().m(function e(t){return sr().w(function(e){for(;;)switch(e.n){case 0:try{console.log("✓ Applying Brokers & Consultants customizations to form ".concat(t)),Pr(t,"#LblformFlex1",[0,1,2],"Non-Gated content"),Pr(t,"#MktoPersonNotes",[0,1,2],"Non-Gated content"),[0,1,2].forEach(function(e){qr("form.mktoForm_".concat(t,"_").concat(e),5e3,100).then(function(t){var n=t.querySelector("#LblCompany");n?n.innerHTML='<div class="mktoAsterix" aria-hidden="true">*</div>Agency name':console.warn("Company Name Label not found in form ".concat(e,"—ensure form has fully loaded."));var o=t.querySelector("#Country");if(o){jr(o,[{value:"",text:"Please Select..."},{value:"US",text:"United States of America"},{value:"CA",text:"Canada"}])}}).catch(function(t){console.error("Form ".concat(e," failed to load:"),t.message)})})}catch(e){console.error("Failed to apply Brokers/Consultants customization to form ".concat(t,":"),e)}case 1:return e.a(2)}},e)}))).apply(this,arguments)}function Cr(e){return Tr.apply(this,arguments)}function Tr(){return(Tr=fr(sr().m(function e(t){return sr().w(function(e){for(;;)switch(e.n){case 0:try{console.log("✓ Applying Product Merchant customizations to form ".concat(t)),Pr(t,"#jobFunction",[0,1,2],"Merchant product page"),Pr(t,"#mDMGroup",[0,1,2],"Merchant product page"),[0,1,2].forEach(function(e){qr("form.mktoForm_".concat(t,"_").concat(e),5e3,100).then(function(t){var n=t.querySelector("#LblMktoPersonNotes");n?n.innerHTML='<div class="mktoAsterix" aria-hidden="true">*</div>
6Add your POS in the comments':console.warn("Comment Label not found in form ".concat(e,"—ensure form has fully loaded."))}).catch(function(t){console.error("Form ".concat(e," failed to load:"),t.message)})}),Pr(t,"#numberofEmployeesRange",[0,1,2],"Non-RX contact"),Pr(t,"#formFlex1",[0,1,2],"Non-RX Pharmacy contact"),Pr(t,"#formFlex2",[0,1,2],"Non-RX Pharmacy contact"),Pr(t,"#formFlex3",[0,1,2],"Non-RX Pharmacy contact")}catch(e){console.error("Failed to apply Product Merchant customization to form ".concat(t,":"),e)}case 1:return e.a(2)}},e)}))).apply(this,arguments)}function Or(e){return Lr.apply(this,arguments)}function Lr(){return(Lr=fr(sr().m(function e(t){var n;return sr().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,console.log("✓ Applying OPTUM AI customizations to form ".concat(t)),["1468","2883"].includes(t)){e.n=1;break}return console.log("Form ".concat(t," is not in Optum AI form list, skipping customization")),e.a(2);case 1:Pr(t,"#numberofEmployeesRange",[0,1,2],"Optum AI"),Pr(t,"#formFlex1",[0,1,2],"Optum AI"),Pr(t,"#formFlex2",[0,1,2],"Optum AI"),Pr(t,"#formFlex3",[0,1,2],"Optum AI"),e.n=3;break;case 2:e.p=2,n=e.v,console.error("Failed to apply OPTUM_AI customization to form ".concat(t,":"),n);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return new Promise(function(o,r){var i=Date.now();!function a(){var l=document.querySelector(e);l?o(l):Date.now()-i>t?r(new Error("Form did not load in ".concat(t,"ms: ").concat(e))):setTimeout(a,n)}()})}function xr(e,t){var n=e.querySelector(t);if(n){var o=n.closest(".mktoFormRow");o&&o.remove()}}function Pr(e,t,n,o){var r=n.map(function(n){return qr("form.mktoForm_".concat(e,"_").concat(n),5e3,100).then(function(e){xr(e,t)}).catch(function(e){console.error("".concat(o," form ").concat(n," failed to load:"),e.message)})});return Promise.all(r)}function jr(e,t){e.innerHTML="",t.forEach(function(t){var n=t.value,o=t.text,r=document.createElement("option");r.value=n,r.textContent=o,e.appendChild(r)})}function Nr(e,t,n,o){var r=e.querySelector("#LblmDMGroup");r?r.innerHTML='<div class="mktoAsterix" aria-hidden="true">*</div>'.concat(t):console.warn("Company type Label not found in form ".concat(o,"—ensure form has fully loaded."));var i=e.querySelector("#mDMGroup");i?jr(i,n):console.warn("Company type Select element not found in form ".concat(o,"—ensure form has fully loaded."))}function Mr(e,t){xr(e,"#numberofEmployeesRange");var n,o=e.querySelector("#LblproductSolutionofInterest1");o?(null===(n=o.closest(".mktoFormRow"))||void 0===n||n.classList.add("full-width"),o.innerHTML='<div class="mktoAsterix" aria-hidden="true">*</div>What partnership path would you like to explore?'):console.warn("Product Solution of Interest Label not found in form ".concat(t,"—ensure form has fully loaded."));var r=e.querySelector("#productSolutionofInterest1");if(r){jr(r,[{value:"",text:"-- Please Select --"},{value:"Joining Optum Health Network",text:"Joining Optum Health Network"},{value:"Joining as an Optum employed provider",text:"Joining as an Optum employed provider"},{value:"Transitioning your practice into Optum",text:"Transitioning your practice into Optum"}])}else console.warn("Product Solution of Interest Select element not found in form ".concat(t,"—ensure form has fully loaded."))}function Ir(e,t,n,o,r){Pr(e,n,t,o),t.forEach(function(t){qr("form.mktoForm_".concat(e,"_").concat(t),5e3,100).then(function(e){var t=e,o=t.querySelector('select[name="Country"]');o&&"true"!==o.dataset[r]&&(o.dataset[r]="true",o.addEventListener("change",function(){xr(t,n)}))}).catch(function(e){console.error("Country binding failed for form ".concat(t,":"),e.message)})})}function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}function Br(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Fr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Rr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Dr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Dr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hr="eCID";tr();var Ur=null,Vr=null;function zr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(){try{var e=new URLSearchParams(window.location.search).get("mktoDebug");if("1"===e||"true"===e)return!0;if("undefined"!=typeof window&&void 0!==window.localStorage){var t=window.localStorage.getItem("mktoModalDebug");return"1"===t||"true"===t}}catch(e){}return!1})()&&console.log("[mkto-modal] ".concat(e),t)}function $r(){return Vr||(Vr=(e=window.MktoForms2||("undefined"!=typeof MktoForms2?MktoForms2:null),e?Promise.resolve(e):Ur||(Ur=new Promise(function(e,t){var n=function(){var t=window.MktoForms2||("undefined"!=typeof MktoForms2?MktoForms2:null);return!!t&&(e(t),!0)};if(!n()){var o=document.querySelector('script[data-marketo-forms2="true"]'),r=function(){n()||t(new Error("Marketo script loaded but MktoForms2 is unavailable."))},i=function(){t(new Error("Failed to load Marketo forms2 script."))};if(o)return o.addEventListener("load",r,{once:!0}),void o.addEventListener("error",i,{once:!0});var a=document.createElement("script");a.src="//nav.optum.com/js/forms2/js/forms2.min.js",a.async=!0,a.defer=!0,a.setAttribute("data-marketo-forms2","true"),a.addEventListener("load",r,{once:!0}),a.addEventListener("error",i,{once:!0}),document.head.appendChild(a)}}).catch(function(e){throw Ur=null,e}))).then(function(e){!function(e){var t="//nav.optum.com",n=document.querySelectorAll("[data-mkto-form]"),o=Array.from(n).map(function(e){return e.getAttribute("data-mkto-form")});o.filter(function(e,t){return!!e&&o.indexOf(e)===t}).forEach(function(n){var o=document.querySelector('[data-mkto-form="'+n+'"]'),r=o&&o.getAttribute("data-munchkin-id");if(n&&e&&r){var i=e.loadForm.bind(e,t,r,n);!function e(t){var o=t.shift();o&&(o.id="mktoForm_"+n,i(function(){o.id="",t.length&&e(t)}))}([].slice.call(document.querySelectorAll('[data-mkto-form="'+n+'"]')))}}),e.whenReady(function(e){e.getFormElem()&&r(e)});var r=function(e){var t,n,o=window.digitalData,r=e.getFormElem()[0],i="true"===r.getAttribute("data-gated-form"),p=r.getAttribute("data-redirect-url"),m=r.getAttribute("data-uuid"),h=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_sfgocampaignid","utm_referrer"],v=window.location.href,y=r.querySelector("input[name='personNotesTextArea']");if(y&&(y.value=v),e.onSuccess(function(){if(i){var e=r.closest(".o5-marketo-form-container"),t=e.querySelector(".o5-marketo-form__success"),n=e.querySelector(".o5-marketo-form"),o=e.querySelector(".o5-marketo-form__pre-content"),a=(null==t?void 0:t.getAttribute("data-thank-you-page-title"))||"",l=(null==t?void 0:t.getAttribute("data-thank-you-page-content"))||"",c=Uo.default.sanitize((null==t?void 0:t.getAttribute("data-asset-path"))||""),s=(null==t?void 0:t.getAttribute("data-download-cta-label"))||"",u=Uo.default.sanitize((null==t?void 0:t.getAttribute("data-component-name"))||""),d=Uo.default.sanitize((null==t?void 0:t.getAttribute("data-resource-path-hashcode"))||""),f=Uo.default.sanitize((null==t?void 0:t.getAttribute("data-link-source"))||"page"),m=Uo.default.sanitize(a),h=Uo.default.sanitize(l);t&&(t.innerHTML=c&&s?'\n                            <h2 class="o5-marketo-form__success-title">'.concat(m,"</h2>\n                            <p>").concat(h,'</p>\n                            <a qa_handles="').concat(u,'-link" id="').concat(u).
6concat(d,'-link" aria-labelledby="').concat(u).concat(d,"-link ").concat(u).concat(d,'-title" class="').concat(u,'__item-link-download dmp-btn dmp-btn--md dmp-btn--1 dmp-btn__download" href="').concat(c,'" target="_self" data-link-source="').concat(f,'">\n                                 ').concat(Uo.default.sanitize(s),"\n                            </a>\n                        "):'\n                            <h2 class="o5-marketo-form__success-title">'.concat(m,"</h2>\n                            <p>").concat(h,"</p>\n                        "),t.style.display="block",t.scrollIntoView({behavior:"smooth"})),n&&(n.style.display="none"),o&&(o.style.display="none")}else{if(!p)return!0;location.href=p}return!1}),o){var b=o.find(function(e){return"productInformation"===e.event});if(b&&Object.keys(b.productPage).length>0)for(var g in b.productPage)c(r,g,b.productPage[g])}var w=null===(t=document.getElementById("pageCampaign"))||void 0===t?void 0:t.getAttribute("value"),S=null===(n=document.getElementById("pageChildCampaign"))||void 0===n?void 0:n.getAttribute("value");if(m){var _=Date.now().toString(36),k="".concat(m,"-").concat(_),E=r.querySelector("input[name='uUID']");E&&(E.value=k)}w&&c(r,"sFGOParentProgramName",w),S&&c(r,"iDSFGOCampaignName",S),h.forEach(function(e){var t=sessionStorage.getItem(e);if(t){var n=e.split("_")[1],o=n.charAt(0).toUpperCase()+n.slice(1),i="uTM".concat(o);c(r,i,t)}});var A=s();A&&c(r,"targetActivity",A),l(e),u(r),d(r),a(r,e),f(r.getAttribute("data-mkto-form")||e.getId().toString())};function i(e){return e.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"")}function a(e,t){var n,o=e.getAttribute("data-mkto-form")||String((null===(n=t.getId)||void 0===n?void 0:n.call(t))||"unknown"),r="marketo-form-".concat(i(o));e.setAttribute("qa-handles",r),e.querySelectorAll("input, select, textarea, button, label, .mktoButton, .mktoFieldWrap").forEach(function(e,t){var n,o=e,a=(null===(n=o.tagName)||void 0===n?void 0:n.toLowerCase())||"field",l=o.getAttribute("name")||o.getAttribute("id")||o.getAttribute("for")||o.getAttribute("type")||"".concat(a,"-").concat(t+1),c="".concat(r,"-").concat(i(l));o.setAttribute("qa-handles",c)})}function l(e){var t=!1,n=function(n){n&&(t?e.setValues(Rr({},Hr,n)):(e.addHiddenFields(Rr({},Hr,n)),t=!0))};tr().then(n),e.onSubmit(function(){n(Ko()||Jo()||Xo())})}function c(e,t,n){var o={taxonomyProductUnitCode:"productTaxonomyProductUnit",taxonomyProductSegmentCode:"productTaxonomyProductSegment",taxonomyProductSubsegmentCode:"productTaxonomyProductSubSegment",taxonomyProductFamilyName:"productTaxonomyProductFamily",webProductType:"webSolutionType",productName:"webSolutionName",webProductCategoryL2:"webSolutionCategoryL2",webProductCategoryL1:"webSolutionCategoryL1",salesLeadSystem:"webSalesLeadSystem",marketProductIdentifier:"productPIMProductID"}[t]||t,r=e.querySelector('input[name="'.concat(t,'"], input[name="').concat(o,'"]'));r&&(r.value=n)}function s(){var e=sessionStorage.getItem("targetActivityName");if(e)return e;var t=window.adobeDataLayer;if(t&&"function"==typeof t.getState){var n,o,r,i=t.getState(),a=(null==i?void 0:i.targetActivityName)||(null==i||null===(n=i.target)||void 0===n?void 0:n.activityName)||(null==i||null===(o=i.target)||void 0===o||null===(o=o.activity)||void 0===o?void 0:o.name)||(null==i||null===(r=i.targetActivity)||void 0===r?void 0:r.name);if(a)return a}var l=window.adobeDataLayer||window.digitalData||[];if(Array.isArray(l)){var c,s=Br(l);try{for(s.s();!(c=s.n()).done;){var u,d,f,p=c.value;if(p&&"object"===Dr(p)){if(p.targetActivityName)return p.targetActivityName;if(null!==(u=p.target)&&void 0!==u&&u.activityName)return p.target.activityName;if(null!==(d=p.target)&&void 0!==d&&null!==(d=d.activity)&&void 0!==d&&d.name)return p.target.activity.name;if(null!==(f=p.targetActivity)&&void 0!==f&&f.name)return p.targetActivity.name}}}catch(e){s.e(e)}finally{s.f()}}return null}function u(e){e.querySelectorAll(".mktoFieldWrap").forEach(function(e){var t=e.querySelector('input[type="checkbox"]'),n=e.querySelector("label");null!==t&&(e.classList.add("full-width"),e.classList.add("has-checkbox")),null!==t&&null!==n&&e.classList.add("has-checkbox-and-label")})}function d(e){e.querySelectorAll(".mktoFormRow").forEach(function(e){var t=e.querySelector("label");t&&t.textContent.trim().endsWith("_hidden")&&e.classList.add("hidden-field")})}function f(e){var t,n=(null===(t=window.location)||void 0===t?void 0:t.pathname)||"",o=function(e){if(!e)return"";var t=e.split("/");return t.length>=3?t[2]:""}(n);console.log("[Marketo Form] Initializing form customization:",{formId:e,pagePath:n,siteContext:o}),function(e,t){return ir.apply(this,arguments)}(n,e,o).then(function(t){console.log("[Marketo Form] Form type resolved:",{formType:t.formType,formTypeReason:t.formTypeReason,ruleVersion:t.ruleVersion});var n=function(e){if(!e)return console.warn("mapReasonToCustomizationType: received empty reason, defaulting to NONE"),"NONE";var t=lr[e];return t||(console.warn('mapReasonToCustomizationType: unknown reason "'.concat(e,'", defaulting to NONE. ')+"Known reasons: ".concat(Object.keys(lr).join(", "))),"NONE")}(t.formTypeReason);return console.log("[Marketo Form] Customization type mapped:",{reason:t.formTypeReason,customizationType:n}),function(e,t,n){return pr.apply(this,arguments)}(n,e,t.formTypeReason)}).catch(function(e){console.error("[Marketo Form] Failed to resolve form type:",e)})}}(e)}).catch(function(e){console.warn("Marketo initialization skipped.",e)}
6),Vr);var e}function Zr(){var e=Array.from(document.querySelectorAll("[data-mkto-form]"));if(e.length){var t=!1,n=function(){t||(t=!0,document.removeEventListener("click",o,!0),document.removeEventListener("focusin",o,!0),$r())},o=function(e){var t=e.target;t&&t.closest("[data-mkto-form], .o5-link-button--button-action-form, .marketoPopupForm")&&n()};if(document.addEventListener("click",o,!0),document.addEventListener("focusin",o,!0),"IntersectionObserver"in window){var r=new IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&(r.disconnect(),n())},{rootMargin:"300px 0px",threshold:.01});e.forEach(function(e){return r.observe(e)}),window.setTimeout(n,6e3)}else n()}}function Gr(){var e=!1;function t(t){var n,o=t.querySelector(".o5-marketo-form-container");if(o){var r=null==o?void 0:o.querySelector(".o5-marketo-form");zr("element-discovery",{hasMktoForm:!!r,marketoFormClass:null==r?void 0:r.className});var i=t.querySelector(".o5-marketo-form__pre-headline-btn"),a=t.querySelector(".o5-marketo-form__pre-content"),l=t.querySelector(".o5-link-button--dialog-close-btn"),c=t.querySelector(".o5-marketo-form__mktoFormBackBtnText"),s=t.querySelector(".o5-marketo-form__headline"),u=null===(n=t.parentElement)||void 0===n?void 0:n.querySelector(".o5-link-button--button-action-form"),d=t.querySelector(".o5-marketo-form__pre-headline"),f=t.querySelector(".o5-marketo-form__pre-body-copy"),p=t.querySelector(".o5-marketo-form__pre-footer-copy"),m="o5-marketo-form--hide",h="o5-marketo-form__pre-content--hide";null==l||l.focus(),t.addEventListener("keydown",g),window.addEventListener("keydown",w),t.addEventListener("cancel",_),null==l||l.removeEventListener("click",S),null==l||l.addEventListener("click",S),b(),a&&(i&&(i.onclick=function(e){e.preventDefault(),zr("precontent-button-click"),v()}),c&&(c.onclick=function(e){e.preventDefault(),zr("back-button-click"),y()}),zr("handlers-bound",{hasPreContentButton:!!i,hasBackButton:!!c}),k(f),k(p))}else zr("handle-opened-dialog-no-container");function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];r&&(r.classList.remove(m),r.setAttribute("aria-hidden","false"),null!=s&&s.id&&t.setAttribute("aria-labelledby",s.id),e&&c&&c.focus(),t.addEventListener("keydown",g),zr("show-marketo-form",{shouldFocusBackButton:e,hasBackButton:!!c})),a&&(a.classList.add(h),a.setAttribute("aria-hidden","true"),t.classList.remove("o5-pre-content-modal"),zr("hide-precontent"))}function y(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!function(){if(r){var e=r.className;r.classList.add(m),r.setAttribute("aria-hidden","true"),zr("hide-marketo-form",{beforeClass:e,afterClass:r.className,hasHideClass:r.classList.contains(m)})}else zr("hide-marketo-form-failed",{reason:"mktoForm is null"})}(),a&&(a.classList.remove(h),a.setAttribute("aria-hidden","false"),t.classList.add("o5-pre-content-modal"),null!=d&&d.id&&t.setAttribute("aria-labelledby",d.id),e&&d&&d.focus(),t.addEventListener("keydown",g),zr("show-precontent",{shouldFocusHeadline:e,hasPrecontentHeadline:!!d}))}function b(){var e=qo();if(a&&!e)return zr("reset-dialog-state-precontent",{hasPreContent:!!a}),void y(!1);zr("reset-dialog-state-marketo-form",{hasPreContent:!!a}),v(!1)}function g(e){var n=Array.from(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(function(e){var t=null!==e.offsetParent,n="true"!==e.getAttribute("aria-hidden");return t&&n}),o=n[0],r=n[n.length-1];"Tab"===e.key&&(e.shiftKey?document.activeElement===o&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),o.focus()))}function w(t){"Escape"===t.key&&e&&(S(),t.stopPropagation())}function S(){e=!1;if(window.matchMedia("(max-width: ".concat("1048px",")")).matches){var n=document.querySelector(".o5-reveal-mega-nav__utlilityNav.marketoPopupForm.dmp-btn.dmp-btn--md.dmp-btn--1");null==n||n.focus()}else null==u||u.focus();t.removeEventListener("keydown",g),window.removeEventListener("keydown",w),t.removeEventListener("cancel",_),b()}function _(e){e.preventDefault(),S()}function k(e){e.querySelectorAll("p").forEach(function(e){e.children.length>0&&"a"===e.children[0].tagName.toLowerCase()&&(e.innerHTML=e.innerHTML.replace(/&nbsp;/g,"").trim(),e.classList.add("o5-pre-content__link"))})}}zr("dom-content-loaded");var n=function(n){n.hasAttribute("open")&&(e=!0,zr("dialog-opened",{hasMarketoContainer:!!n.querySelector(".o5-marketo-form-container")}),t(n))},o=new MutationObserver(function(e){e.forEach(function(e){e.target instanceof HTMLElement&&n(e.target)})});document.querySelectorAll(".o5-link-button--dialog").forEach(function(e){o.observe(e,{attributes:!0,attributeFilter:["open"]}),n(e)})}function Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}function Kr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Yr(o.key),o)}}function Yr(e){var t=function(e,t){if("object"!=Wr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Wr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wr(t)?t:t+""}function Qr(e,t,n){return t=Jr(t),function(e,t){if(t&&("object"==Wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xr()?Reflect.construct(t,n||[],Jr(e).constructor):t.apply(e,n))}function Xr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xr=function(){return!!e})()}function Jr(e){return Jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jr(e)}
6function ei(e,t){return ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ei(e,t)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Zr,{once:!0}):Zr(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Gr,{once:!0}):Gr();var ti=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Qr(this,t,[e])).init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ei(e,t)}(t,e),n=t,(o=[{key:"setup",value:function(){var e=document.querySelectorAll(".o5-message-promo__supertext"),t=0;document.addEventListener("keyup",this.keydownTooltip.bind(this)),document.querySelectorAll(".o5-message-promo-tooltip-text").forEach(function(e){t++,e.setAttribute("id","tooltiptext-"+t),e.parentElement.parentElement.querySelector(".o5-message-promo__supertext").setAttribute("aria-describedby","tooltiptext-"+t)}),e.forEach(function(e){e.addEventListener("mouseover",function(){e.parentElement.parentElement.querySelector(".o5-message-promo-tooltip").classList.add("active-tooltip")}),e.addEventListener("mouseout",function(){e.parentElement.parentElement.querySelector(".o5-message-promo-tooltip").classList.remove("active-tooltip")}),e.addEventListener("focus",function(){e.parentElement.parentElement.querySelector(".o5-message-promo-tooltip").classList.add("active-tooltip")}),e.addEventListener("blur",function(){e.parentElement.parentElement.querySelector(".o5-message-promo-tooltip").classList.remove("active-tooltip")})})}},{key:"keydownTooltip",value:function(e){"Escape"==e.key&&document.querySelector(".o5-message-promo-tooltip").classList.remove("active-tooltip")}}])&&Kr(n.prototype,o),r&&Kr(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);(0,s.fe)({componentName:"o5-message-promo",component:ti});n(47521);function ni(e){return ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ni(e)}function oi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,si(o.key),o)}}function ri(e,t,n){return t=ai(t),function(e,t){if(t&&("object"==ni(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ii()?Reflect.construct(t,n||[],ai(e).constructor):t.apply(e,n))}function ii(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ii=function(){return!!e})()}function ai(e){return ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ai(e)}function li(e,t){return li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},li(e,t)}function ci(e,t,n){return(t=si(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e){var t=function(e,t){if("object"!=ni(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ni(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ni(t)?t:t+""}var ui=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ci(n=ri(this,t,[e]),"tablesObj",void 0),ci(n,"mobileLayoutActive",null),ci(n,"handleCategoryCheckboxChange",function(e){e.target.classList.contains("js--category-checkbox")}
6),ci(n,"handleAssetClassCheckboxChange",function(e){e.target.classList.contains("js--asset-class-checkbox")}),n.init(),n.setup(),n.setupMultiSelectDropdowns(),n.setupMobileFilters(),n.setupContainerResizeListener(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&li(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=document.querySelector(".o5-mutual-fund");if(e||(e=document.querySelector('[data-component="o5-mutual-fund"]')),e||(e=document.querySelector(".dmp-container__table--mutual-funds")),e||(e=document.querySelector("[data-path]")),e){var t=e.getAttribute("data-path");if(t||(t=e.getAttribute("data-excel-path")),!t){var n=document.querySelector("[data-path], [data-excel-path]");n&&(t=n.getAttribute("data-path")||n.getAttribute("data-excel-path"))}t||(t="/content/dam/optum3/mutual-funds/mutual-funds-data.xlsx"),this.initMutualFundTable(t)}}},{key:"isMobileViewport",value:function(){if(CSS.supports("container-type","inline-size")){var e=document.getElementById("main-content");if(e)return e.getBoundingClientRect().width<525}return window.innerWidth<540}},{key:"setupContainerResizeListener",value:function(){var e=this,t=document.getElementById("main-content");t&&CSS.supports("container-type","inline-size")&&"undefined"!=typeof ResizeObserver&&(this.mobileLayoutActive=this.isMobileViewport(),new ResizeObserver(function(){var t=e.isMobileViewport();t!==e.mobileLayoutActive&&(e.mobileLayoutActive=t,e.setup())}).observe(t))}},{key:"createMobileTableStructure",value:function(e){var t=document.createElement("div");t.className="mobile-table",t.setAttribute("data-category",e),t.style.display="block";var n=document.createElement("h3");n.className="mobile-table__category",n.textContent=e,t.appendChild(n);var o=document.createElement("ul");return o.className="mobile-table__container",t.appendChild(o),t}},{key:"createMobileRowStructure",value:function(e){var t=document.createElement("li");t.className="mobile-table__row";var n=document.createElement("div");n.className="mobile-table__section mobile-table__section--fund";var o=document.createElement("div");o.className="mobile-table__label",o.textContent="Fund",n.appendChild(o);var r=document.createElement("h4");r.className="mobile-table__value",r.textContent=e.mutualFund,n.appendChild(r);var i=document.createElement("div");i.className="mobile-table__section mobile-table__section--asset";var a=document.createElement("p");a.className="mobile-table__label",a.textContent="Asset Class",i.appendChild(a);var l=document.createElement("p");l.className="mobile-table__value",l.textContent=e.assetClass,i.appendChild(l);var c=document.createElement("div");c.className="mobile-table__section mobile-table__section--expense";var s=document.createElement("p");s.className="mobile-table__label",s.textContent="Expense Ratio",c.appendChild(s);var u=document.createElement("p");u.className="mobile-table__value",u.textContent=parseFloat(e.expenseRatio).toFixed(2),c.appendChild(u);var d=document.createElement("div");d.className="mobile-table__section mobile-table__section--rating";var f=document.createElement("p");f.className="mobile-table__label",f.textContent="Morningstar Rating",d.appendChild(f);var p=document.createElement("div");p.className="mobile-table__value mobile-table__rating";var m=document.createElement("span");m.className="mobile-table__rating-number",m.textContent=e.rating,p.appendChild(m);var h=document.createElement("span");h.className="mobile-table__rating-stars";var v=e.rating;if("N/A"==v.toUpperCase())h.textContent="N/A";else{var y=v;isNaN(parseInt(v))&&(y=v.length);for(var b=0;b<parseInt(y.toString());b++){var g=this.tablesObj.starTemplate.cloneNode(!0);h.appendChild(g)}}p.appendChild(h),d.appendChild(p);var w=document.createElement("div");w.className="mobile-table__section mobile-table__section--performance";var S=document.createElement("p");S.className="mobile-table__label",S.textContent="Performance",w.appendChild(S);var _=document.createElement("div");_.className="mobile-table__section mobile-table__section--ytd";var k=document.createElement("p");k.className="mobile-table__label",k.textContent="YTD",_.appendChild(k);var E=document.createElement("p");E.className="mobile-table__value",E.textContent=this.tablesObj.checkTableCellForNumber(e.ytd),_.appendChild(E);var A=document.createElement("div");A.className="mobile-table__section mobile-table__section--1yr";var C=document.createElement("p");C.className="mobile-table__label",C.textContent="1 YR",A.appendChild(C);var T=document.createElement("p");T.className="mobile-table__value",T.textContent=this.tablesObj.checkTableCellForNumber(e.oneYr),A.appendChild(T);var O=document.createElement("div");O.className="mobile-table__section mobile-table__section--3yr";var L=document.createElement("p");L.className="mobile-table__label",L.textContent="3 YR",O.appendChild(L);var q=document.createElement("p");q.className="mobile-table__value",q.textContent=this.tablesObj.checkTableCellForNumber(e.threeYr),O.appendChild(q);var x=document.createElement("div");
6x.className="mobile-table__section mobile-table__section--5yr";var P=document.createElement("p");P.className="mobile-table__label",P.textContent="5 YR",x.appendChild(P);var j=document.createElement("p");j.className="mobile-table__value",j.textContent=this.tablesObj.checkTableCellForNumber(e.fiveYr),x.appendChild(j);var N=document.createElement("div");N.className="mobile-table__section mobile-table__section--10yr";var M=document.createElement("p");M.className="mobile-table__label",M.textContent="10 YR",N.appendChild(M);var I=document.createElement("p");I.className="mobile-table__value",I.textContent=this.tablesObj.checkTableCellForNumber(e.tenYr),N.appendChild(I);var D=document.createElement("div");D.className="mobile-table__section mobile-table__section--si";var B=document.createElement("p");B.className="mobile-table__label",B.textContent="Since Inception",D.appendChild(B);var F=document.createElement("p");return F.className="mobile-table__value",F.textContent=this.tablesObj.checkTableCellForNumber(e.sinceInception),D.appendChild(F),t.appendChild(n),t.appendChild(i),t.appendChild(c),t.appendChild(d),t.appendChild(w),t.appendChild(_),t.appendChild(A),t.appendChild(O),t.appendChild(x),t.appendChild(N),t.appendChild(D),t}},{key:"setup",value:function(){var e=this;document.querySelectorAll(".o5-mutual-fund__supertext"),this.tablesObj&&this.tablesObj.tablesContainer&&(this.tablesObj.tablesContainer.querySelectorAll(".mobile-table, table.mftable, .table-scroll-wrapper, .table-page").forEach(function(e){return e.remove()}),this.tablesObj.rowPopulate(),setTimeout(function(){e.setupMobilePagination()},100))}},{key:"setupMultiSelectDropdowns",value:function(){var e=this,t=document.querySelectorAll(".multi-select-dropdown-btn");t.forEach(function(e){e.addEventListener("click",function(){var n="true"===e.getAttribute("aria-expanded");t.forEach(function(t){t!==e&&t.setAttribute("aria-expanded","false")}),e.setAttribute("aria-expanded",n?"false":"true")})}),document.addEventListener("click",function(e){e.target.closest(".multi-select-dropdown")||t.forEach(function(e){e.setAttribute("aria-expanded","false")})}),document.addEventListener("keydown",function(e){if("Escape"!==e.key){if("Tab"===e.key){var t=document.querySelector('.multi-select-dropdown-btn[aria-expanded="true"]');if(t){var n=t.closest(".multi-select-dropdown");if(!n)return;var o=n.querySelectorAll('button, input[type="checkbox"], [tabindex]:not([tabindex="-1"])');if(0===o.length)return;var r=o[0],i=o[o.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),r.focus())}}}else document.querySelectorAll('.multi-select-dropdown-btn[aria-expanded="true"]').forEach(function(e){e.setAttribute("aria-expanded","false"),e.focus()})}),document.querySelectorAll(".multi-select-apply").forEach(function(t){t.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var n=t.target.closest(".checkbox-filter-container");if(n){var o=n.classList.contains("js--category-checkbox-group"),r=n.classList.contains("js--asset-class-checkbox-group");o?(e.tablesObj.categoryCheckboxFilters=[],document.querySelectorAll(".js--category-checkbox:checked").forEach(function(t){var n=t.getAttribute("data-category");n&&e.tablesObj.categoryCheckboxFilters.push(n)})):r&&(e.tablesObj.assetClassCheckboxFilters=[],document.querySelectorAll(".js--asset-class-checkbox:checked").forEach(function(t){var n=t.getAttribute("data-asset-class");n&&e.tablesObj.assetClassCheckboxFilters.push(n)}));var i,a=n.closest(".forms__container"),l=null==a?void 0:a.querySelector(".multi-select-dropdown-btn"),c=null==a?void 0:a.querySelector(".multi-select-text");if(l&&l.setAttribute("aria-expanded","false"),i=o?n.querySelectorAll(".js--category-checkbox:checked"):n.querySelectorAll(".js--asset-class-checkbox:checked"),c&&i)if(0===i.length)c.textContent=o?"Select Categories":"Select Asset Classes";else if(1===i.length){var s,u=null===(s=i[0].nextElementSibling)||void 0===s?void 0:s.textContent;c.textContent=u||""}else c.textContent=o?"Category (".concat(i.length,")"):"Asset Class (".concat(i.length,")");e.updateHiddenSelect(a),sessionStorage.setItem("mf-category-filters",JSON.stringify(e.tablesObj.categoryCheckboxFilters||[])),sessionStorage.setItem("mf-asset-class-filters",JSON.stringify(e.tablesObj.assetClassCheckboxFilters||[])),sessionStorage.setItem("mf-search-terms",JSON.stringify(e.tablesObj.searchFieldTerms||[])),o?e.tablesObj.updateDropdownDisplay("category"):r&&e.tablesObj.updateDropdownDisplay("asset"),sessionStorage.setItem("mf-filter-just-applied","true"),e.tablesObj.filterControl(),setTimeout(function(){l&&document.contains(l)&&l.focus()},50)}})}),document.querySelectorAll(".multi-select-clear").forEach(function(t){t.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var n=t.target.closest(".checkbox-filter-container");if(n){var o=n.closest(".forms__container"),r=null==o?void 0:o.querySelector(".multi-select-dropdown-btn"),i=null==o?void 0:o.querySelector(".multi-select-text");
6r&&r.setAttribute("aria-expanded","false");var a=n.querySelectorAll('input[type="checkbox"]');null==a||a.forEach(function(e){e.checked=!1});var l=n.classList.contains("js--category-checkbox-group"),c=n.classList.contains("js--asset-class-checkbox-group");i&&(l?(i.textContent="Select Categories",e.tablesObj.categoryCheckboxFilters=[]):c&&(i.textContent="Select Asset Classes",e.tablesObj.assetClassCheckboxFilters=[])),e.updateHiddenSelect(o),e.tablesObj.filterControl(),setTimeout(function(){r&&document.contains(r)&&r.focus()},50)}})})}},{key:"updateHiddenSelect",value:function(e){var t=e.querySelector("select");if(t){var n=e.querySelectorAll('input[type="checkbox"]:checked');Array.from(t.options).forEach(function(e){e.selected=!1}),0!==n.length?n.forEach(function(e){var n=e.getAttribute("data-value");if(n){var o=Array.from(t.options).find(function(e){return e.value===n});o&&(o.selected=!0)}}):t.options[0].selected=!0}}},{key:"keydownTooltip",value:function(e){var t;"Escape"==e.key&&(null===(t=document.querySelector(".o5-mutual-fund-tooltip"))||void 0===t||t.classList.remove("active-tooltip"))}},{key:"getMockData",value:function(){return{"Large Cap Growth":[{mutualFund:"Vanguard Growth Index Fund",assetClass:"Large Cap Growth",expenseRatio:"0.14",rating:"4",ytd:"8.25",oneYr:"12.50",threeYr:"15.75",fiveYr:"14.20",tenYr:"13.85",sinceInception:"11.90",PerfTimeFrame:"Performance as of 12/31/2023"},{mutualFund:"Fidelity Blue Chip Growth Fund",assetClass:"Large Cap Growth",expenseRatio:"0.79",rating:"3",ytd:"7.80",oneYr:"11.20",threeYr:"14.30",fiveYr:"13.75",tenYr:"12.95",sinceInception:"10.85",PerfTimeFrame:"Performance as of 12/31/2023"},{mutualFund:"T. Rowe Price Blue Chip Growth Fund",assetClass:"Large Cap Growth",expenseRatio:"0.70",rating:"5",ytd:"9.15",oneYr:"13.80",threeYr:"16.25",fiveYr:"15.40",tenYr:"14.65",sinceInception:"12.75",PerfTimeFrame:"Performance as of 12/31/2023"}],"Large Cap Value":[{mutualFund:"Vanguard Value Index Fund",assetClass:"Large Cap Value",expenseRatio:"0.14",rating:"4",ytd:"6.75",oneYr:"9.85",threeYr:"12.40",fiveYr:"11.60",tenYr:"10.95",sinceInception:"9.75",PerfTimeFrame:"Performance as of 12/31/2023"},{mutualFund:"American Funds Washington Mutual Fund",assetClass:"Large Cap Value",expenseRatio:"0.58",rating:"5",ytd:"7.20",oneYr:"10.35",threeYr:"13.15",fiveYr:"12.80",tenYr:"11.90",sinceInception:"10.45",PerfTimeFrame:"Performance as of 12/31/2023"},{mutualFund:"Dodge & Cox Stock Fund",assetClass:"Large Cap Value",expenseRatio:"0.52",rating:"4",ytd:"6.95",oneYr:"10.15",threeYr:"12.85",fiveYr:"12.25",tenYr:"11.40",sinceInception:"10.10",PerfTimeFrame:"Performance as of 12/31/2023"}],International:[{mutualFund:"Vanguard Total International Stock Index Fund",assetClass:"International",expenseRatio:"0.11",rating:"4",ytd:"5.40",oneYr:"8.75",threeYr:"10.20",fiveYr:"9.85",tenYr:"8.60",sinceInception:"7.95",PerfTimeFrame:"Performance as of 12/31/2023"},{mutualFund:"American Funds EuroPacific Growth Fund",assetClass:"International",expenseRatio:"0.82",rating:"3",ytd:"4.85",oneYr:"7.90",threeYr:"9.45",fiveYr:"8.75",tenYr:"7.85",sinceInception:"7.20",PerfTimeFrame:"Performance as of 12/31/2023"}],"Small Cap":[{mutualFund:"Vanguard Small-Cap Index Fund",assetClass:"Small Cap",expenseRatio:"0.17",rating:"4",ytd:"12.35",oneYr:"16.80",threeYr:"18.90",fiveYr:"17.25",tenYr:"15.75",sinceInception:"14.40",PerfTimeFrame:"Performance as of 12/31/2023"},{mutualFund:"T. Rowe Price Small-Cap Stock Fund",assetClass:"Small Cap",expenseRatio:"0.90",rating:"5",ytd:"13.75",oneYr:"18.25",threeYr:"20.15",fiveYr:"18.85",tenYr:"17.40",sinceInception:"15.90",PerfTimeFrame:"Performance as of 12/31/2023"}]}}},{key:"initMutualFundTable",value:function(e){var t=this,n={};this.tablesObj=n,n.array_unique=function(e){for(var t=[],n=0,o=e.length;n<o;n++)-1==t.indexOf(e[n])&&t.push(e[n]);return t},n.objectValues=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},n.excelPath=e,n.masterRowSet=[],n.categories=[],n.assetClasses=[],n.checkboxFilters=[],n.categoryCheckboxFilters=[],n.assetClassCheckboxFilters=[],n.searchFieldTerms=[],n.selectedFilters=[];var o=document.querySelector(".search-mod-mutual"),r=o.querySelector(".search-mod-input"),i=o.querySelector(".search-mod-submit"),a=document.querySelector(".search-mod-results"),l=a.querySelector(".search-mod-results-term").cloneNode(!0);a.querySelector(".search-mod-results-term").remove(),a.querySelector("ul").classList.remove("hidden"),n.searchFieldTerms=[];var c=function(e,t){if(!a.querySelector('.search-mod-results-term[data-filter-type="'.concat(t,'"][data-filter-value="').concat(e,'"]'))){var n=l.cloneNode(!0);n.querySelector("span.term").textContent=e,n.setAttribute("data-filter-type",t),n.setAttribute("data-filter-value",e),n.classList.remove("search-mod-pills"),a.classList.remove("hidden"),a.querySelector(".search-mod-results-label").textContent="Filtered by ",a.querySelector(".search-mod-results-list").appendChild(n),a.querySelector("ul").classList.remove("hidden")}},s=function(){sessionStorage.setItem("mf-category-filters",JSON.stringify(n.categoryCheckboxFilters||[])),sessionStorage.setItem("mf-asset-class-filters",JSON.stringify(n.assetClassCheckboxFilters||[])),sessionStorage.setItem("mf-search-terms",JSON.stringify(n.searchFieldTerms||[]))},u=function(){var e=r.value;if(""!==e&&""!==e.trim()){var t=l.cloneNode(!0);t.querySelector("span.term").textContent=e.trim(),t.setAttribute("data-filter-type","search"),t.setAttribute("data-filter-value",e.trim()),n.searchFieldTerms.push(e.trim()),a.classList.remove("hidden"),a.querySelector(".search-mod-results-label").textContent="Filtered by ",a.querySelector(".search-mod-results-list").appendChild(t),a.querySelector("ul").classList.remove("hidden"),r.value="",o.querySelector(".search-mod-clear").classList.add("hidden"),s(),n.filterControl()}};r.addEventListener("keydown",function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),u())}),i.addEventListener("click",function(e){e.preventDefault(),u()}),a.addEventListener("click",function(e){var o=e.target,r=o.closest(".search-mod-pills")||o.closest("button")||(o.classList.contains("search-mod-pills")?o:null);if(r&&r.classList.contains("search-mod-pills")){e.preventDefault(),e.stopPropagation();var i=r.closest(".search-mod-results-term");if(!i)return;var l=i.getAttribute("data-filter-type"),c=i.getAttribute("data-filter-value");if("search"===l){var u=i.querySelector(".term").textContent,d=n.searchFieldTerms.indexOf(u);d>-1&&n.searchFieldTerms.splice(d,1)}else if("category"===l){var f=n.categoryCheckboxFilters.indexOf(c);f>-1&&n.categoryCheckboxFilters.splice(f,1);var p=document.querySelector('.js--category-checkbox[data-category="'.concat(c,'"]'));p&&(p.checked=!1);var m=document.querySelector('.js--mobile-category-checkbox[data-category="'.concat(c,'"]'));if(m&&(m.checked=!1),0===n.categoryCheckboxFilters.length){var h=document.querySelector(".js--category-select");h&&(h.value=""),document.querySelectorAll(".js--category-checkbox").forEach(function(e){e.checked=!1}
6),document.querySelectorAll(".js--mobile-category-checkbox").forEach(function(e){e.checked=!1})}}else if("asset"===l){var v=n.assetClassCheckboxFilters.indexOf(c);v>-1&&n.assetClassCheckboxFilters.splice(v,1);var y=document.querySelector('.js--asset-class-checkbox[data-asset-class="'.concat(c,'"]'));y&&(y.checked=!1);var b=document.querySelector('.js--mobile-asset-class-checkbox[data-asset-class="'.concat(c,'"]'));if(b&&(b.checked=!1),0===n.assetClassCheckboxFilters.length){var g=document.querySelector(".js--asset-select");g&&(g.value=""),document.querySelectorAll(".js--asset-class-checkbox").forEach(function(e){e.checked=!1}),document.querySelectorAll(".js--mobile-asset-class-checkbox").forEach(function(e){e.checked=!1})}}i.remove(),s(),n.filterControl(),setTimeout(function(){if("category"===l){var e=document.querySelector(".js--category-checkbox-group");if(e){var t=e.closest(".forms__container"),n=null==t?void 0:t.querySelector(".multi-select-text"),o=e.querySelectorAll('input[type="checkbox"]:checked');if(n)if(0===o.length)n.textContent="Select Categories";else if(1===o.length){var r,i=null===(r=o[0].nextElementSibling)||void 0===r?void 0:r.textContent;n.textContent=i||""}else n.textContent="Category (".concat(o.length,")")}}else if("asset"===l){var a=document.querySelector(".js--asset-class-checkbox-group");if(a){var c=a.closest(".forms__container"),s=null==c?void 0:c.querySelector(".multi-select-text"),u=a.querySelectorAll('input[type="checkbox"]:checked');if(s)if(0===u.length)s.textContent="Select Asset Classes";else if(1===u.length){var d,f=null===(d=u[0].nextElementSibling)||void 0===d?void 0:d.textContent;s.textContent=f||""}else s.textContent="Asset Class (".concat(u.length,")")}}},100),setTimeout(function(){var e=a.querySelectorAll(".search-mod-pills");if(0===e.length)if(a.querySelector(".search-mod-results-label").innerHTML="&nbsp;",a.classList.add("hidden"),t.isMobileViewport()){var n=document.querySelector(".mobile-filter-toggle");if(n)n.focus();else{var o=document.querySelector(".search-mod-input");o&&o.focus()}}else{var r=document.querySelectorAll(".multi-select-dropdown-btn");if(r.length>0)r[r.length-1].focus();else{var l=document.querySelector(".search-mod-input");l&&l.focus()}}else{var c=null,s=null==i?void 0:i.getAttribute("data-filter-value"),u=null==i?void 0:i.getAttribute("data-filter-type");if(s&&u){var d=a.querySelector('.search-mod-results-term[data-filter-type="'.concat(u,'"][data-filter-value="').concat(s,'"]'));d&&(c=d.querySelector(".search-mod-pills"))}if(c&&document.contains(c))c.focus();else{var f=e[0];f&&f.focus()}}},100)}}),n.updateFilterPills=function(){a.querySelectorAll('.search-mod-results-term[data-filter-type="category"], .search-mod-results-term[data-filter-type="asset"]').forEach(function(e){return e.remove()}),n.categoryCheckboxFilters&&n.categoryCheckboxFilters.length>0&&n.categoryCheckboxFilters.forEach(function(e){c(e,"category")}),n.assetClassCheckboxFilters&&n.assetClassCheckboxFilters.length>0&&n.assetClassCheckboxFilters.forEach(function(e){c(e,"asset")}),a.querySelectorAll(".search-mod-results-term").length>0?(a.classList.remove("hidden"),a.querySelector(".search-mod-results-label").textContent="Filtered by ",a.querySelector("ul").classList.remove("hidden")):(a.querySelector(".search-mod-results-label").innerHTML="&nbsp;",a.classList.add("hidden")),s()},a.addEventListener("DOMSubtreeModified",function(){if(n.searchFieldTerms.length>1){if(!a.querySelector(".clear-all-pills")){var e=document.createElement("span");e.className="clear-all-pills",e.textContent="Clear all",a.querySelector(".search-mod-results-label").appendChild(e)}}else{var t=a.querySelector(".clear-all-pills");t&&t.remove()}}),a.addEventListener("click",function(e){e.target.classList.contains("clear-all-pills")&&(e.preventDefault(),n.searchFieldTerms=[],a.querySelector(".search-mod-results-label").innerHTML="&nbsp;",a.querySelectorAll(".search-mod-results-term").forEach(function(e){return e.remove()}),a.classList.add("hidden"),s(),n.filterControl())}),n.CAButton=document.querySelector(".js--cat-ass-submit"),n.CAButton.addEventListener("click",function(e){e.preventDefault(),n.filterControl()}),n.sortControl=function(){n.sortControl.alphaSort=function(e,t,o){var r,i=[];n.filteredRowSet.forEach(function(t){t.category==e&&i.push(t)}),i.sort(function(e,n){var r,i;return o?(r=(n[t]||"").toString().toLowerCase(),i=(e[t]||"").toString().toLowerCase()):(r=(e[t]||"").toString().toLowerCase(),i=(n[t]||"").toString().toLowerCase()),r<i?-1:r>i?1:0});for(var a=o?"desc":"asc",l=!1,c=0,s=0;!l&&c<n.filteredRowSet.length;)n.filteredRowSet[c].category==e&&(l=!0,s=c),c++;(r=n.filteredRowSet).splice.apply(r,[s,i.length].concat(i)),n.rowController(),setTimeout(function(){if(n.tablesContainer){var o=n.tablesContainer.querySelector('table.mftable[data-category="'+e+'"]');if(o){o.querySelectorAll(".dmp-container__header-sort").forEach(function(e){e.classList.remove("dmp-container__header-sort--active");var t=e.closest("th, td");t&&t.setAttribute("aria-sort","none")});var r=o.querySelector('.dmp-container__header-sort[data-sort_name="'+t+'"]');
6if(r){var i=r.closest("th, td"),l=r.querySelector(".dmp-container__header-sort__icon");r.classList.add("dmp-container__header-sort--active"),r.setAttribute("data-sort_direction",a),l&&(l.classList.remove("dmp-container__header-sort__icon--up","dmp-container__header-sort__icon--down"),l.classList.add("dmp-container__header-sort__icon--down"),"asc"==a?(l.classList.remove("dmp-container__header-sort__icon--down"),l.classList.add("dmp-container__header-sort__icon--up"),i&&i.setAttribute("aria-sort","ascending")):i&&i.setAttribute("aria-sort","descending")),r.focus()}}}},500)},n.sortControl.numericSort=function(e,t,o){var r,i=[];n.filteredRowSet.forEach(function(t){t.category==e&&i.push(t)}),i.sort(function(e,n){var r,i;return o?(r=parseFloat(n[t])||0,i=parseFloat(e[t])||0):(r=parseFloat(e[t])||0,i=parseFloat(n[t])||0),r<i?-1:r>i?1:0});for(var a=o?"desc":"asc",l=!1,c=0,s=0;!l&&c<n.filteredRowSet.length;)n.filteredRowSet[c].category==e&&(l=!0,s=c),c++;(r=n.filteredRowSet).splice.apply(r,[s,i.length].concat(i)),n.rowController(),setTimeout(function(){if(n.tablesContainer){var o=n.tablesContainer.querySelector('table.mftable[data-category="'+e+'"]');if(o){o.querySelectorAll(".dmp-container__header-sort").forEach(function(e){e.classList.remove("dmp-container__header-sort--active");var t=e.closest("th, td");t&&t.setAttribute("aria-sort","none")});var r=o.querySelector('.dmp-container__header-sort[data-sort_name="'+t+'"]');if(r){var i=r.closest("th, td"),l=r.querySelector(".dmp-container__header-sort__icon");r.classList.add("dmp-container__header-sort--active"),r.setAttribute("data-sort_direction",a),l&&(l.classList.remove("dmp-container__header-sort__icon--up","dmp-container__header-sort__icon--down"),l.classList.add("dmp-container__header-sort__icon--down"),"asc"==a?(l.classList.remove("dmp-container__header-sort__icon--down"),l.classList.add("dmp-container__header-sort__icon--up"),i&&i.setAttribute("aria-sort","ascending")):i&&i.setAttribute("aria-sort","descending")),r.focus()}}}},500)},n.tablesContainer&&(n.sortClickHandler&&n.tablesContainer.removeEventListener("click",n.sortClickHandler),n.sortClickHandler=function(e){var t=e.target.closest(".dmp-container__header-sort");if(t){var o=t,r=o.dataset,i=o.closest("table.mftable");if(!i)return;var a=i.querySelector(".category-title");if(!a)return;var l=a.innerHTML,c="asc"===(o.getAttribute("data-sort_direction")||"desc")?"desc":"asc";o.setAttribute("data-sort_direction",c),o.classList.add("dmp-container__header-sort--active");var s=r.sort_type||r.sortType,u=r.sort_name||r.sortName;"alpha"==s&&n.sortControl.alphaSort(l,u,"desc"===c),"numeric"==s&&n.sortControl.numericSort(l,u,"desc"===c)}},n.tablesContainer.addEventListener("click",n.sortClickHandler))},n.filterControl=function(){"true"===sessionStorage.getItem("mf-restoring-filters")||sessionStorage.setItem("mf-pagination-page","0"),n.filteredRowSet=[];var e=n.categorySelect.value,t=n.assetSelect.value,o=n.checkboxFilters||[],r=n.categoryCheckboxFilters||[],i=n.assetClassCheckboxFilters||[];if(n.masterRowSet.forEach(function(a){if(""!==e||""!==t||o.length>0||r.length>0||i.length>0||n.searchFieldTerms.length>0){var l=""==e||e==a.category,c=!0;r.length>0&&(c=r.includes(a.category));var s=""==t||t==a.assetClass,u=!0;i.length>0&&(u=i.includes(a.assetClass));var d=!0;o.length>0&&o.forEach(function(e){a[e.property]!=e.value&&(d=!1)});var f=r.length>0?c:l,p=i.length>0?u:s;f&&p&&d&&n.filteredRowSet.push(a)}else n.filteredRowSet.push(a)}),n.searchFieldTerms.length>0){var a=[];n.filteredRowSet.forEach(function(e){for(var t=!0,o=0;o<n.searchFieldTerms.length;o++)n.objectValues(e).join(" ").toLowerCase().indexOf(n.searchFieldTerms[o].toLowerCase())<0&&(t=!1);t&&a.push(e)}),n.filteredRowSet=a}n.rowController(),n.updateFilterPills()},n.checkTableCellForNumber=function(e){return"number"==typeof e?e.toFixed(2):e},n.rowPopulate=function(){if(n.filteredRowSet.length>0){n.fundsNoResult.classList.add("hidden");for(var e=null,t="",o=0,r=this.isMobileViewport(),i=0;i<n.filteredRowSet.length;i++)if(n.filteredRowSet[i]){if(t!==n.filteredRowSet[i].category){if(e&&(r&&e.classList&&e.classList.contains("mobile-table")||!r&&e.tagName&&"table"===e.tagName.toLowerCase()))if(r)n.tablesContainer.appendChild(e);else{var a=document.createElement("div");a.className="table-scroll-wrapper",a.appendChild(e),n.tablesContainer.appendChild(a)}if(t=n.filteredRowSet[i].category,o++,r)e=this.createMobileTableStructure(t);else{(e=n.tableTemplate.cloneNode(!0)).setAttribute("data-category",t),e.querySelector(".category-title").innerHTML=t;var l=e.querySelector("caption"),c="mftable-caption-".concat(o);if(l)l.textContent=t,l.setAttribute("id",c);else{var s=document.createElement("caption");
6s.textContent=t,s.className="zeta",s.setAttribute("id",c),e.insertBefore(s,e.firstChild)}e.setAttribute("aria-labelledby",c)}}if(r){var u=this.createMobileRowStructure(n.filteredRowSet[i]),d=e.querySelector(".mobile-table__container");d?d.appendChild(u):console.error("Mobile table container not found in table:",e)}else{var f=n.rowTemplate.cloneNode(!0),p=n.checkTableCellForNumber(n.filteredRowSet[i].ytd),m=n.checkTableCellForNumber(n.filteredRowSet[i].oneYr),h=n.checkTableCellForNumber(n.filteredRowSet[i].threeYr),v=n.checkTableCellForNumber(n.filteredRowSet[i].fiveYr),y=n.checkTableCellForNumber(n.filteredRowSet[i].tenYr),b=n.checkTableCellForNumber(n.filteredRowSet[i].sinceInception);f.querySelector(".mutual-fund__name").textContent=String(n.filteredRowSet[i].mutualFund),f.querySelector(".mutual-fund__asset-class").textContent=String(n.filteredRowSet[i].assetClass),f.querySelector(".mutual-fund__expense-ratio").textContent=String(parseFloat(n.filteredRowSet[i].expenseRatio).toFixed(2)),f.querySelector(".mutual-fund__morningstar--number").textContent=String(n.filteredRowSet[i].rating),f.querySelector(".jq--YTD").textContent=String(p),f.querySelector(".jq--1YR").textContent=String(m),f.querySelector(".jq--3YR").textContent=String(h),f.querySelector(".jq--5YR").textContent=String(v),f.querySelector(".jq--10YR").textContent=String(y),f.querySelector(".jq--SI").textContent=String(b);var g=n.filteredRowSet[i].rating;if("N/A"==g.toUpperCase())f.querySelector(".mutual-fund__morningstar--stars").textContent="N/A";else{var w=0,S=g;for(isNaN(parseInt(g))&&(S=g.length);w<parseInt(S.toString());){var _=n.starTemplate.cloneNode(!0);f.querySelector(".mutual-fund__morningstar--stars").appendChild(_),w++}}e.appendChild(f)}}if(e&&(r&&e.classList&&e.classList.contains("mobile-table")||!r&&e.tagName&&"table"===e.tagName.toLowerCase()))if(r||"table"!==e.tagName.toLowerCase())r&&n.tablesContainer.appendChild(e);else{var k=document.createElement("div");k.className="table-scroll-wrapper",k.appendChild(e),n.tablesContainer.appendChild(k)}var E=n.filteredRowSet[0].PerfTimeFrame.split(" ").pop(),A=n.tablesContainer.querySelector(".dmp-container__performance-date");A&&(A.innerHTML=E),r?document.querySelectorAll(".mobile-table").forEach(function(e){e.style.display="block",e.style.visibility="visible"}):document.querySelectorAll(".mftable").forEach(function(e){return e.style.display="block"})}else n.fundsNoResult.classList.remove("hidden");n.tablesContainer.classList.remove("hidden"),n.tablesContainer.classList.add("fadeInFast")}.bind(this),n.rowController=function(){this.isMobileViewport()?n.tablesContainer.querySelectorAll(".mobile-table").forEach(function(e){return e.remove()}):n.tablesContainer.querySelectorAll("table.mftable").forEach(function(e){return e.remove()}),n.tablesContainer.querySelectorAll(".table-scroll-wrapper").forEach(function(e){return e.remove()}),n.rowPopulate()}.bind(this),n.filtersController=function(){var e,t;if(n.categorySelect=document.querySelector(".js--category-select"),n.assetSelect=document.querySelector(".js--asset-select"),n.categorySelect&&n.assetSelect){n.optionTemplate=n.categorySelect.querySelector("option").cloneNode(!0);var o=document.querySelector(".js--category-checkbox-group"),r=document.querySelector(".js--asset-class-checkbox-group");if(o&&r){o.querySelectorAll(".checkbox-option").forEach(function(e){return e.remove()}),r.querySelectorAll(".checkbox-option").forEach(function(e){return e.remove()}),n.categorySelect.querySelectorAll("option:not(:first-child)").forEach(function(e){return e.remove()}),n.assetSelect.querySelectorAll("option:not(:first-child)").forEach(function(e){return e.remove()}),n.categories.forEach(function(e,t){var r=n.optionTemplate.cloneNode(!0);r.innerHTML=e,r.value=e,n.categorySelect.appendChild(r);var i="category-checkbox-"+t,a=document.createElement("li");a.className="checkbox-option",a.innerHTML='\n                <input type="checkbox" id="'.concat(i,'" class="js--category-checkbox" data-category="').concat(e,'" data-value="').concat(e,'">\n                <label for="').concat(i,'">').concat(e,"</label>\n            ");var l=o.querySelector(".multi-select-actions");l?o.insertBefore(a,l):o.appendChild(a)}
6),n.assetClasses.forEach(function(e,t){var o=n.optionTemplate.cloneNode(!0);o.innerHTML=e,o.value=e,n.assetSelect.appendChild(o);var i="asset-class-checkbox-"+t,a=document.createElement("li");a.className="checkbox-option",a.innerHTML='\n                <input type="checkbox" id="'.concat(i,'" class="js--asset-class-checkbox" data-asset-class="').concat(e,'" data-value="').concat(e,'">\n                <label for="').concat(i,'">').concat(e,"</label>\n            ");var l=r.querySelector(".multi-select-actions");l?r.insertBefore(a,l):r.appendChild(a)}),n.restoreFilterStates(),document.removeEventListener("change",this.handleCategoryCheckboxChange),document.addEventListener("change",this.handleCategoryCheckboxChange),document.removeEventListener("change",this.handleAssetClassCheckboxChange),document.addEventListener("change",this.handleAssetClassCheckboxChange);var i=null===(e=document.querySelector(".js--category-checkbox-group"))||void 0===e||null===(e=e.closest(".forms__container"))||void 0===e?void 0:e.querySelector(".multi-select-dropdown"),a=null===(t=document.querySelector(".js--asset-class-checkbox-group"))||void 0===t||null===(t=t.closest(".forms__container"))||void 0===t?void 0:t.querySelector(".multi-select-dropdown");i&&i.classList.add("category-dropdown"),a&&a.classList.add("asset-class-dropdown")}}}.bind(this),n.restoreFilterStates=function(){sessionStorage.setItem("mf-restoring-filters","true");var e=sessionStorage.getItem("mf-pagination-page"),t=sessionStorage.getItem("mf-category-filters");if(t)try{n.categoryCheckboxFilters=JSON.parse(t),n.categoryCheckboxFilters.forEach(function(e){var t=document.querySelector('.js--category-checkbox[data-category="'.concat(e,'"]'));t&&(t.checked=!0)}),setTimeout(function(){n.updateDropdownDisplay("category"),n.updateDropdownText("category",n.categoryCheckboxFilters)},200)}catch(e){n.categoryCheckboxFilters=[]}var o=sessionStorage.getItem("mf-asset-class-filters");if(o)try{n.assetClassCheckboxFilters=JSON.parse(o),n.assetClassCheckboxFilters.forEach(function(e){var t=document.querySelector('.js--asset-class-checkbox[data-asset-class="'.concat(e,'"]'));t&&(t.checked=!0)}),setTimeout(function(){n.updateDropdownDisplay("asset"),n.updateDropdownText("asset",n.assetClassCheckboxFilters)},200)}catch(e){n.assetClassCheckboxFilters=[]}var r=sessionStorage.getItem("mf-search-terms");if(r)try{var i=JSON.parse(r);n.searchFieldTerms=i,i.forEach(function(e){var t=l.cloneNode(!0);t.querySelector("span.term").textContent=e,t.setAttribute("data-filter-type","search"),t.setAttribute("data-filter-value",e),a.querySelector(".search-mod-results-list").appendChild(t)}),i.length>0&&(a.classList.remove("hidden"),a.querySelector(".search-mod-results-label").textContent="Filtered by ",a.querySelector("ul").classList.remove("hidden"))}catch(e){n.searchFieldTerms=[]}e&&(sessionStorage.setItem("mf-pagination-page",e),sessionStorage.setItem("mf-pagination-restoration",e)),sessionStorage.setItem("mf-filters-restored","true")}.bind(this),n.updateDropdownText=function(e,t){var n="category"===e,o=document.querySelector(n?".category-dropdown":".asset-class-dropdown");if(o){var r=o.querySelector(".multi-select-text");r&&t&&t.length>0?1===t.length?r.textContent=t[0]:r.textContent=n?"Category (".concat(t.length,")"):"Asset Class (".concat(t.length,")"):r&&(r.textContent=n?"Select Categories":"Select Asset Classes")}},n.updateDropdownDisplay=function(e){var t="category"===e,n=document.querySelector(t?".category-dropdown":".asset-class-dropdown");if(n){var o=n.querySelector(".multi-select-text"),r=n.querySelectorAll('input[type="checkbox"]:checked'),i=n.querySelector("select");if(o)if(0===r.length)o.textContent=t?"Select Categories":"Select Asset Classes";else if(1===r.length){var a,l=null===(a=r[0].nextElementSibling)||void 0===a?void 0:a.textContent;o.textContent=l||""}else o.textContent=t?"Category (".concat(r.length,")"):"Asset Class (".concat(r.length,")");i&&(Array.from(i.options).forEach(function(e){e.selected=!1}),i.value="")}},n.rootRowController=function(){if(n.ieIXFlag=document.documentElement.classList.contains("lt-ie10"),n.animationType="animationend webkitAnimationEnd",n.tablesContainer=document.querySelector("div.dmp-container__table--mutual-funds"),n.tablesContainer&&(n.fundsNoResult=n.tablesContainer.querySelector("p.no_result"),n.fundsNoResult)){var e=n.tablesContainer.querySelector("table.mftable");if(e){var t=e.querySelector("tr.row-template");if(t){var o=t.querySelector(".material-star");o&&(n.starTemplate=o.cloneNode(!0),o.remove()),n.rowTemplate=t.cloneNode(!0),t.remove(),n.tableTemplate=e.cloneNode(!0),e.remove(),n.sortControl(),n.filterControl()}}}},fetch("/bin/optum5/mfxlsExcelServlet?path="+encodeURIComponent(n.excelPath)).then(function(e){if(!e.ok)throw new Error("HTTP error! status: ".concat(e.status));return e.json()}).then(function(e){if(!e||"object"!==ni(e)||0===Object.keys(e).length)throw new Error("Invalid or empty data received");
6n.categories=Object.keys(e),n.categories.forEach(function(t){e[t]&&Array.isArray(e[t])&&e[t].forEach(function(e){e.category=t,n.assetClasses.push(e.assetClass),n.masterRowSet.push(e)})}),n.assetClasses=n.array_unique(n.assetClasses).sort(),n.filtersController(),n.rootRowController(),setTimeout(function(){var e=sessionStorage.getItem("mf-category-filters"),t=sessionStorage.getItem("mf-asset-class-filters"),o=sessionStorage.getItem("mf-search-terms");(e&&JSON.parse(e).length>0||t&&JSON.parse(t).length>0||o&&JSON.parse(o).length>0)&&(sessionStorage.setItem("mf-restoring-filters","true"),n.filterControl())},200),t.rowController(),setTimeout(function(){var e="true"===sessionStorage.getItem("mf-filters-restored"),n=sessionStorage.getItem("mf-pagination-page");e&&n?(sessionStorage.removeItem("mf-filters-restored"),setTimeout(function(){t.setupMobilePagination()},300)):setTimeout(function(){t.setupMobilePagination()},100)},400)}).catch(function(){var e=document.querySelector("div.dmp-container__table--mutual-funds");e&&(e.innerHTML='<p class="error-message">Unable to load mutual fund data. Please try again later.</p>')})}},{key:"setupMobilePagination",value:function(){var e=this;setTimeout(function(){var t=document.querySelector(".dmp-container__table--mutual-funds");if(t){var n=e.isMobileViewport();if(!n)return document.querySelectorAll(".mf-pagination").forEach(function(e){e.style.display="none"}),void document.querySelectorAll(".table-page").forEach(function(e){var t=e.querySelector(".mobile-table, table.mftable");t&&e.parentNode.insertBefore(t,e),e.remove()});var o=n?t.querySelectorAll(".mobile-table"):t.querySelectorAll("table.mftable");if(0!==o.length){var r=sessionStorage.getItem("mf-pagination-restoration"),i=parseInt(sessionStorage.getItem("mf-pagination-page")||"0");null!==r&&(i=parseInt(r),sessionStorage.removeItem("mf-pagination-restoration"),sessionStorage.setItem("mf-pagination-page",i.toString()));var a="true"===sessionStorage.getItem("mf-restoring-filters"),l="true"===sessionStorage.getItem("mf-filter-just-applied");(i>=o.length||l&&!a)&&(i=0,sessionStorage.setItem("mf-pagination-page","0")),sessionStorage.removeItem("mf-filter-just-applied");var c=Math.min(i,o.length-1);o.forEach(function(e,t){if(!e.closest(".table-page")){var n=document.createElement("div");n.className="table-page",n.setAttribute("data-page",t.toString()),n.setAttribute("tabindex","-1"),t===c&&n.classList.add("table-page--active"),e.parentNode.insertBefore(n,e),n.appendChild(e)}}),o.length>0&&(e.createPaginationControls(o.length,c),e.addPaginationEventListeners(o.length),document.querySelectorAll(".mf-pagination").forEach(function(e){e.style.display="flex",e.style.visibility="visible"})),c>0&&setTimeout(function(){var e=document.querySelector(".table-page--active");if(e){var t=n?e.querySelector(".mobile-table"):e.querySelector("table.mftable");if(t){var o=t.getBoundingClientRect().top+window.pageYOffset-20;window.scrollTo({top:o,behavior:"smooth"})}}},200)}}},100)}},{key:"createPaginationControls",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=document.querySelector(".dmp-container__table--mutual-funds");if(n&&this.isMobileViewport()&&(document.querySelectorAll(".mf-pagination").forEach(function(e){e.remove()}),!(e<=1))){var o=document.createElement("div");o.className="mf-pagination mf-pagination--top",o.innerHTML=this.getPaginationHTML(e,t);var r=document.createElement("div");r.className="mf-pagination mf-pagination--bottom",r.innerHTML=this.getPaginationHTML(e,t),n.insertBefore(o,n.firstChild),n.appendChild(r)}}},{key:"getPaginationHTML",value:function(e,n){var o='<div class="mf-pagination__controls" aria-label="pagination">',r=0===n?"true":"false";o+='<button class="mf-pagination__btn mf-pagination__btn--prev '.concat(0===n?"mf-pagination__btn--disabled":"",'" data-action="prev" aria-label="Previous page" aria-disabled="').concat(r,'">
6\n      <span class="material-symbols-outlined">').concat(t.ICONS.arrowLeftAlt,"</span>\n      <span>Prev</span>\n    </button>"),o+='<div class="mf-pagination__dropdown">',o+='<div class="mf-pagination__dropdown-btn" role="button" tabindex="0" aria-expanded="false" aria-haspopup="listbox" role="combobox" aria-controls="mf-pagination-dropdown" aria-label="Select page">\n      <span class="mf-pagination__dropdown-text">Page '.concat(n+1," of ").concat(e,"</span>\n    </div>"),o+='<div class="mf-pagination__dropdown-menu" role="listbox" id="mf-pagination-dropdown" aria-hidden="true">';for(var i=0;i<e;i++){var a=i===n;o+='<div class="mf-pagination__dropdown-option '.concat(a?"mf-pagination__dropdown-option--selected":"",'" \n                   role="option" \n                   tabindex="0"\n                   data-page="').concat(i,'" \n                   aria-label="Page ').concat(i+1,'"\n                   aria-selected="').concat(a,'">\n                 Page ').concat(i+1,"\n               </div>")}o+="</div>",o+="</div>";var l=n===e-1?"true":"false";return o+='<button class="mf-pagination__btn mf-pagination__btn--next '.concat(n===e-1?"mf-pagination__btn--disabled":"",'" data-action="next" aria-label="Next page" aria-disabled="').concat(l,'">
6\n      <span>Next</span>\n      <span class="material-symbols-outlined">').concat(t.ICONS.arrowRightAlt,"</span>\n    </button>"),o+="</div>"}},{key:"addPaginationEventListeners",value:function(e){var t=this;document.querySelectorAll(".mf-pagination").forEach(function(n){n.addEventListener("click",function(o){var r,i=o.target,a=i.closest("button"),l=i.closest(".mf-pagination__dropdown-btn"),c=i.closest(".mf-pagination__dropdown-option"),s=parseInt((null===(r=document.querySelector(".table-page--active"))||void 0===r?void 0:r.getAttribute("data-page"))||"0");if(a&&a.hasAttribute("data-action")){var u=a.getAttribute("data-action"),d=s;"prev"===u&&s>0?d=s-1:"next"===u&&s<e-1&&(d=s+1),d!==s&&t.goToPage(d,e)}else if(l){var f="true"===l.getAttribute("aria-expanded"),p=n.querySelector(".mf-pagination__dropdown-menu"),m=l.querySelector(".mf-pagination__dropdown-icon");if(document.querySelectorAll(".mf-pagination__dropdown-btn").forEach(function(e){if(e!==l){e.setAttribute("aria-expanded","false");var t=e.parentNode.querySelector(".mf-pagination__dropdown-menu"),n=e.querySelector(".mf-pagination__dropdown-icon");t&&(t.setAttribute("aria-hidden","true"),t.classList.remove("mf-pagination__dropdown-menu--open")),n&&n.classList.remove("mf-pagination__dropdown-icon--rotated")}}),f)l.setAttribute("aria-expanded","false"),p.setAttribute("aria-hidden","true"),p.classList.remove("mf-pagination__dropdown-menu--open"),m&&m.classList.remove("mf-pagination__dropdown-icon--rotated");else{l.setAttribute("aria-expanded","true"),p.setAttribute("aria-hidden","false"),p.classList.add("mf-pagination__dropdown-menu--open"),m&&m.classList.add("mf-pagination__dropdown-icon--rotated");var h=p.querySelector(".mf-pagination__dropdown-option");h&&setTimeout(function(){return h.focus()},100)}}else if(c){var v=parseInt(c.getAttribute("data-page")||"0");if(v!==s)t.goToPage(v,e);else{var y=n.querySelector(".mf-pagination__dropdown-btn"),b=n.querySelector(".mf-pagination__dropdown-menu"),g=y.querySelector(".mf-pagination__dropdown-icon");y.setAttribute("aria-expanded","false"),b.setAttribute("aria-hidden","true"),b.classList.remove("mf-pagination__dropdown-menu--open"),g&&g.classList.remove("mf-pagination__dropdown-icon--rotated");var w=document.querySelector(".table-page--active");if(w){var S=t.isMobileViewport(),_=S?w.querySelector(".mobile-table"):w.querySelector("table.mftable");if(_){var k=_.getBoundingClientRect().top+window.pageYOffset-20;window.scrollTo({top:k,behavior:"smooth"}),setTimeout(function(){if(S){var e=_.querySelector(".mobile-table__category");e&&(e.setAttribute("tabindex","-1"),e.focus())}else w.focus()},500)}}}}}),n.addEventListener("keydown",function(e){var t=e.target;if(t.classList.contains("mf-pagination__dropdown-btn"))"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),t.click());else if(t.classList.contains("mf-pagination__dropdown-option")){var o=Array.from(n.querySelectorAll(".mf-pagination__dropdown-option")),r=o.indexOf(t);switch(e.key){case"ArrowDown":e.preventDefault(),o[(r+1)%o.length].focus();break;case"ArrowUp":e.preventDefault(),o[0===r?o.length-1:r-1].focus();break;case"Enter":case" ":e.preventDefault(),t.click();break;case"Escape":e.preventDefault();var i=n.querySelector(".mf-pagination__dropdown-btn"),a=n.querySelector(".mf-pagination__dropdown-menu"),l=i.querySelector(".mf-pagination__dropdown-icon");i.setAttribute("aria-expanded","false"),a.setAttribute("aria-hidden","true"),a.classList.remove("mf-pagination__dropdown-menu--open"),l&&l.classList.remove("mf-pagination__dropdown-icon--rotated"),i.focus()}}}),document.addEventListener("click",function(e){e.target.closest(".mf-pagination__dropdown")||document.querySelectorAll(".mf-pagination__dropdown-btn").forEach(function(e){e.setAttribute("aria-expanded","false");var t=e.parentNode.querySelector(".mf-pagination__dropdown-menu"),n=e.querySelector(".mf-pagination__dropdown-icon");t&&(t.setAttribute("aria-hidden","true"),t.classList.remove("mf-pagination__dropdown-menu--open")),n&&n.classList.remove("mf-pagination__dropdown-icon--rotated")})})}),document.addEventListener("click",function(e){e.target.closest(".mf-pagination__dropdown")||document.querySelectorAll(".mf-pagination__dropdown-btn").forEach(function(e){e.setAttribute("aria-expanded","fal
6se");var t=e.parentNode.querySelector(".mf-pagination__dropdown-menu"),n=e.querySelector(".mf-pagination__dropdown-icon");t&&(t.setAttribute("aria-hidden","true"),t.classList.remove("mf-pagination__dropdown-menu--open")),n&&n.classList.remove("mf-pagination__dropdown-icon--rotated")})})}},{key:"goToPage",value:function(e,t){var n=this;sessionStorage.setItem("mf-pagination-page",e.toString()),document.querySelectorAll(".table-page").forEach(function(t){t.classList.remove("table-page--active"),t.getAttribute("data-page")===e.toString()&&t.classList.add("table-page--active")}),document.querySelectorAll(".mf-pagination").forEach(function(o){o.innerHTML=n.getPaginationHTML(t,e)});var o=document.querySelector(".table-page--active");if(o){var r=this.isMobileViewport(),i=r?o.querySelector(".mobile-table"):o.querySelector("table.mftable");if(i){var a=i.getBoundingClientRect().top+window.pageYOffset-20;window.scrollTo({top:a,behavior:"smooth"}),setTimeout(function(){if(r){var e=i.querySelector(".mobile-table__category");e&&(e.setAttribute("tabindex","-1"),e.focus())}else o.focus()},500)}}}},{key:"reinitializePagination",value:function(){var e=this,t=document.querySelector(".table-page--active"),n=t?parseInt(t.getAttribute("data-page")||"0"):0;"true"===sessionStorage.getItem("mf-filter-applied")?sessionStorage.removeItem("mf-filter-applied"):sessionStorage.setItem("mf-pagination-page",n.toString()),document.querySelectorAll(".mf-pagination").forEach(function(e){e.remove()}),document.querySelectorAll(".table-page").forEach(function(e){var t=e.querySelector(".mobile-table, table.mftable");t&&e.parentNode.insertBefore(t,e),e.remove()}),setTimeout(function(){e.setupMobilePagination()},100)}},{key:"setupMobileFilters",value:function(){var e=this;setTimeout(function(){var t=document.querySelector(".mobile-filter-toggle"),n=document.getElementById("mobile-filter-panel"),o=document.querySelector(".mobile-filter-panel__close"),r=document.querySelector(".mobile-filter-overlay"),i=document.querySelector(".js--mobile-filter-apply"),a=document.querySelector(".js--mobile-filter-reset");if(t&&n){var l,c=function(){return e.isMobileViewport()},s=function(e){n.querySelectorAll('input, select, textarea, button, [tabindex]:not([tabindex="-1"]), a[href]').forEach(function(t){e?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1")});var t=n.querySelector(".mobile-filter-panel__content");t&&t.querySelectorAll('input[type="checkbox"], label, button').forEach(function(t){e?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1")}),n.setAttribute("aria-hidden",e?"false":"true")},u=function(){var e=c();document.querySelectorAll('[data-mobile-only="true"]').forEach(function(t){if(e)if(t.classList.contains("mobile-filter-toggle"))t.removeAttribute("tabindex");else if("mobile-filter-panel"===t.id){var n=t.classList.contains("is-active");s(n)}else t.setAttribute("tabindex","-1");else t.setAttribute("tabindex","-1")}),document.querySelectorAll(".search-by-filter input, .search-by-filter button, .search-by-filter select").forEach(function(t){e?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})};s(!1),u(),window.addEventListener("resize",function(){clearTimeout(l),l=window.setTimeout(u,100)}),t.addEventListener("click",function(){if(c()){n.classList.add("is-active"),r.classList.add("is-active"),t.setAttribute("aria-expanded","true"),document.body.style.overflow="hidden",s(!0);var o=n.querySelector(".mobile-filter-panel__close");o&&o.focus(),e.populateMobileFilters()}}),o.addEventListener("click",function(){c()&&e.closeMobileFilterPanel()}),r.addEventListener("click",function(){c()&&e.closeMobileFilterPanel()}),document.addEventListener("keydown",function(o){"Escape"===o.key&&c()&&n.classList.contains("is-active")&&(e.closeMobileFilterPanel(),t.focus())}),i.addEventListener("click",function(){c()&&(e.applyMobileFilters(),e.closeMobileFilterPanel())}),a.addEventListener("click",function(){c()&&(e.resetMobileFilters(),e.closeMobileFilterPanel())})}},1500);var t,n=document.getElementById("mobile-filter-panel");n.addEventListener("keydown",function(t){if(e.isMobileViewport()&&n.classList.contains("is-active")&&"Tab"===t.key){var o=n.querySelectorAll('input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), [tabindex]:not
6([tabindex="-1"])'),r=Array.from(o).filter(function(e){var t=e;return null!==t.offsetParent&&!t.hidden&&"-1"!==t.getAttribute("tabindex")});if(0===r.length)return;var i=r[0],a=r[r.length-1];t.shiftKey?document.activeElement===i&&(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),i.focus())}}),document.addEventListener("keydown",function(e){"Tab"===e.key&&(clearTimeout(t),t=window.setTimeout(function(){window.innerWidth<540&&document.querySelectorAll(".search-by-filter input, .search-by-filter button, .search-by-filter select").forEach(function(e){e.setAttribute("tabindex","-1")})},10))})}},{key:"closeMobileFilterPanel",value:function(){var e=document.querySelector(".mobile-filter-toggle"),t=document.getElementById("mobile-filter-panel"),n=document.querySelector(".mobile-filter-overlay");t.classList.remove("is-active"),n.classList.remove("is-active"),e.setAttribute("aria-expanded","false"),document.body.style.overflow="",t.querySelectorAll('input, select, textarea, button, [tabindex]:not([tabindex="-1"])').forEach(function(e){e.setAttribute("tabindex","-1")}),t.setAttribute("aria-hidden","true"),e.focus()}},{key:"applyMobileFilters",value:function(){var e=this;this.tablesObj.categoryCheckboxFilters=[],document.querySelectorAll(".js--mobile-category-checkbox:checked").forEach(function(t){e.tablesObj.categoryCheckboxFilters.push(t.getAttribute("data-category"))}),this.tablesObj.assetClassCheckboxFilters=[],document.querySelectorAll(".js--mobile-asset-class-checkbox:checked").forEach(function(t){e.tablesObj.assetClassCheckboxFilters.push(t.getAttribute("data-asset-class"))}),this.tablesObj.filterControl()}},{key:"resetMobileFilters",value:function(){document.querySelectorAll(".js--mobile-category-checkbox, .js--mobile-asset-class-checkbox").forEach(function(e){e.checked=!1}),this.tablesObj.categoryCheckboxFilters=[],this.tablesObj.assetClassCheckboxFilters=[],this.tablesObj.filterControl()}},{key:"populateMobileFilters",value:function(){var e=this;if(this.tablesObj){var t=document.querySelector(".js--mobile-category-group"),n=document.querySelector(".js--mobile-asset-class-group");t.innerHTML="",n.innerHTML="",this.tablesObj.categories.forEach(function(n,o){var r="mobile-category-".concat(o),i=e.tablesObj.categoryCheckboxFilters&&e.tablesObj.categoryCheckboxFilters.some(function(e){return String(e)===String(n)})?"checked":"",a='\n        <div class="checkbox-option">\n          <input type="checkbox" id="'.concat(r,'" class="js--mobile-category-checkbox" \n                 data-category="').concat(n,'" ').concat(i,'>\n          <label for="').concat(r,'">').concat(n,"</label>\n        </div>\n      ");t.innerHTML+=a}),this.tablesObj.assetClasses.forEach(function(t,o){var r="mobile-asset-class-".concat(o),i=e.tablesObj.assetClassCheckboxFilters&&e.tablesObj.assetClassCheckboxFilters.some(function(e){return String(e)===String(t)})?"checked":"",a='\n        <div class="checkbox-option">\n          <input type="checkbox" id="'.concat(r,'" class="js--mobile-asset-class-checkbox" \n                 data-asset-class="').concat(t,'" ').concat(i,'>\n          <label for="').concat(r,'">').concat(t,"</label>\n        </div>\n      ");n.innerHTML+=a}),this.setupViewMoreForFilters(t),this.setupViewMoreForFilters(n),document.dispatchEvent(new Event("mobileFiltersPopulated"))}}},{key:"setupViewMoreForFilters",value:function(e){var t=e.querySelectorAll(".checkbox-option");if(!(t.length<=6)){t.forEach(function(e,t){t>=6&&(e.style.display="none",e.classList.add("filter-item-hidden"))});var n=document.createElement("button");n.className="filter-view-more",n.textContent="View more (".concat(t.length-6,")"),n.setAttribute("type","button"),n.setAttribute("aria-expanded","false"),n.addEventListener("click",function(){var o="true"===n.getAttribute("aria-expanded"),r=e.querySelectorAll(".filter-item-hidden");if(r.forEach(function(e){e.style.display=o?"none":"flex"}),n.setAttribute("aria-expanded",o?"false":"true"),n.textContent=o?"View more (".concat(t.length-6,")"):"View less",!o&&r.length>0){var i=r[0].querySelector('input[type="checkbox"]');i&&setTimeout(function(){i.focus()},50)}}),e.appendChild(n)}}},{key:"rowController",value:function(){var e=this;if(this.tablesObj){var t=this.tablesObj.rowController;this.tablesObj.rowController=function(){t.call(e.tablesObj),e.reinitializePagination()}}}},{key:"focusInput",value:function(e){"focus"===e.type&&(e.currentTarget.setAttribute("placeholder",""),e.currentTarget.parentNode.classList.add("search-mod-input--focus")),"blur"===e.type&&(e.currentTarget.parentNode.classList.remove("search-mod-input--focus"),""===e.currentTarget.value&&e.currentTarget.setAttribute("placeholder",this.store.placeholderText))}},{key:"handleSearchInput",value:function(e){var t=e.currentTarget,n=t.parentNode.querySelector(".search-mod-clear");""!==t.value.trim()?n.classList.remove("hidden"):n.classList.add("hidden")}},{key:"clearSearchInput",value:function(e){e.value="",e.parentNode.querySelector(".search-mod-clear").classList.add("hidden"),e.dispatchEvent(new Event("input")),e.focus()}},{key:"handleClearClick",value:function(e){var t,n=null===(t=e.target.closest(".search-mod-clear"))||void 0===t||null===(t=t.parentNode)||void 0===t?void 0:t.querySelector(".search-mod-input");n&&this.clearSearchInput(n)}}],o&&oi(n.prototype,o),r&&oi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function di(e){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},di(e)}function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,189 bytes, line 6
6t%2?fi(Object(n),!0).forEach(function(t){Ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function vi(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return yi(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(yi(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,yi(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,yi(d,"constructor",s),yi(s,"constructor",c),c.displayName="GeneratorFunction",yi(s,r,"GeneratorFunction"),yi(d),yi(d,r,"Generator"),yi(d,o,function(){return this}),yi(d,"toString",function(){return"[object Generator]"}),(vi=function(){return{w:i,m:f}})()}function yi(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}yi=function(e,t,n,o){function i(t,n){yi(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},yi(e,t,n,o)}function bi(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function gi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ai(o.key),o)}}function wi(e,t,n){return t=_i(t),function(e,t){if(t&&("object"==di(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Si()?Reflect.construct(t,n||[],_i(e).constructor):t.apply(e,n))}function Si(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Si=function(){return!!e})()}
6function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_i(e)}function ki(e,t){return ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ki(e,t)}function Ei(e,t,n){return(t=Ai(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(e){var t=function(e,t){if("object"!=di(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=di(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==di(t)?t:t+""}ci(ui,"ICONS",{arrowLeftAlt:'<svg aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"/></svg>',arrowRightAlt:'<svg aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="m560-240-56-58 142-142H160v-80h486L504-662l56-58 240 240-240 240Z"/></svg>'}),(0,s.fe)({componentName:"o5-mutual-fund",component:ui});var Ci=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ei(r=wi(this,t,[e]),"statusElement",void 0),Ei(r,"headlineElement",void 0),Ei(r,"bannerContainerElement",void 0),Ei(r,"contentElement",void 0),Ei(r,"defaultHeadline",void 0),Ei(r,"emptyStateElement",void 0),Ei(r,"errorsContainer",void 0),Ei(r,"errorsHeadingElement",void 0),Ei(r,"errorsList",void 0),Ei(r,"servicesContainer",void 0),Ei(r,"servicesList",void 0),Ei(r,"serviceTemplate",void 0),Ei(r,"errorTemplate",void 0),Ei(r,"initialPayloadElement",void 0),Ei(r,"initialDamPayloadElement",void 0),Ei(r,"col1Element",void 0),Ei(r,"col2Element",void 0),Ei(r,"servletPath",void 0),Ei(r,"damBanner",null),Ei(r,"damMemberSites",null),Ei(r,"damCards",[]),Ei(r,"eligibilityAuth",{}),Ei(r,"currentFirstName",null),Ei(r,"suppressMainContent",!1),Ei(r,"isNoEligibleState",!1),Ei(r,"handleWindowResize",void 0),r.statusElement=r.element.querySelector('[data-role="banner-subtitle"]')||r.element.querySelector('[data-role="status"]'),r.headlineElement=r.element.querySelector('[data-role="banner-title"]')||r.element.querySelector('[data-role="headline"]'),r.bannerContainerElement=r.element.querySelector(".o5-myoptum-eligibility__banner-container, .o5-myoptum-eligibility__banner-containor"),r.contentElement=r.element.querySelector('[data-role="content"]'),r.defaultHeadline=(null===(n=r.headlineElement)||void 0===n||null===(n=n.textContent)||void 0===n?void 0:n.trim())||"",r.emptyStateElement=r.element.querySelector('[data-role="empty-state"]'),r.errorsContainer=r.element.querySelector('[data-role="errors"]'),r.errorsHeadingElement=r.element.querySelector('[data-role="errors-heading"]')||(null===(o=r.errorsContainer)||void 0===o?void 0:o.querySelector("h3"))||null,r.errorsList=r.element.querySelector('[data-role="errors-list"]'),r.servicesContainer=r.element.querySelector('[data-role="services"]'),r.servicesList=r.element.querySelector('[data-role="services-list"]'),r.serviceTemplate=r.element.querySelector('[data-role="service-template"]'),r.errorTemplate=r.element.querySelector('[data-role="error-template"]'),r.initialPayloadElement=r.element.querySelector('[data-role="initial-payload"]'),r.initialDamPayloadElement=r.element.querySelector('[data-role="initial-dam-payload"]'),r.col1Element=r.element.querySelector('[data-role="col1"]'),r.col2Element=r.element.querySelector('[data-role="col2"]'),r.servletPath=r.element.getAttribute("data-servlet-path")||"/bin/dmp/myoptum/eligibility",r.handleWindowResize=r.syncCardHeightsByRow.bind(r),window.addEventListener("resize",r.handleWindowResize),window.addEventListener("pagehide",function(){window.removeEventListener("resize",r.handleWindowResize)},{once:!0}),r.init(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ki(e,t)}(t,e),n=t,o=[{key:"init",value:function(){this.setStatus("Component initialized. Loading eligibility..."),this.suppressMainContent=!0,this.setMainContentVisibility(!1),this.hideInlineError(),this.showEmptyState(!1);var e=this.readInitialPayload();e&&(this.hasAtLeastOneEligibleService(e)?this.applyEligibleState(e,e.uuid||""):this.applyNoEligibleState(e));var t=this.readInitialDamPayload();t&&this.applyDamPayload(t),e||(this.setStatus("Loading eligibility..."),this.loadEligibility())}},{key:"readInitialPayload",value:function(){var e,t=null===(e=this.initialPayloadElement)||void 0===e||null===(e=e.textContent)||void 0===e?void 0:e.trim();if(!t)return null;try{return JSON.parse(t)}catch(e){return null}}},{key:"readInitialDamPayload",value:function(){var e,t=null===(e=this.initialDamPayloadElement)||void 0===e||null===(e=e.textContent)||void 0===e?void 0:e.trim();if(!t)return null;try{return JSON.parse(t)}catch(e){return null}}},{key:"loadEligibility",value:(a=vi().m(function e(){var t,n,o,r,i;return vi().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch(this.servletPath,{credentials:"include",headers:{Accept:"application/json"}});case 1:if((t=e.v).ok){e.n=3;break}if(n="Eligibility request failed (".concat(t.status," ").concat(t.statusText,")."),401!==t.status&&403!==t.status){e.n=2;break}return this.setStatus("Eligibility request failed (401/403). Sign in to AEM and reload the page."),e.a(2);case 2:return this.setStatus(n),e.a(2);case 3:return e.n=4,t.json();case 4:if(o=e.v,this.hasAtLeastOneEligibleService(o)){e.n=5;break}return this.applyNoEligibleState(o),e.a(2);case 5:this.applyEligibleState(o,o.uuid||""),e.n=7;break;case 6:e.p=6,i=e.v,r=i instanceof Error?i.message:"Unknown error",this.setStatus("Failed to load eligibility: ".concat(r)),console.error("[o5-myoptum-eligibility] request failed",i);case 7:return e.a(2)}},e,this,[[0,6]])}),s=function(){var e=this,t=arguments;return new Promise(function(n,o){var r=a.apply(e,t);function i(e){bi(r,n,o,i,l,"next",e)}
6function l(e){bi(r,n,o,i,l,"throw",e)}i(void 0)})},function(){return s.apply(this,arguments)})},{key:"applyDamPayload",value:function(e){this.damBanner=(null==e?void 0:e.banner)||null,this.damMemberSites=this.resolveMemberSites(e),this.damCards=this.resolveCards(e),this.updateMemberSitesLayout(),this.suppressMainContent?this.isNoEligibleState&&this.renderNoEligibleMemberSites():(this.renderEligibilityCards(),this.renderMemberSites(),this.applyBannerContent(this.currentFirstName))}},{key:"hasAtLeastOneEligibleService",value:function(e){var t=this,n=e.services||{};return Object.entries(n).some(function(e){var n=mi(e,2),o=n[0],r=n[1];return!t.isEimpService(o,null==r?void 0:r.partner)&&Boolean(null==r?void 0:r.eligible)})}},{key:"isEimpService",value:function(e,t){var n=(e||"").trim().toLowerCase(),o=(t||"").trim().toLowerCase();return"eimp"===n||"eimp"===o}},{key:"applyNoEligibleState",value:function(e){this.suppressMainContent=!0,this.isNoEligibleState=!0,this.element.classList.add("o5-myoptum-eligibility--no-eligible-services"),this.currentFirstName=e?this.getEimpFirstName(e):null,this.eligibilityAuth=e?this.buildEligibilityAuth(e):{},this.bannerContainerElement&&(this.bannerContainerElement.hidden=!1),this.renderNoEligibleMemberSites();var n=this.currentFirstName?"Welcome, ".concat(this.currentFirstName,"!"):"Welcome!";this.setHeadline(n),this.setStatus(t.NO_ELIGIBLE_MESSAGE),this.hideInlineError(),this.showEmptyState(!1)}},{key:"applyEligibleState",value:function(e,t){this.suppressMainContent=!1,this.isNoEligibleState=!1,this.element.classList.remove("o5-myoptum-eligibility--no-eligible-services"),this.element.classList.remove("o5-myoptum-eligibility--only-member-sites-card"),this.setMainContentVisibility(!0),this.hideInlineError(),this.eligibilityAuth=this.buildEligibilityAuth(e),this.renderEligibilityCards(),this.renderMemberSites(),this.renderPayload(e,t)}},{key:"renderNoEligibleMemberSites",value:function(){this.col2Element&&(this.col2Element.innerHTML=""),this.renderEligibilityCards();var e,t=this.createMemberSitesSection();if(t){if(this.col1Element){var n=this.col1Element.querySelector(".eligibility_cards_list");if(n){var o=0===n.children.length;this.element.classList.toggle("o5-myoptum-eligibility--only-member-sites-card",o);var r=document.createElement("li");r.className="eligibility_card_item eligibility_card_item--member-sites",r.appendChild(t);var i=n.children.item(2);i?n.insertBefore(r,i):n.appendChild(r),this.contentElement&&(this.contentElement.hidden=!1),this.syncCardHeightsByRow()}else this.element.classList.remove("o5-myoptum-eligibility--only-member-sites-card")}}else this.element.classList.remove("o5-myoptum-eligibility--only-member-sites-card"),this.contentElement&&(this.contentElement.hidden=Boolean(!(null!==(e=this.col1Element)&&void 0!==e&&e.innerHTML.trim())))}},{key:"setMainContentVisibility",value:function(e){this.bannerContainerElement&&(this.bannerContainerElement.hidden=!e),this.contentElement&&(this.contentElement.hidden=!e)}},{key:"clearRenderedCardsAndMemberSites",value:function(){this.col1Element&&(this.col1Element.innerHTML=""),this.col2Element&&(this.col2Element.innerHTML="")}},{key:"showInlineError",value:function(e){if(this.errorsContainer&&(this.errorsContainer.hidden=!1),this.errorsHeadingElement&&(this.errorsHeadingElement.hidden=!0),this.errorsList&&(this.errorsList.innerHTML="",this.errorsList.hidden=!0),this.errorsContainer){var t=this.errorsContainer.querySelector('[data-role="no-eligible-message"]');t||((t=document.createElement("p")).setAttribute("data-role","no-eligible-message"),this.errorsContainer.appendChild(t)),t.textContent="";var n=document.createElement("strong");n.textContent=e,t.appendChild(n)}}},{key:"hideInlineError",value:function(){var e,t=null===(e=this.errorsContainer)||void 0===e?void 0:e.querySelector('[data-role="no-eligible-message"]');t&&t.remove(),this.errorsHeadingElement&&(this.errorsHeadingElement.hidden=!1),this.errorsList&&(this.errorsList.innerHTML="",this.errorsList.hidden=!1),this.errorsContainer&&(this.errorsContainer.hidden=!0)}},{key:"renderPayload",value:function(e,t){var n,o=Object.values(e.services||{}),r=e.errors||[],i=this.getEimpFirstName(e);this.currentFirstName=i,this.showEmptyState(!1),this.applyBannerContent(i),null!==(n=this.damBanner)&&void 0!==n&&n.greetingsBody||this.setStatus("Eligibility loaded."),this.renderServices(o),this.renderErrors(r)}},{key:"applyBannerContent",value:function(e){var t;if(!this.suppressMainContent){var n=e?"Welcome, ".concat(e,"!"):"Welcome!";this.setHeadline(n),null!==(t=this.damBanner)&&void 0!==t&&t.greetingsBody&&this.setStatus(this.damBanner.greetingsBody)}}},{key:"resolveMemberSites",value:function(e){var t,n,o,r,i=e.memberSites||e.membersites;if(!i)return null;var a=(i.links||[]).filter(function(e){var t;return Boolean(null==e||null===(t=e.title)||void 0===t?void 0:t.trim())}),l=(i.portals||[]).filter(function(e){var t;return Boolean(null==e||null===(t=e.title)||void 0===t?void 0:t.trim())}),c=i.support,s=Boolean(c&&((null===(t=c.title)||void 0===t?void 0:t.trim())||(null===(n=c.link)||void 0===n||null===(n=n.title)||void 0===n?void 0:n.trim())));return Boolean((null===(o=i.sectionTitle)||void 0===o?void 0:o.trim())||(null===(r=i.sectionDescription)||void 0===r?void 0:r.trim())||s||a.length>0||l.length>0)?pi(pi({},i),{},{links:a,portals:l,support:s?c:void 0}):null}},{key:"updateMemberSitesLayout",value:function(){var e,t=Boolean(null===(e=this.damMemberSites)||void 0===e||null===(e=e.links)||void 0===e?void 0:e.length);this.element.classList.toggle("o5-myoptum-eligibility--without-member-sites",!this.damMemberSites),this.element.classList.toggle("o5-myoptum-eligibility--without-custom-links",Boolean(this.damMemberSites)&&!t)}},{key:"resolveCards",value:function(e){var t,n,o=Array.isArray(e.cards)?e.cards:null;if(o)return o;var r=Array.isArray(null===(t=e.cardsContainer)||void 0===t?void 0:t.cards)?null===(n=e.cardsContainer)||void 0===n?void 0:n.cards:null;return r||[]}},{key:"buildEligibilityAuth",value:function(e){var t=this,n={},o=e.services||{};
6return Object.entries(o).forEach(function(e){var o=mi(e,2),r=o[0],i=o[1],a=Boolean(null==i?void 0:i.eligible);t.setAuthKey(n,r,a),null!=i&&i.partner&&t.setAuthKey(n,i.partner,a),null!=i&&i.data&&"object"===di(i.data)&&t.mergeBooleanLeaves(n,i.data)}),n}},{key:"setAuthKey",value:function(e,t,n){if(t){var o=t.trim();o&&(e[o]=n,e[o.toLowerCase()]=n)}}},{key:"mergeBooleanLeaves",value:function(e,t){var n=this;Object.entries(t).forEach(function(t){var o=mi(t,2),r=o[0],i=o[1];"boolean"!=typeof i?i&&"object"===di(i)&&!Array.isArray(i)&&n.mergeBooleanLeaves(e,i):n.setAuthKey(e,r,i)})}},{key:"renderEligibilityCards",value:function(){var e=this,t=this.col1Element;if(t){t.innerHTML="";var n=document.createElement("ul");n.className="eligibility_cards_list",t.appendChild(n),this.filterCardsByEligibility(this.damCards,this.eligibilityAuth).forEach(function(t,o){var r=document.createElement("li");r.className="eligibility_card_item",r.appendChild(e.createCardElement(t,o)),n.appendChild(r)}),this.syncCardHeightsByRow()}}},{key:"syncCardHeightsByRow",value:function(){if(this.col1Element){var e=Array.from(this.col1Element.querySelectorAll(".card_item"));if(e.forEach(function(e){e.style.minHeight=""}),!(e.length<2)){var t=new Map;e.forEach(function(e){var n,o=Math.round(e.getBoundingClientRect().top),r=Array.from(t.keys()).find(function(e){return Math.abs(e-o)<=1}),i=null!=r?r:o;t.has(i)||t.set(i,[]),null===(n=t.get(i))||void 0===n||n.push(e)}),t.forEach(function(e){if(!(e.length<2)){var t=e.reduce(function(e,t){return Math.max(e,t.offsetHeight)},0);e.forEach(function(e){e.style.minHeight="".concat(t,"px")})}})}}}},{key:"filterCardsByEligibility",value:function(e,t){var n=this;return e.filter(function(e){var o=e.eligibilityMap;return!(o&&(!Array.isArray(o)||0!==o.length))||(Array.isArray(o)?o:[o]).every(function(e){return n.isEligibilitySatisfied(e,t)})})}},{key:"isEligibilitySatisfied",value:function(e,t){var n;if(!e)return!0;var o=e.trim();if(!o)return!0;var r=o.startsWith("!"),i=(r?o.slice(1):o).trim();if(!i)return!0;var a=Boolean(null!==(n=t[i])&&void 0!==n?n:t[i.toLowerCase()]);return r?!a:a}},{key:"createCardElement",value:function(e,t){var n,o=document.createElement("div");o.className="cards_container";var r=this.sanitizeLinkUrl(null===(n=e.link)||void 0===n?void 0:n.url),i=document.createElement("div");i.className="card_item",o.appendChild(i);var a=document.createElement("div");a.className="card_content",i.appendChild(a);var l=this.createCardIcon(e);l&&a.appendChild(l);var c=document.createElement("div");if(c.className="card_text",a.appendChild(c),e.title){var s=document.createElement("h2");if(s.className="card_title",r){var u=document.createElement("a");u.className="card_title_link",u.href=r,u.target=this.getLinkTarget(),u.textContent=e.title,s.appendChild(u)}else s.textContent=e.title;c.appendChild(s)}if(e.body){var d=document.createElement("p");d.className="card_body",d.textContent=e.body,c.appendChild(d)}return o}},{key:"createCardIcon",value:function(e){var t=this.resolveCardImageSource(e);if(t){var n=document.createElement("span");n.className="card_icon";var o=document.createElement("img");return o.className="card_icon_image",o.src=t,o.alt="",o.setAttribute("aria-hidden","true"),n.appendChild(o),n}var r=e.iconName||e.icon||"",i=this.createIconFromName(r);if(!i)return null;var a=document.createElement("span");return a.className="card_icon",i.classList.add("card_icon_svg"),a.appendChild(i),a}},{key:"resolveCardImageSource",value:function(e){return this.normalizeAssetPath(e.iconPath)||this.normalizeAssetPath(e.iconUrl)||this.normalizeAssetPath(e.icon)}},{key:"normalizeAssetPath",value:function(e){var t=(e||"").trim();if(!t)return"";var n=t.startsWith("/"),o=/^https?:\/\//i.test(t);return/\.(svg|png|jpe?g|gif|webp)(\?.*)?$/i.test(t)&&(n||o)?t:""}},{key:"renderMemberSites",value:function(){if(this.col2Element){this.col2Element.innerHTML="";var e=this.createMemberSitesSection();e&&this.col2Element.appendChild(e)}}},{key:"createMemberSitesSection",value:function(){var e=this.damMemberSites;if(!e)return null;var t=document.createElement("div");t.className="membersites_container";var n=document.createElement("div");if(n.className="header",e.sectionTitle){var o=document.createElement("h2");o.textContent=e.sectionTitle,n.appendChild(o)}if(e.sectionDescription){var r=document.createElement("p");r.className="membersites_description",r.textContent=e.sectionDescription,n.appendChild(r)}n.childElementCount>0&&t.appendChild(n),(e.portals||[]).length>0&&t.appendChild(this.createPortalsSection(e.portals||[]));var i=document.createElement("div");if(i.className="links-section",(e.links||[]).length>0&&i.appendChild(this.createMemberLinksSection(e.links||[])),e.support){var a=this.createSupportLink(e.support);a&&i.appendChild(a)}return i.childElementCount>0&&t.appendChild(i),t}},{key:"createPortalsSection",value:function(e){var t=this,n=document.createElement("ul");return n.className="portals",e.forEach(function(e){if(e.title){var o=t.sanitizeLinkUrl(e.url),r=document.createElement("div");r.className="portal-card";var i=document.createElement(o?"a":"div");i.className="portal-card-content",i instanceof HTMLAnchorElement&&o&&(i.href=o,i.target=t.getLinkTarget());var a=document.createElement("span");a.className="portal-icon",t.appendPortalIcon(a,e),i.appendChild(a);var l=document.createElement("span");if(l.className="portal-link-title",l.textContent=e.title,i.appendChild(l),o){var c=document.createElement("span");c.className="portal-forward-icon",c.setAttribute("aria-hidden","true"),i.appendChild(c)}r.appendChild(i);var s=document.createElement("li");s.className="portal-item",s.appendChild(r),n.appendChild(s)}}),n}},{key:"createMemberLinksSection",value:function(e){var t=this,n=document.createElement("ul");return n.className="membersite_links",e.forEach(function(e){var o;if(e.title){var r=t.sanitizeLinkUrl(null===(o=e.link)||void 0===o?void 0:o.url),i=document.createElement("li");if(i.className="membersite_link_container",r){var a=document.createElement("a");a.className="membersite_link_title dmp-link-std",a.href=r,a.target=t.getLinkTarget(),a.textContent=e.title,i.appendChild(a)}else{var l=document.createElement("span");l.className="membersite_link_title",l.textContent=e.title,i.appendChild(l)}if(e.description){var c=document.createElement("p");c.className="membersite_link_description",c.textContent=e.description,i.appendChild(c)}n.appendChild(i)}}),n}},{key:"createSupportLink",value:function(e){var t,n,o=e.title||"",r=(null===(t=e.link)||void 0===t?void 0:t.t
6itle)||"",i=this.sanitizeLinkUrl(null===(n=e.link)||void 0===n?void 0:n.url);if(!o&&!r)return null;var a=document.createElement("ul");a.className="support_links";var l=document.createElement("li");if(l.className="support_link",o){var c=document.createElement("span");c.className="support_link_title",c.textContent=o,l.appendChild(c)}if(r&&i){var s=document.createElement("a");s.className="support_link_anchor dmp-link-std",s.href=i,s.target=this.getLinkTarget(),s.textContent=r,l.appendChild(s)}else if(r){var u=document.createElement("span");u.className="support_link_anchor",u.textContent=r,l.appendChild(u)}return a.appendChild(l),a}},{key:"sanitizeLinkUrl",value:function(e){var t=(e||"").trim();if(!t)return null;var n=t.replace(/[\u0000-\u001F\u007F"'`<>\\]/g,"");if(!n)return null;var o=n.replace(/\s+/g,"").match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);if(!o)return n;var r=o[1].toLowerCase();return["http","https","mailto","tel"].includes(r)?n:null}},{key:"getLinkTarget",value:function(){return"_self"}},{key:"appendPortalIcon",value:function(e,t){var n=t.iconPath||t.iconUrl;if(n){e.classList.add("portal-icon--image");var o=document.createElement("img");return o.className="portal-icon-image",o.src=n,o.alt="",o.setAttribute("aria-hidden","true"),void e.appendChild(o)}e.classList.remove("portal-icon--image");var r=this.createIconFromName(t.iconName||"");if(r)return r.classList.add("portal-icon-svg"),void e.appendChild(r);e.textContent=t.iconName?t.iconName.charAt(0).toUpperCase():"•"}},{key:"createIconFromName",value:function(e){var t=this.resolveIconName(e);return t?l(t,{size:24,ariaHidden:!0}):null}},{key:"resolveIconName",value:function(e){if(!e)return null;var t=e.trim(),n=t.replace(/-/g,"_").toLowerCase(),o=(c[n]||c[t]||t.toLowerCase().replace(/_/g,"-")).replace(/^icon-/,"");return i.includes(o)?o:null}},{key:"getEimpFirstName",value:function(e){var t=e.services||{},n=t.eimp,o=Object.values(t).find(function(e){var t;return"eimp"===(null===(t=e.partner)||void 0===t?void 0:t.toLowerCase())}),r=n||o;if(!r||!r.eligible||!r.data||"object"!==di(r.data))return null;var i=r.data.firstName;if(!i)return null;var a=i.trim();return a?a.charAt(0).toUpperCase()+a.slice(1).toLowerCase():null}},{key:"renderServices",value:function(e){var t=this;if(this.servicesList&&this.serviceTemplate&&this.servicesContainer){var n=this.serviceTemplate;this.servicesList.innerHTML="",this.servicesContainer.hidden=0===e.length,e.forEach(function(e){var o,r,i=n.content.cloneNode(!0);t.setField(i,"partner",e.partner||""),t.setField(i,"status",e.status||""),t.setField(i,"eligible",String(B
6oolean(e.eligible))),t.setField(i,"dataJson",JSON.stringify(null!==(o=e.data)&&void 0!==o?o:null,null,2));var a=i.querySelector('[data-field-wrap="errorCode"]');e.errorCode&&(t.setField(i,"errorCode",e.errorCode),a&&(a.hidden=!1)),null===(r=t.servicesList)||void 0===r||r.appendChild(i)})}}},{key:"renderErrors",value:function(e){var t=this;if(this.errorsList&&this.errorTemplate&&this.errorsContainer){var n=this.errorsContainer.querySelector('[data-role="no-eligible-message"]');n&&n.remove(),this.errorsHeadingElement&&(this.errorsHeadingElement.hidden=!1),this.errorsList.hidden=!1;var o=this.errorTemplate;this.errorsList.innerHTML="",this.errorsContainer.hidden=0===e.length,e.forEach(function(e){var n,r=o.content.cloneNode(!0);t.setField(r,"code",e.code||"error"),t.setField(r,"message",e.message||"Unknown error"),null===(n=t.errorsList)||void 0===n||n.appendChild(r)})}}},{key:"setField",value:function(e,t,n){var o=e.querySelector('[data-field="'.concat(t,'"]'));o&&(o.textContent=n)}},{key:"setStatus",value:function(e){this.statusElement&&(this.statusElement.textContent=e)}},{key:"setHeadline",value:function(e){this.headlineElement&&(this.headlineElement.textContent=e)}},{key:"showEmptyState",value:function(e){this.emptyStateElement&&(this.emptyStateElement.hidden=!e)}}],o&&gi(n.prototype,o),r&&gi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r,a,s}(s.o6);function Ti(e){return Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ti(e)}function Oi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Li(o.key),o)}}function Li(e){var t=function(e,t){if("object"!=Ti(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ti(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ti(t)?t:t+""}function qi(e,t,n){return t=Pi(t),function(e,t){if(t&&("object"==Ti(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xi()?Reflect.construct(t,n||[],Pi(e).constructor):t.apply(e,n))}function xi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xi=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pi(e)}function ji(e,t){return ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ji(e,t)}Ei(Ci,"NO_ELIGIBLE_MESSAGE","No Eligible Services"),(0,s.fe)({componentName:"o5-myoptum-eligibility",component:Ci});var Ni=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=qi(this,t,[e])).init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}(t,e),n=t,(o=[{key:"init",value:function(){var e=function(e){e.parentNode.parentNode.classList.add("active")},t=function(e){e.parentNode.parentNode.classList.remove("active")};document.querySelectorAll(".js-viewmore-link").forEach(function(n){!function(n){n.addEventListener("focus",function(){e(this)}),n.addEventListener("blur",function(){t(this)})}(n)}),document.querySelectorAll(".o5-panels-app").forEach(function(e){var t=e.querySelector(".o5-panel__row"),n=t.getAttribute("data-col"),o=t.querySelectorAll(".o5-panel__dmp-col-ctrl");switch(+n){case 2:for(var r=0;r<o.length;r++)o[r].classList.add("dmp-col-sm-12","dmp-col-md-6");break;case 3:for(var i=0;i<o.length;i++)o[i].classList.add("dmp-col-sm-12","dmp-col-lg-4","gutter--3");break;case 4:for(var a=0;a<o.length;a++)o[a].classList.add("dmp-col-sm-12","dmp-col-md-6","dmp-col-lg-6","dmp-col-xl-3","gutter--4")}})}}])&&Oi(n.prototype,o),r&&Oi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Mi(e){return Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mi(e)}function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
6t%2?Ii(Object(n),!0).forEach(function(t){Vi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,zi(o.key),o)}}function Fi(e,t,n){return t=Hi(t),function(e,t){if(t&&("object"==Mi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ri()?Reflect.construct(t,n||[],Hi(e).constructor):t.apply(e,n))}function Ri(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ri=function(){return!!e})()}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hi(e)}function Ui(e,t){return Ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ui(e,t)}function Vi(e,t,n){return(t=zi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e){var t=function(e,t){if("object"!=Mi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Mi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mi(t)?t:t+""}(0,s.fe)({componentName:"o5-panels",component:Ni});var $i=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Vi(n=Fi(this,t,[e]),"componentUid",void 0),Vi(n,"titleNode",void 0),Vi(n,"strengthTrigger",void 0),Vi(n,"quantityTrigger",void 0),Vi(n,"strengthDropdown",void 0),Vi(n,"quantityDropdown",void 0),Vi(n,"strengthValueNode",void 0),Vi(n,"quantityValueNode",void 0),Vi(n,"formValueNode",void 0),Vi(n,"strengthOptionBtns",void 0),Vi(n,"quantityOptionBtns",void 0),Vi(n,"yourPriceDisplay",void 0),Vi(n,"yourPriceRowNode",void 0),Vi(n,"listPriceNode",void 0),Vi(n,"pharmacyFeeNode",void 0),Vi(n,"getStartedBtn",void 0),Vi(n,"drawer",void 0),Vi(n,"drawerPanel",void 0),Vi(n,"drawerCloseBtn",void 0),Vi(n,"drawerCloseTimer",void 0),Vi(n,"currentQuantity",void 0),Vi(n,"inertSiblings",void 0),n.componentUid="o5-pricewise-".concat(window.crypto.getRandomValues(new Uint32Array(1))[0].toString(36).slice(0,8)),n.titleNode=n.element.querySelector(".o5-pricewise-drug__title"),n.strengthTrigger=n.element.querySelector('[data-role="strength-select"] .o5-pricewise-drug__select-trigger'),n.quantityTrigger=n.element.querySelector('[data-role="quantity-select"] .o5-pricewise-drug__select-trigger'),n.strengthDropdown=n.element.querySelector('[data-role="strength-select"] .o5-pricewise-drug__dropdown'),n.quantityDropdown=n.element.querySelector('[data-role="quantity-select"] .o5-pricewise-drug__dropdown'),n.strengthValueNode=n.element.querySelector('[data-role="strength-value"]'),n.quantityValueNode=n.element.querySelector('[data-role="quantity-value"]'),n.formValueNode=n.element.querySelector('[data-role="form-value"]'),n.strengthOptionBtns=Array.from(n.element.querySelectorAll('[data-role="strength-select"] .o5-pricewise-drug__option-btn')),n.quantityOptionBtns=Array.from(n.element.querySelectorAll('[data-role="quantity-select"] .o5-pricewise-drug__option-btn')),n.yourPriceDisplay=n.element.querySelector('[data-role="your-price"]'),n.yourPriceRowNode=n.element.querySelector('[data-role="your-price-row"]'),n.listPriceNode=n.element.querySelector('[data-role="list-price"]'),n.pharmacyFeeNode=n.element.querySelector('[data-role="pharmacy-fee"]'),n.getStartedBtn=n.element.querySelector(".o5-pricewise-drug__get-started"),n.drawer=n.element.querySelector(".o5-pricewise-drug__drawer"),n.drawerPanel=n.element.querySelector(".o5-pricewise-drug__drawer
6-panel"),n.drawerCloseBtn=n.element.querySelector(".o5-pricewise-drug__drawer-close"),n.drawerCloseTimer=null,n.currentQuantity=0,n.inertSiblings=[],n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ui(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=this;if(this.titleNode&&"false"===this.titleNode.dataset.headlineOverride&&(this.titleNode.textContent=this.toTitleCase(this.titleNode.textContent||"","")),this.strengthOptionBtns.length){this.strengthTrigger&&(this.strengthTrigger.addEventListener("click",function(){return e.toggleDropdown("strength")}),this.strengthTrigger.addEventListener("keydown",function(t){return e.handleTriggerKeyDown("strength",t)})),this.quantityTrigger&&(this.quantityTrigger.addEventListener("click",function(){return e.toggleDropdown("quantity")}),this.quantityTrigger.addEventListener("keydown",function(t){return e.handleTriggerKeyDown("quantity",t)})),this.strengthOptionBtns.forEach(function(t){t.addEventListener("click",e.handleStrengthSelect.bind(e))}),this.quantityOptionBtns.forEach(function(t){t.addEventListener("click",e.handleQuantitySelect.bind(e))}),document.addEventListener("click",this.handleOutsideClick.bind(this)),document.addEventListener("keydown",this.handleKeyDown.bind(this),!0),this.getStartedBtn&&this.getStartedBtn.addEventListener("click",this.openDrawer.bind(this)),Array.from(this.element.querySelectorAll('[data-action="close-drawer"]')).forEach(function(t){return t.addEventListener("click",e.closeDrawer.bind(e))}),this.setupAriaAttributes();var t=this.getDefaultQuantity();this.currentQuantity=t,this.quantityOptionBtns.forEach(function(n){var o=e.parseIntValue(n.dataset.quantityOption)===t;n.classList.toggle("is-selected",o),n.setAttribute("aria-selected",o?"true":"false")}),this.quantityValueNode&&(this.quantityValueNode.textContent="".concat(t," count")),this.selectStrength(this.strengthOptionBtns[0])}}},{key:"setupAriaAttributes",value:function(){var e=this,t=this.element.querySelector("#pw-form-trigger"),n=this.element.querySelector('label[for="pw-form-trigger"]'),o=this.element.querySelector('label[for="pw-strength-trigger"]'),r=this.element.querySelector('label[for="pw-quantity-trigger"]');if(t&&(t.id="".concat(this.componentUid,"-form-trigger")),n&&(n.id="".concat(this.componentUid,"-form-label"),n.setAttribute("for",t?t.id:"pw-form-trigger")),t&&n&&t.setAttribute("aria-labelledby",n.id),this.strengthDropdown&&this.strengthTrigger&&(this.strengthTrigger.id="".concat(this.componentUid,"-strength-trigger"),o&&(o.id="".concat(this.componentUid,"-strength-label"),o.setAttribute("for",this.strengthTrigger.id),this.strengthTrigger.setAttribute("aria-labelledby",o.id),this.strengthDropdown.setAttribute("aria-labelledby",o.id)),this.strengthDropdown.id="".concat(this.componentUid,"-strength-listbox"),this.strengthDropdown.setAttribute("aria-orientation","vertical"),this.strengthOptionBtns.forEach(function(t,n){t.id="".concat(e.componentUid,"-strength-option-").concat(n),t.setAttribute("tabindex","-1")}),this.strengthTrigger.setAttribute("role","combobox"),this.strengthTrigger.setAttribute("aria-autocomplete","none"),this.strengthTrigger.setAttribute("aria-haspopup","listbox"),this.strengthTrigger.setAttribute("aria-expanded","false"),this.strengthTrigger.setAttribute("aria-controls",this.strengthDropdown.id),this.syncComboboxState("strength")),this.quantityDropdown&&this.quantityTrigger&&(this.quantityTrigger.id="".concat(this.componentUid,"-quantity-trigger"),r&&(r.id="".concat(this.componentUid,"-quantity-label"),r.setAttribute("for",this.quantityTrigger.id),this.quantityTrigger.setAttribute("aria-labelledby",r.id),this.quantityDropdown.setAttribute("aria-labelledby",r.id)),this.quantityDropdown.id="".concat(this.componentUid,"-quantity-listbox"),this.quantityDropdown.setAttribute("aria-orientation","vertical"),this.quantityOptionBtns.forEach(function(t,n){t.id="".concat(e.componentUid,"-quantity-option-").concat(n),t.setAttribute("tabindex","-1")}),this.quantityTrigger.setAttribute("role","combobox"),this.quantityTrigger.setAttribute("aria-autocomplete","none"),this.quantityTrigger.setAttribute("aria-haspopup","listbox"),this.quantityTrigger.setAttribute("aria-expanded","fal
6se"),this.quantityTrigger.setAttribute("aria-controls",this.quantityDropdown.id),this.syncComboboxState("quantity")),this.drawerPanel&&this.getStartedBtn){var i=this.element.querySelector('[data-role="drawer-title"]');this.drawerPanel.id="".concat(this.componentUid,"-dialog"),this.drawerPanel.addEventListener("keydown",this.handleDrawerKeyDown.bind(this)),this.getStartedBtn.setAttribute("aria-controls",this.drawerPanel.id),i&&(i.id="".concat(this.componentUid,"-dialog-title"),this.drawerPanel.setAttribute("aria-labelledby",i.id))}}},{key:"getDropdownElements",value:function(e){return"strength"===e?{trigger:this.strengthTrigger,dropdown:this.strengthDropdown,options:this.strengthOptionBtns}:{trigger:this.quantityTrigger,dropdown:this.quantityDropdown,options:this.quantityOptionBtns}}},{key:"openDropdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getDropdownElements(e),o=n.trigger,r=n.dropdown;o&&r&&(this.closeDropdown("strength"===e?"quantity":"strength"),r.hidden=!1,o.setAttribute("aria-expanded","true"),t&&this.setActiveSelectedOrFirstOption(e))}},{key:"closeDropdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getDropdownElements(e),o=n.trigger,r=n.dropdown;o&&r&&(r.hidden=!0,o.setAttribute("aria-expanded","false"),this.syncComboboxState(e),t&&o.focus())}},{key:"closeAllDropdowns",value:function(){this.closeDropdown("strength"),this.closeDropdown("quantity")}},{key:"setActiveSelectedOrFirstOption",value:function(e){var t=this.getDropdownElements(e).options;if(t.length){var n=t.findIndex(function(e){return"true"===e.getAttribute("aria-selected")||e.classList.contains("is-selected")}),o=n>=0?n:0;this.setActiveOption(e,o)}}},{key:"handleTriggerKeyDown",value:function(e,t){var n=this.getDropdownElements(e).dropdown,o=!!n&&!n.hidden;if("Escape"!==t.key){if("ArrowDown"===t.key)return t.preventDefault(),o?void this.moveActiveOption(e,1):void this.openDropdown(e,!0);if("ArrowUp"===t.key)return t.preventDefault(),o||this.openDropdown(e,!0),void this.moveActiveOption(e,-1);if("Home"===t.key)return t.preventDefault(),o||this.openDropdown(e,!0),void this.setActiveOption(e,0);if("End"!==t.key){if("Enter"===t.key||" "===t.key){if(t.preventDefault(),!o)return void this.openDropdown(e,!0);this.selectActiveOption(e)}}else{t.preventDefault(),o||this.openDropdown(e,!0);var r=this.getDropdownElements(e).options;this.setActiveOption(e,r.length-1)}}else o&&(t.preventDefault(),this.closeDropdown(e,!0))}},{key:"toggleDropdown",value:function(e){var t=this.getDropdownElements(e),n=t.trigger,o=t.dropdown;n&&o&&(o.hidden?this.openDropdown(e):this.closeDropdown(e))}},{key:"getSelectedOptionIndex",value:function(e){var t=this.getDropdownElements(e).options.findIndex(function(e){return"true"===e.getAttribute("aria-selected")||e.classList.contains("is-selected")});return t>=0?t:0}},{key:"getActiveOptionIndex",value:function(e){var t=this.getDropdownElements(e),n=t.trigger,o=t.options;if(!n||!o.length)return-1;var r=n.getAttribute("aria-activedescendant");if(!r)return this.getSelectedOptionIndex(e);var i=o.findIndex(function(e){return e.id===r});return i>=0?i:this.getSelectedOptionIndex(e)}},{key:"setActiveOption",value:function(e,t){var n=this.getDropdownElements(e),o=n.trigger,r=n.options;if(o&&r.length){var i=(t%r.length+r.length)%r.length;r.forEach(function(e,t){e.classList.toggle("is-active",t===i)}),o.setAttribute("aria-activedescendant",r[i].id)}}},{key:"syncComboboxState",value:function(e){this.setActiveOption(e,this.getSelectedOptionIndex(e))}},{key:"moveActiveOption",value:function(e,t){if(this.getDropdownElements(e).options.length){var n=this.getActiveOptionIndex(e),o=n>=0?n+t:0;this.setActiveOption(e,o)}}},{key:"selectActiveOption",value:function(e){var t=this.getDropdownElements(e).options;if(t.length){var n=this.getActiveOptionIndex(e),o=t[n>=0?n:0];"strength"!==e?this.commitQuantitySelection(o,"quantity_keyboard"):this.commitStrengthSelection(o,"strength_keyboard")}}},{key:"commitStrengthSelection",value:function(e,t){var n;this.selectStrength(e),this.syncComboboxState("strength"),this.closeAllDropdowns(),null===(n=this.strengthTrigger)||void 0===n||n.focus(),this.trackInteraction("strength_select",Di({selectionSource:t},this.buildPricingContext(e,this.currentQuantity)))}},{key:"commitQuantitySelection",value:function(e,t){var n,o=this.resolveAllowedQuantity(this.parseIntValue(e.dataset.quantityOption)),r
6=this.currentQuantity;this.currentQuantity=o,this.quantityOptionBtns.forEach(function(e){e.classList.remove("is-selected"),e.setAttribute("aria-selected","false")}),e.classList.add("is-selected"),e.setAttribute("aria-selected","true"),this.syncComboboxState("quantity"),this.quantityValueNode&&(this.quantityValueNode.textContent="".concat(o," count"));var i=this.getSelectedStrength();i&&this.updateSummary(i,o),this.closeAllDropdowns(),null===(n=this.quantityTrigger)||void 0===n||n.focus(),r!==o&&this.trackInteraction("quantity_change",Di({selectionSource:t,previousQuantity:r},this.buildPricingContext(i,o)))}},{key:"handleOutsideClick",value:function(e){var t=e.target,n=this.element.querySelector('[data-role="strength-select"]'),o=this.element.querySelector('[data-role="quantity-select"]');n&&!n.contains(t)&&this.strengthDropdown&&!this.strengthDropdown.hidden&&this.closeDropdown("strength"),o&&!o.contains(t)&&this.quantityDropdown&&!this.quantityDropdown.hidden&&this.closeDropdown("quantity")}},{key:"handleKeyDown",value:function(e){"Tab"===e.key&&this.isDrawerOpen()?this.trapFocusInDrawer(e):"Escape"===e.key&&(this.closeAllDropdowns(),this.isDrawerOpen()&&this.closeDrawer())}},{key:"handleDrawerKeyDown",value:function(e){"Tab"!==e.key?"Escape"===e.key&&(e.preventDefault(),this.closeDrawer()):this.trapFocusInDrawer(e)}},{key:"handleStrengthSelect",value:function(e){var t=e.currentTarget;this.commitStrengthSelection(t,"strength_option")}},{key:"selectStrength",value:function(e){this.strengthOptionBtns.forEach(function(e){e.classList.remove("is-selected"),e.setAttribute("aria-selected","false")}),e.classList.add("is-selected"),e.setAttribute("aria-selected","true"),this.strengthValueNode&&(this.strengthValueNode.textContent=e.dataset.strength||"--"),this.formValueNode&&(this.formValueNode.textContent=this.toTitleCase(e.dataset.form||"capsule")),this.updateSummary(e,this.currentQuantity)}},{key:"handleQuantitySelect",value:function(e){var t=e.currentTarget;this.commitQuantitySelection(t,"quantity_option")}},{key:"getSelectedStrength",value:function(){return this.strengthOptionBtns.find(function(e){return e.classList.contains("is-selected")})||null}},{key:"getAllowedQuantities",value:function(){var e=this,t=this.quantityOptionBtns.map(function(t){return e.parseIntValue(t.dataset.quantityOption)}).filter(function(e){return Number.isFinite(e)&&e>0});return t.length?t:[30,60,90]}},{key:"getDefaultQuantity",value:function(){return this.getAllowedQuantities()[0]}},{key:"resolveAllowedQuantity",value:function(e){var t=this.getAllowedQuantities(),n=t[0];return t.includes(e)?e:n}},{key:"updateSummary",value:function(e,t){var n=this.calculatePricing(e,t);this.yourPriceDisplay&&(this.yourPriceDisplay.textContent=this.formatCurrency(n.yourPrice)),this.yourPriceRowNode&&(this.yourPriceRowNode.textContent=this.formatCurrency(n.yourPrice)),this.listPriceNode&&(this.listPriceNode.textContent=this.formatCurrency(n.listPrice)),this.pharmacyFeeNode&&(this.pharmacyFeeNode.textContent=this.formatCurrency(n.pharmacyFee))}},{key:"calculatePricing",value:function(e,t){if(!e)return{retailPrice:0,listPrice:0,pharmacyFee:0,yourPrice:0};var n=this.parseFloatValue(e.dataset.retailPrice),o=this.parseFloatValue(e.dataset.percentMarkup),r=this.parseFloatValue(e.dataset.clientDispenseFee);if(Number.isFinite(n)&&Number.isFinite(o)&&Number.isFinite(r)){var i=this.roundToCents(n*t),a=this.roundToCents(i*o/100+r);return{retailPrice:n,listPrice:i,pharmacyFee:a,yourPrice:this.roundToCents(i+a)}}var l=this.resolveAllowedQuantity(this.parseIntValue(e.dataset.defaultQuantity)),c=this.parseFloatValue(e.dataset.listPrice),s=this.parseFloatValue(e.dataset.pharmacyFee);if(Number.isFinite(c)&&Number.isFinite(s)&&l>0){var u=t/l,d=this.roundToCents(c*u),f=this.roundToCents(s*u),p=this.roundToCents(d+f);return{retailPrice:Number.isFinite(n)?n:0,listPrice:d,pharmacyFee:f,yourPrice:p}}return{retailPrice:Number.isFinite(n)?n:0,listPrice:0,pharmacyFee:0,yourPrice:0}}},{key:"openDrawer",value:function(){var e=this;if(this.drawer&&this.getStartedBtn){this.drawerCloseTimer&&(clearTimeout(this.drawerCloseTimer),this.drawerCloseTimer=null),this.drawer.hidden=!1,this.drawer.classList.remove("is-closing"),requestAnimationFrame(function(){var t;null===(t=e.drawer)||void 0===t||t.classList.add("is-open")}),document.body.classList.add("o5-pricewise-drug-drawer-open"),this.setPageContentInert(!0),this.get
6StartedBtn.setAttribute("aria-expanded","true"),this.drawerCloseBtn?this.drawerCloseBtn.focus():this.drawerPanel&&this.drawerPanel.focus();var t=this.getSelectedStrength();this.trackInteraction("drawer_open",Di({selectionSource:"get_started_button"},this.buildPricingContext(t,this.currentQuantity)))}}},{key:"closeDrawer",value:function(){var e=this;this.drawer&&this.getStartedBtn&&(this.drawerCloseTimer&&(clearTimeout(this.drawerCloseTimer),this.drawerCloseTimer=null),this.drawer.classList.remove("is-open"),this.drawer.classList.add("is-closing"),this.drawerCloseTimer=setTimeout(function(){e.drawer&&(e.drawer.hidden=!0,e.drawer.classList.remove("is-closing"),e.drawerCloseTimer=null)},t.DRAWER_ANIMATION_MS),document.body.classList.remove("o5-pricewise-drug-drawer-open"),this.setPageContentInert(!1),this.getStartedBtn.setAttribute("aria-expanded","false"),this.getStartedBtn.focus())}},{key:"setPageContentInert",value:function(e){var t=this,n=Array.from(document.body.children).filter(function(e){return e!==t.element});if(e)return this.inertSiblings=n.filter(function(e){return!e.hasAttribute("inert")}),void this.inertSiblings.forEach(function(e){e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")});this.inertSiblings.forEach(function(e){e.removeAttribute("inert"),e.removeAttribute("aria-hidden")}),this.inertSiblings=[]}},{key:"isDrawerOpen",value:function(){var e;return!!this.drawer&&!this.drawer.hidden&&"true"===(null===(e=this.getStartedBtn)||void 0===e?void 0:e.getAttribute("aria-expanded"))}},{key:"getDrawerFocusableElements",value:function(){if(!this.drawerPanel)return[];var e=["a[href]",'button:not([disabled]):not([aria-disabled="true"])','input:not([disabled]):not([aria-disabled="true"])','select:not([disabled]):not([aria-disabled="true"])','textarea:not([disabled]):not([aria-disabled="true"])','[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(this.drawerPanel.querySelectorAll(e))}},{key:"trapFocusInDrawer",value:function(e){var t,n=this.getDrawerFocusableElements();if(!n.length)return e.preventDefault(),void(null===(t=this.drawerPanel)||void 0===t||t.focus());var o=n[0],r=n[n.length-1],i=document.activeElement;if(e.shiftKey&&i===o)return e.preventDefault(),void r.focus();e.shiftKey||i!==r||(e.preventDefault(),o.focus())}},{key:"parseFloatValue",value:function(e){return e?Number.parseFloat(e):NaN}},{key:"parseIntValue",value:function(e){return e?Number.parseInt(e,10):NaN}},{key:"toTitleCase",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--";return e?e.toLowerCase().replace(/\b\w/g,function(e){return e.toUpperCase()}):t}},{key:"roundToCents",value:function(e){return Math.round(100*e)/100}},{key:"formatCurrency",value:function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}},{key:"buildPricingContext",value:function(e,t){if(!e)return{quantity:t};var n=this.calculatePricing(e,t);return{drugName:e.dataset.drugName||"",brandName:e.dataset.brandName||"",form:e.dataset.form||"capsule",strength:e.dataset.strength||"",ndc:e.dataset.ndc||"",quantity:t,retailPrice:n.retailPrice,listPrice:n.listPrice,pharmacyFee:n.pharmacyFee,yourPrice:n.yourPrice}}},{key:"trackInteraction",value:function(e,t){var n=globalThis.adobeDataLayer;n&&"function"==typeof n.push&&n.push({event:"pricewise interaction",pricewise:Di({component:"o5-pricewise-drug",action:e},t)})}}],o&&Bi(n.prototype,o),r&&Bi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Zi(e){return Zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zi(e)}function Gi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ji(o.key),o)}}function Wi(e,t,n){return t=Yi(t),function(e,t){if(t&&("object"==Zi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ki()?Reflect.construct(t,n||[],Yi(e).constructor):t.apply(e,n))}function Ki(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ki=function(){return!!e})()}
6function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yi(e)}function Qi(e,t){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qi(e,t)}function Xi(e,t,n){return(t=Ji(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ji(e){var t=function(e,t){if("object"!=Zi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Zi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zi(t)?t:t+""}Vi($i,"DRAWER_ANIMATION_MS",300),(0,s.fe)({componentName:"o5-pricewise-drug",component:$i});var ea=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xi(n=Wi(this,t,[e]),"onFocusInput",void 0),Xi(n,"onCheckInput",void 0),Xi(n,"onSubmitSearch",void 0),n.onFocusInput=n.focusInput.bind(n),n.onCheckInput=n.checkInput.bind(n),n.onSubmitSearch=n.submitSearch.bind(n),n.store={ui:{component:".O5-search-bar__search",input:".O5-search-bar__input",boxFocus:"O5-search-bar__box--focus",submit:".O5-search-bar__submit"},placeholderText:"Search"},n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qi(e,t)}(t,e),n=t,o=[{key:"init",value:function(){var e=this;document.querySelectorAll(this.store.ui.component).forEach(function(t){if("O5-search-bar"===t.dataset.component){var n=t.querySelector(e.store.ui.input),o=t.querySelector(e.store.ui.submit);n&&(n.addEventListener("focus",e.onFocusInput),n.addEventListener("blur",e.onFocusInput),n.addEventListener("keydown",e.onCheckInput),n.addEventListener("input",e.onCheckInput)),o&&(o.addEventListener("click",e.onSubmitSearch),o.addEventListener("keydown",e.onSubmitSearch))}})}},{key:"performSearch",value:function(e){if(null!==e&&""!==e){var t=e.replace(/%|\[|\]|:/g,"").trim(),n="/search-results.html",o=window.location.origin,r="/content/optum5/en";window.location.pathname.startsWith(r)?location.href=o+r+n+"?q="+encodeURIComponent(t):location.href=o+n+"?q="+encodeURIComponent(t)}}},{key:"modifyUIForTemplating",value:function(e){var t={};return e&&Object.keys(e).length>0&&Object.keys(e).forEach(function(n){t[n]=e[n].slice(1)}),t}},{key:"focusInput",value:function(e){var t=e.currentTarget,n=null==t?void 0:t.closest(".O5-search-bar__box");n&&("focus"===e.type&&n.classList.add(this.store.ui.boxFocus),"blur"===e.type&&n.classList.remove(this.store.ui.boxFocus))}},{key:"checkInput",value:function(e){var t=e.currentTarget.value;"keydown"===e.type&&"Enter"===e.key&&""!==t&&(this.performSearch(t.replaceAll(/[^a-zA-Z0-9,.']/g,"")),e.preventDefault()),"input"===e.type&&(e.currentTarget.nextSibling.nextSibling.disabled=""===t)}},{key:"submitSearch",value:function(e){if("keydown"===e.type&&"Enter"===e.key||"click"===e.type){var t=e.currentTarget,n=null==t?void 0:t.closest("form"),o=null==n?void 0:n.querySelector(this.store.ui.input);if(!o)return;this.performSearch(o.value)}}}],o&&Gi(n.prototype,o),r&&Gi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function ta(e){return ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(e)}function na(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,la(o.key),o)}}function oa(e,t,n){return t=ia(t),function(e,t){if(t&&("object"==ta(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ra()?Reflect.construct(t,n||[],ia(e).constructor):t.apply(e,n))}function ra(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ra=function(){return!!e})()}
6function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ia(e)}function aa(e,t){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aa(e,t)}function la(e){var t=function(e,t){if("object"!=ta(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ta(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ta(t)?t:t+""}(0,s.fe)({componentName:"o5-search-bar",component:ea});var ca=function(e){function t(e){var n,o,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=oa(this,t,[e]),o=n,i=null,(r=la(r="selectedOption"))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,n.store={ui:{wrapper:(0,Hn.A)(".o5-section-message__wrapper"),dropdown:(0,Hn.A)(".js-section-msg-select"),ctaButton:(0,Hn.A)(".js-section-cta")},selectedOption:""},n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aa(e,t)}
6(t,e),n=t,o=[{key:"init",value:function(){var e=$('[data-optum-cmp="o5-section-message"]'),t=new at.A({element:this.element});t.parentSelector=e,t.start()}},{key:"setup",value:function(){if(!this.store.ui.wrapper.length)return!1;this.store.ui.wrapper.length>0&&((0,Hn.A)(".js-section-cta").on("click",this.onClickSubmit.bind(this)),$(".js-section-msg-select").on("change",this.onChangeStateOption.bind(this)))}},{key:"onClickSubmit",value:function(){if(""===this.store.selectedOption&&null===this.store.selectedOption)return!1;window.open(this.store.selectedOption,"_self")}},{key:"onChangeStateOption",value:function(e){this.store.selectedOption=e.target.value}}],o&&na(n.prototype,o),r&&na(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function sa(e){return sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sa(e)}function ua(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,da(o.key),o)}}function da(e){var t=function(e,t){if("object"!=sa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=sa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sa(t)?t:t+""}function fa(e,t,n){return t=ma(t),function(e,t){if(t&&("object"==sa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pa()?Reflect.construct(t,n||[],ma(e).constructor):t.apply(e,n))}function pa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pa=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ma(e)}function ha(e,t){return ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ha(e,t)}(0,s.fe)({componentName:"o5-section-message",component:ca});var va=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=fa(this,t,[e])).ui={parentContainer:"#".concat(e.element.id),card:".o5-simple-card-grouping__card"},n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ha(e,t)}(t,e),n=t,(o=[{key:"cardStepUp",value:function(e){var t=e.find(".js--cc");e.find(".js--title").addClass("hidden").attr("aria-hidden",!0),t.removeClass("hidden").attr("aria-hidden",!1),e.find(".o5-simple-card-grouping__buttons").remove(),e.addClass("is--clickable")}},{key:"setup",value:function(){var e=this;$(this.ui.parentContainer).find(this.ui.card).each(function(t,n){var o=$(n),r=o.attr("data-pagepath"),i="true"===o.attr("data-clickable"),a="none"===o.attr("data-secondarybuttontype")&&"none"!==o.attr("data-buttonType");(r||a)&&i&&e.cardStepUp(o)})}}])&&ua(n.prototype,o),r&&ua(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function ya(e){return ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ya(e)}function ba(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ga(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ga(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function wa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ca(o.key),o)}}function Sa(e,t,n){return t=ka(t),function(e,t){if(t&&("object"==ya(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_a()?Reflect.construct(t,n||[],ka(e).constructor):t.apply(e,n))}function _a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_a=function(){return!!e})()}
6function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ka(e)}function Ea(e,t){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ea(e,t)}function Aa(e,t,n){return(t=Ca(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e){var t=function(e,t){if("object"!=ya(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ya(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ya(t)?t:t+""}(0,s.fe)({component:va,componentName:"o5-simple-card"});var Ta=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Aa(n=Sa(this,t,[e]),"ignoreScrollUntil",0),n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ea(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){var e=this;this.stickytableload(),this.applyActiveFromHash(0);var t=document.getElementById("o5-sticky-table-content--container");this.updateStickyState(),t&&new ResizeObserver(function(){return e.updateStickyState()}).observe(t),document.addEventListener("scroll",function(){return e.updateStickyState()},{capture:!0}),this.listClick(),this.setupMobileClick(),window.addEventListener("hashchange",function(){e.applyActiveFromHash(0)}),document.addEventListener("scroll",function(){if(!(Date.now()<e.ignoreScrollUntil)){var t=document.getElementById("cf-blog-content"),n=t?Array.from(t.querySelectorAll(".o5-articleText__anchor[id]")):[];if(n.length){var o=e.isMobileContentWidth()?100:50;if(n[0].getBoundingClientRect().top>o)document.querySelectorAll(".o5-sticky-table-content__list li a").forEach(function(e){return e.classList.remove("o5-sticky-table-content__list-item--active")});else{var r,i=null,a=ba(n);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(!(l.getBoundingClientRect().top<=o))break;i=l.getAttribute("id")}}catch(e){a.e(e)}finally{a.f()}i&&document.querySelectorAll(".o5-sticky-table-content__list li a").forEach(function(e){e.getAttribute("href")==="#"+i?e.classList.add("o5-sticky-table-content__list-item--active"):e.classList.remove("o5-sticky-table-content__list-item--active")})}}}},{capture:!0})}},{key:"stickytableload",value:function(){var e=document.getElementById("cf-blog-content"),t=e?e.querySelectorAll(".o5-articleText__anchor[id]"):[],n=Array.from(t).map(function(e){var t,n;return{id:e.id,text:null!==(t=null===(n=e.querySelector(".o5-articleText__headingText"))||void 0===n?void 0:n.textContent)&&void 0!==t?t:null}}),o=document.querySelectorAll(".cf-blog-navigation");if(o.length){var r=document.createElement("ul");r.className="o5-sticky-table-content__list",r.id="o5-sticky-table-content__list",n.forEach(function(e){var t=document.createElement("li");t.className="o5-sticky-table-content__list-item";var n=document.createElement("a"),o=document.createElement("span");o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="002677"><path d="M320-200v-560l440 280-440 280Z"/></svg>',o.className="o5-sticky-table-content__icon",n.textContent=e.text,n.href="#"+e.id,n.appendChild(o),t.appendChild(n),r.appendChild(t)}),o.forEach(function(e){if(!e.querySelector("ul")){var t=r.cloneNode(!0);e.appendChild(t)}})}}},{key:"updateStickyState",value:function(){var e,t=document.getElementById("o5-sticky-table-content--container");if(t){var n=t.getBoundingClientRect().top<=0,o=t.querySelector(".o5-sticky-table-content__nav-wrapper"),r=document.querySelectorAll(".o5-sticky-table-content-mobile");if(this.isMobileContentWidth()){null==o||o.classList.remove("o5-sticky-table-content__list--sticky");var i=""!==document.documentElement.style.getPropertyValue("--o5-optum-assistance-side-panel-width");r.forEach(function(e){e.style.display=n?"block":"none",e.style.setProperty("width",i?"calc(100% - var(--o5-optum-assistance-side-panel-width, 400px) - var(--o5-optum-assistance-page-gutter, 0))":"
6100%")})}else r.forEach(function(e){return e.style.display="none"}),null===(e=document.querySelector(".o5-sticky-table-content__nav"))||void 0===e||e.style.setProperty("width","100%"),null==o||o.classList.toggle("o5-sticky-table-content__list--sticky",n)}}},{key:"listClick",value:function(){var e=this;document.addEventListener("click",function(t){var n=t.target.closest(".o5-sticky-table-content__list-item a");if(n){document.querySelectorAll(".o5-sticky-table-content__list-item a").forEach(function(e){return e.classList.remove("o5-sticky-table-content__list-item--active")}),n.classList.add("o5-sticky-table-content__list-item--active");var o=document.querySelector(".o5-sticky-table-content-mobile .o5-sticky-table-content__nav-list");o&&o.classList.remove("o5-sticky-table-content__list--open");var r=document.querySelector(".o5-sticky-table-content-mobile .o5-sticky-table-content__nav-title");r&&(r.classList.remove("o5-sticky-table-content--sidebar-open"),r.setAttribute("aria-expanded","false"));var i=n.hash,a=decodeURIComponent(i.slice(1)),l=document.querySelector("#"+CSS.escape(a)+" .o5-articleText__headingText");l&&l.focus(),e.ignoreScrollUntil=Date.now()+1e3}})}},{key:"applyActiveFromHash",value:function(e){var n=this,o=window.location.hash;if(o){var r=Array.from(document.querySelectorAll(".o5-sticky-table-content__list li a")).filter(function(e){return e.getAttribute("href")===o});r.length?(this.clearActiveLinks(),r.forEach(function(e){e.classList.add("o5-sticky-table-content__list-item--active")})):e<t.APPLY_ACTIVE_MAX_RETRIES&&window.setTimeout(function(){n.applyActiveFromHash(e+1)},t.APPLY_ACTIVE_RETRY_DELAY_MS)}}},{key:"clearActiveLinks",value:function(){document.querySelectorAll(".o5-sticky-table-content__list-item a").forEach(function(e){e.classList.remove("o5-sticky-table-content__list-item--active")})}},{key:"isMobileContentWidth",value:function(){var e,t=document.getElementById("main-content");return(null!==(e=null==t?void 0:t.getBoundingClientRect().width)&&void 0!==e?e:window.innerWidth)<=767}},{key:"setupMobileClick",value:function(){var e=this;document.querySelectorAll(".o5-sticky-table-content-mobile .o5-sticky-table-content__nav-title").forEach(function(t){t.addEventListener("click",function(n){var o=document.querySelector(".o5-sticky-table-content-mobile .o5-sticky-table-content__nav-list");e.isMobileContentWidth()?("true"===t.getAttribute("aria-expanded")?(o&&o.classList.remove("o5-sticky-table-content__list--open"),t.classList.remove("o5-sticky-table-content--sidebar-open"),t.setAttribute("aria-expanded","false")):(o&&o.classList.add("o5-sticky-table-content__list--open"),t.classList.add("o5-sticky-table-content--sidebar-open"),t.setAttribute("aria-expanded","true")),n.preventDefault()):n.preventDefault()})})}}],o&&wa(n.prototype,o),r&&wa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Oa(e){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(e)}function La(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,qa(o.key),o)}}function qa(e){var t=function(e,t){if("object"!=Oa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Oa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oa(t)?t:t+""}function xa(e,t,n){return t=ja(t),function(e,t){if(t&&("object"==Oa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Pa()?Reflect.construct(t,n||[],ja(e).constructor):t.apply(e,n))}function Pa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pa=function(){return!!e})()}
6function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ja(e)}function Na(e,t){return Na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Na(e,t)}Aa(Ta,"APPLY_ACTIVE_MAX_RETRIES",30),Aa(Ta,"APPLY_ACTIVE_RETRY_DELAY_MS",100),Aa(Ta,"MOBILE_BREAKPOINT",753),(0,s.fe)({componentName:"o5-sticky-table-content",component:Ta});var Ma=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=xa(this,t,[e])).init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Na(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){var e=this,t=this.element;(0,ce.ix)(t),t.addEventListener("click",function(t){var n=t.target;"text-component__socialIcon"===n.className&&e.updateHref(t),"jsShareCopy"===n.className&&e.copyToClipBoard(t)}),t.addEventListener("keydown",function(t){"jsShareCopy"===t.target.className&&e.copyToClipBoard(t)}),window.addEventListener("load",function(){document.querySelectorAll(".jsShareCopy").forEach(function(e){e.setAttribute("role","button"),e.setAttribute("tabindex","0")}),document.querySelectorAll("p").forEach(function(e){e.querySelector(".text-component__badge")&&(e.classList.add("text-component__badge-parent"),e.setAttribute("qa_handles","text-component__badge-parent"))})}),this.updateButtonSpace()}},{key:"updateButtonSpace",value:function(){document.querySelectorAll(".text-component.text-inner p .dmp-btn--md,.text-component.text-inner p .btn__lg,.text-component.text-inner p .btn__sm").forEach(function(e){"P"==e.parentElement.tagName&&e.parentElement.classList.add("text-component__buttonSpace")})}},{key:"updateHref",value:function(e){var t=e.target.parentElement;"click"!=e.type&&("keydown"!=e.type||13!==e.keyCode&&32!==e.keyCode)||t.classList.contains("jsShareCopy")||(t.getAttribute("href").indexOf("facebook")>-1&&t.setAttribute("href",encodeURI("http://facebook.com/sharer.php?u="+window.location.href)),t.getAttribute("href").indexOf("twitter")>-1&&t.setAttribute("href",encodeURI("http://twitter.com/share?url="+window.location.href)),t.getAttribute("href").indexOf("linkedin")>-1&&t.setAttribute("href",encodeURI("http://www.linkedin.com/cws/share?url="+window.location.href)),t.getAttribute("href").indexOf("pinterest")>-1&&t.setAttribute("href",encodeURI("https://pinterest.com/pin/create/button/?url="+window.location.href)),t.getAttribute("href").indexOf("mailto")>-1&&t.setAttribute("href",encodeURI("mailto:?subject=I wanted you to see this site&body=Check out this site:"+window.location.href)))}},{key:"copyToClipBoard",value:function(e){if("click"==e.type||"keydown"==e.type&&(13===e.keyCode||32===e.keyCode)){e.preventDefault();var t,n,o,r=document.createElement("input"),i=e.currentTarget;t=i.offsetLeft,o=(n=window.innerWidth-(t+8))-158,r.setAttribute("value",window.location.href),document.body.appendChild(r),r.select(),document.execCommand("copy"),i.insertAdjacentHTML("beforeend",'<span style="opacity:0;" class="text-component__tooltip" id="custom-tooltip"><span aria-live="polite" id="shareTooltip" class="text-component__tooltip__text"><svg class="icon icon--link" aria-hidden="true" width="18" height="18" viewBox="0 -960 960 960" fill="currentColor"><path d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"/></svg>copied</span></span>');var a=i.getElementsByTagName("span")[0];n<182&&a.style.setProperty("left",o),a.style.cssText="opacity:1; justify-content:center;transition: opacity .5s ease-in-out;",a.setAttribute("aria-hidden","false"),i.setAttribute("aria-describedby","shareTooltip"),i.focus(),document.body.removeChild(r),setTimeout(function(){a.remove()},3e3)}}}],o&&La(n.prototype,o),r&&La(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Ia(e){return Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ia(e)}function Da(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ba(o.key),o)}}function Ba(e){var t=function(e,t){if("object"!=Ia(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ia(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ia(t)?t:t+""}
6function Fa(e,t,n){return t=Ha(t),function(e,t){if(t&&("object"==Ia(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ra()?Reflect.construct(t,n||[],Ha(e).constructor):t.apply(e,n))}function Ra(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ra=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ha(e)}function Ua(e,t){return Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ua(e,t)}(0,s.fe)({componentName:"o5-text",component:Ma});var Va=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Fa(this,t,[e])).init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ua(e,t)}(t,e),n=t,(o=[{key:"init",value:function(){$(function(){$(".optum5__colors").find(".box").each(function(){var e=$
6(this).css("background-color"),t=function(e){if(!e)return!1;var t=e.toLowerCase().match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/),n=e.indexOf("rgba")?3:2;delete t[0];for(var o=1;o<=n;o++)t[o]=parseInt(t[o]).toString(16),1===t[o].length&&(t[o]="0"+t[o]);return"#".concat(t.join("").toUpperCase())}(e),n=null!=e?e:"none",o=null!=t?t:"none";$(this).append('<ul class="unstyled"><li><code>'.concat(n,"</code></li><li><code>").concat(o,"</code></li></ul>"))})})}}])&&Da(n.prototype,o),r&&Da(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function za(e){return za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},za(e)}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach(function(t){Ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=za(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=za(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==za(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,s.fe)({componentName:"o5-token-css-reference",component:Va});var Wa="UHG.UHC.BenOps.UESTools.opp",Ka=["UHG.Optum.ConsumerEngineering.ConsumerEngineeringOptum.PLU"],Ya=/(^|\.|-)(stage|stg|dev)(\.|-|$)/i,Qa="ues-analytics-iframe-opp",Xa=[],Ja=null,el={prodHostnames:["www.optum.com","www.prohealthmd.com"],cxScriptUrls:{prod:"https://repo.rakanto.com/rakanto/cx/cx.js",stage:"https://stage-repo.rakanto.com/rakanto/cx/cx.js"}},tl=function(e,t){return(null==e?void 0:e.replace(/\s+/g," ").trim())||t},nl=function(){if("undefined"==typeof window)return"stage";var e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e||Ya.test(e)?"stage":el.prodHostnames.some(function(t){return e===t||e.endsWith(".".concat(t))})?"prod":"stage"},ol=function(){return el.cxScriptUrls[nl()]},rl=function(){var e=il();if(console.log("[o5 analytics] normalizeIframeCxUrl called. Iframe found:",!!e),e){var t=ol();if(console.log("[o5 analytics] Normalizing iframe cx.js URL if needed:",{expectedUrl:t,iframe:e}),t&&e.srcdoc&&e.dataset.cxUrlNormalized!==t){var n=Object.values(el.cxScriptUrls).filter(Boolean),o=e.srcdoc;n.forEach(function(e){e!==t&&(o=o.split(e).join(t))}),o!==e.srcdoc&&(e.srcdoc=o,console.log("[o5 analytics] Normalized iframe cx.js URL in srcdoc:",{environment:nl(),cxScriptUrl:t})),e.dataset.cxUrlNormalized=t}}},il=function(){if("undefined"==typeof document)return null;var e=document.getElementById(Qa);return console.log("[o5 analytics] getAnalyticsIframe called. Iframe found:",!!e),e},al=function(e,t){var n=Za({namespace:Wa,event:e},t);return console.log("[o5 analytics] Attempting to dispatch:",{eventName:e,data:t}),!!function(e,t){var n=il();if(console.log("[o5 analytics] dispatchViaIframe called. Iframe found:",!!n,{eventName:e,data:t}),!n||!n.contentWindow)return!1;var o=Za({namespace:Wa,siteIds:Ka,event:e},t);return n.contentWindow.postMessage({type:"sendCustomData",data:o},"*"),console.log("[o5 analytics] Dispatched via iframe postMessage:",{eventName:e,payload:o}),!0}(e,t)||("undefined"!=typeof document&&(document.dispatchEvent(new CustomEvent("o5:analyticsInteraction",{bubbles:!0,detail:n})),console.log("[o5 analytics] Dispatched via CustomEvent o5:analyticsInteraction (no real transport):",n)),!1)},ll=function(){var e=Xa;Xa=[],e.forEach(function(e){return e()})},cl=function(){if("undefined"!=typeof document&&null===Ja){if(console.log("[o5 anal
6ytics] waitForAnalyticsIframe called. Iframe already present:",!!il(),"Observer active:",!!Ja),il())return console.log("[o5 analytics] Analytics iframe already present on initial check."),rl(),console.log("[o5 analytics] Analytics iframe already present — flushing queue."),ll(),void console.log("[o5 analytics] Analytics iframe already present — no need to observe DOM mutations.");console.log("[o5 analytics] Analytics iframe not yet in DOM — watching for it.");var e=setTimeout(function(){Ja&&(console.log("[o5 analytics] Timeout waiting for analytics iframe. Stopping observation."),Ja.disconnect(),Ja=null,console.log("[o5 analytics] Timed out waiting for analytics iframe."))},1e4);console.log("[o5 analytics] Setting up MutationObserver to detect analytics iframe."),Ja=new MutationObserver(function(){il()&&(console.log("[o5 analytics] Analytics iframe detected by MutationObserver."),Ja.disconnect(),Ja=null,clearTimeout(e),rl(),console.log("[o5 analytics] Analytics iframe detected — flushing queue."),ll())}),console.log("[o5 analytics] MutationObserver set up. Observing DOM for analytics iframe."),Ja.observe(document.documentElement,{childList:!0,subtree:!0})}},sl=function(e,t){var n=t.selector||'.o5-ups-detail-ssr__button, [data-analytics-track="true"]',o=function(o){var r=o.target;if(r instanceof Element){var i,a,l=r.closest(n);if(l&&e.contains(l))if(!t.ignoreSelector||!l.closest(t.ignoreSelector))if("true"!==l.getAttribute("data-analytics-ignore"))if(!(l instanceof HTMLButtonElement&&l.disabled))ul((a=tl((i=l).getAttribute("aria-label")||i.textContent||i.getAttribute("id"),"interaction"),{interactionType:tl(i.getAttribute("data-analytics-link-name"),a),root:tl(i.getAttribute("data-analytics-root"),""),mode:tl(i.getAttribute("data-analytics-mode"),""),target:tl(i.getAttribute("data-analytics-target"),"cta")}))}};return e.addEventListener("click",o),function(){e.removeEventListener("click",o)}},ul=function(e){console.log("[o5 analytics] trackInteractionClick called with:",e);var t={interactionType:e.interactionType,root:e.root||"",mode:e.mode||"",target:e.target||"cta"},n=al("click",t);console.log("[o5 analytics] dispatchCustomData result (true = real transport, false = CustomEvent fallback):",n),n&&il()||(Xa.push(function(){return al("click",t)}),cl())},dl=function(){if("undefined"!=typeof document)if(document.getElementById(Qa))console.log("[o5 analytics] OPP analytics iframe already present — skipping injection.");else{var e=ol(),t=document.createElement("iframe");t.id=Qa,t.style.display="none",t.dataset.cxUrlNormalized=e,t.srcdoc=function(e){return'<html lang="en">\n<head>\n    <meta charset="utf-8" />\n    <meta name="viewport" content="width=device-width, initial-scale=1" />\n    <meta name="theme-color" content="#000000" />\n    <meta name="description" content="Unified Search Tools" />\n    <script>\n        window.addEventListener(\'message\', function(e){\n            if(e.data && e.data.data && e.data.type){\n                window.Rakanto?.event?.(e.data.type, e.data.data)\n            }\n        })\n        function load() {\n                const url = \''.concat(e,"'\n                const DARIDS = '").concat(Wa,"'\n                ;
6(function (cx, darids, demarcs) {\n                window['RakantoObject'] = 'Rakanto'\n                ;(window['Rakanto'] =\n                    window['Rakanto'] ||\n                    function () {\n                        ;(window['Rakanto'].q = window['Rakanto'].q || []).push(\n                            [Date.now()].concat(Array.prototype.slice.call(arguments))\n                        )\n                    }),\n                    (window['Rakanto'].l = 1 * new Date()),\n                    (window['Rakanto'].demarcs = demarcs)\n                ;(a = document.createElement('script')),\n                    (a.src = cx),\n                    (a.id = 'rakanto'),\n                    (a.async = true),\n                    darids ? a.setAttribute('data-px-darids', darids) : null,\n                    (m = document.getElementsByTagName('script')[0]),\n                    m.parentNode.insertBefore(a, m)\n            })(url, DARIDS)\n\n        }\n        load()\n    <\/script>\n    <title>Unified Search Analytics</title>\n</head>\n<body>\n</body>\n</html>")}(e),document.body.appendChild(t),console.log("[o5 analytics] Injected OPP analytics iframe:",{id:Qa,cxUrl:e})}};function fl(e){return fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fl(e)}function pl(e){return function(e){if(Array.isArray(e))return vl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ml(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||hl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hl(e,t){if(e){if("string"==typeof e)return vl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vl(e,t):void 0}}function vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function yl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,gl(o.key),o)}}function bl(e,t,n){return(t=gl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gl(e){var t=function(e,t){if("object"!=fl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=fl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fl(t)?t:t+""}var wl=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],Sl="(max-width: 539px)",_l=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),bl(this,"root",void 0),bl(this,"tabs",void 0),bl(this,"panels",void 0),bl(this,"tabKeys",void 0),bl(this,"instanceId",void 0),bl(this,"reviewSortDocClickHandler",null),bl(this,"tooltipDocClickHandler",null),bl(this,"activeTabIndex",0),bl(this,"tabModeMediaQuery",null),bl(this,"tabModeChangeHandler",null),bl(this,"headingLevelMQHandler",null),bl(this,"googleMapsModal",null),bl(this,"googleMapsBackdrop",null),bl(this,"googleMapsCloseButton",null),bl(this,"googleMapsCancelButton",null),bl(this,"googleMapsConfirmButton",null),bl(this,"googleMapsPendingUrl",null),bl(this,"googleMapsPreviouslyFocusedElement",null),bl(this,"shopOnlineModal",null),bl(this,"shopOnlineBackdrop",null),bl(this,"shopOnlineCancelButton",null),bl(this,"shopOnlineConfirmButton",null),bl(this,"shopOnlinePendingUrl",null),bl(this,"shopOnlinePendingTarget",null),bl(this,"shopOnlinePreviouslyFocusedElement",null),bl(this,"analyticsCleanup",null),this.root=t,this.tabs=Array.from(t.querySelectorAll(".o5-ups-detail-ssr__tab")),this.panels=Array.from(t.querySelectorAll(".o5-ups-detail-ssr__panel")),this.tabKeys=this.tabs.map(function(e){return n.resolveTabKey(e)}),this.instanceId=e.instanceCounter++,this.ensureMyChartSdkScript(),this.initializeAnalytics(),this.initializeSiteBrand(),this.initializeImageErrorHandling(),this.initializeHoursRotation(),this.initializeMap(),this.initializeDistance(),this.initializeReviewControl
6s(),this.initializeInfoTooltips(),this.initializeMscFacilitiesMobileToggle(),this.initializeMscFacilityPagination(),this.initializeMscNotification(),this.initializeFacilityProviderPagination(),this.initializeMedicareHelpFlag(),this.initializeGoogleMapsModal(),this.initializeShopOnlineModal(),this.initializePanelHeadingLevelSync(),this.initializeHeroVideoPlayer(),0!==this.tabs.length&&0!==this.panels.length&&(this.initializeResponsiveTabMode(),this.setupAccessibility(),this.bindEvents(),this.activateInitialTabFromHash())}return t=e,n=[{key:"ensureMyChartSdkScript",value:function(){var t;if(this.root.querySelector(".o5-ups-detail-ssr__location-scheduling")&&!e.myChartSdkScriptInjected){var n=this.root.querySelector("template[data-mychart-sdk-template]"),o=null==n?void 0:n.content.querySelector("script[src]"),r=null==o||null===(t=o.getAttribute("src"))||void 0===t?void 0:t.trim();if(r&&o)if(document.head.querySelector('script[src="'.concat(r,'"]')))e.myChartSdkScriptInjected=!0;else{var i=o.cloneNode(!0);document.head.appendChild(i),e.myChartSdkScriptInjected=!0}}}},{key:"setupAccessibility",value:function(){var e=this,t=this.root.querySelector(".o5-ups-detail-ssr__tabs-shell");
6this.tabs.forEach(function(t,n){var o="o5-ups-detail-ssr-tab-".concat(e.instanceId,"-").concat(n),r=e.getPanelForTab(n),i=r?"o5-ups-detail-ssr-panel-".concat(e.instanceId,"-").concat(n):"";t.id=o,i&&t.setAttribute("aria-controls",i),r&&(r.id=i,r.setAttribute("aria-labelledby",o))}),t&&(this.isAccordionView()?t.removeAttribute("role"):t.setAttribute("role","tablist")),this.updateResponsiveTabMode()}},{key:"bindEvents",value:function(){var e=this;this.tabs.forEach(function(t,n){t.addEventListener("click",function(){ul({interactionType:"Tab click - ".concat(e.tabKeys[n]||"tab"),target:"cta"}),e.isAccordionView()&&e.activeTabIndex===n?e.collapseTabs():e.activateTab(n,!0)}),t.addEventListener("keydown",function(t){e.onTabKeyDown(t,n)})}),window.addEventListener("hashchange",function(){var t=e.getHashTabIndex();t>=0&&e.activateTab(t,!1)})}},{key:"onTabKeyDown",value:function(e,t){var n=e.key,o=t;if("ArrowRight"===n)o=(t+1)%this.tabs.length;else if("ArrowLeft"===n)o=(t-1+this.tabs.length)%this.tabs.length;else if("Home"===n)o=0;else{if("End"!==n)return;o=this.tabs.length-1}e.preventDefault(),this.activateTab(o,!0),this.isAccordionView()?this.focusElementWithoutScroll(this.tabs[o]):this.tabs[o].focus()}},{key:"activateTab",value:function(e,t){this.activeTabIndex=e;var n=this.getPanelForTab(e),o=this.isAccordionView();
6this.tabs.forEach(function(t,n){var r=n===e;t.classList.toggle("is-active",r),o?(t.setAttribute("aria-expanded",r?"true":"false"),t.setAttribute("tabindex","0"),t.removeAttribute("aria-selected")):(t.setAttribute("aria-selected",r?"true":"false"),t.setAttribute("tabindex",r?"0":"-1"),t.removeAttribute("aria-expanded"))}),this.panels.forEach(function(e){var t=e===n;e.hidden=!t,o?t?e.removeAttribute("inert"):e.setAttribute("inert",""):e.removeAttribute("inert")}),t&&(o?this.clearTabHash():this.updateHash(this.tabKeys[e])),o&&this.focusElementWithoutScroll(this.tabs[e])}},{key:"focusElementWithoutScroll",value:function(e){e&&e.focus({preventScroll:!0})}},{key:"collapseTabs",value:function(){this.activeTabIndex=-1;var e=this.isAccordionView();this.tabs.forEach(function(t){t.classList.remove("is-active"),t.setAttribute("tabindex","0"),e?(t.setAttribute("aria-expanded","false"),t.removeAttribute("aria-selected")):(t.setAttribute("aria-selected","false"),t.removeAttribute("aria-expanded"))}),this.panels.forEach(function(t){t.hidden=!0,e&&t.setAttribute("inert","")}),this.clearTabHash()}},{key:"clearTabHash",value:function(){window.history&&"function"==typeof window.history.replaceState&&window.history.replaceState(window.history.state,"","".concat(window.location.pathname).concat(window.location.search))}},{key:"getPanelForTab",value:function(e){var t=this.tabKeys[e];if(t){var n=this.panels.find(function(e){return(e.dataset.tabKey||"").trim().toLowerCase()===t});if(n)return n}return this.panels[e]||null}},{key:"activateInitialTabFromHash",value:function(){var e=this.getHashTabIndex();this.activateTab(e>=0?e:0,!1)}},{key:"initializeResponsiveTabMode",value:function(){var e=this;"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(this.tabModeMediaQuery=window.matchMedia(Sl),this.tabModeChangeHandler=function(){e.updateResponsiveTabMode(),e.activeTabIndex>=0?e.activateTab(e.activeTabIndex,!1):e.isAccordionView()||e.activateTab(0,!1)},"function"==typeof this.tabModeMediaQuery.addEventListener?this.tabModeMediaQuery.addEventListener("change",this.tabModeChangeHandler):"function"==typeof this.tabModeMediaQuery.addListener&&this.tabModeMediaQuery.addListener(this.tabModeChangeHandler))}},{key:"updateResponsiveTabMode",value:function(){var e=this,t=this.isAccordionView(),n=this.root.querySelector(".o5-ups-detail-ssr__tabs-shell"),o=this.root.querySelectorAll(".o5-ups-detail-ssr__accordion-item"),r=this.root.querySelectorAll(".o5-ups-detail-ssr__accordion-heading");null==n||n.classList.toggle("is-accordion",t),n&&(t?n.removeAttribute("role"):n.setAttribute("role","tablist")),o.forEach(function(e){t?e.removeAttribute("role"):e.setAttribute("role","presentation")}),r.forEach(function(e){if(e.removeAttribute("aria-hidden"),t)if("div"===e.tagName.toLowerCase()&&"h2"===e.dataset.originalTag){var n=document.createElement("h2");for(n.className=e.className;e.firstChild;)n.appendChild(e.firstChild);e.replaceWith(n)}else e.removeAttribute("role");else if("h2"===e.tagName.toLowerCase()){var o=document.createElement("div");for(o.className=e.className,o.dataset.originalTag="h2";e.firstChild;)o.appendChild(e.firstChild);e.replaceWith(o)}}
6),this.tabs.forEach(function(n,o){var r=e.getPanelForTab(o),i=n.classList.contains("is-active");t?(n.removeAttribute("role"),n.setAttribute("tabindex","0"),n.setAttribute("aria-expanded",i?"true":"false"),n.removeAttribute("aria-selected")):(n.setAttribute("role","tab"),n.setAttribute("aria-selected",i?"true":"false"),n.setAttribute("tabindex",i?"0":"-1"),n.removeAttribute("aria-expanded")),r&&(t?(r.setAttribute("role","region"),!i&&r.hidden?r.setAttribute("inert",""):r.removeAttribute("inert")):(r.setAttribute("role","tabpanel"),r.removeAttribute("inert")))}),this.updatePanelHeadingLevels(t)}},{key:"initializePanelHeadingLevelSync",value:function(){var e=this;if("undefined"!=typeof window&&"function"==typeof window.matchMedia){var t=window.matchMedia(Sl);this.updatePanelHeadingLevels(t.matches),this.headingLevelMQHandler=function(t){e.updatePanelHeadingLevels(t.matches)},"function"==typeof t.addEventListener?t.addEventListener("change",this.headingLevelMQHandler):"function"==typeof t.addListener&&t.addListener(this.headingLevelMQHandler)}}},{key:"updatePanelHeadingLevels",value:function(e){Array.from(this.root.querySelectorAll(".o5-ups-detail-ssr__about-heading,.o5-ups-detail-ssr__insurance-heading,.o5-ups-detail-ssr__education-label")).forEach(function(t){e?(t.setAttribute("role","heading"),t.setAttribute("aria-level","3")):(t.removeAttribute("role"),t.removeAttribute("aria-level"))}),Array.from(this.root.querySelectorAll(".o5-ups-detail-ssr__about-label")).forEach(function(t){e?(t.setAttribute("role","heading"),t.setAttribute("aria-level","4")):(t.removeAttribute("role"),t.removeAttribute("aria-level"))})}},{key:"isAccordionView",value:function(){return!(!this.tabModeMediaQuery||!this.tabModeMediaQuery.matches)}},{key:"getHashTabIndex",value:function(){var e=window.location.hash.replace("#","").toLowerCase();return e?this.tabKeys.findIndex(function(t){return t===e}):-1}},{key:"updateHash",value:function(e){if(e){var t="#".concat(e);window.location.hash!==t&&(window.history&&"function"==typeof window.history.replaceState?window.history.replaceState(window.history.state,"","".concat(window.location.pathname).concat(window.location.search).concat(t)):window.location.hash=e)}}},{key:"resolveTabKey",value:function(e){var t,n=(e.dataset.tabKey||"").trim().toLowerCase();return n||(null===(t=e.textContent)||void 0===t?void 0:t.trim().toLowerCase().replace(/\s+/g,"-"))||"tab"}},{key:"initializeMap",value:function(){var t=this,n=Array.from(this.root.querySelectorAll('[data-ups-map="true"]'));0!==n.length&&(e.isWebGlAvailable()?n.forEach(function(e,n){var o=Number(e.dataset.lat||""),r=Number(e.dataset.lng||"");if(Number.isNaN(o)||Number.isNaN(r))return e.classList.remove("atlas-map","maplibregl-map"),void e.removeAttribute("data-ups-map");e.id||(e.id="o5-ups-detail-ssr-map-".concat(t.instanceId,"-").concat(n));var i=e.dataset.locationName||"",a=e.dataset.locationUrl||"";t.configureMapCanvasAccessibility(e,i),t.upgradeMapMarkerAfterLoad(e,a,i),t.waitForAwsMapSdk(e,o,r,i,a,0)}):n.forEach(function(e){e.classList.remove("atlas-map","maplibregl-map"),e.removeAttribute("data-ups-map")}))}},{key:"configureMapCanvasAccessibility",value:function(e,t){e.setAttribute("role","region"),e.setAttribute("aria-label",t?"Map showing location of ".concat(t):"Map showing location details")}},{key:"upgradeMapMarkerAfterLoad",value:function(e,t,n){var o=this,r=function(){var n=e.querySelector(".maplibregl-canvas");n&&(n.removeAttribute("role"),n.removeAttribute("tabindex"));var r=Array.from(e.querySelectorAll(".maplibregl-marker")),i=e.closest(".o5-ups-detail-ssr__facility-map, .o5-ups-detail-ssr__location-map-shell, .o5-ups-detail-ssr__location-map");null==i||i.removeAttribute("aria-hidden"),null==i||i.removeAttribute("tabindex"),0!==r.length&&(Array.from(e.querySelectorAll(".maplibregl-ctrl-attrib-button")).forEach(function(e){return e.setAttribute("tabindex","-1")}),r.forEach(function(e){var n=o.ensureMapMarkerButton(e);n.setAttribute("aria-label","Open location details"),t&&"true"!==n.dataset.locationDetailsBound&&(n.dataset.locationDetailsBound="true",n.addEventListener("click",function(){ul({interactionType:"Map marker click",target:"cta"}),o.openLocationUrl(t)}))}
6))};r(),"true"!==e.dataset.markerObserverBound&&(e.dataset.markerObserverBound="true",new MutationObserver(function(e){var t,n=!1,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=hl(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(o.s();!(t=o.n()).done;){var i=t.value;if("childList"===i.type)n=!0;else if("attributes"===i.type&&"tabindex"===i.attributeName){var a=i.target;a.classList.contains("maplibregl-canvas")?(a.removeAttribute("tabindex"),a.removeAttribute("aria-label")):(a.classList.contains("maplibregl-marker")&&"button"!==a.tagName.toLowerCase()&&"-1"!==a.getAttribute("tabindex")||a.classList.contains("maplibregl-ctrl-attrib-button")&&"-1"!==a.getAttribute("tabindex"))&&a.setAttribute("tabindex","-1")}}}catch(e){o.e(e)}finally{o.f()}n&&r()}).observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}))}},{key:"ensureMapMarkerButton",value:function(e){var t;if("button"===e.tagName.toLowerCase())return e;var n=document.createElement("button");for(n.type="button",n.className=e.className,n.style.cssText=e.style.cssText;e.firstChild;)n.appendChild(e.firstChild);var o=n.querySelector("img");return o&&(o.setAttribute("alt",""),o.setAttribute("aria-hidden","true")),n.dataset.analyticsTrack="true",n.dataset.analyticsLinkName="Open location details",n.dataset.analyticsLinkPosition="location map",n.dataset.analyticsLinkType="button",new MutationObserver(function(){n.style.transform=e.style.transform,n.style.opacity=e.style.opacity}).observe(e,{attributes:!0,attributeFilter:["style"]}),null===(t=e.parentNode)||void 0===t||t.replaceChild(n,e),n}},{key:"initializeDistance",value:function(){var e=this,t=Array.from(this.root.querySelectorAll(".o5-ups-detail-ssr__location-distance"));if(0!==t.length){var n=this.getSessionLocation();n?this.applyDistanceFromCoords(t,n.lat,n.lng):window.navigator&&window.navigator.geolocation&&window.navigator.geolocation.getCurrentPosition(function(n){e.applyDistanceFromCoords(t,n.coords.latitude,n.coords.longitude)},function(){},{enableHighAccuracy:!1,timeout:5e3,maximumAge:3e5})}}},{key:"getSessionLocation",value:function(){return this.readLocationFromStorage("UES_PROV_LOCATION_SELECTION_CHILD")||this.readLocationFromStorage("UES_PROV_LOCATION_SELECTION")}},{key:"readLocationFromStorage",value:function(e){try{var t=window.sessionStorage.getItem(e);if(!t)return null;var n=JSON.parse(t),o=Number(n.lat),r=Number(n.lng);if(Number.isFinite(o)&&Number.isFinite(r))return{lat:o,lng:r}}catch(e){}return null}},{key:"applyDistanceFromCoords",value:function(e,t,n){var o=this;e.forEach(function(e){var r=Number(e.dataset.lat||""),i=Number(e.dataset.lng||"");if(!Number.isNaN(r)&&!Number.isNaN(i)){var a=o.calculateDistanceMiles(t,n,r,i);if(Number.isFinite(a)){var l=o.formatNumberWithCommas(a.toFixed(2));e.textContent="".concat(l," miles away")}}})}},{key:"formatNumberWithCommas",value:function(e){var t=parseFloat(e);
6return Number.isNaN(t)?e:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}).format(t)}},{key:"calculateDistanceMiles",value:function(e,t,n,o){var r=function(e){return e*Math.PI/180},i=r(n-e),a=r(o-t),l=r(e),c=r(n),s=Math.sin(i/2)*Math.sin(i/2)+Math.cos(l)*Math.cos(c)*Math.sin(a/2)*Math.sin(a/2);return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*3958.7613}},{key:"waitForAwsMapSdk",value:function(e,t,n,o,r,i){var a,l=this;if("true"!==e.dataset.mapInitialized){var c=null===(a=window)||void 0===a||null===(a=a.google)||void 0===a?void 0:a.maps;if(null!=c&&c.Map&&null!=c&&c.Marker)try{var s={lat:t,lng:n},u=new c.Map(e,{center:s,zoom:7,disableDefaultUI:!1,zoomControl:!1,gestureHandling:"cooperative",mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1}),d={url:"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Maps%2Flocation_on_24dp%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.6788%2022.1802L10.6788%2022.1802L10.6843%2022.185C11.4404%2022.8417%2012.5696%2022.8417%2013.3257%2022.185L13.3257%2022.1851L13.332%2022.1795C15.8112%2019.9899%2017.7137%2017.9104%2019.0022%2015.9382C20.2892%2013.9682%2021%2012.0486%2021%2010.2C21%204.63711%2016.7212%201%2012%201C7.27882%201%203%204.63711%203%2010.2C3%2012.0487%203.71085%2013.9683%204.99933%2015.9386C6.2892%2017.9109%208.19438%2019.9905%2010.6788%2022.1802ZM12%2011C11.4523%2011%2011%2010.5477%2011%2010C11%209.45228%2011.4523%209%2012%209C12.5477%209%2013%209.45228%2013%2010C13%2010.5477%2012.5477%2011%2012%2011Z%22%20fill%3D%22%23E4780C%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%2F%3
6E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fsvg%3E",scaledSize:new c.Size(24,24),anchor:new c.Point(12,24)};new c.Marker({position:s,map:u,icon:d}),this.bindMapAccessibility(e,u),e.dataset.mapInitialized="true"}catch(e){var f=e&&e.message||String(e);-1!==f.indexOf("WebGL")||-1!==f.indexOf("webglcontextcreationerror")?console.warn("Interactive map unavailable (WebGL context could not be created); showing static fallback."):console.error("Error initializing map:",e)}else i>=30?console.warn("Amazon Location Migration SDK did not load; skipping interactive map."):window.setTimeout(function(){l.waitForAwsMapSdk(e,t,n,o,r,i+1)},250)}}},{key:"bindMapAccessibility",value:function(e,t){var n=this,o=e.closest(".o5-ups-detail-ssr__location-map-shell, .o5-ups-detail-ssr__facility-map");if(o){this.configureMapCanvasAccessibility(e,e.dataset.locationName||"");var r=o.querySelector("[data-ups-map-zoom-in]"),i=o.querySelector("[data-ups-map-zoom-out]"),a=function(e,o){e&&"true"!==e.dataset.mapControlBound&&(e.dataset.mapControlBound="true",e.addEventListener("click",function(){n.changeMapZoom(t,o)}))};a(r,1),a(i,-1);var l=o.querySelector("[data-ups-map-pan-toggle]"),c=o.querySelector("[data-ups-map-pan-controls]");if(l&&c&&"true"!==l.dataset.mapControlBound){l.dataset.mapControlBound="true",l.addEventListener("click",function(){var e="true"===l.getAttribute("aria-expanded");l.setAttribute("aria-expanded",e?"false":"true"),c.hidden=e,e?l.removeAttribute("tabindex"):l.setAttribute("tabindex","-1")}),l.addEventListener("keydown",function(e){var t;"Tab"!==e.key||e.shiftKey||"true"!==l.getAttribute("aria-expanded")||(e.preventDefault(),null===(t=c.querySelector("[data-ups-map-pan]"))||void 0===t||t.focus())});var s=c.querySelector("[data-ups-map-pan]");null==s||s.addEventListener("keydown",function(e){"Tab"===e.key&&e.shiftKey&&(e.preventDefault(),l.focus())}),o.addEventListener("focusout",function(e){var t=e.relatedTarget;c.hidden||t&&o.contains(t)||(l.setAttribute("aria-expanded","false"),l.removeAttribute("tabindex"),c.hidden=!0)})}var u={up:[0,-96],down:[0,96],left:[-96,0],right:[96,0]};Array.from(o.querySelectorAll("[data-ups-map-pan]")).forEach(function(e){"true"!==e.dataset.mapControlBound&&(e.dataset.mapControlBound="true",e.addEventListener("click",function(){var o=ml(u[e.getAttribute("data-ups-map-pan")||""]||[0,0],2),r=o[0],i=o[1];n.panMap(t,r,i)}))}),"true"!==e.dataset.mapKeyboardBound&&(e.dataset.mapKeyboardBound="true",e.addEventListener("keydown",function(e){n.onMapCanvasKeyDown(e,t)}))}}},{key:"onMapCanvasKeyDown",value:function(e,t){var n=e.key;return"+"===n||"="===n||"Add"===n||"NumpadAdd"===n?(e.preventDefault(),void this.changeMapZoom(t,1)):"-"===n||"_"===n||"Subtract"===n||"NumpadSubtract"===n?(e.preventDefault(),void this.changeMapZoom(t,-1)):"ArrowUp"===n?(e.preventDefault(),void this.panMap(t,0,-96)):"ArrowDown"===n?(e.preventDefault(),void this.panMap(t,0,96)):"ArrowLeft"===n?(e.preventDefault(),void this.panMap(t,-96,0)):void("ArrowRight"===n&&(e.preventDefault(),this.panMap(t,96,0)))}},{key:"changeMapZoom",value:function(e,t){if("function"==typeof(null==e?void 0:e.getZoom)&&"function"==typeof(null==e?void 0:e.setZoom)){var n=Number(e.getZoom());if(Number.isFinite(n))return void e.setZoom(n+t)}t>0&&"function"==typeof(null==e?void 0:e.zoomIn)?e.zoomIn():t<0&&"function"==typeof(null==e?void 0:e.zoomOut)&&e.zoomOut()}},{key:"panMap",value:function(e,t,n){if("function"==typeof(null==e?void 0:e.panBy))try{e.panBy.length>=2?e.panBy(t,n):e.panBy([t,n])}catch(o){try{e.panBy([t,n])}catch(o){e.panBy(t,n)}}}},{key:"openLocationUrl",value:function(e){this.googleMapsModal&&this.googleMapsConfirmButton?this.showGoogleMapsModal(e):this.openLocationUrlDirect(e)}},{key:"openLocationUrlDirect",value:function(e){ul({interactionType:"Google Map - Facility Address"}),window.open(e,"_blank","noopener,noreferrer")}},{key:"trackPaginationInteraction",value:function(e,t){ul({interactionType:e,mode:t,target:"cta"})}},{key:"initializeMedicareHelpFlag",value:function(){var e=this.root.querySelector(".o5-ups-detail-ssr__medicare"),t=this.root.querySelector(".o5-ups-detail-ssr__medicare-disclaimer"),n=this.root.querySelector(".o5-ups-detail-ssr__hero-actions");
6if(e&&t){var o=document.referrer;if(!o)return e.remove(),void t.remove();o.includes("medicare-support")&&(e.hidden=!1,t.hidden=!1,n&&n.remove())}}},{key:"initializeAnalytics",value:function(){var t=this.root.getAttribute("data-analytics-env");"prod"!==t&&"stage"!==t||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};el=Za(Za(Za({},el),e),{},{prodHostnames:e.prodHostnames||el.prodHostnames,cxScriptUrls:Za(Za({},el.cxScriptUrls),e.cxScriptUrls||{})})}({envOverride:t}),e.analyticsInitialized||(console.log("[o5 analytics] Environment and cx.js URL:",{environment:nl(),cxScriptUrl:ol()}),dl(),rl(),cl(),e.analyticsInitialized=!0),this.analyticsCleanup=sl(this.root,{defaultLinkPosition:"provider detail",ignoreSelector:'[data-google-maps-modal], [data-shop-online-modal], a[href*="google.com/maps"], .o5-ups-detail-ssr__tab'})}},{key:"showGoogleMapsModal",value:function(e){var t;this.googleMapsModal&&this.googleMapsConfirmButton?(this.googleMapsPendingUrl=e,this.googleMapsPreviouslyFocusedElement=document.activeElement,this.googleMapsModal.hidden=!1,this.googleMapsCloseButton?this.googleMapsCloseButton.focus():null===(t=this.googleMapsCancelButton)||void 0===t||t.focus()):this.openLocationUrlDirect(e)}},{key:"hideGoogleMapsModal",value:function(){this.googleMapsModal&&(this.googleMapsModal.hidden=!0,this.googleMapsPendingUrl=null,this.googleMapsPreviouslyFocusedElement&&document.body.contains(this.googleMapsPreviouslyFocusedElement)&&"function"==typeof this.googleMapsPreviouslyFocusedElement.focus&&this.googleMapsPreviouslyFocusedElement.focus(),this.googleMapsPreviouslyFocusedElement=null)}},{key:"openShopOnlineUrlDirect",value:function(e,t){ul({interactionType:"Shop online click",target:"cta"}),window.open(e,"_blank","noopener,noreferrer")}},{key:"showShopOnlineModal",value:function(e,t){this.shopOnlineModal&&this.shopOnlineConfirmButton?(this.shopOnlinePendingUrl=e,this.shopOnlinePendingTarget=t,this.shopOnlinePreviouslyFocusedElement=document.activeElement,this.shopOnlineModal.hidden=!1,this.shopOnlineModal.setAttribute("aria-hidden","false"),this.shopOnlineConfirmButton.focus()):this.openShopOnlineUrlDirect(e,t)}},{key:"hideShopOnlineModal",value:function(){this.shopOnlineModal&&(this.shopOnlinePendingUrl=null,this.shopOnlinePendingTarget=null,this.shopOnlineModal.hidden=!0,this.shopOnlineModal.setAttribute("aria-hidden","true"),this.shopOnlinePreviouslyFocusedElement&&"function"==typeof this.shopOnlinePreviouslyFocusedElement.focus&&this.shopOnlinePreviouslyFocusedElement.focus(),this.shopOnlinePreviouslyFocusedElement=null)}},{key:"getFocusableElements",value:function(e){var t=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter(function(e){return e instanceof HTMLElement&&!e.hasAttribute("hidden")&&"true"!==e.getAttribute("aria-hidden")})}},{key:"initializeShopOnlineModal",value:function(){var e=this;if(this.shopOnlineModal=document.querySelector("[data-shop-online-modal]"),this.shopOnlineModal)if(this.shopOnlineBackdrop=this.shopOnlineModal.querySelector("[data-shop-online-backdrop]"),this.shopOnlineCancelButton=this.shopOnlineModal.querySelector("[data-shop-online-cancel]"),this.shopOnlineConfirmButton=this.shopOnlineModal.querySelector("[data-shop-online-confirm]"),this.shopOnlineBackdrop&&this.shopOnlineCancelButton&&this.shopOnlineConfirmButton){var t=function(){ul({interactionType:"Shop online modal cancel",target:"cta"}),e.hideShopOnlineModal()};this.root.addEventListener("click",function(t){var n=t.target;if(n instanceof Element){var o=n.closest("[data-shop-online-trigger]");if(o){var r=o.getAttribute("data-shop-online-url")||(o instanceof HTMLAnchorElement?o.href:null);r&&(t.preventDefault(),t.stopPropagation(),e.showShopOnlineModal(r,o.getAttribute("target")))}}}),this.shopOnlineConfirmButton.addEventListener("click",function(){ul({interactionType:"Shop online modal confirm",target:"cta"}),e.shopOnlinePendingUrl&&e.openShopOnlineUrlDirect(e.shopOnlinePendingUrl,e.shopOnlinePendingTarget),e.hideShopOnlineModal()}),this.shopOnlineCancelButton.addEventListener("click",t),this.shopOnlineBackdrop.addEventListener("click",function(t){var n;t.preventDefault(),t.stopPropagation(),null===(n=e.shopOnlineConfirmButton)||void 0===n||n.focus()}),this.shopOnlineModal.addEventListener("keydown",function(n){var o;if("Escape"===n.key)return n.preventDefault(),void t();if("Tab"===n.key){var r,i=e.getFocusableElements(e.shopOnlineModal);
6if(0===i.length)return n.preventDefault(),void(null===(r=e.shopOnlineConfirmButton)||void 0===r||r.focus());var a=i[0],l=i[i.length-1],c=document.activeElement,s=!!c&&(null===(o=e.shopOnlineModal)||void 0===o?void 0:o.contains(c));n.shiftKey?s&&c!==a||(n.preventDefault(),l.focus()):s&&c!==l||(n.preventDefault(),a.focus())}})}else this.shopOnlineModal=null}},{key:"initializeHoursRotation",value:function(){var e=this;Array.from(this.root.querySelectorAll("[data-hours-rotate]")).forEach(function(t){return e.rotateHoursTable(t)})}},{key:"rotateHoursTable",value:function(e){var t=e.querySelector("tbody");if(t){var n=Array.from(t.querySelectorAll(".o5-ups-detail-ssr__hours-row"));if(0!==n.length){for(var o=(new Date).getDay(),r=wl[o],i=-1,a=0;a<n.length;a++){var l=(n[a].getAttribute("data-day-name")||"").trim().toLowerCase();if(l===r||0===l.indexOf(r)){i=a;break}}if(i>0)for(var c=0;c<i;c++)t.appendChild(n[c]);if(i>=0){var s=Array.from(t.querySelectorAll(".o5-ups-detail-ssr__hours-row"));if(s.length>0){var u=s[0];u.classList.add("o5-ups-detail-ssr__hours-row--today");var d=u.querySelector(".o5-ups-detail-ssr__hours-day");d&&(d.innerHTML="<strong>Today</strong>")}}}}}},{key:"initializeReviewControls",value:function(){var e=this.root.querySelector("#reviews-section");e&&this.bindReviewControls(e)}},{key:"initializeInfoTooltips",value:function(){var t=this,n=Array.from(this.root.querySelectorAll(".o5-ups-detail-ssr__info-tooltip"));if(0!==n.length){var o=function(e){return e.querySelector(".o5-ups-detail-ssr__info-tooltip-trigger")},r=function(e){return e.querySelector(".o5-ups-detail-ssr__info-tooltip-content")},i=function(e){var t=o(e);t&&(t.setAttribute("tabindex","-1"),t.focus(),window.setTimeout(function(){t.setAttribute("tabindex","0")},100))},a=function(e){n.forEach(function(t){var n=t===e,i=o(t),a=r(t);t.classList.toggle("is-open",n),i&&i.setAttribute("aria-expanded",n?"true":"false"),a&&(a.setAttribute("aria-hidden",n?"false":"true"),n?a.removeAttribute("inert"):a.setAttribute("inert",""),n||a.style.setProperty("--tooltip-shift-x","0px"))})};n.forEach(function(t){if(!t.dataset.tooltipBound){t.dataset.tooltipBound="true";var n=o(t),l=r(t),c=function(e){return e.querySelector(".o5-ups-detail-ssr__info-tooltip-close")}(t),s=function(e){return e.querySelector(".o5-ups-detail-ssr__info-tooltip-text")}(t);if(n&&l&&c&&s){var u=(n.dataset.tooltipLabel||"").trim();u&&n.setAttribute("aria-label","More information on ".concat(u)),l.id||(l.id="o5-ups-detail-ssr-tooltip-".concat(e.tooltipCounter++)),s.id||(s.id="".concat(l.id,"-text")),n.setAttribute("aria-controls",l.id),n.removeAttribute("aria-describedby"),l.setAttribute("aria-label","More information"),l.setAttribute("aria-describedby",s.id),l.setAttribute("aria-hidden","true"),l.setAttribute("inert","");var d=function(){var e="true"!==n.getAttribute("aria-expanded");a(e?t:void 0),e?requestAnimationFrame(function(){!function(e){var t=r(e);if(t){t.style.setProperty("--tooltip-shift-x","0px");var n=t.getBoundingClientRect(),o=0;n.right>window.innerWidth-8&&(o=window.innerWidth-8-n.right),n.left+o<8&&(o=8-n.left),t.style.setProperty("--tooltip-shift-x","".concat(o,"px"))}}(t),c.focus()}):i(t)};n.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),ul({interactionType:"Info tooltip open",target:"cta"}),d()}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),ul({interactionType:"Info tooltip close",target:"cta"}),a(),i(t)}),t.addEventListener("keydown",function(e){if("Enter"===e.key||" "===e.key){if(e.target!==n){if("Enter"!==e.key)return;var o=document.activeElement;return void(o&&(l.contains(o)||o===c||o===n)&&(e.preventDefault(),a(),i(t)))}return e.preventDefault(),void d()}"Escape"===e.key&&(e.preventDefault(),a(),i(t))})}}}),this.tooltipDocClickHandler&&document.removeEventListener("click",this.tooltipDocClickHandler),this.tooltipDocClickHandler=function(e){var o=e.target;o&&t.root.contains(o)&&n.find(function(e){return e.contains(o)})||a()},document.addEventListener("click",this.tooltipDocClickHandler)}}},{key:"bindReviewControls",value:function(e){var t=this;if(!e.dataset.reviewBound){e.dataset.reviewBound="true";var n=e.querySelector("[data-review-page]");if(n){var o=parseInt(n.getAttribute("data-review-page")||"0",10),r="true"===e.dataset.reviewSortCleared?"":n.getAttribute("data-review-sort")||"d",i=parseInt(n.getAttribute("data-review-total-pages")||"1",10),a=e.querySelector("[data-review-sort-toggle]"),l=e.querySelector("[data-review-sort-menu]"),c=l?Array.from(l.querySelectorAll("[data-review-sort-option]")):[],s=e.querySelector("[data-review-sort-apply]"),u=e.querySelector("[data-review-sort-clear]"),d=e.querySelector("[data-review-sort-label]"),f=e.querySelector("[data-review-prev]"),p=e.querySelector("[data-review-next]"),m=r,h=function(){l&&a&&(l.hidden=!0,l.setAttribute("inert",""),a.setAttribute("aria-expanded","fal
6se"))},v=function(e){c.forEach(function(t){var n=(t.getAttribute("data-sort-value")||"d")===e;t.checked=n})},y=function(e){d&&(d.textContent=function(e){return"r"===e?"Highest to lowest":"ir"===e?"Lowest to highest":"d"===e?"Most recent":""}(e))};a&&l&&c.length&&(l.setAttribute("inert",""),v(r),y(r),a.addEventListener("click",function(){ul({interactionType:"Review sort toggle",target:"cta"}),l.hidden?function(){if(l&&a){l.hidden=!1,l.removeAttribute("inert"),a.setAttribute("aria-expanded","true");var e=c.find(function(e){return e.checked})||c[0];null==e||e.focus()}}():h()}),l.addEventListener("keydown",function(e){if("Escape"===e.key)return e.preventDefault(),h(),void a.focus();if("Tab"===e.key){var t=function(){var e=pl(c);return s&&e.push(s),u&&e.push(u),e}(),n=t.indexOf(document.activeElement);if(-1!==n){e.preventDefault();var o=n+(e.shiftKey?-1:1);if(!(o<0))return o>=t.length?(h(),void a.focus()):void t[o].focus();a.focus()}}}),c.forEach(function(e){e.addEventListener("change",function(){m=e.getAttribute("data-sort-value")||"d",v(m)})}),u&&u.addEventListener("click",function(){ul({interactionType:"Review sort clear",target:"cta"}),v(m="d"),y(m),delete e.dataset.reviewSortCleared,h(),"d"===r&&0===o||t.navigateReview("d",0,e)}),s&&s.addEventListener("click",function(){ul({interactionType:"Review sort apply",target:"cta"}),h(),y(m),delete e.dataset.reviewSortCleared,m!==r&&t.navigateReview(m,0,e)}),this.reviewSortDocClickHandler&&document.removeEventListener("click",this.reviewSortDocClickHandler),this.reviewSortDocClickHandler=function(t){e.contains(t.target)||(v(m=r),h())},document.addEventListener("click",this.reviewSortDocClickHandler)),f&&f.addEventListener("click",function(){o>0&&(t.trackPaginationInteraction("Previous reviews page","previous"),t.navigateReview(r,o-1,e))}),p&&p.addEventListener("click",function(){o<i-1&&(t.trackPaginationInteraction("Next reviews page","next"),t.navigateReview(r,o+1,e))})}}}},{key:"navigateReview",value:function(e,t,n){var o=this,r=n.querySelector("[data-review-page]");r&&(r.style.opacity="0.5",r.style.pointerEvents="none");var i=new URL(window.location.href);e?i.searchParams.set("review_sort_by",e):i.searchParams.delete("review_sort_by"),i.searchParams.set("review_page_num",String(t)),i.searchParams.set("_t",String(Date.now())),i.hash="",fetch(i.toString(),{headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}}).then(function(e){return e.text()}).then(function(e){var t=(new DOMParser).parseFromString(e,"text/html").querySelector("#reviews-section"),n=document.querySelector("#reviews-section");if(t&&n){n.innerHTML=t.innerHTML,delete n.dataset.reviewBound,o.bindReviewControls(n);var r=n.querySelector("[data-review-list]");r&&(r.scrollTop=0);var i=n.querySelector('[role="region"][aria-labelledby]');i&&(i.setAttribute("tabindex","-1"),i.focus())}}).catch(function(){var n=new URL(window.location.href);e?n.searchParams.set("review_sort_by",e):n.searchParams.delete("review_sort_by"),n.searchParams.set("review_page_num",String(t)),window.location.href=n.toString()})}},{key:"initializeFacilityProviderPagination",value:function(){var e=this,t=this.root.querySelector("[data-facility-provider-list]");if(t){var n=Array.from(t.querySelectorAll("[data-facility-provider-item]"));if(!(n.length<=4)){var o=this.root.querySelector("[data-facility-provider-pagination]");if(o){var r=o.querySelector("[data-facility-provider-prev]"),i=o.querySelector("[data-facility-provider-next]"),a=o.querySelector("[data-facility-provider-status]");if(r&&i&&a){var l=1,c=Math.ceil(n.length/4),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Math.max(1,Math.min(e,c)),s=4*(o-1),u=s+4;if(l=o,n.forEach(function(e,t){e.hidden=t<s||t>=u}),a.textContent="Page ".concat(l," of ").concat(c),r.disabled=1===l,i.disabled=l===c,t){var d=n.find(function(e){return!e.hidden}),f=null==d?void 0:d.querySelector("h3.o5-ups-detail-ssr__facility-provider-name");if(f){var p=f.querySelector("a");p?p.focus():(f.setAttribute("tabindex","-1"),f.focus())}}};r.addEventListener("click",function(){e.trackPaginationInteraction("Previous facility providers page","previous"),s(l-1,!0)}),i.addEventListener("click",function(){e.trackPaginationInteraction("Next facility providers page","next"),s(l+1,!0)}),s(1)}}}}}},{key:"initializeMscFacilitiesMobileToggle",value:function(){var e=this.root.querySelector("[data-msc-facilities-grid]"),t=this.root.querySelector("[data-msc-facilities-toggle]");if(e&&t){var n=Array.from(e.querySelectorAll("[data-msc-facility-item]"));if(n.length<=4)t.style.display="none";else{var o=t.querySelector("[data-msc-facilities-toggle-text]"),r=Sl,i=window.matchMedia(r),a=4,l=!0,
6c=function(){if(i.matches){n.forEach(function(e,t){e.hidden=!1,e.style.display=t<a?"":"none"});var e=a>=n.length,r=a<=4;if(t.setAttribute("aria-expanded",String(e)),o)if(l||r)if(e)o.textContent="Show less",l=!1;else{var c=n.length-a;o.textContent="View more centers (".concat(c,")")}else o.textContent="Show less"}else n.forEach(function(e){e.style.display=""})};t.addEventListener("click",function(){ul({interactionType:"MSC facilities toggle",target:"cta"}),l?(a=Math.min(a+4,n.length),c()):(a=4,l=!0,c(),e.scrollIntoView({behavior:"smooth",block:"start"}))}),i.addEventListener("change",function(){c()}),c()}}}},{key:"initializeMscFacilityPagination",value:function(){var e=this,t=this.root.querySelector("[data-msc-facilities-grid]");if(t){var n=Array.from(t.querySelectorAll("[data-msc-facility-item]"));if(!(n.length<=8)){var o=this.root.querySelector("[data-msc-facility-pagination]");if(o){var r=o.querySelector("[data-msc-facility-prev]"),i=o.querySelector("[data-msc-facility-next]"),a=o.querySelector("[data-msc-facility-status]");if(r&&i&&a){var l=window.matchMedia("(min-width: ".concat(540,"px)")),c=1,s=Math.ceil(n.length/8),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(l.matches){var o=Math.max(1,Math.min(e,s)),u=8*(o-1),d=u+8;
6if(c=o,n.forEach(function(e,t){e.style.display="",e.hidden=t<u||t>=d}),a.textContent="Page ".concat(c," of ").concat(s),r.disabled=1===c,i.disabled=c===s,t){var f=n.find(function(e){return!e.hidden}),p=null==f?void 0:f.querySelector("h3.o5-ups-detail-ssr__msc-facility-name");if(p){var m=p.querySelector("a");m?m.focus():(p.setAttribute("tabindex","-1"),p.focus())}}}else n.forEach(function(e){e.hidden=!1})},d=function(){u(c)};"function"==typeof l.addEventListener?l.addEventListener("change",d):"function"==typeof l.addListener&&l.addListener(d),r.addEventListener("click",function(){e.trackPaginationInteraction("Previous centers page","previous"),u(c-1,!0)}),i.addEventListener("click",function(){e.trackPaginationInteraction("Next centers page","next"),u(c+1,!0)}),l.matches&&u(1)}}}}}},{key:"initializeMscNotification",value:function(){var e=this.root.querySelector("[data-msc-notification]");if(e){var t=e.querySelector("[data-msc-notification-close]");t&&t.addEventListener("click",function(){ul({interactionType:"MSC notification close",target:"cta"}),e.style.display="none"})}}},{key:"initializeHeroVideoPlayer",value:function(){var e=this,t=Array.from(this.root.querySelectorAll("[data-ups-hero-video-data]"));0!==t.length&&(t.forEach(function(e){var t=e.dataset.videoId,n=e.dataset.videoUrl;t&&n&&(0,Ue.E)({videolink:"",videoId:t,videoURL:n,imgURL:e.dataset.imgUrl,videoTitle:e.dataset.videoTitle,videoAltText:e.dataset.videoAltText,videoClosedCaption:e.dataset.videoClosedCaption||""})}),Array.from(this.root.querySelectorAll(".o5-ups-detail-ssr__video-modal")).forEach(function(t){if("true"!==t.dataset.videoModalBound){t.dataset.videoModalBound="true",t.setAttribute("aria-hidden","true"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1");var n=null,o=null,r=function(){!function(){var e=t.dataset.id;if(e){var n=(0,Ue.l)("vid-".concat(e));n&&"function"==typeof n.pause&&n.pause()}}();var e=t.querySelector(".video__transcript");e&&e.classList.remove("video__transcript--show");var o=t.querySelector(".vjs-button.vjs-button-transcript");o&&o.setAttribute("aria-expanded","false"),t.classList.remove("modal--active"),t.setAttribute("aria-hidden","true"),document.documentElement.style.overflow="auto",n&&document.contains(n)&&n.focus()},i=function(){var e=["a[href]","area[href]","input:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed",'[tabindex="0"]',"[contenteditable]"].join(", "),n=Array.from(t.querySelectorAll(e)),r=t.querySelector(".vjs-controls-enabled");if(null==r||r.classList.remove("vjs-controls-disabled"),t.classList.add("modal--active"),t.setAttribute("aria-hidden","false"),document.documentElement.style.overflow="hidden",n.length>0){var i=n.length>1?n[1]:n[0],a=n[n.length-1];o&&t.removeEventListener("keydown",o),o=function(e){e.shiftKey&&9===e.keyCode&&document.activeElement===i&&(a.focus(),e.preventDefault()),!0!==e.shiftKey&&9===e.keyCode&&document.activeElement===a&&t.focus()},t.addEventListener("keydown",o),a.focus()}var l=t.dataset.id;if(l){var c,s=(0,Ue.l)("vid-".concat(l));s&&"function"==typeof s.play&&(null===(c=s.play())||void 0===c||c.catch(function(){}))}},a=t.id;Array.from(e.root.querySelectorAll('[data-modal-open="'.concat(a,'"]'))).forEach(function(e){"true"!==e.dataset.videoTriggerBound&&(e.dataset.videoTriggerBound="true",e.addEventListener("click",function(t){t.preventDefault(),n=e,i()}),e.addEventListener("keydown",function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),n=e,i())}))});var l=t.querySelector("[data-modal-close]");null==l||l.addEventListener("click",function(e){e.preventDefault(),r()}),null==l||l.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Escape"!==e.key||(e.preventDefault(),r())}),t.addEventListener("click",function(e){e.target===t&&r()}),t.addEventListener("keydown",function(e){"Escape"===e.key&&(e.preventDefault(),r())}),document.addEventListener("keydown",function(e){"Escape"===e.key&&t.classList.contains("modal--active")&&(e.preventDefault(),r())},!0)}}))}},{key:"initializeGoogleMapsModal",value:function(){var e=this;if(this.googleMapsModal=document.querySelector("[data-google-maps-modal]"),this.googleMapsModal)if(this.googleMapsBackdrop=this.googleMapsModal.querySelector("[data-google-maps-backdrop]"),this.googleMapsCloseButton=this.googleMapsModal.querySelector("[data-google-maps-close]"),this.googleMapsCancelButton=this.googleMapsModal.querySelector("[data-google-maps-cancel]"),this.googleMapsConfirmButton=this.googleMapsModal.querySelector("[data-google-maps-confirm]"),this.googleMapsBackdrop&&this.googleMapsCloseButton&&this.googleMapsCancelButton&&this.googleMapsConfirmButton){var t=function(){ul({interactionType:"Google Maps modal cancel",target:"cta"}),e.hideGoogleMapsModal()},n=function(t,n){var o;if(!t.defaultPrevented&&!(t.metaKey||t.ctrlKey||t.shiftKey||"click"===n&&0!==t.button||"auxclick"===n&&1!==t.button)){var r=t.target;if(r instanceof Element){var i=r.closest('a[href*="google.com/maps"]');if(i&&e.root.contains(i)&&(null===(o=e.googleMapsModal)||void 0===o||!o.contains(i))){var a;try{a=new URL(i.href,window.location.origin)}catch(e){return}var l="google.com"===a.hostname||"www.google.com"===a.hostname||a.hostname.endsWith(".google.com"),c=a.pathname.startsWith("/maps");l&&c&&(t.preventDefault(),e.openLocationUrl(a.toString()))}}}};this.root.addEventListener("click",function(e){n(e,"click")}),this.root.addEventListener("auxclick",function(e){n(e,"auxclick")}),this.googleMapsConfirmButton.addEventListener("click",function(){ul({interactionType:"Google Maps modal confirm",target:"cta"});var t=e.googleMapsPendingUrl;e.hideGoogleMapsModal(),t&&e.openLocationUrlDirect(t)}),this.googleMapsCancelButton.addEventListener("click",t),this.googleMapsCloseButton.addEventListener("click",t),this.googleMapsBackdrop.addEventListener("click",t),this.googleMapsModal.addEventListener("keydown",function(n){var o;if("Escape"===n.key)return n.preventDefault(),void t();if("Tab"===n.key){var r,i=e.getFocusableElements(e.googleMapsModal);
6if(0===i.length)return n.preventDefault(),void(null===(r=e.googleMapsCloseButton)||void 0===r||r.focus());var a=i[0],l=i[i.length-1],c=document.activeElement,s=!!c&&(null===(o=e.googleMapsModal)||void 0===o?void 0:o.contains(c));n.shiftKey?s&&c!==a||(n.preventDefault(),l.focus()):s&&c!==l||(n.preventDefault(),a.focus())}})}else this.googleMapsModal=null}},{key:"initializeSiteBrand",value:function(){var e=window.location.hostname;(e.includes("promed")||e.includes("prohealthmd"))&&this.root.classList.add("o5-ups-detail-ssr--promed")}},{key:"initializeImageErrorHandling",value:function(){Array.from(this.root.querySelectorAll("img[data-ssr-img]")).forEach(function(e){e.addEventListener("error",function(){this.style.display="none",this.parentElement&&(this.parentElement.style.display="none")})})}}],o=[{key:"isWebGlAvailable",value:function(){if(null!==e.webGlSupported)return e.webGlSupported;var t=!1;try{var n=document.createElement("canvas"),o=n.getContext("webgl")||n.getContext("experimental-webgl");t=!(!window.WebGLRenderingContext||!o||"function"!=typeof o.isContextLost||o.isContextLost())}catch(e){t=!1}return e.webGlSupported=t,t}}
6],n&&yl(t.prototype,n),o&&yl(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}();bl(_l,"instanceCounter",0),bl(_l,"tooltipCounter",0),bl(_l,"analyticsInitialized",!1),bl(_l,"myChartSdkScriptInjected",!1),bl(_l,"webGlSupported",null),"function"!=typeof window.initMap&&(window.initMap=function(){});var kl=new WeakSet,El=function(){Array.from(document.querySelectorAll(".o5-ups-detail-ssr")).forEach(function(e){kl.has(e)||(kl.add(e),new _l(e))})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",El):El();var Al=null,Cl=new MutationObserver(function(){Al&&clearTimeout(Al),Al=setTimeout(El,200)});document.body&&Cl.observe(document.body,{childList:!0,subtree:!0});var Tl=n(90694);function Ol(e){return Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ol(e)}function Ll(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return ql(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,f.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(ql(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,ql(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,ql(d,"constructor",s),ql(s,"constructor",c),c.displayName="GeneratorFunction",ql(s,r,"GeneratorFunction"),ql(d),ql(d,r,"Generator"),ql(d,o,function(){return this}),ql(d,"toString",function(){return"[object Generator]"}),(Ll=function(){return{w:i,m:f}})()}function ql(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ql=function(e,t,n,o){function i(t,n){ql(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ql(e,t,n,o)}function xl(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Pl(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){xl(i,o,r,a,l,"next",e)}function l(e){xl(i,o,r,a,l,"throw",e)}a(void 0)})}}function jl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fl(o.key),o)}}function Nl(e,t,n){return t=Il(t),function(e,t){if(t&&("object"==Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ml()?Reflect.construct(t,n||[],Il(e).constructor):t.apply(e,n))}function Ml(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ml=function(){return!!e})()}function Il(e){return Il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Il(e)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dl(e,t)}function Bl(e,t,n){return(t=Fl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fl(e){var t=function(e,t){if("object"!=Ol(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ol(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ol(t)?t:t+""}var Rl=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Bl(n=Nl(this,t,[e]),"content",null),Bl(n,"modal",null),Bl(n,"modalTrigger",null),Bl(n,"previousFocus",null),Bl(n,"pendingModalLocation",null),Bl(n,"eventsBound",!1),Bl(n,"modalAutocompleteBound",!1),Bl(n,"modalAutocompleteAriaBound",!1),Bl(n,"modalAnchorRect",null),Bl(n,"modalRootRect",null),Bl(n,"autocompleteObserver",null),Bl(n,"autocompleteSyncTimer",null),Bl(n,"placementObserver",null),Bl(n,"stateWatchTimer",null),Bl(n,"lastStateSignature",null),Bl(n,"inertedBackgroun
6dElements",[]),Bl(n,"backgroundAriaHiddenStates",new Map),Bl(n,"geolocationPermissionDenied",!1),Bl(n,"geolocationPermissionStatus",null),Bl(n,"autoLocationLookupInFlight",!1),Bl(n,"instanceId","ups-serp-care-options-".concat(t.nextInstanceId++)),Bl(n,"handleLocationSelectionClick",function(e){var t=e.target,o=null==t?void 0:t.closest('[data-action="enter-location"]');o&&n.element.contains(o)&&(e.preventDefault(),n.showLocationModal(o))}),Bl(n,"handleModalKeydown",function(e){if("Escape"===e.key)return e.preventDefault(),void n.hideLocationModal();"Tab"===e.key&&n.trapModalFocus(e)}),Bl(n,"handleViewportChange",function(){var e;null!==(e=n.modal)&&void 0!==e&&e.hasAttribute("hidden")||!n.modalTrigger||(n.modalAnchorRect=n.toRectSnapshot(n.modalTrigger.getBoundingClientRect()),n.modalRootRect=n.toRectSnapshot(n.element.getBoundingClientRect()),n.positionLocationModal())}),Bl(n,"handleModalInput",function(e){var t,o,r=null===(t=e.target)||void 0===t?void 0:t.closest("[data-modal-input]");r&&((null===(o=n.pendingModalLocation)||void 0===o?void 0:o.locationValue)!==r.value.trim()&&(n.pendingModalLocation=null),n.hideModalError(),n.updateApplyButtonState(),n.updateClearButtonState())}),Bl(n,"handleModalClick",function(e){var t=e.target;if(t){if(t.matches("[data-modal-backdrop]")||t.closest("[data-modal-close]"))return e.preventDefault(),void n.hideLocationModal();var o=t.closest("[data-modal-use-current]");if(o)return e.preventDefault(),void n.useCurrentLocation(o);var r=t.closest("[data-modal-apply]");if(r){if(e.preventDefault(),"true"===r.getAttribute("aria-disabled"))return;n.applyManualLocation()}else{var i=t.closest("[data-modal-clear]");if(i){if(e.preventDefault(),"true"===i.getAttribute("aria-disabled"))return;n.clearManualLocationInput()}else t.closest(".autocomplete-item")&&window.setTimeout(function(){n.hideModalError(),n.updateApplyButtonState(),n.updateClearButtonState()},0)}}}),n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dl(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){var e=this.element;this.bindEvents(),this.ensureModal(),this.ensureContent(e),this.observePromptPlacement(e),this.setupGeolocationPermissionMonitor(),this.render()}},{key:"setupGeolocationPermissionMonitor",value:function(){var e=this,t=navigator.permissions;null!=t&&t.query&&t.query({name:"geolocation"}).then(function(t){e.geolocationPermissionStatus=t,e.applyGeolocationPermissionState(t.state),t.addEventListener("change",function(){return e.applyGeolocationPermissionState(t.state)})}).catch(function(){})}},{key:"applyGeolocationPermissionState",value:function(e){this.geolocationPermissionDenied="denied"===e,this.refreshFindMyLocationVisibility(),"granted"===e&&this.autoApplyCurrentLocation()}},{key:"autoApplyCurrentLocation",value:(c=Pl(Ll().m(function e(){var t=this;return Ll().w(function(e){for(;;)switch(e.n){case 0:if(navigator.geolocation&&!this.autoLocationLookupInFlight&&!this.hasSavedLocation()){e.n=1;break}return e.a(2);case 1:this.autoLocationLookupInFlight=!0,navigator.geolocation.getCurrentPosition(function(){var e=Pl(Ll().m(function e(n){var o;return Ll().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,t.resolveLocationFromPosition(n);case 1:if(o=e.v){e.n=2;break}return e.a(2);case 2:t.persistLocation(o),t.isModalOpen()?t.hideLocationModal():t.render();case 3:return e.p=3,t.autoLocationLookupInFlight=!1,e.f(3);case 4:return e.a(2)}},e,null,[[0,,3,4]])}));return function(t){return e.apply(this,arguments)}}(),function(){t.autoLocationLookupInFlight=!1},{enableHighAccuracy:!1,maximumAge:6e5,timeout:1e4});case 2:return e.a(2)}},e,this)})),function(){return c.apply(this,arguments)})},{key:"resolveLocationFromPosition",value:(l=Pl(Ll().m(function e(t){var n;return Ll().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,dn.A.ensureLoaded();case 1:if(n=dn.A.getNearestLocation(t.coords.latitude,t.coords.longitude)){e.n=2;break}return e.a(2,null);case 2:return e.a(2,{locationValue:"".concat(n.city,", ").concat(n.stateId," ").concat(n.zip),stateId:n.stateId,city:n.city,lat:t.coords.latitude,lng:t.coords.longitude,zip:n.zip})}},e)})),function(e){return l.apply(this,arguments)})},{key:"observePromptPlacement",value:function(e){var t,n=document.getElementById("ues-search-bar-component");if(n){var o=function(){var t=n.querySelector('#search-input, #ues-serp-search-input, input[placeholder="Search"]'),o=n.querySelector(".ues-serp__location-heading");if(t&&o){for(var r=new Set,i=o;i;i=i.parentElement)r.add(i);for(var a=t;a&&!r.has(a);)a=a.parentElement;if(a){for(var l=t;l.parentElement!==a;){if(!l.parentElement)return;l=l.parentElement}var c=a.getBoundingClientRect(),s=o.getBoundingClientRect(),u=Math.max(0,s.left-c.left);e.style.setProperty("--ups-serp-inline-gutter","".concat(u,"px")),e.classList.add("ups-serp-v1__care-options--embedded"),e.parentElement===a&&e.nextElementSibling===l||a.insertBefore(e,l)}}};o(),null===(t=this.placementObserver)||void 0===t||t.disconnect(),this.placementObserver=new MutationObserver(o),this.placementObserver.observe(n,{childList:!0,subtree:!0})}}},{key:"bindEvents",value:function(){var e,n,o=this;if(!this.eventsBound){if(this.eventsBound=!0,window.addEventListener("location-update",function(){return o.render()}),window.addEventListener("storage",function(e){e.key&&t.LOCATION_
6SELECTION_KEYS.includes(e.key)&&o.render()}),this.startStateWatch(),window.addEventListener("popstate",function(){return o.render()}),!history.__serpUrlPatchApplied){var r=history.pushState.bind(history);history.pushState=function(){r.apply(void 0,arguments),window.dispatchEvent(new Event("locationcarechange"))};var i=history.replaceState.bind(history);history.replaceState=function(){i.apply(void 0,arguments),window.dispatchEvent(new Event("locationcarechange"))},history.__serpUrlPatchApplied=!0}window.addEventListener("locationcarechange",function(){return o.render()}),document.addEventListener("click",this.handleLocationSelectionClick),window.addEventListener("resize",this.handleViewportChange),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",this.handleViewportChange),null===(n=window.visualViewport)||void 0===n||n.addEventListener("scroll",this.handleViewportChange)}}},{key:"startStateWatch",value:function(){var e=this;null===this.stateWatchTimer&&(this.stateWatchTimer=window.setInterval(function(){e.getStateSignature()!==e.lastStateSignature&&e.render()},300))}},{key:"getStateSignature",value:function(){var e,n=t.LOCATION_SELECTION_KEYS.flatMap(function(e){return[(0,Tt.bi)(e,"")||"",(0,Tt.bi)(e,"","sessionStorage")||""]});return n.push((null===(e=(0,Tl.Iq)())||void 0===e?void 0:e.stateId)||""),n.push(new URLSearchParams(window.location.search).get("query")||""),n.join("|")}},{key:"ensureContent",value:function(e){var t;if(null!==(t=this.content)&&void 0!==t&&t.isConnected)return this.content;var n=e.querySelector(".ups-serp-v1__care-options-content");return n?(this.content=n,n):(this.content=document.createElement("div"),this.content.className="ups-serp-v1__care-options-content",e.appendChild(this.content),this.content)}},{key:"hasSavedLocation",value:function(){if(this.hasLocationSelectionInStorage(localStorage)||this.hasLocationSelectionInStorage(sessionStorage))return!0;var e=(0,Tl.Iq)();return!(!e||!e.stateId)||!(!(0,Tt.bi)("locationValue")&&!(0,Tt.bi)("locationValue",null,"sessionStorage"))}},{key:"hasLocationSelectionInStorage",value:function(e){try{var t=e.getItem("UES_PROV_LOCATION_SELECTION");if(!t)return!1;var n=JSON.parse(t);return Boolean(n&&n.stateId)}catch(e){return!1}}},{key:"render",value:function(){var e=this.element,t=this.ensureContent(e);this.lastStateSignature=this.getStateSignature(),this.isModalOpen()||(t.textContent="",new URLSearchParams(window.location.search).get("query")||this.hasSavedLocation()?e.setAttribute("hidden",""):(t.appendChild(this.buildPrompt()),e.removeAttribute("hidden")))}},{key:"buildPrompt",value:function(){var e,t,n,o=this.element,r=document.createElement("div");r.className="dmp-container ups-serp-v1__location-prompt";var i="".concat(this.instanceId,"-location-prompt-title"),a=document.createElement("div");a.className="ups-serp-v1__location-prompt-row";var l=document.createElement("span");l.className="ups-serp-v1__location-prompt-icon",l.setAttribute("aria-hidden","true"),l.innerHTML='\n            <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">\n                <path d="M35.7656 26.6022C37.2913 24.3404 38.1816 21.6152 38.1816 18.6818C38.1817 10.8494 31.8324 4.5 23.9999 4.5C16.1674 4.5 9.81812 10.8494 9.81812 18.6818C9.81812 21.6153 10.709 24.3405 12.2347 26.6022L23.9999 43.5L35.7613 26.6083L35.7656 26.6022Z" fill="#3D3C38"/>\n                <path d="M32.2727 18.6703C32.2727 23.2391 28.5688 26.943 24 26.943C19.4311 26.943 15.7273 23.2391 15.7273 18.6703C15.7273 14.1013 19.4312 10.3975 24 10.3975C28.5688 10.3975 32.2727 14.1013 32.2727 18.6703Z" fill="#FF612B"/>\n            </svg>\n        ',a.appendChild(l);var c=document.createElement("p");c.id=i,c.className="ups-serp-v1__location-prompt-title",c.textContent=(null===(e=o.dataset.promptTitle)||void 0===e?void 0:e.trim())||"Your location is required to start your search",a.appendChild(c),r.appendChild(a);var s=document.createElement("div");s.className="ups-serp-v1__location-prompt-actions";var u=document.createElement("button");u.type="button",u.className="dmp-btn dmp-btn--md dmp-btn--1 ups-serp-v1__location-prompt-enter",u.dataset.action="enter-location",u.setAttribute("aria-describedby",i),u.textContent=(null===(t=o.dataset.promptEnterLocationLabel)||void 0===t?void 0:t.trim())||"Set location",s.appendChild(u),r.appendChild(s);var d=null===(n=o.dataset.promptFooter)||void 0===n?void 0:n.trim();if(d){var f=document.createElement("p");f.className="ups-serp-v1__location-prompt-footer",f.textContent=d,r.appendChild(f)}return r}},{key:"ensureModal",value:function(){var e;if(null!==(e=this.modal)&&void 0!==e&&e.isConnected)return this.modal;var n=document.createElement("div"),o="".concat(this.instanceId,"-location-modal-title"),r="".concat(this.instanceId,"-location-modal-input"),i="".concat(this.instanceId,"-location-modal-error");return n.className="ups-serp-v1__location-modal",n.setAttribute("hidden",""),n.setAttribute("data-modal-container",""),n.innerHTML='\n            <div class="ups-serp-v1__location-modal-backdrop" data-modal-backdrop></div>\n            <div class="ups-serp-v1__location-modal-dialog" role="dialog" aria-modal="true" aria-labelledby="'.concat(o,'">\n                <div class="ups-serp-v1__location-modal-header">\n                    <h2 id="').concat(o,'" class="ups-serp-v1__location-modal-title">Location</h2>\n                    <button type="button" class="ups-serp-v1__location-modal-close" data-modal-close aria-label="Close">\n                        <svg class="ups-serp-v1__location-modal-close-icon" focusable="false" aria-hidden="true" role="presentation" viewB
6ox="0 0 24 24" data-testid="CloseIcon"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>\n                    </button>\n                </div>\n                <div class="ups-serp-v1__location-modal-content">\n                    <button type="button" class="ups-serp-v1__location-modal-find" data-modal-use-current>\n                        <span class="ups-serp-v1__location-modal-find-icon" aria-hidden="true">\n                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">\n                                <path d="M12 8C9.79 8 8 9.79 8 12C8 14.21 9.79 16 12 16C14.21 16 16 14.21 16 12C16 9.79 14.21 8 12 8ZM20.94 11C20.48 6.83 17.17 3.52 13 3.06V2C13 1.45 12.55 1 12 1C11.45 1 11 1.45 11 2V3.06C6.83 3.52 3.52 6.83 3.06 11H2C1.45 11 1 11.45 1 12C1 12.55 1.45 13 2 13H3.06C3.52 17.17 6.83 20.48 11 20.94V22C11 22.55 11.45 23 12 23C12.55 23 13 22.55 13 22V20.94C17.17 20.48 20.48 17.17 20.94 13H22C22.55 13 23 12.55 23 12C23 11.45 22.55 11 22 11H20.94ZM12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12C19 15.87 15.87 19 12 19Z" fill="rgb(9, 95, 135)"/>\n                            </svg>\n                        </span>\n                        <span class="ups-serp-v1__location-modal-find-text">Find my location</span>\n                        <span class="ups-serp-v1__location-modal-find-arrow" aria-hidden="true">&#8250;</span>\n                    </button>\n                    <p id="').concat(i,'" class="ups-serp-v1__location-modal-error" data-modal-error role="alert" hidden>\n                        ').concat(t.LOCATION_INVALID_ERROR,'\n                    </p>\n                    <div class="ups-serp-v1__location-modal-input-wrap">\n                        <label for="').concat(r,'" class="ups-serp-v1__location-modal-label">Enter a city or 5-digit zip code</label>\n                        <input id="').concat(r,'" type="text" class="ups-serp-v1__location-modal-input" data-modal-input\n                            autocomplete="off" role="combobox" aria-expanded="false" aria-autocomplete="list" aria-required="true" />\n                        <button type="button" class="ups-serp-v1__location-modal-input-clear" aria-label="Clear" data-modal-clear disabled aria-hidden="true">\n                            <svg class="ups-serp-v1__location-modal-close-icon" focusable="false" aria-hidden="true" role="presentation" viewBox="0 0 24 24" data-testid="CloseIcon"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>\n                        </button>\n                    </div>\n                </div>\n                <div class="ups-serp-v1__location-modal-actions">\n                    <button type="button" class="ups-serp-v1__location-modal-apply" data-modal-apply aria-disabled="true">Apply</button>\n                    <button type="button" class="ups-serp-v1__location-modal-clear-text" data-modal-clear aria-disabled="true">Clear</button>\n                </div>\n            </div>\n        '),n.addEventListener("click",this.handleModalClick),n.addEventListener("keydown",this.handleModalKeydown),n.addEventListener("input",this.handleModalInput),document.body.appendChild(n),this.modal=n,n}},{key:"showLocationModal",value:function(e){var t,n=this.ensureModal(),o=n.querySelector("[data-modal-input]");this.modalTrigger=e,this.previousFocus=e,this.modalAnchorRect=this.toRectSnapshot(e.getBoundingClientRect()),this.modalRootRect=this.toRectSnapshot(this.element.getBoundingClientRect()),this.hideModalError(),o&&(o.value=(0,Tt.bi)("locationValue")||(null===(t=(0,Tl.Iq)())||void 0===t?void 0:t.locationValue)||"",this.bindModalAutocomplete(o)),this.pendingModalLocation=null,this.positionLocationModal(),n.removeAttribute("hidden"),this.positionLocationModal(),this.setBackgroundInert(!0),this.lockBackgroundScroll(),this.updateApplyButtonState(),this.updateClearButtonState(),this.refreshFindMyLocationVisibility();var r=n.querySelector("[data-modal-use-current]");
6requestAnimationFrame(function(){var e=r&&!r.hidden?r:o;null==e||e.focus()})}},{key:"refreshFindMyLocationVisibility",value:function(){var e,t=null===(e=this.modal)||void 0===e?void 0:e.querySelector("[data-modal-use-current]");t&&(t.toggleAttribute("hidden",this.geolocationPermissionDenied),this.setOrPrefixVisible(!this.geolocationPermissionDenied))}},{key:"setOrPrefixVisible",value:function(e){var t,n=null===(t=this.modal)||void 0===t?void 0:t.querySelector("[data-modal-or-prefix]");null==n||n.toggleAttribute("hidden",!e)}},{key:"hideLocationModal",value:function(){if(this.modal){this.modal.setAttribute("hidden",""),this.setBackgroundInert(!1),this.pendingModalLocation=null,this.disconnectAutocompleteObserver(),null!==this.autocompleteSyncTimer&&(window.clearTimeout(this.autocompleteSyncTimer),this.autocompleteSyncTimer=null),this.unlockBackgroundScroll(),this.hideModalError(),this.modalTrigger=null,this.modalAnchorRect=null,this.modalRootRect=null;var e=this.previousFocus;this.previousFocus=null,this.render();var t=e&&document.body.contains(e)?e:this.element.querySelector('[data-action="enter-location"]');null==t||t.focus()}}},{key:"isModalOpen",value:function(){var e;return Boolean(null===(e=this.modal)||void 0===e?void 0:e.isConnected)&&!this.modal.hasAttribute("hidden")}},{key:"getFocusableModalElements",value:function(){var e,t=null===(e=this.modal)||void 0===e?void 0:e.querySelector(".ups-serp-v1__location-modal-dialog");return t?Array.from(t.querySelectorAll('button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')):[]}},{key:"trapModalFocus",value:function(e){var t=this.getFocusableModalElements();if(t.length){var n=t[0],o=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),o.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),n.focus())}else e.preventDefault()}},{key:"positionLocationModal",value:function(){var e;if(this.modal){var t=this.modalAnchorRect,n=this.modalRootRect;if(t&&n){var o=window.innerWidth,r=Math.round((null===(e=window.visualViewport)||void 0===e?void 0:e.height)||window.innerHeight),i=o<768,a=this.modal.querySelector(".ups-serp-v1__location-modal-dialog"),l=(null==a?void 0:a.getBoundingClientRect().height)||210,c=Math.min(i?Math.min(n.width-20,376):318,o-24),s=t.top,u=r-t.bottom,d=s>=l+8||s>=u,f=d?t.top-l-8:t.bottom+8,p=i?n.left+(n.width-c)/2:t.left,m=Math.max(12,Math.min(o-c-12,p)),h=Math.max(16,Math.min(r-l-16,f)),v=t.top-8,y=t.bottom+8;d&&h+l>v&&(h=Math.max(16,v-l)),!d&&h<y&&(h=Math.min(r-l-16,y)),this.modal.style.setProperty("--ups-location-modal-top","".concat(h,"px")),this.modal.style.setProperty("--ups-location-modal-left","".concat(m,"px")),this.modal.style.setProperty("--ups-location-modal-width","".concat(c,"px"))}}}},{key:"toRectSnapshot",value:function(e){return{top:e.top,left:e.left,width:e.width,height:e.height,right:e.right,bottom:e.bottom}}},{key:"lockBackgroundScroll",value:function(){document.documentElement.classList.add(t.BODY_SCROLL_LOCK_CLASS),document.body.classList.add(t.BODY_SCROLL_LOCK_CLASS)}},{key:"unlockBackgroundScroll",value:function(){document.documentElement.classList.remove(t.BODY_SCROLL_LOCK_CLASS),document.body.classList.remove(t.BODY_SCROLL_LOCK_CLASS)}},{key:"setBackgroundInert",value:function(e){var t=this;if(e)return this.inertedBackgroundElements=Array.from(document.body.children).filter(function(e){return e!==t.modal&&e instanceof HTMLElement}),void this.inertedBackgroundElements.forEach(function(e){t.backgroundAriaHiddenStates.set(e,e.getAttribute("aria-hidden")),e.inert=!0,e.setAttribute("aria-hidden","true")});this.inertedBackgroundElements.forEach(function(e){e.inert=!1;var n=t.backgroundAriaHiddenStates.get(e);null==n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}),this.inertedBackgroundElements=[],this.backgroundAriaHiddenStates.clear()}},{key:"useCurrentLocation",value:(a=Pl(Ll().m(function e(t){var n,o,r=this;return Ll().w(function(e){for(;;)switch(e.n){case 0:if(navigator.geolocation&&"true"!==t.getAttribute("aria-busy")){e.n=1;break}return e.a(2);case 1:o=null===(n=this.modal)||void 0===n?void 0:n.querySelector("[data-modal-input]"),t.setAttribute("aria-busy","true"),t.setAttribute("aria-disabled","true"),navigator.geolocation.getCurrentPosition(function(){var e=Pl(Ll().m(function e(n){var i;return Ll().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,r.resolveLocationFromPosition(n);case 1:if(i=e.v){e.n=2;break}return r.showModalError("We could not determine your location. Try entering a city or zip code."),e.a(2);case 2:r.pendingModalLocation=i,o&&(o.value=i.locationValue),r.hideModalError(),r.persistLocation(i),r.hideLocationModal();case 3:return e.p=3,t.removeAttribute("aria-busy"),t.removeAttribute("aria-disabled"),e.f(3);case 4:return e.a(2)}},e,null,[[0,,3,4]])}));return function(t){return e.apply(this,arguments)}}(),function(e){r.showModalError("Please allow location in your browser settings."),e.code===e.PE
6RMISSION_DENIED&&(r.geolocationPermissionDenied=!0,t.setAttribute("hidden",""),r.setOrPrefixVisible(!1)),t.removeAttribute("aria-busy"),t.removeAttribute("aria-disabled")},{enableHighAccuracy:!1,maximumAge:6e5,timeout:1e4});case 2:return e.a(2)}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"getPendingLocationForValue",value:function(e){var t;return(null===(t=this.pendingModalLocation)||void 0===t?void 0:t.locationValue)===e?this.pendingModalLocation:null}},{key:"bindModalAutocomplete",value:function(e){var t=this;this.modalAutocompleteBound?this.observeAutocompleteState(e):dn.A.ensureLoaded().then(function(){un.A.autocomplete(e,dn.A.getFormattedLocation()),t.modalAutocompleteBound=!0,t.observeAutocompleteState(e)})}},{key:"observeAutocompleteState",value:function(e){var t=this;if(!this.modalAutocompleteAriaBound){var n=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t.scheduleAutocompleteAriaSync(e,n)};e.addEventListener("input",function(){return n(60)}),e.addEventListener("focus",function(){return n(60)}),e.addEventListener("blur",function(){return n(200)}),e.addEventListener("keydown",function(e){["ArrowDown","ArrowUp","Home","End","Escape","Enter"].includes(e.key)&&n()}),this.modalAutocompleteAriaBound=!0}this.disconnectAutocompleteObserver(),e.parentElement&&(this.autocompleteObserver=new MutationObserver(function(){return t.scheduleAutocompleteAriaSync(e,60)}),this.autocompleteObserver.observe(e.parentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["hidden","style","class"]})),this.scheduleAutocompleteAriaSync(e,120)}},{key:"scheduleAutocompleteAriaSync",value:function(e,t){var n=this;null!==this.autocompleteSyncTimer&&window.clearTimeout(this.autocompleteSyncTimer),this.autocompleteSyncTimer=window.setTimeout(function(){n.syncAutocompleteAriaState(e),n.autocompleteSyncTimer=null},t)}},{key:"syncAutocompleteAriaState",value:function(e){var t="".concat(e.id,"autocomplete-list"),n=document.getElementById(t);if(!n)return e.setAttribute("aria-expanded","false"),e.removeAttribute("aria-controls"),void e.removeAttribute("aria-activedescendant");e.setAttribute("aria-controls",t),n.setAttribute("role","listbox"),n.setAttribute("aria-label","Location suggestions");var o=Array.from(n.querySelectorAll('.autocomplete-item, [role="option"]'));o.forEach(function(e,n){e.id||(e.id="".concat(t,"-option-").concat(n+1)),e.setAttribute("role","option")});var r=o.find(function(e){return e.classList.contains("autocomplete-active")});o.forEach(function(e){return e.setAttribute("aria-selected",String(e===r))}),r?e.setAttribute("aria-activedescendant",r.id):e.removeAttribute("aria-activedescendant"),e.setAttribute("aria-expanded",String(n.children.length>0&&null!==n.offsetParent))}},{key:"disconnectAutocompleteObserver",value:function(){var e;null===(e=this.autocompleteObserver)||void 0===e||e.disconnect(),this.autocompleteObserver=null}},{key:"applyManualLocation",value:(i=Pl(Ll().m(function e(){var n,o,r,i;return Ll().w(function(e){for(;;)switch(e.n){case 0:if(o=null===(n=this.modal)||void 0===n?void 0:n.querySelector("[data-modal-input]"),r=(null==o?void 0:o.value.trim())||"",o&&r){e.n=1;break}return this.showModalError(t.LOCATION_INVALID_ERROR,!0),null==o||o.focus(),e.a(2);case 1:return e.n=2,dn.A.ensureLoaded();case 2:if(dn.A.validateLocation(r)){e.n=3;break}return this.showModalError(t.LOCATION_INVALID_ERROR,!0),o.focus(),e.a(2);case 3:if(i=dn.A.getAllLocations().find(function(e){return"".concat(e.city,", ").concat(e.stateId," ").concat(e.zip)===r})){e.n=4;break}return this.showModalError(t.LOCATION_INVALID_ERROR,!0),o.focus(),e.a(2);case 4:this.persistLocation(this.getPendingLocationForValue(r)||{locationValue:r,stateId:i.stateId,city:i.city,lat:i.lat,lng:i.lng,zip:i.zip}),this.hideLocationModal();case 5:return e.a(2)}},e,this)})),function(){return i.apply(this,arguments)})},{key:"persistLocation",value:function(e){(0,Tl.KR)(e),(0,fn.s0)(e),window.dispatchEvent(new CustomEvent("location-update",{detail:{locationValue:e.locationValue}}))}},{key:"clearManualLocationInput",value:function(){var e,t=null===(e=this.modal)||void 0===e?void 0:e.querySelector("[data-modal-input]");t&&(t.value="",t.focus()),this.pendingModalLocation=null,this.hideModalError(),this.updateApplyButtonState(),this.updateClearButtonState()}},{key:"showModalError",value:function(e){var t,n,o,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=null===(t=this.modal)||void 0===t?void 0:t.querySelector("[data-modal-error]"),a=null===(n=this.modal)||void 0===n?void 0:n.querySelector("[data-modal-input]"),l=null===(o=this.modal)||void 0===o?void 0:o.querySelector("[data-modal-use-current]");i&&(i.textContent=e,i.removeAttribute("hidden"),null==l||l.setAttribute("aria-describedby",i.id),r&&(null==a||a.setAttribute("aria-invalid","true"),null==a||a.setAttribute("aria-describedby",i.id)))}},{key:"hideModalError",value:function(){var e,t,n,o,r=null===(e=this.modal)||void 0===e?void 0:e.querySelector("[data-modal-error]");null===(t=this.modal)||void 0===t||null===(t=t.querySelector("[data-modal-input]"))||void 0===t||t.removeAttribute("aria-invalid"),null===(n=this.modal)||void 0===n||null===(n=n.querySelector("[data-modal-input]"))||void 0===n||n.removeAttribute("aria-describedby"),null===(o=this.modal)||void 0===o||null===(o=o.querySelector("[data-modal-use-current]"))||void 0===o||o.removeAttribute("aria-describedby"),null==r||r.setAttribute("hidden","")}},{key:"updateApplyButtonState",value:function(){var e,t,n=null===(e=this.modal)||void 0===e?void 0:e.querySelector("[data-modal-input]"),o=null===(t=this.modal)||void 0===t?void 0:t.querySelector("[data-modal-apply]");o&&(null!=n&&n.value.trim()?o.removeAttribute("aria-disabled"):o.setAttribute("aria-disabled","true"))}},{key:"updateClearButtonState",value:function(){var e,t,n=null===(e=this.modal)||void 0===e?void 0:e.querySelector("[data-modal-input]"),o=Boolean(null==n?void 0:n.value.trim());null===(t=this.modal)||void 0===t||t.querySelectorAll("[data-modal-clear]").forEach(function(e){e.classList.contains("ups-serp-v1__location-modal-clear-text")?o?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"):e.disabled=!o,e.classList.toggle("is-disabled",!o),e.classList.contains("ups-serp-v1__location-modal-input-clear")&&e.toggleAttribute("aria-hidden",!o)})}}],o&&jl(n.prototype,o),r&&jl(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r,i,a,l,c}(s.o6);Bl(Rl,"BODY_SCROLL_LOCK_CLASS","ups-serp-v1__location-modal-open"),Bl(Rl,"LOCATION_INVA
6LID_ERROR","Please enter a valid city, state and zip combination."),Bl(Rl,"LOCATION_SELECTION_KEYS",["UES_PROV_LOCATION_SELECTION","locationValue"]),Bl(Rl,"nextInstanceId",0),(0,s.fe)({componentName:"o5-ups-serp-care-options",component:Rl});function Hl(e){return Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(e)}function Ul(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Gl(o.key),o)}}function Vl(e,t,n){return t=$l(t),function(e,t){if(t&&("object"==Hl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zl()?Reflect.construct(t,n||[],$l(e).constructor):t.apply(e,n))}function zl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zl=function(){return!!e})()}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$l(e)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zl(e,t)}function Gl(e){var t=function(e,t){if("object"!=Hl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Hl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hl(t)?t:t+""}var Wl=function(e){function t(e){var n,o,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Vl(this,t,[e]),o=n,i=void 0,(r=Gl(r="store"))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,n.store={ui:{component:".o5-utility",list:".o5-utility__list",item:".o5-utility__item",itemSelected:".o5-utility__item--selected",link:".o5-utility__link",button:".o5-utility__btn",buttonSelected:".o5-utility__btn--selected",subNav:".o5-utility__sub",subNavHidden:".o5-utility__sub--hidden",subNavFadeout:".o5-utility__sub--fadeout",subNavRight:".o5-utility__sub--right",dropdown:".js-utility-dd",menuContainer:".o5-nav__mobile-container",mobileHeaderMenu:".o5-header__hamburger",linkButtonActionForm:".o5-link-button--button-action-form"},navClicked:!1,transitionTime:window.matchMedia("(min-width: 1025px)").matches?400:300},n.init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zl(e,t)}(t,e),n=t,o=[{key:"setup",value:function(){var e=this;document.querySelectorAll(".o5-utility__btn,.o5-utility__pbtn").forEach(function(t){t.classList.contains("o5-utility__btn-loaded")||(t.classList.add("o5-utility__btn-loaded"),t.addEventListener("click",e.clickUtilityNavBtn.bind(e)))}),document.querySelectorAll(".o5-utility__pbtn, .o5-utility__standalone, .show-popUpModel").forEach(function(e){e.parentElement&&e.parentElement.classList.add("o5-utility__btnitem")});var t=function(){e.populateUtilityMobileHeaderNavigation()};if("true"===document.documentElement.getAttribute("data-o5-utilnav-ready")?t():document.addEventListener("o5:utilnav:ready",t,{once:!0}),document.querySelector(this.store.ui.component)&&(this.positionMenus(),window.addEventListener("load",this.onPageLoad.bind(this)),window.addEventListener("resize",this.positionMenus.bind(this)),document.addEventListener("keydown",this.checkKey.bind(this)),document.body.addEventListener("click",this.checkClick.bind(this)),document.querySelectorAll(".o5-utility__sub:last-of-type").forEach(function(t){var n=t.querySelectorAll("ul li:last-of-type a"),o=n[n.length-1];o&&o.addEventListener("keydown",e.trapLastTab.bind(e))})),!document.querySelector(".o5-header-mobile-icon")){var n=document.querySelector(this.store.ui.mobileHeaderMenu);n&&n.classList.add("hide-menu")}}},{key:"clickMobileUtilityNavLink",value:function(e){e.preventDefault();var t=document.querySelector(this.store.ui.linkButtonActionForm);t&&t.click()}},{key:"populateUtilityMobileHeaderNavigation",value:function(){var e=document.querySelector(".o5-header");if("true"===(null==e?void 0:e.getAttribute("data-enable-enhanced-mobile-view"))){var t=document.querySelectorAll(".o5-utility__mobile-header"),n=document.querySelector(".o5-mega-nav");if(n){if(t.length>0){var o=t[0],r=o.cloneNode(!0),i=r.id;r.id&&(r.id="".concat(r.id,"--mobile")),r.classList.remove("o5-utility__btn-loaded","dmp-btn--md"),r.classList.add("dmp-btn--sm");var a=r.querySelector(".material-symbols-rounded-mobile");null==a||a.classList.add("o5-utility__mobile-icon"),r.addEventListener("click",this.clickUtilityNavBtn.bind(this));var l=null,c=o.nextElementSibling;if(c&&c.classList.contains("o5-utility__sub")&&(l=c.cloneNode(!0))&&i&&r.id){var s=l.querySelector("ul[aria-labelledby]");s&&s.getAttribute("aria-labelledby")===i&&s.setAttribute("aria-labelledby",r.id)}o.classList.remove("o5-utility__mobile-header"),t.forEach(function(e){e!==o&&e.classList.remove("o5-utility__mobile-header")});var u=document.querySelector(".o5-header__right");if(u){var d=document.createElement("div");d.classList.add("o5-utility__item","o5-utility__mobile-header__wrapper"),d.appendChild(r),l&&d.appendChild(l),u.
6insertBefore(d,u.firstChild)}}var f=!!document.querySelector(".o5-site-toggle__links"),p=!!document.querySelector(".o5-site-toggle__language"),m=!!document.querySelector(".o5-site-toggle__lang-item-location");n&&(p||m||f?n.classList.add("o5-mega-nav--bg-warm-white"):(n.classList.add("o5-mega-nav--no-bottom-border"),n.classList.add("o5-mega-nav--bg-white")))}}}},{key:"getTransformClass",value:function(){var e=window.location.pathname;return-1!==e.indexOf("/optum5")?"o5-utility__transform":-1!==e.indexOf("/dmp")?"dmp-utility__transform":""}},{key:"positionMenus",value:function(){var e=this,t=window.matchMedia("(min-width: 1025px)").matches,n=this.getTransformClass(),o=document.querySelector(this.store.ui.list);if(o){var r=o.getBoundingClientRect(),i=r.left+r.width;document.querySelectorAll(this.store.ui.subNav).forEach(function(o){o.classList.remove("o5-utility__transform","dmp-utility__transform"),n&&o.classList.add(n);var r=e.store.ui.subNavHidden.replace(".",""),a=e.store.ui.subNavRight.replace(".",""),l=o.classList.contains(r);l&&o.classList.remove(r);var c=o.getBoundingClientRect(),s=c.left,u=c.width,d=s+u,f=(o.parentElement?o.parentElement.getBoundingClientRect():{width:u}).width;l&&o.classList.add(r),u<f?t?(o.setAttribute("style","width: ".concat(f,"px; max-width: ").concat(f,"px")),o.firstElementChild&&o.firstElementChild.setAttribute("style","width: 100%; max-width: ".concat(f,"px"))):(o.removeAttribute("style"),o.firstElementChild&&o.firstElementChild.removeAttribute("style")):d>i&&o.classList.add(a)}),document.querySelectorAll("".concat(this.store.ui.menuContainer," ").concat(this.store.ui.subNav)).forEac
6h(function(t){var n=e.store.ui.subNavHidden.replace(".","");t.classList.remove(n),t.classList.add(n),t.setAttribute("data-height","height: auto"),t.setAttribute("style","height: 0")})}}},{key:"checkClick",value:function(e){var t=!1,n=this.store.ui.itemSelected.replace(".","");if(!this.store.navClicked){for(var o=e.target;o&&o instanceof Element;){if(o.classList.contains(n)){t=!0;break}o=o.parentElement}t||this.closeMenus()}this.store.navClicked=!1}},{key:"checkKey",value:function(e){var t=document.querySelector(".o5-utility__btn--selected");if("Escape"===e.key&&t){var n=t.id;if(this.closeMenus(),n){var o=document.getElementById(n);null==o||o.focus()}}}},{key:"trapLastTab",value:function(e){var t=this;if("Tab"===e.key&&!e.shiftKey){var n="jsUtilityFocus",o=document.activeElement;if(o&&o.classList.add(n),document.querySelectorAll(this.store.ui.itemSelected).forEach(function(e){return e.classList.remove(t.store.ui.itemSelected.replace(".",""))}),window.innerWidth>1048){document.querySelectorAll(this.store.ui.buttonSelected).forEach(function(e){e.classList.remove(t.store.ui.buttonSelected.replace(".","")),e.setAttribute("aria-expanded","false")});var r=e.currentTarget.closest(this.store.ui.dropdown);r&&(r.classList.add(this.store.ui.subNavHidden.replace(".","")),r.classList.remove(this.store.ui.dropdown.replace(".","")))}var i=document.querySelector(".".concat(n));null==i||i.focus(),null==i||i.classList.remove(n)}}},{key:"closeMenus",value:function(){var e=this.store.ui,t=this.store.transitionTime,n=e.itemSelected.replace(".",""),o=e.buttonSelected.replace(".","");return document.querySelectorAll(e.itemSelected).forEach(function(e){return e.classList.remove(n)}),document.querySelectorAll(e.buttonSelected).forEach(function(e){e.classList.remove(o),e.setAttribute("aria-expanded","false")}),Array.from(document.querySelectorAll(e.dropdown)).forEach(function(n){n.classList.add(e.subNavFadeout.replace(".","")),null!==n.getAttribute("data-height")&&(n.style.height="0"),window.setTimeout(function(){n.classList.add(e.subNavHidden.replace(".","")),n.classList.remove(e.dropdown.replace(".",""))},t)}),!1}},{key:"closeMegaNavIfOpen",value:function(){var e=document.querySelector(".o5-header__menu-btn.open");e&&e.click()}},{key:"clickUtilityNavBtn",value:function(e){var t=e.currentTarget,n=t.nextElementSibling;if(n&&n.classList.contains("o5-utility__sub")){e.preventDefault();var o="false"===t.getAttribute("aria-expanded"),r=document.querySelector(".o5-utility__mobile-header");o&&r&&this.closeMegaNavIfOpen();var i,a,l=this.store.ui,c=this.store.transitionTime,s=null==n?void 0:n.getAttribute("data-height");this.store.navClicked=!0,e.shiftKey&&this.closeMenus(),o?(this.closeMenus(),null===(i=t.parentElement)||void 0===i||i.classList.add(l.itemSelected.replace(".","")),t.setAttribute("aria-expanded","true"),t.classList.add(l.buttonSelected.replace(".","")),n&&(n.classList.remove(l.subNavHidden.replace(".","")),n.classList.add(l.dropdown.replace(".","")),n.classList.remove(l.subNavFadeout.replace(".","")),null!==s&&(n.style.height=s))):(null===(a=t.parentElement)||void 0===a||a.classList.remove(l.itemSelected.replace(".","")),t.setAttribute("aria-expanded","false"),t.classList.remove(l.buttonSelected.replace(".","")),n&&(n.classList.add(l.subNavFadeout.replace(".","")),null!==s&&(n.style.height="0"),setTimeout(function(){n.classList.add(l.subNavHidden.replace(".","")),n.classList.remove(l.dropdown.replace(".",""))},c)))}}},{key:"onPageLoad",value:function(){this.positionMenus()}}],o&&Ul(n.prototype,o),r&&Ul(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);function Kl(e){return Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kl(e)}function Yl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ql(o.key),o)}}function Ql(e){var t=function(e,t){if("object"!=Kl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Kl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kl(t)?t:t+""}function Xl(e,t,n){return t=ec(t),function(e,t){if(t&&("object"==Kl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Jl()?Reflect.construct(t,n||[],ec(e).constructor):t.apply(e,n))}function Jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jl=function(){return!!e})()}
6function ec(e){return ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ec(e)}function tc(e,t){return tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tc(e,t)}(0,s.fe)({componentName:"o5-utility-nav",component:Wl});var nc=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Xl(this,t,[e])).init(),n.setup(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tc(e,t)}(t,e),n=t,(o=[{key:"setup",value:function(){document.querySelectorAll("#o5-video-player-data-id").forEach(function(e){var t,n=e,o={videolink:n.dataset.videoLink,videoId:n.dataset.videoId,videoURL:n.dataset.videoUrl,imgURL:n.dataset.imgUrl,videoTitle:n.dataset.videoTitle,videoAltText:"",videoClosedCaption:n.dataset.videoClosedCaption};(0,Ue.E)(o);var r=!1,i=function(e){var t=e.target;t&&t.nodeType!==Node.ELEMENT_NODE&&(t=t.parentElement);var o=t;if(o&&"function"==typeof o.closest&&o.closest("#o5-video-player-".concat(n.dataset.videoId," .video__container .vjs-big-play-button"))&&!r){r=!0;var i=(0,Ue.l)("vid-".concat(n.dataset.videoId)),a=document.querySelector(".video__".concat(n.dataset.videoId," .modal__end-overlay"));i.on("ended",function(){a&&(a.style.display="flex")})}},a=null!==(t=document.querySelector("#o5-video-player-".concat(n.dataset.videoId)))&&void 0!==t?t:document;if(window.PointerEvent){var l=!1;a.addEventListener("pointerup",function(e){l=!0,i(e),window.setTimeout(function(){l=!1},400)}),a.addEventListener("click",function(e){l||i(e)})}else{var c=!1;a.addEventListener("touchend",function(e){c=!0,i(e),window.setTimeout(function(){c=!1},400)},{passive:!0}),a.addEventListener("click",function(e){c||i(e)})}})}}])&&Yl(n.prototype,o),r&&Yl(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(s.o6);(0,s.fe)({componentName:"o5-video-player",component:nc}),(0,s.fe)({componentName:"o5-50-50-content-block",component:function(){return n.e(4983).then(n.bind(n,97035))},isDynamic:!0}),(0,s.fe)({componentName:"o5-article-grid-healthieryou",component:function(){return n.e(1323).then(n.bind(n,62663))},isDynamic:!0}),(0,s.fe)({componentName:"o5-article-grid-prohealth",component:function(){return n.e(5183).then(n.bind(n,71465))},isDynamic:!0}),(0,s.fe)({componentName:"o5-awards-certifications",component:function(){return n.e(8766).then(n.bind(n,14433))},isDynamic:!0}),(0,s.fe)({componentName:"o5-calendar-centers",component:function(){return Promise.all([n.e(9683),n.e(9523),n.e(8629)]).then(n.bind(n,22747))},isDynamic:!0}),(0,s.fe)({componentName:"O5-calendar-salesforce",component:function(){return Promise.all([n.e(9683),n.e(9523),n.e(2945)]).then(n.bind(n,50179))},isDynamic:!0}),(0,s.fe)({componentName:"o5-hsa-calc",component:function(){return n.e(3150).then(n.bind(n,52961))},isDynamic:!0}),(0,s.fe)({componentName:"o5-hubs",component:function(){return Promise.all([n.e(9523),n.e(6752)]).then(n.bind(n,3585))},isDynamic:!0}),(0,s.fe)({componentName:"o5-image-tabs",component:function(){return n.e(1408).then(n.bind(n,40585))},isDynamic:!0}),(0,s.fe)({componentName:"o5-main-nav",component:function(){return n.e(7779).then(n.bind(n,52573))},isDynamic:!0}),(0,s.fe)({componentName:"o5-mega-nav",component:function(){return n.e(8430).then(n.bind(n,72761))},isDynamic:!0}),(0,s.fe)({componentName:"o5-podcast",component:function(){return n.e(296).then(n.bind(n,30288))},isDynamic:!0}),(0,s.fe)({componentName:"o5-pop-up-model",component:function(){return n.e(4233).then(n.bind(n,36041))},isDynamic:!0}),(0,s.fe)({componentName:"o5-promo-image",component:function(){return n.e(2133).then(n.bind(n,49787))},isDynamic:!0}),(0,s.fe)({componentName:"o5-quiz-builder",component:function(){return n.e(4901).then(n.bind(n,15962))},isDynamic:!0}),(0,s.fe)({componentName:"o5-table-v2",component:function(){return n.e(1105).then(n.bind(n,97803))},isDynamic:!0}),(0,s.fe)({componentName:"o5-table",component:function(){return n.e(888).then(n.bind(n,24889))},isDynamic:!0}),(0,s.fe)({componentName:"o5-tabs",component:function(){return n.e(3792).then(n.bind(n,64569))},isDynamic:!0}),(0,s.fe)({componentName:"o5-pricewise-hub",component:function(){return Promise.all([n.e(4914),n.e(7777),n.e(5380)]).then(n.bind(n,41377))},isDynamic:!0}),document.addEventListener("DOMContentLoaded",function(){(0,ce.pu)()}),"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){return r()}):r())},66633(e,t,n){"use strict";function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}
6finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{HU:()=>s,KW:()=>c,RH:()=>l,rQ:()=>u});var a="user_locale",l="en",c="es";function s(){if("undefined"!=typeof document&&!function(){var e,t,n,o;if("undefined"==typeof window)return!1;var r=(null===(e=window.location)||void 0===e?void 0:e.href)||"",i=(null===(t=window.location)||void 0===t?void 0:t.hostname)||"",a=(null===(n=window.location)||void 0===n?void 0:n.port)||"",l=(null===(o=window.location)||void 0===o?void 0:o.pathname)||"";return"localhost"===i&&"4502"===a||!(!i.startsWith("author-")||!i.endsWith(".adobeaemcloud.com"))||!(!l.includes("/editor.html")&&!l.includes("/sites.html"))||!!(r.includes("wcmmode=edit")||r.includes("wcmmode=preview")||r.includes("wcmmode=design"))}()){var e=d(),t=function(){var e;if("undefined"==typeof window)return l;var t=(null===(e=window.location)||void 0===e?void 0:e.pathname)||"",n=t.match(/^\/content\/[^/]+\/(en|es)(\/|\.|\s|$)/);return n?n[1]===c?c:l:t.startsWith("/es/")||t.startsWith("/es.")||"/es"===t||t.includes("/es/")||t.includes("/es.")||t.endsWith("/es")?c:l}();e!==t&&u(t)}}var u=function(e){var t;if("undefined"!=typeof document&&(e===l||e===c)){var n="https:"===(null===(t=window.location)||void 0===t?void 0:t.protocol);document.cookie="".concat(a,"=").concat(e,"; path=/; max-age=").concat(3600,"; SameSite=Lax").concat(n?"; Secure":"")}},d=function(){if("undefined"==typeof document||!document.cookie)return null;var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}(document.cookie.split(";"));try{for(t.s();!(e=t.n()).done;){var n=o(e.value.trim().split("="),2),i=n[0],s=n[1];if(i===a&&(s===l||s===c))return s}}catch(e){t.e(e)}finally{t.f()}return null}},90694(e,t,n){"use strict";function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Iq:()=>l,KR:()=>a});var i="user_location",a=function(e){var t,n="https:"===(null===(t=window.location)||void 0===t?void 0:t.protocol)?"; Secure":"";document.cookie="".concat(i,"=").concat(encodeURIComponent(JSON.stringify(e)),"; path=/; max-age=").concat(2592e3,"; SameSite=Lax").concat(n)},l=function(){var e,t="".concat(i,"="),n=o(document.cookie.split(";"));try{for(n.s();!(e=n.n()).done;){var r=e.value.trim();if(r.startsWith(t))try{return JSON.parse(decodeURIComponent(r.slice(t.length)))}catch(e){return null}}}catch(e){n.e(e)}finally{n.f()}return null}},19652(e,t){var n,o,r;console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(i){var a,l,c,s,u,d,f,p,m,h,v,y,b,g;function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function S(e,t,n){e.addEventListener(t,n,!1)}function _(e,t,n){e.removeEventListener(t,n,!1)}function k(e){return v[e]?v[e].log:c}function E(e,t){T("log",e,t,k(e))}function A(e,t){T("info",e,t,k(e))}function C(e,t){T("warn",e,t,!0)}function T(e,t,n,o){!0===o&&"object"==typeof window.console&&console[e](function(e){return d+"["+(t="Host page: "+e,(t=window.top!==window.self?window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e:t)+"]");var t}(t),n)}function O(e){function t(){n("Height"),n("Width"),D(function(){I(w),j(k),m("onResized",w)},w,"init")}function n(e){var t=Number(v[k]["max"+e]),n=Number(v[k]["min"+e]),o=(e=e.toLowerCase(),Number(w[e]));E(k,"Checking "+e+" is in range "+n+"-"+t),o<n&&(o=n,E(k,"Set "+e+" to min value")),t<o&&(o=t,E(k,"Set "+e+" to max value")),w[e]=""+o}function o(e){return b.slice(b.indexOf(":")+u+e)}function r(e,t){var n,o;n=function(){var n,o;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),o=w.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:o.height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-n.top,10),offsetLeft:parseInt(o.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},g[o=t]||(g[o]=setTimeout(function(){g[o]=null,n()},32))}function i(e){return e=e.getBoundingClientRect(),P(k),{x:Math.floor(Number(e.left)+Number(p.x)),y:Math.floor(Number(e.top)+Number(p.y))}}function a(e){var t=e?i(w.iframe):{x:0,y:0},n={x:Number(w.width)+t.x,y:Number(w.height)+t.y};E(k,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top===window.self?(p=n,l(),E(k,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):C(k,"Unable to scroll to requested position, window.parentIFrame not found")}function l(){!1===m("onScroll",p)?N():j(k)}function c(e){e=e.split("#")[1]||"";var t=decodeURIComponent(e);(t=document.getElementById(t)||document.getElementsByName(t)[0])?(t=i(t),E(k,"Moving to in page link (#"+e+") at x: "+t.x+" y: "+t.y),p={x:t.x,y:t.y},l(),E(k,"--")):window.top===window.self?E(k,"In page link #"+e+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(e):E(k,"In page link #"+e+" not found and window.parentIFrame not found")}function s(e){var t,n;n=0===Number(w.width)&&0===Number(w.height)?{x:(t=o(9).split(":"))[1],y:t[0]}:{x:w.width,y:w.height},m(e,{iframe:w.iframe,screenX:Number(n.x),screenY:Number(n.y),type:w.type})}function m(e,t){return L(k,e,t)}var h,y,b=e.data,w={},k=null;if("[iFrameResizerChild]Ready"===b)for(var T in v)B("iFrame requested init",F(T),v[T].iframe,T);else d===(""+b).slice(0,f)&&b.slice(f).split(":")[0]in v?(w=function(){var e=b.slice(f).split(":"),t=e[1]?parseInt(e[1],10):0,n=v[e[0]]&&v[e[0]].iframe,o=getComputedStyle(n);return{iframe:n,id:e[0],height:t+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e=e.paddingBottom?parseInt(e.paddingBottom,10):0)}(o)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e=e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(o),width:e[2],type:e[3]}}(),k=w.id,v[k]&&(v[k].loaded=!0),(y=w.type in{true:1,false:1,undefined:1})&&E(k,"Ignoring init message from meta parent page"),!y&&(y=!0,v[h=k]||(y=!1,C(w.type+" No settings for "+h+". Message was: "+b)),y)&&(E(k,"Received: "+b),h=!0,null===w.iframe&&(C(k,"IFrame ("+w.id+") not found"),h=!1),h&&function(){var t=e.origin,n=v[k]&&v[k].checkOrigin;if(n&&""+t!="null"&&!function(){if(n.constructor!==Array)return e=v[k]&&v[k].remoteHost,E(k,"Checking connection is from: "+e),t===e;var e,o=0,r=!1;for(E(k,"Checking connection is from allowed list of origins: "+n);o<n.length;o++)if(n[o]===t){r=!0;break}return r}())throw new Error("Unexpected message received from: "+t+" for "+w.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return 1}()&&function(){switch(v[k]&&v[k].firstRun&&v[k]&&(v[k].firstRun=!1),w.type){case"close"
6:x(w.iframe);break;case"message":l=o(6),E(k,"onMessage passed: {iframe: "+w.iframe.id+", message: "+l+"}"),m("onMessage",{iframe:w.iframe,message:JSON.parse(l)}),E(k,"--");break;case"mouseenter":s("onMouseEnter");break;case"mouseleave":s("onMouseLeave");break;case"autoResize":v[k].autoResize=JSON.parse(o(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":r(v[k]&&v[k].iframe,k),i=k,e("Add ",S),v[i]&&(v[i].stopPageInfo=n);break;case"pageInfoStop":v[k]&&v[k].stopPageInfo&&(v[k].stopPageInfo(),delete v[k].stopPageInfo);break;case"inPageLink":c(o(9));break;case"reset":M(w);break;case"init":t(),m("onInit",w.iframe);break;default:0===Number(w.width)&&0===Number(w.height)?C("Unsupported message received ("+w.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}function e(e,t){function o(){v[i]?r(v[i].iframe,i):n()}["scroll","resize"].forEach(function(n){E(i,e+n+" listener for sendPageInfo"),t(window,n,o)})}function n(){e("Remove ",_)}var i,l}())):A(k,"Ignored: "+b)}function L(e,t,n){var o=null,r=null;if(v[e]){if("function"!=typeof(o=v[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=o(n)}return r}function q(e){e=e.id,delete v[e]}function x(e){var t=e.id;if(!1===L(t,"onClose",t))E(t,"Close iframe cancelled by onClose event");else{E(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){C(e)}L(t,"onClosed",t),E(t,"--"),q(e),l&&(l.disconnect(),l=null)}}function P(e){null===p&&E(e,"Get page position: "+(p={x:window.pageXOffset===i?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===i?document.documentElement.scrollTop:window.pageYOffset}).x+","+p.y)}function j(e){null!==p&&(window.scrollTo(p.x,p.y),E(e,"Set page position: "+p.x+","+p.y),N())}function N(){p=null}function M(e){E(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),P(e.id),D(function(){I(e),B("reset","reset",e.iframe,e.id)},e,"reset")}function I(e){function t(t){var o;o=t,e.id?(e.iframe.style[o]=e[o]+"px",E(e.id,"IFrame ("+n+") "+o+" set to "+e[o]+"px")):E("undefined","messageData id not set"),function(t){var o;function r(){Object.keys(v).forEach(function(e){function t(e){return"0px"===(v[n]&&v[n].iframe.style[e])}var n;v[n=e]&&null!==v[n].iframe.offsetParent&&(t("height")||t("width"))&&B("Visibility change","resize",v[n].iframe,n)})}!s&&"0"===e[t]&&(s=!0,E(n,"Hidden iFrame detected, creating visibility listener"),t=w())&&(o=document.querySelector("body"),new t(function(e){E("window","Mutation observed: "+e[0].target+" "+e[0].type),H(r,16)}).observe(o,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}(t)}var n=e.iframe.id;v[n]&&(v[n].sizeHeight&&t("height"),v[n].sizeWidth)&&t("width")}function D(e,t,n){n!==t.type&&m&&!window.jasmine?(E(t.id,"Requesting animation frame"),m(e)):e()}function B(e,t,n,o,r){var i=!1;o=o||n.id,v[o]&&(function(){var r;n&&"contentWindow"in n&&null!==n.contentWindow?(r=v[o]&&v[o].targetOrigin,E(o,"["+e+"] Sending msg to iframe["+o+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(d+t,r)):C(o,"["+e+"] IFrame("+o+") not found")}(),r&&v[o]&&v[o].warningTimeout&&(v[o].msgTimeout=setTimeout(function(){!v[o]||v[o].loaded||i||(i=!0,C(o,"IFrame has not responded within "+v[o].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},v[o].warningTimeout)))}function F(e){return e+":"+v[e].bodyMarginV1+":"+v[e].sizeWidth+":"+v[e].log+":"+v[e].interval+":"+v[e].enablePublicMethods+":"+v[e].autoResize+":"+v[e].bodyMargin+":"+v[e].heightCalculationMethod+":"+v[e].bodyBackground+":"+v[e].bodyPadding+":"+v[e].tolerance+":"+v[e].inPageLinks+":"+v[e].resizeFrom+":"+v[e].widthCalculationMethod+":"+v[e].mouseEvents}function R(e,t){function n(e){var t=e.split("Callback");2===t.length&&(this[t="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1)]=this[e],delete this[e],C(o,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version."))}var o=function(n){if("string"!=typeof n)throw new TypeError("Invaild id for iFrame. Expected String");var o;return""===n&&(e.id=(o=t&&t.id||b.id+a++,null!==document.getElementById(o)&&(o+=a++),n=o),c=(t||{}).log,E(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);if(o in v&&"iFrameResizer"in e)C(o,"Ignored iFrame, already setup.");else{switch(function(t){if(t=t||{},v[o]=Object.create(null),v[o].iframe=e,v[o].firstRun=!0,v[o].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),"object"!=typeof t)throw new TypeError("Options is not an object");Object.keys(t).forEach(n,t);var r,i=t;
6for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(v[o][r]=(Object.prototype.hasOwnProperty.call(i,r)?i:b)[r]);v[o]&&(v[o].targetOrigin=!0!==v[o].checkOrigin||""===(t=v[o].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t)}(t),E(o,"IFrame scrolling "+(v[o]&&v[o].scrolling?"enabled":"disabled")+" for "+o),e.style.overflow=!1===(v[o]&&v[o].scrolling)?"hidden":"auto",v[o]&&v[o].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=v[o]?v[o].scrolling:"no"}s("Height"),s("Width"),r("maxHeight"),r("minHeight"),r("maxWidth"),r("minWidth"),"number"!=typeof(v[o]&&v[o].bodyMargin)&&"0"!==(v[o]&&v[o].bodyMargin)||(v[o].bodyMarginV1=v[o].bodyMargin,v[o].bodyMargin=v[o].bodyMargin+"px"),function(t){var n=w();n&&(l=e.parentNode?((n=new n(function(t){t.forEach(function(t){Array.prototype.slice.call(t.removedNodes).forEach(function(t){t===e&&x(e)})})})).observe(e.parentNode,{childList:!0}),n):null),S(e,"load",function(){var n,r;B("iFrame.onload",t,e,i,!0),n=v[o]&&v[o].firstRun,r=v[o]&&v[o].heightCalculationMethod in h,!n&&r&&M({iframe:e,height:0,width:0,type:"init"})}),B("init",t,e,i,!0)}(F(o)),v[o]&&(v[o].iframe.iFrameResizer={close:x.bind(null,v[o].iframe),removeListeners:q.bind(null,v[o].iframe),resize:B.bind(null,"Window resize","resize",v[o].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,v[o].iframe,o)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),v[o].iframe,o)}})}function r(t){var n=v[o][t];1/0!==n&&0!==n&&(e.style[t]="number"==typeof n?n+"px":n,E(o,"Set "+t+" = "+e.style[t]))}function s(e){if(v[o]["min"+e]>v[o]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}}function H(e,t){null===y&&(y=setTimeout(function(){y=null,e()},t))}function U(){"hidden"!==document.visibilityState&&(E("document","Trigger event: Visibility change"),H(function(){V("Tab Visible","resize")},16))}function V(e,t){Object.keys(v).forEach(function(n){var o;v[o=n]&&"parent"===v[o].resizeFrom&&v[o].autoResize&&!v[o].firstRun&&B(e,t,v[n].iframe,n)})}function z(){S(window,"message",O),S(window,"resize",function(){E("window","Trigger event: "+"resize"),H(function(){V("Window resize","resize")},16)}),S(document,"visibilitychange",U),S(document,"-webkit-visibilitychange",U)}function $(){function e(e,n){if(n){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">");R(n,e),t.push(n)}}for(var t,n=["moz","webkit","o","ms"],o=0;o<n.length&&!m;o+=1)m=window[n[o]+"RequestAnimationFrame"];return m?m=m.bind(window):E("setup","RequestAnimationFrame not supported"),z(),function(n,o){var r;switch(t=[],(r=n)&&r.enablePublicMethods&&C("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(i,n));break;case"object":e(n,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}"undefined"!=typeof window&&(a=0,s=c=!1,u=7,f=(d="[iFrameSizer]").length,p=null,m=window.requestAnimationFrame,h=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),v={},y=null,b=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){C("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),g={},window.jQuery!==i&&function(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(e){return this.filter("iframe").each(function(t,n){R(n,e)}).end()}):A("","Unable to bind to jQuery, it is not fully loaded.")}(window.jQuery),o=[],void 0!==(r="function"==typeof(n=$)?n.apply(t,o):n)&&(e.exports=r),window.iFrameResize=window.iFrameResize||$())}()},99418(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}
vendor: 6,114 bytes, line 6
6finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),n.d(t,{default:()=>Se});const i=Object.entries,a=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor;let u=Object.freeze,d=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,m=p.apply,h=p.construct;u||(u=function(e){return e}),d||(d=function(e){return e}),m||(m=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const v=D(Array.prototype.forEach),y=D(Array.prototype.lastIndexOf),b=D(Array.prototype.pop),g=D(Array.prototype.push),w=D(Array.prototype.splice),S=Array.isArray,_=D(String.prototype.toLowerCase),k=D(String.prototype.toString),E=D(String.prototype.match),A=D(String.prototype.replace),C=D(String.prototype.indexOf),T=D(String.prototype.trim),O=D(Number.prototype.toString),L=D(Boolean.prototype.toString),q="undefined"==typeof BigInt?null:D(BigInt.prototype.toString),x="undefined"==typeof Symbol?null:D(Symbol.prototype.toString),P=D(Object.prototype.hasOwnProperty),j=D(Object.prototype.toString),N=D(RegExp.prototype.test),M=(I=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(I,t)});var I;function D(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return m(e,t,o)}}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(a&&a(e,null),!S(t))return e;let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(l(t)||(t[o]=e),r=e)}e[r]=!0}return e}function F(e){for(let t=0;t<e.length;t++){P(e,t)||(e[t]=null)}return e}function R(e){const t=f(null);for(const o of i(e)){var n=r(o,2);const i=n[0],a=n[1];P(e,i)&&(S(a)?t[i]=F(a):a&&"object"==typeof a&&a.constructor===Object?t[i]=R(a):t[i]=a)}return t}function H(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=c(e)}return function(){return null}}const U=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Z=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=u(["#text"]),K=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
6spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Y=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Q=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),J=d(/{{[\w\W]*|^[\w\W]*}}/g),ee=d(/<%[\w\W]*|^[\w\W]*%>/g),te=d(/\${[\w\W]*/g),ne=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),oe=d(/^aria-[\-\w]+$/),re=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ie=d(/^(?:\w+script|data):/i),ae=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),le=d(/^html$/i),ce=d(/^[a-z][.\w]*(-[.\w]+)+$/i),se=d(/<[/\w!]/g),ue=d(/<[/\w]/g),de=d(/<\/no(script|embed|frames)/i),fe=d(/\/>/i),pe=1,me=3,he=7,ve=8,ye=9,be=11,ge=function(){return"undefined"==typeof window?null:window},we=function(e,t,n,o){return P(e,t)&&S(e[t])?B(o.base?R(o.base):{},e[t],o.transform):n};var Se=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge();const n=t=>e(t);if(n.version="3.4.13",n.removed=[],!t||!t.document||t.document.nodeType!==ye||!t.Element)return n.isSupported=!1,n;let o=t.document;const r=o,a=r.currentScript;t.DocumentFragment;const l=t.HTMLTemplateElement,c=t.Node,s=t.Element,p=t.NodeFilter,m=t.NamedNodeMap;void 0===m&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,I=t.trustedTypes,D=s.prototype,F=H(D,"cloneNode"),Se=H(D,"remove"),_e=H(D,"nextSibling"),ke=H(D,"childNodes"),Ee=H(D,"parentNode"),Ae=H(D,"shadowRoot"),Ce=H(D,"attributes"),Te=c&&c.prototype?H(c.prototype,"nodeType"):null,Oe=c&&c.prototype?H(c.prototype,"nodeName"):null,Le=c&&c.prototype?H(c.prototype,"ownerDocument"):null;if("function"==typeof l){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let qe,xe,Pe="",je=!1,Ne=0;const Me=function(){if(Ne>0)throw M('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ie=function(e){Me(),Ne++;try{return qe.createHTML(e)}finally{Ne--}},De=function(){return je||(xe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;
vendor: 2,239 bytes, line 6
6const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(I,a),je=!0),xe},Be=o,Fe=Be.implementation,Re=Be.createNodeIterator,He=Be.createDocumentFragment,Ue=Be.getElementsByTagName,Ve=r.importNode;let ze={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof Ee&&Fe&&void 0!==Fe.createHTMLDocument;const $e=J,Ze=ee,Ge=te,We=ne,Ke=oe,Ye=ie,Qe=ae,Xe=ce;let Je=re,et=null;const tt=B({},[...U,...V,...z,...Z,...W]);let nt=null;const ot=B({},[...K,...Y,...Q,...X]);let rt=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),it=null,at=null;const lt=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ct=!0,st=!0,ut=!1,dt=!0,ft=!1,pt=!0,mt=!1,ht=!1,vt=null,yt=null,bt=!1,gt=!1,wt=!1,St=!1,_t=!0,kt=!1;const Et="user-content-";let At=!0,Ct=!1,Tt={},Ot=null;const Lt=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let qt=null;const xt=B({},["audio","video","img","source","image","track"]);let Pt=null;const jt=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nt="http://www.w3.org/1998/Math/MathML",Mt="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let Dt=It,Bt=!1,Ft=null;const Rt=B({},[Nt,Mt,It],k),Ht=u(["mi","mo","mn","ms","mtext"]);let Ut=B({},Ht);const Vt=u(["annotation-xml"]);let zt=B({},Vt);const $t=B({}
vendor: 7,900 bytes, line 6
6,["title","style","font","a","script"]);let Zt=null;const Gt=["application/xhtml+xml","text/html"];let Wt=null,Kt=null;const Yt=o.createElement("form"),Qt=function(e){return e instanceof RegExp||e instanceof Function},Xt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Kt&&Kt===e)return;e&&"object"==typeof e||(e={}),e=R(e),Zt=-1===Gt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Wt="application/xhtml+xml"===Zt?k:_,et=we(e,"ALLOWED_TAGS",tt,{transform:Wt}),nt=we(e,"ALLOWED_ATTR",ot,{transform:Wt}),Ft=we(e,"ALLOWED_NAMESPACES",Rt,{transform:k}),Pt=we(e,"ADD_URI_SAFE_ATTR",jt,{transform:Wt,base:jt}),qt=we(e,"ADD_DATA_URI_TAGS",xt,{transform:Wt,base:xt}),Ot=we(e,"FORBID_CONTENTS",Lt,{transform:Wt}),it=we(e,"FORBID_TAGS",R({}),{transform:Wt}),at=we(e,"FORBID_ATTR",R({}),{transform:Wt}),Tt=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?R(e.USE_PROFILES):e.USE_PROFILES),ct=!1!==e.ALLOW_ARIA_ATTR,st=!1!==e.ALLOW_DATA_ATTR,ut=e.ALLOW_UNKNOWN_PROTOCOLS||!1,dt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ft=e.SAFE_FOR_TEMPLATES||!1,pt=!1!==e.SAFE_FOR_XML,mt=e.WHOLE_DOCUMENT||!1,gt=e.RETURN_DOM||!1,wt=e.RETURN_DOM_FRAGMENT||!1,St=e.RETURN_TRUSTED_TYPE||!1,bt=e.FORCE_BODY||!1,_t=!1!==e.SANITIZE_DOM,kt=e.SANITIZE_NAMED_PROPS||!1,At=!1!==e.KEEP_CONTENT,Ct=e.IN_PLACE||!1,Je=function(e){try{return N(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:re,Dt="string"==typeof e.NAMESPACE?e.NAMESPACE:It,Ut=P(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?R(e.MATHML_TEXT_INTEGRATION_POINTS):B({},Ht),zt=P(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?R(e.HTML_INTEGRATION_POINTS):B({},Vt);const t=P(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?R(e.CUSTOM_ELEMENT_HANDLING):f(null);if(rt=f(null),P(t,"tagNameCheck")&&Qt(t.tagNameCheck)&&(rt.tagNameCheck=t.tagNameCheck),P(t,"attributeNameCheck")&&Qt(t.attributeNameCheck)&&(rt.attributeNameCheck=t.attributeNameCheck),P(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(rt.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),d(rt),ft&&(st=!1),wt&&(gt=!0),Tt&&(et=B({},W),nt=f(null),!0===Tt.html&&(B(et,U),B(nt,K)),!0===Tt.svg&&(B(et,V),B(nt,Y),B(nt,X)),!0===Tt.svgFilters&&(B(et,z),B(nt,Y),B(nt,X)),!0===Tt.mathMl&&(B(et,Z),B(nt,Q),B(nt,X))),lt.tagCheck=null,lt.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?lt.tagCheck=e.ADD_TAGS:S(e.ADD_TAGS)&&(et===tt&&(et=R(et)),B(et,e.ADD_TAGS,Wt))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?lt.attributeCheck=e.ADD_ATTR:S(e.ADD_ATTR)&&(nt===ot&&(nt=R(nt)),B(nt,e.ADD_ATTR,Wt))),P(e,"ADD_URI_SAFE_ATTR")&&S(e.ADD_URI_SAFE_ATTR)&&B(Pt,e.ADD_URI_SAFE_ATTR,Wt),P(e,"FORBID_CONTENTS")&&S(e.FORBID_CONTENTS)&&(Ot===Lt&&(Ot=R(Ot)),B(Ot,e.FORBID_CONTENTS,Wt)),P(e,"ADD_FORBID_CONTENTS")&&S(e.ADD_FORBID_CONTENTS)&&(Ot===Lt&&(Ot=R(Ot)),B(Ot,e.ADD_FORBID_CONTENTS,Wt)),At&&(et["#text"]=!0),mt&&B(et,["html","head","body"]),et.table&&(B(et,["tbody"]),delete it.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=qe;qe=e.TRUSTED_TYPES_POLICY;try{Pe=Ie("")}catch(e){throw qe=t,e}}else null===e.TRUSTED_TYPES_POLICY?(qe=void 0,Pe=""):(void 0===qe&&(qe=De()),qe&&"string"==typeof Pe&&(Pe=Ie("")));u&&u(e),Kt=e},Jt=B({},[...V,...z,...$]),en=B({},[...Z,...G]),tn=function(e){let t=Ee(e);t&&t.tagName||(t={namespaceURI:Dt,tagName:"template"});const n=_(e.tagName),o=_(t.tagName);return!!Ft[e.namespaceURI]&&(e.namespaceURI===Mt?function(e,t,n){return t.namespaceURI===It?"svg"===e:t.namespaceURI===Nt?"svg"===e&&("annotation-xml"===n||Ut[n]):Boolean(Jt[e])}(n,t,o):e.namespaceURI===Nt?function(e,t,n){return t.namespaceURI===It?"math"===e:t.namespaceURI===Mt?"math"===e&&zt[n]:Boolean(en[e])}(n,t,o):e.namespaceURI===It?function(e,t,n){return!(t.namespaceURI===Mt&&!zt[n])&&!(t.namespaceURI===Nt&&!Ut[n])&&!en[e]&&($t[e]||!Jt[e])}(n,t,o):!("application/xhtml+xml"!==Zt||!Ft[e.namespaceURI]))},nn=function(e){g(n.removed,{element:e});try{Ee(e).removeChild(e)}catch(t){if(Se(e),!Ee(e))throw M("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},on=function(e){ln(e);const t=ke(e);if(t){const e=[];v(t,t=>{g(e,t)}),v(e,e=>{try{Se(e)}catch(e){}})}const n=Ce(e);if(n)for(let t=n.length-1;t>=0;--t){const o=n[t],r=o&&o.name;if("string"==typeof r)try{e.removeAttribute(r)}catch(e){}}},rn=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(gt||wt)try{nn(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},an=function(e){const t=Ce(e);if(t)for(let n=t.length-1;n>=0;--n){const o=t[n],r=o&&o.name;if("string"==typeof r&&!nt[Wt(r)])try{e.removeAttribute(r)}catch(e){}}},ln=function(e){const t=[e];for(;t.length>0;){const e=t.pop();(Te?Te(e):e.nodeType)===pe&&an(e);const n=ke(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},cn=function(e){let t=null,n=null;if(bt)e="<remove></remove>"+e;else{const t=E(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Zt&&Dt===It&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=qe?Ie(e):e;if(Dt===It)try{t=(new h).parseFromString(r,Zt)}catch(e){}if(!t||!t.documentElement){t=Fe.createDocument(Dt,"template",null);try{t.documentElement.innerHTML=Bt?Pe:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Dt===It?Ue.call(t,mt?"html":"body")[0]:mt?t.documentElement:i},sn=function(e){const t=Le?Le(e):e.ownerDocument;return Re.call(t||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},un=function(e){return e=A(e,$e," "),e=A(e,Ze," "),e=A(e,Ge," ")},dn=function(e){var t;e.normalize();const n=Le?Le(e):e.ownerDocument,o=Re.call(n||e,e,p.SHOW_TEXT|p.SHOW_COMMENT|p.SHOW_CDATA_SECTION|p.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;)r.data=un(r.data),r=o.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&v(i,e=>{pn(e.content)&&dn(e.content)})},fn=function(e){const t=Oe?Oe(e):null;return"string"==typeof t&&("form"===Wt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Ce(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Te(e)||e.childNodes!==ke(e)))},pn=function(e){if(!Te||"object"!=typeof e||null===e)return!1;try{return Te(e)===be}catch(e){return!1}},mn=function(e){if(!Te||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Te(e)}catch(e){return!1}};function hn(e,t,o){0!==e.length&&v(e,e=>{e.call(n,t,o,Kt)})}const vn=function(e,t,n,o){return 0===e.length?t:t===n||t===o?R(t):t},yn=function(e,t){if(hn(ze.beforeSanitizeElements,e,null),e!==t&&null===Ee(e))return Ct&&ln(e),!0;if(fn(e))return nn(e),!0;const o=Wt(Oe?Oe(e):e.nodeName);if(et=vn(ze.uponSanitizeElement,et,tt,vt),hn(ze.uponSanitizeElement,e,{tagName:o,allowedTags:et}),e!==t&&null===Ee(e))return Ct&&ln(e),!0;if(function(e,t){return!!(pt&&e.hasChildNodes()&&!mn(e.firstElementChild)&&N(se,e.textContent)&&N(se,e.innerHTML))||!(!pt||e.namespaceURI!==It||"style"!==t||!mn(e.firstElementChild))||e.nodeType===he||!(!pt||e.nodeType!==ve||!N(ue,e.data))}(e,o))return nn(e),!0;
vendor: 5,729 bytes, line 6
6if(it[o]||!(lt.tagCheck instanceof Function&&lt.tagCheck(o))&&!et[o]){const n=function(e,t,n){if(!it[t]&&wn(t)){if(rt.tagNameCheck instanceof RegExp&&N(rt.tagNameCheck,t))return!1;if(rt.tagNameCheck instanceof Function&&rt.tagNameCheck(t))return!1}if(At&&!Ot[t]){const t=Ee(e),o=ke(e);if(o&&t)for(let r=o.length-1;r>=0;--r){const i=e===n?F(o[r],!0):o[r];t.insertBefore(i,_e(e))}}return nn(e),!0}(e,o,t);return!1===n&&hn(ze.afterSanitizeElements,e,null),n}if((Te?Te(e):e.nodeType)===pe&&!tn(e))return nn(e),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&N(de,e.innerHTML))return nn(e),!0;if(ft&&e.nodeType===me){const t=un(e.textContent);e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)}return hn(ze.afterSanitizeElements,e,null),!1},bn=function(e,t,n){if(at[t])return!1;if(pt&&"patchsrc"===t)return!1;if(pt&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(_t&&("id"===t||"name"===t)&&(n in o||n in Yt))return!1;const r=nt[t]||lt.attributeCheck instanceof Function&&lt.attributeCheck(t,e);if(st&&N(We,t));else if(ct&&N(Ke,t));else if(r)if(Pt[t]);else if(N(Je,A(n,Qe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!qt[e]){if(ut&&!N(Ye,A(n,Qe,"")));else if(n)return!1}else;else if(!(wn(e)&&(rt.tagNameCheck instanceof RegExp&&N(rt.tagNameCheck,e)||rt.tagNameCheck instanceof Function&&rt.tagNameCheck(e))&&(rt.attributeNameCheck instanceof RegExp&&N(rt.attributeNameCheck,t)||rt.attributeNameCheck instanceof Function&&rt.attributeNameCheck(t,e))||"is"===t&&rt.allowCustomizedBuiltInElements&&(rt.tagNameCheck instanceof RegExp&&N(rt.tagNameCheck,n)||rt.tagNameCheck instanceof Function&&rt.tagNameCheck(n))))return!1;return!0},gn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wn=function(e){return!gn[_(e)]&&N(Xe,e)},Sn=function(e,t,n,o){if(qe&&"object"==typeof I&&"function"==typeof I.getAttributeType&&!n)switch(I.getAttributeType(e,t)){case"TrustedHTML":return Ie(o);case"TrustedScriptURL":return function(e){Me(),Ne++;try{return qe.createScriptURL(e)}finally{Ne--}}(o)}return o},_n=function(e,t,o,r){try{o?e.setAttributeNS(o,t,r):e.setAttribute(t,r),fn(e)?nn(e):b(n.removed)}catch(n){rn(t,e)}},kn=function(e){hn(ze.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||fn(e))return;nt=vn(ze.uponSanitizeAttribute,nt,ot,yt);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:nt,forceKeepAttr:void 0};let o=t.length;const r=Wt(e.nodeName);for(;o--;){const i=t[o],a=i.name,l=i.namespaceURI,c=i.value,s=Wt(a),u=c;let d="value"===a?u:T(u);n.attrName=s,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,hn(ze.uponSanitizeAttribute,e,n),d=n.attrValue,!kt||"id"!==s&&"name"!==s||0===C(d,Et)||(rn(a,e),d=Et+d),pt&&N(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)?rn(a,e):"attributename"===s&&E(d,"href")?rn(a,e):n.forceKeepAttr||(n.keepAttr&&(dt||!N(fe,d))?(ft&&(d=un(d)),bn(r,s,d)?(d=Sn(r,s,l,d),d!==u&&_n(e,a,l,d)):rn(a,e)):rn(a,e))}hn(ze.afterSanitizeAttributes,e,null)},En=function(e){let t=null;const n=sn(e);for(hn(ze.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){hn(ze.uponSanitizeShadowNode,t,null),yn(t,e),kn(t),pn(t.content)&&En(t.content);if((Te?Te(t):t.nodeType)===pe){const e=Ae(t);pn(e)&&(An(e),En(e))}}hn(ze.afterSanitizeShadowDOM,e,null)},An=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){En(e.shadow);continue}const n=e.node,o=(Te?Te(n):n.nodeType)===pe,r=ke(n);if(r)for(let e=r.length-1;e>=0;--e)t.push({node:r[e],shadow:null});if(o){const e=Oe?Oe(n):null;if("string"==typeof e&&"template"===Wt(e)){const e=n.content;pn(e)&&t.push({node:e,shadow:null})}}if(o){const e=Ae(n);pn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(Bt=!e,Bt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!mn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return O(e);case"boolean":return L(e);case"bigint":return q?q(e):"0";case"symbol":return x?x(e):"Symbol()";case"undefined":default:return j(e);case"function":case"object":{if(null===e)return j(e);const t=e,n=H(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:j(e)}return j(e)}}}(e)))throw M("dirty is not a string, aborting");if(!n.isSupported)return e;ht?(et=vt,nt=yt):Xt(t),(ze.uponSanitizeElement.length>0||ze.uponSanitizeAttribute.length>0)&&(et=R(et)),ze.uponSanitizeAttribute.length>0&&(nt=R(nt)),n.removed=[];const c=Ct&&"string"!=typeof e&&mn(e);if(c){!function(e){if(!pt)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Te?Te(e):e.nodeType;if(n===he||n===ve&&N(ue,e.data)){try{Se(e)}catch(e){}continue}if(n===pe){const t=e,n=Wt(Oe?Oe(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const o=ke(e);if(o)for(let e=o.length-1;e>=0;--e)t.push(o[e])}}(e);const t=Oe?Oe(e):e.nodeName;if("string"==typeof t){const n=Wt(t);if(!et[n]||it[n])throw on(e),M("root node is forbidden and cannot be sanitized in-place")}if(fn(e))throw on(e),M("root node is clobbered and cannot be sanitized in-place");try{An(e)}catch(t){throw on(e),t}}else if(mn(e))o=cn("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===pe&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i),An(i);else{if(!gt&&!ft&&!mt&&-1===e.indexOf("<"))return qe&&St?Ie(e):e;if(o=cn(e),!o)return gt?null:St?Pe:""}o&&bt&&nn(o.firstChild);const s=c?e:o;try{const e=sn(s);for(;a=e.nextNode();
vendor: 2,274 bytes, line 6
6)yn(a,s),kn(a),pn(a.content)&&En(a.content)}catch(t){throw c&&(on(e),v(n.removed,e=>{e.element&&ln(e.element)})),t}if(c)return v(n.removed,e=>{e.element&&ln(e.element)}),ft&&dn(e),e;if(gt){if(ft&&dn(o),wt)for(l=He.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(nt.shadowroot||nt.shadowrootmode)&&(l=Ve.call(r,l,!0)),l}let u=mt?o.outerHTML:o.innerHTML;return mt&&et["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&N(le,o.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+u),ft&&(u=un(u)),qe&&St?Ie(u):u},n.setConfig=function(){Xt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ht=!0,vt=et,yt=nt},n.clearConfig=function(){Kt=null,ht=!1,vt=null,yt=null,qe=xe,Pe=""},n.isValidAttribute=function(e,t,n){Kt||Xt({});const o=Wt(e),r=Wt(t);return bn(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&P(ze,e)&&g(ze[e],t)},n.removeHook=function(e,t){if(P(ze,e)){if(void 0!==t){const n=y(ze[e],t);return-1===n?void 0:w(ze[e],n,1)[0]}return b(ze[e])}},n.removeHooks=function(e){P(ze,e)&&(ze[e]=[])},n.removeAllHooks=function(){ze={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.c=l,c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);c.r(r);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,c.d(r,i),r},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,n)=>(c.f[n](e,t),t),[])),c.u=e=>
6"clientlib-dynamic-modules/resources/"+({296:"o5-podcast",888:"o5-table",1105:"o5-table-v2",1323:"o5-article-grid-healthieryou",1408:"o5-image-tabs",2133:"o5-promo-image",2945:"o5csf",3150:"o5-hsa-calc",3553:"o5-hsa-calc-chart",3792:"o5-tabs",4233:"o5-pop-up-model",4901:"o5-quiz-builder",4983:"o5-50-50-content-block",5183:"o5-article-grid-prohealth",5380:"pricewise-hub",6752:"o5-hubs",7225:"videojs",7779:"o5-main-nav",8430:"o5-mega-nav",8629:"o5calendarcenters",8766:"o5-awards-certifications"}[e]||e)+"."+{296:"5bbdc0d6e25771e66c48",354:"bd744bd979ad8eeb3733",477:"8124506dff4b0be05a13",542:"3434fa13b0dcbf821f08",661:"8314321e51f3dc432fc6",888:"88e9bbae996d92c3ed10",1105:"3e11c90d4bea5ce5eefb",1323:"c1cc01c91d7c7377196e",1396:"1917ed26dc3497cf1c20",1408:"04c81aaee16a6114b980",1479:"fc79d060b84cb325da10",1756:"5f6d26cbdb73d787bdec",2133:"17c0c6a1a848c3642f66",2945:"e11cea41cd2bd1806515",3150:"741d9eaab4a0ddecd465",3553:"0c3d1389f1556296d023",3792:"c186524567b99a9847a6",4158:"9c576e095bffa1c534d0",4233:"d3dfe39e7ecb4786f0ec",4901:"4322c2e98d02b0ff683a",4983:"a4d2ff149ea79ccfed63",5085:"15f1b02deb848b6522f1",5183:"1f4df6178da3897fce48",5226:"c789218cc47128f67be5",5227:"0e580c0eb5607c0339fd",5366:"43075b391b4a9d536155",5380:"3eab9b32c547aafa0b46",5655:"8d3fc9ad6a012018daf5",6430:"c971553e5a81c64b430d",6477:"839a4c7120ba712d01a6",6540:"5617fea31c5a0d19e4e2",6752:"29a0b7f87c90e27130ff",6962:"52a5857a3d467a3e5930",7225:"214aedec89f2884a05f2",7335:"b8905860e00158c172b3",7779:"f8b3a9c2229be4d301f2",8154:"32dab08e7edb5fe3b0d8",8430:"4cd0a623600a46798f24",8629:"2ae4fedbf16d2a22bfce",8766:"62a1d041989b445422c5",9523:"bf55c515b3f60025c406",9668:"b3d85d85f71a7441b96c",9683:"8d8866bfafd01558a6e1",9949:"c1ff00c4ed9219493ef3"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o="aem-maven-archetype:",c.l=(e,t,r,i)=>{if(n[e])n[e].push(t);else{var a,l;if(void 0!==r)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var d=s[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+r){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",o+r),a.src=e),n[e]=[t];var f=(t,o)=>{a.onerror=a.onload=null,clearTimeout(p);var r=n[e];if(delete n[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach(e=>e(o)),t)return t(o)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r={},i={},c.f.remotes=(e,t)=>{c.o(r,e)&&r[e].forEach(e=>{var n=c.R;n||(n=[]);var o=i[e];if(!(n.indexOf(o)>
6=0)){if(n.push(o),o.p)return t.push(o.p);var r=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+='\nwhile loading "'+o[1]+'" from '+o[2]),c.m[e]=()=>{throw t},o.p=0},a=(e,n,i,a,l,c)=>{try{var s=e(n,i);if(!s||!s.then)return l(s,a,c);var u=s.then(e=>l(e,a),r);if(!c)return u;t.push(o.p=u)}catch(e){r(e)}},l=(e,t,r)=>a(t.get,o[1],n,0,s,r),s=t=>{o.p=1,c.m[e]=e=>{e.exports=t()}};a(c,o[2],0,0,(e,t,n)=>e?a(c.I,o[0],0,e,l,n):r(),1)}})},c.j=480,(()=>{c.S={};var e={},t={};c.I=(n,o)=>{o||(o=[]);var r=t[n];if(r||(r=t[n]={}),!(o.indexOf(r)>=0)){if(o.push(r),e[n])return e[n];c.o(c.S,n)||(c.S[n]={});var i=c.S[n],a="aem-maven-archetype",l=(e,t,n,o)=>{var r=i[e]=i[e]||{},l=r[t];(!l||!l.loaded&&(!o!=!l.eager?o:a>l.from))&&(r[t]={get:n,from:a,eager:!!o})},s=[];if("default"===n)l("@emotion/react","11.14.0",()=>Promise.all([c.e(5655),c.e(4158),c.e(4914)]).then(()=>()=>c(54158))),l("@emotion/styled","11.14.1",()=>Promise.all([c.e(1479),c.e(4914),c.e(371)]).then(()=>()=>c(71479))),l("@uhg-ogu/companion-ui-web","0.0.50",()=>Promise.all([c.e(9949),c.e(5655),c.e(5226),c.e(4914),c.e(7822),c.e(371),c.e(988),c.e(6477)]).then(()=>()=>c(75226))),l("crypto-js","4.2.0",()=>Promise.all([c.e(1396),c.e(477)]).then(()=>()=>c(21396))),l("d3","7.9.0",()=>Promise.all([c.e(6962),c.e(5366)]).then(()=>()=>c(85366))),l("dompurify","3.4.13",()=>()=>c(99418),1),l("flatpickr","4.6.13",()=>c.e(6430).then(()=>()=>c(46430))),l("jspdf","4.2.1",()=>c.e(5085).then(()=>()=>c(85085))),l("react-dom","18.3.1",()=>Promise.all([c.e(7335),c.e(4914)]).then(()=>()=>c(87335))),l("react-helmet","6.1.0",()=>Promise.all([c.e(8154),c.e(4914)]).then(()=>()=>c(68154))),l("react-router-dom","7.18.2",()=>Promise.all([c.e(9949),c.e(1756),c.e(4914),c.e(7822)]).then(()=>()=>c(81756))),l("react","18.3.1",()=>c.e(6540).then(()=>()=>c(96540))),l("video.js","7.21.7",()=>Promise.all([c.e(5227),c.e(542)]).then(()=>()=>c(75227)));return s.length?e[n]=Promise.all(s).then(()=>e[n]=1):e[n]=1}}})(),c.p="/etc.clientlibs/dmp/clientlibs/",(()=>{var e=e=>{var t=e=>e.split(".").map(e=>+e==e?+e:e),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=n[1]?t(n[1]):[];return n[2]&&(o.length++,o.push.apply(o,t(n[2]))),n[3]&&(o.push([]),o.push.apply(o,t(n[3]))),o},t=(t,n)=>{t=e(t),n=e(n);for(var o=0;;){if(o>=t.length)return o<n.length&&"u"!=(typeof n[o])[0];var r=t[o],i=(typeof r)[0];if(o>=n.length)return"u"==i;var a=n[o],l=(typeof a)[0];if(i!=l)return"o"==i&&"n"==l||"s"==l||"u"==i;if("o"!=i&&"u"!=i&&r!=a)return r<a;o++}},n=e=>{var t=e[0],o="";if(1===e.length)return"*";if(t+.5){o+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var r=1,i=1;i<e.length;i++)r--,o+="u"==(typeof(l=e[i]))[0]?"-":(r>0?".":"")+(r=2,l);return o}var a=[];for(i=1;i<e.length;i++){var l=e[i];a.push(0===l?"not("+c()+")":1===l?"("+c()+" || "+c()+")":2===l?a.pop()+" "+a.pop():n(l))}return c();function c(){return a.pop().replace(/^\((.+)\)$/,"$1")}},o=(t,n)=>{if(0 in t){n=e(n);var r=t[0],i=r<0;i&&(r=-r-1);for(var a=0,l=1,c=!0;;l++,a++){var s,u,d=l<t.length?(typeof t[l])[0]:"";if(a>=n.length||"o"==(u=(typeof(s=n[a]))[0]))return!c||("u"==d?l>r&&!i:""==d!=i);if("u"==u){if(!c||"u"!=d)return!1}else if(c)if(d==u)if(l<=r){if(s!=t[l])return!1}else{if(i?s>t[l]:s<t[l])return!1;s!=t[l]&&(c=!1)}else if("s"!=d&&"n"!=d){if(i||l<=r)return!1;c=!1,l--}else{if(l<=r||u<d!=i)return!1;c=!1}else"s"!=d&&"n"!=d&&(c=!1,l--)}}var f=[],p=f.pop.bind(f);for(a=1;a<t.length;a++){var m=t[a];f.push(1==m?p()|p():2==m?p()&p():m?o(m,n):!p())}return!!p()},r=(e,t)=>e&&c.o(e,t),i=e=>(e.loaded=1,e.get()),a=e=>Object.keys(e).reduce((t,n)=>(e[n].eager&&(t[n]=e[n]),t),{}),l=(e,n,r,i)=>{var l=i?a(e[n]):e[n];return(n=Object.keys(l).reduce((e,n)=>o(r,n)&&(!e||t(e,n))?n:e,0))&&l[n]},s=(e,n,o)=>{var r=o?a(e[n]):e[n];return Object.keys(r).reduce((e,n)=>!e||!r[e].loaded&&t(e,n)?n:e,0)},u=(e,t,o,r)=>"Unsatisfied version "+o+" from "+(o&&e[t][o].from)+" of shared singleton module "+t+" (required "+n(r)+")",d=(e,t,o,r,i)=>{var a=e[o];return"No satisfying version ("+n(r)+")"+(i?" for eager consumption":"")+" of shared module "+o+" found in shared scope "+t+".\nAvailable versions: "+Object.keys(a).map(e=>e+" from "+a[e].from).join(", ")},f=e=>{throw new Error(e)},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=e=>function(t,n,o,r,i){var a=c.I(t);return a&&a.then&&!o?a.then(e.bind(e,t,c.S[t],n,!1,r,i)):e(t,c.S[t],n,o,r,i)},h=(e,t,n)=>n?n():((e,t)=>f("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),v=m((e,t,n,o,a,c)=>{if(!r(t,n))return h(e,n,c);var s=l(t,n,a,o);return s?i(s):c?c():void f(d(t,e,n,a,o))}),y=m((e,t,n,a,l,c)=>{if(!r(t,n))return h(e,n,c);var d=s(t,n,a);return o(l,d)||p(u(t,n,d,l)),i(t[n][d])}),b={},g={17777:()=>y("default","dompurify",!0,[1,3,1,6],()=>()=>c(99418)),44914:()=>y("default","react",!1,[1,18,2,0],()=>c.e(6540).then(()=>()=>c(96540))),371:()=>y("default","@emotion/react",!1,[1,11,11,3],()=>Promise.all([c.e(5655),c.e(4158)]).then(()=>()=>c(54158))),27822:()=>y("default","react-dom",!1,[1,18,2,0],()=>c.e(7335).then(()=>()=>c(87335))),20988:()=>v("default","@emotion/styled",!1,[1,11,11,0],()=>c.e(1479).then(()=>()=>c(71479))),5687:()=>v("default","video.js",!1,[1,7,21,6],()=>Promise.all([c.e(5227),c.e(542)]).then(()=>()=>c(75227))),79704:()=>v("default","flatpickr",!1,[1,4,6,13],()=>c.e(6430).then(()=>()=>c(46430))),66840:()=>v("default","d3",!1,[1,7,9,0],()=>Promise.all([c.e(6962),c.e(5366)]).then(()=>()=>c(85366)))};
6[17777].forEach(e=>{c.m[e]=t=>{b[e]=0,delete c.c[e];var n=g[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}});var w={371:[371],480:[17777],988:[20988],2945:[79704],3553:[66840],4914:[44914],7225:[5687],7777:[17777],7822:[27822]},S={};c.f.consumes=(e,t)=>{c.o(w,e)&&w[e].forEach(e=>{if(c.o(b,e))return t.push(b[e]);if(!S[e]){var n=t=>{b[e]=0,c.m[e]=n=>{delete c.c[e],n.exports=t()}};S[e]=!0;var o=t=>{delete b[e],c.m[e]=n=>{throw delete c.c[e],t}};try{var r=g[e]();r.then?t.push(b[e]=r.then(n).catch(o)):n(r)}catch(e){o(e)}}})}})(),(()=>{var e={480:0,7777:0};c.f.j=(t,n)=>{var o=c.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else if(/^(371|4914|7777|7822|988)$/.test(t))e[t]=0;else{var r=new Promise((n,r)=>o=e[t]=[n,r]);n.push(o[2]=r);var i=c.p+c.u(t),a=new Error;c.l(i,n=>{if(c.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",a.name="ChunkLoadError",a.type=r,a.request=i,o[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var o,r,[i,a,l]=n,s=0;if(i.some(t=>0!==e[t])){for(o in a)c.o(a,o)&&(c.m[o]=a[o]);if(l)l(c)}for(t&&t(n);s<i.length;s++)r=i[s],c.o(e,r)&&e[r]&&e[r][0](),e[r]=0},n=self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;c(22705)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.