function _truste_eu(){function v(){var h=truste.eu.bindMap;h.feat.isConsentRetrieved=h.feat.crossDomain?h.feat.isConsentRetrieved:!0;if(!v.done&&h.feat.isConsentRetrieved){v.done=!0;truste.eu.ccpa.initialize();truste.eu.dnt();var l=function(){var a=truste.eu.bindMap;if(a.feat.consentResolution){var b=truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME,!0);if(b&&(b=b.split(":"),!RegExp(a.behavior+"."+a.behaviorManager).test(b[2])&&(/(,us|none)/i.test(b[2])||"eu"==a.behaviorManager&&/implied.eu/i.test(b[2]))))return!0}return!1}, a=function(){var a=(new Date).getTime(),b=truste.util.readCookie(truste.eu.COOKIE_REPOP,!0),c=truste.eu.bindMap.popTime;return c&&c!=b&&a>=c}();a&&(h.feat.dropPopCookie=!0);h.feat.isDNTOptoutEvent?h.feat.dntShowUI&&"expressed"==h.behavior&&(truste.eu.clickListener(truste.eu.noticeLP.pn,!0),truste.eu.msg.log("consent",h,h.messageBaseUrl)):null!=truste.util.getIntValue(h.prefCookie)?("expressed"==h.behavior&&(a||l())&&(h.feat.isRepopEvent=!0,h.feat.isReconsentEvent=a,truste.eu.clickListener(truste.eu.noticeLP.pn, !0)),truste.eu.msg.log("returns",h,h.messageBaseUrl)):"expressed"==h.behavior&&(truste.eu.clickListener(truste.eu.noticeLP.pn,!0),truste.eu.msg.log("consent",h,h.messageBaseUrl))}}truste=self.truste||{};truste.eu=truste.eu||{};truste.eu.version="v1.7-226";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";Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(h,l){if(null==this)throw new TypeError('"this" is null or not defined');var a=Object(this),d=a.length>>>0;if(0===d)return!1;for(var b=l|0,b=Math.max(0<=b?b:d-Math.abs(b),0);bthis.length?!1:-1!==this.indexOf(h,l)});truste.util=truste.util||{};truste.util.getUniqueID=function(){return"truste_"+Math.random()};truste.util.getIntValue=function(h){h=parseInt(h);return isNaN(h)?null:h};truste.util.validConsent=function(h){return null!=truste.util.getIntValue(h)&&-1self.location.hostname.indexOf(".")||0new Date&&truste.util.createCookie(a,b.value,g.toString(),!0)}else truste.util.createCookie(a,c);b=c}return b};truste.util.createCookie=function(a,d,b,c){truste.util.cookie&&(d=truste.util.cookie.convert(d));var e=truste.eu.bindMap||{},g="; expires=";if(b)g="0"==b?"":g+b;else{var m=new Date;m.setDate(m.getDate()+e.cookieExpiry);g+=m.toGMTString()}c&&truste.util.createCookieStorage&&truste.util.createCookieStorage(a,d,m);c=e.domain;m=self.location.hostname;b=!!m.match(/^\d{0,3}\.\d{0,3}\.\d{0,3}\.\d{0,3}$/)|| "localhost"==m;var n=RegExp("[.]"+c+"$|^"+c+"$"),n=c&&n.test(m)?c:b?m:m.replace(/^www\./,"");c="https:"==self.location.protocol?" Secure;":"";c=(truste.util.samesite&&!truste.util.samesite(navigator.userAgent)?"":" SameSite=None;")+c;if("undefined"!=typeof truste.eu.noticeLP.pcookie){document.cookie=a+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;domain="+(b?"":".")+n.replace(/^\./,"")+";"+c;if(!e.topLevelDomain){for(var m=0,q=n.split("."),k=[],f="_gd"+(new Date).getTime();m=a:!1}return!(function(a,g){var b=RegExp("[(]iP.+; CPU .*OS (\\d+)[_\\d]*.*[)] AppleWebKit[/]","ig").exec(g);return b&&2===b.length?+b[1]===a:!1}(12,a)||b(10,14,a)&&(c(a)||e(a))||d(a))};truste.util.readCookieStorage=function(a){try{var d=truste.util.COOKIE_NS+a,b=truste.util.getStorage(d,!1), c=truste.util.getStorage(d,!0);if(!b&&!c)return null;if(c)return truste.util.createCookie(a,c.value),c.value;var e=new Date(b.expires);if(ed&&(d=b);return d};truste.eu.onBeforeUnload=function(a){return"Please allow optouts to finish before navigating out of the page!"};truste.eu.showThrobber=function(){var a=self.document.getElementById("truste.eu.throbber");if(!a){a=self.document.createElement("div"); a.id="truste.eu.throbber";var d=self.document.createElement("img");d.src=truste.eu.bindMap.assetServerURL+"throbber.gif";d.style.border="0";d.style.opacity="0.5";d.style.width="16px";d.style.height="16px";d.style.verticalAlign="middle";d.style.marginRight="5px";a.appendChild(d);a.appendChild(document.createTextNode("Processing Opt-outs"));a.style.position="fixed";a.style.bottom="0";a.style.right="20px";a.style.background="white";a.style.border="1px solid #dddddd";a.style.borderBottom="none";a.style.font= "10px Arial,sans-serif";a.style.color="#676767";a.style.padding="5px 10px"}self.document.getElementsByTagName("body")[0].appendChild(a);self.onbeforeunload||(self.onbeforeunload=truste.eu.onBeforeUnload)};truste.eu.hideThrobber=function(a){(a||(a=self.document.getElementById("truste.eu.throbber")))&&a.parentNode&&a.parentNode.removeChild(a);self.onbeforeunload==truste.eu.onBeforeUnload&&(self.onbeforeunload=null)};truste.eu.showCM=function(a){try{var d,b;a="false"==a?"hidden":a?"visible":"hidden"; if(b=(d=self.document.getElementById(truste.eu.popdiv))&&self.document.getElementById(truste.eu.popdiv2))return d.style.visibility=a,b.style.visibility=a,!0}catch(c){truste.eu.error("Error showing CM",c)}return!1};truste.eu.error=function(a,d,b){b=b||{};b.mod="eu";b.domain=b.domain||truste.eu.bindMap&&truste.eu.bindMap.domain||void 0;b.caller=self.location.hostname;b.path=self.location.pathname;truste.util.error(a,d,b)};truste.eu.icon={};truste.eu.icon.make=function(a){if(!truste.eu.prefButton){var d= truste.eu.bindMap,b=truste.eu.prefButton=self.document.createElement("a");d.feat.enableIconRole&&b.setAttribute("role",d.iconRole?d.iconRole:"true"==d.text?"link":"button");truste.util.addListener(b,"click",a);b.id=truste.eu.iconid=("icon-id"+Math.random()).replace(".","");b.tabIndex="0";b.setAttribute("lang",d.language);truste.util.addListener(b,"keydown",function(a){a||(a=window.event);var d=a.which||a.keyCode;if(13==d||32==d)a.preventDefault?a.preventDefault():event.returnValue=!1,b.click()}); "true"==d.text&&d.icon?(b.style.cursor="pointer",b.innerHTML=d.icon):(a=self.document.createElement("img"),a.style.border="none",a.style.cursor="pointer",a.onerror=function(){truste.eu.icon.make()},b.appendChild(a),a=d.assetServerURL+(d.cookiePreferenceIcon||d.language+"-cookiepreferencestext.png"),b.firstChild.src?"en"!=d.language&&b.firstChild.src==a?b.firstChild.src=d.assetServerURL+d.cookiePreferenceIcon.substring(3):(b.style.cursor="pointer",b.innerHTML=d.icon):(b.firstChild.src=a,b.firstChild.alt= "Cookie Preference"))}};truste.eu.icon.show=function(){var a=truste.eu.prefButton,d=truste.eu.caIcon;if(d){d.appendChild(a);d.setAttribute("consent",truste.eu.bindMap.prefCookie);d.setAttribute("aria-label","Open Cookie Preferences Modal");if("eu"!=truste.eu.bindMap.behaviorManager||"expressed"==truste.eu.bindMap.behavior)d.style.display=truste.util.getDisplayProperty(d);a=truste.eu.bindMap;a.feat.enableContainerRole&&d.setAttribute("role",a.containerRole?a.containerRole:"complementary")}else truste.eu.jsNode1&& truste.eu.jsNode1.parentNode.insertBefore(a,truste.eu.jsNode1)};truste.eu.icon.initialize=function(){var a=truste.eu.bindMap;truste.eu.caIcon=self.document.getElementById(a.containerId)||self.document.getElementById("teconsent");var d=a.containerId==decodeURI("%5F%4C%42c%4C%42%5F")?null:a.containerId;if(truste.eu.caIcon||!d&&truste.eu.jsNode1&&"HEAD"!=truste.eu.jsNode1.parentNode.nodeName&&(truste.eu.caIcon=truste.eu.jsNode1.parentNode))truste.eu.icon.show();else if(d)var b=setInterval(function(){truste.eu.caIcon= truste.eu.caIcon||self.document.getElementById(a.containerId)||self.document.getElementById("teconsent");truste.eu.caIcon&&(clearInterval(b),truste.eu.icon.show())},100)};truste.eu.irm={};truste.eu.irm.initialize=function(){var a=truste.eu.bindMap,d=setInterval(function(){truste.eu.irmLinkContainer=truste.eu.irmLinkContainer||self.document.getElementById(a.irmContainerId);truste.eu.irmLinkContainer&&(clearInterval(d),truste.eu.irm.show())},100)};truste.eu.irm.show=function(){var a=truste.eu.irmLink, d=truste.eu.irmLinkContainer;d&&(d.appendChild(a),d.style.display=truste.util.getDisplayProperty(d),a=truste.eu.bindMap,a.feat.enableContainerRole&&d.setAttribute("role",a.containerRole?a.containerRole:"complementary"))};truste.eu.irm.make=function(a){if(!truste.eu.irmLink){var d=truste.eu.bindMap,b=truste.eu.irmLink=self.document.createElement("a");truste.util.addListener(b,"click",a);b.id=truste.eu.irmId=("irm-id-"+Math.random()).replace(".","");b.tabIndex="0";d.feat.enableIconRole&&b.setAttribute("role", d.iconRole?d.iconRole:"link");b.setAttribute("lang",d.language);truste.util.addListener(b,"keydown",function(a){a||(a=window.event);var d=a.which||a.keyCode;if(13==d||32==d)a.preventDefault?a.preventDefault():event.returnValue=!1,b.click()});b.style.cursor="pointer";b.innerHTML=d.irmText}};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){var d=truste.eu.bindMap,b="1---";d.feat.ccpaApplies&&(d= /^[nNyY-]$/.test(d.lspa)?d.lspa:"-",b=truste.eu.USP_VERSION+"Y"+(a?"Y":"N")+d);return b};truste.eu.ccpa.dropCcpaCookie=function(a){truste.eu.bindMap.feat.enableCCPA&&truste.util.createCookie(truste.eu.COOKIE_USPRIVACY,truste.eu.ccpa.uspString(a))};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,d=truste.eu.ccpaLink=self.document.createElement("a"); truste.util.addListener(d,"click",function(){truste.bn.reopenBanner&&truste.bn.reopenBanner()});d.id=truste.eu.irmId=("ccpa-id-"+Math.random()).replace(".","");d.tabIndex="0";a.feat.enableIconRole&&d.setAttribute("role",a.iconRole?a.iconRole:"link");d.setAttribute("lang",a.language);truste.util.addListener(d,"keydown",function(a){a||(a=window.event);var b=a.which||a.keyCode;if(13==b||32==b)a.preventDefault?a.preventDefault():event.returnValue=!1,d.click()});d.style.cursor="pointer";d.innerHTML=a.ccpaText; var b=document.getElementById(a.containerId);b&&(b.appendChild(d),b.style.display=truste.util.getDisplayProperty(b),a.feat.enableContainerRole&&b.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.prefCookie||truste.eu.ccpa.dropCcpaCookie(!1);if(a.feat.ccpaApplies)var d=setInterval(function(){self.document.getElementById(a.containerId)&& (clearInterval(d),truste.eu.ccpa.showLink())},100);setTimeout(function(){clearInterval(d)},1E4)})};truste.eu.SOURCE_SERVER=truste.eu.SOURCE_SERVER||"//consent.trustarc.com/notice".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, d){var b=truste.eu.bindMap;if(2==d)return truste.util.error("Failed to load binding JS at URL: "+a.src);if(!b)return truste.util.trace("Did not load JS0");if(truste.eu.bindMap.feat.uidEnabled){var c=truste.util.readCookieStorage(truste.eu.COOKIE_UID);if(null==c)var e=window.crypto||window.msCrypto,c=([1E7]+-1E3+-4E3+-8E3+-1E11).replace(/[018]/g,function(a){return(a^e.getRandomValues(new Uint8Array(1))[0]&15>>a/4).toString(16)});truste.eu.consentUID=c}b.backgroundImage="url("+b.assetServerURL+"trans.png)"; b.domain&&(truste.eu.noticeLP.domain=b.domain);b.behavior&&(truste.eu.noticeLP.behavior=b.behavior);b.country&&b.language&&(truste.eu.noticeLP.locale=b.country+"-"+b.language);truste.eu.noticeLP.pn&&truste.eu.noticeLP.pn.indexOf("-")&&(c=truste.eu.noticeLP.pn.split("-"),1new Number(RegExp.$1)&&"complete"!=truste.util.readyState()?self.addEventListener("load",c,!1):c();b.apiDefaults&&13a.consentDecision)&&a.consentDecisions){var c,d=this.binfo&&this.binfo.gtm_fun_ids||"ga-ms-ua",e=this.binfo&&this.binfo.gtm_adv_ids||"ta-asp-bzi-sp-awct-cts-csm-img-flc-fls-mpm-mpr-m6d-tc-tdc",k,f=d+"-"+e,s=a.consentDecisions.split(/[,|]/); s.includes("1")&&(k="required");s.includes("2")&&(f=f.replace(d,""),k="functional");s.includes("3")&&(f=f.replace(e,""),k="");f=f.replace(/(^-)|(-$)/,"");a=("permit "+a.consentDecisions+" "+k).trim();c=(c=b.document.cookie.match(/cmapi_cookie_privacy=\s*([^;\\s]*)/))&&c[1];if(c!=a){truste.util.createCookie("cmapi_gtm_bl",f,"",!0);truste.util.createCookie("cmapi_cookie_privacy",a,"",!0);if(c=b[this.binfo&&this.binfo.dl||"dataLayer"])c.push({"gtm.blacklist":f}),c.push({event:"cookie_prefs_set"});truste.eu.bindMap.feat.crossDomain&& truste.eu.postMessageToFrame("updatePreference","","trustarcNoticeFrame",{cmapiBl:f,cmapiPrvcy:a,cookieExpiry:truste.eu.bindMap.cookieExpiry})}}};c.tconsole={};c.tconsole.isDebug=function(){return null!=(b.PrivacyManagerAPI||d).debug?(b.PrivacyManagerAPI||d).debug:0>b.location.hostname.indexOf(".")||0b.location.hostname.indexOf(p)&&(p=null));var t=new Date;t.setDate(395);var u="; expires="+(c?t.toGMTString():"Thu, 01 Jan 1970 00:00:01 GMT")+ "; path=/"+(p?"; domain="+p:"");b.document.cookie=a+"="+encodeURIComponent(c)+u;if(e)if(c)d&8||(c=this.cheapJSON({name:a,value:c,expires:t.getTime()})),b.localStorage.setItem(k+a,c);else{b.localStorage.removeItem(k+a);try{delete b.localStorage[k+a]}catch(v){}}}catch(w){this.tconsole.error("error with getStorage",{name:a,value:c},w)}return null};c.sendPost=function(a,c){if(b.postMessage&&a&&a.source&&c){"object"==typeof c&&(c=this.cheapJSON(c));var d=a.origin||a.domain;"null"!=d&&d||(d="*");this.tconsole.log("responding to ("+ d+") message : "+c);c&&a.source.postMessage(c,d)}};c.init=function(a,b,c){if(!this._hasLoadedPrefs){b=b||this.fake;try{a&&"string"==typeof a&&(a=this.parseJSON(a));this.tconsole.log("initing with object: ",a);if(a){for(var d in b)b[d]=a[d]||b[d];for(d in this.binfo)this.binfo[d]=a[d]||this.binfo[d];a.blacklist instanceof Array&&(this.blacklist=this.blacklist.concat(a.blacklist))}c&&this.loadOldPrefs&&this.loadOldPrefs(b)}catch(e){this.tconsole.error("Error initing: ",b,e)}}};c.messageListener=function(a){var b, d=a.data&&c.parseJSON(a.data);if(d&&(b=d.PrivacyManagerAPI||c.handleCMMessage(d,a)))if(b.capabilities||b.error)c.tconsole.log("got my own message, returning"),c.tconsole.log(a);else if(b.timestamp&&b.action)try{c.tconsole.log("GOT VALID MESSAGE: "+a.data);var e=c.processMessage(b,a);if(e){for(var k in e)b[k]=e[k];d.PrivacyManagerAPI&&c.sendPost(a,d)}}catch(f){c.caddy=null,b.from=a.origin||a.domain,c.tconsole.error("TRUSTe Consent Manager API unknown error.",b,f),c.sendPost(a,{PrivacyManagerAPI:{error:"An unknown error occurred: "+ f.toString()}})}else b.from=a.origin||a.domain,c.tconsole.error("got invalid postmessage call, missing ts or action",b),c.sendPost(a,'{"PrivacyManagerAPI":{"error":"API Object missing required fields"}}')};d.init=function(a,b){c.init(a,null,b)};b.PREF_MGR_API_DEBUG=c;if(b.postMessage){a=b.window;try{for(;a!=a.parent&&a.parent.document;)a=a.parent}catch(e){}a.addEventListener?(a.addEventListener("message",c.messageListener,!1),a!=b&&b.addEventListener("message",c.messageListener,!1)):(a.attachEvent("onmessage", c.messageListener),a!=b&&b.attachEvent("onmessage",c.messageListener))}c.fake.consentDecision=null;c.fake.capabilities.push("getConsentDecision","getGDPRConsentDecision","getConsentCategories");d.version="1.7";return d}(truste.eu.noticeLP);self.TRUSTE_CMAPI_DEBUG=self.PREF_MGR_API_DEBUG;truste.cma.debug=truste.util.debug;truste.eu.bindMap?truste.eu.init(null,1):truste.util.addScriptElement(truste.eu.SOURCE_SERVER+"?js=1&"+truste.eu.noticeLP._query,truste.eu.init,null,!0)} self._truste&&(self._truste.eu=_truste_eu)||_truste_eu();