/** * onetrust-banner-sdk * v202506.1.0 * by OneTrust LLC * Copyright 2025 */ (()=>{var G=function(e,t){return(G=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)};function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}G(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var H,R=function(){return(R=Object.assign||function(e){for(var t,o=1,n=arguments.length;oa[0]&&t[1]this.length)&&(t=this.length),this.substring(t-e.length,t)===e},writable:!0,configurable:!0})},$.prototype.initClosestPolyfill=function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||Object.defineProperty(Element.prototype,"closest",{value:function(e){var t=this;do{if(t.matches(e))return t}while(null!==(t=t.parentElement||t.parentNode)&&1===t.nodeType);return null},writable:!0,configurable:!0})},$.prototype.initIncludesPolyfill=function(){String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(e,t){return!((t="number"!=typeof t?0:t)+e.length>this.length)&&-1!==this.indexOf(e,t)},writable:!0,configurable:!0})},$.prototype.initObjectAssignPolyfill=function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),n=1;n>>0,n=arguments[1]>>0,r=n<0?Math.max(o+n,0):Math.min(n,o),n=arguments[2],n=void 0===n?o:n>>0,i=n<0?Math.max(o+n,0):Math.min(n,o);r{for(var e=i.split(";").concat(s.split(";")).filter(function(e){return 0!==e.length}),t="",o="",n=e.length-1;0<=n;n--){var r=e[n].substring(0,e[n].indexOf(":")+1).trim();t.indexOf(r)<0&&(t+=r,o+=e[n]+";")}return o})():s;e.setAttribute("style",t)}a.insertAfter=function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},a.insertBefore=function(e,t){t.parentNode.insertBefore(e,t)},a.inArray=function(e,t){return t.indexOf(e)},a.ajax=function(e){var t=null,o=new XMLHttpRequest,n=e.type,r=e.contentType,i=e.data,s=e.success,a=e.token,t=e.error;o.open(n,e.url,!e.sync),o.setRequestHeader("Content-Type",r),a&&o.setRequestHeader("Authorization",a),o.withCredentials=!1,o.onload=function(){var e;200<=this.status&&this.status<400?(e=JSON.parse(this.responseText),s(e)):t({message:"Error Loading Data",statusCode:this.status})},o.onerror=function(e){t(e)},"post"===n.toLowerCase()||"put"===n.toLowerCase()?o.send(i):o.send()},a.prevNextHelper=function(o,e,n){var r=[];function i(e,t,o){t[e]&&o?o.includes(".")?(t[e].classList[0]||t[e].classList.value&&t[e].classList.value.includes(o.split(".")[1]))&&r.push(t[e]):o.includes("#")?t[e].id===o.split("#")[1]&&r.push(t[e]):t[e].tagName===document.createElement(o.trim()).tagName&&r.push(t[e]):t[e]&&r.push(t[e])}return"string"==typeof e?Array.prototype.forEach.call(document.querySelectorAll(e),function(e,t){i(o,e,n)}):i(o,e,n),r},a.browser=function(){var e,t,o;return navigator.sayswho=(o=(t=navigator.userAgent).match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(o[1])?"IE "+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""):"Chrome"===o[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e.slice(1).join(" ").replace("OPR","Opera"):(o=o[2]?[o[1],o[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&o.splice(1,1,e[1]),o.join(" "))),{version:parseInt(navigator.sayswho.split(" ")[1]),type:navigator.sayswho.split(" ")[0],userAgent:navigator.userAgent}},a.isNodeList=function(e){e=Object.prototype.toString.call(e);return"[object NodeList]"===e||"[object Array]"===e},a.getInnerHtmlContent=function(e){return a.isCspTrustedType()?window.OtTrustedType.TrustedTypePolicy.createHTML(e):e},a.getScriptUrl=function(e){return a.isCspTrustedType()?window.OtTrustedType.TrustedTypePolicy.createScriptURL(e):e},a.isCspTrustedType=function(){var e;return(null==(e=window.OtTrustedType)?void 0:e.isCspTrustedTypeEnabled)&&(null==(e=window.OtTrustedType)?void 0:e.TrustedTypePolicy)},a.prototype.fadeOut=function(e){var t=this;if(void 0===e&&(e=60),1<=this.el.length)for(var o=0;o"))if(Array.isArray(e)){var o=this;Array.prototype.forEach.call(e,function(e,t){document.querySelector(o.selector).appendChild(new a(e,"ce").el)})}else{if("string"==typeof e||Array.isArray(e))return this.appendHtmlElement(e);if("string"==typeof this.selector)document.querySelector(this.selector).appendChild(e);else if(1<=e.length)for(var t=0;t\n '+e.Name+' '+I.NewWinTxt+"\n \n ":n):""},Yt.prototype.getBannerSDKAssestsUrl=function(){return this.getBannerVersionUrl()+"/assets"},Yt.prototype.getBannerVersionUrl=function(){var e=k.bannerScriptElement.getAttribute("src");return""+(-1!==e.indexOf("/consent/")?e.split("consent/")[0]+"scripttemplates/":e.split("otSDKStub")[0])+S.moduleInitializer.Version},Yt.prototype.checkMobileOfflineRequest=function(e){return S.moduleInitializer.MobileSDK&&new RegExp("^file://","i").test(e)},Yt.prototype.updateCorrectIABUrl=function(e){var t,o=S.moduleInitializer.ScriptType;return o!==qe.LOCAL&&o!==qe.LOCAL_TEST||(o=T.getURL(e),(t=(t=k.bannerScriptElement)&&t.getAttribute("src")?T.getURL(t.getAttribute("src")):null)&&o&&t.hostname!==o.hostname&&(e=(e=(t=""+k.bannerDataParentURL)+o.pathname.split("/").pop().replace(/(^\/?)/,"/")).replace(o.hostname,t.hostname))),e},Yt.prototype.updateCorrectUrl=function(e,t){if((void 0===t&&(t=!1),k.previewMode)&&new RegExp("^data:image/").test(e))return e;var o=T.getURL(e),n=k.bannerScriptElement,n=n&&n.getAttribute("src")?T.getURL(n.getAttribute("src")):null;if(n&&o&&n.hostname!==o.hostname){var r=S.moduleInitializer.ScriptType;if(r===qe.LOCAL||r===qe.LOCAL_TEST){if(t)return e;n=k.bannerDataParentURL+"/"+k.getRegionRule().Id,k.canUseConditionalLogic&&(n+="/"+k.Condition.Id),e=n+(null==(r=null==(r=e)?void 0:r.replace(null==(t=S.moduleInitializer)?void 0:t.CDNLocation,""))?void 0:r.replace(/(^\/?)/,"/"))}else e=null==(t=e)?void 0:t.replace(o.hostname,n.hostname)}return e},Yt.prototype.isBundleOrStackActive=function(n,r){void 0===r&&(r=null);for(var i=b.oneTrustIABConsent,s=!0,a=(r=r||b.groupsConsent,0);(()=>{var e,t,o=n.SubGroups[a];o.Status!==f.ALWAYS_ACTIVE&&(o.Type===At?(-1<(t=T.findIndex(r,function(e){return e.split(":")[0]===o.CustomGroupId}))&&"0"===r[t].split(":")[1]||!r.length)&&(s=!1):(e=o.Type===A.GroupTypes.Spl_Ft?i.specialFeatures:i.purpose,(-1<(t=T.findIndex(e,function(e){return e.split(":")[0]===o.IabGrpId}))&&"false"===e[t].split(":")[1]||!e.length)&&(s=!1))),a++})(),s&&a","ce").el,r=(v(n).html(e),n.querySelectorAll("a")),i=0;i",i.setAttribute("title",s),i.querySelector("use").setAttribute("href",r),t[n].appendChild(i)):(a.setAttribute("src",o),a.setAttribute("title",s))}}},Yt.prototype.getUTCFormattedDate=function(e){e=new Date(e);return e.getUTCFullYear()+"-"+(e.getUTCMonth()+1).toString().padStart(2,"0")+"-"+e.getUTCDate().toString().toString().padStart(2,"0")+" "+e.getUTCHours()+":"+e.getUTCMinutes().toString().toString().padStart(2,"0")+":"+e.getUTCSeconds().toString().toString().padStart(2,"0")},Yt.prototype.getDurationText=function(e){return 365<=e?(e=this.round_to_precision(e/=365,.5))+" "+(1",o.querySelector("use").setAttribute("href","#"+t),e.appendChild(o)):d(r.el,'background-image: url("'+n+'")',!0))},Yt.prototype.createOptOutSignalElement=function(e,t){var o=e(t?"#ot-pc-content":"#onetrust-policy"),n=document.createElement("div"),r=(n.classList.add("ot-optout-signal"),document.createElement("div")),i=(r.classList.add("ot-optout-icon"),document.createElement("span"));return i.innerText=t?I.PCOptOutSignalText:I.BOptOutSignalText,n.append(r),n.append(i),null!=(t=o)&&t.prepend(n),this.applyGuardLogo(e),n},Yt.prototype.applyGuardLogo=function(i){return F(this,void 0,void 0,function(){var t,o,n,r;return M(this,function(e){switch(e.label){case 0:return S.fp.CMPIconSprite?(n="\n \n ",v(i(".ot-optout-icon")).html(n),v(i(".ot-optout-icon svg")).attr("class","ot-source-sprite"),[3,3]):[3,1];case 1:return(t=I.cookiePersistentLogo).includes("ot_guard_logo.svg")||(o=I.OTCloseBtnLogo,r=o.indexOf("static/"),t=o.replace(o.slice(r+7),"ot_guard_logo.svg")),(o=S.moduleInitializer.ScriptType)!==qe.LOCAL&&o!==qe.LOCAL_TEST||(t=y.updateCorrectUrl(t)),[4,jt.getPersistentCookieSvg(t)];case 2:n=e.sent(),r=(r=n)&&n.replace(//i,'