var OneTrustStub=function(t){"use strict";var l=new function(){this.optanonCookieName="OptanonConsent",this.optanonHtmlGroupData=[],this.optanonHostData=[],this.IABCookieValue="",this.oneTrustIABCookieName="eupubconsent",this.oneTrustIsIABCrossConsentEnableParam="isIABGlobal",this.isStubReady=!0,this.geolocationCookiesParam="geolocation",this.EUCOUNTRIES=["BE","BG","CZ","DK","DE","EE","IE","GR","ES","FR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE","GB","HR","LI","NO","IS"],this.stubFileName="otSDKStub",this.DATAFILEATTRIBUTE="data-domain-script",this.bannerScriptName="otBannerSdk.js",this.mobileOnlineURL=[],this.isMigratedURL=!1,this.migratedCCTID="[[OldCCTID]]",this.migratedDomainId="[[NewDomainId]]",this.userLocation={country:"",state:""}},e=(i.prototype.initConsentSDK=function(){this.initCustomEventPolyfill(),this.ensureHtmlGroupDataInitialised(),this.updateGtmMacros(),this.fetchBannerSDKDependency()},i.prototype.fetchBannerSDKDependency=function(){this.setDomainDataFileURL(),this.otFetch(l.bannerDataParentURL,this.getLocation.bind(this))},i.prototype.getLocation=function(t){if(!t.RuleSet[0].Type)return this.iabTypeAdded=!1,window.__cmp=this.executeCmpApi,window.__tcfapi=this.executeTcfApi,this.intializeIabStub(),this.addBannerSDKScript(t);var e=window;if(e.OneTrust&&e.OneTrust.geolocationResponse){var i=e.OneTrust.geolocationResponse;this.setGeoLocation(i.countryCode,i.stateCode),this.addBannerSDKScript(t)}else{var a=this.readCookieParam(l.optanonCookieName,l.geolocationCookiesParam);if(a||t.SkipGeolocation){var o=a.split(";")[0],n=a.split(";")[1];this.setGeoLocation(o,n),this.addBannerSDKScript(t)}else this.getGeoLocation(t)}},i.prototype.getGeolocationURL=function(t){var e=t.TenantFeatures,i=""+l.stubScriptElement.getAttribute("src").split(l.stubFileName)[0]+t.Version;if(new RegExp("^file://","i").test(i)&&t.MobileSDK){var a="/"+t.GeolocationUrl.replace(/^(http|https):\/\//,"").split("/").slice(1).join("/")+".js";return e&&e.CookieV2GeolocationJsonApi?l.storageBaseURL+a:"."+a}return t.GeolocationUrl},i.prototype.geoLocationJsonCallback=function(t,e){this.setGeoLocation(e.country,e.state),this.addBannerSDKScript(t)},i.prototype.getGeoLocation=function(t){var e=this,i=t.TenantFeatures,a=this.getGeolocationURL(t);i&&i.CookieV2GeolocationJsonApi?this.otFetch(a,this.geoLocationJsonCallback.bind(this,t),!0):(window.jsonFeed=function(t){e.setGeoLocation(t.country,t.state)},this.jsonp(a,this.addBannerSDKScript.bind(this,t)))},i.prototype.setGeoLocation=function(t,e){void 0===e&&(e=""),l.userLocation={country:t,state:e}},i.prototype.otFetch=function(t,e,i){if(void 0===i&&(i=!1),new RegExp("^file://","i").test(t))this.otFetchOfflineFile(t,e);else{l.mobileOnlineURL.push(t);var a=new XMLHttpRequest;a.onload=function(){e(JSON.parse(this.responseText))},a.open("GET",t),i&&a.setRequestHeader("accept","application/json"),a.send()}},i.prototype.otFetchOfflineFile=function(t,e){var i=(t=t.replace(".json",".js")).split("/"),a=i[i.length-1].split(".js")[0];this.jsonp(t,function(){e(window[a])})},i.prototype.jsonp=function(t,e){var i=document.createElement("script");i.setAttribute("src",t),i.async=!0,i.type="text/javascript",this.crossOrigin&&i.setAttribute("crossorigin",this.crossOrigin),document.getElementsByTagName("head")[0].appendChild(i),new RegExp("^file://","i").test(t)||l.mobileOnlineURL.push(t),e&&(i.onload=function(){e()})},i.prototype.getRegionSet=function(t){var e,i,a,o=l.userLocation,n=t.RuleSet.filter(function(t){return!0===t.Default});if(!o.country&&!o.state)return n&&0