1(()=>{"use strict";var T={3474:(o,g,l)=>{var D=l(3847),f=l(4873),m=l(5303);class S{constructor(t,n,i){if(!t)return;this.options=typeof n=="object"?n:null;const{modalId:s,triggerEl:p,toggleEl:v,focusEl:h,timerReveal:w}=this.options,d=localStorage.getItem(`timerPopup-${s}`);if(!s)throw new Error("Missing modalId");const x=t.querySelectorAll(`[data-modal-close="modal-${s}"]`);this.modalIsOpen=!1;const O=(0,m.v)(t,{initialFocus:h,allowOutsideClick:!0,clickOutsideDeactivates:!0}),q=c=>{t.setAttribute("aria-modal",!0),t.removeAttribute("aria-hidden"),t.classList.add("modal--visible"),document.documentElement.classList.add("modal-js--open"),document.documentElement.classList.add(`${s}-modal-js--open`);const b=500;s==="login"&&document.documentElement.classList.contains("modal-search-open")&&document.dispatchEvent(new Event("toggleSearch")),setTimeout(()=>{O.activate()},b),this.modalIsOpen=!0,v?.forEach(y=>y.classList.add("is-active")),p?.forEach(y=>y.classList.add("is-active")),i&&i(c,t)},H=()=>{t.removeAttribute("aria-modal"),t.setAttribute("aria-hidden",!0),t.classList.remove("modal--visible"),O.deactivate(),this.modalIsOpen=!1,v?.forEach(c=>c.classList.remove("is-active")),p?.forEach(c=>c.classList.remove("is-active")),document.documentElement.classList.remove(`${s}-modal-js--open`),document.querySelector(".modal--visible")||document.documentElement.classList.remove("modal-js--open"),window.dispatchEvent(new CustomEvent(`${s}_modal_closed`,{}))};window.addEventListener("closeModal",()=>{H()}),window.addEventListener(`close_modal:${s}`,()=>{H()}),window.addEventListener(`open_modal:${s}`,()=>{q()});const R=c=>{if(this.modalIsOpen)H();else{if(c.currentTarget.hasAttribute("data-login-modal-trigger")&&document.body.classList.contains("has-header-bottom")){const y=document.querySelector(".header-section");if(y.offsetTop>0){window.scrollTo({top:y.offsetTop+1}),setTimeout(()=>{q()},400);return}}q()}};if(t.addEventListener("click",c=>{c.target.closest(".modal__dialog")||H()}),document.addEventListener("click",c=>{c.target.closest(".modal__dialog")||!this.modalIsOpen||v&&[...v].some(y=>y===c.target)||H()},{capture:!0}),window.addEventListener("closeModal",()=>{H()}),v?.forEach(c=>{c.addEventListener("click",b=>{b.preventDefault(),R(b)})}),p?.forEach(c=>{c.addEventListener("click",b=>{b.preventDefault(),q(c)})}),w&&window.localStorage){let c=new Date;c=c.setHours(c.getHours()),(!d||d<=c)&&window.setTimeout(()=>{q()},w)}x?.forEach(c=>{c.addEventListener("click",b=>{if(b.preventDefault(),H(),w&&window.localStorage&&s){if(d>new Date)return;let y=new Date;y=y.setHours(y.getHours()+24),localStorage.setItem(`timerPopup-${s}`,y)}})})}}const A=(e,t)=>{let n=Date.now();return function(){n+t-Date.now()<0&&(e(),n=Date.now())}},k={progressBar:"[data-page-progress]"};function E(e){const t=e.querySelector(k.progressBar),n=document.querySelector(".main-content");if(!t||!n)return;const i=()=>{const v=-n.getBoundingClientRect().top/(n.offsetHeight-document.documentElement.clientHeight)*100,h=Math.floor(v),w=Math.min(Math.max(h,0),100);t.style.width=`${w}%`};i();const s=A(i,50);window.addEventListener("scroll",s)}const L={showLoginLink:"[data-show-login-form]",showRegisterLink:"[data-show-register-form]",showRecoverPasswordLink:"[data-show-recover-password-form]",loginForm:"[data-login-modal-login-form]",registerForm:"[data-login-modal-register-form]",recoverPasswordForm:"[data-login-modal-recover-password-form]"};function _(e){e.preventDefault(),document.querySelector(L.loginForm)?.classList.remove("hide"),document.querySelector(L.registerForm)?.classList.add("hide"),document.querySelector(L.recoverPasswordForm)?.classList.add("hide")}function I(e){e.preventDefault(),document.querySelector(L.loginForm)?.classList.add("hide"),document.querySelector(L.registerForm)?.classList.remove("hide"),document.querySelector(L.recoverPasswordForm)?.classList.add("hide")}function F(e){e.preventDefault(),document.querySelector(L.loginForm)?.classList.add("hide"),document.querySelector(L.registerForm)?.classList.add("hide"),document.querySelector(L.recoverPasswordForm)?.classList.remove("hide")}
1function C(){const e=document.querySelector("#modal-login"),t=document.querySelectorAll("[data-login-modal-trigger]");if(e&&t.length>0){const n=e.querySelector("#login-modal-email"),i=new S(e,{toggleEl:t,focusEl:n,modalId:"login"}),s=document.querySelectorAll(L.showLoginLink),p=document.querySelectorAll(L.showRegisterLink),v=document.querySelectorAll(L.showRecoverPasswordLink);s.forEach(h=>h.addEventListener("click",_)),p.forEach(h=>h.addEventListener("click",I)),v.forEach(h=>h.addEventListener("click",F))}}const $=(e,t=250)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(()=>{n=null,e(...i)},t)}},r={navItem:"[data-nav-item]",navOverlay:"[data-nav-fader]",navDrawerTrigger:"[data-modal-nav-trigger]",navDrawer:"[data-modal-nav]",navDropdown:"[data-nav-dropdown]",activeDropdownLinks:".nav__item--expanded",megamenu:"[data-megamenu]",navLevel2:"[data-nav-level-2]",navLevel3:"[data-nav-level-3]",navLinkLevel1:"[data-nav-link-level-1]",navLinkLevel2:"[data-nav-link-level-2]",containerNavLevel2:"[data-container-nav-level-2]",containerNavLevel3:"[data-container-nav-level-3]",containerNavLevel3Desktop:"[data-container-nav-level-3-desktop]",navCloseLevel2:"[data-nav-close-level-2]",navLevel3Close:"[data-nav-level-3-close]",megamenuLevel2Header:"[data-megamenu-level-2-header]",dropdownFader:"[data-dropdown-fader]",megamenuImages:"[data-megamenu-images]"},a={headerSticky:"header-section--sticky",headerPinned:"header-section--pinned",isExpanded:"nav__item--expanded",level2IsExpanded:"nav__item--level-2-expanded",level2LinkExpanded:"nav-level-2__link--expanded",dropdownIsActive:"dropdown-is-active",navLevel3Active:"nav-level-3--active",navLevel2LinkActive:"nav-level-2__link--active",navHidden:"nav-hidden"},P="header",j=typeof(window.Shopify?.theme?.sections?.registered||{})[P]>"u"&&(0,f.z2)(P,{onLoad(){this.header=this.container,this.headerSection=this.header.parentElement,this.navDrawer=this.container.parentElement.querySelector(r.navDrawer),this.dropdownFader=this.headerSection.querySelector(r.dropdownFader);const e=this.container.dataset.sectionSettings||"{}";this.settings=JSON.parse(e),this.bodyClassRemoveTimeout=void 0,this.desktopQuery=window.matchMedia(`(min-width: ${window.theme.breakpoints.lg}px)`),this.setHeaderHeightVar(),this.headerPositionObserver(),this.setNavDrawerAttr(),this.calculateNavDropdownMaxHeight(),this.navLinksLevel1=this.header.querySelectorAll(r.navLinkLevel1),this.navLinksLevel1.forEach(d=>d.addEventListener("click",this.navLinkLevel1ClickHandler.bind(this))),this.container.querySelectorAll(r.megamenu).forEach(d=>{const x=d.closest(r.navItem);x&&(d.addEventListener("mouseover",()=>{this.desktopQuery.matches&&x.classList.add(a.level2IsExpanded)}),d.addEventListener("mouseleave",()=>{this.desktopQuery.matches&&(x.classList.remove(a.level2IsExpanded),this.resetMegamenu(d))}))}),this.container.querySelectorAll(r.navLinkLevel2).forEach(d=>{d.addEventListener("mouseenter",this.navLinkLevel2MouseHandler.bind(this)),d.addEventListener("mouseleave",()=>{!this.desktopQuery.matches||d.getAttribute("data-nav-link-level-2")||d.classList.remove(a.navLevel2LinkActive)}),d.addEventListener("click",this.navLinkLevel2ClickHandler.bind(this))}
1),(this.header?.querySelectorAll(r.navCloseLevel2)).forEach(d=>d.addEventListener("click",this.navCloseLevel2ClickHandler.bind(this))),(this.header?.querySelectorAll(r.navLevel3Close)).forEach(d=>d.addEventListener("click",this.navCloseLevel3ClickHandler.bind(this))),this.headerSection.querySelectorAll(r.navOverlay)?.forEach(d=>{d.addEventListener("click",this.activeMenuCloseHandler.bind(this))});const v=this.container.querySelectorAll(r.navDrawerTrigger);if(v.length>0&&this.navDrawer){const d=new S(this.navDrawer,{triggerEl:v,modalId:"nav"})}const h=()=>{this.handleResize()};typeof this.desktopQuery?.addEventListener=="function"?this.desktopQuery.addEventListener("change",h.bind(this)):this.desktopQuery.addListener(h.bind(this)),E(this.headerSection),C();const w=$(()=>{this.calculateNavDropdownMaxHeight();const x=this.container.querySelector(r.activeDropdownLinks)?.querySelector(r.navDropdown);this.setDropdownFaderHeight(x)},100);window.addEventListener("resize",w)},setHeaderHeightVar(){window.requestAnimationFrame(()=>{const e=this.container.offsetHeight;document.documentElement.style.setProperty("--header-height",`${e}px`)})},setNavDrawerAttr(){const e=this.container.querySelector("[data-modal-nav]");if(this.navDrawer){if(this.desktopQuery.matches){e.removeAttribute("aria-hidden");return}e.setAttribute("aria-hidden",!0)}},handleResize(){this.activeMenuCloseHandler(),this.setHeaderHeightVar(),this.setNavDrawerAttr()},activeMenuCloseHandler(){this.container.querySelectorAll(r.activeDropdownLinks).forEach(t=>{t.classList.remove(a.isExpanded,a.level2IsExpanded),t.querySelector(r.navLinkLevel1)?.setAttribute("aria-expanded",!1),this.closeNavLevel3(t)}),this.removeBodyClassWithDelay()},setDropdownFaderHeight(e){if(!e||!this.desktopQuery.matches)return;const t=getComputedStyle(e).getPropertyValue("--nav-max-height"),n=Number(t.replace("px",""));this.dropdownFader.style.height=`${n+48}px`},removeBodyClassWithDelay(){let e=0;this.desktopQuery.matches&&(e=400),this.bodyClassRemoveTimeout=setTimeout(()=>{document.body.classList.remove(a.dropdownIsActive)},e)},expandNavItem(e,t,n){const i=n.getBoundingClientRect();if(this.desktopQuery.matches&&document.body.classList.contains("has-header-bottom")&&window.innerHeight-i.bottom<8&&window.scrollTo({top:i.bottom-window.innerHeight+window.scrollY+8}),this.setDropdownFaderHeight(n),e.classList.add(a.isExpanded),t.setAttribute("aria-expanded",!0),document.body.classList.add(a.dropdownIsActive),this.handleDropdownHiddenState(n,"visible"),this.desktopQuery.matches){const s=n.querySelector(r.megamenu);if(s){const p=s.querySelector(r.containerNavLevel3Desktop);if(p){this.closeNavLevel3(s);const v=s.querySelector(r.navLinkLevel2);if(v){const h=v.getAttribute("data-nav-link-level-2");if(h){v.classList.add(a.navLevel2LinkActive);const w=p.querySelector(`[data-nav-level-3="${h}"]`);w&&w.classList.add(a.navLevel3Active)}}}}}},collapseNavItem(e,t,n){t.setAttribute("aria-expanded",!1),e.classList.remove(a.isExpanded),this.removeBodyClassWithDelay(),this.handleDropdownHiddenState(n,"hidden")},navLinkLevel1ClickHandler(e){e.preventDefault(),clearTimeout(this.bodyClassRemoveTimeout);const t=e.currentTarget.parentElement,n=e.currentTarget,i=t.querySelector(r.navDropdown);return t.classList.contains(a.isExpanded)?this.collapseNavItem(t,n,i):(this.navLinksLevel1.forEach(s=>{s.parentElement.classList.remove(a.isExpanded),s.setAttribute("aria-expanded",!1)}),this.expandNavItem(t,n,i)),!0},navLinkLevel2MouseHandler(e){if(!this.desktopQuery.matches)return;e.preventDefault(),e.stopPropagation();const t=e.currentTarget,n=t.closest(r.megamenu),i=t.getAttribute("data-nav-link-level-2"),s=n?.querySelector(r.containerNavLevel3Desktop);if(this.closeNavLevel3(n),t.classList.add(a.navLevel2LinkActive),!s||!i)return;const p=s.querySelector(`[data-nav-level-3="${i}"]`);p&&p.classList.add(a.navLevel3Active)},closeNavLevel3(e){if(!e)return;e.querySelector(`.${a.navLevel2LinkActive}`)?.classList.remove(a.navLevel2LinkActive);const n=e.querySelector(`.${a.navLevel3Active}`);n?.classList.remove(a.navLevel3Active),this.handleDropdownHiddenState(n,"hidden")},resetMegamenu(e){if(!this.desktopQuery.matches)return;this.closeNavLevel3(e);const t=e?.querySelector(r.containerNavLevel3);t&&(t.style.transform="translateY(0px)")},navLinkLevel2ClickHandler(e){if(this.desktopQuery.matches)return;const t=e.currentTarget,n=t.closest(r.navItem);if(!n)return;const i=t.getAttribute("data-nav-link-level-2");
1if(!i)return;e.preventDefault();const s=n.querySelector(`[data-nav-level-3="${i}"]`);if(!s)return;if(s.classList.contains(a.navLevel3Active))s.classList.remove(a.navLevel3Active),this.handleDropdownHiddenState(s,"hidden"),n.classList.remove(a.level2IsExpanded),t.classList.remove(a.level2LinkExpanded);else{const v=n.querySelector(`.${a.navLevel3Active}`);if(v&&v!==s){v.classList.remove(a.navLevel3Active),this.handleDropdownHiddenState(v,"hidden");const w=n.querySelector(`.${a.level2LinkExpanded}`);w&&w.classList.remove(a.level2LinkExpanded)}s.classList.add(a.navLevel3Active),this.handleDropdownHiddenState(s,"visible"),n.classList.add(a.level2IsExpanded),t.classList.add(a.level2LinkExpanded);const h=n.querySelector(r.megamenuLevel2Header);h&&(h.textContent=t.textContent)}},navCloseLevel2ClickHandler(){const e=this.navDrawer.querySelector(`.${a.isExpanded}`),t=e?.querySelector("a"),n=e?.querySelector(r.navDropdown);t.setAttribute("aria-expanded",!1),e.classList.remove(a.isExpanded),document.body.classList.remove(a.dropdownIsActive),this.handleDropdownHiddenState(n,"hidden")},navCloseLevel3ClickHandler(e){const t=e.currentTarget.closest(r.navItem);t?.classList.remove(a.level2IsExpanded);const n=t?.querySelector(`.${a.navLevel3Active}`);n?.classList.remove(a.navLevel3Active),this.handleDropdownHiddenState(n,"hidden")},calculateNavDropdownMaxHeight(){this.header.querySelectorAll(r.navDropdown).forEach(t=>{const n=t.querySelector(r.containerNavLevel2),i=t.querySelector(r.megamenuImages),p=Array.from(t.querySelectorAll(r.navLevel3)).map(h=>h.offsetHeight),v=Math.max(...p,n?.offsetHeight||0,i?.offsetHeight||0);t.style.setProperty("--nav-max-height",`${v}px`)})},handleDropdownHiddenState(e,t="hidden"){if(e){if(t==="visible"){e.classList.remove(a.navHidden);return}e?.addEventListener("transitionend",()=>{e.classList.add(a.navHidden)},{once:!0})}},headerPositionObserver(){if(!this.settings.isSticky||!this.settings.isPositionedBottom&&!this.settings.isTransparent)return;const e=document.getElementById("MainContent")?.firstElementChild,t=new IntersectionObserver(n=>{n.forEach(i=>{if(this.settings.isPositionedBottom){this.headerSection.classList.toggle(a.headerSticky,!i.isIntersecting);return}this.settings.isTransparent&&this.headerSection.classList.toggle(a.headerPinned,!i.isIntersecting)})},{rootMargin:`${-1*this.header.offsetHeight}px`});this.desktopQuery.matches&&t.observe(e),this.desktopQuery.addEventListener("change",n=>{if(n.matches){t.observe(e);return}t.disconnect()})}})}},M={};function u(o){var g=M[o];if(g!==void 0)return g.exports;var l=M[o]={exports:{}};return T[o].call(l.exports,l,l.exports,u),l.exports}u.m=T,(()=>{var o=[];u.O=(g,l,D,f)=>{if(l){f=f||0;for(var m=o.length;m>0&&o[m-1][2]>f;m--)o[m]=o[m-1];o[m]=[l,D,f];return}for(var S=1/0,m=0;m<o.length;m++){for(var[l,D,f]=o[m],A=!0,k=0;k<l.length;k++)(f&!1||S>=f)&&Object.keys(u.O).every(C=>u.O[C](l[k]))?l.splice(k--,1):(A=!1,f<S&&(S=f));if(A){o.splice(m--,1);var E=D();E!==void 0&&(g=E)}}return g}})(),u.d=(o,g)=>{for(var l in g)u.o(g,l)&&!u.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:g[l]})},u.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),u.o=(o,g)=>Object.prototype.hasOwnProperty.call(o,g),u.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},u.j=613,(()=>{var o={613:0};u.O.j=D=>o[D]===0;var g=(D,f)=>{var[m,S,A]=f,k,E,L=0;if(m.some(I=>o[I]!==0)){for(k in S)u.o(S,k)&&(u.m[k]=S[k]);if(A)var _=A(u)}for(D&&D(f);L<m.length;L++)E=m[L],u.o(o,E)&&o[E]&&o[E][0](),o[E]=0;return u.O(_)},l=globalThis.webpackChunkdeus_ex_machina=globalThis.webpackChunkdeus_ex_machina||[];l.forEach(g.bind(null,0)),l.push=g.bind(null,l.push.bind(l))})();var N=u.O(void 0,[293],()=>u(3474));N=u.O(N)})();
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.