"use strict";(self.webpackJsonpRuntime=self.webpackJsonpRuntime||[]).push([[864],{7174:(e,t,n)=>{n.d(t,{$M:()=>s,L3:()=>r,mo:()=>a,v:()=>l,zE:()=>o});const a='[data-target-page-alias^="mega_menu:"]',i="mega-menu-",r=`[data-target-page-alias^="${i}"]`,o="multi-mega-menu",l=`#${o}`,s=`${l} > div[id^="${i}"]`},864:(e,t,n)=>{n.r(t),n.d(t,{init:()=>i,services:()=>l});var a=n(7174);function i(){!function(){const e=document.querySelectorAll('.dmMobileBody [dmle_extension="onelinksmenu"] li.dmUDNavigationItem_dmMore > a');e.forEach((e=>e.removeEventListener("click",r))),e.forEach((e=>e.addEventListener("click",r)))}(),[...document.querySelectorAll(".unifiednav:not([data-nav-structure='VERTICAL']) .unifiednav__container_sub-nav[data-depth=\"0\"]")].forEach((e=>{const t=e.querySelector(".unifiednav__container"),n=e.getBoundingClientRect();n.top+n.height<=window.innerHeight||(t?(e.style.transition="transform 0.1s ease-out, opacity 0.1s ease-out, clip-path 0.1s ease-out",e.addEventListener("wheel",(e=>{e.preventDefault();const t=e.currentTarget,a=Number(t.dataset.scrollY||0),i=window._navScrollSpeed||35,r=e.deltaY>0?i:-i,o=n.height-window.innerHeight+n.top,l=Math.max(0,Math.min(a+r,o));t.dataset.scrollY=l,t.style.transform=`translate(0, -${l}px)`,t.style.clipPath=`inset(${l}px -100vw -100vw -100vw)`}))):(e.style.maxHeight="65vh",e.style.overflow="auto"))})),function(){const e="Tab",t="Enter",n="Escape",a="Space",i="ArrowLeft",r="ArrowUp",o="ArrowRight",l="ArrowDown",s=document.querySelectorAll(".unifiednav");Array.from(s).forEach((s=>{const c=s.querySelectorAll(".unifiednav > ul > li, .middleLogoLink"),u=s.querySelectorAll(".unifiednav > ul > li li");let d,h,f=0,g=[];const p=e=>{e.style.removeProperty("opacity"),e.style.removeProperty("max-height")},m=()=>{d&&(p(d),d=null)},y=()=>{g.forEach((e=>p(e))),g=[]},v=e=>{const t=e.getElementsByTagName("a")[0];t&&t.focus()},M=e=>{f=e,e===c.length?f=0:e<0&&(f=c.length-1),c[f].classList.contains("middleLogoLink")?c[f].focus():v(c[f])},b=(e,t)=>{h=t;const n=e.children;t===n.length?h=0:t<0&&(h=n.length-1),v(n[h]),(e=>{d=e,d.style.opacity=1,d.style.maxHeight="initial",g.push(e)})(e)},k=e=>{e.getElementsByTagName("a")[0].click()};Array.prototype.forEach.call(c,((s,u)=>{(({element:e,index:t})=>{Array.from(e.querySelectorAll("a")).forEach(((n,a)=>{n.closest(".unifiednav__container_sub-nav")?n.setAttribute("tabindex","-1"):n.setAttribute("tabindex","0"),0===t&&0===a&&e.addEventListener("focus",(()=>{f=0}))}))})({element:s,index:u}),s.addEventListener("focus",(()=>{h=0,Array.prototype.forEach.call(c,(e=>{e.setAttribute("aria-expanded","false")}))})),s.addEventListener("click",(function(){"false"===this.getAttribute("aria-expanded")||null===this.getAttribute("aria-expanded")?this.setAttribute("aria-expanded","true"):this.setAttribute("aria-expanded","false")})),s.addEventListener("keydown",(function(s){let c=!1;const u=this.querySelector("ul");switch(s.code){case o:M(f+1),y(),c=!0;break;case i:M(f-1),y(),c=!0;break;case e:y();break;case a:case t:u?(h=0,m(),b(u,0)):k(this),c=!0;break;case l:u&&(h=0,b(u,0),c=!0);break;case r:u&&(h=u.querySelectorAll("li").length-1,b(u,h),c=!0);break;case n:m(),M(f),c=!0;break;default:c=!1}c&&s.preventDefault()}))})),Array.prototype.forEach.call(u,(s=>{s.addEventListener("keydown",(function(s){let c=!1;const u=this.querySelector("ul"),g=this.parentNode.parentNode,p=g.closest(".unifiednav__container_sub-nav"),v=()=>{m(),h=Array.prototype.indexOf.call(p.children,g),d=p,b(p,h)};switch(s.code){case e:y();break;case o:u?b(u,0):(M(f+1),y()),c=!0;break;case i:p?v():(M(f-1),y()),c=!0;break;case n:p?v():(M(f),m()),c=!0;break;case l:b(this.parentNode,h+1),c=!0;break;case r:b(this.parentNode,h-1),c=!0;break;case t:case a:u?b(u,0):k(this),c=!0;break;default:c=!1}return c&&(s.preventDefault(),s.stopPropagation()),!1}))}))}))}(),window.flexSite&&document.querySelector(a.mo)&&n.e(931).then(n.bind(n,7931)).then((e=>{e.registerMegaMenu()})),window.flexSite&&document.querySelector(a.L3)&&o().then((e=>{e.registerMegaMenu()}))}function r(e){const t=e.target.closest("li.dmUDNavigationItem_dmMore");t.classList.add("hover"),document.body.addEventListener("click",(()=>{t.classList.remove("hover")}),{once:!0})}async function o(){return n.e(301).then(n.bind(n,5301))}const l={openMegaMenu:function(...e){n.e(931).then(n.bind(n,7931)).then((t=>{t.openMegaMenu(...e)}))},closeMegaMenus:function(...e){n.e(931).then(n.bind(n,7931)).then((t=>{t.closeMegaMenus(...e)}))},handleBodyScrollWithMegaMenu:function(...e){n.e(931).then(n.bind(n,7931)).then((t=>{t.handleBodyScrollWithMegaMenu(...e)}))},openMultiMegaMenu:function(...e){o().then((t=>{t.openMultiMegaMenu(...e)}))},closeMultiMegaMenus:function(...e){o().then((t=>{t.closeMultiMegaMenus(...e)}))},handleBodyScrollWithMultiMegaMenu:function(...e){n.e(301).then(n.bind(n,5301)).then((t=>{t.handleBodyScrollWithMegaMenu(...e)}))}}}}]);