PageSourceSearch

https://www.hubspot.fr/hubfs/hub_generated/template_assets/1/207928094069/1790170497416/template_header.min.js

js hubspot.fr collected 2026-09-24 15:20:55 UTC 44,738 bytes, 3 lines download raw bytes

1/*! For license information please see header.js.LICENSE.txt */
2(()=>{"use strict";let t="data-cl-mounted",e=["hubspot.com","hubspot.de","hubspot.fr","hubspot.es","hubspot.jp"];class n{static hasCookie(t){return decodeURIComponent(document.cookie).split("; ").some(e=>0===e.indexOf(t+"="))}static getExpirationDate(t=0){var e=new Date;return e.setDate(e.getDate()+t),e.toUTCString()}static isCookieDebug(){return"true"===new URLSearchParams(window.location.search).get("cookieDebug")}static getProductionDomain(t=window.location.hostname){return e.find(e=>t===e||t.endsWith("."+e))||"hubspot.com"}static getDomain(){var t=n.isCookieDebug(),e=n.getProductionDomain();return t?window.location.hostname:e}static buildCookie(t,e,i){return i={path:"/",daysToExpire:180,domain:n.getDomain(),...i},t+`=${e};expires=${n.getExpirationDate(i.daysToExpire)};path=${i.path};domain=`+i.domain}static setCookie(t,e=1,i={}){document.cookie=n.buildCookie(t,e,i)}static removeCookie(t,e){e={...e,daysToExpire:-1},n.setCookie(t,"",e)}}const i=n;let r="high-contrast",o="hs_high_contrast",s=()=>document.body.classList.contains(r),l="Escape",h="Home",b="ArrowLeft",f="ArrowUp",d="ArrowRight",y="ArrowDown",p="-collapsed",v=t=>t.classList.contains("-secondary"),g=t=>{(t=t.currentTarget).focus(),t.classList.remove(p)},m=t=>{t.currentTarget.classList.remove(p)},w=t=>{t.currentTarget.classList.remove(p)},E=t=>{t.currentTarget.classList.remove(p)},L="a11y-contrast-toggle__switch",T="."+L,S=`<span class="${L}" aria-hidden="true">\n  <span class="a11y-contrast-toggle__contrast-icon"></span>\n</span>`,k=()=>Array.from(document.querySelectorAll(".a11y-contrast-toggle")),A=(t=!s())=>{var e;e=t,document.body.classList.toggle(r,e),(t=>{var e=k();let n=t?"true":"false";e.forEach(t=>t.setAttribute("aria-checked",n))})(t),((t=!i.hasCookie(o))=>{t?i.setCookie(o,!0):i.removeCookie(o)})(t)},O=()=>{A()},C=["button",'input:not([type="hidden"])',"select","textarea","a[href]",'[contenteditable]:not([contenteditable="false"])','[tabindex]:not([tabindex=""])',"iframe"].join(","),P=t=>(t=>{var{display:e,visibility:n,position:i}=window.getComputedStyle(t),i="fixed"===i,r=[document.documentElement,document.body].includes(t);return(null!==t.offsetParent||r||i)&&"none"!==e&&"hidden"!==n})(t)&&!(t=>t.hasAttribute("disabled")||null!==t.closest("fieldset[disabled]"))(t),j=(t,e={})=>{var n=(i=t instanceof HTMLElement)?t:document.body,i=(i?e:t)||{};return((t=document.body,{includeContainer:e=!1}={})=>{var n=Array.from(t.querySelectorAll(C));return e&&(t=>t.matches(C)||t===document.body)(t)&&n.unshift(t),n})(n,{includeContainer:!1,...i}).filter(P)};j.functionName="getFocusableElements";const D=j;let B=t=>0<=(t=>{var e=parseInt(t.getAttribute("tabindex"),10);return Number.isNaN(e)?t.isContentEditable?0:t.tabIndex:e})(t);const x=(t,{container:e,strict:n=!1}={})=>{e=e instanceof Element?e:document.documentElement;let i=null;if(t instanceof Element?i=e.contains(t)?t:null:"string"==typeof t&&(i=((t,{container:e}={})=>((t,{container:e}={})=>(t=document.getElementById(t),e instanceof Element&&!e.contains(t)?null:t))(t,{container:e})||((t,{container:e}={})=>(e instanceof Element?e:document.documentElement).querySelector(t))(t,{container:e}))(t,{container:e})),n&&!i)throw new Error("[getElement]: No element found.",{elementArgument:t,container:e});return i},R=class{_container=null;_isSet=!1;get _isActive(){return this._isSet&&null!==this._container&&document.body.contains(this._container)}_focusableElements=[];_tabbableElements=[];get isSet(){return this._isSet}get tabbableElements(){return this._tabbableElements}get _firstFocusableElement(){return this._focusableElements[0]||this._container}get _firstTabbableElement(){return this._tabbableElements[0]||this._container}get _lastTabbableElement(){var t=this._tabbableElements.length;return t?this._tabbableElements[t-1]:this._container}constructor(t){t=x(t,{strict:!0}),this._container=t,this.update(),document.addEventListener("keydown",this._handleKeyDown)}_handleKeyDown=t=>{this._isActive&&"Tab"===t.key&&this._handleTab(t)};_handleTab=t=>{t.shiftKey||t.target!==this._lastTabbableElement?t.shiftKey&&[this._firstFocusableElement,this._firstTabbableElement].includes(t.target)?(t.preventDefault(),this._lastTabbableElement.focus()):this._container.contains(t.target)||(t.preventDefault(),this._firstTabbableElement.focus()):(t.preventDefault(),this._firstTabbableElement.focus())};
2update(){this._focusableElements=D(this._container,{includeContainer:!0}),this._tabbableElements=this._focusableElements.filter(B)}set({focus:t}={focus:!0}){this.update(),this._isSet=!0,t&&this.focus()}focus(){!this._container.contains(document.activeElement)&&this._firstFocusableElement&&this._firstFocusableElement.focus()}unset(){this._isSet=!1}destroy(){this._isSet=!1,this._container=null,this._focusableElements=[],this._tabbableElements=[],document.removeEventListener("keydown",this._handleKeyDown)}},I=async()=>{try{const t=await fetch("https://wtcfns.hubspot.com/wt-api/current-user",{credentials:"include"});if(t.ok){const{isLoggedIn:e}=await t.json();return"boolean"==typeof e?e:(console.warn("[isUserLoggedIn] Invalid response format",e),!1)}return console.warn(`[isUserLoggedIn] Response not ok. ${t.status} - ${t.statusText}`),!1}catch(t){return console.warn(`[isUserLoggedIn] ${t}`),!1}};function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function q(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,U(i.key),i)}}function H(t,e,n){return(e=U(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(t){var e=function(t){if("object"!=N(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==N(e)?e:e+""}Object.freeze({PROD:"PROD",QA:"QA",DEV:"DEV"});const K=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.isMobileCheck,r=n.toggleListener;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),H(this,"_active",!1),H(this,"container",null),H(this,"button",null),H(this,"list",null),H(this,"id",null),H(this,"toggleListener",null),H(this,"isMobileCheck",null);try{if(this.container=e,!(e instanceof HTMLElement))throw new Error("[NavMenu] container must be an instance of HTMLElement.");if(this.button=e.querySelector("[aria-controls]"),!this.button)throw new Error("[NavMenu] Button with aria-controls attribute to toggle menu not found.");if(this.id=this.button.getAttribute("aria-controls"),this.list=e.querySelector('[id="'.concat(this.id,'"]')),!this.list)throw new Error('[NavMenu] Element containing navigation links, with id="'.concat(this.id,'", not found.'));"function"==typeof r&&(this.toggleListener=r),this.isMobileCheck=i,this.button.addEventListener("click",this.handleButtonClick.bind(this)),this.container.addEventListener("keydown",this.handleKeyDown.bind(this))}catch(t){console.error(t)}}return e=t,n=[{key:"isMobile",get:function(){return this.isMobileCheck&&this.isMobileCheck()}},{key:"isActive",get:function(){return this._active}},{key:"keyDownControls",get:function(){return H(H({},l,this.handleEscapeKeyDown.bind(this))," ",t.handleSpaceKeyDown)}},{key:"handleButtonClick",value:function(){this.toggle()}},{key:"handleEscapeKeyDown",value:function(){this.close()}},{key:"handleKeyDown",value:function(t){var e=this.keyDownControls[t.key];"function"==typeof e&&e(t)}},{key:"open",value:function(){this.toggle(!0)}},{key:"close",value:function(){this.toggle(!1)}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this._active;t!==this._active&&(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!function(t){return"true"===t.getAttribute("aria-expanded")}(t);t.setAttribute("aria-expanded",String(e))}(this.button,t),this._active=t,this.toggleListener&&this.toggleListener(this))}}],i=[{key:"handleSpaceKeyDown",value:function(t){t.target.hasAttribute("href")&&t.preventDefault()}}],n&&q(e.prototype,n),i&&q(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i}();function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function F(t){var e=function(t){if("object"!=V(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==V(e)?e:e+""}function z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(z=function(){return!!t})()}function Q(){return Q="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=W(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},Q.apply(null,arguments)}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},W(t)}function $(t,e){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$(t,e)}const X=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.backButtonSelector,o=i.backButtonClickListener,s=i.toggleListener,a=i.isMobileCheck;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e,n){return e=W(e),function(t,e){if(e&&("object"==V(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,z()?Reflect.construct(e,n||[],W(t).constructor):e.apply(t,n))}(this,e,[t,{isMobileCheck:a,toggleListener:s}]);var l=t.querySelector(r);return l&&"function"==typeof o&&l.addEventListener("click",o),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$(t,e)}(e,t),n=e,i=[{key:"handleEscapeKeyDown",value:function(t){this.isMobile&&(function(t,e,n){var i=Q(W(t.prototype),"handleEscapeKeyDown",n);return"function"==typeof i?function(t){return i.apply(n,t)}:i}(e,0,this)([t]),this.button.focus())}}],i&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,F(i.key),i)}}
2(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(K);function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach(function(e){st(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function et(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(et=function(){return!!t})()}function nt(t,e){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nt(t,e)}function it(t,e,n,i){var r=rt(ot(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof r?function(t){return r.apply(n,t)}:r}function rt(){return rt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=ot(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},rt.apply(null,arguments)}function ot(t){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ot(t)}function st(t,e,n){return(e=at(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t){var e=function(t){if("object"!=G(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==G(e)?e:e+""}var lt=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.isMobileCheck,o=i.toggleListener,s=i.transitionEndListener,a=i.hoverListener,l=i.stayOpenCheck;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),st(n=function(t,e,n){return e=ot(e),function(t,e){if(e&&("object"==G(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,et()?Reflect.construct(e,n||[],ot(t).constructor):e.apply(t,n))}(this,e,[t,{isMobileCheck:r,toggleListener:o}]),"firstLink",null),st(n,"transitionEndListener",null),st(n,"hoverListener",null),st(n,"stayOpenCheck",null),st(n,"bodyClickListener",null),st(n,"closeTimer",null),n.firstLink=n.list.querySelector("a[href]"),"function"==typeof s&&(n.transitionEndListener=s,n.list.addEventListener("transitionend",n.handleListTransitionEnd.bind(n))),"function"==typeof a&&(n.hoverListener=a,n.container.addEventListener("mouseenter",n.handleMouseEnter.bind(n))),"function"==typeof l&&(n.stayOpenCheck=l),n.bodyClickListener=n.handleBodyClick.bind(n),n.container.addEventListener("click",n.handleButtonClick.bind(n)),n.container.addEventListener("mouseleave",n.handleMouseLeave.bind(n)),document.body.addEventListener("keydown",n.handleBodyKeyDown.bind(n)),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nt(t,e)}(e,t),n=e,i=[{key:"focusTarget",get:function(){return this.isActive?this.firstLink:this.button}},{key:"keyDownControls",get:function(){return J(J({},it(e,"keyDownControls",this,1)),{},st({},"Tab",this.handleTabKeyDown.bind(this)))}},{key:"handleMouseEnter",value:function(){this.clearCloseTimer(),this.isMobile||this.isActive||this.hoverListener&&this.hoverListener({submenu:this,isHovering:!0})}},{key:"handleMouseLeave",value:function(){var t=this;if(!this.isMobile){this.hoverListener&&this.hoverListener({submenu:this,isHovering:!1}),this.clearCloseTimer();var n=Date.now()+e.CLOSE_MAX_MS,i=function(){t.closeTimer=null,t.container.matches(":hover")||(t.stayOpenCheck&&t.stayOpenCheck(t)&&Date.now()<n?t.closeTimer=setTimeout(i,e.CLOSE_RETRY_MS):t.closeIfFocusOutside())};this.closeTimer=setTimeout(i,e.CLOSE_GRACE_MS)}}},{key:"handleButtonClick",value:function(t){t.stopPropagation(),it(e,"handleButtonClick",this,3)([t])}},{key:"handleEscapeKeyDown",value:function(t){this.isMobile&&this.isActive&&t.stopPropagation(),it(e,"handleEscapeKeyDown",this,3)([t]),!this.isMobile&&this.list.contains(document.activeElement)&&this.button.focus()}},{key:"handleTabKeyDown",value:function(){var t=this;this.isMobile||setTimeout(function(){t.closeIfFocusOutside()})}},{key:"handleBodyKeyDown",value:function(t){"Escape"!==t.key||this.container.contains(t.target)||this.isMobile||this.handleEscapeKeyDown(t)}},{key:"handleListTransitionEnd",value:function(t){this.isMobile&&"visibility"===t.propertyName&&this.transitionEndListener&&this.transitionEndListener(this)}},{key:"handleBodyClick",value:function(t){var e=this;this.button.contains(t.target)||setTimeout(function(){e.closeIfFocusOutside(t.target)})}}
2,{key:"addBodyClickListener",value:function(){document.body.addEventListener("click",this.bodyClickListener)}},{key:"removeBodyClickListener",value:function(){document.body.removeEventListener("click",this.bodyClickListener)}},{key:"clearCloseTimer",value:function(){clearTimeout(this.closeTimer),this.closeTimer=null}},{key:"closeIfFocusOutside",value:function(t){var e=t||document.activeElement;this.list.contains(e)||this.isMobile||this.close()}},{key:"toggle",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.isActive;n!==this.isActive&&(this.container.classList.toggle("-dropdown-active",n),n?setTimeout(function(){t.addBodyClickListener()}):(this.removeBodyClickListener(),this.clearCloseTimer()),it(e,"toggle",this,3)([n]),this.toggleListener&&this.toggleListener({isActive:n,submenu:this}))}}],i&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,at(i.key),i)}}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(K);st(lt,"CLOSE_GRACE_MS",180),st(lt,"CLOSE_RETRY_MS",60),st(lt,"CLOSE_MAX_MS",600);const ut=lt;function ct(t){return ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ct(t)}function bt(t,e,n){return(e=ft(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ft(t){var e=function(t){if("object"!=ct(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ct(e)?e:e+""}var dt="http://www.w3.org/2000/svg",yt=function(t){for(var e=t;e>Math.PI;)e-=2*Math.PI;for(;e<-Math.PI;)e+=2*Math.PI;return e},pt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bt(this,"history",[]),bt(this,"debug",null),this.mouseMoveListener=this.handleMouseMove.bind(this),document.addEventListener("mousemove",this.mouseMoveListener,{passive:!0});var e=new URLSearchParams(window.location.search);"true"===e.get("stDebug")&&"true"===e.get("hsDebug")&&this.initDebug()}return e=t,(n=[{key:"handleMouseMove",value:function(t){var e=t.clientX,n=t.clientY,i=Date.now();for(this.history.push({x:e,y:n,t:i});this.history.length>1&&i-this.history[0].t>120;)this.history.shift();this.debug&&this.updateDebug(e,n)}},{key:"isHeadingTowards",value:function(e,n){if(this.history.length<2)return!1;var i=this.history[this.history.length-1],r=this.history[0];if(void 0!==n&&r.y<n)return!1;var o=i.x-r.x,s=i.y-r.y;if(Math.sqrt(o*o+s*s)<2)return!1;var a=e.getBoundingClientRect();if(i.y>=a.top)return!1;var l,u,c,h,b,f,d,y,p=t.BASE_CLAMP_PX,v=Math.max(a.left,i.x-p),g=Math.min(a.right,i.x+p);return l=Math.atan2(s,o),u=Math.atan2(a.top-i.y,v-i.x),c=Math.atan2(a.top-i.y,g-i.x),h=yt(l),b=yt(u),f=yt(c),d=Math.min(b,f),(y=Math.max(b,f))-d<=Math.PI?h>=d&&h<=y:h<=d||h>=y}},{key:"initDebug",value:function(){var e=document.createElementNS(dt,"svg");e.id="st-debug-svg",e.style.cssText=["position:fixed","top:0","left:0","width:100vw","height:100vh","pointer-events:none","z-index:99998","overflow:visible"].join(";");var n=document.createElementNS(dt,"path");n.setAttribute("stroke-width","1.5"),n.setAttribute("stroke-dasharray","4 3"),e.appendChild(n);var i=document.createElementNS(dt,"text");i.setAttribute("font-size","11"),i.setAttribute("font-family","monospace"),e.appendChild(i),document.body.appendChild(e),this.debug={svg:e,path:n,label:i},console.log("%c✅ Safe triangle debug enabled","color: green; font-weight: bold","\n• blue = triangle defined, green = suppressing switch","\n• clamp: ".concat(t.BASE_CLAMP_PX,"px"))}},{key:"updateDebug",value:function(e,n){var i=this.debug,r=i.path,o=i.label,s=function(){var t=document.querySelector(".global-nav-header [data-global-nav-has-dropdown].-dropdown-active");if(!t)return null;var e=t.querySelector("[aria-controls]");if(!e)return null;var n=document.getElementById(e.getAttribute("aria-controls"));return n?{panel:n,navTop:e.getBoundingClientRect().top}:null}();if(!s)return r.setAttribute("d",""),void o.setAttribute("visibility","hidden");var a=s.panel.getBoundingClientRect();if(n>=a.top)return r.setAttribute("d",""),void o.setAttribute("visibility","hidden");var l=t.BASE_CLAMP_PX,u=Math.max(a.left,e-l),c=Math.min(a.right,e+l);r.setAttribute("d","M ".concat(e," ").concat(n," L ").concat(u," ").concat(a.top," L ").concat(c," ").concat(a.top," Z"));
2var h=this.isHeadingTowards(s.panel,s.navTop);r.setAttribute("fill",h?"rgba(0, 180, 80, 0.12)":"rgba(0, 120, 255, 0.08)"),r.setAttribute("stroke",h?"rgba(0, 180, 80, 0.5)":"rgba(0, 120, 255, 0.35)"),o.setAttribute("x",e+8),o.setAttribute("y",n-6),o.setAttribute("fill",h?"rgba(0, 140, 60, 0.8)":"rgba(0, 80, 200, 0.7)"),o.setAttribute("visibility","visible"),o.textContent=h?"✓ safe zone — suppressing switch":"△ safe triangle"}}])&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ft(i.key),i)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();bt(pt,"BASE_CLAMP_PX",1400);const vt=pt;function gt(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof a?i:a,u=Object.create(l.prototype);return mt(u,"_invoke",function(n,i,r){var o,a,l,u=0,c=r||[],h=!1,b={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,a=0,l=t,b.n=n,s}};function f(n,i){for(a=n,l=i,e=0;!h&&u&&!r&&e<c.length;e++){var r,o=c[e],f=b.p,d=o[2];n>3?(r=d===i)&&(l=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(a=0,b.v=i,b.n=o[1]):f<d&&(r=n<3||o[0]>i||i>d)&&(o[4]=n,o[5]=i,b.n=d,a=0))}if(r||n>1)return s;throw h=!0,i}return function(r,c,d){if(u>1)throw TypeError("Generator is already running");for(h&&1===c&&f(c,d),a=c,l=d;(e=a<2?t:l)||!h;){o||(a?a<3?(a>1&&(b.n=-1),f(a,l)):b.n=l:b.v=l);try{if(u=2,o){if(a||(r="next"),e=o[r]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);o=t}else if((e=(h=b.n<0)?l:n.call(i,b))!==s)break}catch(e){o=t,a=1,l=e}finally{u=1}}return{value:e,done:h}}}(n,r,o),!0),u}var s={};function a(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(mt(e={},i,function(){return this}),e),h=u.prototype=a.prototype=Object.create(c);function b(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,mt(t,r,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=u,mt(h,"constructor",u),mt(u,"constructor",l),l.displayName="GeneratorFunction",mt(u,r,"GeneratorFunction"),mt(h),mt(h,r,"Generator"),mt(h,i,function(){return this}),mt(h,"toString",function(){return"[object Generator]"}),(gt=function(){return{w:o,m:b}})()}function mt(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}mt=function(t,e,n,i){function o(e,n){mt(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},mt(t,e,n,i)}function wt(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,r)}function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function Tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function St(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,At(i.key),i)}}function kt(t,e,n){return(e=At(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function At(t){var e=function(t){if("object"!=Lt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Lt(e)?e:e+""}var _t=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),kt(this,"tabTrap",null),kt(this,"burgerMenu",null),kt(this,"submenus",[]),kt(this,"activeSubmenuIndices",[]),kt(this,"safeTriangle",null),kt(this,"hoverTimers",new Map),kt(this,"ui",{header:null,innerNav:null,primaryNav:null}),kt(this,"isMobileMediaQueryList",null),t.updateLoginButton(),this.ui.header=document.querySelector(".global-nav-header"),this.ui.header&&(this.ui.primaryNav=this.ui.header.querySelector(".global-nav-main"),this.ui.innerNav=this.ui.header.querySelector(".global-nav-main-inner"),this.ui.primaryNav&&this.ui.innerNav&&(this.safeTriangle=new vt,this.initTabTrap(),this.initBurgerMenu(),this.initSubmenus(),this.initViewportChangeListener()))}return e=t,n=[{key:"isMobileCheck",value:function(){return this.isMobileMediaQueryList&&this.isMobileMediaQueryList.matches}},{key:"initTabTrap",value:function(){this.tabTrap=new R(this.ui.innerNav)}},{key:"handleViewportChange",value:function(t){!t.matches&&this.burgerMenu&&this.burgerMenu.close(),this.clearAllHoverTimers(),this.closeSubmenus()}},{key:"initViewportChangeListener",value:function(){this.isMobileMediaQueryList=window.matchMedia(t.IS_MOBILE_MEDIA_QUERY),this.isMobileMediaQueryList.addEventListener("change",this.handleViewportChange.bind(this))}},{key:"initBurgerMenu",value:function(){this.burgerMenu=new X(this.ui.innerNav,{toggleListener:this.handleBurgerMenuToggle.bind(this),isMobileCheck:this.isMobileCheck.bind(this),backButtonSelector:"[data-global-nav-back-btn]",backButtonClickListener:this.handleBurgerBackButtonClick.bind(this)})}},{key:"handleBurgerBackButtonClick",value:function(t){t.stopPropagation();var e=this.activeSubmenuIndices.pop(),n=this.submenus[e];n&&this.handleSubmenuToggle({isActive:!1,submenu:n}),0===this.activeSubmenuIndices.length&&this.handleBurgerBackButtonToggle(
2)}},{key:"handleBurgerMenuToggle",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).isActive;this.ui.primaryNav.classList.toggle("-burger-menu-open",t),document.body.classList.toggle("-burger-menu-open",t),t?(this.tabTrap.set({focus:!1}),this.ui.primaryNav.setAttribute("role","dialog"),this.ui.primaryNav.setAttribute("aria-modal",!0)):(this.ui.primaryNav.removeAttribute("role"),this.ui.primaryNav.removeAttribute("aria-modal"),this.closeSubmenus(),this.tabTrap.unset())}},{key:"initSubmenus",value:function(){var t=this,e=function(t){return function(t){if(Array.isArray(t))return Tt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Tt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(t,e):void 0}}(t)||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.")}()}(this.ui.header.querySelectorAll("[data-global-nav-has-dropdown]"));this.submenus=e.map(function(e){return new ut(e,{isMobileCheck:t.isMobileCheck.bind(t),toggleListener:t.handleSubmenuToggle.bind(t),transitionEndListener:t.handleSubmenuTransitionEnd.bind(t),hoverListener:t.handleSubmenuHover.bind(t),stayOpenCheck:t.handleSubmenuStayOpen.bind(t)})})}},{key:"handleSubmenuToggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.isActive,i=e.submenu,r=this.submenus.indexOf(i);if(i&&-1!==r)if(n)this.handleBurgerBackButtonToggle(!0),this.activeSubmenuIndices.push(r),this.isMobileCheck()||this.submenus.forEach(function(e,n){if(n!==r){e.close();var i=t.activeSubmenuIndices.indexOf(n);-1!==i&&t.activeSubmenuIndices.splice(i,1)}});else{this.submenus[r].close();var o=this.activeSubmenuIndices.indexOf(r);-1!==o&&this.activeSubmenuIndices.splice(o,1)}}},{key:"handleSubmenuTransitionEnd",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).focusTarget;this.tabTrap.update(),t&&t.focus()}},{key:"getOpenSubmenu",value:function(t){return this.submenus.find(function(e){return e.isActive&&e!==t})}},{key:"handleSubmenuStayOpen",value:function(t){if(this.isMobileCheck())return!1;if(!window.matchMedia("(pointer: fine)").matches)return!1;if(!t||!t.isActive)return!1;var e=t.button.getBoundingClientRect().top;return this.safeTriangle.isHeadingTowards(t.list,e)}},{key:"clearHoverTimer",value:function(t){clearTimeout(this.hoverTimers.get(t)),this.hoverTimers.delete(t)}},{key:"clearAllHoverTimers",value:function(){this.hoverTimers.forEach(function(t){return clearTimeout(t)}),this.hoverTimers.clear()}},{key:"handleSubmenuHover",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.submenu,r=n.isHovering;if(this.clearHoverTimer(i),r&&!this.isMobileCheck()&&window.matchMedia("(pointer: fine)").matches){var o=this.getOpenSubmenu(i);if(o){var s=i.button.getBoundingClientRect().top,a=Date.now()+t.MAX_SUPPRESS_MS,l=function(){if(e.hoverTimers.delete(i),i.container.matches(":hover")){var n=e.getOpenSubmenu(i);n&&(e.safeTriangle.isHeadingTowards(n.list,s)&&Date.now()<a?e.hoverTimers.set(i,setTimeout(l,t.RETRY_MS)):i.open())}};this.safeTriangle.isHeadingTowards(o.list,s)?this.hoverTimers.set(i,setTimeout(l,t.SWITCH_DELAY_MS)):i.open()}}}},{key:"handleBurgerBackButtonToggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.ui.innerNav;e.classList.toggle("-secondary-burger-menu-open",t),e.classList.toggle("-burger-logo-slide-left",!t)}},{key:"closeSubmenus",value:function(){this.clearAllHoverTimers(),this.submenus.forEach(function(t){t.clearCloseTimer(),t.close()}),this.handleBurgerBackButtonToggle(),this.activeSubmenuIndices.length=0}}],i=[{key:"IS_MOBILE_MEDIA_QUERY",get:function(){return"(max-width: ".concat("1080px",")")}}],n&&St(e.prototype,n),i&&St(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i}();
2kt(_t,"SWITCH_DELAY_MS",120),kt(_t,"RETRY_MS",50),kt(_t,"MAX_SUPPRESS_MS",600),kt(_t,"updateLoginButton",function(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){wt(o,i,r,s,a,"next",t)}function a(t){wt(o,i,r,s,a,"throw",t)}s(void 0)})}}(gt().m(function t(){var e,n;return gt().w(function(t){for(;;)switch(t.n){case 0:if((e=document.querySelectorAll("[data-logged-in-text]")).length){t.n=1;break}return t.a(2);case 1:return t.n=2,I();case 2:n=t.v,e.forEach(function(t){var e=t.dataset,i=e.loggedInText,r=void 0===i?"":i,o=e.loggedInHref,s=void 0===o?"":o,a=t.querySelector("span");r&&"done"!==r&&n&&((a||t).textContent=r),s&&n&&t.setAttribute("href",s),t.dataset.loggedInText="done"});case 3:return t.a(2)}},t)})));const Ot=_t,Mt=(t,e,n)=>t.setAttribute("aria-"+e,n);class Ct{listenerMap=null;constructor(){this.listenerMap=new Map}on(t,e,n,i=!1){t="string"==typeof t?[t]:t;let r=this.listenerMap.get(e);r||(r={},this.listenerMap.set(e,r)),t.forEach(t=>{r[t]=r[t]||[],-1===r[t].indexOf(n)&&r[t].push(n),e.addEventListener(t,n,i)})}off(t,e,n,i=!1){t="string"==typeof t?[t]:t;let r=i,o=("boolean"==typeof n&&(r=n),this.listenerMap.get(e)||{});t.forEach(t=>{"function"==typeof n?e.removeEventListener(t,n,r):(o[t]||[]).forEach(n=>{e.removeEventListener(t,n,r)})})}
2unbindAll(){this.listenerMap.forEach((t,e)=>{t=Object.keys(t),this.off(t,e,!0),this.off(t,e,!1)})}destroy(){this.unbindAll(),delete this.listenerMap}}const Pt=(t,e=100)=>{let n=Date.now();return(...i)=>{n+e-Date.now()<0&&(t.apply(void 0,i),n=Date.now())}};class jt{static get LAZY_SRC_ATTRIBUTE(){return"data-cl-lazy-src"}get elements(){return jt.getElements(this.container)}constructor(t=document.documentElement,e={}){this.container=t,this.settings=e,this.hasElements()&&(("function"==typeof e.eager?e.eager():Boolean(e.eager))?this.loadElements():this.addTriggers())}static getElements(t){return t.querySelectorAll(`[${jt.LAZY_SRC_ATTRIBUTE}]`)}hasElements(){return 0<this.elements.length}addTriggers(t){this.toggleTriggers(t,!0)}addTrigger({element:t,eventType:e}){this.toggleTrigger({element:t,eventType:e},!0)}toggleTriggers(t=this.settings?.triggers,e=!1){t&&(Array.isArray(t)?t.forEach(t=>{this.toggleTrigger(t,e)}):t.elements.forEach(n=>{t.eventTypes.forEach(t=>{this.toggleTrigger({element:n,eventType:t},e)})}))}toggleTrigger({element:t,eventType:e},n){n?t.addEventListener(e,this.loadElements,{once:!0}):t.removeEventListener(e,this.loadElements)}loadElements=()=>{jt.loadElements(this.elements)};static loadElements(t=document.documentElement){(t instanceof NodeList||Array.isArray(t)?t:jt.getElements(t)).forEach(jt.loadElement)}static loadElement(t){var e=t.getAttribute(jt.LAZY_SRC_ATTRIBUTE);t.setAttribute("src",e),t.removeAttribute(jt.LAZY_SRC_ATTRIBUTE)}removeTriggers(t){this.toggleTriggers(t,!1)}destroy(){this.removeTriggers(),this.container=null,this.settings=null}}const Dt=jt;let Bt="-active",xt="-overflow-left",Rt="-overflow-right",It="-overflow-above",Nt="-overflow-below";function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Ut(t){var e=function(t){if("object"!=qt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==qt(e)?e:e+""}function Kt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Kt=function(){return!!t})()}function Vt(){return Vt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Yt(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},Vt.apply(null,arguments)}function Yt(t){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yt(t)}function Ft(t,e){return Ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ft(t,e)}var Qt,Wt,zt=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,n){return e=Yt(e),function(t,e){if(e&&("object"==qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Kt()?Reflect.construct(e,n||[],Yt(t).constructor):e.apply(t,n))}(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ft(t,e)}(t,class{constructor(t){this.binder=new Ct,this.element=x(t,{strict:!0}),this.tabControl=this.element.querySelector(".cl-tab-control"),this.tabItems=this.element.querySelectorAll(".cl-tab-item"),this.tabList=this.element.querySelector("[role=tablist]"),this.tabPanels=this.element.querySelectorAll("[role=tabpanel]"),this.tabs=this.element.querySelectorAll("[role=tab]"),this.settings={isVertical:"vertical"===this.element.dataset.clTabsOrientation},this.isTabletQueryUp=window.matchMedia("(width >= 600px)")}mount(){try{this.setupTabs(),this.bindHandlers(),this.tabListOverflow(),this.settings.isVertical&&this.handleIsVertical()}catch(t){console.error("[cl-tabs]: "+t)}}
2setupTabs(){this.tabs.forEach(t=>{var e,n="tab-"+(e=t.getAttribute("aria-controls"));(e=this.element.querySelector("#"+e))&&(t.setAttribute("id",n),t.setAttribute("tabindex",-1),Mt(t,"selected","false"),t.parentNode.setAttribute("role","presentation"),Mt(e,"hidden","true"),Mt(e,"labelledby",n))});var t=this.getTabIndexByDeepLink();this.goToTab(t||0)}getTabIndexByDeepLink(){if(!this.element.dataset.clTabsDeepLinkKey)return null;let t=new URLSearchParams(window.location.search).get(this.element.dataset.clTabsDeepLinkKey);if(!t)return null;t=t.toLowerCase();var e=Array.from(this.tabs).findIndex(e=>t.includes(String(e.dataset.clTabsDeepLinkValue).toLowerCase()));return 0<=e?e:null}bindHandlers(){let t=[h,"End",f,y,b,d];this.tabs.forEach(e=>{this.binder.on("click",e,t=>{t.preventDefault(),t.target.parentNode.classList.contains(Bt)||this.goToTab(t)}),this.binder.on("keydown",e,e=>{var n;t.includes(e.key)&&(e.key===h?(e.preventDefault(),this.goToTab(0,!0)):"End"===e.key?(e.preventDefault(),this.goToTab(this.tabs.length-1,!0)):(n=this.determineNextTab(e,this.tabs),("vertical"!==this.tabList.getAttribute("aria-orientation")||e.key!==f&&e.key!==y)&&e.key!==b&&e.key!==d||(e.preventDefault(),this.goToTab(n,!0))))})}),this.binder.on("resize",window,()=>Pt(this.tabListOverflow())),this.binder.on("scroll",this.tabList,()=>Pt(this.tabListOverflow())),this.settings.isVertical&&this.binder.on("resize",window,()=>Pt(this.handleIsVertical())),this.setupLazySrcElementLoading()}get isTabletUp(){return this.isTabletQueryUp.matches}handleIsVertical(){this.settings.isVertical&&this.isTabletUp?this.tabList.setAttribute("aria-orientation","vertical"):this.tabList.setAttribute("aria-orientation","horizontal")}setupLazySrcElementLoading(){this.lazySrcLoader=new Dt(this.element,{triggers:{elements:[this.tabList],eventTypes:["mouseenter","focusin","touchstart"]}})}determineNextTab(t,e){let n;return"vertical"===this.tabList.getAttribute("aria-orientation")&&(t.key===f?n=-1:t.key===y&&(n=1)),t.key===b?n=-1:t.key===d&&(n=1),t=this.element.querySelector("[role=tab][aria-selected=true]"),t=[].indexOf.call(e,t),(t=parseInt(t+n,10))>=e.length?0:t<0?parseInt(e.length-1,10):t}goToTab(t,e=!1){var n="function"==(n=typeof t)||"object"==n&&!!t,i=this.element.querySelector("[role=tab][aria-selected=true]");if(i){var r=i.getAttribute("aria-controls");if(!(r=this.element.querySelector("#"+r)))return;Mt(i,"selected","false"),i.setAttribute("tabindex",-1),i.parentNode.classList.remove(Bt),Mt(r,"hidden","true"),r.removeAttribute("tabindex"),r.classList.remove(Bt)}(i=n?t.currentTarget:this.tabs[t])&&(r=i.getAttribute("aria-controls"),n=this.element.querySelector("#"+r))&&(this.tabScroll(i),Mt(i,"selected","true"),i.removeAttribute("tabindex"),i.parentNode.classList.add(Bt),e&&i.focus(),Dt.loadElements(n),Mt(n,"hidden","false"),n.classList.add(Bt),n.setAttribute("tabindex",0))}tabListOverflow(){var t,e;"vertical"===this.tabList.getAttribute("aria-orientation")?(e=this.tabList.scrollHeight-this.tabList.clientHeight,t=this.tabList.parentNode,this.tabList.scrollHeight<=this.tabList.clientHeight?t.classList.remove(It,Nt):(t.classList.toggle(It,10<this.tabList.scrollTop),t.classList.toggle(Nt,this.tabList.scrollTop<e-20))):(t=this.tabList.scrollWidth-this.tabList.clientWidth,e=this.tabList.parentNode,this.tabList.scrollWidth<=this.tabList.clientWidth?e.classList.remove(xt,Rt):(e.classList.toggle(xt,10<this.tabList.scrollLeft),e.classList.toggle(Rt,this.tabList.scrollLeft<t-20)))}tabScroll(t){var e,n;"vertical"===this.tabList.getAttribute("aria-orientation")?this.tabList.scrollHeight<=this.tabList.clientHeight||((e=t.parentNode.previousElementSibling)?(e=Math.floor(e.getBoundingClientRect().bottom),n=Math.floor(this.tabList.getBoundingClientRect().top),this.tabList.scrollBy({left:0,top:e-n-40})):this.tabList.scrollTop=0):this.tabList.scrollWidth<=this.tabList.clientWidth||((e=t.parentNode.previousElementSibling)?(n=Math.floor(e.getBoundingClientRect().right),t=Math.floor(this.tabList.getBoundingClientRect().left),this.tabList.scrollBy({top:0,left:n-t-40})):this.tabList.scrollLeft=0)}
2unmount(){this.binder.unbindAll(),this.tabs.forEach(t=>{t.removeAttribute("aria-selected"),t.removeAttribute("id"),t.removeAttribute("tabindex"),t.parentNode.classList.remove(Bt),t.parentNode.removeAttribute("role"),t=t.getAttribute("aria-controls"),(t=this.element.querySelector("#"+t)).removeAttribute("aria-labelledby"),t.removeAttribute("aria-hidden")}),this.tabPanels.forEach(t=>{t.removeAttribute("tabindex"),t.classList.remove(Bt)})}destroy(){this.unmount(),this.binder.destroy()}}),e=t,n=[{key:"bindHandlers",value:function(){var n,i,r=this;(n=this,"function"==typeof(i=Vt(Yt(t.prototype),"bindHandlers",n))?function(t){return i.apply(n,t)}:i)([]),this.tabs.forEach(function(t){r.binder.on("mouseenter",t,function(t){t.preventDefault(),t.target.parentNode.classList.contains("ACTIVE")||r.goToTab(t)})}),this.binder.on("mouseleave",this.element,function(){setTimeout(function(){r.goToTab(0)},800)})}}],n&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ut(i.key),i)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();new Ot,document.querySelectorAll(".global-nav-tab-dropdown-section.-sidebar").forEach(function(t){new zt("#".concat(t.id," .cl-tabs")).mount()}),function(){var t=document.querySelectorAll("[data-global-nav-search-results-page]");if(t.length){var e=t[0].dataset.globalNavSearchResultsPage||"//www.hubspot.com/search",n="true"===t[0].dataset.globalNavSearchOpenInNewTab;t.forEach(function(t){t.addEventListener("keydown",function(i){if("Enter"===i.key){i.preventDefault();var r=t.value.trim();if(!r)return;var o=e.startsWith("http")?"":"https:",s=((l=new URLSearchParams(window.location.search)).sort(),l.delete("hs_preview"),"?".concat(l.toString())),a="".concat(o).concat(e).concat("?q=").concat(r).concat("&filter_by%3Dtype%3A%3D=landingPages%2CsitePages").concat(s);n?window.open(a,"_blank"):window.location.href=a}var l})})}}(),Qt=document.querySelector(".global-nav-top-bar .global-nav-site-search-close-button"),Wt=document.querySelector(".global-nav-top-bar .global-nav-site-search"),Qt&&Wt&&Qt.addEventListener("click",function(){Qt.blur()}),k().forEach(e=>{(e=>e.hasAttribute(t))(e)||((t=>{var e=(t=>`<span class="a11y-contrast-toggle__label">${t=t.innerText.trim()||t.textContent.trim()}</span>`)(t);t.innerHTML=e})(e),(t=>{(t=>null!==t.querySelector(T))(t)||(t=>{var e=(t=>v(t)?t.classList.contains("-toggle-left")?"beforeend":"afterbegin":t.classList.contains("-icon-right")?"beforeend":"afterbegin")(t);t.insertAdjacentHTML(e,S)})(t)})(e),(t=>{t.setAttribute("type","button"),t.setAttribute("role","switch"),t.setAttribute("aria-checked",s()?"true":"false")})(e),(t=>{var e;t.addEventListener("click",O),v(t)&&(e=t,document.body.addEventListener("keydown",t=>((t,e)=>{t.key===l&&e.classList.add(p)})(t,e)),document.body.addEventListener("touchstart",t=>((t,e)=>{t=t.target,e.contains(t)||e.classList.add(p)})(t,e)),e.addEventListener("click",g),e.addEventListener("focus",m),e.addEventListener("blur",w),e.addEventListener("mouseenter",E))})(e),(e=>{e.setAttribute(t,"")})(e),(t=>!t.hasAttribute("hidden")&&!t.hasAttribute("disabled"))(e)&&i.hasCookie(o)&&A(!0))})})();
3//# sourceURL=https://53.fs1.hubspotusercontent-na1.net/hubfs/53/hub_generated/template_assets/1/207928094069/1790170497416/template_header.js

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.