!function(){self._truste_eu=B;const e=function(){'undefined'!=typeof __tcfapi&&__tcfapi('addEventListener',2,function(e,t){if(t&&'useractioncomplete'==e.eventStatus){var r=self.document.getElementById(truste.eu.popdiv2);if(r){r.style.minHeight='0';r.style.maxHeight='none'}var s=self.document.getElementById(truste.eu.popdiv3);s&&(s.style.minHeight='0');var i=self.document.getElementById(truste.eu.popframe);i&&(i.style.minHeight='0')}})},t=function(e,t,r){if('function'!=typeof truste.util.error)return truste.util.trace(e,t);(r=r||{}).mod='eu';r.domain=r.domain||truste.eu.bindMap&&truste.eu.bindMap.domain||void 0;r.caller=self.location.hostname;r.path=self.location.pathname;truste.util.error(e,t,r)},r=function(e,t){if(e)for(var r in e)t.style[r]=e[r]},s=function(e){if(e&&'string'==typeof e){var t=new URLSearchParams(e.split('?')[1]).get('layout')||'';return t.includes('_accessible')||'gpp'==t}return!1},i=e=>{var t=truste.eu.isAccessibleLayout(e.prefmgrUrl);return(e=>{var r=t?'':'\n              .truste_box_overlay_border {\n                  display: block;\n                  background: #000;\n                  opacity: 0.3;\n                  width: calc(100% + 20px);\n                  height: calc(100% + 20px);\n                  position: absolute;\n                  top: -10px;\n                  left: -10px;\n                  border-radius: 2px; /* Added radius for consistency */\n              ';if(e.styles.box_overlay_border)for(const t in e.styles.box_overlay_border)r+=t+': '+e.styles.box_overlay_border[t]+';';return r+='} '})(e)+'\n                .trustarc_newcm_container {\n                  position: inherit;\n                } '},n=function(){var e=document.createElement('style');e.setAttribute('type','text/css');var t=document.querySelector('[nonce]');t&&e.setAttribute('nonce',t.nonce||t.getAttribute('nonce'));e.innerText='.truste_visibility_visible {visibility: visible;}.truste_visibility_hidden {visibility: hidden;}';document.head.insertBefore(e,document.head.firstChild)},u=function(e){var t=document.querySelector('.truste-close-button-container');if(t)if(e){t.setAttribute('data-close-display',t.style.display);t.style.display='none'}else if('none'===t.style.display){var r=t.getAttribute('data-close-display');null!==r&&(t.style.display=r)}},o=function(){return truste.eu.prefclose()},a=function(e,t){if(truste.util.validConsent(e.prefCookie))t();else{truste.eu.prefclosebutton();truste.eu.cpra.shouldShowFinProg()?truste.eu.clickListener(7,!0,{cpraConsent:'0',cpraSource:'optout-close'}):truste.util.optoutRequired()}},l=function(e,t,r,s,i){var n='irm'===r,u=truste.util.validConsent(t.prefCookie)||t.feat.gpp.gppApplies&&truste.eu.isGPCDNTEvent(),o=!n&&t.feat.optoutClose&&!u&&'required'!=s,a=n?truste.eu.prefclosebutton_irm:truste.eu.prefclosebutton,l=o?function(){truste.eu.triggerClose(t,a)}:a;truste.util.addListener(e,'click',l);if(truste.eu.noticeLP.oclose&&'false'!=truste.eu.noticeLP.oclose){var c=self.document.getElementById(truste.eu.popdiv);c&&truste.util.addListener(c,'click',l)}truste.util.addListener(e,'keydown',function(t){var r=(t=t||window.event).which||t.keyCode;if(13==r||32==r){t.preventDefault?t.preventDefault():event.returnValue=!1;e.click()}});i&&truste.util.addListener(i,'keydown',function(t){if(9==((t=t||window.event).which||t.keyCode)&&t.shiftKey){t.preventDefault?t.preventDefault():event.returnValue=!1;e.focus()}});truste.util.trace('Close button logic attached')},c=function(e,t,r){if(truste.eu.shouldShowCloseButton(e,t,r)){var s='irm'===t?self.document.getElementById(truste.eu.popdiv3_irm):self.document.getElementById(truste.eu.popdiv3),i=self.document.createElement('div');e.closebtnid||(e.closebtnid='closebtn-id'+Math.random());i.id=e.closebtnid;i.className='truste-close-button-container';truste.eu.popclose=('pop-close'+Math.random()).replace('.','');var n=e.closeButtonUrl||e.assetServerURL+'close_btn.png',u=document.createElement('img');u.id=truste.eu.popclose;u.setAttribute('alt',e.closeBtnAlt);u.src=n;u.className='truste-close-button-img';var o=document.createElement('a');o.setAttribute('aria-label','close');o.setAttribute('role','button');o.className='truste-close-button';o.tabIndex=1;o.id='trustarc-internal-close-button';o.appendChild(u);var a='.truste-close-button {cursor: pointer;';if(e.styles.closebtnlink)for(var l in e.styles.closebtnlink)a+=l+': '+e.styles.closebtnlink[l]+';';a+='}';var c='.truste-close-button-container {position: absolute;top: -20px;right: -20px;';if(e.styles.closebtn)for(var l in e.styles.closebtn)c+=l+': '+e.styles.closebtn[l]+';';var d='.truste-close-button-img {border: 0;}'+a+(c+='}'),p=document.createElement('style');p.setAttribute('type','text/css');var f=document.querySelector('[nonce]');f&&p.setAttribute('nonce',f.nonce||f.getAttribute('nonce'));p.innerText=d;document.head.insertBefore(p,document.head.firstChild);i.appendChild(o);s&&s.appendChild(i);truste.eu.initCloseButtonLogic(o,e,t,r,s);truste.util.trace('Adding the close button')}},d=function(e,t){var r=truste.eu.bindMap;if(2==t)return truste.util.error('Failed to load binding JS at URL: '+e.src);if(!r)return truste.util.trace('Did not load JS0');r.flags=r.flags||{};truste.eu.acsInsertScript();truste.util=truste.util||{};truste.util.getRandomUUID=function(){var e=window.crypto||window.msCrypto;return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(t){return(t^e.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})};truste.eu.COOKIE_GDPR_PREF_NAME='notice_gdpr_prefs';truste.eu.COOKIE_SESSION='TAsessionID';truste.eu.SCRIPT_REGX=truste.eu.SCRIPT_REGX||/\.(truste|trustarc)\b.*\bnotice(\.0)?(\.exp)?(\.js)?\b.*\bdomain=/;truste.eu.JS_REGX=truste.eu.JS_REGX||(truste.eu.bindMap&&truste.eu.bindMap.domain?'domain='+truste.eu.bindMap.domain:void 0);truste.eu.jsNode1=truste.eu.bindMap.currentScript||truste.util.getScriptElement(truste.eu.SCRIPT_REGX,!0,truste.eu.JS_REGX);truste.eu.noticeLP=truste.util.initParameterMap(truste.eu.jsNode1,truste.eu.noticeLP||{});if(truste.eu.noticeLP.cookieName){truste.eu.COOKIE_GDPR_PREF_NAME=truste.eu.noticeLP.cookieName+'_gdpr';truste.eu.COOKIE_SESSION=truste.eu.noticeLP.cookieName+'_session'}truste.util.readCookieSimple=function(e){var t=new RegExp('\\s*'+e.replace('.','\\.')+'\\s*=\\s*([^;]*)').exec(self.document.cookie);return t&&t.length>1?t[1]:null};truste.util=truste.util||{};truste.util.setSession=function(){var e=truste.util.readCookieSimple||truste.util.readCookie,t=e(truste.eu.COOKIE_SESSION);if(null==t){var r=e(truste.eu.COOKIE_GDPR_PREF_NAME)?'EXISTING':'NEW';t=truste.util.getRandomUUID()+'|'+r;var s=new Date;s.setTime(s.getTime()+18e5);truste.util.createCookie(truste.eu.COOKIE_SESSION,t,s.toGMTString(),!1)}var i=t.split(/[|,]/);truste.eu.session=i[0];truste.eu.userType=i[1]};truste.util.sendAnalytics=function(e,t){var r='action='+e+'&domain='+truste.util.getCmIdentifier(truste.eu.bindMap)+'&implied='+('implied'===truste.eu.bindMap.behavior?'1':'0')+'&session='+truste.eu.session.replaceAll('-','')+'&new='+('NEW'===truste.eu.userType?'1':'0')+'&referer='+window.origin;t&&(r+='&categories='+t);return fetch(truste.eu.bindMap.cdnURL+'analytics?'+r,{referrerPolicy:'origin-when-cross-origin',keepalive:!0}).catch(function(){})};truste.util.setSession();if(truste.eu.bindMap.feat.uidEnabled){var s=truste.util.readCookieStorage(truste.eu.COOKIE_UID);null==s&&(s=truste.util.getRandomUUID());truste.eu.consentUID=s}r.domain&&(truste.eu.noticeLP.domain=r.domain);r.behavior&&(truste.eu.noticeLP.behavior=r.behavior);r.country&&r.language&&(truste.eu.noticeLP.locale=r.country+'-'+r.language);if(truste.eu.noticeLP.pn&&truste.eu.noticeLP.pn.indexOf('-')){var i=truste.eu.noticeLP.pn.split('-');i.length>1&&(truste.eu.noticeLP.pn='expressed'==r.behavior?i[1]:i[0])}truste.eu.addEventListener(function(e){if('click'==e){truste.eu.msg.log(e,r);null==truste.util.getIntValue(r.prefCookie)&&truste.eu.msg.log('consent',r)}else'close'==e&&truste.eu.sendclosereport&&truste.eu.msg.log('close_button',truste.eu.bindMap)});if(null==truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME,!0)){var n=truste.util.readCookie(truste.eu.COOKIE_PREF_NAME,!0),u=truste.util.getIntValue(n);if(null!=u){var o=[];if(-1==u)o.push(u);else for(var a=0;a<=u;a++)o.push(a);var l=o.join()+':'+truste.eu.bindMap.daxSignature,c=truste.util.getStorage(truste.util.COOKIE_NS+truste.eu.COOKIE_PREF_NAME,!1),d=c&&c.expires||0;truste.util.createCookie(truste.eu.COOKIE_GDPR_PREF_NAME,l,d,!0)}}r.feat.enableCM&&(r.feat.iabBannerApplies?truste.eu.icon.make(function(){truste.eu.clickListener(4);r.returnFocusTo=truste.eu.iconid}):truste.eu.icon.make(function(){truste?.bn?.reopenBanner&&r.feat.linkbanner?truste.bn.reopenBanner():truste.eu.clickListener(truste.eu.noticeLP.pn);r.returnFocusTo=truste.eu.iconid}));r.feat.enableIRM&&truste.eu.irm.make(truste.eu.irmClickListener);var p=function(){truste.eu.msg.addEventListener(truste.eu.actmessage);try{var e=self.document.createElement('style'),t='truste_hidden',s='visibility:hidden;';e.type='text/css';var i=document.querySelector('[nonce]');i&&e.setAttribute('nonce',i.nonce||i.getAttribute('nonce'));(e.sheet||{}).insertRule?e.sheet.insertRule(t+'{'+s+'}',0):(e.styleSheet||e.sheet).addRule(t,s);self.document.getElementsByTagName('head')[0].appendChild(e)}catch(e){}var n=truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME,!0);truste.util.readCookie('cmapi_cookie_privacy',!0);truste.util.readCookie('cmapi_gtm_bl',!0);truste.util.readCookie(truste.eu.COOKIE_PREF_NAME,!0);if(n){var u=n.split(':');r.prefCookie=u[0];r.daxCookie=u[1]}r.feat.enableIRM&&truste.eu.irm.initialize();var o=Number(truste.util.readCookie(truste.eu.COOKIE_REPOP));o&&o<r.popTime&&(document.cookie=truste.eu.COOKIE_REPOP+'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;');truste.util.isConsentCenter()?truste.eu.getUserConsent(truste.eu.noticeLP.userID,function(e,t){truste.eu.postUserCenterCallback(e,t)}):f();(r.feat.crossDomain||truste.util.isConsentCenter())&&setTimeout(function(){r.feat.crossDomain&&(r.flags.isConsentRetrieved=!0);truste.util.isConsentCenter()&&(r.feat.isConsentCenterInitialized=!0);f()},4500)};/Firefox[\/\s](\d+\.\d+)/.test(self.navigator.userAgent)&&new Number(RegExp.$1)<3.6&&'complete'!=truste.util.readyState()?self.addEventListener('load',p,!1):p();r.apiDefaults&&r.apiDefaults.length>13&&self.PrivacyManagerAPI.init(r.apiDefaults);'implied'==r.behavior&&self.PrivacyManagerAPI.init({default_consent:'approved'});self.PrivacyManagerAPI.init(truste.eu.getCmapiSettings(),!0);truste.eu.flags={};truste.eu.flags.init=!0},p=function(e,t){var r=truste.eu.bindMap;if(e&&t){var s=t.cookie_expiry?new Date(parseInt(t.cookie_expiry)):null;if(s&&!isNaN(s.getTime())&&s>new Date){var i=s.toGMTString();truste.util.submitPrefPostMessage(e,!1,!0,t);'true'==truste.eu.noticeLP.finprog&&null!==t.financial_program&&'null'!==t.financial_program&&truste.eu.cpra.dropCpraCookie('true'==t.financial_program,i);if(t.is_gpc_honored||r.feat.gpc){truste.util.createCookie(truste.eu.COOKIE_GPC_ISHONORED,t.is_gpc_honored,i,!0,!0);!0===t.gpc_pref_overridden&&truste.util.createCookie(truste.eu.COOKIE_GPC_PREF_OVERRIDDEN,t.gpc_pref_overridden,i,!0,!0)}t.optout_domains&&truste.util.setStorage(truste.eu.COOKIE_CATEGORY_NAME,t.optout_domains,!1);t.ccpa_cookie&&truste.util.createCookie(truste.eu.COOKIE_USPRIVACY,t.ccpa_cookie,i);t.pop_time&&truste.util.createCookie(truste.eu.COOKIE_REPOP,1*t.pop_time,i,!0);truste.eu.cpra.shouldShowFinProg()&&!truste.util.isAcceptAll(e)&&truste.eu.clickListener(7,!0,{cpraConsent:e,cpraSource:'consent-center'})}}r.feat.isConsentCenterInitialized=!0;f()};function f(){var e=truste.eu.bindMap;e.flags.isConsentRetrieved=!e.feat.crossDomain||e.flags.isConsentRetrieved;if(!f.done&&truste.util.isConsentResolved()){f.done=!0;var t=truste.util.shouldDropRepop();t&&(e.flags.dropPopCookie=e.feat.dropPopCookie=!0);e.feat.enableCM&&truste.eu.icon.initialize();truste.eu.ccpa.initialize();truste.eu.gpp.initialize();truste.util.cleanupStaleGpcOverridden();truste.eu.gpcDntAutoOptOut();truste.eu.gcm();truste.eu.acsSendConsent();truste.util.fireCustomEvent('truste-cookie',e.prefCookie);truste.eu.events.fireCcmReady();let r=!e.feat.topwindow||window==top;if(truste.eu.isGPCDNTEvent())e.feat.dntShowUI&&'expressed'==e.behavior&&truste.util.executeOnCondition(function(){return e.prefCookie||e.feat.gpp.gppApplies&&null==truste.util.readCookie('gppstring')},function(){if(truste.eu.isGPCDNTEvent()&&!truste.eu.cpra.shouldShowFinProg()){truste.eu.clickListener(truste.eu.noticeLP.pn,!0);truste.eu.msg.log('consent',e)}},10,3e4);else if(null!=truste.util.getIntValue(e.prefCookie)){if(r&&'expressed'==e.behavior&&(t||function(){var e=truste.eu.bindMap;if(e.feat.consentResolution){var t=truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME,!0);if(t){t=t.split(':');if(!new RegExp(e.behavior+'.'+e.behaviorManager).test(t[2])){if(/(,us|none)/i.test(t[2]))return!0;if('eu'==e.behaviorManager&&/implied.eu/i.test(t[2]))return!0}}}return!1}())){e.flags.isRepopEvent=e.feat.isRepopEvent=!0;e.flags.isReconsentEvent=e.feat.isReconsentEvent=t;truste.eu.clickListener(truste.eu.noticeLP.pn,!0)}}else if(r&&'expressed'==e.behavior){truste.eu.clickListener(truste.eu.noticeLP.pn,!0);truste.eu.msg.log('consent',e)}}}const m=function(e,t){var r=self.localStorage,s=r[truste.eu.COOKIE_CATEGORY_NAME]&&JSON.parse(r[truste.eu.COOKIE_CATEGORY_NAME]);if(r&&s&&'skip'!==t){t=t&&JSON.parse(t);var i=new Set(e);for(var n of Object.keys(s))if('version'!==n&&Object.hasOwn(s,n)&&truste.util.isSafePropertyName(n)){var u=s[n];if(u){var o=u.value,a=u.domains;for(var[l,c]of Object.entries(a))if(truste.util.isSafePropertyName(l)){var d=i.has(o)?'1':'0',p=t&&t[o];p&&p.d&&p.d.includes(l)&&(d='1'===d?'0':'1');s[n].domains[l]=d}}}r.setItem(truste.eu.COOKIE_CATEGORY_NAME,JSON.stringify(s))}},g=function(){var e=truste.eu.bindMap;if(e.feat.enableShopify&&void 0!==window.Shopify){window.Shopify.loadFeatures([{name:'consent-tracking-api',version:'0.1'}],function(e){e&&truste.util.trace(e)});var t=function(){return function(e){e&&truste.util.trace('shopify api failed '+JSON.stringify(e))}},r=0,s=setInterval(function(){if(window.Shopify&&window.Shopify.customerPrivacy&&window.Shopify.customerPrivacy.setTrackingConsent){clearInterval(s);truste.util.isAcceptAll(e.prefCookie)?window.Shopify.customerPrivacy.setTrackingConsent(!0,t):'0'==e.prefCookie&&window.Shopify.customerPrivacy.setTrackingConsent(!1,t)}else if(++r>10){console.log('shopify consent failed');clearInterval(s)}},500)}},v=function(){var e=truste.eu.bindMap;if(e.prefCookie&&e.feat.gcm&&(e.feat.gcm.ads>-1||e.feat.gcm.analytics>-1||e.feat.gcm.adPersonalization>-1||e.feat.gcm.adUserData>-1||e.feat.gcm.functionality>-1||e.feat.gcm.personalization>-1||e.feat.gcm.security>-1)){var t=e.prefCookie.split(/[,|]/),r=new Map;t.forEach(function(e){r.set(parseInt(e),1)});var s={};truste.eu.insertConsentState(e.feat.gcm.adPersonalization,s,'ad_personalization',r);truste.eu.insertConsentState(e.feat.gcm.ads,s,'ad_storage',r);truste.eu.insertConsentState(e.feat.gcm.adUserData,s,'ad_user_data',r);truste.eu.insertConsentState(e.feat.gcm.analytics,s,'analytics_storage',r);truste.eu.insertConsentState(e.feat.gcm.functionality,s,'functionality_storage',r);truste.eu.insertConsentState(e.feat.gcm.personalization,s,'personalization_storage',r);truste.eu.insertConsentState(e.feat.gcm.security,s,'security_storage',r);'function'==typeof gtag&&gtag('consent','update',s);truste.eu.checkDatalayerForDefaultConsent()}},h=function(e,t,r,s){e>-1&&(t[r]=truste.util.grantDeny(s.get(e)))},b=function(){if(truste.eu.bindMap.feat.iab&&'undefined'!=typeof __tcfapi){console.log('IAB enabled');__tcfapi('ping',2,truste.eu.hasGcmIabEnabledCallback=function(e){console.log('pingReturn: ',e);if(null!=e&&null!=e){console.log('tcfApi cmpId: ',e.cmpId);'300'==e.cmpId?console.log('Google cmpId detected. Using Google CMP might create conflicts with TrustArc and we recommend disabling it in the Google Ads settings.'):null==e.cmpId&&console.log('Undefined cmpId detected. Please check if the TrustArc TCF script is loading properly.')}else console.log('invalid pingReturn')})}},y=function(){if(void 0!==window.dataLayer)for(var e=0;e<window.dataLayer.length;e++)if(window.dataLayer[e].length>0)for(var t=0;t<window.dataLayer[e].length;t++){if('consent'==window.dataLayer[e][t])return;if('event'==window.dataLayer[e][t]||'config'==window.dataLayer[e][t]){console.warn('WARNING: Tags are firing before consent is initialized. Please ensure that the consent mode default is initialized before firing tags.');return}}},C='amzn-consent.js',_=function(){var e=truste.eu.bindMap;e.feat.acs&&e.feat.acs.enabled&&void 0===window.amznConsent&&truste.util.addScriptElement(e.feat.acsUrl||e.assetServerURL+truste.eu.ACS_FILENAME,function(t,r){if(2==r){truste.util.trace('Unable to access ACS URL. Using asset server instead.');truste.util.addScriptElement(e.assetServerURL+truste.eu.ACS_FILENAME,null,null,!0,null)}},null,!0,null)},E=function(){var e=truste.eu.bindMap;e.feat.acs&&e.feat.acs.enabled&&truste.util.executeOnCondition(function(){return void 0!==window.amznConsent},function(){var t=window.amznConsent();t.setCountryCode(e.country);var r='opt-in'===e.consentModel,s=e.prefCookie&&e.prefCookie.split(/[,|]/);e.feat.acs.adStorage&&(s?t.setEnableAdStorage(s.includes(e.feat.acs.adStorage)):t.setEnableAdStorage(r));e.feat.acs.userData&&(s?t.setEnableUserData(s.includes(e.feat.acs.userData)):t.setEnableUserData(r));var i=truste.util.readCookieSimple('euconsent-v2');i&&t.setTcf(i);t.build()},10,3e4)},O=function(e,t,r,s,i,n,u,o,a,l,c){var d=truste.eu.bindMap.feat.crossDomain?'/v1/controller/consent/user/'+e:'/v1/controller/setUserConsent/'+e+'_'+window.location.hostname;try{if(e){var p=truste.eu.USER_CONSENT_CENTER_SERVER+d;truste.util.httpRequest(p,'POST',JSON.stringify({user_id:e,user_preferences:t,domain:r,financial_program:s,cross_domain:i,cookie_date:Date.now(),optout_domains:n||'',site:window.location.hostname,cookie_expiry:u,is_gpc_honored:o,gpc_pref_overridden:a,ccpa_cookie:l||'',pop_time:c||''}),null)}else truste.util.trace('UserID binding failed.')}catch(e){truste.util.trace(e.message,e.stack)}},k=function(e,t){var r=truste.eu.bindMap;if(r.feat.crossDomain){truste.eu.getUserCenterCall('/v1/controller/consent/user/'+e+'?domainId='+r.domain,e,function(e,s){t(e,s);r.flags.isConsentRetrieved=!0})}else truste.eu.getUserCenterCall('/v1/controller/getUserConsent/'+e+'_'+window.location.hostname,e,t)},I=function(e,t,r){try{if(t){var s=truste.eu.USER_CONSENT_CENTER_SERVER+e;truste.util.httpRequest(s,'GET',null,r)}}catch(e){truste.util.trace(e.message,e.stack)}},S=Object.create(null),P='gpp.js';S.initialize=function(){try{var e=truste.eu.bindMap,t=e.feat.gpp;t.enabled&&t.gppApplies&&truste.util.addScriptElement(e.assetServerURL+truste.eu.GPP_FILENAME)}catch(e){truste.util.error('Unable to load GPP script: '+e.message)}};S.updateCmpDisplayStatus=function(e){if(truste.eu.bindMap.feat.gpp.enabled){var t=truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify,r={source:'preference_manager',message:'update_cmp_display_status',data:{status:e}};window.postMessage&&window.postMessage(t(r),'*')}};S.gppAutoOptOut=function(){var e=!1;truste.eu.bindMap.feat.gpp.enabled&&truste.util.executeOnCondition(truste.eu.gpp.isGppApiLoaded,function(){e=truste.eu.gpcDntGPPAutoOptOut()},10,3e4);return e};S.sendAutoOptOutMessage=function(e){var t=truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify,r={source:'preference_manager',message:'process_gpp_auto_opt_out',data:{isGpc:e}};window.postMessage&&window.postMessage(t(r),'*')};S.isGppApiLoaded=function(){var e=!1;__gpp('ping',function(t,r){r&&'loaded'==t.cmpStatus&&(e=!0)});return e};const w=function(e,t){var r=truste.eu.bindMap;e||(e=truste.util.createHighestLevelCookie());if(r.feat.gpp.gppApplies){if(truste.eu.isGPCDNTEvent()){r.feat.gpp.gppShowCategories||(e=truste.util.findCommonIntegers(e,r.feat.gpp.gppOptInAll));truste.eu.dropAutoOptOutCookies(e,t);truste.eu.gpp.gppAutoOptOut()&&truste.eu.ccpaOptOut(t)}}else r.feat.ccpaApplies?truste.eu.ccpaOptOut(t):truste.eu.dropAutoOptOutCookies(e,t)},M=function(e,t){var r=truste.eu.bindMap;truste.util.validConsent(e)&&(truste.eu.bindMap.prefCookie=e);truste.util.dropOptoutDomains(e,function(){truste.eu.bindMap.feat.isGPCOptoutEvent&&truste.util.isConsentCenter()&&(truste.eu.flags.isLocalStorageOptOutUpdated=!0);truste.util.createPreferenceFromCookieValue(e,t,null,null,r.feat.gpcdntflag)})},A=function(e){truste.eu.ccpa.dropCcpaCookie(!0,truste.eu.bindMap.feat.dntShowUI?'Y':'N');truste.util.consentRequiredlevel(e);truste.eu.bindMap.feat.isGPCOptoutEvent&&truste.util.isConsentCenter()&&(truste.eu.flags.isLocalStorageOptOutUpdated=!0)},x=function(){var e=!1,t=`/cm/${truste.eu.bindMap.domain}/gpp/auto-opt-out?`;truste.util.callCMEndpoint(t,null,function(t){var r=t.responseText,s=truste.util.parseJSON(r);console.log('GPP Auto OptOut Response: '+t.responseText);if(r&&s){var i=truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify,n={source:'preference_manager',message:'process_gpp_consent',data:s};window.postMessage&&window.postMessage(i(n),'*');e=2!==s.saleOptOut&&2!==s.sharingOptOut&&2!==s.targetedAdvertisingOptOut}},!1,null);return e},R={},D='usprivacy',N='1',L='uspapi.js';R.uspString=function(e,t){var r=truste.eu.bindMap,s='1---';if(r.feat.ccpaApplies){var i=/^[nNyY-]$/;void 0!==t&&i.test(t)||(t='Y');var n=i.test(r.lspa)?r.lspa:'-';e=e?'Y':'N';s=truste.eu.USP_VERSION+t+e+n}return s};R.dropCcpaCookie=function(e,t){truste.eu.bindMap.feat.enableCCPA&&truste.util.createCookie(truste.eu.COOKIE_USPRIVACY,truste.eu.ccpa.uspString(e,t))};R.getOptout=function(){var e=truste.util.readCookie(truste.eu.COOKIE_USPRIVACY);return/^[1][nNyY-][nNyY-][nNyY-]$/.test(e)?e.charAt(2):null};R.showLink=function(){var e=truste.eu.bindMap,t=truste.eu.ccpaLink=self.document.createElement('a');truste.util.addListener(t,'click',function(){truste.bn.reopenBanner&&truste.bn.reopenBanner()});t.id=truste.eu.irmId=('ccpa-id-'+Math.random()).replace('.','');t.tabIndex='0';e.feat.enableIconRole&&t.setAttribute('role',e.iconRole?e.iconRole:'link');t.setAttribute('lang',e.locale.replace('_','-'));truste.util.addListener(t,'keydown',function(e){e||(e=window.event);var r=e.which||e.keyCode;if(13==r||32==r){e.preventDefault?e.preventDefault():event.returnValue=!1;t.click()}});t.style.cursor='pointer';t.innerHTML=e.ccpaText;var r=document.getElementById(e.containerId);if(r){r.appendChild(t);r.style.display=truste.util.getDisplayProperty(r);e.feat.enableContainerRole&&r.setAttribute('role',e.containerRole?e.containerRole:'complementary')}};R.initialize=function(){var e=truste.eu.bindMap;e.feat.enableCCPA&&truste.util.addScriptElement(e.assetServerURL+truste.eu.USP_FILE_NAME,function(){if(!e.feat.gpp.gppApplies){e.prefCookie||truste.eu.ccpa.dropCcpaCookie(e.feat.ccpadefault||!1,'Y');e.feat.ccpaApplies&&truste.util.executeOnCondition(function(){return self.document.getElementById(e.containerId)},truste.eu.ccpa.showLink,100,1e4)}})};const T={},G='notice_cpra_finprog';T.shouldShowFinProg=function(){var e=truste.eu.bindMap,t=truste.util.readCookie(truste.eu.COOKIE_CPRA_FINPROG,!0);return e.feat.enableCPRA&&'true'==truste.eu.noticeLP.finprog&&(!t||'true'===t)};T.dropCpraCookie=function(e,t){truste.eu.bindMap.feat.enableCPRA&&truste.util.createCookie(truste.eu.COOKIE_CPRA_FINPROG,e,t,!0,!0)};T.yes=function(e){truste.eu.bindMap;truste.eu.cpra.dropCpraCookie(!0);switch(e){case'gpc':truste.util.dropGPCIsHonoredCookie();case'dnt':truste.eu.resetGpcDnt();case'banner-decline':case'banner-decline-ccpa':case'optout-close':case'irm-optout':case'consent-center':void 0!==truste.bn&&truste.bn.acceptAll?truste.bn.acceptAll():truste.util.optinAll()}};T.no=function(e,t){truste.eu.cpra.dropCpraCookie(!1);switch(t){case'gpc':case'dnt':truste.eu.isGPCDNTEvent()&&truste.eu.autoOptout(e);break;case'banner-decline':void 0!==truste.bn&&truste.bn.declineAll&&truste.bn.declineAll();break;case'banner-decline-ccpa':void 0!==truste.bn&&truste.bn.declineCPRA&&truste.bn.declineCPRA();break;case'optout-close':truste.util.optoutRequired();break;case'irm-optout':truste.eu.irm.optout();break;case'consent-center':truste.eu.autoOptout(e)}};const U={isMobile:!1,checkIfMobile:function(){var e=self.navigator.userAgent||self.navigator.vendor||self.opera;return/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))}};truste.eu.call1Missing=function(){for(var e=['_createCookie','_readCookie','_removeCookie','createCookie','getCmIdentifier','getDefaultStyleProperty','getDisplayProperty','getRandomUUID','getScriptElement','getUniqueID','initParameterMap','readCookie','readCookieSimple','sendAnalytics','setSession','trace'],t=truste&&truste.util||{},r=[],s=0;s<e.length;s++)'function'!=typeof t[e[s]]&&r.push(e[s]);r.length&&self.console&&console.warn&&console.warn('TrustArc: Call 1 did not install '+r.join(', ')+' — Call 1 and Call 2 may be at different versions.');return r}();truste.eu.events=truste.eu.events||{};truste.eu.events.CCM_READY='trustarc-ccm-ready';truste.eu.events.CONSENT_UPDATED='trustarc-consent-updated';truste.eu.events.buildConsentEventData=function(e){var t,r=truste.eu.bindMap,s=r.prefCookie,i=truste.util.getIntValue(s),n={};if(r.categoriesIndexesFromReferer)t=r.categoriesIndexesFromReferer.split('|').map(function(e){return parseInt(e,10)});else if(r.categoryCount){t=[];for(var u=0;u<r.categoryCount;u++)t.push(u)}else t=[0];var o=[];s&&null!==i&&-1!==i&&(o=s.split(/[,|]/).map(function(e){return parseInt(e,10)}));for(var a=0;a<t.length;a++){var l=t[a],c='ta_category_'+(l+1);n[c]=null==s||null===i?void 0:-1!==i&&-1!==o.indexOf(l)}return{event:e,timestamp:(new Date).getTime(),consent:n,consentModel:r.consentModel||'none'}};truste.eu.events.pushToDataLayer=function(e){if(truste.eu.bindMap.feat.pushEventsToDataLayer){var t=truste.eu.noticeLP?.dl||truste.cma?.binfo?.dl||'dataLayer';'string'==typeof t&&truste.util.isSafePropertyName(t)||(t='dataLayer');self[t]=self[t]||[];'function'==typeof self[t].push&&self[t].push(e)}};truste.eu.events.fireCcmReady=function(){truste.eu.ccmReady=!0;var e=truste.eu.events.buildConsentEventData(truste.eu.events.CCM_READY);truste.util.fireCustomEvent(truste.eu.events.CCM_READY,e);truste.eu.events.pushToDataLayer(e)};truste.eu.events.fireConsentUpdated=function(){var e=truste.eu.events.buildConsentEventData(truste.eu.events.CONSENT_UPDATED);truste.util.fireCustomEvent(truste.eu.events.CONSENT_UPDATED,e);truste.eu.events.pushToDataLayer(e)};truste.eu._listeners=[];truste.eu.addEventListener=function(e,t){if(e&&'function'==typeof e){for(var r=-1,s=0,i=truste.eu._listeners.length;s<i;s++)if(truste.eu._listeners[s]===e){r=s;break}r+1&&t?truste.eu._listeners.splice(r,1):r+1||truste.eu._listeners.push(e)}};truste.eu._dispatchEvent=function(e,t){for(var r=truste.eu._listeners.length;r-- >0;)try{truste.eu._listeners[r](e,t)}catch(e){}};truste.eu.cmLoading=!1;truste.eu.actmessage=function(e){var t=truste.eu.bindMap;if(e)if('preference_manager'==e.source)switch(e.message){case'submit_preferences':var r='object'==typeof e.data?e.data.value:e.data;if(null!=r&&truste.util.validConsent(r)){truste.eu.bindMap.shift&&r.indexOf(truste.eu.bindMap.shift)>-1&&(r=truste.util.getShiftCookie(r,!0));t.prefCookie=r;truste.util.trace('changing preference to: '+t.prefCookie);if(t.isPro)if(t.feat.gpcdntflag)t.feat.gpcdntflag=0;else{t.feat.isGPCOptoutEvent=!1;t.feat.isDNTOptoutEvent=!1}else{truste.eu.performShopifyConsent();truste.eu.gcm();truste.eu.acsSendConsent();e.data.gpcDnt?t.feat.gpcdntflag=0:truste.eu.resetGpcDnt()}e.data.fromUserConsentStorage||'true'!==String(truste.util.readCookie(truste.eu.COOKIE_GPC_ISHONORED,!0))||'true'===String(truste.util.readCookie(truste.eu.COOKIE_GPC_PREF_OVERRIDDEN,!0))||truste.util.createCookie(truste.eu.COOKIE_GPC_PREF_OVERRIDDEN,!0,null,!0);truste.bn&&truste.bn.handleBannerDone&&truste.bn.handleBannerDone();t.feat.isGPCOptoutEvent&&truste.util.createCookie(truste.eu.COOKIE_GPC_ISHONORED,!0,null,!0);var s=(truste.util.getLowestConsent(t.prefCookie)||'')+':'+t.daxSignature;truste.util.createCookie(truste.eu.COOKIE_PREF_NAME,s,e.data.expires,!0);s=t.prefCookie+':'+t.daxSignature;t.feat.consentResolution&&(s=s+':'+t.behavior+(t.feat.replaceDelimiter?'|':',')+t.behaviorManager);truste.util.createCookie(truste.eu.COOKIE_GDPR_PREF_NAME,s,e.data.expires,!0);truste.eu.consentUID&&truste.util.validConsent(t.prefCookie)&&truste.util.createCookie(truste.eu.COOKIE_UID,truste.eu.consentUID,e.data.expires,!0);if(t.flags.dropPopCookie){t.flags.isReconsentEvent=!1;t.isPro||(t.feat.isReconsentEvent=!1);truste.util.createCookie(truste.eu.COOKIE_REPOP,t.popTime,t.isPro?null:e.data.expires,!0)}if(t.isPro){if(truste.util.isAutoblock()&&!e.data.skipAutoblock){var i=truste.util.createHighestLevelCookie();if(t.prefCookie.includes(i))truste.util.autoblockConsent();else{var n=!1;try{if(o=localStorage[truste.eu.COOKIE_CATEGORY_NAME]){if('object'==typeof(a=JSON.parse(o))&&Object.keys(a).length){truste.util.autoblockConsent(a);n=!0}}}catch(e){truste.util.trace(e.message,e.stack)}n||truste.util.autoblockConsent()}}truste.eu.icon.gpcMessage();truste.util.fireCustomEvent('truste-consent',t.prefCookie);truste.eu.events.fireConsentUpdated();t.flags.isRepopEvent=!1;truste.eu.sendclosereport=!1;(l=truste.eu.caIcon)&&l.setAttribute('consent',t.prefCookie)}else{truste.eu.icon.gpcMessage();truste.util.fireCustomEvent('truste-consent',t.prefCookie);truste.eu.events.fireConsentUpdated();if(truste.util.isConsentCenter()&&!e.data.fromUserConsentStorage){var u=function(){truste.eu.flags.isLocalStorageOptOutUpdated=!1;truste.eu.saveUserConsent(truste.eu.noticeLP.userID,t.prefCookie,t.domain,truste.util.readCookie(truste.eu.COOKIE_CPRA_FINPROG,!0),t.feat.crossDomain,localStorage&&localStorage[truste.eu.COOKIE_CATEGORY_NAME],truste.util.getStorage(truste.util.COOKIE_NS+truste.eu.COOKIE_GDPR_PREF_NAME).expires,truste.util.readCookie(truste.eu.COOKIE_GPC_ISHONORED,!0),truste.util.readCookie(truste.eu.COOKIE_GPC_PREF_OVERRIDDEN,!0),truste.util.readCookie(truste.eu.COOKIE_USPRIVACY,!0),truste.util.readCookie(truste.eu.COOKIE_REPOP,!0))};t.feat.isGPCOptoutEvent?truste.util.executeOnCondition(function(){return truste.eu.flags.isLocalStorageOptOutUpdated},u,50,5500):u()}if(truste.util.isAutoblock()&&!e.data.skipAutoblock){i=truste.util.createHighestLevelCookie();if(t.prefCookie.includes(i))truste.util.autoblockConsent();else{n=!1;try{var o;if(o=localStorage&&localStorage[truste.eu.COOKIE_CATEGORY_NAME]){var a;if('object'==typeof(a=JSON.parse(o))&&Object.keys(a).length){truste.util.autoblockConsent(a);n=!0}}}catch(e){truste.util.trace(e.message,e.stack)}n||truste.util.autoblockConsent()}}t.flags.isRepopEvent=t.feat.isRepopEvent=!1;truste.eu.sendclosereport=!1;var l;if(l=truste.eu.caIcon){l.setAttribute('consent',t.prefCookie);l.classList.add('truste_caIcon_display')}}}break;case'cm_loading':truste.eu.cmLoading=!0;break;case'change_panel':case'change_panel_no_scroll':if('string'==typeof e.data){var c=parseInt(e.data.split('x')[0]);if(!isNaN(c)){t.height=c;truste.eu.resizeFrame(t.width,t.height);if('change_panel'===e.message&&!t.feat.noscrolltop){self.scrollTo(0,0);var d=self.document.getElementById(truste.eu.popdiv2);d&&(d.scrollTop=0)}}}break;case'remove_iframe':'true'!=e.data||truste.eu.prefclose()||setTimeout(truste.eu.prefclose,500);break;case'toggle_close_button':truste.eu.toggleCloseButton(t,e.data);break;case'send_tracker_list':'object'==typeof e.data&&null!==e.data&&truste.util.setStorage(truste.eu.COOKIE_CATEGORY_NAME,e.data,!1);break;case'get_tracker_list':if(t.isPro){var p={value:truste.util.getStorage(truste.eu.COOKIE_CATEGORY_NAME)||{}};truste.eu.postMessageToFrame('optout_domains_status',p)}else{const e=truste.util.getStorage(truste.eu.COOKIE_CATEGORY_NAME)||Object.create(null),t=Object.entries(e).sort((e,t)=>Number(e[1].value)-Number(t[1].value)),r=Object.fromEntries(t);let s={value:JSON.stringify(r)};truste.util.shiftOptoutDomains(s.value,!1);truste.eu.postMessageToFrame('optout_domains_status',s)}break;case'show_cm':truste.eu.showCM(e.data);break;case'request_popup_message':truste.eu.postMessageToFrame('popup_message',truste.eu.bindMap.popupMsg);break;case'two_step_yes':truste.eu.sendclosereport=!1;if(truste.bn&&truste.bn.twoStepConfirmed){truste.util.trace('Two Step Opt-in Confirmed.');truste.bn.twoStepConfirmed()}break;case'two_step_no':truste.eu.sendclosereport=!1;truste.bn&&truste.bn.twoStepDeclined&&truste.bn.twoStepDeclined();break;case'finprog_yes':if('string'==typeof e.data){var f=JSON.parse(e.data);f.isNoticeFlow?truste.eu.cpra.yes(f.cpraSource):truste.eu.cpra.dropCpraCookie(!0);truste.eu.hideCloseButton(!1)}break;case'finprog_no':if('string'==typeof e.data){var m=JSON.parse(e.data);m.isNoticeFlow?truste.eu.cpra.no(m.cpraConsent,m.cpraSource):truste.eu.cpra.dropCpraCookie(!1);truste.eu.hideCloseButton(!1)}break;case'truste-click-toggle-event':case'truste-click-button-submit':truste.util.fireCustomEvent(e.data,{});break;case'create_cookie':try{var g='string'==typeof e.data?JSON.parse(e.data):e.data,v=g.name,h=g.value;if(v==truste.eu.COOKIE_NOTICE_LANGUAGE&&h){truste.util.createCookie(v,h);t.locale=h;truste.bn&&truste.bn.applyNoticeLanguageFromCookie&&truste.bn.applyNoticeLanguageFromCookie()}}catch(e){console.error('Failed to create cookie:',e);return}break;case'truste-click-accept-all-button':truste.util.fireCustomEvent(e.message,{});break;case'process_iab_accept_all':truste.eu.noticeLP.pcookie?self.localStorage&&self.localStorage.removeItem(truste.eu.COOKIE_CATEGORY_NAME):truste.util.dropOptoutDomains(truste.util.createHighestLevelCookie());break;case'analytics':truste.util.sendAnalytics(e.data.action,e.data.categories)}else if('trustarc_user_consent_client'==e.source){if(null!==e.userID){truste.eu.noticeLP.userID=e.userID;truste.eu.getUserConsent(e.userID,function(e,t){truste.eu.postUserCenterCallback(e,t)})}}else if('trustarc_irm'==e.source)switch(e.message){case'submit':if(t.feat.enableIrmAutoOptOut&&truste.eu.cpra&&truste.eu.cpra.shouldShowFinProg()){truste.eu.clickListener(7,!0,{cpraConsent:'0',cpraSource:'irm-optout'});return}truste.eu.irm.optout();break;case'complete':if(t.flags.submittedIRM){t.flags.irmLandingPageReached=!0;truste.eu.toggleCloseButton(t,'true');truste.util.trace('irm landing page reached')}break;case'error':truste.util.trace('error in irm process. terminating optout');truste.eu.sendclosereport=!1;truste.eu.prefclose()}};truste.eu.postMessageToFrame=function(e,t,r,s){var i=self.document.getElementById(r||truste.eu.popframe),n=truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify,u={source:'notice_js',message:e,data:t};for(var o in s)u[o]=s[o];i&&i.contentWindow.postMessage&&i.contentWindow.postMessage(n(u),'*')};truste.eu.shouldShowCloseButton=function(e,t,r){if('object'!=typeof e||null===e)return!1;var s='irm'===t,i=truste.util.validConsent(e.prefCookie)||e.feat.gpp.gppApplies&&truste.eu.isGPCDNTEvent(),n=!s&&e.feat.optoutClose&&!i&&'required'!=r;return!e.flags.isRepopEvent&&'show_loyalty_message'!==r&&(e.autoDisplayCloseButton||n||s||'implied'==e.behavior||'expressed'==e.behavior&&i)};truste.eu.storeInvoker=function(){try{var e=self.document.activeElement;e&&e!==self.document.body&&'function'==typeof e.focus&&(truste.eu.lastInvoker=e)}catch(e){truste.util.trace('error storing invoking element',e)}};truste.eu.restoreInvokerFocus=function(){var e=truste.eu.lastInvoker;truste.eu.lastInvoker=null;try{if(e&&'function'==typeof e.focus&&self.document.contains(e)){e.focus();return!0}}catch(e){truste.util.trace('error restoring focus to invoking element',e)}return!1};truste.eu.resolveClickPage=function(e,t,r){if(r.isPro)switch(e){case 1:return'prefmgr';case 2:return'advanced';case 3:return'required';case 4:return'show2ndOptinStep';default:return null!=t&&t>=0?'prefmgr':'notice'}switch(e){case 1:return'prefmgr';case 2:return'advanced';case 3:return'required';case 4:return'iab_manage_settings';case 5:return'iab_manage_settings_partners';case 6:return'show2ndOptinStep';case 7:return'show_loyalty_message';default:return!(null!=t&&t>=0)||r.feat&&r.feat.showDisclosure?'notice':'prefmgr'}};truste.eu.clickListener=function(e,t,r){var s=truste.eu.bindMap;if('object'!=typeof s||null===s)return truste.eu.error('click listener was called but bindings are unavailable');truste.eu.storeInvoker&&truste.eu.storeInvoker();truste.eu.readLanguageSelectionCookie&&truste.eu.readLanguageSelectionCookie();var i=truste.util.getIntValue(s.prefCookie),n=truste.util.getIntValue(e),u=truste.eu.resolveClickPage(n,i,s);truste.eu.prefview(s,u,r);t||truste.eu._dispatchEvent('click');return u};truste.eu.reopenBanner=function(){var e=truste.eu.bindMap;if('object'!=typeof e||null===e)return(truste.eu.error||truste.util.trace)('Re Open Banner click listener was called but bindings are unavailable');if(e.feat.ccpaApplies&&void 0!==truste.bn)return truste.bn.reopenBanner&&truste.bn.reopenBanner();truste.eu.clickListener()};truste.eu.readLanguageSelectionCookie=function(){let e=truste.util.readCookie(truste.eu.COOKIE_NOTICE_LANGUAGE,!0);e&&(truste.eu.bindMap.locale=e)};truste.eu.toggleCloseButton=function(e,t){if(e&&e.closebtnid){var r=self.document.getElementById(e.closebtnid);if(r)if(t&&'true'==t){r.classList.remove('truste_visibility_hidden');r.classList.add('truste_visibility_visible')}else{r.classList.remove('truste_visibility_visible');r.classList.add('truste_visibility_hidden')}}};truste.eu.resizeFrame=function(e,t,r){truste.util.trace('resizing the iframe to:',e,t,r);var s=self.document.documentElement;r=parseInt(r);t=parseInt(t);!isNaN(r)&&s&&s.style&&s.style.setProperty('--truste-box-overlay-margin-left',r+'px');if(t&&s&&s.style){t+='px';s.style.setProperty('--truste-box-overlay-height',t);s.style.setProperty('--truste-popframe-height',t);s.style.setProperty('--truste-box-overlay-inner-height',t)}if(truste.eu.bindMap.wcag2){var i=self.document.getElementById(truste.eu.popdiv3);t&&i&&i.style&&(i.style.backgroundColor='transparent')}};truste.eu.resizeFrameWcag2=function(e,t){truste.util.trace('resizing the WCAG2 iframe to:',e,t);t=parseInt(t);const r=window.innerHeight-100;if(t>r){t=r;truste.util.trace('resizing the WCAG2 iframe, new height:',t)}var s=self.document.getElementById(truste.eu.popdiv2);if(t&&s&&s.style){s.style.height=t+'px';(s=self.document.getElementById(truste.eu.popframe))&&s.style&&(s.style.maxHeight=t+'px');(s=self.document.getElementById(truste.eu.popdiv3))&&s.style&&(s.style.maxHeight=t+'px')}var i=self.document.getElementById(truste.eu.popdiv3);t&&i&&i.style&&(i.style.backgroundColor='transparent')};truste.eu.removeHidden=function(){try{for(var e=self.document.getElementsByTagName('object'),t=0;t<e.length;++t){var r=e[t];r&&(r.className=r.className.replace(/\btruste_hidden\b/g,''))}}catch(e){(truste.eu.error||truste.util.trace)('error removing truste_hidden from class names',e)}};truste.eu.restoreCmFocus=function(e){if(e.isPro){var t=null!=truste.eu.lastInvoker;if(!truste.eu.restoreInvokerFocus()&&t){var r=self.document.getElementById('truste-show-consent');null!=r&&r.focus({preventScroll:!0});truste.eu.prefButton&&truste.eu.prefButton.focus({preventScroll:!0})}}else if(e.feat.enableReturnFocus&&e.returnFocusTo){var s=self.document.getElementById(e.returnFocusTo);s&&s.focus();e.returnFocusTo=''}};truste.eu.prefclose=function(e){try{var t=self.document.getElementById(truste.eu.popdiv),r=t&&self.document.getElementById(truste.eu.popdiv2);if(t&&r){t.parentNode.removeChild(t);r.parentNode.removeChild(r);var s=self.document.getElementById(truste.eu.outerdiv);s&&s.parentNode.removeChild(s);truste.eu.removeHidden();var i=self.sessionStorage.getItem('oldHash');if(i){self.location.hash=i;self.sessionStorage.removeItem('oldHash')}truste.util.trace('closing the CM');var n=truste.eu.bindMap;truste.eu.restoreCmFocus(n);truste.eu.gpp&&truste.eu.gpp.updateCmpDisplayStatus('hidden');!1!==e&&truste.eu._dispatchEvent('close');return!0}}catch(e){(truste.eu.error||truste.util.trace)('error in prefclose',e)}return!1};truste.eu.runOnReady=function(e){document.body?e():window.addEventListener('load',e)};truste.eu.createPrefViewStyle=function(e,t){if(e.isPro){let e=self.document.documentElement;e.style.setProperty('--truste-box-overlay-margin-left','auto');e.style.setProperty('--truste-box-overlay-margin','20px auto');e.style.setProperty('--truste-box-overlay-height','auto');e.style.setProperty('--truste-popframe-height','auto');e.style.setProperty('--truste-box-overlay-inner-height','auto');let t='.truste_box_overlay {margin: var(--truste-box-overlay-margin);margin-left: var(--truste-box-overlay-margin-left);height: var(--truste-box-overlay-height);}.truste_box_overlay_inner {height: var(--truste-box-overlay-inner-height);}.truste_popframe {height: var(--truste-popframe-height);}.truste_visibility_visible {visibility: visible;}.truste_visibility_hidden {visibility: hidden;}',r=document.createElement('style');r.setAttribute('type','text/css');let s=document.querySelector('[nonce]');s&&r.setAttribute('nonce',s.nonce||s.getAttribute('nonce'));r.innerText=t;document.head.insertBefore(r,document.head.firstChild);return}var r=self.document.documentElement,s=2*truste.eu.findHighestZIndex('div'),i=Math.min(2147483647,s+2e6),n=' ',u=' ',o=' ',a=' ';e.width&&(n='max-width: '+e.width+'px;');if(t){u='min-height: 400px;';r.style.setProperty('--truste-box-overlay-height','auto');o='min-height: 400px;';a='min-height: 400px;'}else e.height&&r.style.setProperty('--truste-box-overlay-height',e.height+'px');r.style.setProperty('--truste-box-overlay-margin-left','auto');r.style.setProperty('--truste-box-overlay-inner-height','100%');r.style.setProperty('--truste-popframe-height','100%');var l='.truste_overlay {background-color: #000;opacity: 0.4;position: fixed;z-index: '+Math.min(2147483646,s+1e6)+';width: 100%;height: 100%;top: 0px;left: 0px;overflow: hidden;filter: Alpha(Opacity: 80);';if(e.styles.overlay)for(var c in e.styles.overlay)l+=c+': '+e.styles.overlay[c]+';';l+='}';var d='.truste_box_overlay {position: absolute;z-index:'+i+';top: 0px;left: 0px;bottom: 0px;right: 0px;border-radius: 5px;padding: 10px;width: 80%;'+n+u+'height: var(--truste-box-overlay-height);min-width: 220px;margin: 20px auto 20px var(--truste-box-overlay-margin-left);box-sizing: content-box;';if(e.styles.box_overlay)for(var c in e.styles.box_overlay)d+=c+': '+e.styles.box_overlay[c]+';';d+='}';var p='.truste_box_overlay_inner {position: relative;width: 100%;height: var(--truste-box-overlay-inner-height);outline: none;'+o+'}',f=truste.eu.isAccessibleLayout(e.prefmgrUrl),m='';if(!f){m='.truste_box_overlay_border {display: block;background: #000;opacity: 0.3;width: calc(100% + 20px);height: calc(100% + 20px);position: absolute;top: -10px;left: -10px;';if(e.styles.box_overlay_border)for(var c in e.styles.box_overlay_border)m+=c+': '+e.styles.box_overlay_border[c]+';';m+='}'}var g='.truste_cm_outerdiv {width: 100%;height: 100%;overflow: scroll;position: absolute;top: 0;left: 0;z-index: '+i+';-webkit-overflow-scrolling: touch;';if(e.styles.outerdiv)for(var c in e.styles.outerdiv)g+=c+': '+e.styles.outerdiv[c]+';';g+='}';var v='.truste_popframe {border: 0px;'+(f?'border-radius: 32px; box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.25);':'border-radius: 2px;')+'overflow: hidden;background: #fff;display: block;position: absolute;top: 0px;left: 0px;width: 100%;height: var(--truste-popframe-height);'+a;if(e.styles.inner_iframe)for(var c in e.styles.inner_iframe)v+=c+': '+e.styles.inner_iframe[c]+';';var h=l+d+p+m+g+(v+='}'),b=document.createElement('style');b.setAttribute('type','text/css');var y=document.querySelector('[nonce]');y&&b.setAttribute('nonce',y.nonce||y.getAttribute('nonce'));b.innerText=h;document.head.insertBefore(b,document.head.firstChild);truste.eu.createCommonStyle()};truste.eu.prefview=function(e,t,r){if(!t||!e)return truste.eu.clickListener(null);var s,i;if(e.isPro){if(truste.eu.popdiv&&self.document.getElementById(truste.eu.popdiv))return}else{s=self.document.getElementById('truste-consent-container');i=!!s}truste.util.trace('opening the CM');truste.util.trace('Action is: '+t);truste.eu.popdiv=('pop-div'+Math.random()).replace('.','');truste.eu.popdiv2=('pop-div2'+Math.random()).replace('.','');truste.eu.popdiv3=('pop-div3'+Math.random()).replace('.','');truste.eu.popframe=('pop-frame'+Math.random()).replace('.','');truste.eu.outerdiv=('pop-outerdiv'+Math.random()).replace('.','');truste.eu.sendclosereport=!0;var n=/^https?:\/\//.test(e.prefmgrUrl||'')?e.prefmgrUrl:truste.eu.scriptBaseUrl||e.cdnURL,u=n.indexOf('?')>0?'&site=':'?site=';n+=u+(truste.util.getCmIdentifier(e)||self.location.hostname)+'&country='+e.country;e.behavior&&(n+='&behavior='+e.behavior);e.isPro?'required'===t?n+='&action=required':'show2ndOptinStep'===t&&(n+='&action=show2ndOptinStep'):!e.flags.isReconsentEvent||Object.hasOwn(truste.eu.noticeLP,'pn')||'eu'!=e.behaviorManager||e.isGdprLayout||e.isIabLayout||e.isGppLayout?n+='&action='+t:n+='&action=notice';e.state&&(n+='&state='+e.state);e.locale&&(n+='&locale='+e.locale);if(null!=e.prefCookie){var o=truste.util.getShiftCookie?truste.util.getShiftCookie(e.prefCookie,!1):e.prefCookie;n+='&preferences='+encodeURI(o)}truste.eu.bindMap.debug?n+='&debug=true':void 0!==truste.eu.noticeLP&&void 0!==truste.eu.noticeLP.debug&&(n+='&debug='+truste.eu.noticeLP.debug);truste.eu.consentUID&&(n+='&uid='+truste.eu.consentUID);e.flags.isReconsentEvent&&(n+='&repop=true');e.feat.autoblock&&(n+='&autoblock='+e.feat.autoblock);e.isPro||n.includes('&layout=')||'eu'!=e.behaviorManager||e.isGdprLayout||e.isIabLayout||e.isGppLayout||(n+='&layout=default_eu');if(void 0!==truste.eu.noticeLP){var a=truste.eu.noticeLP.ostype;a&&(n+='&ostype='+a);truste.eu.noticeLP.ac&&(n+='&accessibility=true')}n+='&from='+e.cdnURL;e.referer&&(n+='&referer='+e.referer);e.fullURL&&(n+='&fullURL='+e.fullURL);var l=e.isPro?{privacypolicylink:truste.eu.privacyPolicyLinkParam,privacypolicylinktext:truste.eu.privacyPolicyLinkTextParam,cookieLink:truste.eu.cookieLinkParam,cookieLinkText:truste.eu.cookieLinkTextParam}:truste.eu.noticeLP,c=e.isPro?function(e){return!!l[e]}:function(e){return Object.hasOwn(l,e)},d=/<\s*script|javascript:|<\/?\w+[^>]*>/i;c('privacypolicylinktext')&&(n+='&privacypolicylinktext='+encodeURIComponent(l.privacypolicylinktext));c('privacypolicylink')&&!d.test(l.privacypolicylink)&&(n+='&privacypolicylink='+encodeURIComponent(l.privacypolicylink));c('cookieLinkText')&&(n+='&cookieLinkText='+encodeURIComponent(l.cookieLinkText));c('cookieLink')&&!d.test(l.cookieLink)&&(n+='&cookieLink='+encodeURIComponent(l.cookieLink));e.feat.iab&&(n+='&iab=true');e.feat.enableACString&&(n+='&atp=true');e.feat.enableTwoStepVerification&&(n+='&twoStep=true');e.feat.optoutClose&&(n+='&optoutClose=true');e.behaviorManager&&(n+='&behaviorManager='+e.behaviorManager);e.seedUrl&&(n+='&seed_url='+e.seedUrl);e.feat.showDisclosure&&(n+='&showDisclosure=true');if(e.feat.enableCPRA&&truste.eu.cpra){n+='&is_cpra='+e.feat.enableCPRA;n+='&is_finprog='+truste.eu.cpra.shouldShowFinProg();e.feat.isGPCOptoutEvent?n+='&is_gpc='+e.feat.gpc:e.feat.isDNTOptoutEvent&&(n+='&is_dnt='+e.feat.dnt);if(r){n+='&cpra_consent='+r.cpraConsent;n+='&cpra_source='+r.cpraSource}}e.feat.gpp.gppApplies&&(n+='&showGPPCategories='+e.feat.gpp.gppShowCategories);let p=truste.util.isGPCHonored();p&&(n+='&gpchonored='+p);n+='&session='+truste.eu.session;n+='&userType='+truste.eu.userType;var f,m,g;if(e.isPro){m=new URL(e.prefmgrUrl);g=e.wcag2?'pro-accessible-bundle.js':'pro-bundle.js';m.pathname=`/asset/${g}`;m.search='?v='+e.version}else{(f=truste.eu.isAccessibleLayout(e.prefmgrUrl))&&(n+='&windowInnerHeight='+window.innerHeight.toString());m=new URL(e.prefmgrUrl);g=function(e,t){return e.isGppLayout?'gpp-bundle.js':e.isIabLayout?t?'iab-accessible-bundle.js':'iab-bundle.js':t?'adv-accessible-bundle.js':'adv-bundle.js'}(e,f);m.pathname=`/asset/${g}`;m.search='?v='+e.version}var v,h,b,y,C,_,E,O,k=m.toString();if(e.isPro){truste.eu.createPrefViewStyle(e);E=2*truste.eu.findHighestZIndex('div');(v=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv);v.className='truste_overlay';v.style.zIndex=Math.min(2147483646,E+1e6);if(e.styles.overlay)for(var I in e.styles.overlay)Object.hasOwn(e.styles.overlay,I)&&(v.style[I]=e.styles.overlay[I]);O=Math.min(2147483647,E+2e6);if(e.outerdiv){(_=self.document.createElement('div')).id=truste.eu.outerdiv;_.className='truste_cm_outerdiv';_.style.zIndex=O;if(e.styles.outerdiv)for(var S in e.styles.outerdiv)Object.hasOwn(e.styles.outerdiv,S)&&(_.style[S]=e.styles.outerdiv[S])}(h=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv2);h.className='truste_box_overlay';h.style.position='absolute';h.style.zIndex=O;if(e.styles.box_overlay)for(var P in e.styles.box_overlay)Object.hasOwn(e.styles.box_overlay,P)&&(h.style[P]=e.styles.box_overlay[P]);var w=function(e){var t=self.document.getElementById(truste.eu.popdiv2),r=self.document.getElementById(truste.eu.popframe);if(null!=t&&null!=r)if(truste.eu.bindMap.wcag2){t.style.maxWidth='992px';document.documentElement.style.setProperty('--truste-box-overlay-height','100%')}else if(e.matches){t.style.maxWidth='100%';t.style.padding='0px';document.documentElement.style.setProperty('--truste-box-overlay-margin','0px');document.documentElement.style.setProperty('--truste-popframe-height','100vh')}else{t.style.maxWidth='650px';t.style.padding='10px';document.documentElement.style.setProperty('--truste-box-overlay-margin','20px auto')}},M=window.matchMedia('(max-width: 480px)');M.addListener(w);w(M);(b=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv3);b.className='truste_box_overlay_inner';b.style.position='relative';b.style.width='100%';truste.eu.bindMap.wcag2||(b.tabIndex='1');b.setAttribute('role','dialog');b.setAttribute('aria-label','cookie consent notice');b.setAttribute('aria-modal','true');b.style.outline='none';b.style.boxShadow='0 2px 10px 0 rgba(0, 0, 0, 0.5)';(y=self.document.createElement('img')).src=e.assetServerUrl+'transparent.png';y.setAttribute('alt','');y.style.display='block';(C=self.document.createElement('div')).id=truste.eu.popframe;C.className='truste_popframe';C.title='Cookie Consent Notice';truste.eu.bindMap.wcag2||(C.tabIndex='1');if(e.styles.inner_iframe)for(var A in e.styles.inner_iframe)Object.hasOwn(e.styles.inner_iframe,A)&&(C.style[A]=e.styles.inner_iframe[A]);if(truste.eu.bindMap.wcag2){h.style.padding='0px';h.style.width='calc(100% - 30px)';b.style.boxShadow='none';y.style.display='none';C.style.background='transparent';b.style.backgroundColor='transparent'}truste.eu.iframe=C}else{if(i){truste.eu.popframe='truste-consent-container';C=s}else{var x='iab_manage_settings'==t||'iab_manage_settings_partners'==t;truste.eu.createPrefViewStyle(e,x);(v=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv);v.className='truste_overlay';if(e.outerdiv){(_=self.document.createElement('div')).id=truste.eu.outerdiv;_.className='truste_cm_outerdiv'}(h=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv2);h.className='truste_box_overlay';document.documentElement.style.setProperty('--truste-box-overlay-inner-height','auto');document.documentElement.style.setProperty('--truste-box-overlay-height','auto');document.documentElement.style.setProperty('--truste-popframe-height','auto');(b=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv3);b.className='truste_box_overlay_inner';b.tabIndex='-1';b.setAttribute('role','dialog');b.setAttribute('aria-modal','true');b.setAttribute('aria-label',truste.util.decodeHtml(truste.eu.bindMap.localization.modalTitle));var R=e.externalcss||'',D=truste.eu.buildStylesForNewCm(e)+R,N=document.getElementById('truste-newcm-styles');if(!N){(N=document.createElement('style')).id='truste-newcm-styles';var L=document.querySelector('[nonce]');L&&N.setAttribute('nonce',L.nonce||L.getAttribute('nonce'));document.head.appendChild(N)}N.textContent=D;(y=self.document.createElement('div')).className='truste_box_overlay_border';(C=self.document.createElement('div')).id=truste.eu.popframe;e.hideCloseButtonEnabled||f||(C.tabIndex='1');C.scrolling='no';C.setAttribute('name','trustarc_cm');C.className='trustarc_newcm_container truste_popframe'}truste.eu.iframe=C}function T(){return window.TrustArcConsentManager&&'function'==typeof window.TrustArcConsentManager.renderDirectEmbed}function G(){try{if(!T()){console.log('waiting for TrustArcConsentManager to load before trying to render new CM');return}if(!document.body||!document.body.contains(C)){console.log('waiting for consentContainer to be added to DOM before trying to render new CM');return}var t=Object.fromEntries(new URL(n).searchParams.entries());t.cmType=e.isPro?'PRO':'ADV';window.TrustArcConsentManager.renderDirectEmbed(C,t)}catch(e){truste.eu.sendclosereport=!1;truste.eu.prefclose&&truste.eu.prefclose();console.error('Error rendering Consent Manager:',e)}}truste.util.tryRenderConsentManager=G;if(!T()){var U=document.createElement('script');U.src=k;U.type='module';U.onload=function(){G()};U.onerror=function(e){truste.eu.sendclosereport=!1;truste.eu.prefclose();console.error('Failed to load Consent Manager script:',e)};document.head.appendChild(U)}truste.eu.runOnReady(function(){if(e.isPro){self.document.body.appendChild(v);if(_){self.document.body.appendChild(_);_.appendChild(h)}else self.document.body.appendChild(h);h.appendChild(b);b.appendChild(y);b.appendChild(C);G()}else if(i)s&&G();else{self.document.body.appendChild(v);if(_){self.document.body.appendChild(_);_.appendChild(h);_.appendChild(y)}else{self.document.body.appendChild(h);self.document.body.appendChild(y)}h.appendChild(b);b.appendChild(y);b.appendChild(C);G()}try{for(var r=self.document.getElementsByTagName('object'),n=r.length;n-- >0;){var u=r[n];u&&(u.className+=' truste_hidden')}}catch(e){}e.isPro||f||e.hideCloseButtonEnabled||truste.eu.addCloseButton(e,'cm',t);truste.util.addListener(self.document,'focus',function(e){var t=self.document.getElementById(truste.eu.popdiv3);if(t&&!t.contains(e.target)){e.stopPropagation();t.focus()}});e.isPro||self.location.hash&&self.sessionStorage.setItem('oldHash',self.location.hash);e.feat.noscrolltop||self.scrollTo(0,0);truste.eu._dispatchEvent('open');truste.util.fireCustomEvent('truste-iframe-open',{});truste.eu.gpp&&truste.eu.gpp.updateCmpDisplayStatus('visible');e.isPro&&w(M)})};truste.eu.addIRMCloseButton=function(e){if(e&&'object'==typeof e){var t=self.document.getElementById(truste.eu.popdiv3_irm);if(t){var r='closebtn-irm-id'+Math.random();e.irmClosebtnid=r;var s=self.document.createElement('div');s.id=r;s.style.cursor='pointer';s.style.position='absolute';s.style.top='12px';s.style.right='12px';s.style.zIndex='9999';s.tabIndex=1;s.setAttribute('aria-label','close button');s.setAttribute('role','button');s.className='truste-close-button';var i=self.document.createElement('style');i.setAttribute('type','text/css');i.innerText='.truste-close-button:focus { outline: #80B4FD solid 2px !important; }';document.head.insertBefore(i,document.head.firstChild);var n=e.closeButtonUrl||e.assetServerUrl+'ic-close.svg',u=document.createElement('img');u.setAttribute('alt','close button');u.src=n;u.style.border='0';var o=document.createElement('a');o.addEventListener('click',truste.eu.prefclose_irm);o.appendChild(u);s.appendChild(o);s.addEventListener('keydown',function(e){e||(e=window.event);var r=e.which||e.keyCode;if(9!=r||e.shiftKey){if(13==r||32==r){e.preventDefault?e.preventDefault():e.returnValue=!1;(s.firstElementChild||s.children[0]).click()}}else{e.preventDefault?e.preventDefault():e.returnValue=!1;t&&t.focus()}});t.appendChild(s);truste.util.trace('Adding the IRM close button')}}};truste.eu.irmClickListener=function(){var e=truste.eu.bindMap;if(!(e instanceof Object))return truste.eu.error('IRM click listener was called but bindings are unavailable');truste.eu.storeInvoker&&truste.eu.storeInvoker();truste.eu.irmView(e);return'irm'};truste.eu.irmView=function(e){truste.util.trace('opening IRM iframe');e.flags.irmLandingPageReached=!1;e.flags.submittedIRM=!1;truste.eu.popdiv_irm=('pop-div-irm'+Math.random()).replace('.','');truste.eu.popdiv2_irm=('pop-div2-irm'+Math.random()).replace('.','');truste.eu.popdiv3_irm=('pop-div3-irm'+Math.random()).replace('.','');truste.eu.popframe_irm=('pop-frame-irm'+Math.random()).replace('.','');truste.eu.outerdiv_irm=('pop-outerdiv-irm'+Math.random()).replace('.','');var t,r,s,i,n,u=e.IRMIntegrationURL,o=!!self.document.getElementById('truste-consent-iframe-irm');if(!o){truste.eu.createIRMViewStyle(e);var a=2*truste.eu.findHighestZIndex('div');(t=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv_irm);t.className='truste_irm_overlay';t.style.zIndex=Math.min(2147483646,a+1e6);if(e.outerdiv||e.isPro){(r=self.document.createElement('div')).id=truste.eu.outerdiv_irm;r.className='truste_irm_outerdiv';r.style.zIndex=Math.min(2147483647,a+2e6)}(s=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv2_irm);s.className='truste_irm_box_overlay';truste.eu.applyCSS&&truste.eu.applyCSS(e.styles.box_overlay,s);(i=self.document.createElement('div')).setAttribute('id',truste.eu.popdiv3_irm);i.className='truste_irm_box_overlay_inner';e.isPro||(i.tabIndex='1');(n=self.document.createElement('img')).className='truste_irm_box_overlay_border';n.setAttribute('alt','')}var l=self.document.getElementById('truste-consent-iframe-irm')||self.document.createElement('iframe');l.src=u;if(o)truste.eu.popframe_irm='truste-consent-iframe-irm';else{l.id=truste.eu.popframe_irm;l.tabIndex='0';l.scrolling='yes';l.className='truste_irm_popframe';l.title='Identity Resolution'}truste.eu.iframe_irm=l;truste.eu.runOnReady(function(){if(!o){self.document.body.appendChild(t);if(r){self.document.body.appendChild(r);r.appendChild(s)}else self.document.body.appendChild(s);s.appendChild(i);i.appendChild(n);i.appendChild(l)}try{for(var u=self.document.getElementsByTagName('object'),a=u.length;a-- >0;){var c=u[a];c&&(c.className+=' truste_hidden')}}catch(e){truste.util.trace('error adding truste_hidden to class names',e)}e.isPro?truste.eu.addIRMCloseButton(e):truste.eu.addCloseButton(e,'irm');truste.util.addListener(self.document,'focus',function(e){var t=self.document.getElementById(truste.eu.popdiv3_irm);if(t&&!t.contains(e.target)){e.stopPropagation();t.focus()}});e.feat.noscrolltop||self.scrollTo(0,0);e.isPro||truste.eu._dispatchEvent('open');truste.util.fireCustomEvent('truste-iframe-open',{});truste.eu.gpp&&truste.eu.gpp.updateCmpDisplayStatus('visible')})};truste.eu.closeIrmView=function(){try{var e=self.document.getElementById(truste.eu.popdiv_irm),t=e&&self.document.getElementById(truste.eu.popdiv2_irm);if(e&&t){e.parentNode.removeChild(e);t.parentNode.removeChild(t);var r=self.document.getElementById(truste.eu.outerdiv_irm);r&&r.parentNode.removeChild(r);var s=truste.eu.bindMap;if(s.isPro)if(s.flags.irmLandingPageReached){truste.util.trace('showing IRM');truste.eu.irmView(s)}else{truste.util.trace('closing IRM iframe');truste.eu.restoreInvokerFocus()}else{if(s.flags.irmLandingPageReached){truste.eu.showCM(!0);truste.eu.toggleCloseButton(s,'true');truste.util.trace('showing IRM')}else truste.eu.prefclose(!1);truste.eu.removeHidden();truste.util.trace('closing IRM iframe')}return!0}}catch(e){(truste.eu.error||truste.util.trace)('error in closeIrmView',e)}return!1};truste.eu.prefclose_irm=function(){var e=truste.eu.closeIrmView();e&&truste.eu._dispatchEvent('close');return e};truste.eu.prefclosebutton_irm=function(){return truste.eu.prefclose_irm()};truste.eu.createIRMViewStyle=function(e){if(e.isPro){var t='.truste_irm_overlay{display:block;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:2147483646;}.truste_irm_outerdiv{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2147483647;}.truste_irm_box_overlay{position:absolute;top:0;margin-top:30px;background:#fff;max-width:'+(e.feat&&e.feat.irmWidth||710)+'px;width:80%;height:'+(e.feat&&e.feat.irmHeight||833)+'px;border-radius:4px;overflow:hidden;}.truste_irm_box_overlay_inner{width:100%;height:100%;position:relative;}.truste_irm_box_overlay_border{display:none;}.truste_irm_popframe{width:100%;height:100%;border:none;display:block;}.truste_visibility_visible{visibility:visible;}.truste_visibility_hidden{visibility:hidden;}';if(e.styles){e.styles.overlay&&(t+=truste.eu._irmStyleObjToString('.truste_irm_overlay',e.styles.overlay));e.styles.inner_iframe&&(t+=truste.eu._irmStyleObjToString('.truste_irm_popframe',e.styles.inner_iframe))}var r=self.document.createElement('style');r.setAttribute('type','text/css');var s=self.document.querySelector('[nonce]');s&&r.setAttribute('nonce',s.nonce||s.getAttribute('nonce'));r.innerText=t;self.document.head.appendChild(r)}else{var i=self.document.documentElement,n=2*truste.eu.findHighestZIndex('div'),u=Math.min(2147483647,n+2e6),o=' ';e.width&&(o='max-width: '+e.irmWidth+'px;');i.style.setProperty('--truste-box-overlay-margin-left','auto');i.style.setProperty('--truste-box-overlay-inner-height','100%');i.style.setProperty('--truste-popframe-height','100%');var a='.truste_irm_overlay {background-color: #000;opacity: 0.4;position: fixed;z-index: '+Math.min(2147483646,n+1e6)+';width: 100%;height: 100%;top: 0px;left: 0px;overflow: hidden;filter: Alpha(Opacity: 80);';if(e.styles.overlay)for(var l in e.styles.overlay)a+=l+': '+e.styles.overlay[l]+';';a+='}';var c='.truste_irm_box_overlay {position: absolute;z-index:'+u+';top: 0px;left: 0px;bottom: 0px;right: 0px;border-radius: 5px;padding: 10px;width: 80%;'+o+'height: '+e.irmHeight+'px;min-width: 220px;margin: 20px auto 20px var(--truste-box-overlay-margin-left);box-sizing: content-box;';if(e.styles.box_overlay)for(var l in e.styles.box_overlay)c+=l+': '+e.styles.box_overlay[l]+';';c+='}';var d='.truste_irm_box_overlay_border {display: block;background: #000;opacity: 0.3;width: calc(100% + 20px);height: calc(100% + 20px);position: absolute;top: -10px;left: -10px;';if(e.styles.box_overlay_border)for(var l in e.styles.box_overlay_border)d+=l+': '+e.styles.box_overlay_border[l]+';';d+='}';var p='.truste_irm_outerdiv {width: 100%;height: 100%;overflow: scroll;position: absolute;top: 0;left: 0;z-index: '+u+';-webkit-overflow-scrolling: touch;';if(e.styles.outerdiv)for(var l in e.styles.outerdiv)p+=l+': '+e.styles.outerdiv[l]+';';p+='}';var f='.truste_irm_popframe {border: 0px;border-radius: 2px;overflow: scroll;background: #fff;display: block;position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;';if(e.styles.inner_iframe)for(var l in e.styles.inner_iframe)f+=l+': '+e.styles.inner_iframe[l]+';';var m=a+c+'.truste_irm_box_overlay_inner {position: relative;width: 100%;height: 100%;outline: none;}'+d+p+(f+='}'),g=document.createElement('style');g.setAttribute('type','text/css');var v=document.querySelector('[nonce]');v&&g.setAttribute('nonce',v.nonce||v.getAttribute('nonce'));g.innerText=m;document.head.insertBefore(g,document.head.firstChild);truste.eu.createCommonStyle()}};truste.eu._irmStyleObjToString=function(e,t){var r=e+'{';for(var s in t)r+=s+':'+t[s]+';';return r+'}'};truste.eu.findHighestZIndex=function(e){for(var t,r=self.document.getElementsByTagName(e||'*'),s=0,i=0;i<r.length;i++,t=0)(self.getComputedStyle||r[i].style.position&&'static'!=r[i].style.position)&&(t=parseInt(truste.util.getStyle(r[i],'z-index')))>s&&(s=t);return s};truste.eu.showCM=function(e){try{var t=self.document.getElementById(truste.eu.popdiv),r=self.document.getElementById(truste.eu.popdiv2);if(!t||!r)return!1;if(e&&'false'!=e){t.classList.remove('truste_visibility_hidden');r.classList.remove('truste_visibility_hidden');t.classList.add('truste_visibility_visible');r.classList.add('truste_visibility_visible')}else{t.classList.remove('truste_visibility_visible');r.classList.remove('truste_visibility_visible');t.classList.add('truste_visibility_hidden');r.classList.add('truste_visibility_hidden')}truste.eu.gpp&&truste.eu.gpp.updateCmpDisplayStatus(e?'visible':'hidden');return!0}catch(e){(truste.eu.error||truste.util.trace)('Error showing CM',e)}return!1};truste.eu.irm={};truste.eu.irm.make=function(e){if(!truste.eu.irmLink){var t=truste.eu.bindMap,r=truste.eu.irmLink=self.document.createElement('a');r.addEventListener('click',e);r.id=truste.eu.irmId=('irm-id-'+Math.random()).replace('.','');r.tabIndex='0';t.feat.enableHasPopUp&&r.setAttribute('aria-haspopup','dialog');t.feat.enableIconRole&&r.setAttribute('role',t.iconRole?t.iconRole:'link');t.locale&&r.setAttribute('lang',t.locale.replace('_','-'));r.addEventListener('keydown',function(e){e||(e=window.event);var t=e.which||e.keyCode;if(13==t||32==t){e.preventDefault?e.preventDefault():e.returnValue=!1;r.click()}});r.style.cursor='pointer';r.innerHTML=t.irmText||t.feat.irmText||(t.isPro?'Do Not Sell or Share My Personal Information':'')}};truste.eu.irm.initialize=function(){var e=truste.eu.bindMap.irmContainerId||'teconsent';(truste.util.waitForElem||truste.util.executeOnCondition)(function(){return self.document.getElementById(e)},function(t){truste.eu.irmLinkContainer=truste.eu.irmLinkContainer||t||self.document.getElementById(e);truste.eu.irm.show()},250,3e4)};truste.eu.irm.show=function(){var e=truste.eu.irmLink,t=truste.eu.bindMap,r=truste.eu.irmLinkContainer;if(r&&e){r.appendChild(e);r.style.display='function'==typeof truste.util.getDisplayProperty?truste.util.getDisplayProperty(r):'block';t.feat.enableContainerRole&&r.setAttribute('role',t.containerRole?t.containerRole:'complementary')}};truste.eu.irm.optout=function(){var e=truste.eu.bindMap;if(e.feat.enableIrmAutoOptOut){truste.util.trace('irm form submitted. beginning optout');e.flags=e.flags||{};e.flags.submittedIRM=truste.eu.submittedIRM=!0;truste.eu.toggleCloseButton(e,'false');'function'==typeof truste.util.optoutRequired?truste.util.optoutRequired():truste.eu.autoOptout('0',!0);setTimeout(function(){e.flags.irmLandingPageReached||truste.eu.irmLandingPageReached||truste.eu.toggleCloseButton(e,'true')},5e3)}else truste.util.trace('irm form submitted. Auto opt out disabled')};truste.eu._queryShadowDOM=function(e,t){return truste.eu._queryShadowDOMAny(e,[t])};truste.eu._queryShadowDOMAny=function(e,t){if(!(t=t.filter(function(e,r){return e&&t.indexOf(e)===r})).length)return null;var r=null,s=t.length,i=function(e,t){try{return e===self.document?e.getElementById(t):e.querySelector('#'+(self.CSS&&self.CSS.escape?self.CSS.escape(t):t))}catch(e){return null}},n=function(e){for(var u=0;u<s;u++){var o=i(e,t[u]);if(o){r=o;s=u;if(0===u)return!0;break}}for(var a=e.querySelectorAll('*'),l=0;l<a.length;l++)if(a[l].shadowRoot&&n(a[l].shadowRoot))return!0;return!1};n(e);return r};truste.eu.icon={};truste.eu.icon.make=function(e){if(!truste.eu.prefButton){var t=truste.eu.bindMap,r=truste.eu.prefButton=self.document.createElement('a'),s=t.isPro||'true'==t.text;t.feat.enableIconRole&&r.setAttribute('role',t.iconRole?t.iconRole:s?'link':'button');r.addEventListener('click',e);r.id=truste.eu.iconid=('icon-id'+Math.random()).replace('.','');r.tabIndex='0';t.locale&&r.setAttribute('lang',t.locale.replace('_','-'));t.feat.enableHasPopUp&&r.setAttribute('aria-haspopup','dialog');t.feat.enableIconLabel&&r.setAttribute('aria-label',t.teconsentChildAriaLabel);r.addEventListener('keydown',function(e){e||(e=window.event);var t=e.which||e.keyCode;if(13==t||32==t){e.preventDefault?e.preventDefault():e.returnValue=!1;r.click()}});truste.eu.createIconStyle();r.style.cursor='pointer';if(s&&(t.icon||t.isPro)){r.classList.add('truste_cursor_pointer');'function'==typeof truste.eu.isAccessibleLayout&&truste.eu.isAccessibleLayout(t.prefmgrUrl)&&r.classList.add('truste_accessible_link');r.innerHTML=t.icon}else{var i=self.document.createElement('img');i.classList.add('truste_border_none');i.classList.add('truste_cursor_pointer');i.onerror=function(){truste.eu.icon.make()};r.appendChild(i);var n=truste.eu.icon.assetBase()+(t.cookiePreferenceIcon||t.language+'-cookiepreferencestext.png');if(r.firstChild.src)if('en'!=t.language&&r.firstChild.src==n)r.firstChild.src=truste.eu.icon.assetBase()+t.cookiePreferenceIcon.substring(3);else{r.classList.add('truste_cursor_pointer');r.innerHTML=t.icon}else{r.firstChild.src=n;r.firstChild.alt=t.icon}}}};truste.eu.icon.assetBase=function(){var e=truste.eu.bindMap;return e.assetServerUrl||e.assetServerURL||''};truste.eu.icon.show=function(){var e=truste.eu.prefButton,t=truste.eu.bindMap,r=truste.eu.caIcon;if(r){r.appendChild(e);r.setAttribute('consent',t.prefCookie);t.feat.enableContainerLabel&&r.setAttribute('aria-label','Open Cookie Preferences Modal');if(!t.isPro){truste.eu.createCaIconStyle(r);'eu'==t.behaviorManager&&'expressed'!=t.behavior||r.classList.add('truste_caIcon_display')}t.feat.enableContainerRole&&r.setAttribute('role',t.containerRole?t.containerRole:'complementary')}else truste.eu.jsNode1&&truste.eu.jsNode1.parentNode.insertBefore(e,truste.eu.jsNode1);truste.eu.icon.gpcMessage()};truste.eu.icon.gpcMessage=function(){var e=truste.eu.bindMap,t=truste.eu.caIcon,r=e.feat.gpcMessageEnabled||e.feat.linkGpcRecognitionNoticeEnabled,s=self.document.getElementById('truste-gpc-icon');if(t&&r&&truste.util.isGPCHonored()){if(s)return;var i=void 0!==e.customLinkGpcRecognitionText?e.customLinkGpcRecognitionText:e.gpcMessageTooltip,n=self.document.createElement('img');n.id='truste-gpc-icon';n.src=e.linkIconUrl||truste.eu.icon.assetBase()+'gpc-logo-small.svg';n.alt=i;n.title=i;n.style.cursor='pointer';if(e.feat.linkGpcRecognitionNoticeEnabled){n.style.marginLeft='5px';n.style.height='12px';n.style.width='12px'}t.appendChild(n)}else s&&s.remove()};truste.eu.icon.initialize=function(){var e=truste.eu.bindMap,t=function(){var t=self.document.getElementById(e.containerId)||self.document.getElementById('teconsent');if(t)return t;try{return truste.eu._queryShadowDOMAny(self.document,[e.containerId,'teconsent'])}catch(e){truste.util.trace('shadow-root container lookup failed, waiting for the container instead',e);return null}};truste.eu.caIcon=t();truste.eu.caIcon?truste.eu.icon.show():(truste.util.waitForElem||truste.util.executeOnCondition)(t,function(e){truste.eu.caIcon=truste.eu.caIcon||e||t();truste.eu.icon.show()},250,6e4)};truste.eu.createIconStyle=function(){var e=self.document.createElement('style');e.setAttribute('type','text/css');var t=self.document.querySelector('[nonce]');t&&e.setAttribute('nonce',t.nonce||t.getAttribute('nonce'));e.innerText='.truste_cursor_pointer {cursor: pointer;}.truste_border_none {border: none;}';self.document.head.insertBefore(e,self.document.head.firstChild)};truste.eu.createCaIconStyle=function(e){var t='.truste_caIcon_display {display: '+('function'==typeof truste.util.getDisplayProperty?truste.util.getDisplayProperty(e):'block')+' !important;}',r=self.document.createElement('style');r.setAttribute('type','text/css');var s=self.document.querySelector('[nonce]');s&&r.setAttribute('nonce',s.nonce||s.getAttribute('nonce'));r.innerText=t;self.document.head.insertBefore(r,self.document.head.firstChild)};truste.eu.isGPCDNTEvent=function(){var e=truste.eu.bindMap;return e.feat.isGPCOptoutEvent||e.feat.isDNTOptoutEvent};truste.eu.resetGpcDnt=function(){var e=truste.eu.bindMap;if(truste.eu.isGPCDNTEvent()){e.feat.isGPCOptoutEvent=!1;e.feat.isDNTOptoutEvent=!1}};truste.eu.gpcDntAutoOptOut=function(){if(truste.util.isGpc()||truste.util.isDnt()){var e=truste.eu.bindMap,t=!!e.isPro,r='function'==typeof truste.eu.dropAutoOptOutCookies;if(!t&&e.feat.ccpaApplies&&!e.feat.gpp.gppApplies){e.gpcOptedIn='0';e.dntOptedIn='0'}var s='';if(e.feat.gpc){s=e.gpcOptedIn;e.feat.gpcOvr&&null!=e.prefCookie&&''!==e.prefCookie&&(s=truste.util.findCommonIntegers(s,e.prefCookie+''));e.feat.isGPCOptoutEvent=!0}else{s=e.dntOptedIn;e.feat.isDNTOptoutEvent=!0}if(e.feat.isGPCOptoutEvent||e.feat.isDNTOptoutEvent){r||truste.util.sendAnalytics(16);e.feat.gpcdntflag=1}if(t||!truste.eu.cpra.shouldShowFinProg()||truste.util.isAcceptAll(s)){var i=truste.util.isAutoblock()&&trustarc.ccm.cab.getInfo().sourceConsent,n='dnt'==i||'gpc'==i;if(n){truste.util.trace('sourceConsent : ['+i+'] reset');trustarc.ccm.cab.resetSourceConsent()}if(r)truste.eu.autoOptout(s,n);else{if(''===s)if(e.feat.requiredSwitchEnabled){e.feat.isGPCOptoutEvent&&(e.gpcOptedIn='');e.feat.isDNTOptoutEvent&&(e.dntOptedIn='');truste.util.createPreferenceFromCookieValue('',n)}else{e.feat.isGPCOptoutEvent&&(e.gpcOptedIn='0');e.feat.isDNTOptoutEvent&&(e.dntOptedIn='0');truste.util.consentRequiredlevel(n)}else{e.categoriesIndexesFromReferer&&(s=truste.util.cookieConsentValue(s));truste.util.createPreferenceFromCookieValue(s,n)}truste.util.callCMEndpoint(truste.util.buildOptOutDomainsPath(),null,function(e){var t=e.responseText;null!==t&&JSON.parse(t)&&truste.util.setStorage(truste.eu.COOKIE_CATEGORY_NAME,t,!1)},!1,s);e.prefCookie=s}}else{truste.bn&&truste.bn.handleBannerDone&&truste.bn.handleBannerDone();truste.eu.clickListener(7,!0,{cpraConsent:s,cpraSource:e.feat.isGPCOptoutEvent?'gpc':'dnt'})}}};truste.util=truste.util||{};truste.util.getStorage=function(e,t){var r=truste.eu&&truste.eu.bindMap,s=null;r&&r.feat.appendCmidEnabled&&(s=truste.util._getStorage(r.cmId+'_'+e,t));null==s&&(s=truste.util._getStorage(e,t));return s};truste.util._getStorage=function(e,t){var r=null;try{var s=t&&self.sessionStorage||self.localStorage;r=s.getItem?s.getItem(e):s[e]}catch(e){truste.util.trace('Current browser does not support HTML5 Local Storage')}return r&&truste.util.parseJSON(r)||null};truste.util=truste.util||{};truste.util.readCookie=function(e,t){var r=truste.eu&&truste.eu.bindMap,s=null;r&&r.cmId&&(s=truste.util._readCookie(r.cmId+'_'+e,t));null==s&&(s=truste.util._readCookie(e,t));return s};truste.util._readCookie=function(e,t){var r=null;try{var s=new RegExp('(^|\\s)'+e.replace('.','\\.')+'\\s*=\\s*([^;]*)').exec(self.document.cookie);s&&s.length>2&&(r=s[2])}catch(e){truste.util.trace(e.message,e.stack)}if(!r&&t&&truste.util._readCookieStorage){if(/MSIE|Trident|Edge/.test(window.navigator.userAgent)){var i='notice_test',n='nt_'+(new Date).getTime();truste.util._createCookie(i,n,null,!1);truste.util._readCookie(i,!1)==n?self.localStorage.removeItem(truste.util.COOKIE_NS+e):r=truste.util._readCookieStorage(e);truste.util._createCookie(i,'','Thu, 01 Jan 1970 00:00:01 GMT',!1)}else r=truste.util._readCookieStorage(e)}var u=truste.util.cookie?truste.util.cookie.convert(r):r;if(u!==r){var o=truste.util.COOKIE_NS+e,a=truste.util.getStorage&&truste.util.getStorage(o,!1);if(a){var l=new Date(a.expires);l>new Date&&truste.util._createCookie(e,a.value,l.toUTCString(),!0)}else truste.util._createCookie(e,u);r=u}return r};truste.util.createCookie=function(e,t,r,s,i){var n=truste.eu&&truste.eu.bindMap,u=n&&n.cmId&&n.feat.appendCmidEnabled?n.cmId+'_'+e:e;truste.util._removeCookie(e);truste.util._removeCookie(u);truste.util._createCookie(u,t,r,s,i)};truste.util._createCookie=function(e,t,r,s,i){truste.util.cookie&&!i&&(t=truste.util.cookie.convert(t));var n,u=truste.eu&&truste.eu.bindMap||{},o='; expires=';if(r)'0'==r?o='':o+=r;else{(n=new Date).setDate(n.getDate()+u.cookieExpiry);o+=n.toUTCString()}s&&truste.util._createCookieStorage&&truste.util._createCookieStorage(e,t,r);var a=self.location.hostname,l=!!a.match(/^\d{0,3}\.\d{0,3}\.\d{0,3}\.\d{0,3}$/)||'localhost'==a,c=a.replace(/^www\./,''),d=l||u.feat&&u.feat.keepWww?a:c,p='https:'==self.location.protocol?' Secure;':'',f=u.feat&&u.feat.samesite?u.feat.samesite:u.isPro&&p?'None':'Lax',m=(truste.util.samesite&&!truste.util.samesite(navigator.userAgent)?'':' SameSite='+f+';')+p;if(void 0!==truste.eu.pcookie&&null!=truste.eu.pcookie||truste.eu.noticeLP&&void 0!==truste.eu.noticeLP.pcookie){document.cookie=e+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;domain='+(l?'':'.')+d.replace(/^\./,'')+';'+m;if(!u.topLevelDomain){for(var g=0,v=d,h=v.split('.'),b='_gd'+(new Date).getTime();g<h.length-1&&-1==document.cookie.indexOf(b+'='+b);){v=h.slice(-1-++g).join('.');document.cookie=b+'='+b+';domain='+v+';'+m}document.cookie=b+'=;domain='+v+';expires=Thu, 01 Jan 1970 00:00:01 GMT';u.topLevelDomain=v}d=u.topLevelDomain}self.document.cookie=e+'='+t+o+'; path=/;domain='+(l?'':'.')+d.replace(/^\./,'')+';'+m};truste.util._removeCookie=function(e){truste.util._createCookie(e,'','Thu, 01 Jan 1970 00:00:01 GMT',!1);truste.util._removeStorage&&truste.util._removeStorage(truste.util.COOKIE_NS+e)};truste.util.createCookieStorage=function(){return truste.util._createCookieStorage.apply(truste.util,arguments)};truste.util.transformJSON=function(e){e&&'object'==typeof e||truste.util.trace('Invalid input data');var t={};for(var[r,s]of Object.entries(e))if('version'!==r){var i=s.value,n=!1;for(var u in s.domains)if(Object.hasOwn(s.domains,u)&&('1'===s.domains[u]||'2'===s.domains[u])){n=!0;break}var o=Object.entries(s.domains).filter(([e,t])=>n?'0'===t:'1'===t||'2'===t).map(([e])=>e);o.length>0&&(t[i]={d:o})}(t=JSON.stringify(t))&&new Blob([t]).size>4096&&(t='skip');return t};truste.util.isGpcFlow=function(){var e=truste.eu.bindMap;return'function'==typeof truste.util.isConsentCenter&&truste.eu.noticeLP&&truste.util.isConsentCenter()||e.feat.gpcOvr?'true'!=truste.util.readCookie(truste.eu.COOKIE_GPC_ISHONORED,!0):!e.prefCookie};truste.util.isGPC=function(){var e=truste.eu.bindMap;return!(!e.feat.gpc||e.feat.iab||!truste.util.isGpcFlow())};truste.util.isGpc=function(){return truste.util.isGPC()};truste.util.isGPCHonored=function(){var e=truste.eu.bindMap;return!(!e.feat.gpc||e.feat.iab)&&(e.feat.gpcOvr?'true'===String(truste.util.readCookie(truste.eu.COOKIE_GPC_ISHONORED,!0))&&'true'!==String(truste.util.readCookie(truste.eu.COOKIE_GPC_PREF_OVERRIDDEN,!0)):e.gpcOptedIn?.replace(/\|/g,',')===e.prefCookie?.replace(/\|/g,','))};truste.util.isDNT=function(){var e=truste.eu.bindMap;return!(!e.feat.dnt||e.feat.iab||e.prefCookie)};truste.util.isDnt=function(){return truste.util.isDNT()};truste.util=truste.util||{};truste.util.getCmIdentifier=function(e){return(e=e||truste.eu.bindMap||{}).domain||e.cmId};function B(){truste=self.truste||{};truste.eu=truste.eu||{};truste.eu.version='62bb0e7';truste.eu.COOKIE_DAX_NAME='notice_dax_signature';truste.eu.COOKIE_GDPR_PREF_NAME='notice_gdpr_prefs';truste.eu.COOKIE_PREF_NAME='notice_preferences';truste.eu.COOKIE_CATEGORY_NAME='optout_domains';truste.eu.COOKIE_REPOP='notice_poptime';truste.eu.COOKIE_UID='TAconsentID';truste.eu.COOKIE_GPC_ISHONORED='gpcishonored';truste.eu.COOKIE_GPC_PREF_OVERRIDDEN='gpcprefoverridden';truste.eu.COOKIE_NOTICE_LANGUAGE='notice_language';truste.eu.CMAPI_BL='cmapi_gtm_bl';truste.eu.CMAPI_PRIVACY='cmapi_cookie_privacy';truste.util=truste.util||{};truste.util.isSafePropertyName=function(e){return!['__proto__','constructor','prototype'].includes(e)};truste.util.getIntValue=function(e){e=parseInt(e,10);return isNaN(e)?null:e};truste.util.isAscending=function(e){return e.every(function(t,r){return 0===r||t>=e[r-1]})};truste.util.trace=function(){if(self.console&&console.log&&(this.debug||!1!==this.debug&&(self.location.hostname.indexOf('.')<0||self.location.hostname.indexOf('.truste-svc.net')>0))){console.log.apply&&console.log.apply(console,arguments);return!0}return!1};truste.util.sendMessage=function e(t,r){var s;(e._imgrep||(e._imgrep=[])).push(s=new Image(1,1));s.onerror=e._errorCB||(e._errorCB=function(e){var t='Error making GET request to: '+this.src;'function'==typeof truste.util.error?truste.util.error(t):truste.util.trace(t)});s.referrerPolicy='origin-when-cross-origin';s.src=r.replace(/^.{3,5}:/,self.location.protocol).replace(/\??$/,'?')+t};truste.util.getStyle=function(e,t){if('object'!=typeof e||!t)return null;try{return e.currentStyle?e.currentStyle[t]:self.getComputedStyle?self.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}catch(e){return null}};truste.util.readyState=function e(t){return e.status=t&&'load'==t.type?'complete':self.document.readyState||e.status||'interactive'};self.addEventListener('load',truste.util.readyState);self.document.addEventListener('readystatechange',truste.util.readyState);truste.util.calculateCategoriesInt=function(e){return e.reduce((e,t)=>e+(1<<t),0)};truste.util.findCommonIntegers=function(e,t){var r=e.indexOf('|')>-1?'|':',',s=new Set(e.split(/[|,]/).map(Number)),i=new Set(t.split(/[|,]/).map(Number));return Array.from(s).filter(function(e){return i.has(e)}).join(r)};truste.util.isAutoblock=function(){return!!(truste.eu.bindMap.feat.autoblock&&'undefined'!=typeof trustarc&&trustarc.ccm&&trustarc.ccm.cab)};truste.util.autoblockConsent=function(e){'function'==typeof trustarc.ccm.cab.submitConsent&&('loading'===truste.util.readyState()?self.addEventListener('DOMContentLoaded',function(t){trustarc.ccm.cab.submitConsent(e)}):trustarc.ccm.cab.submitConsent(e))};truste.util.decodeHtml=function(e){const t=document.createElement('textarea');t.innerHTML=e;return t.value};truste.util.getJSON=truste.util.getJSON||function(e){if(self.JSON&&!(self.JSON.org||self.JSON.license||self.JSON.copyright))return self.JSON.stringify(e);if(e instanceof Array){var t='[';if(e.length){t+=truste.util.getJSON(e[0]);for(var r=1;r<e.length;r++)t+=','+truste.util.getJSON(e[r])}return t+']'}if('string'==typeof e)return'"'+e+'"';if('object'==typeof e&&null!==e){var s=!1;t='{';for(var i in e)if(Object.hasOwn(e,i)){t+=(s?',':'')+'"'+i+'":'+truste.util.getJSON(e[i]);s=!0}return t+'}'}return void 0===e?void 0:e+''};truste.util.addListener=function(e,t,r,s,i){i=!!i;e&&'string'==typeof t&&r instanceof Function&&(e.addEventListener?e.addEventListener(t,r,i):s&&r())};truste.util.addScriptElement=function(e,t,r,s,i){if(!e){truste.util.trace('ERROR adding script element to page, src is null');return null}var n=null;if('string'==typeof e){(n=(r&&r.ownerDocument||self.document).createElement('SCRIPT')).src=e;var u;(u=document.querySelector('[nonce]'))&&n.setAttribute('nonce',u.nonce||u.getAttribute('nonce'))}else{if(!e||'script'!=(e.nodeName+'').toLowerCase()){truste.util.trace('ERROR Object passed into addSCriptElement is not a ScriptElement');return null}if(!(n=e).src){truste.util.trace('ERROR Object passed into addSCriptElement does not have required \'src\' attribute');return null}}i&&'string'==typeof i.valueOf()&&n.setAttribute('type',i);s&&n.setAttribute('async','async');n.setAttribute('importance','high');(u=document.querySelector('[nonce]'))&&n.setAttribute('nonce',u.nonce||u.getAttribute('nonce'));n.onload=n.onreadystatechange=n.onerror=function(r){var s;if(r&&'error'==r.type){truste.util.trace('ERROR Script was unable to load: '+e);s=2}else(r&&'load'==r.type||'loaded'==n.readyState)&&(s=1);if(s){n.onload=n.onreadystatechange=n.onerror=null;t instanceof Function&&t(n,s)}};(r&&r.appendChild&&r||self.document.getElementsByTagName('body')[0]||self.document.getElementsByTagName('head')[0]).appendChild(n);return n};truste.util.isConsentCenter=function(){var e=truste.eu.noticeLP;return!!(e&&e.userID&&truste.eu.bindMap.feat.enableStoredConsent)};truste.util.isConsentResolved=function(){var e=truste.eu.bindMap;return(!e.feat.crossDomain||e.flags.isConsentRetrieved)&&(!truste.util.isConsentCenter()||e.feat.isConsentCenterInitialized)};truste.util.dropGPCIsHonoredCookie=function(){truste.eu.bindMap.feat.isGPCOptoutEvent&&truste.util.createCookie(truste.eu.COOKIE_GPC_ISHONORED,!0,null,!0)};truste.util.grantDeny=function(e){return e?'granted':'denied'};truste.util.submitPrefPostMessage=function(e,t,r,s,i){if(truste.eu&&truste.eu.actmessage){var n=truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify,u={source:'preference_manager',message:'submit_preferences',data:{gpcDnt:i,value:e,skipAutoblock:t,fromUserConsentStorage:r,userData:s,expires:s&&new Date(parseInt(s.cookie_expiry)).toGMTString()}};truste.eu.actmessage(u);u.data._skipMessage=!0;window.PREF_MGR_API_DEBUG&&PREF_MGR_API_DEBUG.authorities.push(window.location.hostname);window.postMessage&&window.postMessage(n(u),'*')}};truste.util.httpRequest=function(e,t,r,s){var i=new XMLHttpRequest;i.onload=function(){var e;if(200===i.status){e=i.responseText;try{e=JSON.parse(i.responseText)}catch(e){truste.util.trace('Failed to parse http response.')}}else e='';if(!s||!e)return e;s(e.user_preferences,e)};i.open(t,e);i.setRequestHeader('Access-Control-Allow-Origin','*');'POST'===t?i.send(r):i.send()};truste.util.shouldDropRepop=function(){var e=truste.eu&&truste.eu.bindMap,t=e&&e.popTime;if(!t)return!1;var r=(new Date).getTime();return t!=truste.util.readCookie(truste.eu.COOKIE_REPOP,!0)&&r>=t};truste.util.executeOnCondition=function(e,t,r,s){if(e())t();else{var i,n=function(){if(e()){i=clearInterval(i);t()}};i=setInterval(n,r);n();setTimeout(function(){clearInterval(i)},s)}};truste.util.shiftOptoutDomains=function(e,t){if(truste.eu.bindMap.shift){var r=truste.eu.bindMap.shift;for(var s in e){var i=parseInt(e[s].value);isNaN(i)||i>=r&&(e[s].value=(t?i+1:i-1)+'')}}};truste.util.getShiftCookie=function(e,t){if(!truste.eu.bindMap.shift)return e;var r=truste.eu.bindMap.shift,s=truste.eu.bindMap.shiftBy||1,i=e.split(/[,|]/).map(function(e){return parseInt(e)});i.forEach(function(e,i,n){e>=r&&(n[i]=t?e+s:e-s)});var n=e.indexOf(',')>-1?',':'|';return i.join(n)};truste.util.shiftMsgData=function(e){truste.eu.bindMap.shift&&e&&void 0!==e.message&&('send_tracker_list'==e.message?truste.util.shiftOptoutDomains(e.data,!0):'submit_preferences'==e.message&&('string'==typeof e.data?e.data=truste.util.getShiftCookie(e.data,!0):'string'==typeof e.data.value&&(e.data.value=truste.util.getShiftCookie(e.data.value,!0))))};truste.util=truste.util||{};truste.util.getScriptElement=function(e,t,r){'string'==typeof e&&(e=new RegExp(e));'string'==typeof r&&(r=new RegExp(r));if(!(e instanceof RegExp))return null;if(void 0!==r&&!(r instanceof RegExp))return null;for(var s,i,n=self.document.getElementsByTagName('script'),u=n.length;u-- >0&&(i=n[u]);){s=!r||r.test(i.src);if((t||!i.id)&&e.test(i.src)&&s)return i}return null};truste.util.getUniqueID=function(){return'truste_'+Math.random()};truste.util.initParameterMap=function(e,t){'object'==typeof t&&null!==t||(t={});if(e&&'string'==typeof e.src){var r,s=t._url=e.src;if(s=(t._query=s.replace(/^[^;?#]*[;?#]/,'')).replace(/[#;?&]+/g,'&'))for(r=(s=s.split('&')).length;r-- >0;){var i=s[r].split('='),n=i.shift();t[n]||(i.length?t[n]=decodeURIComponent(i.join('=')):t[n]='')}e.id=t.sid=t.sid||truste.util.getUniqueID()}else t._query=t._url='';return t};truste.util.buildConsentRequest=function(e,t,r){var s=truste.eu.bindMap,i=s.prefmgrUrl.split('?'),n=i[0].replace(/\/$/,'')+e,u=i.length>1?i[1]+'&':'';u+='domain='+s.domain;u+='&locale='+s.locale;u+='&behavior='+s.behavior;u+='&country='+s.country;s.state&&(u+='&state='+s.state);null!=t&&(u+='&level='+t);truste.eu.consentUID&&(u+='&uid='+truste.eu.consentUID);s.seedUrl&&(u+='&seedUrl='+s.seedUrl);if(s.feat.isGPCOptoutEvent){u+='&is_gpc='+s.feat.gpc;u+='&consent='+(s.feat.gpcOvr&&r?r:s.gpcOptedIn)}else if(s.feat.isDNTOptoutEvent){u+='&is_dnt='+s.feat.dnt;u+='&consent='+s.dntOptedIn}else if(r){u+='&consent='+r;if('string'==typeof r){u+='&categories='+truste.util.calculateCategoriesInt(r.split(/[,|]/).map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)}))}}u+='&userType='+truste.eu.userType;u+='&session='+truste.eu.session;var o=!1;if(truste.cd?.addCrossDomainParams){var a=truste.cd.addCrossDomainParams(e);u+=a;o=!!a}return{url:n+u,isCrossDomainCall:o}};truste.util.createPreferenceFromCookieValue=function(e,t,r,s,i){truste.util.submitPrefPostMessage(e,t,r,s,i);let n=truste.util.getLowestConsent(e);if(truste.eu?.bindMap?.prefmgrUrl&&!truste.eu?.bindMap?.feat?.ccpaApplies&&n){truste.util.callCMEndpoint('/consent/log?',n,function(){},!0,e)}};truste.util.optoutRequired=function(){truste.util.consentRequiredlevel();truste.util.dropOptoutDomains();truste.eu.bindMap.prefCookie='0'};truste.util=truste.util||{};truste.util.getDefaultStyleProperty=function(e,t){var r=document.createElement(t);document.body.appendChild(r);var s=window.getComputedStyle(r,null)[e];r.parentNode.removeChild(r);return s};truste.util.getDisplayProperty=function(e){var t=window.getComputedStyle(e,null).display;return'none'==t?truste.util.getDefaultStyleProperty('display',e.nodeName):t};truste.util=truste.util||{};truste.util.COOKIE_NS=truste.eu.bindMap.isPro?'truste.cookie.':'truste.eu.cookie.';truste.util.cookie={init:function(e,t,r){t=t||'|_';r=r||', ';if(e){var s=t;t=r;r=s}var i=Object.create(null);t.split('').forEach(function(e,t){i[e]=r[t]});this.replaceChar=i;this.regex=new RegExp(Object.keys(i).map(function(e){return'\\'+e}).join('|'),'g');return this},convert:function(e){var t=this;return e&&('string'==typeof e||e instanceof String)?e.replace(t.regex,function(e){return t.replaceChar[e]}):e}}.init(truste.eu.bindMap.feat.replaceDelimiter);truste.util.getLowestConsent=function(e){return null!=e&&e.length>0?e.slice(Math.max(e.lastIndexOf(','),e.lastIndexOf('|'))+1):null};truste.util.checkConsentFormatValidity=function(e){var t,r=(e+='').split(/[,|]/).map(function(e){return parseInt(e)}),s=truste.eu.bindMap.feat.requiredSwitchEnabled||r.includes(0),i=r[r.length-1];if(truste.eu.bindMap.categoriesIndexesFromReferer){var n=truste.eu.bindMap.categoriesIndexesFromReferer.split('|').map(function(e){return parseInt(e)});t=i<=n[n.length-1]}else t=i<truste.eu.bindMap.categoryCount;return/^[0-9][0-9]?([,|][0-9][0-9]?)*$/.test(e)&&r.length<=20&&truste.util.isAscending(r)&&truste.util.getLowestConsent(e)<=20&&s&&t};truste.util.validConsent=function(e){return!(!truste.eu.bindMap.feat.requiredSwitchEnabled||''!==e)||null!=truste.util.getIntValue(e)&&truste.util.getIntValue(e)>-1&&truste.util.checkConsentFormatValidity(e)};truste.util.buildOptOutDomainsPath=function(){var e=truste.eu.bindMap,t=`/cm/${truste.util.getCmIdentifier(e)}/opt-out/domains?`;if(e.isPro){t+='isPro=true&';e.feat.requiredSwitchEnabled&&(t+='requiredSwitch=true&')}return t};truste.util.callCMEndpoint=function(e,t,r,s,i){var n=truste.eu.bindMap;if(n&&n.prefmgrUrl){var u=truste.util.buildConsentRequest(e,t,i);truste.util.sendConsentRequest(u.url,u.isCrossDomainCall,r,s)}};truste.util.sendConsentRequest=function(e,t,r,s){var i={referrerPolicy:'origin-when-cross-origin',keepalive:!0};!s||t?fetch(e,i).then(function(e){t&&truste.util.fireCustomEvent(e.ok?'trustarc-consent-save-success':'trustarc-consent-save-failed',e.ok?{}:{status:e.status});if(200===e.status&&r)return e.text().then(function(t){r({status:e.status,responseText:t})})}).catch(function(){t&&truste.util.fireCustomEvent('trustarc-consent-save-failed',{error:'network'})}):fetch(e,i).catch(function(){})};truste.util.dropOptoutDomains=function(e,t,r){var s=truste.eu.bindMap;(s.feat.isGPCOptoutEvent||s.feat.isDNTOptoutEvent)&&'function'==typeof truste.eu.dropAutoOptOutCookies&&truste.util.sendAnalytics(16);truste.util.callCMEndpoint(truste.util.buildOptOutDomainsPath(),null,function(e){var i=e.responseText,n=truste.util.parseJSON(i);if(i&&n){truste.util.setStorage(truste.eu.COOKIE_CATEGORY_NAME,s.isPro?i:n,!1,r);t&&t()}},!1,e)};truste.util.optinAll=function(){var e=truste.util.createHighestLevelCookie();self.localStorage&&self.localStorage.removeItem(truste.eu.COOKIE_CATEGORY_NAME);truste.eu.bindMap.isPro||truste.eu.ccpa.dropCcpaCookie(!1,'Y');truste.util.createPreferenceFromCookieValue(e);truste.eu.bindMap.isPro||truste.util.dropOptoutDomains(e)};truste.util.parseJSON=function(e){if('string'!=typeof e)return e;try{var t=JSON.parse(e);if(t&&'object'==typeof t){delete t.__proto__;delete t.constructor;delete t.prototype}return t}catch(t){if(/^[\[{]/.test(e.trim())){var r='Could not parse JSON object: '+e;'function'==typeof truste.util.error?truste.util.error(r,t):truste.util.trace(r,t);return null}return e}};truste.util._setStorage=function(e,t,r){var s='string'==typeof t||t instanceof String?t:JSON.stringify(t);try{var i=r&&self.sessionStorage||self.localStorage;i.setItem?i.setItem(e,s):i[e]=s;return!0}catch(e){truste.util.trace('Current browser does not support HTML5 Local Storage');return!1}};truste.util._removeStorage=function(e,t){try{(t&&self.sessionStorage||self.localStorage).removeItem(e)}catch(e){truste.util.trace('Current browser does not support HTML5 Local Storage')}};truste.util.setStorage=function(e,t,r,s){var i=truste.eu&&truste.eu.bindMap,n=i&&i.feat.appendCmidEnabled?i.cmId+'_'+e:e,u='string'==typeof t||t instanceof String?t:truste.util.getJSON(t);truste.util._removeStorage(e,r);truste.util._removeStorage(n,r);if(truste.util._setStorage(n,u,r)&&e===truste.eu.COOKIE_CATEGORY_NAME){if(!s&&truste.eu.noticeLP)if(truste.eu.noticeLP.pcookie){var o=truste.util.transformJSON&&truste.util.transformJSON(t);o='{}'!==o&&o?o:'';truste.util.createCookie(e+'_pc',o)}else truste.util.createCookie(e+'_pc','','Thu, 01 Jan 1970 00:00:01 GMT',!1);truste.util.fireCustomEvent('truste-optout-domains',u)}};truste.util.httpGet=function(e,t){var r=new(self.XMLHttpRequest||self.XDomainRequest||self.ActiveXObject)('MSXML2.XMLHTTP.3.0');r.onload=function(){200===r.status&&t(r)};r.open('GET',e);r.send(null)};truste.util.getSeedUrl=function(e){var t=truste.eu.bindMap;if(t&&t.prefmgrUrl){var r=t.prefmgrUrl.split('?'),s=r[0].replace(/\/$/,'')+'/cm/'+t.cmId+'/seed-url?',i=r.length>1?r[1]+'&':'';i+='referer='+t.referer;i+='&locale='+t.locale;i+='&fullUrl='+t.fullURL;truste.util.httpGet(s+i,e)}};truste.util.cookieConsentValue=function(e){var t=e.split('|');return truste.eu.bindMap.categoriesIndexesFromReferer.split('|').filter(function(e){return t.indexOf(e)>-1}).join('|')};truste.util.cleanupStaleGpcOverridden=function(){var e=truste.eu.bindMap;if(e.feat.gpcOvr&&!truste.util.readCookie(truste.eu.COOKIE_GPC_ISHONORED,!0)){truste.util.createCookie(truste.eu.COOKIE_GPC_PREF_OVERRIDDEN,'','Thu, 01 Jan 1970 00:00:01 GMT',!1);truste.util._removeStorage(truste.util.COOKIE_NS+truste.eu.COOKIE_GPC_PREF_OVERRIDDEN);truste.util._removeStorage(truste.util.COOKIE_NS+e.cmId+'_'+truste.eu.COOKIE_GPC_PREF_OVERRIDDEN)}};truste.util.createHighestLevelCookie=function(){var e=truste.eu.bindMap;if(e.categoriesIndexesFromReferer)return e.categoriesIndexesFromReferer;for(var t=[],r=0;r<e.categoryCount;r++)t.push(r);return t.join(e.feat&&e.feat.replaceDelimiter?'|':',')};truste.util.isAcceptAll=function(e){if(!e)return!1;var t=truste.util.createHighestLevelCookie();return new RegExp(('^'+t+'$').replace(/[,|]/g,'.')).test(e)};truste.util.consentRequiredlevel=function(e){truste.util.createPreferenceFromCookieValue('0',e,null,null,truste.eu.bindMap.feat.gpcdntflag)};truste.util.readCookieStorage=function(e){var t=truste.eu&&truste.eu.bindMap,r=null;t&&t.cmId&&(r=truste.util._readCookieStorage(t.cmId+'_'+e));null==r&&(r=truste.util._readCookieStorage(e));return r};truste.util._readCookieStorage=function(e){try{var t=truste.util.COOKIE_NS+e,r=truste.util.getStorage(t,!1),s=truste.util.getStorage(t,!0);if(!r&&!s)return null;if('object'!=typeof(s||r))return null;if(s){truste.util._createCookie(e,s.value);return s.value}var i=new Date(r.expires),n=new Date,u=truste.eu.bindMap.feat.extendExpiry;if(i<n&&!u)try{self.localStorage.removeItem(t);return null}catch(e){return null}truste.util._createCookie(e,r.value,u?0:i.toUTCString());return r.value}catch(e){truste.util.trace(e.message,e.stack)}return null};truste.util._createCookieStorage=function(e,t,r){var s=truste.eu.bindMap.cookieExpiry,i={};i.name=truste.util.COOKIE_NS+e;i.value=t;i.path='/';if('0'==r)i.expires=r;else if(r){var n=new Date(r);if(isNaN(n=n.getTime()+6e4*n.getTimezoneOffset()))throw new Error('Invalid Date String');i.expires=n}else i.expires=(new Date).getTime()+24*s*60*60*1e3;truste.util._setStorage(i.name,i,i.expires<(new Date).getTime())};truste.eu.performShopifyConsent=g;truste.eu.gcm=v;truste.eu.insertConsentState=h;truste.eu.hasGcmIabEnabled=b;truste.eu.checkDatalayerForDefaultConsent=y;truste.eu.msg={_listeners:[],addEventListener:function(e){truste.eu.msg._listeners.push(e)},dispatchEvent:function(e){for(var t=truste.eu.msg._listeners.length;t-- >0;)try{truste.eu.msg._listeners[t](e)}catch(e){}},postMessage:function(e,t,r){self.postMessage&&(t||self).postMessage(e,r||'*')},msgListener:function(e){if(e.data&&truste.eu.msg.originSet.has(e.origin)){var t=truste.util.parseJSON(e.data);truste.util.shiftMsgData&&truste.util.shiftMsgData(t);if(t&&t.data&&t.data._skipMessage)return;truste.eu.msg.dispatchEvent(t)}},log:function(e,t){var r=truste.eu.noticeLP;if(!(r&&r.debug&&'false'!=r.debug||t&&t.debug)){const t={impression:0,views:1,accepts:2,moreinfo:3,cookiepolicy:4,requiredonly:5,twostepoptin:6,consent:7,click:8,close_button:15};truste.util.sendAnalytics(t[e])}},init:function(e){var t=new Set;t.add(window.origin);[e.prefmgrUrl,e.IRMIntegrationURL,e.cdnURL].forEach(function(e){if(e){var r;try{r=new URL(e).origin}catch(e){truste.util.trace(e)}r&&t.add(r)}});this.originSet=t;return this}}.init(truste.eu.bindMap);self.addEventListener('message',truste.eu.msg.msgListener);truste.eu.mobile=truste.eu.mobile||U;truste.eu.mobile.isMobile=truste.eu.mobile.checkIfMobile();truste.eu._listeners=[];truste.eu.cmLoading=!1;truste.eu.error=t;truste.eu.applyCSS=r;truste.eu.isAccessibleLayout=s;truste.eu.buildStylesForNewCm=i;truste.eu.createCommonStyle=n;truste.eu.hideCloseButton=u;truste.eu.prefclosebutton=o;truste.eu.triggerClose=a;truste.eu.initCloseButtonLogic=l;truste.eu.addCloseButton=c;e();function B(){var e={},t=t||window,r={binfo:arguments[0]||{}};this!=t&&(this.inner=r);r.fake={capabilities:['getConsent'],default_consent:'denied',default_source:'implied',reportlevel:5,consent:Object.assign(Object.create(null),{all:{value:null,type:Object.create(null)}}),domain:truste.util.getCmIdentifier(r.binfo)||t.location.hostname};r.requestors=Object.assign(Object.create(null),{loading:[]});r.authorities=['.truste.com','.trustarc.com','.truste-svc.net','.trustarc.eu','.'+r.fake.domain];r.blacklist=['.example-xxx.com'];r.isPro=function(){if(this.binfo&&'boolean'==typeof this.binfo.isPro)return this.binfo.isPro;var e=truste.eu&&truste.eu.bindMap;return e&&'boolean'==typeof e.isPro?e.isPro:!(truste.eu&&truste.eu.noticeLP)};r.supportsDefaultCategories=function(){return!!(truste.eu&&truste.eu.bindMap&&Object.hasOwn(truste.eu.bindMap,'defaultCategory'))};r.writeDelimiter=function(){var e=truste.eu&&truste.eu.bindMap;return e&&e.feat&&e.feat.replaceDelimiter?'|':','};r.valid_values={consent:{denied:1,approved:2},source:{implied:1,asserted:2},type:{session:1048561,necessary:65523,limited:65527,host:65311,shared:65343,present:65407,systemic:61951,functional:62463,unique:63487,uuid:65535,user:8191,site:16383,party:32767,private:16241,security:16147,preferences:30579,behavioral:13119,tracking:62335,analytic:30583,advertising:63487,requested:8055,required:16179,functionality:29555,targeting:65535}};r.caddy=null;r.isCapable=function(e){for(var t=this.fake.capabilities.length;t-- >0;)if(this.fake.capabilities[t]==e)return t+1;return 0};r.endsWith=function(e,t){return!(null==t||!t.replace)&&new RegExp('.*'+t.replace(/\./g,'\\.')+'$').test(e)};r._hasLoadedPrefs=!1;r.loadOldPrefs=function(e){var t=this.getStorage('PrivacyManagerAPI.preferences',null,13);if(t){this.tconsole.log('Applying old preferences: ',t);for(let r in t)Object.hasOwn(t,r)&&truste.util.isSafePropertyName(r)&&(e.consent[r]=t[r]||e.consent[r])}this._hasLoadedPrefs=!0;for(var r,s=0,i=this.requestors.loading&&this.requestors.loading.length||0;s<i;){var n=this.requestors.loading[s++];if(r=this.processMessage(n.apiOb,n)){for(let e in r)Object.hasOwn(r,e)&&truste.util.isSafePropertyName(e)&&(n.apiOb[e]=r[e]);delete n.apiOb.loading;this.sendPost(n,{PrivacyManagerAPI:n.apiOb})}}};r.getAuthorityLevel=function(e,r,s,i){if(!i)return 0;var n=this.isAnAuthority(i);if(n)return n;var u='.'+(t.location.hostname||'localhost');r=r||u;for(var o=this.blacklist.length;o-- >0;){var a=this.blacklist[o];if(this.endsWith(r,a))return 0}if(this.endsWith(e,s)||this.endsWith(s,e))return-5;if(this.endsWith(e,r)||this.endsWith(r,e))return-1;i.charAt&&(i=i.split(/\s*[\s,]\s*/));for(var l=0,c=i.length;c-- >0;)this.endsWith(r,i[c])?l=Math.min(-4,l):this.endsWith(e,i[c])?l=Math.min(-3,l):this.endsWith(u,i[c])&&(l=Math.min(-2,l));if(l)return l;this.sendEvent('uka',i,0,s,null,e,r);return 0};r.isAnAuthority=function(e){if(!e)return 0;e.charAt&&(e=e.split(/\s*[\s,]\s*/));if(1==e.length&&(e=e[0].replace(/^\.?/,'.'))){for(var t=this.authorities.length;t-- >0;)if(this.endsWith(e,this.authorities[t]))return t+1}else{var r;for(t=e.length;t-- >0;)if(r=this.isAnAuthority(e[t]))return r}return 0};r.sendUpdatesTo=function(e,t,r){this.caddy={hold:!0};var s,i,n={PrivacyManagerAPI:{timestamp:r,capabilities:this.fake.capabilities}},u=n.PrivacyManagerAPI;for(var o in e)if(Object.hasOwn(e,o)&&(i=e[o]))for(var a=i.length;a-- >0;)if((s=i[a])&&s.w)if(s.getConsent){var l=this.apiDo('getConsent',this.authorities[0],s.d,this.authorities[0],s.t);if(s.s!=l.source||s.c!=l.consent){u.consent=s.c=l.consent;u.source=s.s=l.source;u.self=s.a;u.domain=u.cmId=s.d;u.action='getConsent';this.sendPost(s.w,n)}}else if(s.getConsentDecision&&t){u.consent=u.source=null;u.self=s.a;u.action='getConsentDecision';this.sendPost(s.w,n)}this.caddy=null};r.getBType=function(e){var t=0;if(e){e.charAt?e=e.split(/\W+/):e>0&&(e=[e]);t=65535;for(var r=e.length;r-- >0;){var s=parseInt(e[r]);if(isNaN(s)){if(!this.valid_values.type[e[r]])throw new Error('invalid type');t&=this.valid_values.type[e[r]]}else t&=s}}return t};r.getTypePermission=function(e,t,r,s){(!t||isNaN(t)||t.length)&&(t=this.getBType(t));if(s&&void 0!==e[s]){if(!isNaN(r.consentDecision)&&r.consentDecisions.split(/[,;:|]/).length!=parseInt(r.consentDecision))return e[s]}else{var i=this.getStorage(truste.eu.COOKIE_CATEGORY_NAME,null,13,!0);for(var n in i)if(Object.hasOwn(i,n)){var u=parseInt(i[n].value)+1+'';if(s===n||s==u)return r.consentDecisions.split(/[,;:|]/).includes(u)?'approved':'denied'}}var o=t<<1&65535|4369,a=[];if(0!=t)for(var l in e)if(Object.hasOwn(e,l)&&e[l]&&this.valid_values.consent[e[l]]){a.temp=this.getBType(l);if((a.temp|t)==a.temp&&'approved'==e[l]||(a.temp|o)!=a.temp&&'denied'==e[l]){a[e[l]]||a.push(e[l]);a[e[l]]=l}}return a.denied?'denied':a.join(',')};r.updatePreferences=function(e,t,r,s){if(!e)return!1;'.'!=e.charAt(0)&&(e='.'+e);if(t||r){var i=this.getConsentForDomain(e,s)||{type:Object.create(null)};this.valid_values.consent[t]&&(i.value=t);if(r)for(var n in r)if(Object.hasOwn(r,n)&&truste.util.isSafePropertyName(n))if(this.valid_values.consent[r[n]])isNaN(n)?this.valid_values.type[n]&&(i.type[n]=r[n]):i.type[n]=r[n];else if(null===r[n]||'null'===r[n]){i.type[n]=null;delete i.type[n]}this.tconsole.log('updating preference for domain: '+e+' to:',i);truste.util.isSafePropertyName(e)&&(s.consent[e]=i)}else{if(null!==t&&'null'!==t)return!1;this.tconsole.log('Deleting consent preference for: '+e);s.consent[e]=null;delete s.consent[e]}this.getStorage('PrivacyManagerAPI.preferences',s.consent,13);return!0};r.apiDo=function(e,r){if(!e||!r||!this.isCapable(e))return{error:'Call is missing required parameters or not allowed'};this.tconsole.log('Doing API Call',Array.apply(null,arguments));if('getConsent'===e){var s=(arguments[2]||t.location.hostname).replace(/^\.?/,'.'),i=this.getAuthorityLevel(s,(this.caddy||{}).from,r,arguments[3]);if('all'==s)return{error:'Call to this domain is not authorized'};var n=0,u=arguments[4],o=this.getStorage(truste.eu.COOKIE_CATEGORY_NAME,null,13,!0),a={required:'0',functional:'1',advertising:'2'};try{for(var l in o)if(Object.hasOwn(o,l)&&o[l].value&&a[u]&&o[l].value==a[u]){u=l;break}n=this.getBType(u)}catch(e){if(isNaN(u)&&!o[u])return{error:'Invalid Type parameter'}}var c=this.getConsentForDomain(s,this.fake),d=this.getTypePermission(this.fake.consent.all.type,n,this.fake,u);c&&(d=this.getTypePermission(c.type,n,this.fake,u)||d||c.value);var p=(d=d||this.fake.consent.all.value)?{source:'asserted',consent:d}:{source:this.fake.default_source,consent:this.fake.default_consent};this.tconsole.log('Did getConsent API call for: '+s+' from: '+(this.caddy||{}).from+', got result: ',p);i>0&&(p.origin=t.location.hostname);return p}return this.secondaryAction(e,r,arguments[2],arguments[3])};r.processMessage=function(e,t){var r;if(!e||!t||!(r=t.origin)||'null'==r){this.tconsole.error('got invalid postmessage call from '+r,e);return{error:'Call is malformed and missing information'}}this.tconsole.log('processing message from '+r,e);t={origin:t.origin,source:t.source};r='.'+r.toLocaleLowerCase().replace(/^(https?:)?\/\/([^\/]*@)?/,'').replace(/[\/:].*/,'');switch(e.action){case'getConsent':var s=e.self,i=e.authority,n=e.domain||e.cmId,u=e.type||void 0;s&&s.replace(/^\.?/,'.');n&&(n=n.replace(/^\.?/,'.'));if(!s)return{error:'All callers must identify themselves via their domain id. Add property \'self\' on the post message object.'};if(n&&!this.endsWith(n,r)){if(!i)return{error:'Call \'authority\' parameter is missing. All requests for preferences of domains not your own require an authority parameter. An \'authority\' is whatever entity has approved or requested you to make this call. Examples include the domain you are inquiring about, the web site you are hosted on, or a third party privacy provider like TRUSTe.'};if(!this.getAuthorityLevel(n,r,s,i))return{error:'Call is not authorized. The call you made requires a valid authority'}}else n||(n=r);this.caddy={from:r};var o=this.apiDo('getConsent',s,n,i,u);this.caddy=null;if(o&&!o.error){if(truste.util.isSafePropertyName(n)){this.requestors[n]=this.requestors[n]||[];this.requestors[n].push({w:t,getConsent:1,t:u,a:s,d:n,s:o.source,c:o.consent})}o.domain=o.cmId=n;o.self=s;o.capabilities=this.fake.capabilities}return o;case'updatePreference':if(this.isAnAuthority(r)>0){var a=e.domain||e.cmId;if(!a)return{error:'Required parameter \'domain\' not sent'};var l=a.replace(/^\.?/,'.'),c=e.value,d=e.type;if(!this.updatePreferences(l,c,d,this.fake))return{error:'Invalid value for required parameter \'value\' sent'};var p=this.requestors;'all'!=l&&((p={})[l]=this.requestors[l]);this.sendUpdatesTo(p,!1,e.timestamp);return null}return{error:'Call is not from an authorized Location'};default:return this.secondaryMessageProcessing(e,t,r)}};r.loadConsentDecision=function(e){var t;if(null==e.consentDecisions){'object'==typeof(t=truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME,!0))&&null!==t&&(t=t.value);if(null!=t&&''!=t)e.consentDecisions=t.split(/[,;:|]/).map(function(e){return parseInt(e)+1}).filter(function(e){return!isNaN(e)}).join(this.writeDelimiter());else if(''===t&&truste.eu.bindMap.feat.requiredSwitchEnabled){e.consentDecisions='';e.consent.all.value='denied';this.adjustTypeValues(e);this.updateGTM&&this.updateGTM(e,e.expiry);return}}else if(''===e.consentDecisions&&truste.eu.bindMap.feat.requiredSwitchEnabled){e.consent.all.value='denied';this.adjustTypeValues(e);this.updateGTM&&this.updateGTM(e,e.expiry);return}e.consentDecision=truste.util.getLowestConsent(e.consentDecisions);if(null==e.consentDecision){'object'==typeof(t=truste.util.readCookie(truste.eu.COOKIE_PREF_NAME,!0))&&null!==t&&(t=t.value);t=parseInt(t);isNaN(t)||(e.consentDecision=t+1)}if(null!=(t=e.consentDecision)){var r=truste.util.getStorage(truste.eu.COOKIE_CATEGORY_NAME)||{},s=!0;if(e.consentDecisions)for(var i in r)if(Object.hasOwn(r,i)){var n=r[i];n.domains&&(s=s&&e.consentDecisions.indexOf(parseInt(n.value)+1)>-1)}e.consent.all.value=0==t||s?'approved':'denied'}this.adjustTypeValues(e);this.updateGTM&&this.updateGTM(e,e.expiry)};r.adjustTypeValues=function(e){delete e.consent.all.type.required;delete e.consent.all.type.functional;delete e.consent.all.type.advertising;var t;if(truste.eu.bindMap.feat.requiredSwitchEnabled&&''===e.consentDecisions){e.consent.all.type.required='denied';e.consent.all.type.functional='denied';e.consent.all.type.advertising='denied'}else if(e.consentDecisions){e.consent.all.type.functional='denied';e.consent.all.type.advertising='denied';t=e.consentDecisions.split(/[,;:|]/);truste.eu.bindMap.feat.requiredSwitchEnabled&&(e.consent.all.type.required=t.includes('1')?'approved':'denied');t.includes('2')&&(e.consent.all.type.functional='approved');t.includes('3')&&(e.consent.all.type.advertising='approved')}else if(1==(t=e.consentDecision)){e.consent.all.type.functional='denied';e.consent.all.type.advertising='denied'}else if(2==t){e.consent.all.type.functional='approved';e.consent.all.type.advertising='denied'}};e.callApi=function(){try{r.caddy=null;return r.apiDo.apply(r,arguments)}catch(e){try{r.sendError&&r.sendError(arguments[0],arguments[3],arguments[1],{domain:arguments[2],type:arguments[4]},e)}catch(e){}r.tconsole.log(e.stack);r.caddy=null;return{error:'Unknown Error occurred'}}};r.getConsentFromDomainlist=function(e,t,r){if(!r)return null;var s,i=null,n=t.consentDecisions,u=!n&&t.consentDecision;for(var o in r)if(Object.hasOwn(r,o))if(u){if(r[o].domains&&(s=r[o].domains[e]||r[o].domains[e.substring(1)])){i={value:null,type:Object.create(null)};r[o].value<u&&(i.value='approved');break}}else if(n&&r[o].domains&&(s=r[o].domains[e]||r[o].domains[e.substring(1)])){i||(i={value:null,type:Object.create(null)});'denied'!=i.value&&n.indexOf(parseInt(r[o].value)+1)>=0&&(i.value='approved');if('0'===s){i.value='denied';i.type[r[o].value]='denied'}else if('1'===s){'denied'!=i.value&&(i.value='approved');i.type[r[o].value]='approved'}}return i};r.getConsentForDomain=function(e,t){if(!e||!t)return null;this.loadConsentDecision(t);var r=this.getConsentFromDomainlist(e,t,this.getStorage(truste.eu.COOKIE_CATEGORY_NAME,null,12,!0));if(!r)return null;r.currentDecision=t.consentDecisions||t.consentDecision;return truste.util.isSafePropertyName(e)?t.consent[e]=r:null};r._imgrep=[];r.sendEvent=function(e,r,s,i,n,u){if(!(this.caddy&&this.caddy.hold||this.tconsole.isDebug())){if(this.isCapable(e)){if(!isNaN(r)||4&this.fake.reportlevel)if(this.caddy){if(2&this.fake.reportlevel)return;var o=this.caddy.from;if(16&this.fake.reportlevel&&u&&o&&this.endsWith(u,o))return;if(32&this.fake.reportlevel&&i&&o&&this.endsWith(o,i))return}else{if(1&this.fake.reportlevel)return;if(8&this.fake.reportlevel&&i&&u&&this.endsWith(u,i))return}}else if('uka'==e&&64&this.fake.reportlevel)return;null==n&&(n={page:t.location.pathname});t.location.hostname,encodeURIComponent(r),s&&encodeURIComponent(s),encodeURIComponent(i),n&&encodeURIComponent(this.cheapJSON(n));if(this.binfo){truste.util.getCmIdentifier(this.binfo);var a=this.binfo.locale.indexOf('-');'&c='+encodeURIComponent(this.binfo.locale.slice(0,a))+'&b='+encodeURIComponent(this.binfo.behavior)+'&l='+encodeURIComponent(this.binfo.locale.substr(a+1))}}};r.sendError=function(e,t,r,s,i){if(!(128&this.fake.reportlevel||this.caddy&&this.caddy.hold||this.tconsole.isDebug())){s||(s={});i&&i.toString();var n=i&&i.stack&&i.stack.match(/(@|at)[^\n\r\t]*/g);n&&'\n'+n[0]+'\n'+n[n.length-1];if(this.binfo){s.country=this.binfo.locale.slice(0,2)||this.binfo.country||'';this.binfo.behavior&&(s.behavior=this.binfo.behavior);this.binfo.locale&&(s.locale=this.binfo.locale)}delete s.authority;delete s.action;delete s.self}};r.secondaryMessageProcessing=function(e,t,r){e.from=r;switch(e.action){case'getConsentDecision':if(!e.self)return{error:'Missing identity of API caller'};if(truste.util.isSafePropertyName(r)){this.requestors[r]=this.requestors[r]||[];this.requestors[r].push({w:t,getConsentDecision:1,t:null,a:e.self})}return{consentDecision:null,source:null,capabilities:this.fake.capabilities};case'updateDecision':if(this.isAnAuthority(r)>0){var s=e.value;if(s==this.fake.consentDecisions)return;this.fake.consentDecisions=s;this.fake.expiry=e.expiry;this.loadConsentDecision(this.fake);this.tconsole.log('updated decision to : '+s);this.sendUpdatesTo(this.requestors,!0,e.timestamp);return null}this.tconsole.error('Unauthorized entity calling updateDecision',e);return{error:'Call is not from an authorized Location'};default:this.tconsole.error('Unknown api call attempt',e);return{error:'Call is not available'}}};r.logConsentReporting=function(e,t){try{if(truste.eu&&truste.eu.bindMap&&truste.eu.bindMap.feat&&truste.eu.bindMap.feat.cmaModalReporting){var r=truste.util.calculateCategoriesInt(t);truste.util.sendAnalytics(18,r)}}catch(e){this.tconsole.error('logConsentReporting: Error during execution',null,e)}};r.getCategoriesInfo=async function(e=!1){e=!0===e;truste.eu.categoriesPromise||(truste.eu.categoriesPromise={});truste.eu.categoriesPromise[e]||(truste.eu.categoriesPromise[e]=(async()=>{const t=await fetch(`${truste.eu.bindMap.cdnURL}cm/${truste.util.getCmIdentifier(truste.eu.bindMap)}/bannerconfig?${r.isPro()?'isPro=true&':''}include=categories&domains=${e}`,{referrerPolicy:'origin-when-cross-origin',keepalive:!0});if(!t.ok)throw new Error(`Failed to fetch categories: ${t.status}`);const s=await t.json();truste.eu.categories=s.categories||[];return truste.eu.categories})());return truste.eu.categoriesPromise[e]};r.secondaryAction=function(e,t,s,i){var n,u,o;switch(e){case'getConsentDecision':this.loadConsentDecision(this.fake);u=(n=this.fake.consentDecision)?parseInt(n):0;o=n?'asserted':'implied';this.sendEvent(e,-1,0,t);return{consentDecision:u,source:o};case'getGDPRConsentDecision':this.loadConsentDecision(this.fake);u=(n=this.fake.consentDecisions)?n.split(/[,;:|]/).map(Number):[0];o=n?'asserted':'implied';this.sendEvent(e,-1,0,t);return{consentDecision:u,source:o};case'getConsentCategories':return{categories:truste.util.getStorage(truste.eu.COOKIE_CATEGORY_NAME)||'no categories'};case'getDefaultCategories':if(r.supportsDefaultCategories()){var a={country:truste.eu.bindMap.country,defaultCategory:truste.eu.bindMap.defaultCategory};truste.eu.bindMap.state&&(a.state=truste.eu.bindMap.state);return a}this.tconsole.error('Unknown api call attempt',{action:e,self:t,arg1:s,arg2:i});return{error:'Call is not available'};case'setConsentLevels':for(var l=s.length-1;l>=0;l--)for(var c=0;c<l;c++)if(s[c]===s[l]){s.splice(l,1);break}var d=truste.eu.bindMap,p=this.writeDelimiter(),f=s.map(function(e){return e-1}),m=d.feat.requiredSwitchEnabled||1==s.at(0)?'':'0'+p,g=m+f.join(p),v=m?[0].concat(f):f;if(truste.util.validConsent(g)){var h=this,b=function(){h.logConsentReporting(g,v);truste.util.isAcceptAll(g)?truste.util.optinAll():truste.eu.autoOptout(g,!1);truste.eu.prefclose()};truste.util.deferCallUntil&&truste.util.fetchCategoryIndexesWithTrackers?truste.util.deferCallUntil(b,function(){return d.categoriesIndexesFromReferer},50,2e4):b()}else console.log('Consent value passed is invalid.');break;case'changeReportLevel':var y=parseInt(s+'');isNaN(y)||(this.fake.reportlevel=y);return this.fake.reportlevel;case'getCategoriesInfo':return r.getCategoriesInfo(s);case'syncConsentDecision':if(s&&'updateDecision'===s.action){var C=s.value?s.value.split(/[,;:|]/).map(function(e){return parseInt(e)}).filter(function(e){return!isNaN(e)}).map(function(e){return e+1}).join():s.value;return this.secondaryMessageProcessing({value:C,action:'updateDecision',timestamp:s.timestamp||1,expiry:s.expiry},null,t)}break;case'identifyUser':return s&&s.userID&&s.authMac&&s.authSecretId&&'function'==typeof truste.cd?.identify?truste.cd.identify(s.userID,s.authMac,s.authSecretId):{error:'Call is missing required parameters'};default:this.tconsole.error('Unknown api call attempt',{action:e,self:t,arg1:s,arg2:i});return{error:'Call is not available'}}};r.handleCMMessage=function(e,r){var s=null;if((r.origin===window.origin||truste.eu.msg.originSet.has(r.origin))&&'preference_manager'==e.source&&'submit_preferences'==e.message){var i=t[this.binfo&&this.binfo.dl||'dataLayer'];i&&'function'==typeof i.push&&i.push({event:'useractioncomplete'});var n=[],u=!1,o='object'==typeof e.data?e.data.value:e.data;this.tconsole.log('got new values from consent manager: '+o);o&&o.split(/[,;:|]/).forEach(function(e){e=parseInt(e);isNaN(e)?u=!0:n.push(e+1)});if(u){e.from=r.origin;e.msg=e.message;this.tconsole.error('Got invalid value from the CM: '+o,e)}else s={value:n.join(this.writeDelimiter()),action:'updateDecision',timestamp:1}}return s};r.updateGTM=function(e,r){var s=truste.eu.bindMap.feat.requiredSwitchEnabled&&''===e.consentDecisions;if(e&&(s||!(e.consentDecision<1)&&e.consentDecisions)){var i,n,u,o=this.binfo&&this.binfo.gtm_fun_ids||'ga-ms-ua',a=this.binfo&&this.binfo.gtm_adv_ids||'ta-asp-bzi-sp-awct-cts-csm-img-flc-fls-mpm-mpr-m6d-tc-tdc',l=o+'-'+a;if(s)u='permit';else{var c=e.consentDecisions.split(/[,;:|]/),d=truste.eu.bindMap&&truste.eu.bindMap.feat||{};c.includes('1')&&(n=d.catLvl1Name||'required');if(c.includes('2')){l=l.replace(o,'');n=d.catLvl2Name||'functional'}if(c.includes('3')||c.some(function(e){return Number(e)>=3})){l=l.replace(a,'');n=''}l=l.replace(/(^-)|(-$)/,'');u=d.replaceDelimiter?'permit_'+e.consentDecisions+'_'+n:('permit '+e.consentDecisions+' '+n).trim()}if(truste.util.readCookie(truste.eu.CMAPI_PRIVACY,!0)!=u){truste.util.createCookie(truste.eu.CMAPI_BL,l,r||'',!0);truste.util.createCookie(truste.eu.CMAPI_PRIVACY,u,r||'',!0);if((i=t[this.binfo&&this.binfo.dl||'dataLayer'])&&'function'==typeof i.push){i.push({'gtm.blacklist':l});i.push({event:'cookie_prefs_set'})}truste.util.fireCustomEvent('truste-consent-gtm',truste.eu.bindMap.prefCookie)}}};r.tconsole={};r.tconsole.isDebug=function(){return null!=(t.PrivacyManagerAPI||e).debug?(t.PrivacyManagerAPI||e).debug:t.location.hostname.indexOf('.')<0||t.location.hostname.indexOf('.truste-svc.net')>0};r.tconsole.log=function(e){var r=!t.console&&(console.log.apply?console.log:Function.prototype.bind.call(console.log,console));return this.isDebug()&&r&&(r.apply(console,arguments)||!0)};r.tconsole.error=function(e,t,s){this.log('Error: '+e);t||(t={});s&&this.log(s.toString()+'\n'+s.stack);e&&(t.message=e);r.sendError&&r.sendError(t.action||'uk',t.authority,t.self||t.from,t,s)};r.warnOnMissingIdentifier=function(e){truste.util.getCmIdentifier(e)||this.tconsole.log('CMAPI: no CM identifier in settings, falling back to host '+t.location.hostname+'. Expected binfo.domain or binfo.cmId.',e)};r.parseJSON=function(e){if('string'==typeof e){var t=truste.util.parseJSON(e);if(null===t&&/^\s*[{[].*[}\]]\s*$/.test(e)){this.tconsole.error('Could not parse json object: '+e.slice(0,35)+(e.length>35?'...':''));return null}return t}return e};r.cheapJSON=function(e){return t.truste&&truste.util&&truste.util.getJSON&&truste.util.getJSON(e)||t.JSON&&JSON.stringify(e)||'{"PrivacyManagerAPI":{"message":"The API needs a JSON parser"}}'};r.getStorage=function(e,r,s,i){try{var n=!1,u=!(4&s)&&(truste.util.COOKIE_NS||'truste.cookie.')||'';const p=truste.eu&&truste.eu.bindMap;e=p&&p.feat.appendCmidEnabled?p.cmId+'_'+e:e;const f=i?e:u+e;try{n=t.localStorage&&t.localStorage.getItem&&!(2&s)}catch(e){}if(null==r){var o=!(1&s)&&new RegExp('\\s*'+e.replace('.','\\.')+'\\s*=\\s*([^;\\s]*)').exec(t.document.cookie.toString());if(o&&o.length>1){r=decodeURIComponent(o[1]);r=this.parseJSON(r)||r}else if(n){r=t.localStorage[f]||t.localStorage.getItem(f);var a=this.parseJSON(r);if(8&s||!a||null==a.value)r=a;else{r=a.value;if(a.expires&&new Date(parseInt(a.expires))<new Date){this.getStorage(e,0,s);r=null}}}return r}r&&!r.charAt&&(r=this.cheapJSON(r));var l=this.fake.domain||truste.util.getCmIdentifier(this.binfo)||null;if(l){'.'!=l.charAt(0)&&(l='.'+l);t.location.hostname.indexOf(l)<0&&(l=null)}var c=new Date;c.setDate(c.getDate()+(parseInt(this.binfo.cookieExpiry,10)||395));var d='; expires='+(r?c.toUTCString():'Thu, 01 Jan 1970 00:00:01 GMT')+'; path=/'+(l?'; domain='+l:'');l&&(t.document.cookie=e+'=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/');t.document.cookie=e+'='+encodeURIComponent(r)+d;if(n)if(r){8&s||(r=this.cheapJSON({name:e,value:r,expires:c.getTime()}));t.localStorage.setItem(f,r)}else{t.localStorage.removeItem(f);try{delete t.localStorage[f]}catch(e){}}}catch(t){this.tconsole.error('error with getStorage',{name:e,value:r},t)}return null};r.sendPost=function(e,r){if(t.postMessage&&e&&e.source&&r){'object'==typeof r&&(r=this.cheapJSON(r));var s=e.origin;'null'!=s&&s||(s='*');this.tconsole.log('responding to ('+s+') message : '+r);r&&e.source.postMessage(r,s)}};r.init=function(e,t,r){if(!this._hasLoadedPrefs){t=t||this.fake;try{e&&'string'==typeof e&&(e=this.parseJSON(e));this.tconsole.log('initing with object: ',e);if(e){for(var s in t)Object.hasOwn(t,s)&&truste.util.isSafePropertyName(s)&&(t[s]=e[s]||t[s]);for(var s in this.binfo)Object.hasOwn(this.binfo,s)&&truste.util.isSafePropertyName(s)&&(this.binfo[s]=e[s]||this.binfo[s]);e.blacklist instanceof Array&&(this.blacklist=this.blacklist.concat(e.blacklist))}r&&this.loadOldPrefs&&this.loadOldPrefs(t)}catch(e){this.tconsole.error('Error initing: ',t,e)}}};r.messageListener=function(e){var t,s=e.data&&r.parseJSON(e.data);truste.util.shiftMsgData&&truste.util.shiftMsgData(s);if(s&&(t=s.PrivacyManagerAPI||r.handleCMMessage(s,e)))if(t.capabilities||t.error){r.tconsole.log('got my own message, returning');r.tconsole.log(e)}else if(t.timestamp&&t.action)try{r.tconsole.log('GOT VALID MESSAGE: '+e.data);var i=r.processMessage(t,e);if(i){for(var n in i)Object.hasOwn(i,n)&&truste.util.isSafePropertyName(n)&&(t[n]=i[n]);s.PrivacyManagerAPI&&r.sendPost(e,s)}}catch(s){r.caddy=null;t.from=e.origin;r.tconsole.error('TRUSTe Consent Manager API unknown error.',t,s);r.sendPost(e,{PrivacyManagerAPI:{error:'An unknown error occurred: '+s.toString()}})}else{t.from=e.origin;r.tconsole.error('got invalid postmessage call, missing ts or action',t);r.sendPost(e,'{"PrivacyManagerAPI":{"error":"API Object missing required fields"}}')}};e.init=function(e,t){r.init(e,null,t)};t.PREF_MGR_API_DEBUG=r;if(t.postMessage){var s=t.window;try{for(;s!=s.parent&&s.parent.document;)s=s.parent}catch(e){}if(s.addEventListener){s.addEventListener('message',r.messageListener,!1);s!=t&&t.addEventListener('message',r.messageListener,!1)}else{s.attachEvent('onmessage',r.messageListener);s!=t&&t.attachEvent('onmessage',r.messageListener)}}r.fake.consentDecision=null;r.fake.capabilities.push('getConsentDecision','getGDPRConsentDecision','getConsentCategories','setConsentLevels');r.supportsDefaultCategories()&&r.fake.capabilities.push('getDefaultCategories');r.fake.capabilities.push('getCategoriesInfo','syncConsentDecision','identifyUser');r.warnOnMissingIdentifier(r.binfo);e.version='1.7';return e}truste.eu.autoOptout=w;truste.eu.dropAutoOptOutCookies=M;truste.eu.ccpaOptOut=A;truste.eu.gpcDntGPPAutoOptOut=x;truste.eu.ccpa=R;truste.eu.COOKIE_USPRIVACY=D;truste.eu.USP_VERSION=N;truste.eu.USP_FILE_NAME=L;truste.eu.saveUserConsent=O;truste.eu.getUserConsent=k;truste.eu.getUserCenterCall=I;truste.eu.cpra=T;truste.eu.COOKIE_CPRA_FINPROG=G;truste.eu.gpp=S;truste.eu.GPP_FILENAME=P;truste.eu.ACS_FILENAME=C;truste.eu.acsInsertScript=_;truste.eu.acsSendConsent=E;truste.eu.getCmapiSettings=function(){var e=truste.eu.bindMap||{},t=truste.eu.noticeLP=truste.eu.noticeLP||{};t.domain=truste.util.getCmIdentifier(e)||t.domain;t.cookieExpiry=e.cookieExpiry||395;t.crossDomain=e.feat&&e.feat.crossDomain;t.isPro=!1;return t};truste.eu.USER_CONSENT_CENTER_SERVER=truste.eu.USER_CONSENT_CENTER_SERVER||'//user-consent-center.trustarc.com'.replace(/^\w{3,5}:/,'');truste.eu.SCRIPT_REGX=truste.eu.SCRIPT_REGX||/\.(truste|trustarc)\b.*\bnotice(\.0)?(\.exp)?(\.js)?\b.*\bdomain=/;truste.eu.JS_REGX=truste.eu.JS_REGX||(truste.eu.bindMap&&truste.eu.bindMap.domain?'domain='+truste.eu.bindMap.domain:void 0);truste.eu.init=d;truste.eu.postUserCenterCallback=p;truste.eu.resolveOptoutDomains=m;truste.eu.finishLoad=f;f.done=void 0;!function(){truste.eu.jsNode1=truste.eu.bindMap.currentScript||truste.util.getScriptElement(truste.eu.SCRIPT_REGX,!0,truste.eu.JS_REGX);truste.eu.noticeLP=truste.util.initParameterMap(truste.eu.jsNode1,truste.eu.noticeLP||{});truste.eu.noticeLP.locale=truste.eu.noticeLP.locale||'';!truste.eu.noticeLP.ostype&&truste.eu.mobile.isMobile&&(truste.eu.noticeLP.ostype='mobile');truste.eu.noticeLP.gtm=truste.eu.bindMap.feat.gtm;if(truste.eu.noticeLP.cookieName){truste.eu.COOKIE_PREF_NAME=truste.eu.noticeLP.cookieName;truste.eu.COOKIE_GDPR_PREF_NAME=truste.eu.noticeLP.cookieName+'_gdpr';truste.eu.COOKIE_REPOP=truste.eu.noticeLP.cookieName+'_poptime'}}();!function(){try{var e=self.localStorage;if(e&&truste.eu.noticeLP.pcookie){var t=truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME);if(t){t=t.split(':')[0];var r=truste.util.readCookie(truste.eu.COOKIE_CATEGORY_NAME+'_pc');if('skip'!==r){e[truste.eu.COOKIE_CATEGORY_NAME]&&JSON.parse(e[truste.eu.COOKIE_CATEGORY_NAME])?truste.eu.resolveOptoutDomains(t,r):truste.util.dropOptoutDomains(t,()=>{truste.eu.resolveOptoutDomains(t,r)},!0)}}else e.removeItem(truste.eu.COOKIE_CATEGORY_NAME)}}catch(e){truste.util.trace('Error processing consent data.')}}();!function(){truste.eu.noticeLP.debug&&(truste.util.debug='false'!=truste.eu.noticeLP.debug);truste.cma=self.PrivacyManagerAPI=B.call(self,truste.eu.getCmapiSettings());self.TRUSTE_CMAPI_DEBUG=self.PREF_MGR_API_DEBUG;truste.cma.debug=truste.util.debug;truste.eu.init(null,1);/\b(?:https?:\/\/)?(?:[\w-]+\.)*(dev|qa)\./.test(truste.eu.bindMap.cdnURL)&&window.PREF_MGR_API_DEBUG.authorities.push('.trustarc.com')}()}self._truste&&(self._truste.eu=B)||B()}();