function _truste_eu(){function x(){var m=truste.eu.bindMap;m.feat.isConsentRetrieved=m.feat.crossDomain?m.feat.isConsentRetrieved:!0;if(!x.done&&truste.util.isConsentResolved()){x.done=!0;var n=function(){var d=(new Date).getTime(),f=truste.util.readCookie(truste.eu.COOKIE_REPOP,!0),c=truste.eu.bindMap.popTime;return c&&c!=f&&d>=c}();n&&(m.feat.dropPopCookie=!0);truste.eu.ccpa.initialize();truste.eu.gpp.initialize();truste.util.cleanupStaleGpcOverridden();truste.eu.gpcDntAutoOptOut();truste.eu.gcm();
truste.eu.acsSendConsent();var a=function(){var d=truste.eu.bindMap;if(d.feat.consentResolution){var f=truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME,!0);if(f&&(f=f.split(":"),!(new RegExp(d.behavior+"."+d.behaviorManager)).test(f[2])&&(/(,us|none)/i.test(f[2])||"eu"==d.behaviorManager&&/implied.eu/i.test(f[2]))))return!0}return!1};truste.util.fireCustomEvent("truste-cookie",m.prefCookie);truste.eu.events.fireCcmReady();let b=!m.feat.topwindow||window==top;truste.eu.isGPCDNTEvent()?m.feat.dntShowUI&&
"expressed"==m.behavior&&truste.util.executeOnCondition(function(){return m.prefCookie||m.feat.gpp.gppApplies&&null==truste.util.readCookie("gppstring")},function(){truste.eu.isGPCDNTEvent()&&!truste.eu.cpra.shouldShowFinProg()&&(truste.eu.clickListener(truste.eu.noticeLP.pn,!0),truste.eu.msg.log("consent",m,m.messageBaseUrl))},10,3E4):null!=truste.util.getIntValue(m.prefCookie)?b&&"expressed"==m.behavior&&(n||a())&&(m.feat.isRepopEvent=!0,m.feat.isReconsentEvent=n,truste.eu.clickListener(truste.eu.noticeLP.pn,
!0)):b&&"expressed"==m.behavior&&(truste.eu.clickListener(truste.eu.noticeLP.pn,!0),truste.eu.msg.log("consent",m,m.messageBaseUrl))}}truste=self.truste||{};truste.eu=truste.eu||{};truste.eu.version="v1.7-1708";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.util=truste.util||{};truste.util.getIntValue=function(m){m=parseInt(m);return isNaN(m)?null:m};truste.util.isAscending=function(m){return m.every(function(n,a){return 0===a||n>=m[a-1]})};truste.util.checkConsentFormatValidity=function(m){m+="";var n=m.split(/[,|]/).map(function(a){return parseInt(a)});return/^[0-9][0-9]?([,|][0-9][0-9]?)*$/.test(m)&&20>=n.length&&truste.util.isAscending(n)&&
20>=truste.util.getLowestConsent(m)&&n.includes(0)&&n[n.length-1]<truste.eu.bindMap.categoryCount};truste.util.validConsent=function(m){return null!=truste.util.getIntValue(m)&&-1<truste.util.getIntValue(m)&&truste.util.checkConsentFormatValidity(m)};truste.util.getLowestConsent=function(m){var n=m&&-1<m.indexOf("|")?"|":",";return null!=m&&0<m.length?m.slice(m.lastIndexOf(n)+1,m.length):null};truste.util.getScriptElement=function(m,n,a){"string"==typeof m&&(m=new RegExp(m));"string"==typeof a&&(a=
new RegExp(a));if(!(m instanceof RegExp&&("undefined"==typeof a||a instanceof RegExp)))return null;for(var b=self.document.getElementsByTagName("script"),d,f,c=b.length;0<c--&&(f=b[c]);)if(d=a?a.test(f.src):!0,(n||!f.id)&&m.test(f.src)&&d)return f;return null};truste.util.getUniqueID=function(){return"truste_"+Math.random()};truste.util.initParameterMap=function(m,n){if("object"!==typeof n||null===n)n={};if(m&&"string"==typeof m.src){var a,b=n._url=m.src;if(b=(n._query=b.replace(/^[^;?#]*[;?#]/,"")).replace(/[#;?&]+/g,
"&"))for(b=b.split("&"),a=b.length;0<a--;){var d=b[a].split("="),f=d.shift();n[f]||(n[f]=d.length?decodeURIComponent(d.join("=")):"")}m.id=n.sid=n.sid||truste.util.getUniqueID()}else n._query=n._url="";return n};truste.util.addListener=function(m,n,a,b,d){m&&"string"==typeof n&&a instanceof Function&&(m.addEventListener?m.addEventListener(n,a,d?!0:!1):b&&a())};truste.util.createHighestLevelCookie=function(){for(var m=truste.eu.bindMap,n=[],a=0;a<m.categoryCount;a++)n.push(a);return n.toString()};
truste.util.isSafePropertyName=function(m){return!["__proto__","constructor","prototype"].includes(m)};truste.util.parseJSON=function(m){if("string"!==typeof m)return m;try{var n=JSON.parse(m);n&&"object"===typeof n&&null!==n&&(delete n.__proto__,delete n.constructor,delete n.prototype);return n}catch(a){return/^[\[{]/.test(m.trim())?(this.error("Could not parse JSON object: "+m,a),null):m}};truste.util.getJSON=truste.util.getJSON||function(m){if(self.JSON&&!(self.JSON.org||self.JSON.license||self.JSON.copyright))return self.JSON.stringify(m);
if(m instanceof Array){var n="[";if(m.length){n+=truste.util.getJSON(m[0]);for(var a=1;a<m.length;a++)n+=","+truste.util.getJSON(m[a])}return n+"]"}if("string"==typeof m)return'"'+m+'"';if("object"===typeof m&&null!==m){a=!1;n="{";for(var b in m)Object.hasOwn(m,b)&&(n+=(a?",":"")+'"'+b+'":'+truste.util.getJSON(m[b]),a=!0);return n+"}"}return void 0===m?void 0:m+""};truste.util.addScriptElement=function(m,n,a,b,d){if(!m)return truste.util.trace("ERROR adding script element to page, src is null"),null;
var f=null;if("string"==typeof m){f=(a&&a.ownerDocument||self.document).createElement("SCRIPT");f.src=m;var c=document.querySelector("[nonce]");c&&f.setAttribute("nonce",c.nonce||c.getAttribute("nonce"))}else if(m&&"script"==(m.nodeName+"").toLowerCase()){if(f=m,!f.src)return truste.util.trace("ERROR Object passed into addSCriptElement does not have required 'src' attribute"),null}else return truste.util.trace("ERROR Object passed into addSCriptElement is not a ScriptElement"),null;d&&"string"==typeof d.valueOf()&&
f.setAttribute("type",d);b&&f.setAttribute("async","async");f.setAttribute("importance","high");(c=document.querySelector("[nonce]"))&&f.setAttribute("nonce",c.nonce||c.getAttribute("nonce"));f.onload=f.onreadystatechange=f.onerror=function(e){if(e&&"error"==e.type){truste.util.trace("ERROR Script was unable to load: "+m);var g=2}else if(e&&"load"==e.type||"loaded"==f.readyState)g=1;g&&(f.onload=f.onreadystatechange=f.onerror=null,n instanceof Function&&n(f,g))};(a&&a.appendChild&&a||self.document.getElementsByTagName("body")[0]||
self.document.getElementsByTagName("head")[0]).appendChild(f);return f};truste.util.trace=truste.util.trace||function(){return self.console&&console.log&&(this.debug||!1!==this.debug&&(0>self.location.hostname.indexOf(".")||0<self.location.hostname.indexOf(".truste-svc.net")))?(console.log.apply(console,arguments),!0):!1};truste.util.error=truste.util.error||function(m,n,a){a=a||{};var b=n&&n.toString()||"";encodeURIComponent(a.authority||0);var d=a.caller||"";n&&n.stack&&(b+="\n"+n.stack.match(/(@|at)[^\n\r\t]*/)[0]+
"\n"+n.stack.match(/(@|at)[^\n\r\t]*$/)[0]);truste.util.trace(m,b,a);truste.util.debug||!n&&!m||(delete a.caller,delete a.mod,delete a.domain,delete a.authority,a.msg=m,m=truste.eu.bindMap,m.feat.enableJsLog&&(n=new XMLHttpRequest,n.open("POST",m.apigwlambdaUrl,!0),n.setRequestHeader&&n.setRequestHeader("Content-type","application/json"),n.send(truste.util.getJSON({info:truste.util.getJSON(a)||"",error:b,caller:d}))))};truste.util.sendMessage=function b(n,a){var d;(b._imgrep||(b._imgrep=[])).push(d=
new Image(1,1));d.onerror=b._errorCB||(b._errorCB=function(f){truste.util.error("Error making GET request to: "+this.src)});d.src=a.replace(/^.{3,5}:/,self.location.protocol).replace(/\??$/,"?")+n};truste.util.getStyle=function(n,a){return n&&a?n.currentStyle?n.currentStyle[a]:self.getComputedStyle?self.getComputedStyle(n,null).getPropertyValue(a):n.style[a]:null};truste.util.getPosition=function(n){if(!n||n.ownerDocument!=self.document)return null;for(var a=0,b=0;n.offsetParent;)b+=n.offsetLeft,
a+=n.offsetTop,n=n.offsetParent;return[b,a]};truste.util.readyState=function b(a){b.status=a&&"load"==a.type?"complete":self.document.readyState||b.status||"interactive";return b.status};truste.util.addListener(self,"load",truste.util.readyState);truste.util.addListener(self.document,"readystatechange",truste.util.readyState);truste.util.getDefaultStyleProperty=function(a,b){b=document.createElement(b);document.body.appendChild(b);a=window.getComputedStyle(b,null)[a];b.parentNode.removeChild(b);return a};
truste.util.getDisplayProperty=function(a){var b=window.getComputedStyle(a,null).display;return"none"==b?truste.util.getDefaultStyleProperty("display",a.nodeName):b};truste.util.callCMEndpoint=function(a,b,d,f,c){var e=truste.eu.bindMap;if(e&&e.prefmgrUrl){var g=e.prefmgrUrl.split("?"),h=g[0].replace(/\/$/,"")+a,l=truste.eu.isGwtCm(e);g=1<g.length?g[1]+"&":"";g+=(l?"site=":"domain=")+e.domain;g+="&locale="+e.locale;g+="&behavior="+e.behavior;g+="&country="+e.country;e.state&&(g+="&state="+e.state);
null!=b&&(g+=(l?"&category=":"&level=")+b);truste.eu.consentUID&&(g+="&uid="+truste.eu.consentUID);e.seedUrl&&(g+=(l?"&seed_url=":"&seedUrl=")+e.seedUrl);e.feat.isGPCOptoutEvent?(g+="&is_gpc="+e.feat.gpc,g+="&consent="+(e.feat.gpcOvr&&c?c:e.gpcOptedIn)):e.feat.isDNTOptoutEvent?(g+="&is_dnt="+e.feat.dnt,g+="&consent="+e.dntOptedIn):c&&(g+="&consent="+c,"string"===typeof c&&(b=truste.util.calculateCategoriesInt(c.split(/[,|]/).map(function(p){return parseInt(p,10)}).filter(function(p){return!isNaN(p)})),
g+="&categories="+b));g+="&userType="+truste.eu.userType;g+="&session="+truste.eu.session;truste.cd?.addCrossDomainParams&&(g+=truste.cd.addCrossDomainParams(a));if(f)truste.util.sendMessage(g,h);else{var k=new XMLHttpRequest;k.onload=function(p){200==k.status&&d(k)};k.open("GET",h+g);k.send(null)}}};truste.util.httpRequest=function(a,b,d,f){var c=new XMLHttpRequest;c.onload=function(){if(200===c.status){var e=c.responseText;try{e=JSON.parse(c.responseText)}catch(g){truste.util.trace("Failed to parse http response.")}}else e=
"";if(f&&e)f(e.user_preferences,e);else return e};c.open(b,a);c.setRequestHeader("Access-Control-Allow-Origin","*");"POST"===b?c.send(d):c.send()};truste.util.submitPrefPostMessage=function(a,b,d,f,c){if(truste.eu&&truste.eu.actmessage){var e=truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify;a={source:"preference_manager",message:"submit_preferences",data:{gpcDnt:c,value:a,skipAutoblock:b,fromUserConsentStorage:d,userData:f,expires:f&&(new Date(parseInt(f.cookie_expiry))).toGMTString()}};
truste.eu.actmessage(a);a.data._skipMessage=!0;window.PREF_MGR_API_DEBUG&&PREF_MGR_API_DEBUG.authorities.push(window.location.hostname);window.postMessage&&window.postMessage(e(a),"*")}};truste.util.createPreferenceFromCookieValue=function(a,b,d,f,c){truste.util.submitPrefPostMessage(a,b,d,f,c);b=truste.util.getLowestConsent(a);truste.eu?.bindMap?.prefmgrUrl&&!truste.eu?.bindMap?.feat?.ccpaApplies&&b&&(d=truste.eu.isGwtCm(truste.eu.bindMap)?"/defaultconsentmanager/optin?":"/consent/log?",truste.util.callCMEndpoint(d,
b,function(){},!0,a))};truste.util.consentRequiredlevel=function(a){truste.util.createPreferenceFromCookieValue("0",a,null,null,truste.eu.bindMap.feat.gpcdntflag)};truste.util.fireCustomEvent=function(a,b){if(b){var d=new CustomEvent(a,{detail:b,bubbles:!0}),f=function(){return document.body||document.getElementsByTagName("body")[0]};a=function(){var c=f();c&&c.dispatchEvent(d)};f()?a():truste.util.waitForElem(f,a,100,2E4)}};truste.util.waitForElem=function(a,b,d,f){if("undefined"!==typeof MutationObserver){var c=
new MutationObserver(function(e){a()&&(c.disconnect(),b())});c.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0});setTimeout(function(){c.disconnect()},f)}else truste.util.executeOnCondition(a,b,d,f)};truste.util.executeOnCondition=function(a,b,d,f){if(a())b();else{var c=function(){a()&&(e=clearInterval(e),b())};var e=setInterval(c,d);c();setTimeout(function(){clearInterval(e)},f)}};truste.util.optoutRequired=function(){1==truste.eu.noticeLP.gtm?(truste.util.consentRequiredlevel(),
truste.util.dropOptoutDomains()):truste.eu&&truste.eu.clickListener&&truste.eu.clickListener(3);truste.eu.bindMap.prefCookie=0};truste.util.optinAll=function(){var a=truste.util.createHighestLevelCookie();self.localStorage&&self.localStorage.removeItem(truste.eu.COOKIE_CATEGORY_NAME);truste.eu.ccpa.dropCcpaCookie(!1,"Y");truste.util.createPreferenceFromCookieValue(a);truste.util.dropOptoutDomains(a)};truste.util.isAutoblock=function(){return!!(truste.eu.bindMap.feat.autoblock&&"undefined"!=typeof trustarc&&
trustarc.ccm&&trustarc.ccm.cab)};truste.util.autoblockConsent=function(a){"function"==typeof trustarc.ccm.cab.submitConsent&&("loading"===truste.util.readyState()?self.addEventListener("DOMContentLoaded",function(b){trustarc.ccm.cab.submitConsent(a)}):trustarc.ccm.cab.submitConsent(a))};truste.util.isAcceptAll=function(a){if(!a)return!1;var b=truste.util.createHighestLevelCookie();return(new RegExp(("^"+b+"$").replace(/,/g,"."))).test(a)};truste.util.htmlDecode=function(a){return(new DOMParser).parseFromString(a,
"text/html").documentElement.textContent};truste.util.isGpcFlow=function(){var a=truste.eu.bindMap;return truste.util.isConsentCenter()||a.feat.gpcOvr?"true"!=truste.util.readCookie(truste.eu.COOKIE_GPC_ISHONORED,!0):!truste.eu.bindMap.prefCookie};truste.util.isGpc=function(){var a=truste.eu.bindMap,b=!1;a.feat.gpc&&1==truste.eu.noticeLP.gtm&&!a.feat.iab&&truste.util.isGpcFlow()&&(b=!0);return b};truste.util.isGPCHonored=function(){let a=truste.eu.bindMap;return!a.feat.gpc||1!=truste.eu.noticeLP.gtm||
a.feat.iab?!1:a.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)):a.gpcOptedIn?.replace(/\|/g,",")===a.prefCookie?.replace(/\|/g,",")};truste.util.isDnt=function(){return truste.eu.bindMap.feat.dnt&&1==truste.eu.noticeLP.gtm&&!truste.eu.bindMap.feat.iab&&!truste.eu.bindMap.prefCookie};truste.util.isConsentCenter=function(){return truste.eu.noticeLP.userID&&truste.eu.bindMap.feat.enableStoredConsent&&
(1==truste.eu.noticeLP.gtm||truste.eu.bindMap.feat.autoblock)};truste.util.isConsentResolved=function(){var a=truste.eu.bindMap;return(!a.feat.crossDomain||a.feat.isConsentRetrieved)&&(!truste.util.isConsentCenter()||a.feat.isConsentCenterInitialized)};truste.util.extractOrigin=function(a){try{var b=(new URL(a)).origin}catch(d){truste.util.trace(d)}return b};truste.util.grantDeny=function(a){return a?"granted":"denied"};truste.util.dropGPCIsHonoredCookie=function(){truste.eu.bindMap.feat.isGPCOptoutEvent&&
truste.util.createCookie(truste.eu.COOKIE_GPC_ISHONORED,!0,null,!0)};truste.util.cleanupStaleGpcOverridden=function(){if(truste.eu.bindMap.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);var a=truste.util.COOKIE_NS+truste.eu.COOKIE_GPC_PREF_OVERRIDDEN;try{self.localStorage&&self.localStorage.removeItem(a)}catch(b){}}};truste.util.findCommonIntegers=function(a,b){var d=-1<a.indexOf("|")?
"|":",";a=new Set(a.split(/[,|]/).map(Number));var f=new Set(b.split(/[,|]/).map(Number));return Array.from(a).filter(function(c){return f.has(c)}).join(d)};truste.util.dropOptoutDomains=function(a,b,d){var f=truste.eu.bindMap;var c=truste.eu.isGwtCm(f)?"/defaultconsentmanager/getOptOutDomains?":`/cm/${f.domain}/opt-out/domains?`;(f.feat.isGPCOptoutEvent||f.feat.isDNTOptoutEvent)&&truste.util.sendAnalytics(16);truste.util.callCMEndpoint(c,null,function(e){e=e.responseText;var g=truste.util.parseJSON(e);
e&&g&&(truste.util.setStorage(truste.eu.COOKIE_CATEGORY_NAME,g,!1,d),b&&b())},!1,a)};truste.util.shiftOptoutDomains=function(a,b){if(truste.eu.bindMap.shift){var d=truste.eu.bindMap.shift,f;for(f in a){var c=parseInt(a[f].value);!isNaN(c)&&c>=d&&(a[f].value=(b?c+1:c-1)+"")}}};truste.util.getShiftCookie=function(a,b){if(!truste.eu.bindMap.shift)return a;var d=truste.eu.bindMap.shift,f=truste.eu.bindMap.shiftBy||1,c=a.split(/[,|]/).map(function(e){return parseInt(e)});c.forEach(function(e,g,h){e>=d&&
(h[g]=b?e+f:e-f)});a=-1<a.indexOf(",")?",":"|";return c.join(a)};truste.util.shiftMsgData=function(a){truste.eu.bindMap.shift&&a&&"undefined"!=typeof a.message&&("send_tracker_list"==a.message?truste.util.shiftOptoutDomains(a.data,!0):"submit_preferences"==a.message&&("string"==typeof a.data?a.data=truste.util.getShiftCookie(a.data,!0):"string"==typeof a.data.value&&(a.data.value=truste.util.getShiftCookie(a.data.value,!0))))};truste.util.calculateCategoriesInt=function(a){return a.reduce((b,d)=>
b+(1<<d),0)};truste.util.COOKIE_NS=truste.util.COOKIE_NS||"truste.cookie.";truste.util.cookie={init:function(a,b,d){b=b||"|_";d=d||", ";a&&(a=b,b=d,d=a);var f={};b.split("").forEach(function(c,e){f[c]=d[e]});this.replaceChar=f;this.regex=new RegExp(Object.keys(f).map(function(c){return"\\"+c}).join("|"),"g");return this},convert:function(a){var b=this;return a&&("string"===typeof a||a instanceof String)?a.replace(b.regex,function(d){return b.replaceChar[d]}):a}}.init(truste.eu.bindMap.feat.replaceDelimiter);
truste.util.readCookie=function(a,b){var d=null;try{var f=(new RegExp("\\s*"+a.replace(".","\\.")+"\\s*=\\s*([^;]*)")).exec(self.document.cookie);f&&1<f.length&&(d=f[1])}catch(c){truste.util.trace(c.message,c.stack)}!d&&b&&(d=truste.util.readCookieStorage(a));b=truste.util.cookie.convert(d);b!==d&&((d=truste.util.getStorage(truste.util.COOKIE_NS+a,!1))?(f=new Date(d.expires),f>new Date&&truste.util.createCookie(a,d.value,f.toString(),!0)):truste.util.createCookie(a,b),d=b);return d};truste.util.createCookie=
function(a,b,d,f,c){truste.util.cookie&&!c&&(b=truste.util.cookie.convert(b));c=truste.eu.bindMap||{};var e="; expires=";if(d)if("0"==d)e="";else{var g=new Date(d);e+=d}else g=new Date,g.setDate(g.getDate()+c.cookieExpiry),e+=g.toGMTString();!c.feat.cookiePath&&f&&truste.util.createCookieStorage&&truste.util.createCookieStorage(a,b,g);f=self.location.hostname;var h=(d=!!f.match(/^\d{0,3}\.\d{0,3}\.\d{0,3}\.\d{0,3}$/)||"localhost"==f)?f:f.replace(/^www\./,"");f=" SameSite="+(c.feat.samesite?c.feat.samesite:
"Lax")+";"+("https:"==self.location.protocol?" Secure;":"");if("undefined"!=typeof truste.eu.noticeLP.pcookie){document.cookie=a+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;domain="+(d?"":".")+h.replace(/^\./,"")+";"+f;if(!c.topLevelDomain){g=0;for(var l=h.split("."),k="_gd"+(new Date).getTime();g<l.length-1&&-1==document.cookie.indexOf(k+"="+k);)h=l.slice(-1-++g).join("."),document.cookie=k+"="+k+";domain="+h+";"+f+";max-age=1";document.cookie=k+"=;domain="+h+";expires=Thu, 01 Jan 1970 00:00:01 GMT";
c.topLevelDomain=h}h=c.topLevelDomain}g="/";c.feat.cookiePath&&(g+=location.pathname.split("/")[1]);self.document.cookie=a+"="+b+e+"; path="+g+";domain="+(d?"":".")+h.replace(/^\./,"")+";"+f};truste.util.readCookieStorage=function(a){try{var b=truste.util.COOKIE_NS+a,d=truste.util.getStorage(b,!1),f=truste.util.getStorage(b,!0);if(!d&&!f)return null;if(f)return truste.util.createCookie(a,f.value),f.value;var c=new Date(d.expires);if(c<new Date&&!truste.eu.bindMap.feat.extendExpiry)try{return self.localStorage&&
self.localStorage.removeItem(b),null}catch(e){return null}truste.util.createCookie(a,d.value,truste.eu.bindMap.feat.extendExpiry?0:c.toString());return d.value}catch(e){truste.util.trace(e.message,e.stack)}return null};truste.util.createCookieStorage=function(a,b,d){var f={};f.name=truste.util.COOKIE_NS+a;f.value=b;f.path="/";if("0"==d)f.expires=d;else if(d){a=new Date(d);if(isNaN(a=a.getTime()+6E4*a.getTimezoneOffset()))throw Error("Invalid Date String");f.expires=a}else f.expires=(new Date).getTime()+
34128E6;truste.util.setStorage(f.name,f,f.expires<(new Date).getTime())};truste.util.transformJSON=function(a){a&&"object"===typeof a||truste.util.trace("Invalid input data");var b={},d,f;for([d,f]of Object.entries(a))if("version"!==d){a=f.value;var c=!1,e;for(e in f.domains)if(Object.hasOwn(f.domains,e)&&("1"===f.domains[e]||"2"===f.domains[e])){c=!0;break}var g=Object.entries(f.domains).filter(([,h])=>c?"0"===h:"1"===h||"2"===h).map(([h])=>h);0<g.length&&(b[a]={d:g})}(b=JSON.stringify(b))&&4096<
(new Blob([b])).size&&(b="skip");return b};truste.util.setStorage=function(a,b,d,f){var c="string"==typeof b||b instanceof String?b:truste.util.getJSON(b);try{var e=d?self.sessionStorage||self.localStorage:self.localStorage;e.setItem?e.setItem(a,c):e[a]=c;if(a==truste.eu.COOKIE_CATEGORY_NAME){if(!f)if(truste.eu.noticeLP.pcookie){var g=truste.util.transformJSON(b);truste.util.createCookie(a+"_pc","{}"==g?"":g)}else truste.util.createCookie(a+"_pc","","Thu, 01 Jan 1970 00:00:01 GMT",!1);truste.util.fireCustomEvent("truste-optout-domains",
c)}}catch(h){truste.util.trace("Current browser does not support HTML5 Local Storage")}};truste.util.getStorage=function(a,b){var d=null;try{var f=b?self.sessionStorage||self.localStorage:self.localStorage;d=f.getItem?f.getItem(a):f[a]}catch(c){truste.util.trace("Current browser does not support HTML5 Local Storage")}return d&&truste.util.parseJSON(d)||null};truste.eu.performShopifyConsent=function(){var a=truste.eu.bindMap;if(a.feat.enableShopify&&"undefined"!=typeof window.Shopify){window.Shopify.loadFeatures([{name:"consent-tracking-api",
version:"0.1"}],function(c){c&&truste.util.trace(c)});var b=function(){return function(c){c&&truste.util.trace("shopify api failed "+JSON.stringify(c))}},d=0,f=setInterval(function(){window.Shopify&&window.Shopify.customerPrivacy&&window.Shopify.customerPrivacy.setTrackingConsent?(clearInterval(f),truste.util.isAcceptAll(a.prefCookie)?window.Shopify.customerPrivacy.setTrackingConsent(!0,b):"0"==a.prefCookie&&window.Shopify.customerPrivacy.setTrackingConsent(!1,b)):(d++,10<d&&(console.log("shopify consent failed"),
clearInterval(f)))},500)}};truste.eu.gcm=function(){var a=truste.eu.bindMap;if(a.prefCookie&&a.feat.gcm&&(a.feat.gcm.ads||-1<a.feat.gcm.analytics||-1<a.feat.gcm.adPersonalization||-1<a.feat.gcm.adUserData||-1<a.feat.gcm.functionality||-1<a.feat.gcm.personalization||-1<a.feat.gcm.security)){var b=a.prefCookie.split(/[,|]/),d=new Map;b.forEach(function(f){d.set(parseInt(f),1)});b={};truste.eu.insertConsentState(a.feat.gcm.adPersonalization,b,"ad_personalization",d);truste.eu.insertConsentState(a.feat.gcm.ads,
b,"ad_storage",d);truste.eu.insertConsentState(a.feat.gcm.adUserData,b,"ad_user_data",d);truste.eu.insertConsentState(a.feat.gcm.analytics,b,"analytics_storage",d);truste.eu.insertConsentState(a.feat.gcm.functionality,b,"functionality_storage",d);truste.eu.insertConsentState(a.feat.gcm.personalization,b,"personalization_storage",d);truste.eu.insertConsentState(a.feat.gcm.security,b,"security_storage",d);"function"===typeof gtag&&gtag("consent","update",b);truste.eu.checkDatalayerForDefaultConsent()}};
truste.eu.insertConsentState=function(a,b,d,f){-1<a&&(b[d]=truste.util.grantDeny(f.get(a)))};truste.eu.hasGcmIabEnabled=function(){truste.eu.bindMap.feat.iab&&"undefined"!=typeof __tcfapi&&(console.log("IAB enabled"),__tcfapi("ping",2,truste.eu.hasGcmIabEnabledCallback=function(a){console.log("pingReturn: ",a);null!=a&&void 0!=a?(console.log("tcfApi cmpId: ",a.cmpId),"300"==a.cmpId?console.log("Google cmpId detected. Using Google CMP might create conflicts with TrustArc and we recommend disabling it in the Google Ads settings."):
void 0==a.cmpId&&console.log("Undefined cmpId detected. Please check if the TrustArc TCF script is loading properly.")):console.log("invalid pingReturn")}))};truste.eu.checkDatalayerForDefaultConsent=function(){if("undefined"!=typeof window.dataLayer)for(var a=0;a<window.dataLayer.length;a++)if(0<window.dataLayer[a].length)for(var b=0;b<window.dataLayer[a].length;b++){if("consent"==window.dataLayer[a][b])return;if("event"==window.dataLayer[a][b]||"config"==window.dataLayer[a][b]){console.warn("WARNING: Tags are firing before consent is initialized. Please ensure that the consent mode default is initialized before firing tags.");
return}}};truste.eu.msg={_listeners:[],addEventListener:function(a){truste.eu.msg._listeners.push(a)},dispatchEvent:function(a){for(var b=truste.eu.msg._listeners.length;0<b--;)try{truste.eu.msg._listeners[b](a)}catch(d){}},postMessage:function(a,b,d){self.postMessage&&(b||self).postMessage(a,d||"*")},msgListener:function(a){a.data&&truste.eu.msg.originSet.has(a.origin)&&(a=truste.util.parseJSON(a.data),truste.util.shiftMsgData(a),truste.eu.msg.dispatchEvent(a))},log:function(a,b,d){truste.eu.noticeLP.debug&&
"false"!=truste.eu.noticeLP.debug||(truste.eu.newReporting?truste.util.sendAnalytics({views:1,accepts:2,moreinfo:3,cookiepolicy:4,requiredonly:5,twostepoptin:6,consent:7,click:8,close_button:15}[a]):truste.util.sendMessage("action="+a+"&domain="+b.domain+"&behavior="+b.behavior+"&country="+b.country+"&language="+b.language+"&rand="+Math.random()+"&session="+truste.eu.session+"&userType="+truste.eu.userType+"&referer="+window.origin,d))},poller:{lastHash:self.location.hash,callback:!1,_intervalId:0,
start:function(){this.callback&&!this._intervalId&&(this._intervalId=setInterval(this._action,200),this.lastHash=self.location.hash)},stop:function(){clearInterval(this._intervalId);this._intervalId=0},_action:function(a){a=truste.eu.msg.poller;if(a.callback&&0!=a._intervalId){var b=self.location.hash;b&&a.lastHash!=b&&(self.location.hash=a.lastHash,a.callback(b.substring(1)),a.lastHash=self.location.hash)}}},init:function(a){var b=new Set;b.add(window.origin);[a.prefmgrUrl,a.IRMIntegrationURL,a.cdnURL].forEach(function(d){d&&
(d=truste.util.extractOrigin(d))&&b.add(d)});this.originSet=b;return this}}.init(truste.eu.bindMap);self.postMessage&&truste.util.addListener(self,"message",truste.eu.msg.msgListener);truste.eu.mobile=truste.eu.mobile||{isMobile:!1,checkIfMobile:function(){var a=self.navigator.userAgent||self.navigator.vendor||self.opera,b=/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;
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(a)||b.test(a.substr(0,4))}};truste.eu.mobile.isMobile=truste.eu.mobile.checkIfMobile();truste.eu._listeners=[];truste.eu.cancelCmTimeout=null;truste.eu.cmLoading=!1;truste.eu.irmLandingPageReached=!1;truste.eu.optOutDone=!1;truste.eu.submittedIRM=!1;truste.eu.addEventListener=function(a,b){if(a&&"function"==typeof a){for(var d=
-1,f=0,c=truste.eu._listeners.length;f<c;f++)if(truste.eu._listeners[f]===a){d=f;break}d+1&&b?truste.eu._listeners.splice(d,1):d+1||truste.eu._listeners.push(a)}};truste.eu._dispatchEvent=function(a,b){for(var d=truste.eu._listeners.length;0<d--;)try{truste.eu._listeners[d](a,b)}catch(f){}};(function(){var a=function(b,d){if(d&&"useractioncomplete"==b.eventStatus){if(b=self.document.getElementById(truste.eu.popdiv2))b.style.minHeight="0",b.style.maxHeight="none";if(b=self.document.getElementById(truste.eu.popdiv3))b.style.minHeight=
"0";if(b=self.document.getElementById(truste.eu.popframe))b.style.minHeight="0"}};"undefined"!==typeof __tcfapi&&__tcfapi("addEventListener",2,a)})();truste.eu.actmessage=function(a){var b=truste.eu.bindMap;if(a)if("preference_manager"==a.source)switch(a.message){case "submit_preferences":if(a.data&&a.data._skipMessage)break;var d="object"==typeof a.data?a.data.value:a.data;if(d&&truste.util.validConsent(d)){truste.eu.bindMap.shift&&-1<d.indexOf(truste.eu.bindMap.shift)&&(d=truste.util.getShiftCookie(d,
!0));b.prefCookie=d;truste.util.trace("changing preference to: "+b.prefCookie);truste.eu.performShopifyConsent();truste.eu.gcm();truste.eu.acsSendConsent();a.data.gpcDnt?b.feat.gpcdntflag=0:truste.eu.resetGpcDnt();a.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();truste.util.dropGPCIsHonoredCookie();d=truste.util.getLowestConsent(b.prefCookie)+":"+b.daxSignature;truste.util.createCookie(truste.eu.COOKIE_PREF_NAME,d,a.data.expires,!0);d=b.prefCookie+":"+b.daxSignature;b.feat.consentResolution&&(d=d+":"+b.behavior+","+b.behaviorManager);truste.eu.consentUID&&!b.prefCookie.includes("-1")&&truste.util.createCookie(truste.eu.COOKIE_UID,truste.eu.consentUID,a.data.expires,!0);truste.util.createCookie(truste.eu.COOKIE_GDPR_PREF_NAME,
d,a.data.expires,!0);b.feat.dropPopCookie&&(b.feat.isReconsentEvent=!1,truste.util.createCookie(truste.eu.COOKIE_REPOP,b.popTime,a.data.expires,!0));truste.eu.icon.gpcMessage();truste.util.fireCustomEvent("truste-consent",b.prefCookie);truste.eu.events.fireConsentUpdated();truste.util.isConsentCenter()&&!a.data.fromUserConsentStorage&&(d=function(){truste.eu.flags.isLocalStorageOptOutUpdated=!1;truste.eu.saveUserConsent(truste.eu.noticeLP.userID,b.prefCookie,b.domain,truste.util.readCookie(truste.eu.COOKIE_CPRA_FINPROG,
!0),b.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))},b.feat.isGPCOptoutEvent?truste.util.executeOnCondition(function(){return truste.eu.flags.isLocalStorageOptOutUpdated},
d,50,5500):d());if(truste.util.isAutoblock()&&!a.data.skipAutoblock)if(a=truste.util.createHighestLevelCookie(),b.prefCookie.includes(a))truste.util.autoblockConsent();else{a=!1;try{var f=localStorage&&localStorage[truste.eu.COOKIE_CATEGORY_NAME];if(f){var c=JSON.parse(f);"object"==typeof c&&Object.keys(c).length&&(truste.util.autoblockConsent(c),a=!0)}}catch(g){truste.util.trace(g.message,g.stack)}a||truste.util.autoblockConsent()}b.feat.isRepopEvent=!1;truste.eu.sendclosereport=!1;if(f=truste.eu.caIcon)f.setAttribute("consent",
b.prefCookie),f.classList.add("truste_caIcon_display")}break;case "cm_loading":truste.eu.cmLoading=!0;break;case "enable_ac":truste.eu.noticeLP.accessibility=!0;break;case "change_panel":case "change_panel_no_scroll":"string"==typeof a.data&&(null!=truste.eu.cancelCmTimeout&&(clearTimeout(truste.eu.cancelCmTimeout),truste.eu.cancelCmTimeout=null),f=parseInt(a.data.split("x")[0]),isNaN(f)||(truste.eu.resizeFrame(b.width,f),"change_panel"===a.message&&(b.feat.noscrolltop||self.scrollTo(0,0),f=self.document.getElementById(truste.eu.popdiv2),
b.feat.noscrolltop||f&&(f.scrollTop=0))));break;case "remove_iframe":"true"!=a.data||truste.eu.prefclose()||setTimeout(truste.eu.prefclose,500);break;case "toggle_close_button":truste.eu.toggleCloseButton(b,a.data);break;case "send_tracker_list":"object"===typeof a.data&&null!==a.data&&truste.util.setStorage(truste.eu.COOKIE_CATEGORY_NAME,a.data,!1);break;case "get_tracker_list":f=truste.util.getStorage(truste.eu.COOKIE_CATEGORY_NAME)||Object.create(null);f=Object.entries(f).sort((g,h)=>Number(g[1].value)-
Number(h[1].value));f=Object.fromEntries(f);f={value:JSON.stringify(f)};truste.util.shiftOptoutDomains(f.value,!1);truste.eu.postMessageToFrame("optout_domains_status",f);break;case "show_cm":truste.eu.showCM(a.data);break;case "request_popup_message":truste.eu.postMessageToFrame("popup_message",truste.eu.bindMap.popupMsg);break;case "two_step_yes":"undefined"!=typeof truste.bn&&(truste.util.trace("Two Step Opt-in Confirmed."),truste.bn.twoStepConfirmed&&truste.bn.twoStepConfirmed());break;case "two_step_no":"undefined"!=
typeof truste.bn&&truste.bn.twoStepDeclined&&truste.bn.twoStepDeclined();break;case "finprog_yes":"string"==typeof a.data&&(f=JSON.parse(a.data),f.isNoticeFlow?truste.eu.cpra.yes(f.cpraSource):truste.eu.cpra.dropCpraCookie(!0),truste.eu.hideCloseButton(!1));break;case "finprog_no":"string"==typeof a.data&&(f=JSON.parse(a.data),f.isNoticeFlow?truste.eu.cpra.no(f.cpraConsent,f.cpraSource):truste.eu.cpra.dropCpraCookie(!1),truste.eu.hideCloseButton(!1));break;case "hide_close_button":truste.eu.hideCloseButton(!0);
break;case "finished_opt_out":truste.util.trace("auto opt out process finished");truste.eu.optOutDone=!0;break;case "truste-click-toggle-event":truste.util.fireCustomEvent(a.data,{});break;case "truste-click-button-submit":truste.util.fireCustomEvent(a.data,{});break;case "create_cookie":try{const g="string"===typeof a.data?JSON.parse(a.data):a.data;d=g.name;var e=g.value;d===truste.eu.COOKIE_NOTICE_LANGUAGE&&e&&(truste.util.createCookie(d,e),b.locale=e,truste.bn&&truste.bn.applyNoticeLanguageFromCookie&&
truste.bn.applyNoticeLanguageFromCookie())}catch(g){console.error("Failed to create cookie:",g)}break;case "truste-click-accept-all-button":truste.util.fireCustomEvent(a.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 "int_close_click":b.feat.optoutClose?truste.eu.triggerClose(b,truste.eu.prefclosebutton):truste.eu.prefclosebutton();
break;case "analytics":truste.eu.newReporting&&truste.util.sendAnalytics(a.data.action,a.data.categories)}else if("trustarc_user_consent_client"==a.source)null!==a.userID&&(truste.eu.noticeLP.userID=a.userID,truste.eu.getUserConsent(a.userID,function(g,h){truste.eu.postUserCenterCallback(g,h)}));else if("trustarc_irm"==a.source)switch(a.message){case "submit":b.feat.enableIrmAutoOptOut&&truste.eu.cpra.shouldShowFinProg()?truste.eu.clickListener(7,!0,{cpraConsent:"0",cpraSource:"irm-optout"}):truste.eu.irm.optout();
break;case "complete":truste.eu.submittedIRM&&(truste.eu.irmLandingPageReached=!0,truste.eu.toggleCloseButton(truste.eu.bindMap,"true"),truste.util.trace("irm landing page reached"));break;case "error":truste.util.trace("error in irm process. terminating optout"),truste.eu.prefclose()}};truste.eu.hideCloseButton=function(a){var b=document.querySelector(".truste-close-button-container");b&&(a?(b.setAttribute("data-close-display",b.style.display),b.style.display="none"):"none"===b.style.display&&(a=
b.getAttribute("data-close-display"),null!==a&&(b.style.display=a)))};truste.eu.postMessageToFrame=function(a,b,d,f){d=self.document.getElementById(d||truste.eu.popframe);var c=truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify;a={source:"notice_js",message:a,data:b};for(var e in f)a[e]=f[e];d&&d.contentWindow.postMessage&&d.contentWindow.postMessage(c(a),"*")};truste.eu.triggerClose=function(a,b){truste.util.validConsent(a.prefCookie)?b():(truste.eu.prefclosebutton(),
truste.eu.cpra.shouldShowFinProg()?truste.eu.clickListener(7,!0,{cpraConsent:"0",cpraSource:"optout-close"}):truste.util.optoutRequired())};truste.eu.initCloseButtonLogic=function(a,b,d,f,c){d="irm"===d;var e=truste.util.validConsent(b.prefCookie)||b.feat.gpp.gppApplies&&truste.eu.isGPCDNTEvent(),g=d?truste.eu.prefclosebutton_irm:truste.eu.prefclosebutton;f=d||!b.feat.optoutClose||e||"required"==f?g:function(){truste.eu.triggerClose(b,g)};truste.util.addListener(a,"click",f);truste.eu.noticeLP.oclose&&
"false"!=truste.eu.noticeLP.oclose&&(d=self.document.getElementById(truste.eu.popdiv))&&truste.util.addListener(d,"click",f);truste.util.addListener(a,"keydown",function(h){h=h||window.event;var l=h.which||h.keyCode;if(13==l||32==l)h.preventDefault?h.preventDefault():event.returnValue=!1,a.click()});c&&truste.util.addListener(c,"keydown",function(h){h=h||window.event;9==(h.which||h.keyCode)&&h.shiftKey&&(h.preventDefault?h.preventDefault():event.returnValue=!1,a.focus())});truste.util.trace("Close button logic attached")};
truste.eu.shouldShowCloseButton=function(a,b,d){b="irm"===b;var f=truste.util.validConsent(a.prefCookie)||a.feat.gpp.gppApplies&&truste.eu.isGPCDNTEvent(),c=!b&&a.feat.optoutClose&&!f&&"required"!=d,e=truste.eu.isAccessibleLayout(a.prefmgrUrl);e=!truste.eu.isGwtCm(a)||b||!a.hideCloseButtonEnabled&&!e;return"object"===typeof a&&null!==a&&e&&!a.feat.isRepopEvent&&"show_loyalty_message"!==d&&(a.autoDisplayCloseButton||c||b||"us"==a.behaviorManager||"implied"==a.behavior||"expressed"==a.behavior&&f)};
truste.eu.addCloseButton=function(a,b,d){if(truste.eu.shouldShowCloseButton(a,b,d)){var f="irm"===b?self.document.getElementById(truste.eu.popdiv3_irm):self.document.getElementById(truste.eu.popdiv3),c=self.document.createElement("div");a.closebtnid||(a.closebtnid="closebtn-id"+Math.random());c.id=a.closebtnid;c.className="truste-close-button-container";truste.eu.popclose=("pop-close"+Math.random()).replace(".","");var e=a.closeButtonUrl||a.assetServerURL+"close_btn.png",g=document.createElement("img");
g.id=truste.eu.popclose;g.setAttribute("alt",a.closeBtnAlt);g.src=e;g.className="truste-close-button-img";e=document.createElement("a");e.setAttribute("aria-label","close");e.setAttribute("role","button");e.className="truste-close-button";e.tabIndex=1;e.id="trustarc-internal-close-button";e.appendChild(g);g=".truste-close-button {cursor: pointer;";if(a.styles.closebtnlink)for(var h in a.styles.closebtnlink)g+=h+": "+a.styles.closebtnlink[h]+";";var l=".truste-close-button-container {position: absolute;top: -20px;right: -20px;";
if(a.styles.closebtn)for(h in a.styles.closebtn)l+=h+": "+a.styles.closebtn[h]+";";h=".truste-close-button-img {border: 0;}"+(g+"}")+(l+"}");g=document.createElement("style");g.setAttribute("type","text/css");(l=document.querySelector("[nonce]"))&&g.setAttribute("nonce",l.nonce||l.getAttribute("nonce"));g.innerText=h;document.head.insertBefore(g,document.head.firstChild);c.appendChild(e);f&&f.appendChild(c);truste.eu.initCloseButtonLogic(e,a,b,d,f);truste.util.trace("Adding the close button")}};truste.eu.clickListener=
function(a,b,d){var f=truste.eu.bindMap;if("object"!==typeof f||null===f)return truste.eu.error("click listener was called but bindings are unavailble");var c=truste.util.getIntValue(f.prefCookie);a=truste.util.getIntValue(a);var e="notice";switch(a){case 1:e="prefmgr";break;case 2:e="advanced";break;case 3:e="required";break;case 4:e="iab_manage_settings";break;case 5:e="iab_manage_settings_partners";break;case 6:e="show2ndOptinStep";break;case 7:e="show_loyalty_message";break;default:!(null!=c&&
0<=c)||f&&f.feat&&f.feat.showDisclosure||(e="prefmgr")}truste.eu.prefview(f,e,!1,d);b||truste.eu._dispatchEvent("click");return e};truste.eu.reopenBanner=function(){var a=truste.eu.bindMap;if("object"!==typeof a||null===a)return truste.eu.error("Re Open Banner click listener was called but bindings are unavailable");if(a.feat.ccpaApplies&&"undefined"!=typeof truste.bn)return truste.bn.reopenBanner&&truste.bn.reopenBanner();truste.eu.clickListener()};truste.eu.irmClickListener=function(){var a=truste.eu.bindMap;
if("object"!==typeof a||null===a)return truste.eu.error("IRM click listener was called but bindings are unavailble");truste.eu.irmView(a);truste.eu._dispatchEvent("click");return"irm"};truste.eu.toggleCloseButton=function(a,b){a&&a.closebtnid&&(a=self.document.getElementById(a.closebtnid))&&(b&&"true"==b?(a.classList.remove("truste_visibility_hidden"),a.classList.add("truste_visibility_visible")):(a.classList.remove("truste_visibility_visible"),a.classList.add("truste_visibility_hidden")))};truste.eu.resizeFrame=
function(a,b,d){truste.util.trace("resizing the iframe to:",a,b,d);a=self.document.documentElement;self.document.getElementById(truste.eu.popdiv2);d=parseInt(d);b=parseInt(b);!isNaN(d)&&a&&a.style&&a.style.setProperty("--truste-box-overlay-margin-left",d+"px");b&&a&&a.style&&(b+="px",a.style.setProperty("--truste-box-overlay-height",b),a.style.setProperty("--truste-popframe-height",b),a.style.setProperty("--truste-box-overlay-inner-height",b))};truste.eu.prefclosebutton=function(){truste.eu.prefclose()&&
truste.eu._dispatchEvent("close")};truste.eu.prefclosebutton_irm=function(){truste.eu.prefclose_irm()&&truste.eu._dispatchEvent("close")};truste.eu.removeHidden=function(){try{for(var a=self.document.getElementsByTagName("object"),b=0;b<a.length;++b){var d=a[b];d&&(d.className=d.className.replace(/\btruste_hidden\b/g,""))}}catch(f){truste.eu.error("error removing truste_hidden from class names",f)}};truste.eu.prefclose=function(){try{var a=truste.eu.bindMap;if(pop2=(pop=self.document.getElementById(truste.eu.popdiv))&&
self.document.getElementById(truste.eu.popdiv2)){pop.parentNode.removeChild(pop);pop2.parentNode.removeChild(pop2);var b=self.document.getElementById(truste.eu.outerdiv);b&&b.parentNode.removeChild(b);truste.eu.removeHidden();var d=self.sessionStorage.getItem("oldHash");d&&(self.location.hash=d,self.sessionStorage.removeItem("oldHash"));truste.util.trace("closing the CM");if(a.feat.enableReturnFocus&&a.returnFocusTo){var f=self.document.getElementById(a.returnFocusTo);f&&f.focus();a.returnFocusTo=
""}truste.eu.gpp.updateCmpDisplayStatus("hidden");return!0}}catch(c){truste.eu.error("error in prefclose",c)}return!1};truste.eu.prefclose_irm=function(){try{if(pop2_irm=(pop_irm=self.document.getElementById(truste.eu.popdiv_irm))&&self.document.getElementById(truste.eu.popdiv2_irm)){pop_irm.parentNode.removeChild(pop_irm);pop2_irm.parentNode.removeChild(pop2_irm);var a=self.document.getElementById(truste.eu.outerdiv_irm);a&&a.parentNode.removeChild(a);truste.eu.irmLandingPageReached&&!truste.eu.optOutDone?
(truste.eu.showCM(!0),truste.eu.toggleCloseButton(truste.eu.bindMap,"true"),truste.util.trace("showing IRM")):truste.eu.prefclose();truste.eu.removeHidden();truste.util.trace("closing IRM iframe");return!0}}catch(b){truste.eu.error("error in prefclose_irm",b)}return!1};truste.eu.runOnReady=function(a){document.body?a():truste.util.addListener(window,"load",a)};truste.eu.isGwtCm=function(a){return/consent-pref/.test(a.prefmgrUrl)};truste.eu.prefview=function(a,b,d,f){if(!b||!a)return truste.eu.clickListener(null);
truste.util.trace("opening the CM");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.util.trace("Action is: "+b);truste.eu.sendclosereport=!0;var c=a.prefmgrUrl&&(0<a.prefmgrUrl.indexOf(".truste")||0<a.prefmgrUrl.indexOf(".trustarc"))?
a.prefmgrUrl:("https:"==self.location.protocol?"https:":"http:")+"//consent-pref.trustarc.com/",e=0<c.indexOf("?")?"&site=":"?site=",g=truste.eu.noticeLP.ostype,h=truste.eu.noticeLP.ac;c+=e+(a.domain||self.location.hostname)+"&country="+a.country;c=!a.feat.isReconsentEvent||Object.hasOwn(truste.eu.noticeLP,"pn")||"eu"!=a.behaviorManager||a.isGdprLayout||a.isIabLayout||a.isGppLayout?c+("&action="+b):c+"&action=notice";a.state&&(c+="&state="+a.state);a.locale&&(c+="&locale="+a.locale);null!=a.prefCookie&&
(c+="&preferences="+encodeURI(truste.util.getShiftCookie(a.prefCookie,!1)));a.behavior&&(c+="&behavior="+a.behavior);truste.eu.noticeLP.gtm&&(c+="&gtm="+truste.eu.noticeLP.gtm);a.feat.autoblock&&(c+="&autoblock="+a.feat.autoblock);g&&(c+="&ostype="+g);c.includes("&layout=")||"eu"!=a.behaviorManager||a.isGdprLayout||a.isIabLayout||a.isGppLayout||(c+="&layout=default_eu");truste.eu.consentUID&&(c+="&uid="+truste.eu.consentUID);h&&(c+="&accessibility=true");"undefined"!=typeof truste.eu.noticeLP.debug&&
(c+="&debug="+truste.eu.noticeLP.debug);e=/<\s*script|javascript:|<\/?\w+[^>]*>/i;Object.hasOwn(truste.eu.noticeLP,"privacypolicylinktext")&&(c+="&privacypolicylinktext="+encodeURIComponent(truste.eu.noticeLP.privacypolicylinktext));Object.hasOwn(truste.eu.noticeLP,"privacypolicylink")&&!e.test(truste.eu.noticeLP.privacypolicylink)&&(c+="&privacypolicylink="+encodeURIComponent(truste.eu.noticeLP.privacypolicylink));Object.hasOwn(truste.eu.noticeLP,"cookieLinkText")&&(c+="&cookieLinkText="+encodeURIComponent(truste.eu.noticeLP.cookieLinkText));
Object.hasOwn(truste.eu.noticeLP,"cookieLink")&&!e.test(truste.eu.noticeLP.cookieLink)&&(c+="&cookieLink="+encodeURIComponent(truste.eu.noticeLP.cookieLink));a.feat.isReconsentEvent&&(c+="&repop=true");a.feat.iab&&(c+="&iab=true");a.feat.enableACString&&(c+="&atp=true");a.feat.enableTwoStepVerification&&(c+="&twoStep=true");a.feat.optoutClose&&(c+="&optoutClose=true");a.behaviorManager&&(c+="&behaviorManager="+a.behaviorManager);a.seedUrl&&(c+="&seed_url="+a.seedUrl);a.cmId&&(c+="&cm_id="+a.cmId);
a.feat.showDisclosure&&(c+="&showDisclosure=true");a.feat.enableCPRA&&(c+="&is_cpra="+a.feat.enableCPRA,c+="&is_finprog="+truste.eu.cpra.shouldShowFinProg(),a.feat.isGPCOptoutEvent?c+="&is_gpc="+a.feat.gpc:a.feat.isDNTOptoutEvent&&(c+="&is_dnt="+a.feat.dnt),f&&(c+="&cpra_consent="+f.cpraConsent,c+="&cpra_source="+f.cpraSource));a.feat.gpp.gppApplies&&(c+="&showGPPCategories="+a.feat.gpp.gppShowCategories);(f=truste.util.isGPCHonored())&&(c+="&gpchonored="+f);c+="&irm="+d;c+="&from="+a.iconBaseUrl;
c+="&session="+truste.eu.session;c+="&userType="+truste.eu.userType;var l=truste.eu.isAccessibleLayout(a.prefmgrUrl);l&&(c+="&windowInnerHeight="+window.innerHeight.toString());let k=truste.eu.isGwtCm(a);f=a.prefmgrUrl;k||(e=new URL(f),f=a.isGppLayout?"gpp-bundle.js":a.isIabLayout?l?"iab-accessible-bundle.js":"iab-bundle.js":l?"adv-accessible-bundle.js":"adv-bundle.js",e.pathname=`/asset/${f}`,e.search="?v="+a.version,f=e.toString());var p=k?null:self.document.getElementById("truste-consent-container"),
q=k?self.document.getElementById("truste-consent-iframe")||self.document.createElement("iframe"):p||self.document.createElement("div");k&&(q.src=c);var r=k?!!self.document.getElementById("truste-consent-iframe"):!!p;if(r)truste.eu.popframe=k?"truste-consent-iframe":"truste-consent-container";else{truste.eu.createPrefViewStyle(a,"iab_manage_settings"==b||"iab_manage_settings_partners"==b);var t=self.document.createElement("div");t.setAttribute("id",truste.eu.popdiv);t.className="truste_overlay";if(a.outerdiv){var u=
self.document.createElement("div");u.id=truste.eu.outerdiv;u.className="truste_cm_outerdiv"}var y=self.document.createElement("div");y.setAttribute("id",truste.eu.popdiv2);y.className="truste_box_overlay";k||(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"));var v=self.document.createElement("div");v.setAttribute("id",
truste.eu.popdiv3);v.className="truste_box_overlay_inner";v.tabIndex="-1";v.setAttribute("role","dialog");v.setAttribute("aria-modal","true");v.setAttribute("aria-label",truste.util.htmlDecode(truste.eu.bindMap.localization.modalTitle));e=a.externalcss||"";e=k?e:truste.eu.buildStylesForNewCm(a)+e;g=document.createElement("style");(h=document.querySelector("[nonce]"))&&g.setAttribute("nonce",h.nonce||h.getAttribute("nonce"));g.appendChild(document.createTextNode(e));v.appendChild(g);var A=self.document.createElement("div");
A.className="truste_box_overlay_border";q.id=truste.eu.popframe;k&&(q.title=a.iframeTitle);a.hideCloseButtonEnabled||l||(q.tabIndex="1");q.scrolling="no";q.setAttribute("name","trustarc_cm");q.className=k?"truste_popframe":"trustarc_newcm_container truste_popframe"}k&&(q.onload=function(w){(q.parentElement||q.parentNode[0]).focus();setTimeout(function(){truste.eu.cmLoading||(null!=truste.eu.cancelCmTimeout&&(clearTimeout(truste.eu.cancelCmTimeout),truste.eu.cancelCmTimeout=null),truste.eu.sendclosereport=
!1,truste.eu.prefclosebutton())},truste.eu.bindMap.cmTimeout)});!d||!truste.eu.optOutDone&&truste.eu.irmLandingPageReached||(t.classList.add("truste_visibility_hidden"),a.outerdiv?u.classList.add("truste_visibility_hidden"):y.classList.add("truste_visibility_hidden"),truste.util.trace("CM hidden"));truste.eu.iframe=q;k||(truste.util.tryRenderConsentManager=()=>{if(window.TrustArcConsentManager&&document.body&&document.body.contains(q)){const w=Object.fromEntries((new URL(c)).searchParams.entries());
w.cmType="ADV";window.TrustArcConsentManager.renderDirectEmbed(q,w)}},window.TrustArcConsentManager||(d=document.createElement("script"),d.src=f,d.type="module",d.onload=function(){truste.util.tryRenderConsentManager()},d.onerror=function(w){truste.eu.prefclose();console.error("Failed to load Consent Manager script:",w)},document.head.appendChild(d)));truste.eu.runOnReady(function(){r?!k&&p&&truste.util.tryRenderConsentManager():(self.document.body.appendChild(t),u?(self.document.body.appendChild(u),
u.appendChild(y),u.appendChild(A)):(self.document.body.appendChild(y),self.document.body.appendChild(A)),y.appendChild(v),v.appendChild(A),v.appendChild(q),k||truste.util.tryRenderConsentManager());try{for(var w=self.document.getElementsByTagName("object"),H=w.length;0<H--;){var C=w[H];C&&(C.className+=" truste_hidden")}}catch(D){}l||a.hideCloseButtonEnabled||truste.eu.addCloseButton(a,"cm",b);truste.util.addListener(self.document,"focus",function(D){var E=self.document.getElementById(truste.eu.popdiv3);
E&&!E.contains(D.target)&&(D.stopPropagation(),E.focus())});self.location.hash&&self.sessionStorage.setItem("oldHash",self.location.hash);a.feat.noscrolltop||self.scrollTo(0,0);truste.eu._dispatchEvent("open");truste.util.fireCustomEvent("truste-iframe-open",{});truste.eu.gpp.updateCmpDisplayStatus("visible");if(k){if(l){var F=window.innerHeight;window.addEventListener("resize",function(){window.innerHeight!==F&&(F=window.innerHeight,truste.eu.postMessageToFrame("setWindowInnerHeight",F.toString()))})}truste.eu.cancelCmTimeout=
setTimeout(function(){truste.eu.sendclosereport=!1;truste.eu.prefclosebutton();truste.eu.cancelCmTimeout=null},3E4)}})};truste.eu.isAccessibleLayout=function(a){return a&&"string"===typeof a?(a=(new URLSearchParams(a.split("?")[1])).get("layout")||"",a.includes("_accessible")||"gpp"==a):!1};truste.eu.irmView=function(a){truste.util.trace("opening IRM iframe");truste.eu.irmLandingPageReached=!1;truste.eu.optOutDone=!1;truste.eu.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 b=a.IRMIntegrationURL,d=self.document.createElement("iframe"),f=!!self.document.getElementById("truste-consent-iframe-irm");if(!f){truste.eu.createIRMViewStyle(a);var c=self.document.createElement("div");c.setAttribute("id",
truste.eu.popdiv_irm);c.className="truste_irm_overlay";if(a.outerdiv){var e=self.document.createElement("div");e.id=truste.eu.outerdiv_irm;e.className="truste_irm_outerdiv"}var g=self.document.createElement("div");g.setAttribute("id",truste.eu.popdiv2_irm);g.className="truste_irm_box_overlay";truste.eu.applyCSS(a.styles.box_overlay,g);var h=self.document.createElement("div");h.setAttribute("id",truste.eu.popdiv3_irm);h.className="truste_irm_box_overlay_inner";h.tabIndex="1";var l=self.document.createElement("div");
l.className="truste_irm_box_overlay_border"}d=self.document.getElementById("truste-consent-iframe-irm")||self.document.createElement("iframe");d.src=b;f?truste.eu.popframe_irm="truste-consent-iframe-irm":(d.id=truste.eu.popframe_irm,d.tabIndex="0",d.scrolling="yes",d.className="truste_irm_popframe");truste.eu.iframe_irm=d;truste.eu.runOnReady(function(){f||(self.document.body.appendChild(c),e?(self.document.body.appendChild(e),e.appendChild(g),e.appendChild(l)):(self.document.body.appendChild(g),
self.document.body.appendChild(l)),g.appendChild(h),h.appendChild(l),h.appendChild(d));try{for(var k=self.document.getElementsByTagName("object"),p=k.length;0<p--;){var q=k[p];q&&(q.className+=" truste_hidden")}}catch(r){}truste.eu.addCloseButton(a,"irm");truste.util.addListener(self.document,"focus",function(r){var t=self.document.getElementById(truste.eu.popdiv3_irm);t&&!t.contains(r.target)&&(r.stopPropagation(),t.focus())});a.feat.noscrolltop||self.scrollTo(0,0);truste.eu._dispatchEvent("open");
truste.util.fireCustomEvent("truste-iframe-open",{});truste.eu.gpp.updateCmpDisplayStatus("visible")})};truste.eu.findHighestZIndex=function(a){a=self.document.getElementsByTagName(a||"*");for(var b=0,d,f=0;f<a.length;f++)if(self.getComputedStyle||a[f].style.position&&"static"!=a[f].style.position)d=parseInt(truste.util.getStyle(a[f],"z-index")),d>b&&(b=d);return b};truste.eu.onBeforeUnload=function(a){return"Please allow optouts to finish before navigating out of the page!"};truste.eu.showCM=function(a){try{var b,
d;if(d=(b=self.document.getElementById(truste.eu.popdiv))&&self.document.getElementById(truste.eu.popdiv2))return a&&"false"!=a?(b.classList.remove("truste_visibility_hidden"),d.classList.remove("truste_visibility_hidden"),b.classList.add("truste_visibility_visible"),d.classList.add("truste_visibility_visible")):(b.classList.remove("truste_visibility_visible"),d.classList.remove("truste_visibility_visible"),b.classList.add("truste_visibility_hidden"),d.classList.add("truste_visibility_hidden")),truste.eu.gpp.updateCmpDisplayStatus(a?
"visible":"hidden"),!0}catch(f){truste.eu.error("Error showing CM",f)}return!1};truste.eu.error=function(a,b,d){d=d||{};d.mod="eu";d.domain=d.domain||truste.eu.bindMap&&truste.eu.bindMap.domain||void 0;d.caller=self.location.hostname;d.path=self.location.pathname;truste.util.error(a,b,d)};truste.eu.applyCSS=function(a,b){if(a)for(var d in a)b.style[d]=a[d]};truste.eu.createPrefViewStyle=function(a,b){var d=self.document.documentElement,f=2*truste.eu.findHighestZIndex("div"),c=Math.min(2147483647,
f+2E6),e=" ",g=" ",h=" ",l=" ";a.width&&(e="max-width: "+a.width+"px;");b?(g="min-height: 400px;",d.style.setProperty("--truste-box-overlay-height","auto"),l=h="min-height: 400px;"):a.height&&d.style.setProperty("--truste-box-overlay-height",a.height+"px");d.style.setProperty("--truste-box-overlay-margin-left","auto");d.style.setProperty("--truste-box-overlay-inner-height","100%");d.style.setProperty("--truste-popframe-height","100%");b=".truste_overlay {background-color: #000;opacity: 0.4;position: fixed;z-index: "+
Math.min(2147483646,f+1E6)+";width: 100%;height: 100%;top: 0px;left: 0px;overflow: hidden;filter: Alpha(Opacity: 80);";if(a.styles.overlay)for(var k in a.styles.overlay)b+=k+": "+a.styles.overlay[k]+";";b+="}";e=".truste_box_overlay {position: absolute;z-index:"+c+";top: 0px;left: 0px;bottom: 0px;right: 0px;border-radius: 5px;padding: 10px;width: 80%;"+e+g+"height: var(--truste-box-overlay-height);min-width: 220px;margin: 20px auto 20px var(--truste-box-overlay-margin-left);box-sizing: content-box;";
if(a.styles.box_overlay)for(k in a.styles.box_overlay)e+=k+": "+a.styles.box_overlay[k]+";";e+="}";h=".truste_box_overlay_inner {position: relative;width: 100%;height: var(--truste-box-overlay-inner-height);outline: none;"+h+"}";g=truste.eu.isAccessibleLayout(a.prefmgrUrl);if(!g){var p=".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(a.styles.box_overlay_border)for(k in a.styles.box_overlay_border)p+=
k+": "+a.styles.box_overlay_border[k]+";";p+="}"}c=".truste_cm_outerdiv {width: 100%;height: 100%;overflow: scroll;position: absolute;top: 0;left: 0;z-index: "+c+";-webkit-overflow-scrolling: touch;";if(a.styles.outerdiv)for(k in a.styles.outerdiv)c+=k+": "+a.styles.outerdiv[k]+";";l=".truste_popframe {border: 0px;"+(g?"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);"+
l;if(a.styles.inner_iframe)for(k in a.styles.inner_iframe)l+=k+": "+a.styles.inner_iframe[k]+";";a=b+e+h+p+(c+"}")+(l+"}");k=document.createElement("style");k.setAttribute("type","text/css");(p=document.querySelector("[nonce]"))&&k.setAttribute("nonce",p.nonce||p.getAttribute("nonce"));k.innerText=a;document.head.insertBefore(k,document.head.firstChild);truste.eu.createCommonStyle()};truste.eu.buildStylesForNewCm=a=>{var b=truste.eu.isAccessibleLayout(a.prefmgrUrl)?"":"\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(a.styles.box_overlay_border)for(const d in a.styles.box_overlay_border)b+=d+": "+a.styles.box_overlay_border[d]+";";return b+"} \n                .trustarc_newcm_container {\n                  position: inherit;\n                } "};truste.eu.createIRMViewStyle=function(a){var b=self.document.documentElement,d=2*truste.eu.findHighestZIndex("div"),f=Math.min(2147483647,d+2E6),c=" ";a.width&&(c="max-width: "+a.irmWidth+"px;");b.style.setProperty("--truste-box-overlay-margin-left","auto");b.style.setProperty("--truste-box-overlay-inner-height",
"100%");b.style.setProperty("--truste-popframe-height","100%");b=".truste_irm_overlay {background-color: #000;opacity: 0.4;position: fixed;z-index: "+Math.min(2147483646,d+1E6)+";width: 100%;height: 100%;top: 0px;left: 0px;overflow: hidden;filter: Alpha(Opacity: 80);";if(a.styles.overlay)for(var e in a.styles.overlay)b+=e+": "+a.styles.overlay[e]+";";c=".truste_irm_box_overlay {position: absolute;z-index:"+f+";top: 0px;left: 0px;bottom: 0px;right: 0px;border-radius: 5px;padding: 10px;width: 80%;"+
c+"height: "+a.irmHeight+"px;min-width: 220px;margin: 20px auto 20px var(--truste-box-overlay-margin-left);box-sizing: content-box;";if(a.styles.box_overlay)for(e in a.styles.box_overlay)c+=e+": "+a.styles.box_overlay[e]+";";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(a.styles.box_overlay_border)for(e in a.styles.box_overlay_border)d+=e+": "+a.styles.box_overlay_border[e]+
";";f=".truste_irm_outerdiv {width: 100%;height: 100%;overflow: scroll;position: absolute;top: 0;left: 0;z-index: "+f+";-webkit-overflow-scrolling: touch;";if(a.styles.outerdiv)for(e in a.styles.outerdiv)f+=e+": "+a.styles.outerdiv[e]+";";var g=".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(a.styles.inner_iframe)for(e in a.styles.inner_iframe)g+=e+": "+a.styles.inner_iframe[e]+
";";a=b+"}"+(c+"}.truste_irm_box_overlay_inner {position: relative;width: 100%;height: 100%;outline: none;}")+(d+"}")+(f+"}")+(g+"}");e=document.createElement("style");e.setAttribute("type","text/css");(f=document.querySelector("[nonce]"))&&e.setAttribute("nonce",f.nonce||f.getAttribute("nonce"));e.innerText=a;document.head.insertBefore(e,document.head.firstChild);truste.eu.createCommonStyle()};truste.eu.createCommonStyle=function(){var a=document.createElement("style");a.setAttribute("type","text/css");
var b=document.querySelector("[nonce]");b&&a.setAttribute("nonce",b.nonce||b.getAttribute("nonce"));a.innerText=".truste_visibility_visible {visibility: visible;}.truste_visibility_hidden {visibility: hidden;}";document.head.insertBefore(a,document.head.firstChild)};truste.eu.icon=Object.create(null);truste.eu.icon.make=function(a){if(!truste.eu.prefButton){var b=truste.eu.bindMap,d=truste.eu.prefButton=self.document.createElement("a");b.feat.enableIconRole&&d.setAttribute("role",b.iconRole?b.iconRole:
"true"==b.text?"link":"button");truste.util.addListener(d,"click",a);d.id=truste.eu.iconid=("icon-id"+Math.random()).replace(".","");d.tabIndex="0";d.setAttribute("lang",b.locale.replace("_","-"));b.feat.enableHasPopUp&&d.setAttribute("aria-haspopup","dialog");b.feat.enableIconLabel&&d.setAttribute("aria-label",b.teconsentChildAriaLabel);truste.util.addListener(d,"keydown",function(f){f||(f=window.event);var c=f.which||f.keyCode;if(13==c||32==c)f.preventDefault?f.preventDefault():event.returnValue=
!1,d.click()});truste.eu.createIconStyle();"true"==b.text&&b.icon?(d.classList.add("truste_cursor_pointer"),truste.eu.isAccessibleLayout(b.prefmgrUrl)&&d.classList.add("truste_accessible_link"),d.innerHTML=b.icon):(a=self.document.createElement("img"),a.classList.add("truste_border_none"),a.classList.add("truste_cursor_pointer"),a.onerror=function(){truste.eu.icon.make()},d.appendChild(a),a=b.assetServerURL+(b.cookiePreferenceIcon||b.language+"-cookiepreferencestext.png"),d.firstChild.src?"en"!=b.language&&
d.firstChild.src==a?d.firstChild.src=b.assetServerURL+b.cookiePreferenceIcon.substring(3):(d.classList.add("truste_cursor_pointer"),d.innerHTML=b.icon):(d.firstChild.src=a,d.firstChild.alt=b.icon))}};truste.eu.icon.show=function(){var a=truste.eu.prefButton,b=truste.eu.bindMap,d=truste.eu.caIcon;d?(d.appendChild(a),d.setAttribute("consent",truste.eu.bindMap.prefCookie),b.feat.enableContainerLabel&&d.setAttribute("aria-label","Open Cookie Preferences Modal"),truste.eu.createCaIconStyle(d),"eu"==truste.eu.bindMap.behaviorManager&&
"expressed"!=truste.eu.bindMap.behavior||d.classList.add("truste_caIcon_display"),b.feat.enableContainerRole&&d.setAttribute("role",b.containerRole?b.containerRole:"complementary"),truste.eu.icon.gpcMessage()):truste.eu.jsNode1&&truste.eu.jsNode1.parentNode.insertBefore(a,truste.eu.jsNode1)};truste.eu.icon.gpcMessage=function(){let a=truste.eu.bindMap,b=truste.eu.caIcon;if(b&&a.feat.gpcMessageEnabled){var d=self.document.getElementById("truste-gpc-icon");truste.util.isGPCHonored()?d||(d=self.document.createElement("img"),
d.id="truste-gpc-icon",d.src=a.assetServerUrl+"gpc-logo-small.svg",d.style.cursor="pointer",d.title=a.gpcMessageTooltip,b.appendChild(d)):d&&d.remove()}};truste.eu.icon.initialize=function(){var a=truste.eu.bindMap;truste.eu.caIcon=self.document.getElementById(a.containerId)||self.document.getElementById("teconsent");var b=a.containerId==decodeURI("%5F%4C%42c%4C%42%5F")?null:a.containerId;truste.eu.caIcon||!b&&truste.eu.jsNode1&&"HEAD"!=truste.eu.jsNode1.parentNode.nodeName&&(truste.eu.caIcon=truste.eu.jsNode1.parentNode)?
truste.eu.icon.show():b&&truste.util.executeOnCondition(function(){truste.eu.caIcon=truste.eu.caIcon||self.document.getElementById(a.containerId)||self.document.getElementById("teconsent");return truste.eu.caIcon},truste.eu.icon.show,100,6E4)};truste.eu.createIconStyle=function(){var a=document.createElement("style");a.setAttribute("type","text/css");var b=document.querySelector("[nonce]");b&&a.setAttribute("nonce",b.nonce||b.getAttribute("nonce"));a.innerText=".truste_cursor_pointer {cursor: pointer;}.truste_border_none {border: none;}.truste_accessible_link {color: #1D4ED8;font-size: 14px;font-weight: 600;text-decoration: underline;}.truste_accessible_link:hover {color: #1D4ED8;text-decoration: none !important;}.truste_accessible_link:focus-visible {outline: none;border-radius: 4px;box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 4px #3699F1;}";
document.head.insertBefore(a,document.head.firstChild)};truste.eu.createCaIconStyle=function(a){a=".truste_caIcon_display {display: "+truste.util.getDisplayProperty(a)+" !important;}";var b=document.createElement("style");b.setAttribute("type","text/css");var d=document.querySelector("[nonce]");d&&b.setAttribute("nonce",d.nonce||d.getAttribute("nonce"));b.innerText=a;document.head.insertBefore(b,document.head.firstChild)};truste.eu.irm={};truste.eu.irm.initialize=function(){var a=truste.eu.bindMap;
truste.util.executeOnCondition(function(){truste.eu.irmLinkContainer=truste.eu.irmLinkContainer||self.document.getElementById(a.irmContainerId);return truste.eu.irmLinkContainer},truste.eu.irm.show,100,3E4)};truste.eu.irm.show=function(){var a=truste.eu.irmLink,b=truste.eu.irmLinkContainer;b&&(b.appendChild(a),b.style.display=truste.util.getDisplayProperty(b),a=truste.eu.bindMap,a.feat.enableContainerRole&&b.setAttribute("role",a.containerRole?a.containerRole:"complementary"))};truste.eu.irm.make=
function(a){if(!truste.eu.irmLink){var b=truste.eu.bindMap,d=truste.eu.irmLink=self.document.createElement("a");truste.util.addListener(d,"click",a);d.id=truste.eu.irmId=("irm-id-"+Math.random()).replace(".","");d.tabIndex="0";b.feat.enableHasPopUp&&d.setAttribute("aria-haspopup","dialog");b.feat.enableIconRole&&d.setAttribute("role",b.iconRole?b.iconRole:"link");d.setAttribute("lang",b.locale.replace("_","-"));truste.util.addListener(d,"keydown",function(f){f||(f=window.event);var c=f.which||f.keyCode;
if(13==c||32==c)f.preventDefault?f.preventDefault():event.returnValue=!1,d.click()});d.style.cursor="pointer";d.innerHTML=b.irmText}};truste.eu.irm.optout=function(){var a=truste.eu.bindMap;a.feat.enableIrmAutoOptOut?(truste.util.trace("irm form submitted. beginning optout"),truste.eu.submittedIRM=!0,truste.eu.toggleCloseButton(a,"false"),truste.eu.isGwtCm(a)?truste.eu.prefview(a,"prefmgr",!0):truste.util.optoutRequired(),setTimeout(function(){truste.eu.irmLandingPageReached||truste.eu.toggleCloseButton(a,
"true")},5E3)):truste.util.trace("irm form submitted. Auto opt out disabled")};truste.eu.isGPCDNTEvent=function(){var a=truste.eu.bindMap;return a.feat.isGPCOptoutEvent||a.feat.isDNTOptoutEvent};truste.eu.resetGpcDnt=function(){var a=truste.eu.bindMap;truste.eu.isGPCDNTEvent()&&(a.feat.isGPCOptoutEvent=!1,a.feat.isDNTOptoutEvent=!1)};truste.eu.autoOptout=function(a,b){var d=truste.eu.bindMap;a||=truste.util.createHighestLevelCookie();d.feat.gpp.gppApplies?truste.eu.isGPCDNTEvent()&&(d.feat.gpp.gppShowCategories||
(a=truste.util.findCommonIntegers(a,d.feat.gpp.gppOptInAll)),truste.eu.dropAutoOptOutCookies(a,b),truste.eu.gpp.gppAutoOptOut()&&truste.eu.ccpaOptOut(b)):d.feat.ccpaApplies?truste.eu.ccpaOptOut(b):truste.eu.dropAutoOptOutCookies(a,b)};truste.eu.dropAutoOptOutCookies=function(a,b){var d=truste.eu.bindMap;truste.util.validConsent(a)&&(truste.eu.bindMap.prefCookie=a);truste.util.dropOptoutDomains(a,function(){truste.eu.bindMap.feat.isGPCOptoutEvent&&truste.util.isConsentCenter()&&(truste.eu.flags.isLocalStorageOptOutUpdated=
!0);truste.util.createPreferenceFromCookieValue(a,b,null,null,d.feat.gpcdntflag)})};truste.eu.ccpaOptOut=function(a){truste.eu.ccpa.dropCcpaCookie(!0,truste.eu.bindMap.feat.dntShowUI?"Y":"N");truste.util.consentRequiredlevel(a);truste.eu.bindMap.feat.isGPCOptoutEvent&&truste.util.isConsentCenter()&&(truste.eu.flags.isLocalStorageOptOutUpdated=!0)};truste.eu.gpcDntGPPAutoOptOut=function(){var a=!1,b=truste.eu.bindMap;b=truste.eu.isGwtCm(b)?"/defaultconsentmanager/getGPPAutoOptOut?":`/cm/${b.domain}/gpp/auto-opt-out?`;
truste.util.callCMEndpoint(b,null,function(d){var f=d.responseText,c=truste.util.parseJSON(f);console.log("GPP Auto OptOut Response: "+d.responseText);f&&c&&(d=truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify,f={source:"preference_manager",message:"process_gpp_consent",data:c},window.postMessage&&window.postMessage(d(f),"*"),a=2!==c.saleOptOut&&2!==c.sharingOptOut&&2!==c.targetedAdvertisingOptOut)},!1,null);return a};truste.eu.gpcDntAutoOptOut=function(){if(truste.util.isGpc()||
truste.util.isDnt()){var a=truste.eu.bindMap;a.feat.ccpaApplies&&!a.feat.gpp.gppApplies&&(a.gpcOptedIn="0",a.dntOptedIn="0");if(a.feat.gpc){var b=a.gpcOptedIn;a.feat.gpcOvr&&null!=a.prefCookie&&""!==a.prefCookie&&(b=truste.util.findCommonIntegers(b,a.prefCookie+""));a.feat.isGPCOptoutEvent=!0}else b=a.dntOptedIn,a.feat.isDNTOptoutEvent=!0;if(a.feat.isGPCOptoutEvent||a.feat.isDNTOptoutEvent)a.feat.gpcdntflag=1;if(truste.eu.cpra.shouldShowFinProg()&&!truste.util.isAcceptAll(b))truste.bn&&truste.bn.handleBannerDone&&
truste.bn.handleBannerDone(),truste.eu.clickListener(7,!0,{cpraConsent:b,cpraSource:a.feat.isGPCOptoutEvent?"gpc":"dnt"});else{a=truste.util.isAutoblock()&&trustarc.ccm.cab.getInfo().sourceConsent;var d="dnt"==a||"gpc"==a;d&&(truste.util.trace("sourceConsent : ["+a+"] reset"),trustarc.ccm.cab.resetSourceConsent());truste.eu.autoOptout(b,d)}}};truste.eu.ccpa={};truste.eu.COOKIE_USPRIVACY="usprivacy";truste.eu.USP_VERSION="1";truste.eu.USP_FILE_NAME="uspapi.js";truste.eu.ccpa.uspString=function(a,b){var d=
truste.eu.bindMap,f="1---";d.feat.ccpaApplies&&(f=/^[nNyY-]$/,"undefined"!==typeof b&&f.test(b)||(b="Y"),d=f.test(d.lspa)?d.lspa:"-",f=truste.eu.USP_VERSION+b+(a?"Y":"N")+d);return f};truste.eu.ccpa.dropCcpaCookie=function(a,b){truste.eu.bindMap.feat.enableCCPA&&truste.util.createCookie(truste.eu.COOKIE_USPRIVACY,truste.eu.ccpa.uspString(a,b))};truste.eu.ccpa.getOptout=function(){var a=truste.util.readCookie(truste.eu.COOKIE_USPRIVACY);return/^[1][nNyY-][nNyY-][nNyY-]$/.test(a)?a.charAt(2):null};
truste.eu.ccpa.showLink=function(){var a=truste.eu.bindMap,b=truste.eu.ccpaLink=self.document.createElement("a");truste.util.addListener(b,"click",function(){truste.bn.reopenBanner&&truste.bn.reopenBanner()});b.id=truste.eu.irmId=("ccpa-id-"+Math.random()).replace(".","");b.tabIndex="0";a.feat.enableIconRole&&b.setAttribute("role",a.iconRole?a.iconRole:"link");b.setAttribute("lang",a.locale.replace("_","-"));truste.util.addListener(b,"keydown",function(f){f||(f=window.event);var c=f.which||f.keyCode;
if(13==c||32==c)f.preventDefault?f.preventDefault():event.returnValue=!1,b.click()});b.style.cursor="pointer";b.innerHTML=a.ccpaText;var d=document.getElementById(a.containerId);d&&(d.appendChild(b),d.style.display=truste.util.getDisplayProperty(d),a.feat.enableContainerRole&&d.setAttribute("role",a.containerRole?a.containerRole:"complementary"))};truste.eu.ccpa.initialize=function(){var a=truste.eu.bindMap;a.feat.enableCCPA&&truste.util.addScriptElement(a.assetServerURL+truste.eu.USP_FILE_NAME,function(){a.feat.gpp.gppApplies||
(a.prefCookie||truste.eu.ccpa.dropCcpaCookie(a.feat.ccpadefault||!1,"Y"),a.feat.ccpaApplies&&truste.util.executeOnCondition(function(){return self.document.getElementById(a.containerId)},truste.eu.ccpa.showLink,100,1E4))})};truste.eu.saveUserConsent=function(a,b,d,f,c,e,g,h,l,k,p){var q=truste.eu.bindMap.feat.crossDomain?"/v1/controller/consent/user/"+a:"/v1/controller/setUserConsent/"+a+"_"+window.location.hostname;try{a?truste.util.httpRequest(truste.eu.USER_CONSENT_CENTER_SERVER+q,"POST",JSON.stringify({user_id:a,
user_preferences:b,domain:d,financial_program:f,cross_domain:c,cookie_date:Date.now(),optout_domains:e||"",site:window.location.hostname,cookie_expiry:g,is_gpc_honored:h,gpc_pref_overridden:l,ccpa_cookie:k||"",pop_time:p||""}),null):truste.util.trace("UserID binding failed.")}catch(r){truste.util.trace(r.message,r.stack)}};truste.eu.getUserConsent=function(a,b){var d=truste.eu.bindMap;d.feat.crossDomain?truste.eu.getUserCenterCall("/v1/controller/consent/user/"+a+"?domainId="+d.domain,a,function(f,
c){b(f,c);d.feat.isConsentRetrieved=!0}):truste.eu.getUserCenterCall("/v1/controller/getUserConsent/"+a+"_"+window.location.hostname,a,b)};truste.eu.getUserCenterCall=function(a,b,d){try{b&&truste.util.httpRequest(truste.eu.USER_CONSENT_CENTER_SERVER+a,"GET",null,d)}catch(f){truste.util.trace(f.message,f.stack)}};truste.eu.cpra={};truste.eu.COOKIE_CPRA_FINPROG="notice_cpra_finprog";truste.eu.cpra.shouldShowFinProg=function(){var a=truste.eu.bindMap,b=truste.util.readCookie(truste.eu.COOKIE_CPRA_FINPROG,
!0);return a.feat.enableCPRA&&"true"==truste.eu.noticeLP.finprog&&(!b||"true"===b)&&(1==truste.eu.noticeLP.gtm||!truste.util.validConsent(a.prefCookie)||truste.util.isAcceptAll(a.prefCookie))};truste.eu.cpra.dropCpraCookie=function(a,b){truste.eu.bindMap.feat.enableCPRA&&truste.util.createCookie(truste.eu.COOKIE_CPRA_FINPROG,a,b,!0,!0)};truste.eu.cpra.yes=function(a){truste.eu.cpra.dropCpraCookie(!0);switch(a){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":"undefined"!=
typeof truste.bn&&truste.bn.acceptAll?truste.bn.acceptAll():truste.util.optinAll()}};truste.eu.cpra.no=function(a,b){truste.eu.cpra.dropCpraCookie(!1);switch(b){case "gpc":case "dnt":truste.eu.isGPCDNTEvent()&&truste.eu.autoOptout(a);break;case "banner-decline":"undefined"!=typeof truste.bn&&truste.bn.declineAll&&truste.bn.declineAll();break;case "banner-decline-ccpa":"undefined"!=typeof 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(a)}};truste.eu.gpp=Object.create(null);truste.eu.GPP_FILENAME="gpp.js";truste.eu.gpp.initialize=function(){try{var a=truste.eu.bindMap,b=a.feat.gpp;b.enabled&&b.gppApplies&&truste.util.addScriptElement(a.assetServerURL+truste.eu.GPP_FILENAME)}catch(d){truste.util.error("Unable to load GPP script: "+d.message)}};truste.eu.gpp.updateCmpDisplayStatus=function(a){if(truste.eu.bindMap.feat.gpp.enabled){var b=
truste.util&&truste.util.getJSON||truste.cma&&truste.cma.cheapJSON||window.JSON.stringify;a={source:"preference_manager",message:"update_cmp_display_status",data:{status:a}};window.postMessage&&window.postMessage(b(a),"*")}};truste.eu.gpp.gppAutoOptOut=function(){var a=!1;truste.eu.bindMap.feat.gpp.enabled&&truste.util.executeOnCondition(truste.eu.gpp.isGppApiLoaded,function(){a=truste.eu.gpcDntGPPAutoOptOut()},10,3E4);return a};truste.eu.gpp.sendAutoOptOutMessage=function(a){var b=truste.util&&truste.util.getJSON||
truste.cma&&truste.cma.cheapJSON||window.JSON.stringify;a={source:"preference_manager",message:"process_gpp_auto_opt_out",data:{isGpc:a}};window.postMessage&&window.postMessage(b(a),"*")};truste.eu.gpp.isGppApiLoaded=function(){var a=!1;__gpp("ping",function(b,d){d&&"loaded"==b.cmpStatus&&(a=!0)});return a};truste.eu.ACS_FILENAME="amzn-consent.js";truste.eu.acsInsertScript=function(){var a=truste.eu.bindMap;a.feat.acs&&a.feat.acs.enabled&&"undefined"===typeof window.amznConsent&&truste.util.addScriptElement(a.feat.acsUrl||
a.assetServerURL+truste.eu.ACS_FILENAME,function(b,d){2==d&&(truste.util.trace("Unable to access ACS URL. Using asset server instead."),truste.util.addScriptElement(a.assetServerURL+truste.eu.ACS_FILENAME,null,null,!0,null))},null,!0,null)};truste.eu.acsSendConsent=function(){var a=truste.eu.bindMap;a.feat.acs&&a.feat.acs.enabled&&truste.util.executeOnCondition(function(){return"undefined"!==typeof window.amznConsent},function(){var b=window.amznConsent();b.setCountryCode(a.country);var d="opt-in"===
a.consentModel?!0:!1,f=a.prefCookie&&a.prefCookie.split(/[,|]/);a.feat.acs.adStorage&&(f?b.setEnableAdStorage(f.includes(a.feat.acs.adStorage)):b.setEnableAdStorage(d));a.feat.acs.userData&&(f?b.setEnableUserData(f.includes(a.feat.acs.userData)):b.setEnableUserData(d));(d=truste.util.readCookieSimple("euconsent-v2"))&&b.setTcf(d);b.build()},10,3E4)};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(a){var b=truste.eu.bindMap,d=b.prefCookie,f=truste.util.getIntValue(d),c={},e=[];d&&null!==f&&-1!==f&&(e=d.split(/[,|]/).map(function(h){return parseInt(h)}));for(var g=0;g<b.categoryCount;g++)c["ta_category_"+(g+1)]=null===d||void 0===d||null===f?void 0:-1===f?!1:-1!==e.indexOf(g);return{event:a,timestamp:(new Date).getTime(),consent:c,consentModel:b.consentModel||"none"}};truste.eu.events.pushToDataLayer=function(a){if(truste.eu.bindMap.feat.pushEventsToDataLayer){var b=truste.eu.noticeLP?.dl||
"dataLayer";if(/(__proto__|prototype|constructor)/i.test(b)||"string"!==typeof b)b="dataLayer";self[b]=self[b]||[];"function"===typeof self[b].push&&self[b].push(a)}};truste.eu.events.fireCcmReady=function(){var a=truste.eu.events.buildConsentEventData(truste.eu.events.CCM_READY);truste.util.fireCustomEvent(truste.eu.events.CCM_READY,a);truste.eu.events.pushToDataLayer(a)};truste.eu.events.fireConsentUpdated=function(){var a=truste.eu.events.buildConsentEventData(truste.eu.events.CONSENT_UPDATED);
truste.util.fireCustomEvent(truste.eu.events.CONSENT_UPDATED,a);truste.eu.events.pushToDataLayer(a)};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.util.COOKIE_NS="truste.eu.cookie.";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=function(a,b){var d=truste.eu.bindMap;if(2==b)return truste.util.error("Failed to load binding JS at URL: "+a.src);if(!d)return truste.util.trace("Did not load JS0");truste.eu.acsInsertScript();truste.util.getRandomUUID=function(){var c=window.crypto||window.msCrypto;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(e){return(e^c.getRandomValues(new Uint8Array(1))[0]&15>>e/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||{});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(c){return(c=(new RegExp("\\s*"+c.replace(".","\\.")+"\\s*=\\s*([^;]*)")).exec(self.document.cookie))&&1<c.length?c[1]:null};a=truste.util.readCookieSimple(truste.eu.COOKIE_SESSION);null==a&&(userType=truste.util.readCookieSimple(truste.eu.COOKIE_GDPR_PREF_NAME)?"EXISTING":"NEW",a=truste.util.getRandomUUID()+"|"+userType,b=new Date,b.setTime(b.getTime()+18E5),
truste.util.createCookie(truste.eu.COOKIE_SESSION,a,b.toGMTString(),!1));a=a.split(/[|,]/);truste.eu.session=a[0];truste.eu.userType=a[1];truste.eu.newReporting=-1!==truste.eu.bindMap.apiDefaults.indexOf("newReporting");truste.util.sendAnalytics=function(c,e){c="action="+c+"&domain="+truste.eu.bindMap.domain+"&implied="+("implied"===truste.eu.bindMap.behavior?"1":"0")+"&session="+truste.eu.session.replaceAll("-","")+"&new="+("NEW"===truste.eu.userType?"1":"0")+"&referer="+window.origin;e&&(c+="&categories="+
e);fetch(truste.eu.bindMap.cdnURL+"analytics?"+c,{referrerPolicy:"origin-when-cross-origin"}).catch(function(){})};truste.eu.bindMap.feat.uidEnabled&&(a=truste.util.readCookieStorage(truste.eu.COOKIE_UID),null==a&&(a=truste.util.getRandomUUID()),truste.eu.consentUID=a);d.domain&&(truste.eu.noticeLP.domain=d.domain);d.behavior&&(truste.eu.noticeLP.behavior=d.behavior);d.country&&d.language&&(truste.eu.noticeLP.locale=d.country+"-"+d.language);truste.eu.noticeLP.pn&&truste.eu.noticeLP.pn.indexOf("-")&&
(a=truste.eu.noticeLP.pn.split("-"),1<a.length&&(truste.eu.noticeLP.pn="expressed"==d.behavior?a[1]:a[0]));truste.eu.addEventListener(function(c){"click"==c?(truste.eu.msg.log(c,d,d.messageBaseUrl),null==truste.util.getIntValue(d.prefCookie)&&truste.eu.msg.log("consent",d,d.messageBaseUrl)):"close"==c?(truste.eu.msg.poller.stop(),truste.eu.sendclosereport&&(c=truste.eu.bindMap.messageBaseUrl.replace("noticemsg","consentmsg"),truste.eu.msg.log("close_button",truste.eu.bindMap,c))):"open"==c&&truste.eu.msg.poller.start()});
if(null==truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME,!0)&&(a=truste.util.readCookie(truste.eu.COOKIE_PREF_NAME,!0),a=truste.util.getIntValue(a),null!=a)){b=[];if(-1==a)b.push(a);else for(var f=0;f<=a;f++)b.push(f);a=b.join()+":"+truste.eu.bindMap.daxSignature;b=truste.util.getStorage(truste.util.COOKIE_NS+truste.eu.COOKIE_PREF_NAME,!1);truste.util.createCookie(truste.eu.COOKIE_GDPR_PREF_NAME,a,b&&b.expires||0,!0)}d.feat.enableCM&&(d.feat.iabBannerApplies?truste.eu.icon.make(function(){truste.eu.clickListener(4);
d.returnFocusTo=truste.eu.iconid}):truste.eu.icon.make(function(){truste?.bn?.reopenBanner&&d.feat.linkbanner?truste.bn.reopenBanner():truste.eu.clickListener(truste.eu.noticeLP.pn);d.returnFocusTo=truste.eu.iconid}));d.feat.enableIRM&&truste.eu.irm.make(truste.eu.irmClickListener);a=function(){truste.eu.msg.addEventListener(truste.eu.actmessage);try{var c=self.document.createElement("style");c.type="text/css";var e=document.querySelector("[nonce]");e&&c.setAttribute("nonce",e.nonce||e.getAttribute("nonce"));
(c.sheet||{}).insertRule?c.sheet.insertRule("truste_hidden{visibility:hidden;}",0):(c.styleSheet||c.sheet).addRule("truste_hidden","visibility:hidden;");self.document.getElementsByTagName("head")[0].appendChild(c)}catch(g){}c=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);c&&(c=c.split(":"),d.prefCookie=c[0],d.daxCookie=c[1]);d.feat.enableCM&&
truste.eu.icon.initialize();d.feat.enableIRM&&truste.eu.irm.initialize();(c=Number(truste.util.readCookie(truste.eu.COOKIE_REPOP)))&&c<d.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(g,h){truste.eu.postUserCenterCallback(g,h)}):x();d.feat.crossDomain&&setTimeout(function(){d.feat.isConsentRetrieved=!0;x()},4500)};/Firefox[\/\s](\d+\.\d+)/.test(self.navigator.userAgent)&&
3.6>new Number(RegExp.$1)&&"complete"!=truste.util.readyState()?self.addEventListener("load",a,!1):a();d.apiDefaults&&13<d.apiDefaults.length&&self.PrivacyManagerAPI.init(d.apiDefaults);"implied"==d.behavior&&self.PrivacyManagerAPI.init({default_consent:"approved"});self.PrivacyManagerAPI.init(truste.eu.noticeLP,!0);truste.eu.flags={};truste.eu.flags.init=!0};truste.eu.postUserCenterCallback=function(a,b){var d=truste.eu.bindMap;if(a&&b){var f=b.cookie_expiry?new Date(parseInt(b.cookie_expiry)):null;
if(f&&!isNaN(f.getTime())&&f>new Date){f=f.toGMTString();truste.util.submitPrefPostMessage(a,!1,!0,b);"true"==truste.eu.noticeLP.finprog&&null!==b.financial_program&&"null"!==b.financial_program&&truste.eu.cpra.dropCpraCookie("true"==b.financial_program,f);if(b.is_gpc_honored||d.feat.gpc)truste.util.createCookie(truste.eu.COOKIE_GPC_ISHONORED,b.is_gpc_honored,f,!0,!0),!0===b.gpc_pref_overridden&&truste.util.createCookie(truste.eu.COOKIE_GPC_PREF_OVERRIDDEN,b.gpc_pref_overridden,f,!0,!0);b.optout_domains&&
truste.util.setStorage(truste.eu.COOKIE_CATEGORY_NAME,b.optout_domains,!1);b.ccpa_cookie&&truste.util.createCookie(truste.eu.COOKIE_USPRIVACY,b.ccpa_cookie,f);b.pop_time&&truste.util.createCookie(truste.eu.COOKIE_REPOP,1*b.pop_time,f,!0);truste.eu.cpra.shouldShowFinProg()&&!truste.util.isAcceptAll(a)&&truste.eu.clickListener(7,!0,{cpraConsent:a,cpraSource:"consent-center"})}}d.feat.isConsentCenterInitialized=!0;x()};truste.eu.finishLoad=x;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||truste.eu.noticeLP.gtm;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");truste.eu.bindMap.feat.cookiePath&&(truste.eu.COOKIE_CATEGORY_NAME="optout_domains_"+location.pathname.split("/")[1]);truste.eu.resolveOptoutDomains=function(a,b){var d=self.localStorage,f=d[truste.eu.COOKIE_CATEGORY_NAME]&&JSON.parse(d[truste.eu.COOKIE_CATEGORY_NAME]);if(d&&f&&"skip"!==b){b=b&&JSON.parse(b);a=new Set(a);for(var c of Object.keys(f))if("version"!==c&&Object.hasOwn(f,c)&&truste.util.isSafePropertyName(c)){var e=f[c];if(e){var g=e.value;e=e.domains;
var h;for([h]of Object.entries(e))if(truste.util.isSafePropertyName(h)){e=a.has(g)?"1":"0";var l=b&&b[g];l&&l.d&&l.d.includes(h)&&(e="1"===e?"0":"1");f[c].domains[h]=e}}}d.setItem(truste.eu.COOKIE_CATEGORY_NAME,JSON.stringify(f))}};try{var B=self.localStorage;if(B&&truste.eu.noticeLP.pcookie){var z=truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME);if(z){z=z.split(":")[0];var G=truste.util.readCookie(truste.eu.COOKIE_CATEGORY_NAME+"_pc");"skip"!==G&&(B[truste.eu.COOKIE_CATEGORY_NAME]&&JSON.parse(B[truste.eu.COOKIE_CATEGORY_NAME])?
truste.eu.resolveOptoutDomains(z,G):truste.util.dropOptoutDomains(z,()=>{truste.eu.resolveOptoutDomains(z,G)},!0))}else B.removeItem(truste.eu.COOKIE_CATEGORY_NAME)}}catch(a){truste.util.trace("Error processing consent data.")}truste.eu.noticeLP.debug&&(truste.util.debug="false"!=truste.eu.noticeLP.debug);truste.cma=self.PrivacyManagerAPI=function(a){var b={},d=d||window,f={binfo:a||{}};this!=d&&(this.inner=f);f.fake={capabilities:["getConsent"],default_consent:"denied",default_source:"implied",reportlevel:5,
consent:{all:{value:null,type:Object.create(null)}},domain:f.binfo.domain||d.location.hostname};f.requestors={loading:[]};f.authorities=[".truste.com",".trustarc.com",".trustarc.eu",".truste-svc.net","."+f.fake.domain];f.blacklist=[".example-xxx.com"];f.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}};f.caddy=null;f.isCapable=function(c){for(var e=this.fake.capabilities.length;0<e--;)if(this.fake.capabilities[e]==c)return e+1;return 0};f.endsWith=function(c,e){return null!=e&&e.replace?(new RegExp(".*"+e.replace(/\./g,"\\.")+"$")).test(c):!1};f._hasLoadedPrefs=!1;f.loadOldPrefs=function(c){var e=this.getStorage("PrivacyManagerAPI.preferences",
null,13);if(e){this.tconsole.log("Applying old preferences: ",e);for(var g in e)c.consent[g]=e[g]||c.consent[g]}this._hasLoadedPrefs=!0;e=0;for(var h=this.requestors.loading&&this.requestors.loading.length||0;e<h;){var l=this.requestors.loading[e++];if(c=this.processMessage(l.apiOb,l)){for(g in c)l.apiOb[g]=c[g];delete l.apiOb.loading;this.sendPost(l,{PrivacyManagerAPI:l.apiOb})}}};f.getAuthorityLevel=function(c,e,g,h){if(!h)return 0;var l=this.isAnAuthority(h);if(l)return l;l="."+(d.location.hostname||
"localhost");e=e||l;for(var k=this.blacklist.length;0<k--;)if(this.endsWith(e,this.blacklist[k]))return 0;if(this.endsWith(c,g)||this.endsWith(g,c))return-5;if(this.endsWith(c,e)||this.endsWith(e,c))return-1;h.charAt&&(h=h.split(/\s*[\s,]\s*/));k=0;for(var p=h.length;0<p--;)this.endsWith(e,h[p])?k=Math.min(-4,k):this.endsWith(c,h[p])?k=Math.min(-3,k):this.endsWith(l,h[p])&&(k=Math.min(-2,k));if(k)return k;this.sendEvent("uka",h,0,g,null,c,e);return 0};f.isAnAuthority=function(c){if(!c)return 0;c.charAt&&
(c=c.split(/\s*[\s,]\s*/));if(1==c.length&&(c=c[0].replace(/^\.?/,".")))for(var e=this.authorities.length;0<e--;){if(this.endsWith(c,this.authorities[e]))return e+1}else{var g;for(e=c.length;0<e--;)if(g=this.isAnAuthority(c[e]))return g}return 0};f.sendUpdatesTo=function(c,e,g){this.caddy={hold:!0};var h,l={PrivacyManagerAPI:{timestamp:g,capabilities:this.fake.capabilities}},k=l.PrivacyManagerAPI,p;for(p in c)if(g=c[p])for(var q=g.length;0<q--;)if((h=g[q])&&h.w)if(h.getConsent){var r=this.apiDo("getConsent",
this.authorities[0],h.d,this.authorities[0],h.t);if(h.s!=r.source||h.c!=r.consent)k.consent=h.c=r.consent,k.source=h.s=r.source,k.self=h.a,k.domain=h.d,k.action="getConsent",this.sendPost(h.w,l)}else h.getConsentDecision&&e&&(k.consent=k.source=null,k.self=h.a,k.action="getConsentDecision",this.sendPost(h.w,l));this.caddy=null};f.getBType=function(c){var e=0;if(c){c.charAt?c=c.split(/\W+/):0<c&&(c=[c]);e=65535;for(var g=c.length;0<g--;){var h=parseInt(c[g]);if(isNaN(h))if(this.valid_values.type[c[g]])e&=
this.valid_values.type[c[g]];else throw Error("invalid type");else e&=h}}return e};f.getTypePermission=function(c,e,g,h){if(!e||isNaN(e)||e.length)e=this.getBType(e);if(h&&"undefined"!==typeof c[h]){if(!isNaN(g.consentDecision)&&g.consentDecisions.split(/[,;:]/).length!=parseInt(g.consentDecision))return c[h]}else{var l=this.getStorage(truste.eu.COOKIE_CATEGORY_NAME,null,13),k;for(k in l){var p=parseInt(l[k].value)+1+"";if(h===k||h==p)return g.consentDecisions.split(/[,;:]/).includes(p)?"approved":
"denied"}}g=e<<1&65535|4369;h=[];if(0!=e)for(var q in c)c[q]&&this.valid_values.consent[c[q]]&&(h.temp=this.getBType(q),(h.temp|e)==h.temp&&"approved"==c[q]||(h.temp|g)!=h.temp&&"denied"==c[q])&&(h[c[q]]||h.push(c[q]),h[c[q]]=q);return h.denied?"denied":h.join(",")};f.updatePreferences=function(c,e,g,h){if(!c)return!1;"."!=c.charAt(0)&&(c="."+c);if(e||g){var l=this.getConsentForDomain(c,h)||{type:{}};this.valid_values.consent[e]&&(l.value=e);if(g)for(var k in g)if(this.valid_values.consent[g[k]])isNaN(k)?
this.valid_values.type[k]&&(l.type[k]=g[k]):l.type[k]=g[k];else if(null===g[k]||"null"===g[k])l.type[k]=null,delete l.type[k];this.tconsole.log("updating preference for domain: "+c+" to:",l);h.consent[c]=l}else if(null===e||"null"===e)this.tconsole.log("Deleting consent preference for: "+c),h.consent[c]=null,delete h.consent[c];else return!1;this.getStorage("PrivacyManagerAPI.preferences",h.consent,13);return!0};f.apiDo=function(c,e){if(!c||!e||!this.isCapable(c))return{error:"Call is missing required parameters or not allowed"};
this.tconsole.log("Doing API Call",Array.apply(null,arguments));switch(c){case "getConsent":var g=(arguments[2]||d.location.hostname).replace(/^\.?/,"."),h=this.getAuthorityLevel(g,(this.caddy||{}).from,e,arguments[3]);if("all"==g)return{error:"Call to this domain is not authorized"};var l=0,k=arguments[4],p=this.getStorage(truste.eu.COOKIE_CATEGORY_NAME,null,13,!0),q={required:"0",functional:"1",advertising:"2"};try{for(var r in p)if(p[r].value&&q[k]&&p[r].value==q[k]){k=r;break}l=this.getBType(k)}catch(t){if(isNaN(k)&&
!p[k])return{error:"Invalid Type parameter"}}p=this.getConsentForDomain(g,this.fake);q=this.getTypePermission(this.fake.consent.all.type,l,this.fake,k);p&&(q=this.getTypePermission(p.type,l,this.fake,k)||q||p.value);l=(q=q||this.fake.consent.all.value)?{source:"asserted",consent:q}:{source:this.fake.default_source,consent:this.fake.default_consent};this.tconsole.log("Did getConsent API call for: "+g+" from: "+(this.caddy||{}).from+", got result: ",l);0<h&&(l.origin=d.location.hostname);return l;default:return this.secondaryAction(c,
e,arguments[2],arguments[3])}};f.processMessage=function(c,e){var g;if(!c||!e||!(g=e.origin||e.domain)||"null"==g)return this.tconsole.error("got invalid postmessage call from "+g,c),{error:"Call is malformed and missing information"};this.tconsole.log("processing message from "+g,c);e={origin:e.origin,domain:e.domain,source:e.source};g="."+g.toLocaleLowerCase().replace(/^(https?:)?\/\/([^\/]*@)?/,"").replace(/[\/:].*/,"");switch(c.action){case "getConsent":var h=c.self,l=c.authority,k=c.domain;c=
c.type||void 0;h&&h.replace(/^\.?/,".");k&&k.replace(/^\.?/,".");if(!h)return{error:"All callers must identify themselves via their domain id. Add property 'self' on the post message object."};if(k&&!this.endsWith(k,g)){if(!l)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(k,g,h,l))return{error:"Call is not authorized. The call you made requires a valid authority"}}else k||=g;this.caddy={from:g};g=this.apiDo("getConsent",h,k,l,c);this.caddy=null;g&&!g.error&&(this.requestors[k]=this.requestors[k]||[],this.requestors[k].push({w:e,getConsent:1,t:c,a:h,d:k,s:g.source,c:g.consent}),g.domain=k,g.self=h,g.capabilities=this.fake.capabilities);return g;case "updatePreference":if(0<this.isAnAuthority(g)){if(!c.domain)return{error:"Required parameter 'domain' not sent"};
e=c.domain.replace(/^\.?/,".");if(!this.updatePreferences(e,c.value,c.type,this.fake))return{error:"Invalid value for required parameter 'value' sent"};h=this.requestors;"all"!=e&&(h={},h[e]=this.requestors[e]);this.sendUpdatesTo(h,!1,c.timestamp);return null}return{error:"Call is not from an authorized Location"};default:return this.secondaryMessageProcessing(c,e,g)}};f.loadConsentDecision=function(c){if(null==c.consentDecisions){var e=this.getStorage(truste.eu.COOKIE_GDPR_PREF_NAME);"object"===
typeof e&&null!==e&&(e=e.value);null!=e&&""!=e&&(c.consentDecisions=e.split(/[,|]/).map(function(p){return parseInt(p)+1}).filter(function(p){return!isNaN(p)}).join())}c.consentDecision=truste.util.getLowestConsent(c.consentDecisions);null==c.consentDecision&&(e=this.getStorage(truste.eu.COOKIE_PREF_NAME),"object"===typeof e&&null!==e&&(e=e.value),e=parseInt(e),isNaN(e)||(c.consentDecision=e+1));e=c.consentDecision;if(null!=e){var g=truste.util.getStorage(truste.eu.COOKIE_CATEGORY_NAME)||Object.create(null),
h=!0;if(c.consentDecisions)for(var l in g)if(Object.hasOwn(g,l)){var k=g[l];k.domains&&(h=h&&-1<c.consentDecisions.indexOf(parseInt(k.value)+1))}c.consent.all.value=0==e||h?"approved":"denied"}this.adjustTypeValues(c);this.binfo&&this.binfo.gtm&&this.updateGTM&&this.updateGTM(c,c.expiry)};f.adjustTypeValues=function(c){delete c.consent.all.type.functional;delete c.consent.all.type.advertising;if(c.consentDecisions){c.consent.all.type.functional="denied";c.consent.all.type.advertising="denied";var e=
c.consentDecisions.split(/[,|]/);e.includes("2")&&(c.consent.all.type.functional="approved");e.includes("3")&&(c.consent.all.type.advertising="approved")}else e=c.consentDecision,1==e?(c.consent.all.type.functional="denied",c.consent.all.type.advertising="denied"):2==e&&(c.consent.all.type.functional="approved",c.consent.all.type.advertising="denied")};b.callApi=function(){try{return f.caddy=null,f.apiDo.apply(f,arguments)}catch(c){try{f.sendError&&f.sendError(arguments[0],arguments[3],arguments[1],
{domain:arguments[2],type:arguments[4]},c)}catch(e){}f.tconsole.log(c.stack);f.caddy=null;return{error:"Unknown Error occured"}}};f.getConsentFromDomainlist=function(c,e,g){if(!g)return null;var h=null,l,k=e.consentDecisions;e=!k&&e.consentDecision;for(var p in g)if(e){if(g[p].domains&&(l=g[p].domains[c]||g[p].domains[c.substring(1)])){h={value:null,type:{}};g[p].value<e&&(h.value="approved");break}}else k&&g[p].domains&&(l=g[p].domains[c]||g[p].domains[c.substring(1)])&&(h||={value:null,type:{}},
"denied"!=h.value&&0<=k.indexOf(parseInt(g[p].value)+1)&&(h.value="approved"),"0"===l?(h.value="denied",h.type[g[p].value]="denied"):"1"===l&&("denied"!=h.value&&(h.value="approved"),h.type[g[p].value]="approved"));return h};f.getConsentForDomain=function(c,e){if(!c||!e)return null;this.loadConsentDecision(e);var g=this.getConsentFromDomainlist(c,e,this.getStorage(truste.eu.COOKIE_CATEGORY_NAME,null,12));if(!g)return null;g.currentDecision=e.consentDecisions||e.consentDecision;return e.consent[c]=
g};f._imgrep=[];f.sendEvent=function(c,e,g,h,l,k){if(!(this.caddy&&this.caddy.hold||this.tconsole.isDebug())){if(this.isCapable(c)){if(!isNaN(e)||this.fake.reportlevel&4)if(this.caddy){if(this.fake.reportlevel&2)return;c=this.caddy.from;if(this.fake.reportlevel&16&&k&&c&&this.endsWith(k,c)||this.fake.reportlevel&32&&h&&c&&this.endsWith(c,h))return}else if(this.fake.reportlevel&1||this.fake.reportlevel&8&&h&&k&&this.endsWith(k,h))return}else if("uka"==c&&this.fake.reportlevel&64)return;null==l&&(l=
{page:d.location.pathname});encodeURIComponent(e);g&&encodeURIComponent(g);encodeURIComponent(h);l&&encodeURIComponent(this.cheapJSON(l));this.binfo&&(e=this.binfo.locale.indexOf("-"),encodeURIComponent(this.binfo.locale.slice(0,e)),encodeURIComponent(this.binfo.behavior),encodeURIComponent(this.binfo.locale.substr(e+1)))}};f.sendError=function(c,e,g,h,l){this.fake.reportlevel&128||this.caddy&&this.caddy.hold||this.tconsole.isDebug()||(h||={},l&&l.stack&&(l.stack.match(/(@|at)[^\n\r\t]*/),l.stack.match(/(@|at)[^\n\r\t]*$/)),
this.binfo&&(h.country=this.binfo.locale.slice(0,2)||this.binfo.country||"",this.binfo.behavior&&(h.behavior=this.binfo.behavior),this.binfo.locale&&(h.locale=this.binfo.locale)),delete h.authority,delete h.action,delete h.self)};f.secondaryMessageProcessing=function(c,e,g){c.from=g;switch(c.action){case "getConsentDecision":if(!c.self)return{error:"Missing identity of API caller"};this.requestors[g]=this.requestors[g]||[];this.requestors[g].push({w:e,getConsentDecision:1,t:null,a:c.self});return{consentDecision:null,
source:null,capabilities:this.fake.capabilities};case "updateDecision":if(0<this.isAnAuthority(g)){e=c.value;if(e==this.fake.consentDecisions)break;this.fake.consentDecisions=e;this.fake.expiry=c.expiry;this.loadConsentDecision(this.fake);this.tconsole.log("updated decision to : "+e);this.sendUpdatesTo(this.requestors,!0,c.timestamp);return null}this.tconsole.error("Unauthorized entity calling updateDecision",c);return{error:"Call is not from an authorized Location"};default:return this.tconsole.error("Unknown api call attempt",
c),{error:"Call is not available"}}};f.logConsentReporting=function(c,e){try{if(truste.eu?.bindMap?.feat?.cmaModalReporting){var g=truste.util.calculateCategoriesInt(e);truste.util.sendAnalytics(18,g)}}catch(h){console.error("logConsentReporting: Error during execution",h)}};f.getCategoriesInfo=async function(c=!1){c=!0===c;truste.eu.categoriesPromise||(truste.eu.categoriesPromise={});truste.eu.categoriesPromise[c]||(truste.eu.categoriesPromise[c]=(async()=>{var e=await fetch(`${truste.eu.bindMap.cdnURL}cm/${truste.eu.bindMap.domain}/bannerconfig?include=categories&domains=${c}`,
{referrerPolicy:"origin-when-cross-origin"});if(!e.ok)throw Error(`Failed to fetch categories: ${e.status}`);e=await e.json();truste.eu.categories=e.categories||[];return truste.eu.categories})());return truste.eu.categoriesPromise[c]};f.secondaryAction=function(c,e,g,h){switch(c){case "getConsentDecision":return this.loadConsentDecision(this.fake),g=(h=this.fake.consentDecision)?parseInt(h):0,h=h?"asserted":"implied",this.sendEvent(c,-1,0,e),{consentDecision:g,source:h};case "getGDPRConsentDecision":return this.loadConsentDecision(this.fake),
g=(h=this.fake.consentDecisions)?h.split(/[,|]/).map(Number):[0],h=h?"asserted":"implied",this.sendEvent(c,-1,0,e),{consentDecision:g,source:h};case "getConsentCategories":return{categories:truste.util.getStorage(truste.eu.COOKIE_CATEGORY_NAME)||"no categories"};case "getDefaultCategories":return g={country:truste.eu.bindMap.country,defaultCategory:truste.eu.bindMap.defaultCategory},truste.eu.bindMap.state&&(g.state=truste.eu.bindMap.state),g;case "setConsentLevels":for(e=g.length-1;0<=e;e--)for(c=
0;c<e;c++)if(g[c]===g[e]){g.splice(e,1);break}c=truste.eu.bindMap.feat.replaceDelimiter?"|":",";e=g.map(function(l){return l-1});1!=g.at(0)&&e.unshift(0);g=e.join(c);truste.util.validConsent(g)?1==truste.eu.noticeLP.gtm&&(f.logConsentReporting(g,e),truste.util.isAcceptAll(g)?truste.util.optinAll():truste.eu.autoOptout(g,!1),truste.eu.prefclose()):console.log("Consent value passed is invalid.");break;case "changeReportLevel":return g=parseInt(g+""),isNaN(g)||(this.fake.reportlevel=g),this.fake.reportlevel;
case "getCategoriesInfo":return f.getCategoriesInfo(g);case "syncConsentDecision":if(g&&"updateDecision"===g.action)return c=g.value?g.value.split(/[,|]/).map(function(l){return parseInt(l)}).filter(function(l){return!isNaN(l)}).map(function(l){return l+1}).join():g.value,this.secondaryMessageProcessing({value:c,action:"updateDecision",timestamp:g.timestamp||1,expiry:g.expiry},null,e);break;default:return this.tconsole.error("Unknown api call attempt",{action:c,self:e,arg1:g,arg2:h}),{error:"Call is not available"}}};
f.handleCMMessage=function(c,e){var g=null;if((e.origin===window.origin||truste.eu.msg.originSet.has(e.origin))&&"preference_manager"==c.source&&"submit_preferences"==c.message){var h;"undefined"!==typeof(h=d[this.binfo&&this.binfo.dl||"dataLayer"])&&h.push({event:"useractioncomplete"});var l=[],k=!1;h="object"==typeof c.data?c.data.value:c.data;this.tconsole.log("got new values from consent manager: "+h);h&&h.split(/[,|]/).forEach(function(p){p=parseInt(p);isNaN(p)?k=!0:l.push(p+1)});k?(c.from=e.origin||
e.domain,c.msg=c.message,this.tconsole.error("Got invalid value from the CM: "+h,c)):g={value:l.join(),action:"updateDecision",timestamp:1}}return g};f.updateGTM=function(c,e){var g=truste.eu.bindMap;if(c&&!(1>c.consentDecision)&&c.consentDecisions){var h=this.binfo&&this.binfo.gtm_fun_ids||"ga-ms-ua",l=this.binfo&&this.binfo.gtm_adv_ids||"ta-asp-bzi-sp-awct-cts-csm-img-flc-fls-mpm-mpr-m6d-tc-tdc",k,p=h+"-"+l,q=c.consentDecisions.split(/[,|]/);q.includes("1")&&(k=g.feat.catLvl1Name||"required");q.includes("2")&&
(p=p.replace(h,""),k=g.feat.catLvl2Name||"functional");if(q.includes("3")||q.some(function(t){return 3<=Number(t)}))p=p.replace(l,""),k="";p=p.replace(/(^-)|(-$)/,"");c=("permit "+c.consentDecisions+" "+k).trim();var r=(r=d.document.cookie.match(/cmapi_cookie_privacy=\s*([^;\\s]*)/))&&r[1];if(r!=c){truste.util.createCookie("cmapi_gtm_bl",p,e||"",!0);truste.util.createCookie("cmapi_cookie_privacy",c,e||"",!0);if(e=d[this.binfo&&this.binfo.dl||"dataLayer"])e.push({"gtm.blacklist":p}),e.push({event:"cookie_prefs_set"});
truste.util.fireCustomEvent("truste-consent-gtm",g.prefCookie)}}};f.tconsole={};f.tconsole.isDebug=function(){return null!=(d.PrivacyManagerAPI||b).debug?(d.PrivacyManagerAPI||b).debug:0>d.location.hostname.indexOf(".")||0<d.location.hostname.indexOf(".truste-svc.net")};f.tconsole.log=function(c){var e=d.console?!1:console.log.apply?console.log:Function.prototype.bind.call(console.log,console);return this.isDebug()&&e&&(e.apply(console,arguments)||!0)};f.tconsole.error=function(c,e,g){this.log("Error: "+
c);e||={};g&&this.log(g.toString()+"\n"+g.stack);c&&(e.message=c);f.sendError&&f.sendError(e.action||"uk",e.authority,e.self||e.from,e,g)};f.parseJSON=function(c){if("string"==typeof c)try{return truste.util.parseJSON(c)}catch(e){if(/^\s*[{[].*[}\]]\s*$/.test(c))return this.tconsole.error("Could not parse json object: "+c.slice(0,35)+(35<c.length?"...":"")),null}return c};f.cheapJSON=function(c){return d.truste&&truste.util&&truste.util.getJSON(c)||d.JSON&&JSON.stringify(c)||'{"PrivacyManagerAPI":{"message":"The API needs a JSON parser"}}'};
f.getStorage=function(c,e,g){try{var h=!1,l=!(g&4)&&"truste.eu.cookie."||"";try{h=d.localStorage&&d.localStorage.getItem&&!(g&2)}catch(u){}if(null==e){var k=!(g&1)&&(new RegExp("\\s*"+c.replace(".","\\.")+"\\s*=\\s*([^;\\s]*)")).exec(d.document.cookie.toString());if(k&&1<k.length)e=decodeURIComponent(k[1]),e=this.parseJSON(e)||e;else if(h){e=d.localStorage[l+c]||d.localStorage.getItem(l+c);var p=this.parseJSON(e);g&8||!p||null==p.value?e=p:(e=p.value,p.expires&&new Date(parseInt(p.expires))<new Date&&
(this.getStorage(c,0,g),e=null))}return e}e&&!e.charAt&&(e=this.cheapJSON(e));var q=this.fake.domain||this.binfo.domain||null;q&&("."!=q.charAt(0)&&(q="."+q),0>d.location.hostname.indexOf(q)&&(q=null));var r=new Date;r.setDate(395);var t="; expires="+(e?r.toGMTString():"Thu, 01 Jan 1970 00:00:01 GMT")+"; path=/"+(q?"; domain="+q:"");d.document.cookie=c+"="+encodeURIComponent(e)+t;if(h)if(e)g&8||(e=this.cheapJSON({name:c,value:e,expires:r.getTime()})),d.localStorage&&d.localStorage.setItem(l+c,e);
else{d.localStorage&&d.localStorage.removeItem(l+c);try{delete d.localStorage[l+c]}catch(u){}}}catch(u){this.tconsole.error("error with getStorage",{name:c,value:e},u)}return null};f.sendPost=function(c,e){if(d.postMessage&&c&&c.source&&e){"object"==typeof e&&(e=this.cheapJSON(e));var g=c.origin||c.domain;"null"!=g&&g||(g="*");this.tconsole.log("responding to ("+g+") message : "+e);e&&c.source.postMessage(e,g)}};f.init=function(c,e,g){if(!this._hasLoadedPrefs){e=e||this.fake;try{c&&"string"==typeof c&&
(c=this.parseJSON(c));this.tconsole.log("initing with object: ",c);if(c){for(var h in e)e[h]=c[h]||e[h];for(h in this.binfo)this.binfo[h]=c[h]||this.binfo[h];c.blacklist instanceof Array&&(this.blacklist=this.blacklist.concat(c.blacklist))}g&&this.loadOldPrefs&&this.loadOldPrefs(e)}catch(l){this.tconsole.error("Error initing: ",e,l)}}};f.messageListener=function(c){var e,g=c.data&&f.parseJSON(c.data);truste.util.shiftMsgData(g);if(g&&(e=g.PrivacyManagerAPI||f.handleCMMessage(g,c)))if(e.capabilities||
e.error)f.tconsole.log("got my own message, returning"),f.tconsole.log(c);else if(e.timestamp&&e.action)try{f.tconsole.log("GOT VALID MESSAGE: "+c.data);var h=f.processMessage(e,c);if(h){for(var l in h)e[l]=h[l];g.PrivacyManagerAPI&&f.sendPost(c,g)}}catch(k){f.caddy=null,e.from=c.origin||c.domain,f.tconsole.error("TRUSTe Consent Manager API unknown error.",e,k),f.sendPost(c,{PrivacyManagerAPI:{error:"An unknown error occurred: "+k.toString()}})}else e.from=c.origin||c.domain,f.tconsole.error("got invalid postmessage call, missing ts or action",
e),f.sendPost(c,'{"PrivacyManagerAPI":{"error":"API Object missing required fields"}}')};b.init=function(c,e){f.init(c,null,e)};d.PREF_MGR_API_DEBUG=f;if(d.postMessage){a=d.window;try{for(;a!=a.parent&&a.parent.document;)a=a.parent}catch(c){}a.addEventListener?(a.addEventListener("message",f.messageListener,!1),a!=d&&d.addEventListener("message",f.messageListener,!1)):(a.attachEvent("onmessage",f.messageListener),a!=d&&d.attachEvent("onmessage",f.messageListener))}f.fake.consentDecision=null;f.fake.capabilities.push("getConsentDecision",
"getGDPRConsentDecision","getConsentCategories","setConsentLevels","getDefaultCategories","getCategoriesInfo","syncConsentDecision");b.version="1.7";return b}(truste.eu.noticeLP);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=_truste_eu)||_truste_eu();
