(function(v){function z(){var a=this;this.implementThePolyfill=function(){var b=Element.prototype.setAttribute;Element.prototype.setAttribute=function(c,d){if("style"!==c.toLowerCase()&&b.apply(this,[c,d]),"style"!==c.toLowerCase()||d||this.removeAttribute("style"),"style"===c.toLowerCase()&&d){this.removeAttribute("style");var g;c=a.strToObj(d);for(g in c)this.style[g]=c[g]}}}}function D(a,b,c){function d(m){return m?(";"!==(m=m.trim()).charAt(m.length-1)&&(m+=";"),m.trim()):null}void 0===c&&(c= !1);var g=d(a.getAttribute("style")),h=d(b);b="";b=c&&g?function(){for(var m=g.split(";").concat(h.split(";")).filter(function(E){return 0!==E.length}),n="",p="",t=m.length-1;0<=t;t--){var B=m[t].substring(0,m[t].indexOf(":")+1).trim();0>n.indexOf(B)&&(n+=B,p+=m[t]+";")}return p}():h;a.setAttribute("style",b)}function q(){}function l(){var a=this;this.iabType=null;this.iabTypeAdded=!0;this.crossOrigin=null;this.isAmp=!1;this.domainId="";this.isPreview=this.isReset=!1;this.nonce=this.geoFromUrl=""; this.setAttributePolyfillIsActive=!1;this.storageBaseURL="";this.charset=null;this.buildType="BUILDMODE";this.addBannerSDKScript=function(b){var c=a.getRegionSet(b),d=(c.GCEnable||(a.updateGtmMacros(),a.gtmUpdated=!0),a.iabTypeAdded&&("IAB2"!==c.Type&&"IAB2V2"!==c.Type||(a.iabType=c.Type,a.intializeIabStub()),"IAB2"!==c.Type)&&"IAB2V2"!==c.Type&&a.removeTcf(),c.IsGPPEnabled?C.init():C.removeGppApi(),e.stubScriptElement.cloneNode(!0)),g="";g=b.UseSDKRefactor?(e.isMigratedURL&&(d.src=e.storageBaseURL+ "/scripttemplates/new/scripttemplates/"+e.stubFileName+".js"),e.storageBaseURL+"/scripttemplates/new/scripttemplates/"+b.Version+"/"+e.bannerScriptName):"5.11.0"===b.Version?(e.isMigratedURL&&(d.src=e.storageBaseURL+"/scripttemplates/old/scripttemplates/"+e.stubFileName+".js"),e.storageBaseURL+"/scripttemplates/old/scripttemplates/5.11.0/"+e.bannerScriptName):(e.isMigratedURL&&(d.src=e.storageBaseURL+"/scripttemplates/"+e.stubFileName+".js"),e.storageBaseURL+"/scripttemplates/"+b.Version+"/"+e.bannerScriptName); "charset data-language data-document-language data-domain-script crossorigin data-ignore-ga".split(" ").forEach(function(h){e.stubScriptElement.getAttribute(h)&&d.setAttribute(h,e.stubScriptElement.getAttribute(h))});a.charset=e.stubScriptElement.getAttribute("charset");a.isAmp=!!e.stubScriptElement.getAttribute("amp");window.otStubData={bannerBaseDataURL:e.bannerBaseDataURL,crossOrigin:a.crossOrigin,domainData:b,domainId:a.domainId,geoFromUrl:a.geoFromUrl,isAmp:a.isAmp,isPreview:a.isPreview,isReset:a.isReset, mobileOnlineURL:e.mobileOnlineURL,nonce:a.nonce,otDataLayer:a.otDataLayer,regionRule:c,setAttributePolyfillIsActive:a.setAttributePolyfillIsActive,storageBaseURL:a.storageBaseURL,stubElement:d,urlParams:a.urlParams,userLocation:e.userLocation,gtmUpdated:a.gtmUpdated,previewMode:a.previewMode,charset:a.charset,stubUrl:e.stubScriptElement.getAttribute("src")};a.jsonp(g,null)};this.intializeIabStub=function(){var b=window;a.iabTypeAdded?(void 0===b.__tcfapi&&(window.__tcfapi=a.executeTcfApi),a.addIabFrame()): a.addBackwardIabFrame();b.receiveOTMessage=a.receiveIabMessage;(b.attachEvent||window.addEventListener)("message",b.receiveOTMessage,!1)};this.addIabFrame=function(){var b=window;!b.frames.__tcfapiLocator&&(b.document.body?a.addLocator("CMP"):setTimeout(a.addIabFrame,5))};this.addBackwardIabFrame=function(){var b=window;!b.frames.__tcfapiLocator&&(b.document.body?a.addLocator("TCF"):setTimeout(a.addIabFrame,5))};this.addLocator=function(b){var c=window,d=c.document.createElement("iframe");D(d,"display: none;", !0);d.name="__tcfapiLocator";d.setAttribute("title",b+" Locator");c.document.body.appendChild(d)};this.receiveIabMessage=function(b){var c,d,g,h="string"==typeof b.data,m={};try{m=h?JSON.parse(b.data):b.data}catch(n){}m.__cmpCall&&"IAB2"===a.iabType&&console.log("Expecting IAB TCF v2.0 vendor iFrame call; Received IAB TCF v1.1");m.__tcfapiCall&&"IAB2"===a.iabType&&(c=m.__tcfapiCall.callId,d=m.__tcfapiCall.command,g=m.__tcfapiCall.parameter,m=m.__tcfapiCall.version,a.executeTcfApi(d,g,function(n,p){n= {__tcfapiReturn:{returnValue:n,success:p,callId:c,command:d}};b&&b.source&&b.source.postMessage&&b.source.postMessage(h?JSON.stringify(n):n,"*")},m))};this.executeTcfApi=function(){for(var b=[],c=0;c(a=a.split("?")).length?null:(new URLSearchParams(a[1])).get("did")};l.prototype.setStubScriptElement= function(){e.stubScriptElement=document.querySelector("script[src*\x3d'"+e.stubFileName+"']");var a=e.stubScriptElement&&e.stubScriptElement.getAttribute("src");a=a&&this.getStubQueryParam(a);e.stubScriptElement&&e.stubScriptElement.hasAttribute(e.DATAFILEATTRIBUTE)?this.domainId=e.stubScriptElement.getAttribute(e.DATAFILEATTRIBUTE).trim():a?this.domainId=a:e.stubScriptElement||(e.stubScriptElement=document.querySelector("script[src*\x3d'"+e.migratedCCTID+"']"),e.stubScriptElement&&(e.isMigratedURL= !0,this.domainId=e.migratedDomainId.trim()))};l.prototype.setDomainDataFileURL=function(){var a=e.stubScriptElement.getAttribute("src"),b=-1new Date);this.setGeoParam(this.geoFromUrl||d)};l.prototype.setGeoParam=function(a){var b;a&&((b=window).OneTrust||(b.OneTrust={}),a=a.split(","),b.OneTrust.geolocationResponse={countryCode:a[0],stateCode:a[1]})};l.prototype.updateVersion=function(a){"debug"!==this.buildType&&"cybuild"!== this.buildType||(a.Version="VERSION")};var f=l,y=new f;return v.OtSDKStub=f,v.otSdkStub=y,Object.defineProperty(v,"__esModule",{value:!0}),v})({});