var _hsp = window['_hsp'] = window['_hsp'] || []; _hsp.push(['setBannerSettings', {}]); _hsp.push(['setCustomizationSettings', {}]); _hsp.push(['addCookieDomain', '.blind.com.co']); _hsp.push(['addCookieDomain', '.cromantic.com']); _hsp.push(['addCookieDomain', '.hsforms.com']); _hsp.push(['addCookieDomain', '.hs-sites.com']); _hsp.push(['addCookieDomain', '.hubspot.com']); _hsp.push(['addCookieDomain', '.aruma.co']); _hsp.push(['addCookieDomain', '.hubspotpagebuilder.com']); _hsp.push(['setApiBaseUrl', 'https://js.hs-banner.com/v2']); /** * HubSpot Cookie Banner Code Copyright 2025 HubSpot, Inc. http://www.hubspot.com */ !function(){var e=[,function(e){e.exports='#hs-banner-parent div,#hs-banner-parent p{color:inherit}#hs-banner-parent *{font-size:inherit;font-family:inherit;background:none;border:none;box-shadow:none;box-sizing:border-box;margin:0;padding:0;display:inline-block;line-height:1.75em}#hs-banner-parent ol,#hs-banner-parent ul{display:block}#hs-banner-parent li{display:list-item;list-style-position:inside}#hs-banner-parent li *{display:inline}#hs-banner-parent .hs-hidden{display:none!important}#hs-banner-parent #hs-banner-gpc{font-size:var(--hs-banner-font-size,14px);font-family:var(--hs-banner-font-family,"Lato"),sans-serif;font-weight:400;color:var(--hs-banner-text-color,#15295a);background:var(--hs-banner-color,#fff);border-radius:var(--hs-banner-corners,12px);box-shadow:0 8px 28px rgba(0,0,0,.28);position:fixed;width:var(--hs-banner-width,67em);max-width:calc(100% - 64px);max-height:calc(100% - 64px);overflow:auto;inset:var(--hs-banner-inset,32px 0 auto 50%);z-index:3000000000;transform:translate(var(--hs-banner-translate-x,-50%),200vh);-webkit-transform:translate(var(--hs-banner-translate-x,-50%),200vh) translateZ(3000000000px);animation:none;opacity:0}#hs-banner-parent #hs-banner-gpc.hs-banner-optimization-animation{animation:banner_animation .5s forwards}#hs-banner-gpc #hs-banner-gpc-inner{display:flex;gap:1em;flex-direction:column;padding:var(--hs-banner-padding,2.2em)}#hs-banner-gpc #hs-banner-gpc-header{display:flex;flex-direction:row;justify-content:flex-end}#hs-banner-gpc #hs-banner-gpc-close-button{cursor:pointer;display:block}#hs-banner-gpc #hs-banner-gpc-close-button svg{width:var(--hs-banner-font-size,14px);height:var(--hs-banner-font-size,14px);color:var(--hs-banner-text-color,#15295a)}#hs-banner-parent #hs-eu-cookie-confirmation{font-size:var(--hs-banner-font-size,14px);font-family:var(--hs-banner-font-family,"Lato"),sans-serif;font-weight:400;color:var(--hs-banner-text-color,#15295a);background:var(--hs-banner-color,#fff);border-radius:var(--hs-banner-corners,12px);box-shadow:0 8px 28px rgba(0,0,0,.28);position:fixed;width:var(--hs-banner-width,67em);max-width:calc(100% - 64px);max-height:calc(100% - 64px);overflow:auto;inset:var(--hs-banner-inset,32px 0 auto 50%);z-index:3000000000;transform:translate(var(--hs-banner-translate-x,-50%),200vh);-webkit-transform:translate(var(--hs-banner-translate-x,-50%),200vh) translateZ(3000000000px);animation:none;opacity:0}@keyframes banner_animation{0%{transform:translate(var(--hs-banner-translate-x,-50%),200vh);-webkit-transform:translate(var(--hs-banner-translate-x,-50%),200vh) translateZ(3000000000px);opacity:0}99%{opacity:0}to{transform:translate(var(--hs-banner-translate-x,-50%),var(--hs-banner-translate-y,0));-webkit-transform:translate(var(--hs-banner-translate-x,-50%),var(--hs-banner-translate-y,0)) translateZ(3000000000px);opacity:1}}#hs-banner-parent #hs-eu-cookie-confirmation.hs-banner-optimization-animation{animation:banner_animation .5s forwards}#hs-eu-cookie-confirmation #hs-eu-cookie-confirmation-inner{display:flex;gap:1em;flex-direction:column;padding:var(--hs-banner-padding,2.2em)}#hs-eu-cookie-confirmation #hs-eu-cookie-confirmation-inner button:focus{box-shadow:0 0 0 2px rgba(0,127,255,.5);box-shadow:0 0 0 2px -webkit-focus-ring-color}#hs-eu-cookie-confirmation #hs-eu-header-container{display:var(--hs-banner-close-button-display,none);flex-direction:row;justify-content:flex-end}#hs-eu-cookie-confirmation #hs-eu-close-button{cursor:pointer;display:block}#hs-eu-cookie-confirmation #hs-eu-close-button svg{width:var(--hs-banner-font-size,14px);height:var(--hs-banner-font-size,14px);color:var(--hs-banner-text-color,#15295a)}#hs-eu-cookie-confirmation #hs-eu-cookie-confirmation-buttons-area{display:flex;flex-flow:row wrap;justify-content:flex-end;align-items:baseline}#hs-eu-cookie-confirmation #hs-eu-confirmation-button-group,#hs-eu-cookie-confirmation #hs-eu-opt-in-buttons{display:flex;justify-content:center;flex-flow:row wrap;gap:.5em}#hs-eu-cookie-confirmation #hs-eu-opt-in-buttons{flex-grow:1}#hs-eu-cookie-confirmation #hs-eu-confirmation-button,#hs-eu-cookie-confirmation #hs-eu-cookie-settings-button,#hs-eu-cookie-confirmation #hs-eu-decline-button{flex:1;cursor:pointer;border-radius:var(--hs-banner-button-corners,3em);min-width:11em;height:3.3em}#hs-eu-cookie-confirmation #hs-eu-confirmation-button{color:var(--hs-banner-accept-text-color,#fff);background:var(--hs-banner-accept-color,var(--hs-banner-accentColor,#425b76));border:1px solid var(--hs-banner-accept-border-color,var(--hs-banner-accentColor,#425b76))}#hs-eu-cookie-confirmation #hs-eu-decline-button{color:var(--hs-banner-decline-text-color,var(--hs-banner-accentColor,#425b76));background:var(--hs-banner-decline-color,#fff);border:1px solid var(--hs-banner-decline-border-color,var(--hs-banner-accentColor,#425b76))}#hs-eu-cookie-confirmation #hs-eu-cookie-settings-button{text-decoration:underline;font-weight:800;color:var(--hs-banner-settings-text-color,var(--hs-banner-accentColor,#425b76))}@media print{#hs-banner-gpc,#hs-eu-cookie-confirmation{display:none!important}}'},function(e){e.exports='#hs-banner-parent #hs-modal{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.28);display:flex;justify-content:center;align-items:center;z-index:3000000001;-webkit-transform:translateZ(3000000001px)}@media print{#hs-banner-parent #hs-modal{display:none!important}}#hs-banner-parent #hs-modal-content{position:absolute;display:flex;flex-direction:column;gap:1.1em;padding:var(--hs-banner-modal-padding,2.2em);width:min(var(--hs-banner-modal-width,50.3em),100%);max-height:80%;background-color:var(--hs-banner-modal-color,#fafbff);border-radius:var(--hs-banner-modal-corners,12px);box-shadow:0 8px 28px rgba(0,0,0,.28);font-size:var(--hs-banner-modal-font-size,14px);font-family:var(--hs-banner-font-family,"Lato"),sans-serif;font-weight:400;line-height:1.75em;color:var(--hs-banner-modal-text-color,#15295a)}#hs-modal-content #hs-modal-header-container{display:flex;flex-direction:row;justify-content:flex-end}#hs-modal-content #hs-modal-close-button{cursor:pointer;display:block}#hs-modal-content #hs-modal-close-button svg{width:var(--hs-banner-modal-font-size,14px);height:var(--hs-banner-modal-font-size,14px);color:var(--hs-banner-modal-text-color,#15295a)}#hs-modal-content #hs-modal-body{overflow:auto}#hs-modal-content #hs-modal-body-container{position:relative;display:flex;flex-flow:column;gap:1.1em;height:100%;width:100%}#hs-modal-content #hs-modal-introduction{display:inline-block}#hs-modal-content #hs-modal-introduction span{font-weight:800;font-size:1.3em;color:inherit}#hs-modal-content #hs-categories-container{display:flex;flex-direction:column;gap:1.1em}#hs-modal-content #hs-categories-container .hs-category-row{display:flex;flex-direction:column;background:var(--hs-banner-modal-cateogry-color,#fff);border-radius:var(--hs-banner-modal-category-corners,var(--hs-banner-modal-corners,12px));padding:2em}#hs-modal-content #hs-categories-container .hs-category-row .hs-toggle-switch-input{opacity:0;width:100%;height:100%;cursor:pointer}#hs-modal-content #hs-categories-container .hs-category-row .hs-toggle-switch{width:calc(1.7em * 2 + 6px);height:calc(1.7em + 6px);position:relative;background-color:var(--hs-banner-modal-toggle-off-color,#f1f1f1);border:3px solid var(--hs-banner-modal-toggle-off-color,#f1f1f1);border-radius:1.7em;transition:background-color .2s ease,border-color .2s ease}#hs-modal-content #hs-categories-container .hs-category-row .hs-toggle-switch-nob{position:absolute;height:1.7em;width:1.7em;left:0;border-radius:inherit;box-shadow:0 2px 5px rgba(0,0,0,.3);background:var(--hs-banner-modal-cateogry-color,#fff);transition:left .5s ease}#hs-modal-content #hs-categories-container .hs-category-row .hs-toggle-switch.hs-toggle-selected-flag{background-color:var(--hs-banner-modal-toggle-on-color,var(--hs-banner-accentColor,#425b76));border-color:var(--hs-banner-modal-toggle-on-color,var(--hs-banner-accentColor,#425b76))}#hs-modal-content #hs-categories-container .hs-category-row .hs-toggle-switch.hs-toggle-selected-flag .hs-toggle-switch-nob{left:50%}#hs-modal-content #hs-categories-container .description-accordion-arrow{transition:transform .2s;width:var(--hs-banner-modal-font-size,14px);height:var(--hs-banner-modal-font-size,14px);color:var(--hs-banner-modal-category-text-color,#15295a)}#hs-modal-content #hs-categories-container .description-accordion-arrow.rotated{transform:rotate(90deg)}#hs-modal-content #hs-categories-container .hs-category-description{transition:max-height .2s;box-sizing:border-box;overflow:hidden;opacity:0}#hs-modal-content #hs-categories-container .hs-category-description.visible{opacity:1;color:var(--hs-banner-modal-category-text-color,#15295a)}#hs-modal-content #hs-categories-container .hs-category-row-header{display:flex;justify-content:space-between;align-items:center}#hs-modal-content #hs-categories-container .hs-category-label{display:flex;flex-grow:1;gap:1.1em;align-items:center;justify-content:left;font-weight:800;color:var(--hs-banner-modal-category-text-color,#15295a);cursor:pointer}#hs-modal-content #hs-categories-container .hs-always-active-label{color:var(--hs-banner-modal-category-text-color,#15295a)}#hs-modal-content #hs-modal-footer{display:flex;justify-content:flex-end}#hs-modal-content #hs-modal-footer-container{display:flex;justify-content:center;flex-flow:row wrap;gap:.5em}#hs-modal-content #hs-modal-accept-all,#hs-modal-content #hs-modal-save-settings{flex:1;border-radius:var(--hs-banner-modal-button-corners,3em);min-width:11em;height:3.3em;cursor:pointer}#hs-modal-content #hs-modal-accept-all{color:var(--hs-banner-modal-accept-text-color,#fafbff);background:var(--hs-banner-modal-accept-color,var(--hs-banner-accentColor,#425b76));border:1px solid var(--hs-banner-modal-accept-border-color,var(--hs-banner-accentColor,#425b76))}#hs-modal-content #hs-modal-save-settings{color:var(--hs-banner-modal-save-text-color,var(--hs-banner-accentColor,#425b76));background:var(--hs-banner-modal-save-color,#fafbff);border:1px solid var(--hs-banner-modal-save-border-color,var(--hs-banner-accentColor,#425b76))}'}],t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};e[o](s,s.exports,n);return s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};n.d(t,{a:t});return t};n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})};n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};!function(){"use strict";const e="_hspb_loaded",t="_hsp",o="_hsq",i="_hsGeoTargetingTest",s="_hsGpcSignal",r="_hsScanningMode",a="_hspb_ran",c="hsdbg",l="_hsPrivacyTest",h="hs-eu-cookie-confirmation",d="hs-banner-gpc",u="hs-banner-parent",g="hs-modal",_="hs-modal-content",p={NECESSARY:"necessary",ANALYTICS:"analytics",ADVERTISEMENT:"advertisement",FUNCTIONALITY:"functionality"},m="hs-hidden",f="hs-banner-optimization-animation",b="hs-banner-style",y="hs-banner-modal-style",v="disabledHsPopups",C="PRIVACY",x="disableHubSpotCookieBanner",S="hsCookieBannerLoaded",T=[...["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],...["IS","LI","NO"],"GB"],w="hs-banner-google-font",k="google-font-injected",O=[[0,400],[0,700],[1,400]],E="https://fonts.googleapis.com/css2";class I{constructor(e,t){this.win=e;this.doc=t;this.hasLoadedBaseStyle=!1;this.hasLoadedCbcStyle=!1}setHasLoadedBaseStyle(e){this.hasLoadedBaseStyle=e}setHasLoadedCbcStyle(e){this.hasLoadedCbcStyle=e}getWindow(){return this.win}getDocument(){return this.doc}getNavigator(){return this.getWindow().navigator}getLocation(){return this.getWindow().location}getPathname(){return this.getLocation().pathname}getHostname(){try{return this.getLocation().hostname}catch(e){return this.getDocument().domain}}getHasLoadedBaseStyle(){return this.hasLoadedBaseStyle}getHasLoadedCbcStyle(){return this.hasLoadedCbcStyle}}const A=new I(window,document);function N(){return A}class L{constructor(e){this.logPrepend="[HubSpot cookie banner]";this.context=e}info(e){this.isDebugEnabled()&&this.context.getWindow().console.log(`${this.logPrepend} ${e}`)}debug(e){this.isDebugEnabled()&&this.context.getWindow().console.debug(`${this.logPrepend} ${e}`)}error(e){this.isDebugEnabled()&&this.context.getWindow().console.error(`${this.logPrepend} ${e}`)}isDebugEnabled(){return this.context.getDocument().location.search.includes(c)}}var B=new L(N());const P=[0,0,0,0],R=e=>e.some((e=>e>0)),D=(e,t)=>(e.map(((e,n)=>e-t[n])).find((e=>0!==e))||0)>=0;class G{constructor(e="",t=[],n=[]){this.wildcard=!1;this.targetedPathPrefix=e;this.targetedCountries=t;this.targetedRegions=n}test(e,t,n){const o=this.targetedPathPrefix.length+1;if(!e.startsWith(this.targetedPathPrefix))return P;const i=this.targetedCountries.length>0||this.targetedRegions.length>0,s=void 0!==t&&this.targetedCountries.includes(t),r=t&&n?`${t}-${n}`:void 0,a=void 0!==r&&this.targetedRegions.includes(r);return!i||s||a?[this.wildcard?0:1,a?1:0,s?1:0,o]:P}static fromJS(e){const{allUrlsAndLocations:t,path:n,targetedCountries:o,targetedRegions:i}=e;return t?new G:new G(n||"",o||[],i||[])}}class U{constructor(e){this.value=e}getValue(){return this.value}static fromJS(e){if(!e)return this.TOP;switch(e){case 0:default:return this.TOP;case 1:return this.BOTTOM;case 2:return this.BOTTOM_LEFT;case 3:return this.BOTTOM_RIGHT;case 4:return this.CENTER}}}U.TOP=new U(0);U.BOTTOM=new U(1);U.BOTTOM_LEFT=new U(2);U.BOTTOM_RIGHT=new U(3);U.CENTER=new U(4);class M{constructor(e,t,n){this.position=e;this.accentColor=t;this.showCloseButton=n}static fromJS(e){const{position:t,accentColor:n,showCloseButton:o}=e;return new M(U.fromJS(t),n,o||!1)}}const F=Symbol("__RELATIVE__"),Y=e=>e?Array.isArray(e)?{remove_element_contents:Object.fromEntries(e.map((e=>[e,!0]))),remove_all_contents:!1}:{remove_element_contents:{},remove_all_contents:!0}:{remove_element_contents:{},remove_all_contents:!1};class ${constructor(e={}){const{elements:t=[],attributes:n={},allow_comments:o=!1,protocols:i={},add_attributes:s={},remove_contents:r}=e,{remove_element_contents:a,remove_all_contents:c}=Y(r);this.config={elements:t,attributes:n,allow_comments:o,protocols:i,add_attributes:s,remove_element_contents:a,remove_all_contents:c};this.allowed_elements=Object.fromEntries(t.map((e=>[e,!0])))}cleanNode(e){const t=document.createDocumentFragment();this.current_element=t;e.childNodes.forEach((e=>this._cleanNode(e)));t.normalize();return t}_cleanNode(e){switch(e.nodeType){case Node.ELEMENT_NODE:this.cleanElement(e);break;case Node.TEXT_NODE:case Node.ENTITY_REFERENCE_NODE:this.current_element.appendChild(e.cloneNode(!1));break;case Node.COMMENT_NODE:this.config.allow_comments&&this.current_element.appendChild(e.cloneNode(!1));break;default:console.warn("unknown node type",e.nodeType)}}cleanElement(e){const t=this.current_element,n=e.nodeName.toLowerCase();if(this.allowed_elements[n]){const o=document.createElement(e.nodeName);this.current_element=o;t.appendChild(o);this.processAttributes(e,n,o);this.addConfiguredAttributes(n,o)}this.config.remove_all_contents||this.config.remove_element_contents[n]||e.childNodes.forEach((e=>this._cleanNode(e)));this.current_element=t}processAttributes(e,t,n){const o=this.config.attributes[t];o&&o.forEach((o=>{const i=e.attributes.getNamedItem(o);if(!i)return;if(!this.isAttributeProtocolAllowed(t,o,i.value))return;const s=document.createAttribute(o);s.value=i.value;n.setAttributeNode(s)}))}isAttributeProtocolAllowed(e,t,n){var o;const i=null===(o=this.config.protocols[e])||void 0===o?void 0:o[t];if(!i)return!0;const s=n.toLowerCase().match($.REGEX_PROTOCOL);return s?i.includes(s[1]):i.includes(F)}addConfiguredAttributes(e,t){const n=this.config.add_attributes[e];n&&Object.entries(n).forEach((([e,n])=>{const o=document.createAttribute(e);o.value=n;t.setAttributeNode(o)}))}}$.REGEX_PROTOCOL=/^([A-Za-z0-9+\-.&;*\s]*?)(?::|&*0*58|&*x0*3a)/i;const H=new $({attributes:{a:["href","title","target"],blockquote:["cite"],ol:["start","type"],q:["cite"],ul:["type"],span:["class"]},elements:["a","b","blockquote","br","caption","cite","code","dd","dl","dt","em","h1","h2","h3","h4","h5","h6","i","li","ol","p","pre","q","small","strike","strong","sub","sup","u","ul","font","div","span"],protocols:{a:{href:["http","https","mailto",F]},blockquote:{cite:["http","https",F]},q:{cite:["http","https",F]}},remove_contents:["style","script"],add_attributes:{a:{rel:"noopener"}}}),V=e=>{if(!e)return e;const t=document.createElement("div");try{const n=document.createRange().createContextualFragment(e),o=H.cleanNode(n);t.appendChild(o.cloneNode(!0))}catch(t){B.error(`we had an error sanitizing an html string: ${e}`)}return t.innerHTML},z=e=>({__html:e||""});class W{constructor(e,t,n){this.description=e;this.label=t;this.toggleLabel=n}static fromJS(e){return new W(e.description,e.label,e.toggleLabel)}getSanitizedText(){return new W(V(this.description),V(this.label),V(this.toggleLabel))}}class K{constructor(e,t,n,o,i,s,r){this.acceptLabel=e;this.saveSettingsLabel=t;this.introduction=n;this.necessary=o;this.analytics=i;this.advertisement=s;this.functionality=r}static fromJS(e){return new K(e.acceptAllLabel,e.saveSettingsLabel,W.fromJS(e.introduction),W.fromJS(e.categories.necessary),W.fromJS(e.categories.analytics),W.fromJS(e.categories.advertisement),W.fromJS(e.categories.functionality))}getSanitizedText(){return new K(V(this.acceptLabel),V(this.saveSettingsLabel),this.introduction.getSanitizedText(),this.necessary.getSanitizedText(),this.analytics.getSanitizedText(),this.advertisement.getSanitizedText(),this.functionality.getSanitizedText())}}class q{constructor(e,t,n,o,i,s){this.notification=e;this.acceptLabel=t;this.declineLabel=n;this.disclaimer=o;this.cookieSettingsLabel=i;this.modalText=s}static fromJS(e){return new q(e.notification,e.acceptLabel,e.declineLabel,e.disclaimer,e.modalText&&e.modalText.cookieSettingsLabel,e.modalText&&K.fromJS(e.modalText))}getSanitizedText(){return new q(V(this.notification),V(this.acceptLabel),V(this.declineLabel),V(this.disclaimer),this.cookieSettingsLabel&&V(this.cookieSettingsLabel),this.modalText&&this.modalText.getSanitizedText())}}class J{constructor(e,t){this.value=e;this.name=t}getValue(){return this.value}getName(){return this.name}static isOptIn(e){return[this.OPT_IN,this.COOKIES_BY_CATEGORY].includes(e)}static fromJS(e){switch(e){case 0:return this.COOKIES_WITHOUT_BANNER;case 1:return this.NO_COOKIES;case 2:return this.NOTIFY;case 3:return this.OPT_IN;case 4:default:return this.COOKIES_BY_CATEGORY;case 5:return this.OPT_OUT;case 6:return this.OPT_OUT_BY_CATEGORY}}}J.COOKIES_WITHOUT_BANNER=new J(0,"COOKIES_WITHOUT_BANNER");J.NO_COOKIES=new J(1,"NO_COOKIES");J.NOTIFY=new J(2,"NOTIFY");J.OPT_IN=new J(3,"OPT_IN");J.COOKIES_BY_CATEGORY=new J(4,"COOKIES_BY_CATEGORY");J.OPT_OUT=new J(5,"OPT_OUT");J.OPT_OUT_BY_CATEGORY=new J(6,"OPT_OUT_BY_CATEGORY");class j{constructor(e,t){this.type=e;this.text=t}static fromJS(e){const{type:t,text:n}=e;return new j(J.fromJS(t),q.fromJS(n))}getSanitizedPolicy(){return new j(this.type,this.text.getSanitizedText())}}class Q{constructor(e,t){this.enabled=e;this.notificationText=V(t||"")}static fromJS(e){return new Q(e.enabled,e.notificationText)}}class Z{constructor(e,t,n,o,i,s,r,a){this.id=e;this.portalId=t;this.label=n;this.enabled=o;this.configuration=i;this.policy=s;this.customizationSettings=r;this.gpcSettings=a}static fromJS(e){const{id:t,portalId:n,label:o,enabled:i,configuration:s,policy:r,legacyCustomization:a,gpcSettings:c}=e;return new Z(t,n,o,i,G.fromJS(s),j.fromJS(r),M.fromJS(a),Q.fromJS(c))}withSanitizedPolicy(){return new Z(this.id,this.portalId,this.label,this.enabled,this.configuration,this.policy.getSanitizedPolicy(),this.customizationSettings,this.gpcSettings)}toLegacyPrivacyPolicy(){let e;switch(this.policy.type){case J.COOKIES_WITHOUT_BANNER:e=0;break;case J.NO_COOKIES:e=2;break;case J.OPT_OUT:case J.NOTIFY:case J.OPT_IN:e=1;break;case J.OPT_OUT_BY_CATEGORY:case J.COOKIES_BY_CATEGORY:default:e=3}return{active:this.enabled,testing:!1,mode:e,policyWording:"not used",acceptWording:"not used",cancelWording:"not used",disclaimerWording:"not used",hideDecline:this.policy.type===J.NOTIFY,accentColor:this.customizationSettings.accentColor,bannerType:"not used",label:this.label,privacyDefault:!1,cookiesByCategory:{},id:this.id,portalId:this.portalId}}}const X=1,ee=2,te=3,ne={[X]:"analytics",[ee]:"advertisement",[te]:"functionality"};class oe{constructor(e,t,n){this.allowed=e;this.previousCategories=n||{necessary:!0,analytics:!1,advertisement:!1,functionality:!1};this.categories=t||{necessary:!0,analytics:e,advertisement:e,functionality:e}}hasAnalyticsConsent(){return this.allowed||!0===this.categories.analytics}adsHasChangedToFalse(){return!0===this.previousCategories.advertisement&&!1===this.categories.advertisement}update(e){this.previousCategories=this.categories;this.categories=Object.assign({},this.categories,{analytics:e,advertisement:e,functionality:e});this.allowed=e;return this}updateCategories({analytics:e,advertisement:t,functionality:n}){this.previousCategories=this.categories;this.categories={necessary:!0,analytics:e,advertisement:t,functionality:n};this.allowed=e&&t&&n;return this}allCategoriesSelected(){return this.categories.necessary&&this.categories.analytics&&this.categories.advertisement&&this.categories.functionality}getSafeCopy(){return new oe(this.allowed,{necessary:this.categories.necessary,analytics:this.categories.analytics,advertisement:this.categories.advertisement,functionality:this.categories.functionality},{necessary:this.previousCategories.necessary,analytics:this.previousCategories.analytics,advertisement:this.previousCategories.advertisement,functionality:this.previousCategories.functionality})}toCookieString(){return`${X}:${this.categories.analytics}_${ee}:${this.categories.advertisement}_${te}:${this.categories.functionality}`}static fromCategories(e){const t=e.analytics&&e.advertisement&&e.functionality;return new oe(t,Object.assign({},e,{necessary:!0}))}static buildFromCookieString(e){const t=e.includes(",")?e.split(","):e.split("_"),n={necessary:!0,analytics:!1,advertisement:!1,functionality:!1};t.forEach((e=>{const t=e.split(":");if(2!==t.length)return;const o=t[0],i=ne[o];i&&(n[i]="true"===t[1])}));const o=n.necessary&&n.advertisement&&n.analytics&&n.functionality;return new oe(o,n)}static buildInitialConsent(){return new oe(!1,{necessary:!0,analytics:!1,advertisement:!1,functionality:!1})}}const ie=e=>encodeURI(e),se=e=>decodeURI(e),re="_fbp",ae="1970-01-01T00:00:01-00:00";class ce{constructor(e){this.context=e;this.cookiesToSubdomain=!1;this.useSecureCookies=!1;this.currentDomain=""}isEnabled(){return this.context.getNavigator().cookieEnabled||"cookie"in this.context.getDocument()&&this.context.getDocument().cookie.length>0}addDomain(e){`.${this.context.getHostname()}`.endsWith(e.startsWith(".")?e:`.${e}`)&&(!this.currentDomain||e.length=0;o--){if(""===t[o]){if(0!==o){console.error(`Invalid Domain: ${e}, Parsed As: [${t}]`);return[]}continue}const s=`${t[o]}.${i}`;n.push(s);i=s}return n}removeFBPCookie(){const e=new Date(ae),t=e.toUTCString();this.getDomainAncestry(this.context.getDocument().domain).forEach((n=>{this.setCookie(re,"",{expires:`;expires=${t}`,expiresTime:e,path:";path=/",domain:`;domain=.${n}`,secure:"",sameSite:";SameSite=Lax"})}))}getGACookieNames(){const e=this.context.getDocument().cookie;if(!e)return[];const t=e.split(";"),n=new RegExp("^(_ga_[a-zA-Z0-9]+)=[^;]+$"),o=[];t.forEach((e=>{const t=e.trim().match(n);t&&o.push(t[1])}));return o}removeGACookie(){this.getGACookieNames().forEach((e=>this.remove(e)))}remove(e){this.set(e,"",{expiryDate:ae})}setCookie(e,t,n){const o=n.expires+n.path+n.domain+n.sameSite+n.secure;this.writeCookie(`${e}=${t}${o}`)}writeCookie(e){this.context.getDocument().cookie=e}setCookiesToSubdomain(e){this.cookiesToSubdomain=e}setUseSecureCookies(e){this.useSecureCookies=e}}class le{constructor(e,t){this.name=e;this.expirationDays=t}getName(){return this.name}getExpirationDays(){return this.expirationDays}}le.CATEGORY_PREFERENCE_COOKIE=new le("__hs_cookie_cat_pref",180);le.GPC_BANNER_DISMISS_COOKIE=new le("__hs_gpc_banner_dismiss",180);le.NOTIFY_BANNER_DIMISS_COOKIE=new le("__hs_notify_banner_dismiss",180);le.OPT_OUT_COOKIE=new le("__hs_opt_out",180);le.INITIAL_OPT_IN=new le("__hs_initial_opt_in",7);var he,de,ue,ge,_e,pe,me={},fe=[],be=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ye(e,t){for(var n in t)e[n]=t[n];return e}function ve(e){var t=e.parentNode;t&&t.removeChild(e)}function Ce(e,t,n){var o,i,s,r={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:r[s]=t[s];if(arguments.length>2&&(r.children=arguments.length>3?he.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===r[s]&&(r[s]=e.defaultProps[s]);return xe(e,r,o,i,null)}function xe(e,t,n,o,i){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++ue:i};return null==i&&null!=de.vnode&&de.vnode(s),s}function Se(e){return e.children}function Te(e,t){this.props=e,this.context=t}function we(e,t){if(null==t)return e.__?we(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?xe(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(u=f[h])||u&&g.key==u.key&&g.type===u.type)f[h]=void 0;else for(d=0;d=n.__.length&&n.__.push({}),n.__[e]}function tt(e){return Ke=1,nt(dt,e)}function nt(e,t,n){var o=et(Ve++,2);return o.t=e,o.__c||(o.__=[n?n(t):dt(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=ze),o.__}function ot(e,t){var n=et(Ve++,3);!de.__s&&ht(n.__H,t)&&(n.__=e,n.__H=t,ze.__H.__h.push(n))}function it(e){return Ke=5,st((function(){return{current:e}}),[])}function st(e,t){var n=et(Ve++,7);return ht(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function rt(){for(var e;e=qe.shift();)if(e.__P)try{e.__H.__h.forEach(ct),e.__H.__h.forEach(lt),e.__H.__h=[]}catch(t){e.__H.__h=[],de.__e(t,e.__v)}}de.__b=function(e){ze=null,Je&&Je(e)},de.__r=function(e){je&&je(e),Ve=0;var t=(ze=e.__c).__H;t&&(t.__h.forEach(ct),t.__h.forEach(lt),t.__h=[])},de.diffed=function(e){Qe&&Qe(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==qe.push(t)&&We===de.requestAnimationFrame||((We=de.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(o),at&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);at&&(t=requestAnimationFrame(n))})(rt)),ze=null},de.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ct),e.__h=e.__h.filter((function(e){return!e.__||lt(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],de.__e(n,e.__v)}})),Ze&&Ze(e,t)},de.unmount=function(e){Xe&&Xe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ct(e)}catch(e){t=e}})),t&&de.__e(t,n.__v))};var at="function"==typeof requestAnimationFrame;function ct(e){var t=ze,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ze=t}function lt(e){var t=ze;e.__c=e.__(),ze=t}function ht(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function dt(e,t){return"function"==typeof t?t(e):t}var ut=0;function gt(e,t,n,o,i){var s,r,a={};for(r in t)"ref"==r?s=t[r]:a[r]=t[r];var c={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ut,__source:o,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(r in s)void 0===a[r]&&(a[r]=s[r]);return de.vnode&&de.vnode(c),c}function _t(){return gt("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 32 32",children:gt("path",{fill:"currentColor",d:"M4.3,27.7c0.2,0.2,0.6,0.5,1,0.5c0.4,0,0.8-0.2,1-0.5l9.6-9.5l9.6,9.5c0.2,0.2,0.6,0.5,1,0.5 c0.8,0,1.5-0.6,1.5-1.5c0-0.4-0.2-0.8-0.5-1L18.2,16l9.5-9.5c0.2-0.2,0.4-0.6,0.4-1c0-0.8-0.6-1.5-1.5-1.5c-0.4,0-0.7,0.2-1,0.4l0,0 L16,13.8L6.5,4.3C6.2,4,5.8,3.8,5.4,3.8c-0.8,0-1.5,0.6-1.5,1.5c0,0.5,0.2,0.8,0.5,1.1l0,0l9.5,9.5l-9.5,9.6c-0.2,0.2-0.5,0.6-0.5,1 S4.1,27.4,4.3,27.7L4.3,27.7z"})})}function pt(e,t,n,o){n&&o&&t.addEventListener("keydown",(t=>{if(!("Tab"===t.key||"Tab"===t.code))return;const i=e.getDocument().activeElement;if(t.shiftKey){if(i===n){o.focus();t.preventDefault()}}else if(i===o){n.focus();t.preventDefault()}}))}function mt({context:e,onAcceptAll:t,onCookieSettingsClick:n,onDeclineAll:o,setting:i,onCloseBannerButtonClick:s,isModalDisplayed:r}){const a=it(null),c=it(null),l=it(null),d=it(null),u=it(null);ot((()=>{if(!a.current)return;const t=c.current||l.current,n=u.current||d.current;pt(e,a.current,t,n)}),[e,a,c,d,u,l]);const g=r?-1:0,_=i.policy,p=i.policy.type,m=p===J.OPT_OUT_BY_CATEGORY||p===J.COOKIES_BY_CATEGORY,f=p===J.OPT_IN||p===J.OPT_OUT||p===J.OPT_OUT_BY_CATEGORY||p===J.COOKIES_BY_CATEGORY;return gt("div",{id:h,className:i.customizationSettings.position===U.BOTTOM?"hs-cookie-notification-position-bottom":"","data-nosnippet":"true",role:"dialog","aria-describedby":"hs-eu-policy-wording","aria-label":"Cookie banner",ref:a,tabIndex:g,children:gt("div",{id:"hs-eu-cookie-confirmation-inner",children:[gt("div",{id:"hs-eu-header-container",children:gt("button",{id:"hs-eu-close-button",className:"hs-close-button",onClick:()=>s(p),ref:c,"aria-label":"Dismiss cookie banner",tabIndex:g,children:gt(_t,{})})}),gt("div",{id:"hs-eu-policy-wording",dangerouslySetInnerHTML:z(_.text.notification),ref:l,tabIndex:g}),_.text.disclaimer&&f&>("p",{id:"hs-eu-cookie-disclaimer",dangerouslySetInnerHTML:z(_.text.disclaimer),tabIndex:g}),gt("div",{id:"hs-eu-cookie-confirmation-buttons-area",children:gt("div",{id:"hs-eu-confirmation-button-group",children:[m&>("button",{onClick:()=>n(),id:"hs-eu-cookie-settings-button",dangerouslySetInnerHTML:z(_.text.cookieSettingsLabel),"aria-label":_.text.cookieSettingsLabel,tabIndex:g}),gt("div",{id:"hs-eu-opt-in-buttons",children:[gt("button",{id:"hs-eu-confirmation-button",onClick:()=>t(p),dangerouslySetInnerHTML:z(_.text.acceptLabel),"aria-label":_.text.acceptLabel,ref:d,tabIndex:g}),f&>("button",{id:"hs-eu-decline-button",onClick:()=>o(),dangerouslySetInnerHTML:z(_.text.declineLabel),ref:u,"aria-label":_.text.declineLabel,tabIndex:g})]})]})})]})})}function ft({category:e,disabled:t,onToggleChange:n,toggleValue:o}){const i=`hs-category-toggle-${e}`,s=`${i}-help-text`;return gt("div",{className:`hs-toggle-switch ${o?"hs-toggle-selected-flag":""}`,children:[gt("div",{className:"hs-toggle-switch-nob"}),gt("label",{htmlFor:i,children:gt("span",{className:"hs-hidden",id:s,children:`${e} cookies ${o?"allowed":"disallowed"}`})}),gt("input",{id:i,className:"hs-toggle-switch-input",type:"checkbox",onChange:e=>n(e.currentTarget.checked),checked:o,disabled:t,"aria-pressed":o,tabIndex:0,"aria-describedby":s,"data-test-id":i})]})}function bt({className:e}){return gt("svg",{version:"1.1",id:"plus-icon-svg",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 32 32",className:e,children:gt("path",{fill:"currentColor",d:"M22.6,15.3c-0.1-0.1-0.1-0.2-0.2-0.2l0,0l-0.1-0.2l0,0l0,0l0,0L12.1,4.2c-0.2-0.2-0.6-0.5-1.1-0.5 c-0.9,0-1.5,0.7-1.5,1.5c0,0.4,0.2,0.7,0.4,1l0,0l9.3,9.7l-9.3,9.7c-0.3,0.3-0.6,0.7-0.6,1.1c0,0.9,0.7,1.5,1.5,1.5 c0.5,0,1-0.2,1.2-0.6l0,0l10.2-10.7l0,0l0,0l0,0l0.2-0.2c0.1-0.1,0.1-0.2,0.2-0.2l0,0c0-0.1,0.1-0.2,0.1-0.2l0,0 c0-0.1,0.1-0.2,0.1-0.3l0,0c0-0.1,0-0.2-0.1-0.3l0,0v-0.1C22.6,15.5,22.6,15.4,22.6,15.3L22.6,15.3L22.6,15.3z"})})}function yt(e,t){if(!t)return!1;const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.left>=o.left&&n.bottom<=o.bottom&&n.right<=o.right}function vt({category:e,onToggleChange:t,sectionText:n,toggleValue:o,modalBodyRef:i}){const[s,r]=tt(!1),a=e===p.NECESSARY,c=it(null),l=it(null),h=()=>{r(!s)};ot((()=>{if(s){const e=c.current;e&&e.scrollIntoView&&!yt(e,i.current)&&e.scrollIntoView({behavior:"smooth"})}}),[s,i,c]);return gt("div",{className:"hs-category-row",ref:c,children:[gt("div",{className:"hs-category-row-header",children:[gt("button",{id:`hs-category-${e}`,className:"hs-category-label",onClick:h,"aria-expanded":s,"aria-controls":`hs-category-description-${e}`,tabIndex:0,children:[gt(bt,{className:"description-accordion-arrow "+(s?"rotated":"")}),gt("span",{dangerouslySetInnerHTML:z(n.label)})]}),!a&>(ft,{category:e,disabled:e===p.NECESSARY,onToggleChange:e=>t(e),toggleValue:o}),n.toggleLabel&>("span",{className:"hs-always-active-label",dangerouslySetInnerHTML:z(n.toggleLabel),tabIndex:0,"aria-label":n.toggleLabel})]}),gt("div",{className:"hs-category-description "+(s?"visible":""),ref:l,style:{maxHeight:s&&l.current?2*l.current.scrollHeight:0},id:`hs-category-description-${e}`,dangerouslySetInnerHTML:z(n.description),tabIndex:0})]})}var Ct=n(1),xt=n.n(Ct),St=n(2),Tt=n.n(St);const wt=(e,t,n,o,i)=>{const s=e.getDocument(),r=s.createElement("style");r.setAttribute("type","text/css");r.setAttribute("id",o);const a=new RegExp("https://api_base_url","g"),c=i?t.replace(a,i):t,l=s.createTextNode(c);r.appendChild(l);s.head.appendChild(r)};function kt(e,t,n){if(!e.getHasLoadedBaseStyle()){wt(e,xt(),t,b,n);e.setHasLoadedBaseStyle(!0)}}function Ot(e,t){if(!e.getHasLoadedCbcStyle()){wt(e,Tt(),t,y);e.setHasLoadedCbcStyle(!0)}}function Et({accentColor:e,consent:t,context:n,modalText:o,onAcceptCategories:i,onCloseModal:s}){const r=it(null),a=it(null),c=it(null),l=it(null);ot((()=>{r.current&&pt(n,r.current,a.current,c.current)}),[n,r,a,c]);const[h,d]=tt(t.categories.analytics),[u,m]=tt(t.categories.advertisement),[f,b]=tt(t.categories.functionality),y=()=>{i({[p.ANALYTICS]:h,[p.ADVERTISEMENT]:u,[p.FUNCTIONALITY]:f})},v=()=>{d(!0);m(!0);b(!0);i({[p.ANALYTICS]:!0,[p.ADVERTISEMENT]:!0,[p.FUNCTIONALITY]:!0})};Ot(n,e);return gt("div",{id:g,"data-nosnippet":"true",children:gt("div",{id:_,ref:r,role:"alertdialog","aria-modal":"true","aria-labelledby":"hs-modal-introduction","aria-describedby":"hs-modal-introduction-description",tabIndex:0,children:[gt("div",{id:"hs-modal-header",children:gt("div",{id:"hs-modal-header-container",children:gt("button",{id:"hs-modal-close-button",className:"hs-close-button",onClick:()=>s(),ref:a,tabIndex:0,"aria-label":"Close modal",children:gt(_t,{})})})}),gt("div",{id:"hs-modal-body",ref:l,children:gt("div",{id:"hs-modal-body-container",children:[gt("div",{id:"hs-modal-introduction",children:gt("span",{dangerouslySetInnerHTML:z(o.introduction.label)})}),gt("div",{id:"hs-modal-introduction-description",children:gt("p",{dangerouslySetInnerHTML:z(o.introduction.description)})}),gt("div",{id:"hs-categories-container",children:[gt(vt,{category:p.NECESSARY,onToggleChange:()=>{},sectionText:o.necessary,toggleValue:!0,modalBodyRef:l}),gt(vt,{category:p.ANALYTICS,onToggleChange:e=>d(e),sectionText:o.analytics,toggleValue:h,modalBodyRef:l}),gt(vt,{category:p.ADVERTISEMENT,onToggleChange:e=>m(e),sectionText:o.advertisement,toggleValue:u,modalBodyRef:l}),gt(vt,{category:p.FUNCTIONALITY,onToggleChange:e=>b(e),sectionText:o.functionality,toggleValue:f,modalBodyRef:l})]})]})}),gt("div",{id:"hs-modal-footer",children:gt("div",{id:"hs-modal-footer-container",children:[gt("button",{id:"hs-modal-accept-all",onClick:()=>v(),tabIndex:0,children:o.acceptLabel}),gt("button",{id:"hs-modal-save-settings",onClick:y,ref:c,tabIndex:0,children:o.saveSettingsLabel})]})})]})})}function It({apiBaseUrl:e,consent:t,setting:n,context:o,onConsentChange:i,onCloseBannerWithoutConsent:s,dismissNotifyBanner:r}){const[a,c]=tt(!1),l=e=>{if(e!==J.NOTIFY){t.update(!0);i(t)}else r()},d=()=>{t.update(!1);i(t)},u=({analytics:e,advertisement:n,functionality:o})=>{t.updateCategories({analytics:e,advertisement:n,functionality:o});i(t)},g=e=>{if(e!==J.OPT_IN&&e!==J.COOKIES_BY_CATEGORY)if(e!==J.NOTIFY){t.update(!0);i(t)}else r();else s()},_=()=>{c(!0)},p=()=>{c(!1);const e=o.getDocument().getElementById(h);e&&e.focus()};kt(o,n.customizationSettings.accentColor,e);return gt(Se,{children:[gt(mt,{context:o,setting:n,onAcceptAll:l,onDeclineAll:d,onCookieSettingsClick:_,onCloseBannerButtonClick:g,isModalDisplayed:a}),a&>(Et,{accentColor:n.customizationSettings.accentColor,consent:t,context:o,modalText:n.policy.text.modalText,onAcceptCategories:u,onCloseModal:p})]})}function At({apiBaseUrl:e,context:t,setting:n,onCloseBanner:o}){kt(t,n.customizationSettings.accentColor,e);return gt("div",{id:d,"data-nosnippet":"true",role:"dialog","aria-describedby":"hs-banner-gpc-wording",children:gt("div",{id:"hs-banner-gpc-inner",children:[gt("div",{id:"hs-banner-gpc-header",children:gt("button",{id:"hs-banner-gpc-close-button",className:"hs-close-button",onClick:o,"aria-label":"Dismiss banner",children:gt(_t,{})})}),gt("div",{id:"hs-banner-gpc-wording",dangerouslySetInnerHTML:z(n.gpcSettings.notificationText)})]})})}var Nt=["helvetica","arial","arial-black","verdana","tahoma","trebuchet ms","impact","times new roman","georgia","palatino","courier","comic sans ms","courier new","sans-serif","system-ui"];function Lt(e){return`${E}?family=${e}:ital,wght@${O.join(";")}&display=swap`}function Bt(e,t){const n=t||"Lato",o=e.getDocument(),i=e.getWindow();if(Nt.indexOf(n.toLowerCase())>-1)return;if(i[k])return;const s=o.createElement("link");s.setAttribute("href",Lt(n));s.setAttribute("rel","stylesheet");s.setAttribute("class",w);o.head.appendChild(s);i[k]=!0}const Pt=(e,t)=>{const n=e.getDocument().createElement("div");n.setAttribute("id",u);n.setAttribute("style",t);const o=e.getDocument().body;o.insertBefore(n,o.firstChild);return n};function Rt(e,t,n,o,i,s,r,a,c){const l=Pt(i,o);Bt(i,c);He(gt(It,{apiBaseUrl:e,consent:t,setting:n,context:i,onConsentChange:e=>s(e),onCloseBannerWithoutConsent:r,dismissNotifyBanner:a}),l);return l}function Dt(e,t,n,o,i,s){const r=Pt(t,o);Bt(t,s);He(gt(At,{apiBaseUrl:e,context:t,setting:n,onCloseBanner:i}),r);return r}class Gt{static postActivity(e,t,n){fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then((()=>B.info(`Sent a banner ${t} event.`))).catch((()=>B.error(`There was an issue sending a banner ${t} event.`)))}static sendView(e,t){Gt.postActivity(`${e}/activity/view`,"VIEW",t)}static sendClick(e,t){Gt.postActivity(`${e}/activity/click`,"CLICK",t)}}let Ut;!function(e){e[e.ROUND=0]="ROUND";e[e.SQUARE=1]="SQUARE";e[e.PILL=2]="PILL"}(Ut||(Ut={}));const Mt={[Ut.ROUND]:"0.5em",[Ut.SQUARE]:"0",[Ut.PILL]:"3em"},Ft={[Ut.ROUND]:"12px",[Ut.SQUARE]:"0",[Ut.PILL]:"0"},Yt=e=>null==e,$t=(e,t)=>t?[{cssVar:e,value:t}]:[],Ht=(e,t)=>t?[{cssVar:e,value:t}]:[],Vt=(e,t)=>t?[{cssVar:e,value:`${t.number}${t.units}`}]:[],zt=(e,t)=>Yt(t)?[]:[{cssVar:e,value:Mt[t]}],Wt=(e,t)=>Yt(t)?[]:[{cssVar:e,value:Ft[t]}],Kt=(e,t)=>Yt(t)?[]:[...Ht(`--hs-banner-${e}-color`,t.color),...Ht(`--hs-banner-${e}-text-color`,t.textColor),...Ht(`--hs-banner-${e}-border-color`,t.borderColor)],qt=e=>Yt(e)?[]:[{cssVar:"--hs-banner-close-button-display",value:e?"flex":"none"}],Jt=e=>{if(Yt(e))return[];switch(U.fromJS(e)){case U.BOTTOM:return[{cssVar:"--hs-banner-inset",value:"auto 50% 32px"},{cssVar:"--hs-banner-translate-x",value:"-50%"},{cssVar:"--hs-banner-translate-y",value:"0"}];case U.BOTTOM_LEFT:return[{cssVar:"--hs-banner-inset",value:"auto auto 32px 32px"},{cssVar:"--hs-banner-translate-x",value:"0"},{cssVar:"--hs-banner-translate-y",value:"0"}];case U.BOTTOM_RIGHT:return[{cssVar:"--hs-banner-inset",value:"auto 32px 32px auto"},{cssVar:"--hs-banner-translate-x",value:"0"},{cssVar:"--hs-banner-translate-y",value:"0"}];case U.CENTER:return[{cssVar:"--hs-banner-inset",value:"50% auto auto 50%"},{cssVar:"--hs-banner-translate-x",value:"-50%"},{cssVar:"--hs-banner-translate-y",value:"-50%"}];default:return[{cssVar:"--hs-banner-inset",value:"32px auto auto 50%"},{cssVar:"--hs-banner-translate-x",value:"-50%"},{cssVar:"--hs-banner-translate-y",value:"0"}]}},jt=e=>e.map((e=>`${e.cssVar}:${e.value}`)).join(";"),Qt=e=>[...Ht("--hs-banner-color",e.bannerColor),...Ht("--hs-banner-text-color",e.bannerTextColor),...Ht("--hs-banner-settings-text-color",e.bannerSettingsButtonTextColor),...Vt("--hs-banner-width",e.bannerWidth),...Vt("--hs-banner-padding",e.bannerPadding),...Wt("--hs-banner-corners",e.bannerCorners),...zt("--hs-banner-button-corners",e.bannerButtonCorners),...Kt("accept",e.bannerAcceptButtonStyle),...Kt("decline",e.bannerDeclineButtonStyle),...qt(e.showCloseButton),...Jt(e.position),...Ht("--hs-banner-modal-color",e.modalColor),...Ht("--hs-banner-modal-text-color",e.modalTextColor),...Vt("--hs-banner-modal-padding",e.modalContainerPadding),...Vt("--hs-banner-modal-width",e.modalWidth),...Wt("--hs-banner-modal-corners",e.modalCorners),...zt("--hs-banner-modal-button-corners",e.modalButtonCorners),...Kt("modal-accept",e.modalAcceptButtonStyle),...Kt("modal-save",e.modalSaveSettingsButtonStyle),...Wt("--hs-banner-modal-category-corners",e.modalCategoryCorners),...Ht("--hs-banner-modal-cateogry-color",e.modalCategoryColor),...Ht("--hs-banner-modal-category-text-color",e.modalCategoryTextColor),...Ht("--hs-banner-modal-toggle-on-color",e.modalCategoryToggleOnColor),...Ht("--hs-banner-modal-toggle-off-color",e.modalCategoryToggleOffColor),...$t("--hs-banner-font-family",e.fontFamily),...Vt("--hs-banner-font-size",e.fontSize)],Zt=e=>[...Ht("--hs-banner-accentColor",e.accentColor),...Jt(e.position.getValue()),...qt(e.showCloseButton)],Xt=e=>{const t={};if(!e)return t;const n=e.indexOf("-"),[o,i]=-1===n?[e,void 0]:[e.substring(0,n),e.substring(n+1)];o&&(t.countryCode=o);i&&(t.regionCode=i);return t},en=(e,t)=>{},tn=(e,t)=>{try{e()}catch(e){console.error(e);t&&t(e)}},nn=e=>{if(!e.hsCookieBanner)return;const t=e.hsCookieBanner.rawPerfMetrics;if(!t)return;const n=["numSettings","bannerInitAt","bannerStartAt","bannerReadyAt"];for(const e of n)if(null==t[e])return;const o=null==t.geolocationReceivedAt||null==t.geolocationRequestedAt;return t.usesGeolocation&&o?void 0:{numSettings:t.numSettings,bannerInitAt:t.bannerInitAt,bannerStartAt:t.bannerStartAt,bannerReadyAt:t.bannerReadyAt,matchedBannerType:t.matchedBannerType,usesGpc:t.usesGpc,geolocationRequestInCriticalPath:t.geolocationRequestInCriticalPath,geolocationRequestDuration:t.usesGeolocation?t.geolocationReceivedAt-t.geolocationRequestedAt:void 0,bannerRendered:t.bannerRendered}},on=()=>({numSettings:void 0,bannerInitAt:void 0,bannerStartAt:void 0,bannerReadyAt:void 0,matchedBannerType:void 0,usesGpc:!1,usesGeolocation:!1,geolocationRequestInCriticalPath:!1,geolocationReceivedAt:void 0,geolocationRequestedAt:void 0,bannerRendered:!1}),sn=()=>window.performance.now?Math.round(window.performance.now()):void 0,rn=(e,t,n)=>{try{if(!e.hsCookieBanner||!e.hsCookieBanner.rawPerfMetrics)return;e.hsCookieBanner.rawPerfMetrics[t]=n}catch(e){en(e)}};function an(...e){(window.dataLayer=window.dataLayer||[]).push(arguments)}const cn=(e,t)=>!!(e&&!T.includes(e)||t&&J.isOptIn(t)),ln=(e,t,n)=>{const o=Xt(t).countryCode;if(!cn(o,n))return;const i=e.categories.advertisement?"granted":"denied";an("consent","update",{ad_storage:i,analytics_storage:e.categories.analytics?"granted":"denied",ad_user_data:i,ad_personalization:i})},hn=e=>fetch(e).then((t=>{if(!t.ok)throw new Error(`Non-2XX status: ${t.status}, url: ${e}`);return t.text()})),dn=async e=>{const t=`${e}/cf-location`,n=await hn(t).catch((e=>{en(e,{failingComponent:"cfGeolocationWorkerRequest"});return null}));if(n)return n;const o=`https://${new URL(e).hostname}/cookie-banner-public/v2/cf-location`;return hn(o)},un="wildcard.hs-banner.com",gn=e=>{e.configuration.wildcard=!0;return e};class _n{constructor(e){this.publicMethods=["showBanner","hideBanner","addPrivacyConsentListener","setApiBaseUrl","setCookiesToSubdomain","setUseSecureCookies","addCookieDomain","addEnabledFeatureGates","setBannerSettings","setCustomizationSettings","setUseGeoLocation","setGeoLocation","setHubSpotConsent","addPrivacySettingsListener","revokeCookieConsent","useGoogleConsentModeV2","setBusinessUnitId"];this.enabledFeatureGates=[];this.businessUnitId=0;this.scriptVersion="v2";this.context=e;this.bannerSettings=[];this.privacyConsentListeners=[];this.privacySettingsListeners=[];this.useGeoLocation=!1;this.useGCMV2=!1;this.reportedMissingGeolocation=!1;this.cookie=new ce(e);this.isRunningInTestMode=e.getLocation().search.includes(l);this.removeDeprecatedBannerCookies()}removeDeprecatedBannerCookies(){this.cookie.get(le.OPT_OUT_COOKIE.getName())&&this.cookie.remove(le.OPT_OUT_COOKIE.getName());this.cookie.get(le.INITIAL_OPT_IN.getName())&&this.cookie.remove(le.INITIAL_OPT_IN.getName())}run(){const e=this.context.getWindow();if(this.disableBannerFlagSet()){B.info('"PRIVACY" flag found in disabledHsPopups window queue. Banner script will not run.');return!0}rn(e,"numSettings",this.bannerSettings.length);this.findMatchingSetting();this.logGpcSignal();if(!this.matchedSetting){B.debug("we were unable to find the matching settings for this webpages. The banner will not run.");this.setConsent(new oe(!0),{reportClick:!1});return!1}rn(e,"matchedBannerType",this.matchedSetting.policy.type.getValue());if(this.shouldScanningOverride()){this.setConsent(new oe(!0),{reportClick:!1,persist:!0,treatAsConsentEvent:!0});return!0}const t=!!this.shouldGpcOverride();rn(e,"usesGpc",t);if(t){this.setConsent(new oe(!1),{persist:!1,reportClick:!1});this.isGpcBannerDismissCookiePresent()||this.renderGpcBanner();return!0}switch(this.matchedSetting.policy.type){case J.NO_COOKIES:this.setConsent(new oe(!1),{reportClick:!1});break;case J.OPT_IN:case J.COOKIES_BY_CATEGORY:if(this.useConsentFromExistingCookie())break;this.cookie.removeGACookie();this.setConsent(oe.buildInitialConsent(),{persist:!1,reportClick:!1});this.renderBanner();break;case J.OPT_OUT_BY_CATEGORY:case J.OPT_OUT:if(this.useConsentFromExistingCookie())break;this.setConsent(new oe(!0),{persist:!1,reportClick:!1});this.renderBanner();break;case J.NOTIFY:this.setConsent(new oe(!0),{persist:!1,reportClick:!1});if(this.isNotifyBannerDismissCookiePresent())break;this.renderBanner();break;case J.COOKIES_WITHOUT_BANNER:default:this.setConsent(new oe(!0),{reportClick:!1})}return!0}useConsentFromExistingCookie(){const e=this.readConsentCookie();if(e){this.setConsent(e,{persist:!1,reportClick:!1});e.hasAnalyticsConsent()||this.cookie.removeGACookie();return!0}return!1}shouldScanningOverride(){return[J.OPT_OUT,J.OPT_OUT_BY_CATEGORY,J.COOKIES_BY_CATEGORY,J.OPT_IN,J.NOTIFY].includes(this.matchedSetting.policy.type)&&this.context.getWindow()[r]}shouldGpcOverride(){return this.matchedSetting.gpcSettings.enabled&&this.getGpcSignal()}getGpcSignal(){const e=this.context.getLocation().search;if(e.includes(s)){return{TRUE:!0,FALSE:!1}[(new URLSearchParams(e).get(s)||"").toUpperCase()]}return this.context.getNavigator().globalPrivacyControl}logGpcSignal(){B.debug(`GPC signal: ${this.getGpcSignal()}`)}findMatchingSetting(){const e=this.context.getPathname(),{countryCode:t,regionCode:n}=Xt(this.geoLocation),o=this.bannerSettings.filter((e=>e.enabled)).map((o=>({setting:o,matchResult:o.configuration.test(e,t,n)}))).reduce(((e,t)=>D(e.matchResult,t.matchResult)?e:t),{setting:null,matchResult:P});R(o.matchResult)&&o.setting&&this.setMatchingSetting(o.setting.withSanitizedPolicy())}setMatchingSetting(e){this.matchedSetting=e;if(0===this.privacySettingsListeners.length)return;const t=e.toLegacyPrivacyPolicy();this.privacySettingsListeners.forEach((e=>this.safeCallListener(e,t)))}getMatchingSetting(){return this.matchedSetting}hasEnabledFeatureGate(e){return this.enabledFeatureGates&&this.enabledFeatureGates.includes(e)}setApiBaseUrl(e){/^https:\/\/js-?.{0,3}\.hs-banner(qa)?\.com.*/.test(e)?this.apiBaseUrl=e:B.error("unsupported base Api url provided.")}setBannerSettings(e){(e[this.getCurrentDomain()]||[]).forEach((e=>this.bannerSettings.push(Z.fromJS(e))));(e[this.getWildcardDomain()]||[]).forEach((e=>this.bannerSettings.push(gn(Z.fromJS(e)))))}setCustomizationSettings(e){this.styleOverrides=e[this.getCurrentDomain()];this.wildcardStyleOverrides=e[this.getWildcardDomain()];this.bannerParentElement&&this.bannerParentElement.setAttribute("style",this.getRenderStyles())}getCurrentDomain(){return this.context.getLocation().hostname}getWildcardDomain(){return 0===this.businessUnitId?un:`${this.businessUnitId}.${un}`}getCurrentGeoLocation(){const e=this.context.getWindow();rn(e,"usesGeolocation",!0);rn(e,"geolocationRequestedAt",sn());const t=this.context.getLocation().search;if(t.includes(i)){const e=new URLSearchParams(t).get(i);return Promise.resolve(e||"")}return dn(this.apiBaseUrl).then((t=>{rn(e,"geolocationReceivedAt",sn());return t})).catch((e=>{B.error("We could not fetch the geolocation.");en(e);return""}))}setGeoLocation(e){this.geoLocation=e;const{countryCode:t,regionCode:n}=Xt(this.geoLocation);try{null==t&&this.reportEmptyGeolocation(!1);"US"===t&&null==n&&this.reportEmptyGeolocation(!0)}catch(e){console.error("Failed to report missing geolocation data",e)}}addEnabledFeatureGates(e){e.forEach((e=>this.enabledFeatureGates.push(e)))}addCookieDomain(e){this.cookie.addDomain(e)}setCookiesToSubdomain(e){this.cookie.setCookiesToSubdomain(e)}setUseSecureCookies(e){this.cookie.setUseSecureCookies(e)}setUseGeoLocation(){this.useGeoLocation=!0}useGoogleConsentModeV2(){if(!this.useGCMV2){this.useGCMV2=!0;this.consent&&this.sendConsentToGCMV2(this.consent.getSafeCopy())}}sendConsentToGCMV2(e){const t=this.matchedSetting&&this.matchedSetting.policy&&this.matchedSetting.policy.type;if(this.geoLocation)ln(e,this.geoLocation,t);else{null==this.gcmGeoLocationFetchPromise&&(this.gcmGeoLocationFetchPromise=this.getCurrentGeoLocation().then((e=>{this.setGeoLocation(e);return e})));this.gcmGeoLocationFetchPromise.then((n=>{ln(e,n,t)})).catch((e=>{en(e)}))}}addPrivacyConsentListener(e){this.consent&&this.safeCallListener(e,this.consent.getSafeCopy());this.privacyConsentListeners.push(e)}setConsent(e,t){const n={persist:!0,treatAsConsentEvent:!0,reportClick:!0},{persist:o,treatAsConsentEvent:i,reportClick:s}=Object.assign({},n,t);this.consent=e;i&&this.hideBanner();o&&this.setConsentCookie();if(!this.isRunningInTestMode){s&&(this.consent.hasAnalyticsConsent()?this.trackAction("trackApproveCookieConsent"):this.trackAction("trackDeclineCookieConsent"));if(i){this.privacyConsentListeners.forEach((t=>this.safeCallListener(t,e.getSafeCopy())));this.useGCMV2&&this.sendConsentToGCMV2(e.getSafeCopy());this.consent.adsHasChangedToFalse()&&this.cookie.removeFBPCookie()}s&&this.sendClickActivity()}}getConsent(){return this.consent.getSafeCopy()}setConsentCookie(){if(!this.matchedSetting||this.isRunningInTestMode)return;const e=this.matchedSetting.policy.type;e!==J.NO_COOKIES&&e!==J.COOKIES_WITHOUT_BANNER&&e!==J.NOTIFY&&this.cookie.set(le.CATEGORY_PREFERENCE_COOKIE.getName(),this.consent.toCookieString(),{daysToExpire:le.CATEGORY_PREFERENCE_COOKIE.getExpirationDays(),path:"/"})}readConsentCookie(){const e=this.cookie.get(le.CATEGORY_PREFERENCE_COOKIE.getName());return e?oe.buildFromCookieString(e):null}safeCallListener(e,t){try{e(t,this.scriptVersion)}catch(e){B.error("error calling listener.")}}isGpcBannerDismissCookiePresent(){return!!this.cookie.get(le.GPC_BANNER_DISMISS_COOKIE.getName())}setGpcBannerDismissCookie(){this.cookie.set(le.GPC_BANNER_DISMISS_COOKIE.getName(),"true",{daysToExpire:le.GPC_BANNER_DISMISS_COOKIE.getExpirationDays(),path:"/"})}isNotifyBannerDismissCookiePresent(){return!!this.cookie.get(le.NOTIFY_BANNER_DIMISS_COOKIE.getName())}setNotifyBannerDismissCookie(){this.cookie.set(le.NOTIFY_BANNER_DIMISS_COOKIE.getName(),"true",{daysToExpire:le.NOTIFY_BANNER_DIMISS_COOKIE.getExpirationDays(),path:"/"})}dismissNotifyBanner(){this.hideBanner();this.setNotifyBannerDismissCookie()}dismissGpcBanner(){this.hideBanner();this.setGpcBannerDismissCookie()}getRenderStyles(){try{if(!this.matchedSetting)return"";if(this.styleOverrides&&!this.matchedSetting.configuration.wildcard){B.debug("using style overrides");return jt(Qt(this.styleOverrides))}if(this.wildcardStyleOverrides&&this.matchedSetting.configuration.wildcard){B.debug("using wildcard style overrides");return jt(Qt(this.wildcardStyleOverrides))}B.debug("using legacy customization render styles");return jt(Zt(this.matchedSetting.customizationSettings))}catch(e){console.error("unable to utilize style overrides",e);return""}}renderGpcBanner(){this.bannerParentElement=Dt(this.apiBaseUrl,this.context,this.matchedSetting,this.getRenderStyles(),this.dismissGpcBanner.bind(this),this.styleOverrides&&this.styleOverrides.fontFamily);if("complete"===document.readyState){var e;null===(e=document.getElementById(d))||void 0===e||e.classList.add(f)}else window.addEventListener("load",(()=>{var e;null===(e=document.getElementById(d))||void 0===e||e.classList.add(f)}),{once:!0});rn(this.context.getWindow(),"bannerRendered",!0);this.sendViewActivity()}renderBanner(){this.bannerParentElement=Rt(this.apiBaseUrl,this.consent,this.matchedSetting,this.getRenderStyles(),this.context,this.setConsent.bind(this),this.hideBanner.bind(this),this.dismissNotifyBanner.bind(this),this.styleOverrides&&this.styleOverrides.fontFamily);if("complete"===document.readyState){var e;null===(e=document.getElementById(h))||void 0===e||e.classList.add(f)}else window.addEventListener("load",(()=>{var e;null===(e=document.getElementById(h))||void 0===e||e.classList.add(f)}),{once:!0});rn(this.context.getWindow(),"bannerRendered",!0);this.sendViewActivity()}hideBanner(){if(this.bannerParentElement){const e=this.bannerParentElement.children;for(let t=0;t1){e[1].classList.remove(m)}else e[0].classList.remove(m)}invoke(e,t){if(!this.publicMethods.includes(e)||!Reflect.has(this,e)){B.debug(`failed to invoke method ${e} of the banner.`);throw new Error("Could not invoke banner method.")}Reflect.get(this,e).apply(this,t)}getBaseActivityPayload(){const e=this.context.getWindow().hsVars,t=e&&e.page_id;return{bannerGeoLocation:this.geoLocation||"",bannerPolicyId:this.matchedSetting.id,bannerType:this.matchedSetting.policy.type.getName(),domain:this.context.getHostname(),portalId:this.matchedSetting.portalId,contentId:t||""}}sendClickActivity(){if(!this.consent||!this.matchedSetting||this.isRunningInTestMode)return;const e={consentAllowed:this.consent.allowed,consentAnalytics:this.consent.categories.analytics,consentAdvertisement:this.consent.categories.advertisement,consentFunctionality:this.consent.categories.functionality},t=Object.assign({},this.getBaseActivityPayload(),e);Gt.sendClick(this.apiBaseUrl,t)}sendViewActivity(){if(!this.matchedSetting||this.isRunningInTestMode)return;const e=this.getBaseActivityPayload();Gt.sendView(this.apiBaseUrl,e)}getAnalyticsQueue(){return this.context.getWindow()[o]=this.context.getWindow()[o]||[]}trackAction(e){try{this.getAnalyticsQueue().push([e])}catch(e){B.error(`Unable to send analytics tracking event: ${e}`)}}disableBannerFlagSet(){if(!0===this.context.getWindow()[x])return!0;const e=this.context.getWindow()[v]||[];return Array.isArray(e)&&e.includes(C)}setBusinessUnitId(e){this.businessUnitId=e}revokeCookieConsent(){[le.INITIAL_OPT_IN.getName(),le.OPT_OUT_COOKIE.getName(),le.CATEGORY_PREFERENCE_COOKIE.getName(),le.GPC_BANNER_DISMISS_COOKIE.getName(),le.NOTIFY_BANNER_DIMISS_COOKIE.getName(),"__hssc","__hssrc","__hstc","__hs_do_not_track","hubspotutk","messagesUtk"].forEach((e=>this.cookie.remove(e)));this.trackAction("trackRevokeCookieConsent");this.setConsent(new oe(!1),{reportClick:!1})}addPrivacySettingsListener(e){this.matchedSetting&&this.safeCallListener(e,this.matchedSetting.toLegacyPrivacyPolicy());this.privacySettingsListeners.push(e)}reportEmptyGeolocation(e){if(this.reportedMissingGeolocation)return;this.reportedMissingGeolocation=!0;const t=`${this.apiBaseUrl}/geolocation-reporting`;navigator&&navigator.sendBeacon?navigator.sendBeacon(t,JSON.stringify(e)):fetch(`${t}${e?"?missingRegionInUS=true":""}`,{keepalive:!0}).catch((()=>{en("unable to report missing geolocation data")}))}setHubSpotConsent(e){const t=oe.fromCategories(e);this.consent=t;this.privacyConsentListeners.forEach((e=>this.safeCallListener(e,t.getSafeCopy())))}}const pn=new CustomEvent(S);class mn{constructor(e){this.priorityFunctions=["setApiBaseUrl","setCookiesToSubdomain","setUseSecureCookies","addCookieDomain","addEnabledFeatureGates","setBusinessUnitId","setBannerSettings"];const n=e.getWindow();if(Array.isArray(n[t]))this.queue=n[t];else{this.queue=[];n[t]=this.queue}this.banner=new _n(e);this.context=e}queuePushFn(e){try{if(!(e&&Array.isArray(e)&&e.length>0)){B.debug("invalid arguments passed to the banner queue.");return!1}const t=e[0],n=e.slice(1);this.banner.invoke(t,n);return!0}catch(e){B.error("There was an error running banner method.")}return!1}overrideQueuePush(){this.queue.push=this.queuePushFn.bind(this)}dequeueEntries(e){for(let t=0;t{this.banner.setGeoLocation(e);this.banner.run();t.dispatchEvent(pn)}))}else{this.banner.run();t.dispatchEvent(pn)}}}}function fn(t){const n=t.getWindow(),o=t.getDocument();if(n[e]){B.info("the cookie banner has already been loaded via another script.");return}n[e]=!0;rn(n,"bannerStartAt",sn());o.addEventListener(S,(()=>{rn(n,"bannerReadyAt",sn())}));new mn(t).run()}function bn(e,t){tn((()=>{fn(e)}),t)}function yn(e,t){const n=e.getWindow(),o=e.getDocument();n.hsCookieBanner={rawPerfMetrics:on(),getPerfMetrics:()=>nn(n)};rn(n,"bannerInitAt",sn());function i(){bn(e,t);o.removeEventListener("DOMContentLoaded",i)}"loading"===o.readyState?o.addEventListener("DOMContentLoaded",i):bn(e,t)}const vn=N();tn((()=>{yn(vn,en)}),en)}()}(); /****** Cookie Banner version static-1.4733 *****/