var _hsp = window['_hsp'] = window['_hsp'] || []; _hsp.push(['setBannerSettings', {}]); _hsp.push(['addCookieDomain', '.rokt.com']); _hsp.push(['addCookieDomain', '.shopify.com']); _hsp.push(['addCookieDomain', '.hsforms.com']); _hsp.push(['addCookieDomain', '.hs-sites.com']); _hsp.push(['addCookieDomain', '.hubspot.com']); _hsp.push(['addCookieDomain', '.hubspotpagebuilder.com']); _hsp.push(['setApiBaseUrl', 'https://js.hs-banner.com/v2']); /** * HubSpot Cookie Banner Code Copyright 2023 HubSpot, Inc. http://www.hubspot.com */ !function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};t[o].call(i.exports,i,i.exports,n);i.l=!0;return i.exports}n.m=t;n.c=e;n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})};n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:!0})};n.t=function(t,e){1&e&&(t=n(t));if(8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);n.r(o);Object.defineProperty(o,"default",{enumerable:!0,value:t});if(2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o};n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};n.d(e,"a",e);return e};n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};n.p="//static.hsappstatic.net/cookie-banner-js/static-1.1071/";n(n.s=3)}([function(t,e,n){var o;function s(){var t,e;e=arguments[0]||{};this.config={};this.config.elements=e.elements?e.elements:[];this.config.attributes=e.attributes?e.attributes:{};this.config.attributes[s.ALL]=this.config.attributes[s.ALL]?this.config.attributes[s.ALL]:[];this.config.allow_comments=!!e.allow_comments&&e.allow_comments;this.allowed_elements={};this.config.protocols=e.protocols?e.protocols:{};this.config.add_attributes=e.add_attributes?e.add_attributes:{};this.dom=e.dom?e.dom:document;for(t=0;t0;)this.current_element.removeChild(this.current_element.firstChild);i.appendChild(this.current_element)}if(!this.config.remove_all_contents&&!this.config.remove_element_contents[r])for(e=0;e0,i=this.targetedCountries&&this.targetedCountries.length>0;this.allUrlsAndLocations?this.configType=E.ALL_URLS:this.configType=o&&i?E.PATH_AND_GEO:i?E.GEO:E.PATH}getMatchLevel(){return this.configType.getLevel()}getPriority(){switch(this.configType){case E.ALL_URLS:case E.GEO:return 0;case E.PATH:case E.PATH_AND_GEO:return this.path.length;default:return 0}}test(t,e){const n=void 0!==t&&t.startsWith(this.path),o=void 0!==e&&this.targetedCountries.includes(e);switch(this.configType){case E.PATH_AND_GEO:return n&&o;case E.GEO:return o;case E.PATH:return n;case E.ALL_URLS:return!0;default:return!1}}static fromJS(t){const{allUrlsAndLocations:e,path:n,targetedCountries:o}=t;return new O(e,n,o)}}class A{constructor(t,e){this.value=t;this.bannerClassname=e}getBannerClassname(){return this.bannerClassname}getValue(){return this.value}static fromJS(t){return t===this.TOP.getValue()?this.TOP:this.BOTTOM}}A.TOP=new A(0,"");A.BOTTOM=new A(1,"hs-cookie-notification-position-bottom");class I{constructor(t,e,n){this.position=t;this.accentColor=e;this.showCloseButton=n}static objectToCSS(t){return Object.entries(t).map(([t,e])=>`${t}:${e}`).join(";")}static setStyleOnBannerParent(t){const e=document.getElementById(p);null!=e&&e.setAttribute("style",this.objectToCSS(t))}static fromJS(t){const{position:e,accentColor:n,showCloseButton:o}=t;return new I(A.fromJS(e),n,o||!1)}}var N=n(0),P=n.n(N);const B=new P.a({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",P.a.ALL]},blockquote:{cite:["http","https",P.a.RELATIVE]},q:{cite:["http","https",P.a.RELATIVE]}},remove_contents:["style","script"],add_attributes:{a:{rel:"noopener"}}}),D=t=>{if(!t)return t;const e=document.createElement("div");try{const n=document.createRange().createContextualFragment(t),o=B.clean_node(n);e.appendChild(o.cloneNode(!0))}catch(e){L.error("we had an error sanitizing an html string: "+t)}return e.innerHTML},R=t=>({__html:t||""});class G{constructor(t,e,n){this.description=t;this.label=e;this.toggleLabel=n}static fromJS(t){return new G(t.description,t.label,t.toggleLabel)}getSanitizedText(){return new G(D(this.description),D(this.label),D(this.toggleLabel))}}class H{constructor(t,e,n,o,i,s,a){this.acceptLabel=t;this.saveSettingsLabel=e;this.introduction=n;this.necessary=o;this.analytics=i;this.advertisement=s;this.functionality=a}static fromJS(t){return new H(t.acceptAllLabel,t.saveSettingsLabel,G.fromJS(t.introduction),G.fromJS(t.categories.necessary),G.fromJS(t.categories.analytics),G.fromJS(t.categories.advertisement),G.fromJS(t.categories.functionality))}getSanitizedText(){return new H(D(this.acceptLabel),D(this.saveSettingsLabel),this.introduction.getSanitizedText(),this.necessary.getSanitizedText(),this.analytics.getSanitizedText(),this.advertisement.getSanitizedText(),this.functionality.getSanitizedText())}}class z{constructor(t,e,n,o,i,s){this.notification=t;this.acceptLabel=e;this.declineLabel=n;this.disclaimer=o;this.cookieSettingsLabel=i;this.modalText=s}static fromJS(t){return new z(t.notification,t.acceptLabel,t.declineLabel,t.disclaimer,t.modalText&&t.modalText.cookieSettingsLabel,t.modalText&&H.fromJS(t.modalText))}getSanitizedText(){return new z(D(this.notification),D(this.acceptLabel),D(this.declineLabel),D(this.disclaimer),this.cookieSettingsLabel&&D(this.cookieSettingsLabel),this.modalText&&this.modalText.getSanitizedText())}}class M{constructor(t,e){this.value=t;this.name=e}getValue(){return this.value}getName(){return this.name}static fromJS(t){switch(t){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}}}M.COOKIES_WITHOUT_BANNER=new M(0,"COOKIES_WITHOUT_BANNER");M.NO_COOKIES=new M(1,"NO_COOKIES");M.NOTIFY=new M(2,"NOTIFY");M.OPT_IN=new M(3,"OPT_IN");M.COOKIES_BY_CATEGORY=new M(4,"COOKIES_BY_CATEGORY");class U{constructor(t,e){this.type=t;this.text=e}static fromJS(t){const{type:e,text:n}=t;return new U(M.fromJS(e),z.fromJS(n))}getSanitizedPolicy(){return new U(this.type,this.text.getSanitizedText())}}class F{constructor(t,e){this.enabled=t;this.notificationText=D(e||"")}static fromJS(t){return new F(t.enabled,t.notificationText)}}class Y{constructor(t,e,n,o,i,s,a,r,c){this.id=t;this.portalId=e;this.domain=n;this.label=o;this.enabled=i;this.configuration=s;this.policy=a;this.customizationSettings=r;this.gpcSettings=c}static fromJS(t){const{id:e,portalId:n,domain:o,label:i,enabled:s,configuration:a,policy:r,legacyCustomization:c,gpcSettings:l}=t;return new Y(e,n,o,i,s,O.fromJS(a),U.fromJS(r),I.fromJS(c),F.fromJS(l))}withSanitizedPolicy(){return new Y(this.id,this.portalId,this.domain,this.label,this.enabled,this.configuration,this.policy.getSanitizedPolicy(),this.customizationSettings,this.gpcSettings)}toLegacyPrivacyPolicy(){let t;switch(this.policy.type){case M.COOKIES_WITHOUT_BANNER:t=0;break;case M.NO_COOKIES:t=2;break;case M.NOTIFY:case M.OPT_IN:t=1;break;case M.COOKIES_BY_CATEGORY:default:t=3}return{active:this.enabled,testing:!1,mode:t,policyWording:"not used",acceptWording:"not used",cancelWording:"not used",disclaimerWording:"not used",hideDecline:this.policy.type===M.NOTIFY,accentColor:this.customizationSettings.accentColor,bannerType:"not used",label:this.label,privacyDefault:!1,cookiesByCategory:{},id:this.id,portalId:this.portalId}}}const W=1,K=2,j=3,q={[W]:"analytics",[K]:"advertisement",[j]:"functionality"};class V{constructor(t,e,n){this.allowed=t;this.previousCategories=n||{necessary:!0,analytics:!1,advertisement:!1,functionality:!1};this.categories=e||{necessary:!0,analytics:t,advertisement:t,functionality:t}}hasAnalyticsConsent(){return this.allowed||!0===this.categories.analytics}adsHasChangedToFalse(){return!0===this.previousCategories.advertisement&&!1===this.categories.advertisement}update(t){this.previousCategories=this.categories;this.categories=Object.assign({},this.categories,{analytics:t,advertisement:t,functionality:t});this.allowed=t;return this}updateCategories({analytics:t,advertisement:e,functionality:n}){this.previousCategories=this.categories;this.categories={necessary:!0,analytics:t,advertisement:e,functionality:n};this.allowed=t&&e&&n;return this}allCategoriesSelected(){return this.categories.necessary&&this.categories.analytics&&this.categories.advertisement&&this.categories.functionality}getSafeCopy(){return new V(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`${W}:${this.categories.analytics},${K}:${this.categories.advertisement},${j}:${this.categories.functionality}`}static buildFromCookieString(t){const e=t.split(","),n={necessary:!0,analytics:!1,advertisement:!1,functionality:!1};e.forEach(t=>{const e=t.split(":");if(2!==e.length)return;const o=e[0],i=q[o];i&&(n[i]="true"===e[1])});const o=n.necessary&&n.advertisement&&n.analytics&&n.functionality;return new V(o,n)}static buildInitialConsent(){return new V(!1,{necessary:!0,analytics:!1,advertisement:!1,functionality:!1})}}const $=t=>encodeURI(t),J=t=>decodeURI(t),Z="_ga_[a-zA-Z0-9]+",Q="_fbp",X="1970-01-01T00:00:01-00:00";class tt{constructor(t){this.context=t;this.cookiesToSubdomain=!1;this.useSecureCookies=!1;this.domains=[];this.currentDomain=""}isEnabled(){return this.context.getNavigator().cookieEnabled||"cookie"in this.context.getDocument()&&this.context.getDocument().cookie.length>0}addDomain(t){("."+this.context.getHostname()).endsWith(t)&&(!this.currentDomain||t.length=0;o--){if(""===e[o]){if(0!==o){console.error(`Invalid Domain: ${t}, Parsed As: [${e}]`);return[]}continue}const s=`${e[o]}.${i}`;n.push(s);i=s}return n}removeFBPCookie(){const t=new Date(X),e=t.toUTCString();this.getDomainAncestry(this.context.getDocument().domain).forEach(n=>{this.setCookie(Q,"",{expires:";expires="+e,expiresTime:t,path:";path=/",domain:";domain=."+n,secure:"",sameSite:";SameSite=Lax"})})}getGACookieNames(){const t=this.context.getDocument().cookie;if(!t)return[];const e=new RegExp(`(${Z})=[^;]+`,"g");return[...t.matchAll(e)].map(t=>t[1])}removeGACookie(){this.getGACookieNames().forEach(t=>this.remove(t))}remove(t){this.set(t,"",{expiryDate:X})}setCookie(t,e,n){const o=n.expires+n.path+n.domain+n.sameSite+n.secure;this.writeCookie(`${t}=${e}${o}`)}writeCookie(t){this.context.getDocument().cookie=t}setCookiesToSubdomain(t){this.cookiesToSubdomain=t}setUseSecureCookies(t){this.useSecureCookies=t}}class et{constructor(t,e){this.name=t;this.expirationDays=e}getName(){return this.name}getExpirationDays(){return this.expirationDays}}et.CATEGORY_PREFERENCE_COOKIE=new et("__hs_cookie_cat_pref",180);et.GPC_BANNER_DISMISS_COOKIE=new et("__hs_gpc_banner_dismiss",180);et.OPT_OUT_COOKIE=new et("__hs_opt_out",180);et.INITIAL_OPT_IN=new et("__hs_initial_opt_in",7);var nt,ot,it,st,at,rt,ct={},lt=[],ht=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function dt(t,e){for(var n in e)t[n]=e[n];return t}function ut(t){var e=t.parentNode;e&&e.removeChild(t)}function mt(t,e,n){var o,i,s,a={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:a[s]=e[s];if(arguments.length>2&&(a.children=arguments.length>3?nt.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return pt(t,a,o,i,null)}function pt(t,e,n,o,i){var s={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++it:i};return null==i&&null!=ot.vnode&&ot.vnode(s),s}function ft(t){return t.children}function gt(t,e){this.props=t,this.context=e}function _t(t,e){if(null==e)return t.__?_t(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e0?pt(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(u=_[h])||u&&m.key==u.key&&m.type===u.type)_[h]=void 0;else for(d=0;d=n.__.length&&n.__.push({}),n.__[t]}function $t(t){return Ut=1,Jt(se,t)}function Jt(t,e,n){var o=Vt(Ht++,2);return o.t=t,o.__c||(o.__=[n?n(e):se(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=zt),o.__}function Zt(t,e){var n=Vt(Ht++,3);!ot.__s&&ie(n.__H,e)&&(n.__=t,n.__H=e,zt.__H.__h.push(n))}function Qt(t){return Ut=5,Xt((function(){return{current:t}}),[])}function Xt(t,e){var n=Vt(Ht++,7);return ie(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function te(){for(var t;t=Ft.shift();)if(t.__P)try{t.__H.__h.forEach(ne),t.__H.__h.forEach(oe),t.__H.__h=[]}catch(e){t.__H.__h=[],ot.__e(e,t.__v)}}ot.__b=function(t){zt=null,Yt&&Yt(t)},ot.__r=function(t){Wt&&Wt(t),Ht=0;var e=(zt=t.__c).__H;e&&(e.__h.forEach(ne),e.__h.forEach(oe),e.__h=[])},ot.diffed=function(t){Kt&&Kt(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==Ft.push(e)&&Mt===ot.requestAnimationFrame||((Mt=ot.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(o),ee&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);ee&&(e=requestAnimationFrame(n))})(te)),zt=null},ot.__c=function(t,e){e.some((function(t){try{t.__h.forEach(ne),t.__h=t.__h.filter((function(t){return!t.__||oe(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],ot.__e(n,t.__v)}})),jt&&jt(t,e)},ot.unmount=function(t){qt&&qt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{ne(t)}catch(t){e=t}})),e&&ot.__e(e,n.__v))};var ee="function"==typeof requestAnimationFrame;function ne(t){var e=zt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),zt=e}function oe(t){var e=zt;t.__c=t.__(),zt=e}function ie(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function se(t,e){return"function"==typeof e?e(t):e}function ae({color:t,size:e}){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",width:e,height:e,children:Gt("path",{fill:""+t,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"})})}ae.defaultProps={color:"#15295A",size:"14px"};function re(t,e,n,o){n&&o&&e.addEventListener("keydown",e=>{if(!("Tab"===e.key||"Tab"===e.code))return;const i=t.getDocument().activeElement;if(e.shiftKey){if(i===n){o.focus();e.preventDefault()}}else if(i===o){n.focus();e.preventDefault()}})}function ce({context:t,onAcceptAll:e,onCookieSettingsClick:n,onDeclineAll:o,setting:i,onCloseBannerButtonClick:s,isModalDisplayed:a}){const r=Qt(null),c=Qt(null),l=Qt(null),h=Qt(null),d=Qt(null);Zt(()=>{if(!r.current)return;const e=c.current||l.current,n=d.current||h.current;re(t,r.current,e,n)},[t,r,c,h,d,l]);const m=a?-1:1,p=i.policy,f=i.policy.type,g=f===M.COOKIES_BY_CATEGORY,_=f===M.OPT_IN||f===M.COOKIES_BY_CATEGORY,b=i.customizationSettings.showCloseButton;return Gt("div",{id:u,className:i.customizationSettings.position.getBannerClassname(),"data-nosnippet":"true",role:"dialog","aria-describedby":"hs-eu-policy-wording",ref:r,tabIndex:m,children:Gt("div",{id:"hs-eu-cookie-confirmation-inner",children:[b&&Gt("div",{id:"hs-eu-header-container",children:Gt("button",{id:"hs-eu-close-button",className:"hs-close-button",onClick:()=>s(f),ref:c,"aria-label":"Dismiss cookie banner",tabIndex:m,children:Gt(ae,{})})}),Gt("div",{id:"hs-eu-policy-wording",dangerouslySetInnerHTML:R(p.text.notification),ref:l,tabIndex:m}),p.text.disclaimer&&_&&Gt("p",{id:"hs-eu-cookie-disclaimer",dangerouslySetInnerHTML:R(p.text.disclaimer),tabIndex:m}),Gt("div",{id:"hs-eu-cookie-confirmation-buttons-area",children:[g&&Gt("button",{onClick:()=>n(),id:"hs-eu-cookie-settings-button",dangerouslySetInnerHTML:R(p.text.cookieSettingsLabel),"aria-label":p.text.cookieSettingsLabel,tabIndex:m}),Gt("button",{id:"hs-eu-confirmation-button",onClick:()=>e(),dangerouslySetInnerHTML:R(p.text.acceptLabel),"aria-label":p.text.acceptLabel,ref:h,tabIndex:m}),_&&Gt("button",{id:"hs-eu-decline-button",onClick:()=>o(),dangerouslySetInnerHTML:R(p.text.declineLabel),ref:d,"aria-label":p.text.declineLabel,tabIndex:m})]})]})})}function le({category:t,disabled:e,onToggleChange:n,toggleValue:o}){const i="hs-category-toggle-"+t,s=i+"-help-text";return Gt("div",{className:"hs-category-toggle",children:[Gt("input",{id:i,className:"hs-toggle hs-toggle-round",type:"checkbox",onChange:t=>n(t.currentTarget.checked),checked:o,disabled:e,"aria-pressed":o,tabIndex:1,"aria-describedby":s,"data-test-id":i}),Gt("label",{htmlFor:i}),Gt("span",{className:"hs-hidden",id:s,children:`${t} cookies ${o?"allowed":"disallowed"}`})]})}function he({className:t,color:e,size:n}){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",width:n,height:n,className:t,children:Gt("path",{fill:e,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"})})}he.defaultProps={color:"#000022",size:"12px"};function de(t,e){if(!e)return!1;const n=t.getBoundingClientRect(),o=e.getBoundingClientRect();return n.top>=o.top&&n.left>=o.left&&n.bottom<=o.bottom&&n.right<=o.right}function ue({category:t,onToggleChange:e,sectionText:n,toggleValue:o,modalBodyRef:i}){const[s,a]=$t(!1),r=t===_.NECESSARY,c=Qt(null),l=Qt(null),h=()=>{a(!s)};Zt(()=>{if(s){const t=c.current;t&&t.scrollIntoView&&!de(t,i.current)&&t.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-"+t,className:"hs-category-label",onClick:h,"aria-expanded":s,"aria-controls":"hs-category-description-"+t,tabIndex:1,children:[Gt(he,{className:"description-accordion-arrow "+(s?"rotated":"")}),Gt("span",{dangerouslySetInnerHTML:R(n.label)})]}),!r&&Gt(le,{category:t,disabled:t===_.NECESSARY,onToggleChange:t=>e(t),toggleValue:o}),n.toggleLabel&&Gt("span",{className:"hs-always-active-label",dangerouslySetInnerHTML:R(n.toggleLabel),tabIndex:1,"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-"+t,dangerouslySetInnerHTML:R(n.description),tabIndex:1})]})}var me=n(1),pe=n.n(me),fe=n(2),ge=n.n(fe);const _e=(t,e,n,o,i)=>{const s=t.getDocument(),a=s.createElement("style");a.setAttribute("type","text/css");a.setAttribute("id",o);const r=i?e.replaceAll("https://api_base_url",i):e,c=s.createTextNode(r);a.appendChild(c);const l=s.body.firstChild;s.body.insertBefore(a,l)};function be(t,e,n){if(!t.getHasLoadedBaseStyle()){_e(t,pe.a,e,y,n);t.setHasLoadedBaseStyle(!0)}}function ye(t,e){if(!t.getHasLoadedCbcStyle()){_e(t,ge.a,e,v);t.setHasLoadedCbcStyle(!0)}}function ve({accentColor:t,consent:e,context:n,modalText:o,onAcceptCategories:i,onCloseModal:s}){const a=Qt(null),r=Qt(null),c=Qt(null),l=Qt(null);Zt(()=>{ye(n,t)},[n,t]);Zt(()=>{a.current&&re(n,a.current,r.current,c.current)},[n,a,r,c]);const[h,d]=$t(e.categories.analytics),[u,m]=$t(e.categories.advertisement),[p,b]=$t(e.categories.functionality),y=()=>{i({[_.ANALYTICS]:h,[_.ADVERTISEMENT]:u,[_.FUNCTIONALITY]:p})},v=()=>{d(!0);m(!0);b(!0);i({[_.ANALYTICS]:!0,[_.ADVERTISEMENT]:!0,[_.FUNCTIONALITY]:!0})};return Gt("div",{id:f,"data-nosnippet":"true",children:Gt("div",{id:g,ref:a,role:"alertdialog","aria-modal":"true","aria-labelledby":"hs-modal-introduction","aria-describedby":"hs-modal-introduction-description",tabIndex:1,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:r,tabIndex:1,"aria-label":"Close modal",children:Gt(ae,{})})})}),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:R(o.introduction.label)})}),Gt("div",{id:"hs-modal-introduction-description",children:Gt("p",{dangerouslySetInnerHTML:R(o.introduction.description)})}),Gt("div",{id:"hs-categories-container",children:[Gt(ue,{category:_.NECESSARY,onToggleChange:()=>{},sectionText:o.necessary,toggleValue:!0,modalBodyRef:l}),Gt(ue,{category:_.ANALYTICS,onToggleChange:t=>d(t),sectionText:o.analytics,toggleValue:h,modalBodyRef:l}),Gt(ue,{category:_.ADVERTISEMENT,onToggleChange:t=>m(t),sectionText:o.advertisement,toggleValue:u,modalBodyRef:l}),Gt(ue,{category:_.FUNCTIONALITY,onToggleChange:t=>b(t),sectionText:o.functionality,toggleValue:p,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:1,children:o.acceptLabel}),Gt("button",{id:"hs-modal-save-settings",onClick:y,ref:c,tabIndex:1,children:o.saveSettingsLabel})]})})]})})}function xe({apiBaseUrl:t,consent:e,setting:n,context:o,onConsentChange:i,onCloseBannerWithoutConsent:s}){const[a,r]=$t(!1),c=()=>{e.update(!0);i(e)},l=()=>{e.update(!1);i(e)},h=({analytics:t,advertisement:n,functionality:o})=>{e.updateCategories({analytics:t,advertisement:n,functionality:o});i(e)},d=t=>{if(t!==M.OPT_IN&&t!==M.COOKIES_BY_CATEGORY){e.update(!0);i(e)}else s()},m=()=>{r(!0)},p=()=>{r(!1);const t=o.getDocument().getElementById(u);t&&t.focus()};be(o,n.customizationSettings.accentColor,t);return Gt(ft,{children:[Gt(ce,{context:o,setting:n,onAcceptAll:c,onDeclineAll:l,onCookieSettingsClick:m,onCloseBannerButtonClick:d,isModalDisplayed:a}),a&&Gt(ve,{accentColor:n.customizationSettings.accentColor,consent:e,context:o,modalText:n.policy.text.modalText,onAcceptCategories:h,onCloseModal:p})]})}function Ce({apiBaseUrl:t,context:e,setting:n,onCloseBanner:o}){be(e,n.customizationSettings.accentColor,t);return Gt("div",{id:m,className:n.customizationSettings.position.getBannerClassname(),"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(ae,{})})}),Gt("div",{id:"hs-banner-gpc-wording",dangerouslySetInnerHTML:R(n.gpcSettings.notificationText)})]})})}const ke=t=>{const e=t.getDocument().createElement("div");e.setAttribute("id",p);t.getDocument().body.prepend(e);return e};function we(t,e,n,o,i,s){const a=ke(o);Dt(Gt(xe,{apiBaseUrl:t,consent:e,setting:n,context:o,onConsentChange:t=>i(t),onCloseBannerWithoutConsent:s}),a);return a}function Se(t,e,n,o){const i=ke(e);Dt(Gt(Ce,{apiBaseUrl:t,context:e,setting:n,onCloseBanner:o}),i);return i}class Te{static postActivity(t,e,n){fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(()=>L.info(`Sent a banner ${e} event.`)).catch(()=>L.error(`There was an issue sending a banner ${e} event.`))}static sendView(t,e){Te.postActivity(t+"/activity/view","VIEW",e)}static sendClick(t,e){Te.postActivity(t+"/activity/click","CLICK",e)}}var Le=t=>{I.setStyleOnBannerParent({"--hs-banner-accentColor":t.accentColor})};class Ee{constructor(t){this.privateMethods=["hasBeenInitialized","invoke","run","findMatchingSetting","setConsent","setConsentCookie","setMatchingSetting","safeCallListener","renderBanner","getMatchingSetting","getConsent","removeDeprecatedBannerCookies"];this.enabledFeatureGates=[];this.context=t;this.bannerSettings=[];this.privacyConsentListeners=[];this.privacySettingsListeners=[];this.useGeoLocation=!1;this.cookie=new tt(t);this.isRunningInTestMode=t.getLocation().search.includes(d);this.removeDeprecatedBannerCookies()}removeDeprecatedBannerCookies(){this.cookie.get(et.OPT_OUT_COOKIE.getName())&&this.cookie.remove(et.OPT_OUT_COOKIE.getName());this.cookie.get(et.INITIAL_OPT_IN.getName())&&this.cookie.remove(et.INITIAL_OPT_IN.getName())}run(){if(this.disableBannerFlagSet()){L.info('"PRIVACY" flag found in disabledHsPopups window queue. Banner script will not run.');return!0}this.findMatchingSetting();this.logGpcSignal();if(!this.matchedSetting){L.debug("we were unable to find the matching settings for this webpages. The banner will not run.");this.setConsent(new V(!0),{reportClick:!1});return!1}if(this.shouldScanningOverride()){this.setConsent(new V(!0),{reportClick:!1,persist:!0,treatAsConsentEvent:!0});return!0}if(this.shouldGpcOverride()){this.setConsent(new V(!1),{persist:!1,reportClick:!1});this.isGpcBannerDismissCookiePresent()||this.renderGpcBanner();return!0}switch(this.matchedSetting.policy.type){case M.NO_COOKIES:this.setConsent(new V(!1),{reportClick:!1});break;case M.OPT_IN:case M.COOKIES_BY_CATEGORY:{const t=this.readConsentCookie();if(t){this.setConsent(t,{persist:!1,reportClick:!1});t.hasAnalyticsConsent()||this.cookie.removeGACookie();break}this.cookie.removeGACookie();this.setConsent(V.buildInitialConsent(),{persist:!1,reportClick:!1});this.renderBanner();break}case M.NOTIFY:this.setConsent(new V(!0),{persist:!1,reportClick:!1});if(this.readConsentCookie())break;this.renderBanner();break;case M.COOKIES_WITHOUT_BANNER:default:this.setConsent(new V(!0),{reportClick:!1})}return!0}shouldScanningOverride(){return[M.COOKIES_BY_CATEGORY,M.OPT_IN,M.NOTIFY].includes(this.matchedSetting.policy.type)&&this.context.getWindow()[c]}shouldGpcOverride(){return this.matchedSetting.gpcSettings.enabled&&this.getGpcSignal()}getGpcSignal(){const t=this.context.getLocation().search;if(t.includes(r)){return{TRUE:!0,FALSE:!1}[(new URLSearchParams(t).get(r)||"").toUpperCase()]}return this.context.getNavigator().globalPrivacyControl}logGpcSignal(){L.debug("GPC signal: "+this.getGpcSignal())}findMatchingSetting(){const t=this.context.getPathname();let e;for(const n of this.bannerSettings){if(!n.enabled)continue;if(!n.configuration.test(t,this.geoLocation))continue;const o=e&&e.configuration.getMatchLevel()||0,i=n.configuration.getMatchLevel();if(e){if(othis.safeCallListener(t,e))}getMatchingSetting(){return this.matchedSetting}hasEnabledFeatureGate(t){return this.enabledFeatureGates&&this.enabledFeatureGates.includes(t)}setApiBaseUrl(t){/^https:\/\/js-?.{0,3}\.hs-banner(qa)?\.com.*/.test(t)?this.apiBaseUrl=t:L.error("unsupported base Api url provided.")}setBannerSettings(t){(t[this.context.getLocation().hostname]||[]).forEach(t=>this.bannerSettings.push(Y.fromJS(t)))}getCurrentGeoLocation(){return new Promise(t=>{const e=this.context.getLocation().search;if(e.includes(a)){const n=new URLSearchParams(e).get(a);t(n||"")}else fetch(this.apiBaseUrl+"/cf-location").then(t=>t.text()).then(e=>t(e)).catch(()=>{L.error("We could not fetch the geolocation.");t("")})})}setGeoLocation(t){this.geoLocation=t}addEnabledFeatureGates(t){t.forEach(t=>this.enabledFeatureGates.push(t))}addCookieDomain(t){this.cookie.addDomain(t)}setCookiesToSubdomain(t){this.cookie.setCookiesToSubdomain(t)}setUseSecureCookies(t){this.cookie.setUseSecureCookies(t)}setUseGeoLocation(){this.useGeoLocation=!0}addPrivacyConsentListener(t){this.consent&&this.safeCallListener(t,this.consent.getSafeCopy());this.privacyConsentListeners.push(t)}setConsent(t,e){const n={persist:!0,treatAsConsentEvent:!0,reportClick:!0},{persist:o,treatAsConsentEvent:i,reportClick:s}=Object.assign({},n,{},e);this.consent=t;i&&this.hideBanner();o&&this.setConsentCookie();if(!this.isRunningInTestMode){s&&(this.consent.hasAnalyticsConsent()?this.trackAction("trackApproveCookieConsent"):this.trackAction("trackDeclineCookieConsent"));if(i){this.privacyConsentListeners.forEach(e=>this.safeCallListener(e,t.getSafeCopy()));this.consent.adsHasChangedToFalse()&&this.cookie.removeFBPCookie()}s&&this.sendClickActivity()}}getConsent(){return this.consent.getSafeCopy()}setConsentCookie(){if(!this.matchedSetting||this.isRunningInTestMode)return;const t=this.matchedSetting.policy.type;t!==M.NO_COOKIES&&t!==M.COOKIES_WITHOUT_BANNER&&this.cookie.set(et.CATEGORY_PREFERENCE_COOKIE.getName(),this.consent.toCookieString(),{daysToExpire:et.CATEGORY_PREFERENCE_COOKIE.getExpirationDays(),path:"/"})}readConsentCookie(){const t=this.cookie.get(et.CATEGORY_PREFERENCE_COOKIE.getName());return t?V.buildFromCookieString(t):null}safeCallListener(t,e){try{t(e)}catch(t){L.error("error calling listener.")}}isGpcBannerDismissCookiePresent(){return!!this.cookie.get(et.GPC_BANNER_DISMISS_COOKIE.getName())}setGpcBannerDismissCookie(){this.cookie.set(et.GPC_BANNER_DISMISS_COOKIE.getName(),"true",{daysToExpire:et.GPC_BANNER_DISMISS_COOKIE.getExpirationDays(),path:"/"})}dismissGpcBanner(){this.hideBanner();this.setGpcBannerDismissCookie()}renderGpcBanner(){this.bannerParentElement=Se(this.apiBaseUrl,this.context,this.matchedSetting,this.dismissGpcBanner.bind(this));this.sendViewActivity()}renderBanner(){this.bannerParentElement=we(this.apiBaseUrl,this.consent,this.matchedSetting,this.context,this.setConsent.bind(this),this.hideBanner.bind(this));Le(this.matchedSetting.customizationSettings);this.sendViewActivity()}hideBanner(){if(this.bannerParentElement){const t=this.bannerParentElement.children;for(let e=0;e1){t[1].classList.remove(b)}else t[0].classList.remove(b)}invoke(t,e){if(this.privateMethods.includes(t)||!Reflect.has(this,t)){L.debug(`failed to invoke method ${t} of the banner.`);throw new Error("Could not invoke banner method.")}Reflect.get(this,t).apply(this,e)}getBaseActivityPayload(){const t=this.context.getWindow().hsVars&&this.context.getWindow().hsVars.page_id;return{bannerGeoLocation:this.geoLocation||"",bannerPolicyId:this.matchedSetting.id,bannerType:this.matchedSetting.policy.type.getName(),domain:this.matchedSetting.domain,portalId:this.matchedSetting.portalId,contentId:t||""}}sendClickActivity(){if(!this.consent||!this.matchedSetting||this.isRunningInTestMode)return;const t={consentAllowed:this.consent.allowed,consentAnalytics:this.consent.categories.analytics,consentAdvertisement:this.consent.categories.advertisement,consentFunctionality:this.consent.categories.functionality},e=Object.assign({},this.getBaseActivityPayload(),{},t);Te.sendClick(this.apiBaseUrl,e)}sendViewActivity(){if(!this.matchedSetting||this.isRunningInTestMode)return;const t=this.getBaseActivityPayload();Te.sendView(this.apiBaseUrl,t)}getAnalyticsQueue(){return this.context.getWindow()[s]=this.context.getWindow()[s]||[]}trackAction(t){try{this.getAnalyticsQueue().push([t])}catch(t){L.error("Unable to send analytics tracking event: "+t)}}disableBannerFlagSet(){const t=this.context.getWindow()[x]||[];return Array.isArray(t)&&t.includes(C)}revokeCookieConsent(){[et.INITIAL_OPT_IN.getName(),et.OPT_OUT_COOKIE.getName(),et.CATEGORY_PREFERENCE_COOKIE.getName(),et.GPC_BANNER_DISMISS_COOKIE.getName(),"__hssc","__hssrc","__hstc","__hs_do_not_track","hubspotutk","messagesUtk"].forEach(t=>this.cookie.remove(t));this.trackAction("trackRevokeCookieConsent");this.setConsent(new V(!1),{reportClick:!1})}addPrivacySettingsListener(t){this.matchedSetting&&this.safeCallListener(t,this.matchedSetting.toLegacyPrivacyPolicy());this.privacySettingsListeners.push(t)}}class Oe{constructor(t){this.priorityFunctions=["setApiBaseUrl","setCookiesToSubdomain","setUseSecureCookies","addCookieDomain","addEnabledFeatureGates","setBannerSettings"];const e=t.getWindow();if(Array.isArray(e[i]))this.queue=e[i];else{this.queue=[];e[i]=this.queue}this.banner=new Ee(t);this.context=t}queuePushFn(t){try{if(!(t&&Array.isArray(t)&&t.length>0)){L.debug("invalid arguments passed to the banner queue.");return!1}const e=t[0],n=t.slice(1);this.banner.invoke(e,n);return!0}catch(t){L.error("There was an error running banner method.")}return!1}overrideQueuePush(){this.queue.push=this.queuePushFn.bind(this)}dequeueEntries(t){for(let e=0;e{this.banner.setGeoLocation(t);this.banner.run()}):this.banner.run()}}}const Ae=S();function Ie(){const t=Ae.getWindow();if(t[o]){L.info("the cookie banner has already been loaded via another script.");return}t[o]=!0;new Oe(Ae).run()}const Ne=Ae.getDocument();function Pe(){Ie();Ne.removeEventListener("DOMContentLoaded",Pe)}"loading"===Ne.readyState?Ne.addEventListener("DOMContentLoaded",Pe):Ie()}]); /****** Cookie Banner version static-1.1071 *****/