1(function ensightenInit(){var ensightenOptions = {client: "theworks", clientId: 1655, publishPath: "prod", bootstrapVersion: "v13", isPublic:1, serverComponentLocation: "/theworks/prod/serverComponent.php", staticJavascriptPath: "/theworks/prod/code/", ns: 'Bootstrapper', nexus:"", scUseCacheBuster: "true", enableTagAuditBeacon : "true", enablePagePerfBeacon : "true", registryNs : "ensBootstraps", generatedOn : "Thu Aug 27 10:48:44 GMT 2026", beaconSamplingSeedValue: 11, dataLayerName: "ensDataLayer"}; 2if ( !window[ensightenOptions.ns] ) { 3window[ensightenOptions.registryNs]||(window[ensightenOptions.registryNs]={}); 4window[ensightenOptions.registryNs][ensightenOptions.ns]=window[ensightenOptions.ns]=function(l){function r(a){this.name="DependencyNotAvailableException";this.message="Dependency with id "+a+" is missing"}function t(a){this.name="BeaconException";this.message="There was an error during beacon initialization";a=a||{};this.lineNumber=a.lineNumber||a.line;this.fileName=a.fileName}function w(){for(var a=e.dataDefinitionIds.length,b=!0,d=0;d<a;d++){var f=e.dataDefinitions[e.dataDefinitionIds[d]];if(!f|| 5null==f.endRegistration){b=!1;break}}b&&e.callOnDataDefintionComplete()}var c={},e={};e.ensightenOptions=ensightenOptions;e.scDataObj={};var A="",x=null;if(document.currentScript&&document.currentScript.src){var q=document.currentScript.src;/^[A-Za-z][A-Za-z0-9+.-]*:/.test(q)||(q.startsWith("//")||(q="//"+q),q=window.location.protocol+q);q=new URL(q);A=q.hostname;q=q.pathname;q.startsWith(`/${ensightenOptions.client}/${ensightenOptions.publishPath}/sha`)&&(x=q.split("/"),x=x[x.length-2]||null)}c.version= 6"1.26.0";c.getDynamicDomain=function(){if(A)return A;for(var a=null,b=document.getElementsByTagName("script"),d=l.client+"/"+l.publishPath+"/Bootstrap.js",f=l.client+"/Bootstrap.js",h=0;h<b.length;h++)if(-1<b[h].src.indexOf(d)||"prod"==l.publishPath&&-1<b[h].src.indexOf(f)){a=b[h];break}return a?(b=document.createElement("a"),b.href=a.getAttribute("src"),b.hostname):""};ensightenOptions.nexus=c.nexus=ensightenOptions.nexus||c.getDynamicDomain()||"nexus.ensighten.com";c.rand=-1;c.currSec=(new Date).getSeconds(); 7c.options={interval:l.interval||100,erLoc:l.errorLocation||c.nexus+"/error/e.gif",scLoc:l.serverComponentLocation||c.nexus+"/"+l.client+"/serverComponent.php",sjPath:l.staticJavascriptPath||c.nexus+"/"+l.client+"/code/",alLoc:l.alertLocation||c.nexus+"/alerts/a.gif",publishPath:l.publishPath,isPublic:l.isPublic,client:l.client,clientId:l.clientId,enableTagAuditBeacon:l.enableTagAuditBeacon,beaconSamplingSeedValue:l.beaconSamplingSeedValue||-1,dataLayerName:l.dataLayerName||"ensDataLayer",protocol:"http:"=== 8window.location.protocol?window.location.protocol:"https:",sriPath:x};c.ruleList=[];c.allDeploymentIds=[];c.runDeploymentIds=[];c.runRuleIds=[];c.exceptionList=[];c.ensightenVariables={};c.appIdWhitelist=[];c.appIdBlacklist=[];window[c.options.dataLayerName]&&window[c.options.dataLayerName][0]&&(window[c.options.dataLayerName][0]["ens.whitelist"]&&(c.appIdWhitelist=window[c.options.dataLayerName][0]["ens.whitelist"]),window[c.options.dataLayerName][0]["ens.blacklist"]&&(c.appIdBlacklist=window[c.options.dataLayerName][0]["ens.blacklist"])); 9c.canRuleRunByAppId=function(a){return a?a&&!a.appId||a&&-1==a.appId||0==c.appIdWhitelist.length&&0==c.appIdBlacklist.length?!0:0<c.appIdWhitelist.length&&0==c.appIdBlacklist.length?-1==c.appIdWhitelist.indexOf(a.appId)?!1:!0:0==c.appIdWhitelist.length&&0<c.appIdBlacklist.length?-1==c.appIdBlacklist.indexOf(a.appId)?!0:!1:0<c.appIdWhitelist.length&&0<c.appIdBlacklist.length&&-1==c.appIdBlacklist.indexOf(a.appId)&&-1!=c.appIdWhitelist.indexOf(a.appId)?!0:!1:!1};c.test=function(a){if(c.canRuleRunByAppId(a)&& 10!(a.executionData.hasRun||a.executionData.runTime&&0<a.executionData.runTime.length)){for(var b=0;b<a.dependencies.length;b++)if(!1===a.dependencies[b]())return;a.execute()}};r.prototype=Error();r.prototype||(r.prototype={});r.prototype.constructor=r;c.DependencyNotAvailableException=r;t.prototype=Error();t.prototype||(t.prototype={});t.prototype.constructor=t;c.BeaconException=t;c.checkForInvalidDependencies=function(a,b,d,f){for(var h=0;h<d.length;h++)if("DEPENDENCYNEVERAVAILABLE"===d[h])return e.currentRuleId= 11a,e.currentDeploymentId=b,e.reportException(new c.DependencyNotAvailableException(f[h])),b&&-1!==b&&c.allDeploymentIds.push(b),!0;return!1};e.currentRuleId=-1;e.currentDeploymentId=-1;e.reportedErrors=[];e.reportedAlerts=[];e.AF=[];c.initialized=!1;e.extend=function(a){c.initialized&&window[ensightenOptions.ns].reportException({name:"CoreExtendException",message:"Core extend was called after initialization"})};e.initialize=function(){c.initialized||(this.extend(c),c.initialized=!0)};e.sampleBeacon= 12function(){var a=!1;try{var b=(c.currSec||0)%20,d=c.options.beaconSamplingSeedValue;-1===d?a=!0:0!==b&&0===d%b&&(a=!0)}catch(f){}return a};e.getServerComponent=function(a){e.callOnGetServerComponent();var b=c.options.protocol+"//"+("/"==c.options.scLoc.charAt(0)?c.getDynamicDomain():"")+c.options.scLoc;c.options.sriPath&&(b=b.replace("/serverComponent.php",`/${c.options.sriPath}/serverComponent.php`));a=c.constructScUrl(b,a||!0);fetch(a).then(d=>d.ok?d.json():(window[ensightenOptions.ns].reportException({name:"getServerComponentException", 13message:"Network response was not ok"}),{})).then(d=>{c.process(d)}).catch(d=>{window[ensightenOptions.ns].reportException({name:"getServerComponentException",message:"There was a problem with the fetch operation:"+d})})};c.constructScUrl=function(a,b){b=1==b&&"object"==typeof e.scDataObj?e.scDataObj:b;c.rand=Math.random()*("1E"+(10*Math.random()).toFixed(0));var d=window.location.href;if("object"===typeof b)for(i in b&&b.PageID&&(d=b.PageID,delete b.PageID),b){var f=~d.indexOf("#")?d.slice(d.indexOf("#"), 14d.length):"";d=d.slice(0,f.length?d.length-f.length:d.length);d+=~d.indexOf("?")?"&":"?";for(k in b)d+=k+"="+b[k]+"&";d=d.slice(0,-1)+f;break}a=a+"?namespace="+(ensightenOptions.ns+"&");a+="staticJsPath="+ensightenOptions.staticJavascriptPath+"&";return a+="ClientID="+encodeURIComponent(c.options.clientId)+"&PageID="+encodeURIComponent(d)+("/"==c.options.scLoc.charAt(0)?"&custDomain="+c.getDynamicDomain():"")};c.process=function(a){a.pageFiles&&Array.isArray(a.pageFiles)&&0<a.pageFiles.length&&e.insertPageFiles(a.pageFiles); 15a.dataDefinitionIds&&Array.isArray(a.dataDefinitionIds)&&0<a.dataDefinitionIds.length&&e.setPageSpecificDataDefinitionIds(a.dataDefinitionIds);a.context&&(e.context=a.context)};e.setVariable=function(a,b){c.ensightenVariables[a]=b};e.getVariable=function(a){return a in c.ensightenVariables?c.ensightenVariables[a]:null};e.testAll=function(){for(var a=0;a<c.ruleList.length;a++)c.test(c.ruleList[a]);c.testAndGroups()};e.executionState={DOMParsed:!1,DOMLoaded:!1,dataDefinitionComplete:!1,conditionalRules:!1, 16readyForServerComponent:!1};e.reportException=function(a){a.timestamp=(new Date).getTime();c.exceptionList.push(a);a=c.options.protocol+"//"+c.options.erLoc+"?msg="+encodeURIComponent(a.message||"")+"&lnn="+encodeURIComponent(a.lineNumber||a.line||-1)+"&fn="+encodeURIComponent(a.fileName||"")+"&cid="+encodeURIComponent(c.options.clientId||-1)+"&client="+encodeURIComponent(c.options.client||"")+"&publishPath="+encodeURIComponent(c.options.publishPath||"")+"&ri
16d="+encodeURIComponent(a.rid||e.currentRuleId|| 17-1)+"&did="+encodeURIComponent(a.did||e.currentDeploymentId||-1)+"&errorName="+encodeURIComponent(a.name||"");a=e.imageRequest(a);a.timestamp=(new Date).getTime();this.reportedErrors.push(a);e.currentRuleId=-1;e.currentDeploymentId=-1};e.Rule=function(a){this.execute=function(){this.executionData.runTime.push(new Date);e.currentRuleId=this.id;e.currentDeploymentId=this.deploymentId;try{this.code()}catch(b){window[ensightenOptions.ns].reportException(b)}finally{this.executionData.hasRun=!0,-1!==this.deploymentId&& 18(c.runDeploymentIds.push(this.deploymentId),c.runRuleIds.push(this.id)),e.testAll()}};this.id=a.id;this.deploymentId=a.deploymentId;this.dependencies=a.dependencies||[];this.code=a.code;this.appId=a.appId;this.executionData={hasRun:!1,runTime:[]}};c.updateRuleEvent=function(a,b){for(var d=0;d<c.ruleList.length;d++)if(null!=c.ruleList[d].eventTriggerObj&&c.ruleList[d].eventTriggerObj.rid==a)return c.ruleList[d].id=a,c.ruleList[d].deploymentId=b,c.ruleList[d].executionData.hasRun=!0,c.ruleList[d].executionData.runTime= 19[new Date],c.allDeploymentIds.push(b),c.runDeploymentIds.push(b),c.runRuleIds.push(a),!0;return!1};e.triggerEvent=function(a,b){const d=e.getRule(a);d&&d.executionData.hasRun||(d?c.setHasRun(d,a,b):c.updateRuleEvent(a,b)||window[ensightenOptions.ns].reportException({rid:a,did:b,name:"triggerEvent error",message:"rid not found in rule.eventTriggerObj in registered rule list. Dependent Tag can not run due to missing event object."}))};c.setHasRun=function(a,b,d){a.executionData.hasRun||(a.executionData.hasRun= 20!0,a.executionData.runTime=[new Date],c.runDeploymentIds.push(d),c.runRuleIds.push(b))};e.registerRule=function(a){if(e.getRule(a.id)&&-1!==a.id)return!1;c.ruleList.push(a);-1!==a.deploymentId&&c.allDeploymentIds.push(a.deploymentId);e.testAll();return!0};e.getRule=function(a){for(var b=0;b<c.ruleList.length;b++)if(c.ruleList[b].id===a)return c.ruleList[b];return!1};e.getRuleList=function(){return c.ruleList};e.clearRuleList=function(){c.ruleList=[];c.andGroups={}};e.getAllDeploymentIds=function(){return c.allDeploymentIds}; 21e.getRunRuleIds=function(){return c.runRuleIds};e.getRunDeploymentIds=function(){return c.runDeploymentIds};e.hasRuleRun=function(a){return e.checkHasRun([a])};c.toTwoChar=function(a){return(2===a.toString().length?"":"0")+a};e.Alert=function(a){var b=new Date;b=b.getFullYear()+"-"+c.toTwoChar(b.getMonth())+"-"+c.toTwoChar(b.getDate())+" "+c.toTwoChar(b.getHours())+":"+c.toTwoChar(b.getMinutes())+":"+c.toTwoChar(b.getSeconds());this.severity=a.severity||1;this.subject=a.subject||"";this.type=a.type|| 221;this.ruleId=a.ruleId||-1;this.severity=encodeURIComponent(this.severity);this.date=encodeURIComponent(b);this.subject=encodeURIComponent(this.subject);this.type=encodeURIComponent(this.type)};e.generateAlert=function(a){a=e.imageRequest(c.options.protocol+"//"+c.options.alLoc+"?d="+a.date+"&su="+a.subject+"&se="+a.severity+"&t="+a.type+"&cid="+c.options.clientId+"&client="+c.options.client+"&publishPath="+c.options.publishPath+"&rid="+e.currentRuleId+"&did="+e.currentDeploymentId);a.timestamp=(new Date).getTime(); 23this.reportedAlerts.push(a)};e.imageRequest=function(a){var b=new Image(0,0);b.src=a;return b};e.insertScript=function(a,b,d,f){var h=document.getElementsByTagName("script"),g;if(void 0!==b?b:1)for(g=0;g<h.length;g++)if(h[g].src===a&&h[g].readyState&&/loaded|complete/.test(h[g].readyState))return;if(!f)var m=d;else if(d){d=1==d&&"object"==typeof e.scDataObj?e.scDataObj:d;c.rand=Math.random()*("1E"+(10*Math.random()).toFixed(0));b=window.location.href;"object"===typeof d&&d.PageID&&(b=d.PageID,delete d.PageID); 24if("object"===typeof d)for(g in d){g=~b.indexOf("#")?b.slice(b.indexOf("#"),b.length):"";b=b.slice(0,g.length?b.length-g.length:b.length);b+=~b.indexOf("?")?"&":"?";for(k in d)b+=k+"="+d[k]+"&";b=b.slice(0,-1)+g;break}a=a+"?namespace="+(ensightenOptions.ns+"&");a+="staticJsPath="+ensightenOptions.staticJavascriptPath+"&";a+="ClientID="+encodeURIComponent(c.options.clientId)+"&PageID="+encodeURIComponent(b)+("/"==c.options.scLoc.charAt(0)?"&custDomain="+c.getDynamicDomain():"")}(function(p,n,v){var u= 25n.head||n.getElementsByTagName("head"),B=function(){if("item"in u){if(!u[0]){setTimeout(B,25);return}u=u[0]}var y=n.createElement("script"),z;for(z in m)y.setAttribute(z,m[z]?m[z]:null);v&&(y.src=v);y.onload=y.onerror=function(){this.addEventListener&&(this.readyState="loaded")};u.insertBefore(y,u.firstChild)};setTimeout(B,0)})(window,document,a,m)};e.loadScriptCallback=function(a,b,d,f,h){var g=document.getElementsByTagName("script"),m=g[0];h=h||!1;if(d)for(d=0;d<g.length;d++)if(g[d].src===a&&g[d].readyState&& 26/loaded|complete/.test(g[d].readyState))try{b()}catch(n){window[ensightenOptions.ns].reportException(n)}finally{return}g=document.createElement("script");for(var p in f)g.setAttribute(p,f[p]?f[p]:null);g.type="text/javascript";g.async=!0;g.src=a;g.onerror=function(){this.addEventListener&&(this.readyState="loaded")};g.onload=g.onreadystatechange=function(){if(!this.readyState||"complete"===this.readyState||"loaded"===this.readyState){this.onload=this.onreadystatechange=null;this.addEventListener&& 27(this.readyState="loaded");try{b.call(this)}catch(n){window[ensightenOptions.ns].reportException(n)}}};h?(a=document.head||document.getElementsByTagName("head")[0],a.insertBefore(g,a.firstChild)):m.parentNode.insertBefore(g,m)};e.insertPageFiles=function(a){var b=0,d=0,f=function(){d==a.length-1&&window[ensightenOptions.ns].callOnPageSpecificCompletion();d++};for(b=0;b<a.length;++b)if("string"===typeof a[b])window[ensightenOptions.ns].loadScriptCallback(a[b],f);else{const {src:h,integrity:g}=a[b]; 28window[ensightenOptions.ns].loadScriptCallback(h,f,!1,g?{integrity:g,crossorigin:"anonymous"}:{},!0)}};e.unobtrusiveAddEvent=function(a,b,d){try{var f=a[b]?a[b]:function(){};a[b]=function(){d.apply(this,arguments);return f.apply(this,arguments)}}catch(h){window[ensightenOptions.ns].reportException(h)}};e.anonymous=function(a,b){return function(){try{e.currentRuleId=b?b:"anonymous",a()}catch(d){window[ensightenOptions.ns].reportException(d)}}};e.setCurrentRuleId=function(a){e.currentRuleId=a};e.setCurrentDeploymentId= 29function(a){e.currentDeploymentId=a};c.bind=function(a,b,d,f,h,g){if("function"===typeof a)a=new e.Rule({id:b||-1,deploymentId:d||-1,appI
29d:f||-1,dependencies:"immediate"==h?[]:[function(){return window[ensightenOptions.ns].executionState[h]}],code:a}),null!=g&&(a.eventTriggerObj=g);else if("object"!==typeof a)return!1;e.registerRule(a)};e.bindImmediate=function(a,b,d,f){c.bind(a,b,d,f,"immediate")};e.bindDOMParsed=function(a,b,d,f){c.bind(a,b,d,f,"DOMParsed")};e.bindDOMLoaded=function(a,b,d,f){c.bind(a, 30b,d,f,"DOMLoaded")};e.bindPageSpecificCompletion=function(a,b,d,f){c.bind(a,b,d,f,"conditionalRules")};e.bindOnGetServerComponent=function(a,b,d,f){c.bind(a,b,d,f,"readyForServerComponent")};e.bindDataDefinitionComplete=function(a,b,d,f){c.bind(a,b,d,f,"dataDefinitionComplete")};e.checkHasRun=function(a){return 0===a.length?!0:a.every(b=>c.runRuleIds.includes(b))};c.bindDependency=function(a,b,d,f,h,g,m,p){var n=[];if(!c.checkForInvalidDependencies(b,f,d,h)){"immediate"==!m&&n.push(function(){return window[ensightenOptions.ns].executionState[m]}); 31n.push(function(){return window[ensightenOptions.ns].checkHasRun(d)});if("function"===typeof a)a=new e.Rule({id:b||-1,deploymentId:f||-1,appId:g||-1,dependencies:n,code:a}),null!=p&&(a.eventTriggerObj=p);else if("object"!==typeof a)return!1;e.registerRule(a)}};e.bindDependencyImmediate=function(a,b,d,f,h,g){c.bindDependency(a,b,d,f,h,g,"immediate")};e.bindDependencyDOMLoaded=function(a,b,d,f,h,g){c.bindDependency(a,b,d,f,h,g,"DOMLoaded")};e.bindDependencyDOMParsed=function(a,b,d,f,h,g){c.bindDependency(a, 32b,d,f,h,g,"DOMParsed")};e.bindDependencyPageSpecificCompletion=function(a,b,d,f,h,g){c.bindDependency(a,b,d,f,h,g,"conditionalRules")};e.bindDependencyOnGetServerComponent=function(a,b,d,f,h,g){c.bindDependency(a,b,d,f,h,g,"readyForServerComponent")};e.bindDependencyDataDefinitionComplete=function(a,b,d,f,h,g){c.bindDependency(a,b,d,f,h,g,"dataDefinitionComplete")};e.dataDefinitionIds=[];e.dataDefinitions=[];e.pageSpecificDataDefinitionsSet=!1;e.setPageSpecificDataDefinitionIds=function(a){for(var b= 33a?a.length:0,d=0;d<b;d++){var f=a[d];if(Array.prototype.indexOf)-1==e.dataDefinitionIds.indexOf(f)&&e.dataDefinitionIds.push(f);else{for(var h=!1,g=e.dataDefinitionIds.length,m=0;m<g;m++)if(e.dataDefinitionIds[m]===f){h=!0;break}h||e.dataDefinitionIds.push(f)}}e.pageSpecificDataDefinitionsSet=!0;w()};e.DataDefinition=function(a,b){this.id=a;this.registrationFn=b;this.endRegistrationTime=this.startRegistrationTime=null;this.startRegistration=function(){this.startRegistrationTime=new Date};this.endRegistration= 34function(){this.endRegistrationTime=new Date}};e.registerDataDefinition=function(a,b){var d=e.dataDefinitions[b];d||(d=new e.DataDefinition(b,a),e.dataDefinitions[b]=d);d.startRegistrationTime||(d.startRegistration(),d.registrationFn(),d.endRegistration());e.pageSpecificDataDefinitionsSet&&w()};e.callOnDataDefintionComplete=function(){e.executionState.dataDefinitionComplete=!0;e.testAll()};e.callOnDOMParsed=function(){window[ensightenOptions.ns].executionState.DOMParsed=!0;window[ensightenOptions.ns].testAll()}; 35e.callOnDOMLoaded=function(){window[ensightenOptions.ns].executionState.DOMParsed=!0;window[ensightenOptions.ns].executionState.DOMLoaded=!0;window[ensightenOptions.ns].testAll()};e.callOnPageSpecificCompletion=function(){for(var a=document.getElementsByTagName("script"),b=0,d=a.length;b<d;b++)if(a[b].src&&a[b].src.match(/\.ensighten\.com\/(.+?)\/code\/.*/i)&&"loaded"!=a[b].readyState&&"complete"!=a[b].readyState){setTimeout(window[ensightenOptions.ns].callOnPageSpecificCompletion,50);return}setTimeout(function(){window[ensightenOptions.ns].executionState.conditionalRules= 36!0;window[ensightenOptions.ns].testAll()},1)};e.callOnGetServerComponent=function(){window[ensightenOptions.ns].executionState.readyForServerComponent=!0;window[ensightenOptions.ns].testAll()};e.hasDOMParsed=function(){return window[ensightenOptions.ns].executionState.DOMParsed};e.hasDOMLoaded=function(){return window[ensightenOptions.ns].executionState.DOMLoaded};e.hasPageSpecificCompletion=function(){return window[ensightenOptions.ns].executionState.conditionalRules};c.andGroups={};c.testAndGroups=
37function(){Object.keys(c.andGroups).forEach(function(a){const b=c.andGroups[a];b.eventNames?b.eventNames.every(function(d){return 0<b.triggeredEvents[d].length})&&(b.ddConditions?c.testDataDefsAndExecute(b):c.executeGroup(b)):b.hasRun||b.rule.executionData.hasRun||(b.ddConditions?c.testDataDefsAndExecute(b):c.executeGroup(b))})};c.testDataDefsAndExecute=function(a){e.executionState.dataDefinitionComplete&&!a.resolving&&(a.resolving=!0,e.data.resolve(a.ddConditions.requiredData,function(){a.resolving= 38!1;a.ddConditions.values=Array.prototype.slice.call(arguments,0);e.data.checkConditions(a.ddConditions)&&c.executeGroup(a)},!0))};c.__no_op=function(){};c.__false=function(){return!1};c.registerAndGroup=function(a,b,d,f,h,g,m,p){f=null==f||0===f.length?null:f;const n=c.generateGroupId(a,b,f,g);if(!(c.andGroups[n]||m&&c.checkForInvalidDependencies(a,b,m,p))){var v=e.getRule(a);!f&&v&&v.executionData.hasRun||(v||(v=new e.Rule({id:a,deploymentId:b,appId:d,code:c.__no_op,dependencies:[c.__false]}),e.registerRule(v)), 39c.andGroups[n]={eventNames:f,triggeredOrder:new Set,triggeredEvents:{},callback:h,ddConditions:g,rid:a,did:b,dependencyRids:m,dependencyDids:p,rule:v,hasRun:!1},f&&f.forEach(function(u){c.andGroups[n].triggeredEvents[u]=[];window[ensightenOptions.ns].ensEvent.add(u,function(){c.storeTriggeredEvent(n,u,this!==window?this:null)})}))}};c.storeTriggeredEvent=function(a,b,d){if(a=c.andGroups[a])a.triggeredOrder.add(b),a.triggeredEvents[b].push({data:d,timestamp:(new Date).getTime()})};c._boxedPrimitives= 40["[object Number]","[object String]","[object Boolean]","[object Symbol]"];c.isObject=function(a){a=a.data;if(null===a||"object"!==typeof a)return!1;a=Object.prototype.toString.call(a);return!c._boxedPrimitives.includes(a)};c.executeGroup=function(a){if(a.eventNames||!a.hasRun&&!a.rule.executionData.hasRun){var b=a.eventNames?a.eventNames.every(function(f){return 0<a.triggeredEvents[f].length}):!0,d=a.dependencyRids?e.checkHasRun(a.dependencyRids):!0;if(b&&d){b=a.eventNames?Array.from(a.triggeredOrder).map(function(f){return{name:f, 41...a.triggeredEvents[f].splice(0,a.triggeredEvents[f].length).pop()}}):[];a.triggeredOrder.clear();d=b.filter(f=>c.isObject(f)).length===b.length;d=0===b.length?null:1!==b.length&&d?b.reduce((f,h)=>({...f,...h.data}),{}):b[b.length-1].data;try{a.callback.call(d,b),a.hasRun=!0,c.setHasRun(a.rule,a.rid,a.did)}catch(f){e.reportException(f)}}}};c.generateGroupId=function(a,b,d,f){return`and_${a}_${b}_${d?d.join("_"):""}_${f?f.requiredData.join("_"):""}`};e.bindAndGroup=function(a,b,d,f,h,g,m,p,n){c.bind(function(){c.registerAndGroup(d, 42f,h,g,a,m,p,n)},-1,-1,h,b)};e.getAndGroups=function(){return c.andGroups};var C=function(){var a=[],b=!1,d=!1;return{add:function(f){b&&!d?f():"function"==typeof f&&(a[a.length]=f)},exec:function(){d=!0;do{var f=a;a=[];b=!0;for(var h=0;h<f.length;h++)try{f[h].call(window)}catch(g){window[ensightenOptions.ns].reportException(g)}}while(0<a.length);d=!1},haveRun:function(){return b}}};e.new_fArray=function(){return C()};c.timer=null;(function(){function a(f,h){return function(){f.apply(h,arguments)}} 43window.console||(window.console={});var b=window.console;if(!b.log)if(window.log4javascript){var d=log4javascript.getDefaultLogger();b.log=a(d.info,d);b.debug=a(d.debug,d);b.info=a(d.info,d);b.warn=a(d.warn,d);b.error=a(d.error,d)}else b.log=function(){};b.debug||(b.debug=b.log);b.info||(b.info=b.log);b.warn||(b.warn=b.log);b.error||(b.error=b.log)})();document.addEventListener?(-1<navigator.userAgent.indexOf("AppleWebKit/")?c.timer=window.setInterval(function(){/loaded|interactive|complete/.test(document.readyState)&& 44(clearInterval(c.timer),e.callOnDOMParsed())},50):document.addEventListener("DOMContentLoaded",e.callOnDOMParsed,!1),window.addEventListener("load",e.callOnDOMLoaded,!1)):(setTimeout(function(){var a=window.document,b=function(){try{if(!document.body)throw"continue";a.documentElement.doScroll("left")}catch(d){setTimeout(b,15);return}window[ensightenOptions.ns].callOnDOMParsed()};b()},1),window.attachEvent("onload",function(){window[ensightenOptions.ns].callOnDOMLoaded()}));document.readyState&&"complete"=== 45document.readyState&&(e.executionState.DOMParsed=!0,e.executionState.DOMLoaded=!0);"true"===c.options.enableTagAuditBeacon&&e.sampleBeacon()&&window.setTimeout(function(){if(window[ensightenOptions.ns]&&!window[ensightenOptions.ns].mobilePlatform)try{for(var a=[],b,d,f,h,g=0;g<c.ruleList.length;++g)d=c.ruleList[g],f=d.executionData.hasRun?"1":"0",h=d.deploymentId.toString()+"|"+d.id.toString()+"|"+f,a.push(h);b="["+a.join(";")+"]";var m=c.options.protocol+"//"+c.nexus+"/"+encodeURIComponent(l.client)+ 46"/"+encodeURIComponent(l.publishPath)+"/TagAuditBeacon.rnc?cid="+encodeURIComponent(l.clientId)+"&data="+b+"&idx=0&r="+c.rand;e.imageRequest(m)}catch(p){e.currentRuleId=-1,e.currentDeploymentId=-1,a=new c.BeaconException(p),window[ensightenOptions.ns].reportException(a)}},3E3);window.setInterval(e.testAll,c.options.interval);return e}(ensightenOptions); 47"true"===ensightenOptions.enablePagePerfBeacon&&window[ensightenOptions.ns]&&window[ensightenOptions.ns].sampleBeacon()&&window[ensightenOptions.ns].bindDOMParsed(function(){if(!window[ensightenOptions.ns].mobilePlatform){var l=window.performance;if(l){l=l.timing||{};var r=l.navigationStart||0,t={connectEnd:"ce",connectStart:"cs",domComplete:"dc",domContentLoadedEventEnd:"dclee",domContentLoadedEventStart:"dcles",domInteractive:"di",domLoading:"dl",domainLookupEnd:"dle",domainLookupStart:"dls",fetchStart:"fs", 48loadEventEnd:"lee",loadEventStart:"les",redirectEnd:"rede",redirectStart:"reds",requestStart:"reqs",responseStart:"resps",responseEnd:"respe",secureConnectionStart:"scs",unloadEventStart:"ues",unloadEventEnd:"uee"};var w="&ns="+encodeURIComponent(l.navigationStart);for(var c in t)if(void 0!==l[c]){var e=l[c]-r;w+="&"+t[c]+"="+(0<e?encodeURIComponent(e):0)}else w+="&"+t[c]+"=-1";window[ensightenOptions.ns].timing=w;c=ensightenOptions.nexus||"nexus.ensighten.com";l=ensightenOptions.staticJavascriptPath|| 49"";w=l.indexOf("/",0);r=l.indexOf("/code/");l=l.substring(w,r)+"/perf.rnc";l+="?cid="+encodeURIComponent(ensightenOptions.clientId)+window[ensightenOptions.ns].timing;window[ensightenOptions.ns].imageRequest("//"+c+l)}}}); 50 51const _public=window[ensightenOptions.ns],extend=_public.extend; 52_public.extend=function(b){extend(b);b.ruleEventList=[];b.hasObjectWithRuleIdAndEventName=function(c){return b.ruleEventList.some(function(a){return a.ruleId===c.ruleId&&a.eventName===c.eventName})};b.registerRuleEvent=function(c,a){var f=[];Array.isArray(a)&&a.forEach(function(e){var d={ruleId:c,eventName:e};b.hasObjectWithRuleIdAndEventName(d)||(f.push(e),b.ruleEventList.push(d))});return f};b.bindEvents=function(c,a,f,e,d,g){var h=b.registerRuleEvent(a,d);0<h.length&&(-1==a?b.bind(c,-1,-1,e,g): 53b.bind(function(){window[ensightenOptions.ns].ensEvent.add(h,c)},-1,-1,e,g,{eventTrigger:!0,rid:a,did:f}))};_public.ensEvent=_public.ensEvent||{};_public.ensEvent.setRuleEventList=function(c){b.ruleEventList=JSON.parse(JSON.stringify(c))};_public.ensEvent.clearRuleEventList=function(){b.ruleEventList=[]};_public.ensEvent.getRuleEventList=function(){return b.ruleEventList};_public.bindEventImmediate=function(c,a,f,e,d){b.bindEvents(c,a,f,e,d,"immediate")};_public.bindEventDOMParsed=function(c,a,f, 54e,d){b.bindEvents(c,a,f,e,d,"DOMParsed")};_public.bindEventDOMLoaded=function(c,a,f,e,d){b.bindEvents(c,a,f,e,d,"DOMLoaded")};b.bindEventDependency=function(c,a,f,e,d,g,h,l){var k=b.registerRuleEvent(a,l);0<k.length&&(-1==a?b.bindDependency(c,-1,d,-1,d,g,h):b.bindDependency(function(){window[ensightenOptions.ns].ensEvent.add(k,c)},-1,f,-1,d,g,h,{eventTrigger:!0,rid:a,did:e}))};_public.bindEventDependencyImmediate=function(c,a,f,e,d,g,h){b.bindEventDependency(c,a,f,e,d,g,"immediate",h)};_public.bindEventDependencyDOMLoaded= 55function(c,a,f,e,d,g,h){b.bindEventDependency(c,a,f,e,d,g,"DOMLoaded",h)};_public.bindEventDependencyDOMParsed=function(c,a,f,e,d,g,h){b.bindEventDependency(c,a,f,e,d,g,"DOMParsed",h)}}; 56window[ensightenOptions.ns].initialize(); 57const __public=window[ensightenOptions.ns]; 58if(!__public.ensEvent||!__public.ensEvent.defined){const t=function(k,l){var d={queue:{},pollQueue:{}
58,max_recur:1E3,pushTrigger:function(a,b){if("[object Array]"===Object.prototype.toString.call(a)){for(var c=0;c<a.length;c++)d.pushTrigger(a[c],b);return!0}if("string"!=typeof a)return!1;this.queue[a]=this.queue[a]||{fn:[]};"function"==typeof b&&this.queue[a].fn.push(b);d.addEventRunTime("eventsAdded",a);return!0},callTrigger:function(a,b,c,p){if("string"!=typeof a)return!1;var e=d.queue[a];if("object"== 59typeof e&&e.fn&&e.fn.length){if(0!=e.fireOnFirstSet&&c==l||c!=l&&0!=e.fireOnUpdate){const q={name:a,data:this!==k?this:null,timestamp:Date.now()};for(var f=b;f<e.fn.length;f++)try{e.fn[f].call(this,[q]),d.addEventRunTime("eventsTriggered",a)}catch(r){__public.reportException(r)}}e=e.fn.length;__public.testAll();d.queue[a].fn.length>e&&(b>=d.max_recur?__public.reportException({name:"EventTriggerRecursionLimitExceeded",message:"Event - "+a+" trigger reached the max recursion depth limit."}):d.callTrigger(a, 60e,c,p))}},addEventRunTime:function(a,b){var c=__public.ensEvent;c[a]=c[a]||{};c[a][b]=c[a][b]||{runTimes:[]};c[a][b].runTimes.push((new Date).getTime())},clearQueue:function(){this.queue={}},getQueue:function(){return this.queue}};let m=!1;const g=[];__public.bindPageSpecificCompletion(function(){for(m=!0;0<g.length;){const a=g.shift();n.trigger(a.name,a.ref)}});let h=!1;var n={add:function(a,b){return d.pushTrigger(a,b)},get:function(a){return d.queue[a]},trigger:function(a,b){if(m)return b=b||k, 61__public.data=__public.data||{},__public.data.event_param=b||{},d.callTrigger.call(b||Bootstrapper,a,0);g.push({name:a,ref:b})},initialize:function(){h||(this.extend(d),h=!0)},extend:function(a){h&&__public.reportException({name:"EventExtendException",message:"Event extend was called after event initialization."})},clearQueue:function(){d.clearQueue()},getQueue:function(){return d.getQueue()},defined:!0};return n}(window);Object.assign(__public.ensEvent,t)}; 62 63window[ensightenOptions.ns].ensEvent.initialize(); 64Bootstrapper.dataDefinitionIds = [];/* 65 For license information please see privacy-gateway-2.3.802.min.js.LICENSE.txt */ 66Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;ensClientConfig={"info":{"name":"theworks","publishPath":"prod","clientId":1655},"cookieTypes":["Performance Cookies","Advertising Cookies","Functional Cookies"],"onConsent":function(key,value){if(window.dataLayer!=null)window.dataLayer.push({event:"consent_updated",[key]:value})},"whitelist":{"default":[{"tag":"dev01-eu01-theworksstoresltd.demandware.net","displayName":"Commerce Cloud"}, 67{"tag":"production-eu01-theworksstoresltd.demandware.net","displayName":"Commerce Cloud"},{"tag":"www.theworks.co.uk","displayName":"Commerce Cloud"},{"tag":".cquotient.com","displayName":"Commerce Cloud"},{"tag":".commercecloud.salesforce.com","displayName":"Commerce Cloud"},{"tag":"theworks.co.uk","displayName":"Commerce Cloud"},{"tag":"attribution.theworks.co.uk","displayName":"Ensighten Certificate"},{"tag":".*.evri.com","displayName":"Evri"},{"tag":"kaptcha.com","displayName":"kount"},{"tag":"ssl.kaptcha.com", 68"displayName":"kount"},{"tag":"api.ometria.com","displayName":"Ometria"},{"tag":"cdn.ometria.com","displayName":"Ometria"},{"tag":"trk.ometria.com","displayName":"Ometria"},{"tag":"www.paypal.com","displayName":"PayPal"},{"tag":".paypal.com","displayName":"PayPal"},{"tag":".paypalobjects.com","displayName":"PayPal Objects"},{"tag":"payments.worldpay.com","displayName":"WorldPay"},{"tag":".worldpay.com","displayName":"WorldPay"},{"tag":"cdnjs.cloudflare.com","displayName":""},{"tag":"maps.googleapis.com", 69"displayName":""},{"tag":"analytics.google.com","displayName":"Google Analytics"},{"tag":"ssl.google-analytics.com","displayName":"Google Analytics"},{"tag":"www.google-analytics.com","displayName":""},{"tag":"tpc.googlesyndication.com","displayName":""},{"tag":"googleads.g.doubleclick.net","displayName":"DoubleClick"},{"tag":"td.doubleclick.net","displayName":"doubleclick"},{"tag":"api.edq.com","displayName":"Experian"},{"tag":"unpkg.com","displayName":"Flickity","paths":["/[email protected]/dist/flickity.min.css", 70"/flickity@2/dist/flickity.pkgd.min.js","/[email protected]/dist/flickity.pkgd.min.js","/flickity@2/dist/flickity.min.css"],"filter":"allowPaths"},{"tag":"static.theworks.co.uk","displayName":""},{"tag":"cdn.cquotient.com","displayName":""},{"tag":"edge.disstg.commercecloud.salesforce.com","displayName":""},{"tag":"e.cquotient.com","displayName":""},{"tag":"seal.godaddy.com","displayName":""},{"tag":"stagingsf.theworks.co.uk\t","displayName":""},{"tag":".googlesyndication.com","displayName":""},{"tag":"\\.ensighten\\.com$", 71"displayName":"Ensighten"},{"tag":"www.googletagmanager.com","displayName":""},{"tag":"tagmanager.google.com","displayName":"Google Tag Manager"},{"tag":"www.woosmap.com","displayName":"Woosmap"},{"tag":"sdk.woosmap.com","displayName":"Woosmap"},{"tag":"api.woosmap.com","displayName":"Woosmap"},{"tag":"ww2.theworks.co.uk","displayName":"Commerce Cloud"},{"tag":"region1.google-analytics.com","displayName":""},{"tag":"network-eu-a.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"network-eu-a.bazaarvoice.com", 72"displayName":"Bazaar Voice - Eu a"},{"tag":"mpsnare.iesnare.com","displayName":"Bazaar Voice - mpsnare"},{"tag":"apps.bazaarvoice.com","displayName":"Bazaarvioce"},{"tag":"analytics-static.ugc.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"photos-us.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"theworks.ugc.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"network.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"network-eu-stg.bazaarvoice.com","displayName":"Bazaarvoice"}, 73{"tag":"photos-eu.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"network-eu.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"display.ugc.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"c5.ugc.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"api.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"apps.nexus.bazaarvoice.com","displayName":"Bazaarvoice"},{"tag":"copilotstudio.microsoft.com","displayName":"Copilot"},{"tag":"^www\\.recaptcha\\.net$","displayName":"Recaptcha Contactus Form"}, 74{"tag":"^www\\.gstatic\\.com$","displayName":"Recaptcha - Contactus"},{"tag":".*starsbuildingweb.com","displayName":"Cheq - Bot monitor"},{"tag":".*monday.com","displayName":"Monday"},{"tag":"^af661eb2-pm-assets-cdn\\.s3\\.amazonaws\\.com$","displayName":"Watermark Infrastru
74cture Script","paths":["/resource-898263.7154721281.js"],"filter":"allowPaths"}],"Performance Cookies":[{"tag":"gyourp.s3.ap-northeast-2.amazonaws.com","displayName":"Amazon AWS"},{"tag":"\\.doubleclick\\.net$","displayName":"DoubleClick"}, 75{"tag":"stats.g.doubleclick.net","displayName":"DoubleClick"},{"tag":"adclick.g.doubleclick.net","displayName":"DoubleClick"},{"tag":"bid.g.doubleclick.net","displayName":"DoubleClick"},{"tag":"workspace.google.com","displayName":"Google"},{"tag":"ssl.gstatic.com","displayName":"Google"},{"tag":"ajax.googleapis.com","displayName":"Google"},{"tag":"www.googleapis.com","displayName":"Google"},{"tag":"khms0.googleapis.com","displayName":"Google"},{"tag":"csi.gstatic.com","displayName":"Google"},{"tag":"wsp41.hotjar.com", 76"displayName":"Hotjar"},{"tag":"wsp37.hotjar.com","displayName":"Hotjar"},{"tag":"wsp38.hotjar.com","displayName":"Hotjar"},{"tag":"wsp40.hotjar.com","displayName":"Hotjar"},{"tag":"wsp42.hotjar.com","displayName":"Hotjar"},{"tag":"wsp39.hotjar.com","displayName":"Hotjar"},{"tag":"wsp32.hotjar.com","displayName":"Hotjar"},{"tag":"wsp36.hotjar.com","displayName":"Hotjar"},{"tag":"wsp35.hotjar.com","displayName":"Hotjar"},{"tag":"wsp33.hotjar.com","displayName":"Hotjar"},{"tag":"wsp30.hotjar.com","displayName":"Hotjar"}, 77{"tag":"wsp29.hotjar.com","displayName":"Hotjar"},{"tag":"wsp28.hotjar.com","displayName":"Hotjar"},{"tag":"wsp34.hotjar.com","displayName":"Hotjar"},{"tag":"wsp31.hotjar.com","displayName":"Hotjar"},{"tag":"wsp27.hotjar.com","displayName":"Hotjar"},{"tag":"wsp26.hotjar.com","displayName":"Hotjar"},{"tag":"wsp14.hotjar.com","displayName":"Hotjar"},{"tag":"wsp6.hotjar.com","displayName":"Hotjar"},{"tag":"wsp13.hotjar.com","displayName":"Hotjar"},{"tag":"wsp18.hotjar.com","displayName":"Hotjar"},{"tag":"wsp16.hotjar.com", 78"displayName":"Hotjar"},{"tag":"wsp17.hotjar.com","displayName":"Hotjar"},{"tag":"wsp15.hotjar.com","displayName":"Hotjar"},{"tag":"vc.hotjar.io","displayName":"Hotjar"},{"tag":"vars.hotjar.com","displayName":"Hotjar"},{"tag":"sentry-proxy.hotjar.com","displayName":"Hotjar"},{"tag":"static.hotjar.com","displayName":"Hotjar"},{"tag":"in.hotjar.com","displayName":"Hotjar"},{"tag":"wsp7.hotjar.com","displayName":"Hotjar"},{"tag":"wsp1.hotjar.com","displayName":"Hotjar"},{"tag":"wsp2.hotjar.com","displayName":"Hotjar"}, 79{"tag":"wsp3.hotjar.com","displayName":"Hotjar"},{"tag":"wsp10.hotjar.com","displayName":"Hotjar"},{"tag":"wsp9.hotjar.com","displayName":"Hotjar"},{"tag":"wsp4.hotjar.com","displayName":"Hotjar"},{"tag":"wsp12.hotjar.com","displayName":"Hotjar"},{"tag":"wsp11.hotjar.com","displayName":"Hotjar"},{"tag":"wsp8.hotjar.com","displayName":"Hotjar"},{"tag":"script.hotjar.com","displayName":"Hotjar"},{"tag":"wsp5.hotjar.com","displayName":"Hotjar"},{"tag":"wsp19.hotjar.com","displayName":"Hotjar"},{"tag":"wsp20.hotjar.com", 80"displayName":"Hotjar"},{"tag":"wsp24.hotjar.com","displayName":"Hotjar"},{"tag":"wsp23.hotjar.com","displayName":"Hotjar"},{"tag":"wsp25.hotjar.com","displayName":"Hotjar"},{"tag":"wsp21.hotjar.com","displayName":"Hotjar"},{"tag":"wsp22.hotjar.com","displayName":"Hotjar"},{"tag":"csmetrics.hotjar.com","displayName":"Hotjar"},{"tag":"content.hotjar.io","displayName":"Hotjar"},{"tag":".hotjar.io","displayName":"Hotjar"},{"tag":"ask.hotjar.io","displayName":"Hotjar"},{"tag":"af.monetate.net","displayName":"kibo"}, 81{"tag":"f.monetate.net","displayName":"kibo"},{"tag":"se.monetate.net","displayName":"kibo"},{"tag":"b.monetate.net","displayName":"kibo"},{"tag":"sb.monetate.net","displayName":"kibo"},{"tag":"e.monetate.net","displayName":"kibo"},{"tag":"d.monetate.net","displayName":"kibo"},{"tag":"sf.monetate.net","displayName":"kibo"},{"tag":"ad.monetate.net","displayName":"kibo"},{"tag":"marketer.monetate.net","displayName":"kibo"},{"tag":"track.webgains.com","displayName":"Webgains"},{"tag":"analytics.webgains.io", 82"displayName":"Webgains"},{"tag":"webgains.withcubed.com","displayName":"Webgains"},{"tag":"apis.google.com","displayName":""},{"tag":"translate.googleapis.com","displayName":""},{"tag":"translate.google.com","displayName":""},{"tag":"secured.shoptagr.com","displayName":""},{"tag":"plx-pa-googleapis.corp.google.com","displayName":""},{"tag":"mpsnare.iesnare.com","displayName":""},{"tag":"n.extrabux.top","displayName":""},{"tag":"megadash.googleplex.com","displayName":""},{"tag":"match.amazonbrowserapp.co.uk", 83"displayName":""},{"tag":"media.richrelevance.com","displayName":""},{"tag":"googletagmanager.com","displayName":""},{"tag":"data1.pictdog.com","displayName":""},{"tag":"data1.myloap.com","displayName":""},{"tag":"calendar.google.com","displayName":""},{"tag":"cdn-ads.google-analytics.com","displayName":""},{"tag":"cbks0.googleapis.com","displayName":""},{"tag":".*\\.clarity.ms","displayName":"Microsoft Clarity"},{"tag":"c.clarity.ms","displayName":"Microsoft Clarity"},{"tag":"www.clarity.ms","displayName":"Microsoft Clarity"}, 84{"tag":"l.clarity.ms","displayName":"Microsoft Clarity"},{"tag":"d.clarity.ms","displayName":"Microsoft Clarity"},{"tag":"h.clarity.ms","displayName":"Microsoft Clarity"},{"tag":"i.clarity.ms","displayName":"Microsoft Clarity"},{"tag":"bahpc2f6.micpn-eu.com"},{"tag":".*dynatrace.*","displayName":"Dynatrace"},{"tag":"faro-collector-prod-gb-south-1.grafana.net.*","displayName":"Grafana tracking"},{"tag":"cdn\\.jsdelivr\\.net","displayName":"Grafana","paths":["/npm/@grafana/faro-web-tracing@latest/dist/bundle/faro-web-tracing.iife.js", 85"/npm/@grafana/faro-web-sdk@latest/dist/bundle/faro-web-sdk.iife.js"],"filter":"allowPaths","googleId":2213}],"Advertising Cookies":[{"tag":"w.amazon.com","displayName":"Amazon"},{"tag":"www.amazon.co.jp","displayName":"Amazon"},{"tag":"www.amazon.co.uk","displayName":"Amazon"},{"tag":"www.amazon.com","displayName":"Amazon"},{"tag":"garbled.amazon.com","displayName":"Amazon"},{"tag":"s3.eu-west-2.amazonaws.com","displayName":"Amazon AWS"},{"tag":"s3.eu-central-1.amazonaws.com","displayName":"Amazon AWS"}, 86{"tag":"files-js-ext.s3.us-east-2.amazonaws.com","displayName":"Amazon AWS"},{"tag":"s3.amazonaws.com","displayName":"Amazon AWS"},{"tag":"s3-us-west-2.amazonaws.com","displayName":"Amazon AWS"},{"tag":"s3-us-west-1.amazonaws.com","displayName":"Amazon AWS"},{"tag":"s3-eu-west-1.amazonaws.com","displayName":"Amazon AWS"},{"tag":"theworks-gb.attn.tv","displayName":"Attentive"},{"tag":"events.attentivemobile.com","displayName":"Attentive"},{"tag":"creatives.attn.tv","displayName":"Attentive"},{"tag":"cdn.attn.tv", 87"displayName":"Attentive"},{"tag":"babydealsuk.com","displayName":"babydealsuk.com"},{"tag":"bing.com","displayName":"Bing"},{"tag":"www.bing.com","displayName":"Bing"},{"tag":"c.bing.com","displayName":"Bing"},{"tag":"bat.bing.com","displayName":"Bing"},{"tag":"www.bluelightcard.co.uk","displayName":"Blue Light Card"},{"tag":"t.channeladvisor.com","displayName":"Channel Advisor"},{"tag":"tracking2.channeladvisor.com","displayName":"Channel Advisor"},{"tag":"www.cuponation.co.uk","displayName":"Cupo Nation"}, 88{"tag":"www.dailymail.co.uk","displayName":"Daily Mail"},{"tag":"www.easyfundraising.org.uk","displayName":"Easy Fund raising"},{"tag":"www.ebay.com","displayName":"Ebay"},{"tag":"www.ebay.co.uk","displayName":"Ebay"},{"tag":"epn.ebay.com","displayName":"Ebay"},{"tag":"m.facebook.com","displayName":"Facebook"},{"tag":"l.facebook.com","displayName":"Facebook"},{"tag":"graph.facebook.com","displayName":"Facebook"},{"tag":"connect.facebook.net","displayName":"Facebook"},{"tag":"saltcdn2.facebook.com", 89"displayName":"Facebook"},{"tag":"www.facebook.com","displayName":"Facebook"},{"tag":"seal.godaddy.com","displayName":"Godaddy"},{"tag":"google.com","displayName":"Google"},{"tag":"www.google.co.ck","displayName":"Google"},{"tag":"www.google.nr","displayName":"Google"},{"tag":"www.google.st","displayName":"Google"},{"tag":"www.google.to","displayName":"Google"},{"tag":"www.google.co.uz","displayName":"Google"},{"tag":"www.google.com.cy","displayName":"Google"},{"tag":"www.google.fm","displayName":"Google"}, 90{"tag":"www.google.dj","displayName":"Google"},{"tag":"www.google.ws","displayName":"Google"},{"tag":"www.google.sm","displayName":"Google"},{"tag":"www.google.ga","displayName":"Google"},{"tag":"www.google.cf","displayName":"Google"},{"tag":"www.google.td","displayName":"Google"},{"tag":"www.google.tl","displayName":"Google"},{"tag":"www.google.com.pk","displayName":"Google"},{"tag":"www.google.as","displayName":"Google"},{"tag":"www.google.bi","displayName":"Google"},{"tag":"www.google.cg","displayName":"Google"}, 91{"tag":"www.google.la","displayName":"Google"},{"tag":"www.google.cv","displayName":"Google"},{"tag":"www.google.mg","displayName":"Google"},{"tag":"www.google.bf","displayName":"Google"},{"tag":"www.google.vu","displayName":"Google"},{"tag":"www.google.com","displayName":"Google"},{"tag":"www.google.tg","displayName":"Google"},{"tag":"www.google.kg","displayName":"Google"},{"tag":"www.google.ki","displayName":"Google"},{"tag":"www.google.lu","displayName":"Google"},{"tag":"www.google.pl","displayName":"Google"}, 92{"tag":"www.google.tt","displayName":"Google"},{"tag":"www.google.tn","displayName":"Google"},{"tag":"www.google.tm","displayName":"Google"},{"tag":"www.google.sr","displayName":"Google"},{"tag":"www.google.so","displayName":"Google"},{"tag":"www.google.sn","displayName":"Google"},{"tag":"www.google.sk","displayName":"Google"},{"tag":"www.google.si","displayName":"Google"},{"tag":"www.google.sh","displayName":"Google"},{"tag":"www.google.se","displayName":"Google"},{"tag":"www.google.sc","displayName":"Google"}, 93{"tag":"www.google.rw","displayName":"Google"},{"tag":"www.google.ru","displayName":"Google"},{"tag":"www.google.rs","displayName":"Google"},{"tag":"www.google.ro","displayName":"Google"},{"tag":"www.google.pt","displayName":"Google"},{"tag":"www.google.ps","displayName":"Google"},{"tag":"www.google.mv","displayName":"Google"},{"tag":"www.google.no","displayName":"Google"},{"tag":"www.google.nl","displayName":"Google"},{"tag":"www.google.ne","displayName":"Google"},{"tag":"www.google.mw","displayName":"Google"}, 94{"tag":"www.google.me","displayName":"Google"},{"tag":"www.google.mu","displayName":"Google"},{"tag":"www.google.ms","displayName":"Google"},{"tag":"www.google.mn","displayName":"Google"},{"tag":"www.google.ml","displayName":"Google"},{"tag":"www.google.md","displayName":"Google"},{"tag":"www.google.lv","displayName":"Google"},{"tag":"www.google.jo","displayName":"Google"},{"tag":"www.google.lt","displayName":"Google"},{"tag":"www.google.lk","displayName":"Google"},{"tag":"www.google.kz","displayName":"Google"}, 95{"tag":"www.google.bg","displayName":"Google"},{"tag":"www.google.je","displayName":"Google"},{"tag":"www.google.it","displayName":"Google"},{"tag":"www.google.im","displayName":"Google"},{"tag":"www.google.is","displayName":"Google"},{"tag":"www.google.iq","displayName":"Google"},{"tag":"www.google.ie","displayName":"Google"},{"tag":"www.google.co.uk","displayName":"Google"},{"tag":"www.google.hu","displayName":"Google"},{"tag":"www.google.gr","displayName":"Google"},{"tag":"www.google.co.jp","displayName":"Google"}, 96{"tag":"www.google.ht","displayName":"Google"},{"tag":"www.google.gm","displayName":"Google"},{"tag":"www.google.hr","displayName":"Google"},{"tag":"www.google.gy","displayName":"Google"},{"tag":"www.google.gg","displayName":"Google"},{"tag":"www.google.fr","displayName":"Google"},{"tag":"www.google.ge","displayName":"Google"},{"tag":"www.google.ee","displayName":"Google"},{"tag":"www.google.fi","displayName":"Google"},{"tag":"www.google.es","displayName":"Google"},{"tag":"www.google.co.vi","displayName":"Google"}, 97{"tag":"www.google.dz","displayName":"Google"},{"tag":"www.google.dm","displayName":"Google"},{"tag":"www.google.dk","displayName":"Google"},{"tag":"www.google.de","displayName":"Google"},{"tag":"www.google.cz","displayName":"Google"},{"tag":"www.google.co.zw","displayName":"Google"},{"tag":"www.google.co.zm","displayName":"Google"},{"tag":"www.google.co.za","displayName":"Google"},{"tag":"www.google.co.ve","displayName":"Google"},{"tag":"www.google.co.tz","displayName":"Google"},{"tag":"www.google.co.ug", 98"displayName":"Google"},{"tag":"www.google.co.ma","displayName":"Google"},{"tag":"www.google.co.th","displayName":"Google"},{"tag":"www.google.co.nz","displayName":"Google"},{"tag":"www.google.co.ls","displayName":"Google"},{"tag":"www.google.co.kr","displayName":"Google"},{"tag":"www.google.co.ke","displayName":"Google"},{"tag":"www.google.be","displayName":"Google"},{"tag":"www.google.co.in","displayName":"Google"},{"tag":"www.google.co.id","displayName":"Google"},{"tag":"www.google.co.il","displayName":"Google"}, 99{"tag":"www.google.co.bw","displayName":"Google"},{"tag":"www.google.co.ao","displayName":"Google"},{"tag":"www.google.cn","displayName":"Google"},{"tag":"www.google.cm","displayName":"Google"},{"tag":"www.google.cl","displayName":"Google"},{"tag":"www.google.ci","displayName":"Google"},{"tag":"www.google.ch","displayName":"Google"},{"tag":"www.google.cd","displayName":"Google"},{"tag":"www.google.ca","displayName":"Google"},{"tag":"www.google.by","displayName":"Google"},{"tag":"www.google.bt","displayName":"Google"}, 100{"tag":"www.google.bs","displayName":"Google"},{"tag":"www.google.al","displayName":"Google"},{"tag":"www.google.com.hk","displayName":"Google"},{"tag":"www.google.bj","displayName":"Google"},{"tag":"www.google.az","displayName":"Google"},{"tag":"www.google.at","displayName":"Google"},{"tag":"www.google.am","displayName":"Google"},{"tag":"www.google.ae","displayName":"Google"},{"tag":"www.google.ad","displayName":"Google"},{"tag":"www.google.vg","displayName":"Google"},{"tag":"www.google.com.af", 101"displayName":"Google"},{"tag":"www.google.com.sb","displayName":"Google"},{"tag":"www.google.co.mz","displayName":"Google"},{"tag":"www.google.li","displayName":"Google"},{"tag":"www.google.mk","displayName":"Google"},{"tag":"www.google.hn","displayName":"Google"},{"tag":"www.google.co.cr","displayName":"Google"},{"tag":"www.google.gl","displayName":"Google"},{"tag":"www.google.ba","displayName":"Google"},{"tag":"www.google.com.tr","displayName":"Google"},{"tag":"www.google.com.ar","displayName":"Google"}, 102{"tag":"www.hotukdeals.com","displayName":"Hot UK Deals"},{"tag":"l.instagram.com","displayName":"Instagram"},{"tag":"www.instagram.com","displayName":"Instagram"},{"tag":"saltcdn2.www.instagram.com","displayName":"Instagram"},{"tag":"www.myvouchercodes.co.uk/","displayName":"My Voucher Codes"},{"tag":"tam.outbrain.com","displayName":"Outbrain"},{"tag":"dr.outbrain.com","displayName":"Outbrain"},{"tag":"tr.outbrain.com","displayName":"Outbrain"},{"tag":"amplify.outbrain.com","displayName":"Outbrain"}, 103{"tag":"widgets.outbrain.com","displayName":"Outbrain"},{"tag":"ct.pinterest.com","displayName":"Pinterest"},{"tag":"log.pinterest.com","displayName":"Pinterest"},{"tag":"assets.pinterest.com","displayName":"Pinterest"},{"tag":"widgets.pinterest.com","displayName":"Pinterest"},{"tag":"www.quidco.com","displayName":"Quid Co"},{"tag":"devt.revlifter.com","displayName":"Revlifter"},{"tag":"assets.revlifter.io","displayName":"Revlifter"},{"tag":"cds.taboola.com","displayName":"Taboola"},{"tag":"trc.taboola.com", 104"displayName":"Taboola"},{"tag":"cdn.taboola.com","displayName":"Taboola"},{"tag":"analytics.tiktok.com","displayName":"TikTok"},{"tag":"twitter.com","displayName":"Twitter"},{"tag":"saltcdn2.twitter.com","displayName":"Twitter"},{"tag":"static.ads-twitter.com","displayName":"Twitter"},{"tag":"analytics.twitter.com","displayName":"Twitter"},{"tag":"api.webgains.io","displayName":"Webgains"},{"tag":"data.woosmap.com","displayName":"Woosmap"},{"tag":"uk.search.yahoo.com","displayName":"Yahoo"},{"tag":"www.linkbux.com", 105"displayName":""},{"tag":"theworks.official-coupons.com","displayName":""},{"tag":"www.latestdeals.co.uk","displayName":""},{"tag":"assets.latestdeals.co.uk","displayName":""},{"tag":"s.pinimg.com","displayName":""},{"tag":"apply.indeed.com","displayName":""},{"tag":"www.gov.uk","displayName":""},{"tag":"www.whsmith.co.uk","displayName":""},{"tag":"www.tesco.com","displayName":""},{"tag":"www.sainsburys.co.uk","displayName":""},{"tag":"content.flexlinks.com","displayName":""},{"tag":"www.everyclick.com", 106"displayName":""},{"tag":"www.msn.com","displayName":""},{"tag":"www.bbc.co.uk
106","displayName":""},{"tag":"r.search.yahoo.com","displayName":""},{"tag":"www.brandreward.com","displayName":""},{"tag":"www.santander.co.uk","displayName":""},{"tag":"z.moatads.com","displayName":""},{"tag":"www.wallis.co.uk","displayName":""},{"tag":"www.myregistry.com","displayName":""},{"tag":"www.nectar.com","displayName":""},{"tag":"www.metoffice.gov.uk","displayName":""},{"tag":"www.mamacheaps.com","displayName":""}, 107{"tag":"www.jigsawsuk.co.uk","displayName":""},{"tag":"www.gstatic.com","displayName":""},{"tag":"www.box.co.uk","displayName":""},{"tag":"w-it.m-t.io","displayName":""},{"tag":"tpc.googlesyndication.com","displayName":""},{"tag":"t.co","displayName":""},{"tag":"pagead2.googlesyndication.com","displayName":""},{"tag":"localhost","displayName":""},{"tag":"ln-rules.rewardstyle.com","displayName":""},{"tag":"lh4.googleusercontent.com","displayName":""},{"tag":"khms1.googleapis.com","displayName":""}, 108{"tag":"jsmeter.google-analytics.com","displayName":""},{"tag":"en.wikipedia.org","displayName":""},{"tag":"saltoffer.google-analytics.com","displayName":""},{"tag":"saltcdn2.googleapis.com","displayName":""},{"tag":"www.topcashback.co.uk","displayName":""},{"tag":"www.giveasyoulive.com","displayName":""},{"tag":"www.googleadservices.com","displayName":""},{"tag":"ashleighmoneysaver.co.uk","displayName":""},{"tag":"www.proudmummy.com","displayName":""},{"tag":"www.bargainideas.co.uk","displayName":""}, 109{"tag":"www.thesun.co.uk","displayName":""},{"tag":"allrecipes.co.uk","displayName":""},{"tag":"www.gstatic.com\t","displayName":""},{"tag":".*podscribe.com","displayName":"Podcast - podscribe"},{"tag":".*pdscrb.com","displayName":"Podcast - Podscribe main domain"},{"tag":"^d34r8q7sht0t9k\\.cloudfront\\.net$","displayName":"Podcast - tag script"}],"Functional Cookies":[{"tag":"smbchatserver.comm100.com","displayName":"Comm100"},{"tag":"vue.comm100.com","displayName":"Comm100"},{"tag":"blog.theworks.co.uk", 110"displayName":"Commerce Cloud"},{"tag":"api.feefo.com","displayName":"Feefo"},{"tag":"register.feefo.com","displayName":"Feefo"},{"tag":"collect.feefo.com","displayName":"Feefo"},{"tag":"unpkg.com","displayName":"Flickity Slideshow"},{"tag":"analytics-wg.webgains.io","displayName":"Webgains"},{"tag":"dash.bounceexchange.com","displayName":"Wunderkind"},{"tag":"tag.wknd.ai","displayName":"Wunderkind"},{"tag":"tag.bounceexchange.com","displayName":"Wunderkind"},{"tag":"assets.bounceexchange.com","displayName":"Wunderkind"}, 111{"tag":"api.bounceexchange.com","displayName":"Wunderkind"},{"tag":"events.bouncex.net","displayName":"Wunderkind"},{"tag":"coupons.bounceexchange.com","displayName":"Wunderkind"},{"tag":"dev.bounceexchange.com","displayName":"Wunderkind"},{"tag":"view.cdnbasket.net","displayName":"Wunderkind"},{"tag":"page.cdnbasket.net","displayName":"Wunderkind"},{"tag":"data.cdnbasket.net","displayName":"Wunderkind"},{"tag":"dash-staging.bounceexchange.com","displayName":"Wunderkind"},{"tag":"image.cdnbasket.net", 112"displayName":"Wunderkind"},{"tag":"img.youtube.com","displayName":"YouTube"},{"tag":"www.youtube.com","displayName":"YouTube"},{"tag":"translate.google.cn","displayName":""},{"tag":"maps.gstatic.com","displayName":""}]},"defaultEnv":"Default","globalPrivacyControlCategories":["Functional","Performance","Advertising"],"featureToggles":{"enableReporting":true,"enableAllowedDomainsReporting":false,"sendPageUrlInBeacons":false,"enableFiltering":true,"enablePrivacyNotice":true,"shouldNotAutoShowBanner":false, 113"includePrivacyNoticeCustomConfig":false,"privacyNoticeCustomConfig":null,"enableConsentModal":true,"includeConsentModalCustomConfig":false,"consentModalCustomConfig":null,"shouldNotAutoShowModal":false,"enableTCF":false,"requireSSL":false,"showTrustedDomains":true,"enableDataMonitoring":false,"usesWhitelist":true,"consentWidget":false,"enableEnvironmentMatching":false,"allowPerTagOptOut":false,"enableGdprModal":false,"gpcEmbedded":false,"enableCSSMonitoring":false,"monitorFormAction":false,"monitorAnchorTags":false, 114"enableButtonMonitoring":false,"enableInputMonitoring":false,"enableAreaMonitoring":false,"enableWindowOpenOverride":false,"enableServiceWorker":false,"enableHeaderReporter":false,"enableAsyncEnvironments":false,"enablePrivacyNoticeAdvancedMode":false,"enablePrivacyConsentModalAdvancedMode":false,"enablePrivacyDsarAdvancedMode":false,"enableDoNotSellModal":false,"autoDoNotSellAllCategories":false,"enableDeleteDataModal":false,"enableRequestDataModal":false,"showDoNotSellOnConsentModal":false,"showDeleteDataOnConsentModal":false, 115"showRequestDataOnConsentModal":false,"disableDefaultStyles":false,"disableEscapeKeyboardCommands":false,"enableTagKiller":false,"honorGlobalPrivacyControl":false,"enableGPCConfirmation":false,"enableGoogleConsent":true,"enableO
115nlyTLDNetworkCalls":false,"isObservingStyle":false},"gcm_options":{"ad_storage_category":"Advertising Cookies","ad_storage_regions":[],"ad_user_data_category":"Advertising Cookies","ad_user_data_regions":[],"ad_personalization_category":"Advertising Cookies","ad_personalization_regions":[], 116"analytics_storage_category":"Performance Cookies","analytics_storage_regions":[],"functionality_storage_category":"Functional Cookies","functionality_storage_regions":[],"personalization_storage_category":"Advertising Cookies","personalization_storage_regions":[],"security_storage_category":"Functional Cookies","security_storage_regions":[],"ad_personalization":"","ad_storage":"","ad_user_data":"","analytics_storage":"","functionality_storage":"","personalization_storage":"","security_storage":"", 117"dataLayer":"dataLayer","url_passthrough":false,"ads_data_redaction":false},"sslConfig":{"sslEnforcementMode":"Block"},"libraryPackage":"enterprise","dataMonitoring":{"mode":"block","domainsAllowed":[],"maskCharacter":"~","processRequestBody":false,"monitorBase64Data":false,"blockURLParamsRegex":[]},"environmentConfigs":[{"name":"Default","languageCode":"en","condition":{"type":"jsVar","key":"ensightenIsIE","value":"0","shouldBePositive":true,"operator":"equals","caseInsensitive":false},"optVals":{"Performance Cookies":0, 118"Advertising Cookies":0,"Functional Cookies":0},"translation":{"notificationBannerContent":'We use cookies to provide you with the best possible experience. See our \x3ca id\x3d"ensPrivacyPolicy" href\x3d"https://www.theworks.co.uk/page/privacy-policy.html"\x3eprivacy policy\x3c/a\x3e or \x3ca href\x3d"https://www.theworks.co.uk/page/cookies.html"\x3ecookie policy\x3c/a\x3e',"notificationBannerAllowAll":"Allow All Cookies","notificationBannerDenyAll":"Reject Non-Essential Cookies","notificationBannerPreferences":"Manage Cookies", 119"consentTitle":"Cookie settings on our site","consentDescription":"In order to provide with the best experience possible we might sometimes track information about you. Sometimes this may involve writing a cookie. We use this information for things like experience enrichment, analytics and targeting advertising. We recommend allowing these functions to get the most out of your experience.","consentWidgetCopy":"Privacy Settings","consentModalAllowAll":"Allow All","consentModalDenyAll":"Deny All","tcf2Modal":{"title":"Privacy Settings", 120"description":"In order to provide the best experience possible, we might sometimes track information about you. This may involve sending personal data such as advertising identifiers, information about your interests, and your IP address to third parties for processing. This information may be stored and/or accessed by this site and third parties through the use of cookies, device identifiers or other device data. You can view a list of the third parties by clicking the View All Vendors link or Advanced Settings button. We use this information for things like experience enrichment, analytics, and targeted advertising. We recommend allowing these functions in order to get the most out of your experience. In some cases, third parties are processing your data based in legitimate interest. You have the right to object to such processing and can do so in the Advanced Settings. Your consent choices are *service-specific* to this site. You can change your preferences anytime by clicking on the Personal Settings button at the bottom of the page.", 121"advancedSettings":"Advanced","viewAllVendors":"View All Vendors","withdrawConsent":"Withdraw Consent","accept":"Accept"},"tcf2PurpAndFeaturesModal":{"title":"Purposes \x26 Features","description":"In some cases, third parties are processing your data based in legitimate interest. You have the right to object to such processing and can do so in the Legitimate Interest tab.","save":"Save","allowAll":"Allow All","cancel":"Cancel"},"tcf2VendorModal":{"title":"Vendors","description":"In some cases, third parties are processing your data based in legitimate interest. You have the right to object to such processing and can do so in the Legitimate Interest tab.", 122"save":"Save","allowAll":"Allow All","cancel":"Cancel"},"tcf2LegitimateInterestsModal":{"title":"Legitimate Interest","description":"In order to provide with the best experience possible third parties are processing your data based in legitimate interest. This may involve sending personal data such as advertising identifiers, information about your interests and your IP address to third parties for processing. We use this information for things like experience enrichment, analytics and targeting advertising. We recommend allowing these functions to get the most out of your experience. You have the right to object to such processing and can do so here. Your consent choices are *service-specific* to this site.", 123"legitimateInterestPurposes":"Legitimate Interest Purposes","save":"Save","objectToAll":"Object to All","cancel":"Cancel"},"tcf2Shared":{"purposes":"Purposes","features":"Features","specialPurposes":"Special Purposes","specialFeatures":"Special Features","vendors":"Vendors","privacyPolicy":"Privacy Policy","moreInfo":"More Info","notAffiliated":"Not Affiliated with the IAB"}
123,"save":"Save","cancel":"Cancel","close":"Notification Banner Close","cookies":{"default":{"title":"Required cookies","description":"These cookies are necessary for the website to function and cannot be disabled. You can set your browser to block these cookies, but some parts of the website may not work as expected."}, 124"Performance Cookies":{"title":"Performance cookies","description":"These cookies are used to help us monitor what is happening on the site, including the number of visitors and how they interact with the website. They help us improve the performance of the website to better serve our customers. The data collected is anonymous."},"Advertising Cookies":{"title":"Advertising cookies","description":"We use these cookies to tailor our advertising to ensure that it is relevant to our customers, this is across our site and others. You will still see adverts on these platforms they just won't be tailored to you."}, 125"Functional Cookies":{"title":"Functional cookies","description":"We use these cookies to enhance the experience of the website. These are not mandatory but recommended to ensure that you have the best possible browsing experience on our website and do not collect any information."}}},"bannerConfig":{"ensAcceptAll":{"show":true},"ensRejectAll":{"show":true},"ensOpenModal":{"show":true},"ensCloseBanner":{"show":false}},"consentModalConfig":{"ensConsentAcceptAll":{"show":false},"ensConsentRejectAll":{"show":false}, 126"ensSaveModal":{"show":true},"ensCloseModal":{"show":false}}}]};if(Bootstrapper.ensightenOptions.publishPath)ensClientConfig.info.publishPath=Bootstrapper.ensightenOptions.publishPath;if(Bootstrapper.ensightenOptions.nexus){ensClientConfig.info.nexus=Bootstrapper.ensightenOptions.nexus;if(Bootstrapper.ensightenOptions.nexus==="nexus.ensighten.com"||Bootstrapper.ensightenOptions.nexus==="nexus-test.ensighten.com")ensClientConfig.info.reporting="data.privacy.ensighten.com";else ensClientConfig.info.reporting= 127Bootstrapper.ensightenOptions.nexus}},4274174,[4240995],655550,[771919],24); 128Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;(()=>{var e={[660](e,t,o){var i,n=o(287).hp;i=()=>(()=>{var e={686:()=>{},579:(e,t,o)=>{function i(e,t,o){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.");}return String(e)}(e); 129return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}o.d(t,{w:()=>n});class n{constructor(e){this.destination=e,i(this,"type",void 0),i(this,"start",+new Date),i(this,"end",-1),i(this,"source",null),i(this,"status",null),i(this,"reasons",[]),i(this,"dataPatterns",[]),i(this,"list",[]),i(this,"id",void 0),this.id=this.start+function(e){let t=0;if(null==e||0==e.length)return t;for(let o=0;o<e.length;o++)t=(t<<5)-t+e.charCodeAt(o), 130t|=0;return t}(e)}addReason(e){this.reasons.push(e)}hasReason(e){return this.reasons.length>0&&(new RegExp(this.reasons.join("|"))).test(e)}numReasons(){return this.reasons.length}}},317:(e,t,o)=>{o.d(t,{l:()=>a});var i=o(616);function n(e,t,o){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.");}return String(e)}(e); 131return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class s{constructor(e,t,o,s,r,a,l){this.activeList=e,this.shouldAddCategoryToList=t,this.environment=o,this.gatewayData=s,this.activeEnvironmentCategories=r,this.allowedTagsInLocalStorage=a,this.blockedTagsInLocalStorage=l,n(this,"tagsWithFiltersRegEx",void 0),n(this,"tagsWithAllowPaths",void 0),n(this,"tagsWithBlockPaths",void 0),n(this,"blockedTagListOverride",[]),n(this, 132"allowedTagListOverride",[]),n(this,"update",(e,t,o,i,n)=>{this.activeList=e,this.environment=t,this.setGlobals(o,i,n)}),n(this,"allowRequest",(e,t,o)=>{let n=o;const s=this.blockedTagListOverride.filter(t=>(new RegExp(t.tag)).test(e)).some(e=>!e.paths),r=this.allowedTagListOverride.filter(t=>(new RegExp(t.tag)).test(e)).some(e=>!e.paths);if(""!==t&&this.tagsWithFiltersRegEx.test(e)&&!r&&!s){const o=this.blockedTagListOverride.some(o=>(new RegExp(o.tag)).test(e)&&i.B.arrayToRegex(o.paths).test(t)), 133s=this.allowedTagListOverride.some(o=>(new RegExp(o.tag)).test(e)&&i.B.arrayToRegex(o.paths).test(t));for(let s=0;s<this.tagsWithAllowPaths.length;s++)if((new RegExp(this.tagsWithAllowPaths[s].tag)).test(e)){let e=[];
133if(e=e.concat(this.tagsWithAllowPaths[s].paths),i.B.arrayToRegex(e).test(t))return n=!o,n;n=!1}for(let o=0;o<this.tagsWithBlockPaths.length;o++)if((new RegExp(this.tagsWithBlockPaths[o].tag)).test(e)){let e=[];if(e=e.concat(this.tagsWithBlockPaths[o].paths),i.B.arrayToRegex(e).test(t))return n= 134!!s,n;n=!0}}return n}),n(this,"buildPathFilterList",(e,t,o,n)=>{let s=[],r=[],a=[];const l=e=>e.tag,h=e=>({tag:e.tag,paths:e.paths}),c=e=>{s.push.apply(s,this.extractTagsWithFilters(e,l)),a.push.apply(a,this.extractTagsWithFilters(e,h,"blockPaths")),r.push.apply(r,this.extractTagsWithFilters(e,h,"allowPaths"))};for(const i in e){const l=t[i];this.shouldAddCategoryToList(i,l)&&c(e[i]),o&&o.length>0&&(o.forEach(e=>this.allowedTagListOverride.push(e)),c(o),s.length>0&&(s=this.pruneTagListFromLocalStorage(o, 135s,!0),r=this.pruneTagListFromLocalStorage(o,r,!0,"tag"))),n&&n.length>0&&(n.forEach(e=>this.blockedTagListOverride.push(e)),c(n),s.length>0&&(s=this.pruneTagListFromLocalStorage(n,s,!1),a=this.pruneTagListFromLocalStorage(n,a,!1,"tag")))}return{regEx:i.B.arrayToRegex(s),allowPathTags:r,blockPathTags:a}}),n(this,"pruneTagListFromLocalStorage",(e,t,o,n)=>(i.B.isWhitelist(this.gatewayData,this.environment)===o&&this.checkForFiltersToRemove(e).forEach(e=>{t=t.filter(t=>(null!=n&&(t=t[n]),t!==e.tag))}), 136t)),n(this,"checkForFiltersToRemove",e=>e.filter(e=>void 0===e.filter)),n(this,"setGlobals",(e,t,o)=>{this.activeEnvironmentCategories=e;const i=this.buildPathFilterList(this.activeList,this.activeEnvironmentCategories,t,o);this.tagsWithAllowPaths=i.allowPathTags,this.tagsWithBlockPaths=i.blockPathTags,this.tagsWithFiltersRegEx=i.regEx}),this.setGlobals(r,a,l)}extractTagsWithFilters(e,t,o){let i=e=>void 0!==e.filter;return null!=o&&(i=e=>e.filter===o),e.filter(i).map(t)}}function r(e,t,o){return(t= 137function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.");}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class a{constructor(e,t,o){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!== 138arguments[4]?arguments[4]:[];this.environment=e,this.gatewayData=t,this.activeEnvironmentCategories=o,this.allowedUrls=n,this.blockedUrls=a,r(this,"activeList",void 0),r(this,"listRegex",new RegExp("a^")),r(this,"pathFilterManager",void 0),r(this,"usesAllowlist",!0),r(this,"usesPathFilter",!1),r(this,"isInitialized",!1),r(this,"alwaysAllowedListRegex",new RegExp("a^")),r(this,"defaultCategory","default"),r(this,"allowRequest",(e,t,o)=>{const i=this.getListRegex();let n=!1;if(!1===this.usesAllowlist? 139i.test&&!i.test(e)&&(n=!0):i.test&&i.test(e)&&(n=!0),null!=this.pathFilterManager&&(n=this.pathFilterManager.allowRequest(e,o,n)),!n){t.addReason(this.usesAllowlist?"Whitelist":"Blacklist");const o=this.findMatchedCategories(e);t.list=o,this.gatewayData.enableBotAndFraudProtection&&t.addReason(this.gatewayData.enableBotAndFraudProtectionReason)}return n}),r(this,"updateListValues",(e,t,o)=>{this.buildListRegex(this.environment,e,t,o),this.usesPathFilter&&null==this.pathFilterManager&&(this.pathFilterManager= 140new s(this.getList(),this.shouldAddToListRegex,this.environment,this.gatewayData,this.activeEnvironmentCategories,this.allowedUrls,this.blockedUrls)),null!=this.pathFilterManager&&this.pathFilterManager.update(this.getList(),this.environment,e,t,o)}),r(this,"updateEnvironment",(e,t,o,i)=>{this.environment=e,this.updateListValues(t,o,i)}),r(this,"getListRegex",()=>this.listRegex),r(this,"getList",()=>this.activeList),r(this,"getAlwaysAllowedListRegex",()=>this.alwaysAllowedListRegex),r(this,"getTranslatedList", 141()=>{const e=this.getList(),t=e;for(const o in e)"default"!==o&&(t[o]=this.getCategoryTranslations(e[o]));return t}),r(this,"buildListRegex",(e,t,o,n)=>{this.setUsesAllowlist(e),this.setActiveList(e),this.usesAllowlist&&this.buildListRegexForAlwaysAllowedDomains();const s=this.getList();let r=[];for(const e in s){const o=t[e];this.shouldAddToListRegex(e,o)&&(r=r.concat(this.getObjectVals(s[e],"tag")))}
141this.usesAllowlist?(o&&o.length>0&&(r=r.concat(this.getObjectVals(o,"tag"))),n&&n.length>0&&(r=r.filter(e=> 142-1===this.getObjectVals(n,"tag").indexOf(e)))):(n&&n.length>0&&(r=r.concat(this.getObjectVals(n,"tag"))),o&&o.length>0&&(r=r.filter(e=>-1===this.getObjectVals(o,"tag").indexOf(e))));const a=this.usesAllowlist?"i":void 0;this.listRegex=i.B.arrayToRegex(r,a)}),r(this,"shouldAddToListRegex",(e,t)=>{let o=!1;const i=this.gatewayData.enableBotAndFraudProtection;return e===this.defaultCategory?(o=!0,o):(this.usesAllowlist?i?o=!1:"1"===t?o=!0:t&&"0"===t||!this.isEnvironmentCategoryEnabled(e,1)||(o=!0):i|| 143"0"===t?o=!0:t&&"1"===t||!this.isEnvironmentCategoryEnabled(e,0)||(o=!0),o)}),r(this,"isEnvironmentCategoryEnabled",(e,t)=>this.environment&&this.environment.optVals[e]===t),r(this,"getObjectVals",(e,t)=>{const o=[];for(let i=0;i<e.length;i++){const n=e[i][t];""!==n&&void 0!==n&&null!=n&&o.push(n),e.filter&&(this.usesPathFilter=!0)}return o}),r(this,"setUsesAllowlist",e=>{this.usesAllowlist=i.B.isWhitelist(this.gatewayData,e)}),r(this,"setActiveList",e=>{if(this.usesAllowlist?e&&Object.prototype.hasOwnProperty.call(e, 144"whitelist")?this.activeList=e.whitelist:this.activeList=this.gatewayData.whitelist||{}:e&&Object.prototype.hasOwnProperty.call(e,"blacklist")?this.activeList=e.blacklist:this.activeList=this.gatewayData.blacklist||{},Object.prototype.hasOwnProperty.call(this.activeList,this.defaultCategory)||!0!==this.usesAllowlist||(this.activeList[this.defaultCategory]=[]),this.usesAllowlist){const t=this.gatewayData.info.nexus,o=this.gatewayData.info.reporting,n=[location.hostname,t,o],s=e=>0===this.activeList[this.defaultCategory].filter(function(t){return t.tag=== 145e}).length;for(let e=0;e<n.length;e++)s(n[e])&&this.activeList[this.defaultCategory].push({tag:n[e]});i.B.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"enableTCF")&&(s("ensighten.mgr.consensu.org")&&this.activeList[this.defaultCategory].push({tag:"ensighten.mgr.consensu.org"}),s("iab.ensighten.com")&&this.activeList[this.defaultCategory].push({tag:"iab.ensighten.com"}))}}),r(this,"findMatchedCategories",e=>{const t=[],o=this.getList();for(const i in o)for(let n=0;n<o[i].length;n++){const s= 146o[i][n].tag;e.match(s)&&t.push(i)}return 0===t.length&&t.push(this.usesAllowlist?"Whitelist":"Blacklist"),t}),r(this,"buildListRegexForAlwaysAllowedDomains",()=>{const e=this.getList()&&this.getList()[this.defaultCategory]||[],t=this.getObjectVals(e,"tag");this.alwaysAllowedListRegex=i.B.arrayToRegex(t,"i")}),r(this,"getCategoryTranslations",e=>{if(this.environment.translation&&this.environment.translation.purposes)for(let t=0;t<e.length;t++){const o=[];if(e[t].purpose)for(let i=0;i<e[t].purpose.length;i++)o.push(this.environment.translation.purposes[e[t].purpose[i]]); 147e[t].purpose=o}return e}),this.buildListRegex(e,o,n,a),this.usesPathFilter&&(this.pathFilterManager=new s(this.getList(),this.shouldAddToListRegex,this.environment,this.gatewayData,this.activeEnvironmentCategories,this.allowedUrls,this.blockedUrls))}}},775:(e,t,o)=>{o.d(t,{M:()=>f});var i=o(579),n=o(616);function s(e,t,o){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value."); 148}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var r=function(e){return e.Block="Block",e.Rewrite="Rewrite",e}(r||{});class a{constructor(e,t){s(this,"gatewayData",void 0),s(this,"environment",void 0),s(this,"sslEnforcementMode",void 0),s(this,"insecureProtocolRegex",/http:|ws:/i),this.gatewayData=e,this.environment=t,this.sslEnforcementMode=this.fallbackOrReturnEnforcementMode()}updateEnvironment(e){this.environment= 149e,this.sslEnforcementMode=this.fallbackOrReturnEnforcementMode()}allowRequest(e,t,o){let i=!0;return n.B.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"requireSSL")&&("https:"===e&&this.insecureProtocolRegex.test(t)&&(i=!1),i||o.addReason("SSL")),i}shouldRewriteProtocol(e,t){const o=n.B.getUrl(e.destination,t).protocol;let i=!1;return this.insecureProtocolRegex.test(o)&&(this.sslEnforcementMode!==r.Rewrite||e.hasReason("Whitelist")||e.hasReason("Blacklist")|| 150!e.hasReason("SSL")||(i=!0)),i}rewriteProtocol(e){return(e=e.replace(/^http:\/\//i,"https://")).replace(/^ws:\/\//i,"wss://")}fallbackOrReturnEnforcementMode(){return this.gatewayData.sslConfig||this.environment&&this.environment.sslEnforcementMode?n.B.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.sslConfig,this.environment,"sslEnforcementMode"):r.Block}}var l,h=o(711),c=o.n(h);function d(e,t,o){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive]; 151if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.");}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class u{constructor(e,t,o){this.enabled=e,this.dataMonitoringParams=t,this.environment=o,d(this,"blockURLParamsRegexMap",{}),d(this,"regexArrayMap",void 0),d(this,"activeMonitoringParams",void 0),d(this,"dataMonitoringAllowedDomainsRegex", 152void 0),d(this,"maskCharacter",void 0),d(this,"base64Pattern",/((?:[A-Za-z0-9+/]{4}
152)*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)/g),this.updateEnvironment(o)}validateActivateMonitoring(e){return null!=e&&(e.monitorBase64Data=e.monitorBase64Data||!1,e.maskCharacter=e.maskCharacter||"~",e.processRequestBody=e.processRequestBody||!1,e.domainsAllowed=e.domainsAllowed||[],this.isSingleDataMonitoringParams(e)?(e.mode=e.mode||"block",e.blockURLParamsRegex=e.blockURLParamsRegex||[]):e.blockUrlParams=e.blockUrlParams|| 153[]),e}getActiveMonitoringParams(){let e;return e=this.environment&&Object.prototype.hasOwnProperty.call(this.environment,"dataMonitoring")?this.validateActivateMonitoring(this.environment.dataMonitoring):this.validateActivateMonitoring(this.dataMonitoringParams)||{},e}updateEnvironment(e){if(this.environment=e,this.activeMonitoringParams=this.getActiveMonitoringParams(),this.blockURLParamsRegexMap={},this.isSingleDataMonitoringParams(this.activeMonitoringParams)){const e=this.activeMonitoringParams.mode|| 154"block";this.activeMonitoringParams.mode=e}this.regexArrayMap=this.getBlockURLParamsRegexArray(this.activeMonitoringParams);for(const e in this.regexArrayMap)this.blockURLParamsRegexMap[e]=n.B.arrayToRegex(this.regexArrayMap[e].map(e=>e.regex));this.dataMonitoringAllowedDomainsRegex=n.B.arrayToRegex(this.activeMonitoringParams.domainsAllowed),this.maskCharacter=this.activeMonitoringParams.maskCharacter||"~"}isDataPatternReported(e){return!this.isSingleDataMonitoringParams(e)||null!=e.blockURLParamsRegex&& 155e.blockURLParamsRegex.length>0&&"string"==typeof e.blockURLParamsRegex[0].regex}allowRequest(e,t,o){let i=!0;const s=e.destination;if(this.enabled){const r=n.B.decodeUriComponent(s);let a=null;this.activeMonitoringParams.processRequestBody&&o&&(a=o,a instanceof FormData?a=this.formDataToString(a):a instanceof URLSearchParams&&(a=a.toString()));let l=[];const h=[];for(const e of["block","mask","redact","observe"])if(this.blockURLParamsRegexMap[e]&&this.blockURLParamsRegexMap[e].exec){let t=[],o=[], 156n=[];const c=this.getValidDataPatterns(r,e);if(this.activeMonitoringParams.monitorBase64Data&&(o=this.checkForBase64Data(s,e)),a&&(t=this.getValidDataPatterns(a,e),this.activeMonitoringParams.monitorBase64Data&&"string"==typeof a&&(n=this.checkForBase64Data(a,e))),c.length>0||t.length>0||o.length>0||n.length>0){if(i=!1,l=l.concat(c).concat(t).concat(o).concat(n),(o.length>0||n.length>0)&&l.push("base64"),"block"==e){h.push("blocked");break}"mask"==e?h.push("masked"):h.push(e)}}const c=new Set(l); 157c.delete(void 0),e.dataPatterns=e.dataPatterns.concat(Array.from(c)),!e.hasReason("Blacklist")&&!e.hasReason("Whitelist")&&h.length>0&&(e.status=h.join(",")),!1===i&&this.activeMonitoringParams.domainsAllowed.length>0&&(i=this.dataMonitoringAllowedDomainsRegex.test(t)),i||e.addReason("DATA_MONITORING")}return i}getMaskedUrl(e){return e?this.editQueryString(e,n.B.repeatString(this.maskCharacter,10)):e}getRedactedUrl(e){return e?this.editQueryString(e,""):e}getMaskedData(e){return e?this.editData(e, 158n.B.repeatString(this.maskCharacter,10)):e}getRedactedData(e){return e?this.editData(e,""):e}editPath(e,t,o){e.indexOf(";")>-1&&(e=this.editSemiColonDelimitedPath(e,t,o));const i=e.split("/"),s=o?"redact":"mask";for(let o=0;o<i.length;o++)if(""!==i[o]&&this.blockURLParamsRegexMap[s]&&this.blockURLParamsRegexMap[s].test&&this.blockURLParamsRegexMap[s].test(i[o]))i[o]=i[o].replace(this.blockURLParamsRegexMap[s],t),i[o]=n.B.encodeUriComponent(i[o]),"redact"===s&&""===i[o]&&(i.splice(o,1),o--);else if(this.activeMonitoringParams.monitorBase64Data&& 159i[o].length>4&&this.base64Pattern.test(i[o]))try{const e=c().decode(i[o]);this.blockURLParamsRegexMap[s]&&this.blockURLParamsRegexMap[s].test&&this.blockURLParamsRegexMap[s].test(e)&&(i[o]=i[o].replace(this.base64Pattern,t),i[o]=n.B.encodeUriComponent(i[o]),"redact"===s&&""===i[o]&&(i.splice(o,1),o--))}catch(e){}return i.join("/")}formDataToString(e){const t=[];let o,i,n;for(o=e.entries();!(i=o.next()).done&&(n=i.value);)t.push(n[0]+"\x3d"+n[1]);return t.join("\x26")}editBase64String(e,t){let o=e; 160const i=e.match(this.base64Pattern),n=t.length>0?"mask":"redact";for(const s in i){if(i[s].length<4)continue;const r=c().decode(i[s]);this.blockURLParamsRegexMap[n]&&this.blockURLParamsRegexMap[n].test(r)&&(o=e.replace(i[s],t))}return o}editData(e,t){const o=t.length>0?"mask":"redact";if(this.activeMonitoringParams.processRequestBody)if(e instanceof String||"string"==typeof e){if(this.activeMonitoringParams.monitorBase64Data&&(e=this.editBase64String(e,t)),this.blockURLParamsRegexMap[o]&&this.blockURLParamsRegexMap[o].test&& 161"string"==typeof e)for(;this.blockURLParamsRegexMap[o].test(e);)e=e.replace(this.blockURLParamsRegexMap[o],t)}else if(e instanceof FormData){const o=new FormData;let i,n,s;for(i=e.entries();!(n=i.next()).done&&(s=n.value);){const e=this.editData(s[0],t),i=this.editData(s[1],t);o.append(e,i)}e=o}else if(e instanceof URLSearchParams){const o=new URLSearchParams;let i,n,s;for(i=e.entries();!(n=i.next()).done&&(s=n.value);){const e=this.editData(s[0],t),i=this.editData(s[1],t);o.append(e,i)}e=o}return e}editQueryString(e, 162t){if(!this.enabled||!n.B.isValidUrl(e))return e;const o=0===t.length;let i=t;""===t&&(i="");let s=e.split("?")[1];const r=n.B.getUrl(e);if(r.pathname=this.editPath(r.pathname,i,o),"string"==typeof s&&""!==s){this.activeMonitoringParams.monitorBase64Data&&(s=this.editBase64String(s,i));const e=s.split("\x26");e.length>0&&(r.search=this.editSearchParams(e,i,o),o&&""===r.search&&(r.href=r.href.replace("?","")))}return r.href}getBlockURLParamsRegexArray(e){if(this.isSingleDataMonitoringParams(e)){const t= 163[];if(!this.isDataPatternReported(e))return e.blockURLParamsRegex.forEach(e
163=>{t.push({name:void 0,regex:e})}),{[e.mode]:t};for(let o=0;o<e.blockURLParamsRegex.length;o++)t.push(e.blockURLParamsRegex[o]);return{[e.mode]:t}}{const t={};if(e.blockUrlParams)for(const o of e.blockUrlParams)t[o.mode]=o.blockUrlParamsRegex.map(e=>({name:e.name,regex:e.regex}));return t}}findMatchedDataPatterns(e,t,o){if(this.isDataPatternReported(this.activeMonitoringParams))if(this.blockURLParamsRegexMap.block&&this.blockURLParamsRegexMap.block.exec)this.concatDataPatterns(e, 164"block",t,o);else for(const i in this.blockURLParamsRegexMap)"block"!==i&&this.concatDataPatterns(e,i,t,o)}checkForBase64Data(e,t){const o=e.match(this.base64Pattern);let i=[];for(const e in o){if(o[e].length<4)continue;const n=c().decode(o[e]);this.blockURLParamsRegexMap[t].test(n)&&(i=i.concat(this.getValidDataPatterns(n,t)))}return i}editSemiColonDelimitedPath(e,t,o){let i=e.split("/");i=i.filter(function(e){return"string"==typeof e&&""!==e});let s="";const r=this,a=o?"redact":"mask";return n.B.each(i, 165function(e,s){const l=e.split(";");n.B.each(l,function(e,i){const s=e.split("\x3d");let h=s[0];const c=s[1]||"";let d,u=n.B.decodeUriComponent(c),g="";if("string"==typeof h&&""!==h&&r.blockURLParamsRegexMap[a].test)for(;r.blockURLParamsRegexMap[a].test(h);)d=!!o,h=h.replace(r.blockURLParamsRegexMap[a],t);if("string"==typeof u&&""!==u&&r.blockURLParamsRegexMap[a].test)for(;r.blockURLParamsRegexMap[a].test(u);)d=!!o,u=u.replace(r.blockURLParamsRegexMap[a],t);"string"==typeof h&&"string"==typeof u&& 166(u=n.B.encodeUriComponent(u),g+=d&&o?"":""!==u||d?h+"\x3d"+u:h),""===g?l.splice(i,1):l[i]=g}),i[s]=l.join(";")}),s+=i.join("/"),s}editSearchParams(e,t,o){let i="";e=e.filter(function(e){return"string"==typeof e&&""!==e});const s=this,r=o?"redact":"mask";return n.B.each(e,function(e){const a=e.split("\x3d");let l=a[0];const h=a[1]||"";let c,d=n.B.decodeUriComponent(h);if("string"==typeof l&&""!==l&&s.blockURLParamsRegexMap[r]&&s.blockURLParamsRegexMap[r].test)for(;s.blockURLParamsRegexMap[r].test(l);)c= 167!!o,l=l.replace(s.blockURLParamsRegexMap[r],t);if("string"==typeof d&&""!==d&&s.blockURLParamsRegexMap[r]&&s.blockURLParamsRegexMap[r].test)for(;s.blockURLParamsRegexMap[r].test(d);)c=!!o,d=d.replace(s.blockURLParamsRegexMap[r],t);"string"==typeof l&&"string"==typeof d&&(d=n.B.encodeUriComponent(d),i+=c&&o?"":""!==d||c?l+"\x3d"+d+"\x26":l+"\x26")}),i=i.slice(0,-1),i}isSingleDataMonitoringParams(e){return void 0!==e.blockURLParamsRegex}getValidDataPatterns(e,t){const o=[];for(const i of this.regexArrayMap[t]){const t= 168new RegExp(i.regex);t.test&&t.test(e)&&o.push(i.name)}return o}concatDataPatterns(e,t,o,i){const n=Object.keys(this.blockURLParamsRegexMap[t].exec(o));let s=[];this.activeMonitoringParams.processRequestBody&&(s=Object.keys(this.blockURLParamsRegexMap[t].exec(i))),e.dataPatterns.concat(Array.from(new Set([...n,...s])))}}function g(e,t,o){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o; 169throw new TypeError("@@toPrimitive must return a primitive value.");}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class p{static allowProtocolAndBypassProcessing(e,t,o,i){const n=this.protoRegex.test(e)&&void 0!==this.allowedProtocols[e]&&(!this.allowedProtocols[e].additionalAllowConditions||this.allowedProtocols[e].additionalAllowConditions(o,t,i));return n||this.addBlockReasonToRequest(e,t), 170n}static isBlockedRequestBypassed(e){return this.requestBypassRegex.test(e)}static addBlockReasonToRequest(e,t){if(t&&"function"==typeof t.addReason&&void 0!==this.allowedProtocols[e]){const o=this.allowedProtocols[e].blockReason;t.addReason(o)}}}function m(e,t,o){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value."); 171}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}l=p,g(p,"defaultProtocolConfig",{data:{mediaTypes:[]}}),g(p,"allowedProtocols",{"about:":{blockReason:"ABOUT_PROTOCOL"},"blob:":{blockReason:"BLOB_PROTOCOL"},"mailto:":{additionalAllowConditions:function(e){return!e.blockMailtoLinks},blockReason:"MAIL_TO"},"chrome-extension:":{additionalAllowConditions:function(e){return!e.blockExtensions},blockReason:"CHROME_BROWSER_EXTENSION"}, 172"data:":{additionalAllowConditions:function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.defaultProtocolConfig,i=[t.destination.indexOf("data:image")>-1,"script"===t.type&&e.disableDataProtocolJavascriptRequests];if(e.allowAdditionalDataMediaTypes){var n;const e=[...((null==o||null===(n=o.data)||void 0===n?void 0:n.mediaTypes)||[])];i=[...i,...e.map(e=>t.destination.indexOf("data:".concat(e))>-1)]}return i.includes(!0)},blockReason:"DATA_PROTOCOL"},"hblob:":{blockReason:"HBLOB_PROTOCOL"}, 173"moz-extension:":{additionalAllowConditions:function(e){return!e.blockExtensions},blockReason:"MOZ_BROWSER_EXTENSION"},"safari-extension:":{additionalAllowConditions:function(e){return!e.blockExtensions},blockReason:"SAFARI_BROWSER_EXTENSION"},"tel:":{blockReason:"TEL_PROTOCOL"},"sms:":{blockReason:"SMS_PROTOCOL"}}),g(p,"protoRegex",new RegExp(Object.keys(l.allowedProtocols).join("|"),"i")),g(p,"requestBypassRegex",new RegExp("chrome-extension:|safari-extension:|moz-extension:","i"));class f{constructor(e, 174t,o,i){this.gatewayData=e,this.environment=t,this.historyEntryReporter=o,this.listProcessor=i,m(this,"sslManager",void 0),m(this,"dataGovernanceManager",void 0),m(this,"protoManager",void 0),m(this,"updateEnvironment",(e,t,o,i)=>{this.environment=e,this.dataGovernanceManager.updateEnvironment(e),this.sslManager.updateEnvironment(e),this.listProcessor.updateEnvironment(e,t,o,i)}
174),m(this,"updateListValues",(e,t,o)=>{this.listProcessor.updateListValues(e,t,o)}),this.sslManager=new a(e,t),this.dataGovernanceManager= 175new u(e.featureToggles.enableDataMonitoring,e.dataMonitoring,t),this.protoManager=p}processURL(e,t,o,i,n,s){return this.processURLInternal(e,null,t,o,i,n,s,e=>{this.historyEntryReporter.resourceComplete(i,e,"allowed")})}processURLAndBody(e,t,o,i,n,s,r){this.processURLInternal(e,t,o,i,n,s,r,e=>{this.historyEntryReporter.resourceComplete(n,e,"allowed")})}isVoidURL(e){const t="javascript:";return"string"!=typeof e||""===e||0===e.indexOf(t)||2===e.indexOf(t)}isValidURL(e,t){try{n.B.getUrl(e,t)}catch(e){return!1}return!0}createEventHandler(e, 176t){return()=>{this.historyEntryReporter.resourceComplete(this,e,t)}}generateEnsRequest(e,t,o,s){const r=new i.w(n.B.getUrl(e,s).href);return r.source=o,r.type=t,r}processEnsRequest(e,t,o,i,s,r,a){let l=t;if(this.onBefore(e,o,i,s))a(e.id);else{const t=this.getBlockedSrcString(e.type,e,s),a=this.getBlockedRequestBody(e,o);n.B.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableFiltering")&&("function"==typeof r&&void 0!==r&&r(t,a),l=t),this.sendBlockReport(e, 177i,s)}return l}getModifiedEnsRequestStatus(e,t){let o="blocked";return e.status&&(o=e.status),this.sslManager.shouldRewriteProtocol(e,t)&&(o="rewrite"),(e.hasReason("Whitelist")||e.hasReason("Blacklist"))&&(o="blocked"),o}getProtocolFromReferrer(e){try{return n.B.getUrl(e).protocol}catch(e){return}}processURLInternal(e,t,o,i,n,s,r,a){var l;const h=e;if(this.isVoidURL(h)||!this.isValidURL(h,s))return h;let c=h;if(null!==(l=c)&&void 0!==l&&l.startsWith("//")){let e=this.getProtocolFromReferrer(s);var d; 178e||"undefined"==typeof window||(e=null===(d=window.location)||void 0===d?void 0:d.protocol),e&&(c=e.replace(/:$/,"")+":"+c)}const u=this.generateEnsRequest(c,o,i,s);return this.processEnsRequest(u,c,t,n,s,r,a)}sendBlockReport(e,t,o){const i=this.getModifiedEnsRequestStatus(e,o);this.historyEntryReporter.resourceComplete(t,e.id,i)}onBefore(e,t,o,i){return this.historyEntryReporter.createHistoryEntry(e,o),this.allowRequest(e,t,i)}allowRequest(e,t,o){let i=!0;const s=e.destination,r=n.B.getUrl(s,o), 179a="string"==typeof o&&""!==o?n.B.getUrl(o).protocol:n.B.getUrl(s).protocol,l=r.hostname,h=r.pathname,c=r.protocol;if(this.protoManager.allowProtocolAndBypassProcessing(c,e,this.gatewayData.featureToggles,this.gatewayData.protocolConfig))return!0;if(this.protoManager.isBlockedRequestBypassed(c))return!1;let d=!0;""!==s&&(d=this.sslManager.allowRequest(a,c,e));let u=!0,g=!0;return g=this.dataGovernanceManager.allowRequest(e,l,t),this.environment&&(u=this.listProcessor.allowRequest(l,e,h)),!1!==u&&!1!== 180d&&!1!==g||(i=!1),i}getBlockedSrcString(e,t,o){let i=t.destination;const n=function(){let t;return t=["img","image","source"].includes(null==e?void 0:e.trim().toLowerCase())?"":"//javascript:;",t};if(this.sslManager.shouldRewriteProtocol(t,o)){if(i=this.sslManager.rewriteProtocol(t.destination),1===t.reasons.length)return i}else if(t.hasReason("SSL"))return n();const s=new Set(t.status?t.status.split(","):[]);let r=i;return!t.hasReason("DATA_MONITORING")||t.hasReason("Whitelist")||t.hasReason("Blacklist")|| 181s.has("blocked")?n():(s.has("masked")&&(r=this.dataGovernanceManager.getMaskedUrl(r)),s.has("redact")&&(r=this.dataGovernanceManager.getRedactedUrl(r)),r)}getBlockedRequestBody(e,t){const o=new Set(e.status?e.status.split(","):[]);let i=t;return!e.hasReason("DATA_MONITORING")||o.has("blocked")?t:(o.has("masked")&&(i=this.dataGovernanceManager.getMaskedData(i)),o.has("redact")&&(i=this.dataGovernanceManager.getRedactedData(i)),i)}}},616:(e,t,o)=>{o.d(t,{B:()=>i});const i={arrayToRegex:function(e){let t= 182arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(Array.isArray(e))return e&&e.length>0&&e.join?new RegExp(e.join("|"),t):new RegExp("a^",t)},each:function(e,t,o){void 0!==e&&"length"in e||(e={length:0});for(let i=0;i<e.length;i++)t.call(o,e[i],i,e)},isUriEncoded:function(e){return"string"==typeof e&&e!==decodeURIComponent(e)},isValidUrl:function(e){try{return new URL(e),!0}catch(e){return!1}},isWhitelist:function(e,t){return this.getEnvironmentOverrideOrGlobalDefault(e.featureToggles, 183t,"usesWhitelist")},decodeUriComponent:function(e){let t=e;try{if("string"==typeof e)for(;this.isUriEncoded(t);)t=decodeURIComponent(t)}catch(t){console.warn("URI: "+e+". Could not be decoded properly. Original string was returned.")}return t},encodeUriComponent:function(e){let t=e;try{"string"==typeof e&&(t=encodeURIComponent(e))}catch(t){console.warn("URI: "+e+". Could not be encoded properly. Original string was returned.")}return t},repeatString:function(e,t){const o=[];let i=0;for(;i<t;)o[i++]= 184e;return o.join("")},getEnvironmentOverrideOrGlobalDefault:function(e,t,o){return t&&Object.prototype.hasOwnProperty.call(t,o)?t[o]:e[o]},getUrl(e,t){let o;
184return o="string"==typeof t&&""!==t?new URL(e,t):new URL(e),o}}},788:(e,t,o)=>{var i=o(931);function s(e,t){return void 0===t&&(t="utf8"),n.isBuffer(e)?a(e.toString("base64")):a(n.from(e,t).toString("base64"))}function r(e){return e=e.toString(),i.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function a(e){return e.replace(/=/g,"").replace(/\+/g, 185"-").replace(/\//g,"_")}var l=s;l.encode=s,l.decode=function(e,t){return void 0===t&&(t="utf8"),n.from(r(e),"base64").toString(t)},l.toBase64=r,l.fromBase64=a,l.toBuffer=function(e){return n.from(r(e),"base64")},t.default=l},931:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length,o=t%4;if(!o)return e;var i=t,s=4-o,r=t+s,a=n.alloc(r);for(a.write(e);s--;)a.write("\x3d",i++);return a.toString()}},711:(e,t,o)=>{e.exports=o(788).default,e.exports.default=e.exports}}, 186t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule", 187{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{EnsRequest:()=>n.w,ListProcessor:()=>s.l,UrlProcessor:()=>e.M,utilities:()=>t.B});var e=o(775),t=o(616),n=o(579),s=o(317),r=o(686),a={};for(const e in r)["default","UrlProcessor","utilities","EnsRequest","ListProcessor"].indexOf(e)<0&&(a[e]=()=>r[e]);o.d(i,a)})(),i})(),e.exports=i()},[588](e,t,o){o.r(t),o.d(t,{Gateway:()=>ve});function i(e,t,o,i){return new (o||(o=Promise))(function(n,s){function r(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}} 188function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function n(e){return String(e)}function s(e){return parseInt(e,10)||0}function r(e){return!function(e){return function(e){return function(e,t){return l(t,/\(iP.+; CPU .*OS (\d+)[_\d]*.*\) AppleWebKit\//,1)===n(e)}(12,e)||function(e,t,o){const i=/\(Macintosh;.*Mac OS X (\d+)_(\d+)[_\d]*.*\) AppleWebKit\//; 189return l(o,i,1)===n(e)&&l(o,i,2)===n(t)}(10,14,e)&&(function(e){const t=/Version\/.* Safari\//;return null!=e.match(t)&&!h(e)}(e)||function(e){return a(e,/^Mozilla\/[\.\d]+ \(Macintosh;.*Mac OS X [_\d]+\) AppleWebKit\/[\.\d]+ \(KHTML, like Gecko\)$/)}(e))}(e)||function(e){return h(e)&&c(51,e)&&!c(67,e)||function(e){return a(e,/UCBrowser\//)}(e)&&!function(e,t,o,i){const n=/UCBrowser\/(\d+)\.(\d+)\.(\d+)[\.\d]* /,r=s(l(i,n,1)),a=s(l(i,n,2)),h=s(l(i,n,3));return r!==e?r>e:a!==t?a>t:h>=o}(12,13,2,e)}(e)}(String(e))} 190function a(e,t){return null!=e.match(t)}function l(e,t,o){const i=e.match(t);return null!=i&&void 0!==i[o]?i[o]:null}function h(e){return a(e,/Chrom(e|ium)/)}function c(e,t){return s(l(t,/Chrom[^ \/]+\/(\d+)[\.\d]* /,1))>=e}class d{static detectCookieDomain(){if(d.cacheInitialized)return d.cachedCookieDomain;const e=window.location.hostname.split(".").reverse(),t="__cheq_tld_"+(new Date).getTime(),o="https:"===window.location.protocol,i=e=>{document.cookie=t+"\x3d1;path\x3d/;domain\x3d"+e+";SameSite\x3dLax"+ 191(o?";Secure":"");const i=document.cookie.split(/;\s*/).some(e=>e.startsWith(t+"\x3d"));return document.cookie=t+"\x3d;expires\x3d"+(new Date(0)).toUTCString()+";Max-Age\x3d0;path\x3d/;domain\x3d"+e+";SameSite\x3dLax"+(o?";Secure":""),i};for(let t=1;t<=e.length;t++){const o=e.slice(0,t).reverse().join(".");if(i(o))return d.cachedCookieDomain=o,d.cacheInitialized=!0,o}return d.cachedCookieDomain=null,d.cacheInitialized=!0,null}constructor(e,t,o,i,n){this.clientName=e,this.cookieDomain_=t,this.isNetworkOnlyEnabled= 192o,this.customGetter=i,this.customSetter=n,this.defaultCookieRetentionLength=31536E6,t.then(t=>{this.setCookieDomain(t);const o=e.toUpperCase()+d.ensightenPrivacy;this.isNetworkOnlyEnabled||localStorage.setItem(o+`${d.tldPrefix}-${window.location.hostname}`,t)}),this.cookieDomainPath="/"}static calculateCookieDomain(e,t,o,n,s){return i(this,void 0,void 0,function*(){const i=e||window.location.hostname,r=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/gm.test(i); 193if("localhost"===i||r)return i;if(!s&&n&&d.getTLDSuffixCookie(n,i))return d.getTLDSuffixCookie(n,i);try{if(t){const e=d.getPublicSuffix(i,o).split(".").length+1;return i.split(".").slice(-e).join(".")}const e=d.detectCookieDomain();return e||i}catch(e){return i}})}static getPublicSuffix(e,t){const o=t.join("|");
193let i=(new RegExp(o)).exec(e)[0];return i.startsWith(".")&&(i=i.substring(1)),i}static build(e,t,o,i,n,s){const r=d.calculateCookieDomain(window.location.hostname,t,o,e,i);return new d(e,r, 194i,n,s)}deleteAllCookies(){return i(this,void 0,void 0,function*(){return this.cookieDomain_.then(e=>{const t=document.cookie.split(";");for(let e=0;e<t.length;e++){const o=t[e],i=o.indexOf("\x3d"),n=i>-1?o.substr(0,i):o;document.cookie=n+"\x3d; path\x3d/; expires\x3dThu, 01 Jan 1970 00:00:00 GMT; domain\x3d"+this.getCookieDomain()}})})}deleteCookie(e){return i(this,void 0,void 0,function*(){return this.cookieDomain_.then(t=>{this.clientName=this.clientName.toUpperCase();const o=this.clientName+d.ensightenPrivacy+ 195this._parseCookieSuffix(e),i=document.cookie.split(";");for(let e=0;e<i.length;e++){const t=i[e],n=t.indexOf("\x3d"),s=n>-1?t.substr(0,n):t;s.trim()===o.trim()&&(document.cookie=s+"\x3d; path\x3d/; expires\x3dThu, 01 Jan 1970 00:00:00 GMT; domain\x3d"+this.getCookieDomain())}})})}getCategoryMapFromCookieTypes(e){const t={};for(let o=0;o<e.length;o++){const i=e[o];t[i]=this.getCookie(i)}return t}getCookie(e){return"function"==typeof this.customGetter?this.customGetter(e):this.defaultGetCookie(e)}defaultGetCookie(e){const t= 196this.clientName.toUpperCase()+d.ensightenPrivacy+this._parseCookieSuffix(e),o=document.cookie.match(new RegExp(t+"\x3d([^;]+)"));if(o)return o[1];{const e=document.cookie.match(new RegExp(t+"\x3d([^;]+)"));if(e)return e[1]}}getCookiesFromTypes(e){const t={};for(let o=0;o<e.length;o++){const i=e[o],n=this.getCookie(i);void 0!==n&&null!=n&&(t[this.clientName.toUpperCase()+d.ensightenPrivacy+this._parseCookieSuffix(i)]=n)}return t}setDefaultCookieRetentionPeriod(e){this.defaultCookieRetentionLength= 197this.parseRetentionPeriod(e)}getDefaultCookieRetentionPeriod(){return this.defaultCookieRetentionLength}getRetentionPeriodUTCString(e){return(new Date(+new Date+e)).toUTCString()}parseRetentionPeriod(e){const t=parseInt(e,10);return isNaN(t)?this.defaultCookieRetentionLength:t}setCookie(e,t,o){return i(this,void 0,void 0,function*(){return"number"!=typeof o&&(o=this.parseRetentionPeriod(o)),"function"==typeof this.customSetter?Promise.resolve(this.customSetter(e,t,o)):yield this.defaultSetCookie(e, 198t,o)})}setCookies(e,t){return i(this,void 0,void 0,function*(){for(const o in e)yield this.setCookie(o,e[o],t)})}defaultSetCookie(e,t,o){return i(this,void 0,void 0,function*(){return this.cookieDomain_.then(i=>{const n=this.clientName.toUpperCase()+d.ensightenPrivacy,s=this._parseCookieSuffix(e);let a="";const l=/https:/.test(location.protocol),h=this.getRetentionPeriodUTCString(o);r(navigator.userAgent)&&(a=" SameSite\x3d"+(l?"None":"Lax")+";"),l&&(a+=" Secure;");const c=n+s+"\x3d"+t+"; path\x3d"+ 199this.cookieDomainPath+";"+a+" domain\x3d"+this.getCookieDomain()+"; expires\x3d"+h;return document.cookie=c,c})})}setCookieDomain(e){this.cookieDomain=e}getCookieDomain(){return this.cookieDomain}setCookieDomainPath(e){this.cookieDomainPath=e}getCookieDomainPath(){return this.cookieDomainPath}_parseCookieSuffix(e){return e.replace(/ /g,"_")}}d.ensightenPrivacy="_ENSIGHTEN_PRIVACY_",d.tldPrefix="TLD",d.cachedCookieDomain=null,d.cacheInitialized=!1,d.getTLDSuffixCookie=(e,t)=>{const o=e.toUpperCase()+ 200d.ensightenPrivacy;return localStorage.getItem(o+`${d.tldPrefix}-${t}`)};var u=o(514);class g{constructor(e,t,o,n,s,r,a,l){this.environmentChangeCallbacks=[],this.activeEnvironment=null,this.activeEnvironmentTranslation=null,this.enableAsyncEnvironments=!1,this.asyncEnvironmentPromiseComplete=!1,this.getAsyncEnvironmentFromStorage=e=>JSON.parse(window.localStorage.getItem("environments-"+e.name)),this.getAsyncEnvironmentFromPromise=(e,t,o)=>{let i,n=e.asyncEnvironmentUrl!==this.asyncEnvironmentUrl; 201if(e.previewUrl?(i=e.previewUrl+`/${e.asyncEnvironmentUrl}`,n=!0):i="//"+this.nexusDomain+`/privacy/environments/${this.clientName}/${this.publishPath}/`+e.asyncEnvironmentUrl,n)this.asyncEnvironmentUrl=e.asyncEnvironmentUrl,this.asyncEnvironmentPromise=null,this.asyncEnvironmentPromiseComplete=!1,e.asyncEnvironmentUrl&&(this.asyncEnvironmentPromise?this.asyncEnvironmentPromise.then(()=>{o.forEach(t=>t(e))}):this.asyncEnvironmentPromise=fetch(i).then(t=>{if(!t.ok)throw new Error(`Network response was not ok for translation ${e.name} `+ 202t.statusText);return t.json()}).then(i=>{if(!i)throw new Error(`No DATA retrieved for ${e.name} translation on ${t}`);this.setAsyncEnvironmentParameters(e,i),window.localStorage.setItem("environments-"+e.name,JSON.stringify(e)),o.forEach(t=>t(e)),this.asyncEnvironmentPromiseComplete=!0}
202).catch(o=>{throw new Error(`There has been a problem with your fetch operation ${e.name} translation on ${t}: ${o}`);}));else if(!this.asyncEnvironmentPromiseComplete&&this.asyncEnvironmentPromise)this.asyncEnvironmentPromise.then(()=> 203{o.forEach(t=>t(e))});else{const t=this.getAsyncEnvironmentFromStorage(e);this.setAsyncEnvironmentParameters(e,t),this.asyncEnvironmentUrl||(this.asyncEnvironmentUrl=e.asyncEnvironmentUrl),o.forEach(e=>e(t))}},this.getAsyncEnvironmentHtml=(e,t,o,i)=>{let n,s;if(e.previewUrl?(n=e.previewUrl+`/${e[o]}`,e[i]&&(s=e.previewUrl+`/${e[i]}`)):(n="//"+this.nexusDomain+`/privacy/environments/${this.clientName}/${this.publishPath}/`+e[o],e[i]&&(s="//"+this.nexusDomain+`/privacy/environments/${this.clientName}/${this.publishPath}/`+ 204e[i])),s){const e=this.document.createElement("link");e.rel="stylesheet",e.href=s,this.document.head.appendChild(e)}fetch(n).then(t=>{if(!t.ok)throw new Error(`Network response was not ok for translation ${e.name} `+t.statusText);return t.text()}).then(o=>{o?t.forEach(t=>t(e,o)):console.log(`No html retrieved for ${e.name}`)}).catch(t=>{console.error(`There has been a problem with your fetch operation for ${e.name}`,t)})},this.clearEnvironment=()=>i(this,void 0,void 0,function*(){yield this.cookieManager.deleteCookie("LOCALE"), 205yield this.setEnvironment(void 0)}),this.evalCondition=e=>{let t,o=!1;switch(e.type){case "host":t=this.document.location.hostname;break;case "url":t=this.document.URL;break;case "cookie":t=this.getCookie(e.key);break;case "jsVar":t=this.getJSVarValue(e.key);break;default:console.warn("Error evaluating environment target")}switch(e.operator){case "equals":o=this.evaluateEquals(t,e);break;case "contains":o=this.evaluateContains(t,e);break;case "exists":o=this.evaluateExists(t);break;case "regexp":o= 206this.evaluateRegExp(t,e);break;default:console.warn("Error evaluating comparator for environment")}return!1===e.shouldBePositive&&(o=!0!==o),!0===o&&e._and&&(o=this.evalCondition(e._and)),!1===o&&e._or&&(o=this.evalCondition(e._or)),o},this.getEnvironmentByLocale=e=>{let t=null;for(let o=0;o<this.environmentsCount;o++)this.localeMatches(this.environmentConfigs[o],e)&&(t=this.environmentConfigs[o]);return t},this.environmentExists=e=>null!=this.getEnvironmentByLocale(e),this.getActiveEnvironment=()=> 207this.activeEnvironment,this.getActiveLocale=()=>this.activeEnvironment.languageCode,this.getAvailableLocales=()=>{const e=[];for(let t=0;t<this.environmentsCount;t++)e.push(this.environmentConfigs[t].languageCode);return e},this.registerEnvironmentChangeCallback=e=>{this.environmentChangeCallbacks.push(e)},this.setEnvironment=e=>i(this,void 0,void 0,function*(){this.environmentExists(e)?(yield this.cookieManager.setCookie("LOCALE",e),this.initializeActiveEnvironment(),this.fireEnvironmentChangeCallbacks()): 208e||(this.initializeActiveEnvironment(),this.activeEnvironment=this.getActiveEnvironment(),this.fireEnvironmentChangeCallbacks())}),this.evaluateContains=(e,t)=>!!e&&(e=e.toString(),t.caseInsensitive?-1!==e.toLowerCase().indexOf(t.value.toLowerCase()):-1!==e.indexOf(t.value)),this.evaluateEquals=(e,t)=>!!e&&(t.caseInsensitive?e.toLowerCase()==t.value.toLowerCase():e==t.value),this.evaluateExists=e=>{let t=!1;return e&&(t=!0),t},this.evaluateRegExp=(e,t)=>{let o=new RegExp(t.value);return t.caseInsensitive&& 209(o=new RegExp(t.value,"i")),void 0!==e&&""!==e&&o.test(e)},this.fireEnvironmentChangeCallbacks=()=>{const e=this.environmentChangeCallbacks.length;for(let t=0;t<e;t++)"function"==typeof this.environmentChangeCallbacks[t]&&this.environmentChangeCallbacks[t](this.activeEnvironment)},this.getCookie=e=>{const t=this.document.cookie.match(new RegExp(e+"\x3d([^;]+)"));if(t)return t[1]},this.getDefaultEnvironment=()=>{let e=null;for(let t=0;t<this.environmentConfigs.length;t++)if(this.defaultEnvName&&this.environmentConfigs[t].name=== 210this.defaultEnvName){e=this.environmentConfigs[t];break}return e},this.getEnvironmentByConditions=()=>{const e=u.utilities.getBrowserLocale();for(let t=0;t<this.environmentsCount;t++)if(this.hasConditions(this.environmentConfigs[t])){if(this.evalCondition(this.environmentConfigs[t].condition))return this.environmentConfigs[t]}else if(this.localeMatches(this.environmentConfigs[t],e))return this.environmentConfigs[t];return null},this.hasConditions=e=>e.condition&&e.condition.type&&e.condition.operator, 211this.localeMatches=(e,t)=>{if(e&&t){if(e.languageCode===t)return!0;{const o=t.split("-")[0];if(e.languageCode===o)return!0}}return!1},this.getEnvironmentByLocaleCookie=()=>{let e=null;const t=this.cookieManager.getCookie("LOCALE");return t&&(e=this.getEnvironmentByLocale(t)),e}
211,this.initializeActiveEnvironment=()=>{let e=null;if(e=this.getEnvironmentByLocaleCookie(),e||(e=this.getEnvironmentByConditions()),e||(e=this.getDefaultEnvironment()),e&&e.translation&&(e.translation.save=e.translation.save|| 212"SAVE",e.translation.cancel=e.translation.cancel||"CANCEL",e.translation.close=e.translation.close||"CLOSE"),this.activeEnvironment=e,this.activeEnvironment&&this.activeEnvironment.asyncEnvironmentUrl){const e=this.getAsyncEnvironmentFromStorage(this.activeEnvironment);e&&(this.asyncEnvironmentUrl=e.asyncEnvironmentUrl)}},this.getJSVarValue=e=>{let t=void 0!==window[e]?window[e]:void 0;if(e&&"string"==typeof e&&!t){let o,i=0;const n=e.split("."),s=n.length;for(;i<s;i++)o=o?o[n[i]]:window[n[i]],t= 213void 0!==o?o:void 0}return t},this.environmentConfigs=t,this.environmentsCount=this.environmentConfigs.length,this.document=e,this.nexusDomain=a,this.defaultEnvName=o,this.clientName=n,this.cookieManager=s,this.enableAsyncEnvironments=r,this.publishPath=l,this.initializeActiveEnvironment()}setAsyncEnvironmentParameters(e,t){e.translation=t.translation,e.bannerConfig=t.bannerConfig,e.consentModalConfig=t.consentModalConfig,null!==t.privacyNoticeCustomConfig&&(e.privacyNoticeCustomConfig=t.privacyNoticeCustomConfig), 214null!==t.consentModalCustomConfig&&(e.consentModalCustomConfig=t.consentModalCustomConfig)}}var p=o(897),m=o(711),f=o.n(m);class y{constructor(){this.consoleLoggingEnabled=!1,this.checkForConsoleLoggingParam()}checkForConsoleLoggingParam(){let e={};const t={},o=window.location.href.slice(window.location.href.indexOf("?")+1).split("\x26");for(let i=0;i<o.length;i++)e=o[i].split("\x3d"),t[e[0]]=e[1];t.ensLogger&&"true"===t.ensLogger&&this.enableConsoleLogging()}disableConsoleLogging(){this.setConsoleLoggingState(!1)}enableConsoleLogging(){this.setConsoleLoggingState(!0)}getConsoleLoggingState(){return this.consoleLoggingEnabled}consoleLog(...e){this.consoleLoggingEnabled&& 215window.console&&console.log(e)}setConsoleLoggingState(e){this.consoleLoggingEnabled=e}}var v=o(287).hp;class C{constructor(){this.instanceId=(268435456*(1+Math.random())|0).toString(36),this.ensLogger=new y,this.options={maxUrlSize:32E3},this.beaconCounter=0,this.version="1.0.0"}setEnvironment(e){this.environmentName=e?e.name:"none",this.defaultOptions=e?e.optVals:{}}compressReportString(e){const t=v.from(e).length,o=v.from(e),i=v.alloc(p.utils.compressBound(o.length)),n=p.utils.compress(o,i);return{encodedBody:e= 216f().encode(i.slice(0,n)),rawLength:t}}beacon(e,t){const o=this.encodeBeaconURL(e,t);if(""!==o)if(this.sendBeaconReportingDisabled||"function"!=typeof this.sendBeacon)(new this.imageReference).src=o;else this.sendBeacon(o,e);return o}asyncBeacon(e,t){const o=this.encodeBeaconURL(e,t);if(""!==o){if(this.sendBeaconReportingDisabled||"function"!=typeof this.sendBeacon)return this.loadImg(o);this.sendBeacon(o,e)}return Promise.resolve(o)}encodeBeaconURL(e,t){return null==t||t<=0||null==e||e.length<=0? 217"":`${this.urlPath}${-1===this.urlPath.indexOf("?")?"?":"\x26"}n=${this.beaconCounter++}&c=${this.clientId}&i=${this.instanceId}&${this.publishPath?`p=${encodeURIComponent(this.publishPath)}&`:""}s=${t}&d=${e}`}loadImg(e){return new Promise(t=>{const o=new this.imageReference;o.onerror=()=>{t(e)},o.onload=()=>{t(e)},o.src=e})}}class w extends C{constructor(e,t,o,i,n,s,r,a,l,h,c,d,u,g,p,m,f,y){super(),this.imageReference=e,this.environmentName=t,this.modalType=o,this.defaultOptions=i,this.clientId= 218n,this.clientName=s,this.publishPath=r,this.mode=a,this.cookiesTypes=l,this.gatewayVersion=h,this.reportingEnabled=c,this.cookieManager=d,this.nexusDomain=u,this.customReporter=g,this.sendBeaconReportingDisabled=p,this.sendBeacon=m,this.useCategoryNameInExternalConsentNotifications=f,this.reportOnImpliedConsentEvents=y,this.cookiesTypesMap=new Map,this.pendingEvents=[],this.urlPath=`//${this.nexusDomain}/privacy/v1/c/b.rnc`,this.cookiesTypes.forEach(e=>this.cookiesTypesMap.set(e.replace(/ /g,"_"), 219e))}sendReport(e,t,o){if(this.reportingEnabled){const i=this.generateRawReport(e,t,null==o?void 0:o.isImpliedConsent,null==o?void 0:o.isTrackingEvent,null==o?void 0:o.gpcOverride);
219if(i.events.length>0){const {encodedBody:o,rawLength:n}=this.compressReportString(JSON.stringify(i));return"function"==typeof this.customReporter&&null!=e&&null!=t&&this.executeCustomReporter(e,t),this.pendingEvents=[],this.beacon(o,n)}}}generateRawReport(e,t,o,i,n){const s={version:this.version,gateway:this.gatewayVersion, 220clientId:this.clientId,clientName:this.clientName,publishPath:this.publishPath,mode:this.mode,cookies:this.cookieManager.getCookiesFromTypes(this.cookiesTypes.concat("MODAL_VIEWED","MODAL_LOADED","LOCALE","BANNER_VIEWED","BANNER_LOADED")),dt:Date.now(),settings:{modal:this.modalType,environment:this.environmentName,defaults:this.defaultOptions},events:null!=e&&null!=t?this.buildEvents(e,t,o,i,n).concat(this.pendingEvents):this.pendingEvents};return n&&(s.consentSource="implicit-gpc"),s}buildEvents(e, 221t,o,i,n){const s=[];for(const r in t){const a=t[r]!==e[r]||!i&&this.reportOnImpliedConsentEvents;if(e.hasOwnProperty(r)){if(a){const e=this.buildEvent(r,t[r],o,n);s.push(e)}}else{const e=this.buildEvent(r,t[r],o,n);s.push(e)}}return s}addCustomEvent(e){return!(!this.reportingEnabled||null==e)&&(e.hasOwnProperty("event")?(this.pendingEvents.push(e),!0):(this.ensLogger.consoleLog("customConsentEvent's must contain the key 'event'"),!1))}buildEvent(e,t,o,i){const n={event:"cookieChanged",dt:Date.now(), 222[u.utilities.cookieNameToCookieType(this.clientName,e)]:t};return o&&(n.isImpliedConsent=!0),i&&(n.gpcOverride=!0,n.consentSource="implicit-gpc"),n}executeCustomReporter(e,t){const o=this.buildEvents(e,t);for(let e=0;e<o.length;e++){const t=o[e];let i=Object.keys(t)[2];const n=t[i];this.useCategoryNameInExternalConsentNotifications&&this.cookiesTypesMap.has(i)&&(i=this.cookiesTypesMap.get(i)),this.customReporter(i,n)}for(let e=0;e<this.pendingEvents.length;e++){const t=this.pendingEvents[e],o=Object.keys(t)[1], 223i=t[o];t.isTag&&this.customReporter(o,i)}}}var b,M=o(660);!function(e){e[e.BANNER_CSS=0]="BANNER_CSS",e[e.BANNER_HTML=1]="BANNER_HTML",e[e.CONSENT_MODAL_CSS=2]="CONSENT_MODAL_CSS",e[e.CONSENT_MODAL_HTML=3]="CONSENT_MODAL_HTML",e[e.NO_TOGGLES_MODAL_HTML=4]="NO_TOGGLES_MODAL_HTML",e[e.CONSENT_WIDGET_CSS=5]="CONSENT_WIDGET_CSS",e[e.CONSENT_WIDGET_HTML=6]="CONSENT_WIDGET_HTML",e[e.CONTACT_INFO_CSS=7]="CONTACT_INFO_CSS",e[e.CONTACT_INFO_HTML=8]="CONTACT_INFO_HTML",e[e.COOKIE_MODAL_CSS=9]="COOKIE_MODAL_CSS", 224e[e.COOKIE_MODAL_HTML=10]="COOKIE_MODAL_HTML",e[e.REQUEST_CONFIRMATION_MODAL_HTML=11]="REQUEST_CONFIRMATION_MODAL_HTML",e[e.REQUEST_CONFIRMATION_MODAL_CSS=12]="REQUEST_CONFIRMATION_MODAL_CSS"}(b||(b={}));const E={};class k{constructor(e){let t;for(t in this.getTemplate=function(e){return this.useLocalTemplates?E[e]:this.getModalBannerError()},this.getModalBannerError=function(){throw new Error("Ensighten API error: Your modal template is not implemented.");},this.useLocalTemplates=e,b)E[t]=Bootstrapper.privacy.templates[b[t]]}} 225var S,T,D,L,A,O,R,_;class B{constructor(e,t,o,i){this.isGcmEnabled=!1,this.gcmPreviousState={},this.consentTypes=[...Object.values(_)],this.init=function(){this.checkCMP(),this.gtag=this.setGTag(),this.initGoogleConsent(this.defaultConsent),"{}"!==JSON.stringify(this.consent)&&this.updateGoogleConsent(this.consent,!1),this.gcm_options.url_passthrough&&this.gtag("set","url_passthrough",this.gcm_options.url_passthrough),this.gcm_options.ads_data_redaction&&this.gtag("set","ads_data_redaction",this.gcm_options.ads_data_redaction)}, 226this.checkCMP=()=>{const e=window[`${this.dataLayer||"dataLayer"}`];for(let t=0;t<(e||[]).length;t++)if(!["gtm.js","gtm.dom","gtm.load"].includes(e[t].event)&&"js"!==e[t][0]){console.warn("Privacy: Google Consent Mode configuration warning - Privacy must load before any Google tags in order to maintain compliance.");break}},this.setGTag=()=>{const e=this.dataLayer||"dataLayer";window[`${e}`]=window[`${e}`]||[];return function(){try{window[`${e}`].push(arguments)}catch(t){console.error(t+" \n Data Layer is not valid format: \n", 227window[`${e}`])}}},this.retrievePartialGcm=function(e,t){return Object.keys(this.gcm_options).filter(e=>t(e)).reduce((t,o)=>(t[o]=e[o],t),{})},this.updateGoogleConsent=e=>{const t=this.getGCMState(e),o={};
227Object.keys(this.gcmPreviousState).forEach(e=>{this.gcmPreviousState[e]!==t[e]&&(o[e]=t[e])}),this.gcmPreviousState=t,"{}"!==JSON.stringify(o)&&this.gtag("consent","update",o)},this.initGoogleConsent=e=>{this.setDefaultGcmOptions(e)},this.setDefaultGcmOptions=e=>{let t=new P(this.gcm_options),o= 228{};const i=this.retrievePartialGcm(t,e=>e.includes("_tag")||e.includes("_category"));let n=!1;const s=(e,t)=>null===i[`${e+t}`];this.consentTypes.forEach(i=>{var r,a,l;if(s(i,"_category")){if(!s(i,"_tag")){const s=[].concat(...Object.keys(e).map(t=>e[t].tags)).find(e=>e.tagName===t[i+"_tag"]),a=s&&s.tagEnabled?"granted":"denied";(null===(r=t[i+"_regions"])||void 0===r?void 0:r.length)>0?(n||(n=!0,this.gtag("set","developer_id.dNjQwYj",!0)),this.gtag("consent","default",{[i]:a,region:t[i+"_regions"]}), 229t[i]=null,o[i+"_regions"]=null):t[i]=a,o[i]=a}}else{const s=(null===(a=e[t[i+"_category"]])||void 0===a?void 0:a.categoryEnabled)?"granted":"denied";(null===(l=t[i+"_regions"])||void 0===l?void 0:l.length)>0?(n||(n=!0,this.gtag("set","developer_id.dNjQwYj",!0)),this.gtag("consent","default",{[i]:s,region:t[i+"_regions"]}),t[i]=null,o[i+"_regions"]=null):t[i]=s,o[i]=s}}),t=this.retrievePartialGcm(t,e=>null!==t[e]),o=this.retrievePartialGcm(o,e=>null!==o[e]),this.gcmPreviousState=o;const r={};this.consentTypes.forEach(e=> 230{t.hasOwnProperty(e)&&(r[e]=t[e])}),"{}"!==JSON.stringify(r)&&(n||this.gtag("set","developer_id.dNjQwYj",!0),this.gtag("consent","default",r))},this.getGCMState=e=>{let t=new P(this.gcm_options);const o=this.retrievePartialGcm(t,e=>e.includes("_tag")||e.includes("_category")),i=(e,t)=>null===o[`${e+t}`];this.consentTypes.forEach(o=>{var n;if(i(o,"_category")){if(!i(o,"_tag")){const i=[].concat(...Object.keys(e).map(t=>e[t].tags)).find(e=>e.tagName===t[o+"_tag"]);i&&i.tagEnabled?t[o]="granted":t[o]= 231"denied"}}else(null===(n=e[t[o+"_category"]])||void 0===n?void 0:n.categoryEnabled)?t[o]="granted":t[o]="denied"}),t=this.retrievePartialGcm(t,e=>null!==t[e]);const n={};return this.consentTypes.forEach(e=>{t.hasOwnProperty(e)&&(n[e]=t[e])}),n},this.defaultConsent=e,this.consent=t,this.isGcmEnabled=i||!1,this.gcm_options=new P(o),this.dataLayer=this.gcm_options.dataLayer,this.init()}}B.getInstance=(e,t,o,i)=>(B.instance||(B.instance=new B(e,t,o,i)),B.instance),function(e){e.ad_storage="ad_storage", 232e.ad_user_data="ad_user_data",e.ad_personalization="ad_personalization",e.analytics_storage="analytics_storage",e.functionality_storage="functionality_storage",e.personalization_storage="personalization_storage",e.security_storage="security_storage"}(_||(_={}));class P{constructor(e){this.ad_storage_category=null,this.ad_user_data_category=null,this.ad_personalization_category=null,this.analytics_storage_category=null,this.functionality_storage_category=null,this.personalization_storage_category= 233null,this.security_storage_category=null,this.ad_storage_tag=null,this.ad_user_data_tag=null,this.ad_personalization_tag=null,this.analytics_storage_tag=null,this.functionality_storage_tag=null,this.personalization_storage_tag=null,this.security_storage_tag=null,this.ad_storage_regions=null,this.ad_user_data_regions=null,this.ad_personalization_regions=null,this.analytics_storage_regions=null,this.functionality_storage_regions=null,this.personalization_storage_regions=null,this.security_storage_regions= 234null,this[S]=null,this[T]=null,this[D]=null,this[L]=null,this[A]=null,this[O]=null,this[R]=null,this.dataLayer="dataLayer",this.url_passthrough=!1,this.ads_data_redaction=!1,Object.keys(this).forEach(t=>{e[t]?this[t]=e[t]:this[t]=null})}}S=_.ad_personalization,T=_.functionality_storage,D=_.personalization_storage,L=_.security_storage,A=_.ad_storage,O=_.ad_user_data,R=_.analytics_storage;class x{constructor(e,t,o,n,s,r){this.cookieManager=e,this.listProcessor=t,this.consentReporter=o,this.environment= 235n,this.tagAccessManager=s,this.gatewayData=r,this.setConsentStatus=(e,t,o,n)=>i(this,void 0,void 0,function*(){const i={};i[e]=this.getConsentStatus(e);const s=this.cookieManager.getCookiesFromTypes([e]);this.allowPerTagOptOut&&this.tagAccessManager.clearTags();const r=t?"1":"0";yield this.cookieManager.setCookie(e,r,o);const a=this.cookieManager.getCookiesFromTypes([e]);this.tagAccessManager&&this.allowPerTagOptOut&&this.allowOrBlockTags(e,r,n),null!=this.consentReporter&&this.shouldSe
235ndReport(n)&& 236this.consentReporter.sendReport(s,a);const l={};l[e]=this.getConsentStatus(e);const h=this.calculateConsentDiff(i,l);this.googleConsentManager&&this.googleConsentManager.isGcmEnabled&&this.googleConsentManager.updateGoogleConsent(l),x.fireConsentChangeCallbacks(h)}),this.setConsentStatuses=(e,t,o)=>i(this,void 0,void 0,function*(){const i=this.getConsentStatus(),n=[],s={};for(const t in e)n.push(t),s[t]=e[t]?"1":"0";const r=this.cookieManager.getCookiesFromTypes(n);yield this.cookieManager.setCookies(s, 237t);const a=this.cookieManager.getCookiesFromTypes(n);if(this.tagAccessManager)for(const e in s)this.allowPerTagOptOut&&this.allowOrBlockTags(e,s[e],o);this.listProcessor.updateListValues(this.cookieManager.getCategoryMapFromCookieTypes(n),this.tagAccessManager.getAllowedTags(),this.tagAccessManager.getBlockedTags()),null!=this.consentReporter&&this.shouldSendReport(o)&&this.consentReporter.sendReport(r,a);const l=this.getConsentStatus(),h=this.calculateConsentDiff(i,l);this.googleConsentManager&& 238this.googleConsentManager.isGcmEnabled&&this.googleConsentManager.updateGoogleConsent(l),x.fireConsentChangeCallbacks(h)}),this.retrieveTagStatuses=(e,t,o,i)=>e.map(e=>o),this.setAllowPerTagOptOut(n,r.featureToggles),this.setGoogleConsentManager(n,r.featureToggles,r)}shouldForceImplicitOptOut(){const e=this.environment,t=Object.values(e.optVals).every(e=>1===e),o=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"honorGlobalPrivacyControl"),i=!0===navigator.globalPrivacyControl; 239return t&&o&&i}setAllowPerTagOptOut(e,t){const o=M.utilities.getEnvironmentOverrideOrGlobalDefault(t,e,"allowPerTagOptOut");this.allowPerTagOptOut=o}getAllowPerTagOptOut(){return this.allowPerTagOptOut}getGoogleConsentManager(){return this.googleConsentManager}setGoogleConsentManager(e,t,o){const i=this.getConsentStatus(),n=this.getDefaultConsent(),s=M.utilities.getEnvironmentOverrideOrGlobalDefault(t,e,"enableGoogleConsent"),r=M.utilities.getEnvironmentOverrideOrGlobalDefault(o,e,"gcm_options"); 240s&&r&&(this.googleConsentManager=B.getInstance(n,i,r,s))}shouldSendReport(e){return!0!==(null==e?void 0:e.disableSendReport)}denyAll(e){return i(this,void 0,void 0,function*(){const t={};e.cookieTypes.forEach(e=>t[e]=!1),yield this.setConsentStatuses(t,null,{ignoreModalState:!0})})}allowAll(e){return i(this,void 0,void 0,function*(){const t={};e.cookieTypes.forEach(e=>t[e]=!0),yield this.setConsentStatuses(t,null,{ignoreModalState:!0})})}getConsentStatus(e,t){var o,i;let n={};if(e){const s=this.cookieManager.getCookie(e), 241r=null!=s?"1"===s:1===(null===(i=null===(o=this.environment)||void 0===o?void 0:o.optVals)||void 0===i?void 0:i[e]);if(t)n=this.computeCategoryConsentStatus(e,r).tags.find(e=>e.tagName===t);else n=this.computeCategoryConsentStatus(e,r)}else{let e=[];this.environment&&this.environment.optVals&&(e=Object.keys(this.environment.optVals));const t=this.cookieManager.getCategoryMapFromCookieTypes(e);for(const e of Object.keys(t))null==t[e]&&(t[e]=this.environment.optVals[e].toString());for(const e in t)n[e]= 242this.computeCategoryConsentStatus(e,"1"===t[e])}return n}getDefaultConsent(){const e={};let t=[];return this.environment&&this.environment.optVals&&(t=Object.keys(this.environment.optVals)),t.forEach(t=>{e[t]=this.computeCategoryConsentStatus(t,1===this.environment.optVals[t])}),e}setDefaultConsent(){return i(this,void 0,void 0,function*(){const e=Object.keys(this.environment.optVals),t=this.cookieManager.getCookiesFromTypes(e);if(this.shouldForceImplicitOptOut()){const o={},i=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData, 243this.environment,"globalPrivacyControlCategories");for(const t of e)(0===i.length||this.checkCategories(i,t))&&(o[t]=0);if(Object.keys(o).length>0){yield this.cookieManager.setCookies(o);const e=this.cookieManager.getCookiesFromTypes(Object.keys(o));this.consentReporter.sendReport(t,e,{isImpliedConsent:!0,isTrackingEvent:!1,gpcOverride:!0})}}else{const o=this.cookieManager.getCategoryMapFromCookieTypes(e),i={};for(const t of e)void 0!==o[t]?i[t]=o[t]:i[t]=this.environment.optVals[t];yield this.cookieManager.setCookies(i); 244const n=this.cookieManager.getCookiesFromTypes(e);this.consentReporter.sendReport(t,n,{isImpliedConsent:!0,isTrackingEvent:!1})}})}calculateConsentDiff(e,t){const o={};for(const i in t)if(e[i]){const n=e[i],s=t[i],r={};n.categoryEnabled!==s.categoryEnabled&&(r.categoryEnabled=s.categoryEnabled);const a=[];for(const e of s.tags)n.tags.find(t=>t.tagName===e.tagName).tagEnabled!==e.tagEnabled&&a.push(e);a.length>0&&(r.tags=a),Object.keys(r).length>0&&(o[i]=r)}else o[i]=t[i];return o}allowOrBlockTags(e, 245t,o){const i=this.listProcessor.getList()[e]||[],n=this.retrieveTagStatuses(i,e,t,o);this.tagAccessManager.computeOptInOptOutEvents(i,n,e,t).map(e=>{this.tagAccessManager[e.tagStatus?"allowTag":"blockTag"](e.tag,e.tagStatusChanged)})}checkCategories(e,t){return e.find(e=>"object"==typeof e?e.name===t:e===t)}computeCategoryConsentStatus(e,t){let o=t;if(this.gatewayData.enableBotAndFraudProtection){const t=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData,this.environment,"globalPrivacyControlCategories"); 246M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"honorGlobalPrivacyControl")&&(0===t.length||this.checkCategories(t,e))&&(o=!1)}const i={categoryEnabled:o,tags:[]},n=this.listProcessor.getList()[e]||[];for(let e=0;e<n.length;e++){const t=this.shouldTagBeChecked(o,n[e]);i.tags.push({tagName:n[e].displayName,tag:n[e].tag,tagEnabled:t})}return i}static registerConsentChangeCallback(e){x.consentChangeCallbacks.push(e)}static fireConsentChangeCallbacks(e){for(const t of x.consentChangeCallbacks)"function"== 247typeof t&&t(e)}shouldTagBeChecked(e,t){let o;return e?(o=!0,this.tagAccessManager.isTagInBlockedList(t)&&(o=!1)):(o=!1,this.tagAccessManager.isTagInAllowedList(t)&&(o=!0)),o}}x.consentChangeCallbacks=[];class I extends x{constructor(e,t,o,n,s,r,a,l,h){super(e,t,o,n,l,s),this.gatewayData=s,this.updateListV
247alues=r,this.templateManager=a,this.cookieVals=[],this.modalHtmlString="",this.ESC_KEYCODE=27,this.cookieValsState=[],this.injectModalDelay=100,this.openModalDelay=150,this.buttonTranslation={ensAcceptAll:"consentModalAllowAll", 248ensRejectAll:"consentModalDenyAll",ensSave:"save",ensCancel:"cancel"},this.getConsentStatus=(e,t)=>super.getConsentStatus(e,t),this.retrieveTagStatuses=(e,t,o,i)=>(null==i?void 0:i.ignoreModalState)?e.map(e=>o):e.map(e=>{const o=this.generateTagSlideId(t,e);return document.getElementById(o).checked?"1":"0"}),this.modalLoaded=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["MODAL_LOADED"]);yield this.cookieManager.setCookie("MODAL_LOADED","1");const t=this.cookieManager.getCookiesFromTypes(["MODAL_LOADED"]); 249this.consentReporter.sendReport(e,t,{isImpliedConsent:!1,isTrackingEvent:!0})}),this.modalViewed=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["MODAL_VIEWED"]);yield this.cookieManager.setCookie("MODAL_VIEWED","1");const t=this.cookieManager.getCookiesFromTypes(["MODAL_VIEWED"]);this.consentReporter.sendReport(e,t,{isImpliedConsent:!1,isTrackingEvent:!0})}),this.getCurrentCookieVal=e=>{const t=document.getElementById(e+"Slide");let o=0;return t&&t.checked&&(o= 2501),o},this.saveNewCookieValues=()=>{const e=this.cookieManager.getCategoryMapFromCookieTypes(this.gatewayData.cookieTypes);for(const t in this.cookieManager.getCategoryMapFromCookieTypes(this.gatewayData.cookieTypes))e[t]=1===this.getCurrentCookieVal(t);this.setConsentStatuses(e)},this.getCookieValsState=()=>{const e=document.querySelectorAll(".ensCheckbox");for(let t=0;t<e.length;t++)this.cookieValsState.push(e[t].checked)},this.resetCookieValsState=()=>{this.cookieValsState=[]},this.setCookieValsState= 251()=>{if(0===this.cookieValsState.length)return;const e=document.querySelectorAll(".ensCheckbox");for(let t=0;t<e.length;t++)e[t].checked=this.cookieValsState[t]},this.openModal=()=>{var e,t;"function"==typeof(null===(t=null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===e?void 0:e.cookieModal)||void 0===t?void 0:t.beforeOpen)&&Bootstrapper.privacy.cookieModal.beforeOpen(this.cookieModal),u.utilities.domReady(()=>{setTimeout(()=>{var e,t;this.cookieModal.style.display= 252"block",this.getIncludeModalCustomization(this.environment)&&this.addModalCustomization(),this.onOpenModal(),this.modalLoaded(),this.cookieModal.isConnected&&this.cookieModal.showModal(),"function"==typeof(null===(t=null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===e?void 0:e.cookieModal)||void 0===t?void 0:t.afterOpen)&&Bootstrapper.privacy.cookieModal.afterOpen(this.cookieModal)},this.openModalDelay)})},this.getIncludeModalCustomization=function(e){return M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 253e,"includeConsentModalCustomConfig")},this.addModalCustomization=function(){const e=this.getModalCustomization();this.setModalSize(e),this.setModalPosition(e),this.setModalColor(e)},this.getModalCustomization=function(){return M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"consentModalCustomConfig")},this.setModalSize=e=>{this.cookieModal.style.width=e.consentModalHSize+"%",this.cookieModal.style.height=e.consentModalVSize+"%",this.cookieModal.style.overflow= 254"scroll"},this.setModalPosition=e=>{"Left"===e.consentModalHPosition?this.cookieModal.style.left=e.consentModalHMargin+"%":"Right"===e.consentModalHPosition?this.cookieModal.style.right=e.consentModalHMargin+"%":this.cookieModal.style.left=(100-e.consentModalHSize)/2+"%","Top"===e.consentModalVPosition?this.cookieModal.style.top=e.consentModalVMargin+"%":"Bottom"===e.consentModalVPosition?this.cookieModal.style.bottom=e.consentModalVMargin+"%":this.cookieModal.style.top=(100-e.consentModalVSize)/ 2552+"%"},this.setModalColor=e=>{this.cookieModal.style.backgroundColor=e.consentModalBackgroundHex;const t=document.querySelector(".ensTitle"),o=document.querySelector(".consentDescription"),i=document.querySelector(".ensModal");t.style.color=e.consentModalTextHex,o.style.color=e.consentModalTextHex,i.style.color=e.consentModalTextHex},this.initializeFocus=()=>{this.previousFocusedElement=document.activeElement;const e=document.querySelector(".ensCheckbox:enabled");e&&"function"==typeof e.focus?e.focus(): 256this.cookieModal.focus()},this.onOpenModal=()=>{document.body.addEventListener("keydown",this.escapeCloseModal),this.initializeFocus()},this.escapeCloseModal=e=>{if(!this.gatewayData.featureToggles.disableEscapeKeyboardCommands&&e.keyCode===this.ESC_KEYCODE){const e=!0;this.closeModal(e),this.setCookieValsState()}},this.closeModal=e=>{var t,o,i,n;"function"==typeof(null===(o=null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===t?void 0:t.cookieModal)||void 0=== 257o?void 0:o.beforeClose)&&Bootstrapper.privacy.cookieModal.beforeClose(this.cookieModal),e&&!this.gatewayData.featureToggles.disableImpliedConsentReporting&&this.setDefaultConsent(),this.modalViewed(),this.cookieModal.style.display="none",this.onCloseModal(),this.cookieModal.close(),"function"==typeof(null===(n=null===(i=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===i?void 0:i.cookieModal)||void 0===n?void 0:n.afterClose)&&Bootstrapper.privacy.cookieModal.afterClose(this.cookieModal)}, 258this.cancelCloseModal=()=>{this.closeModal(!0),this.setCookieValsState()},this.onCloseModal=()=>{document.removeEventListener("keydown",this.escapeCloseModal),this.previousFocusedElement&&"function"==typeof this.previousFocusedElement.focus&&this.previousFocusedElement.focus()},this.getCheckedString=e=>e?" checked ":"",this.shouldCategoryBeChecked=(e,t)=>{const o=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData,this.environment,"globalPrivacyControlCategories");if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 259this.environment,"honorGlobalPrivacyControl")&&navigator.globalPrivacyControl&&(0===o.length||this.checkCategories(o,t)))return!1;const i=this.cookieManager.getCookie(t);return(1==i||1==e)&&0!=i}
259,this.getStyleString=()=>this.templateManager.getTemplate(b.COOKIE_MODAL_CSS),this.getModalHtmlString=()=>this.modalHtmlString,this.setModalHtmlString=function(e,t,o,i){for(const t in e)this.cookieVals.push(e[t]);const n=document.createElement("div");n.innerHTML=this.templateManager.getTemplate(b.COOKIE_MODAL_HTML), 260n.querySelector("#ensTitle").innerHTML=t.consentTitle,n.querySelector("#ensDescription").innerHTML=t.consentDescription;const s=n.querySelector(".ensToggleRowWrapper");s.role="list";let r=1;for(const n in t.cookies){this.setAllowPerTagOptOut(i,this.gatewayData.featureToggles);const a=this.getAllowPerTagOptOut()?"ensToggleLabel chevron right":"ensToggleLabel",l=this.shouldCategoryBeChecked(e[n],n);if("default"!==n||!0===o){const e=r.toString();r++;const o=document.createElement("div");o.className= 261"ensToggleRow",o.role="listitem","default"===n&&o.setAttribute("style","opacity: .5;");const i=document.createElement("label");i.className=a,i.innerHTML=t.cookies[n].title,i.setAttribute("for",n+"Slide"),this.getAllowPerTagOptOut()&&i.setAttribute("tabindex","0"),i.role="heading",i.ariaLevel=e;const h=document.createElement("div");h.className="card";const c=document.createElement("input");c.className="ensCheckbox",c.setAttribute("aria-describedby",n+"description"),c.id=n+"Slide",c.type="checkbox", 262c.name=n+"Slide",(l||"default"===n)&&c.setAttribute("checked",""),c.disabled="default"===n;const d=document.createElement("span");d.className="switch";const u=document.createElement("span");u.className="toggle",h.appendChild(c),h.appendChild(d),h.appendChild(u),i.appendChild(h);const g=document.createElement("div");g.className="description",g.id=n+"description",g.role="definition",g.innerHTML=t.cookies[n].description,this.getAllowPerTagOptOut()&&this.buildPerTagOptOutTemplate(n,l||"default"===n), 263o.appendChild(i),o.appendChild(g),o.innerHTML+=this.getAllowPerTagOptOut()?this.buildPerTagOptOutTemplate(n,l||"default"===n):"",s.appendChild(o),s.appendChild(document.createElement("hr"))}}if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableDoNotSellModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"showDoNotSellOnConsentModal")){const e=n.querySelector("#ensDoNotSellModalLink");e.setAttribute("style", 264"display: true;"),e.innerHTML=t.doNotSellModal.link,e.setAttribute("aria-label",e.innerHTML)}else n.querySelector("#ensDoNotSellModalLink").remove();if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableRequestDataModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"showRequestDataOnConsentModal")){const e=n.querySelector("#ensRequestDataModalLink");e.setAttribute("style","display: true;"), 265e.innerHTML=t.requestDataModal.link,e.setAttribute("aria-label",e.textContent)}else n.querySelector("#ensRequestDataModalLink").remove();if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableDeleteDataModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"showDeleteDataOnConsentModal")){const e=n.querySelector("#ensDeleteDataModalLink");e.setAttribute("style","display: true;"),e.innerHTML= 266t.deleteDataModal.link,e.setAttribute("aria-label",e.textContent)}else n.querySelector("#ensDeleteDataModalLink").remove();this.modalHtmlString=n.innerHTML},this.isEnabledConsentModal=function(e){return e&&e.hasOwnProperty("enableConsentModal")?e.enableConsentModal:this.gatewayData.featureToggles.enableConsentModal},this.isShowedTrustedDomains=function(e){return!!M.utilities.isWhitelist(this.gatewayData,e)&&(e&&e.hasOwnProperty("showTrustedDomains")?e.showTrustedDomains:this.gatewayData.featureToggles.showTrustedDomains)}, 267this.addEventListeners=()=>{const e=!0;if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableDoNotSellModal")){const t=document.getElementById("ensDoNotSellModalLink");null!=t&&t.addEventListener("click",()=>{this.closeModal(e),Bootstrapper.gateway.openDoNotSellModal()})}if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableRequestDataModal")){const t=document.getElementById("ensRequestDataModalLink"); 268null!=t&&t.addEventListener("click",()=>{this.closeModal(e),Bootstrapper.gateway.openRequestDataModal()})}if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableDeleteDataModal")){const t=document.getElementById("ensDeleteDataModalLink");null!=t&&t.addEventListener("click",()=>{this.closeModal(e),Bootstrapper.gateway.openDeleteDataModal()})}(()=>{const e=document.querySelectorAll(".card input[type\x3dcheckbox]");for(let t=0;t<e.length;t++){const o= 269e[t];o.addEventListener("focus",function(){this.parentNode.style.outline="rgba(0, 103, 244, 0.247) auto 5px"}),o.addEventListener("blur",function(){this.parentNode.style.outline=""})}})(),this.getAllowPerTagOptOut()&&this.addRowsEventsPerTagOptOut()},this.saveCookies=()=>{this.resetCookieValsState(),this.closeModal(),requestAnimationFrame(()=>{setTimeout(()=>{this.getCookieValsState(),this.saveNewCookieValues()},0)})},this.acceptAllClickHandler=()=>i(this,void 0,void 0,function*(){this.closeModal(), 270yield this.allowAll(this.gatewayData)}),this.rejectAllClickHandler=()=>i(this,void 0,void 0,function*(){this.closeModal(),yield this.denyAll(this.gatewayData)}),this.acceptAllKeyDownHandler=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeModal(),this.allowAll(this.gatewayData)}return!0},this.rejectAllKeyDownHandler=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeModal(),this.denyAll(this.gatewayData)}return!0}, 271this.handleKeyCancel=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.cancelCloseModal()}return!0},this.handleKeySave=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.saveCookies()}return!0},this.updateButtonConfig=function(e){var t,o,i,n,s,r,a,l,h,c,d,u;this.buttonConfig={ensAcceptAll:{show:null!==(i=null===(o=null===(t=null==e?void 0:e.consentModalConfig)||void 0===t?void 0:t.ensConsentAcceptAll)||void 0=== 272o?void 0:o.show)&&void 0!==i&&i,clickHandler:this.acceptAllClickHandler,keyDownHandler:this.acceptAllKeyDownHandler},ensRejectAll:{show:null!==(r=null===(s=null===(n=null==e?void 0:e.consentModalConfig)||void 0===n?void 0:n.ensConsentRejectAll)||void 0===s?void 0:s.show)&&void 0!==r&&r,clickHandler:this.rejectAllClickHandler,keyDownHandler:this.rejectAllKeyDownHandler},ensSave:{show:null!==(h=null===(l=null===(a=null==e?void 0:e.consentModalConfig)||void 0===a?void 0:a.ensSaveModal)||void 0===l?void 0: 273l.show)&&void 0!==h&&h,clickHandler:this.saveCookies,keyDownHandler:this.handleKeySave},ensCancel:{show:null===(u=null===(d=null===(c=null==e?void 0:e.consentModalConfig)||void 0===c?void 0:c.ensCloseModal)||void 0===d?void 0:d.show)||void 0===u||u,clickHandler:this.cancelCloseModal,keyDownHandler:this.handleKeyCancel}}},this.updateModalDOM=function(e){var t,o,i,n;if(this.isEnabledConsentModal(e))if("function"==typeof(null===(o=null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)|| 274void 0===t?void 0:t.cookieModal)||void 0===o?void 0:o.beforeLoad)&&Bootstrapper.privacy.cookieModal.beforeLoad(this.cookieModal),this.setModalHtmlString(e.optVals,e.translation,this.isShowedTrustedDomains(e),e),this.cookieModal.innerHTML=this.getModalHtmlString(),this.updateButtonConfig(e),null==document.getElementById("ensModalWrapper")){const t=()=>{setTimeout(()=>{var t,o;this.gatewayData.featureToggles.disableDefaultStyles||u.utilities.addStyleElement(this.getStyleStr
274ing()),document.body.insertBefore(this.cookieModal, 275document.body.lastChild),this.setCookieModalWrapperAccessibilitySettings(),this.addEventListeners(),this.getCookieValsState(),this.generateButtonsFromConfig(this.buttonConfig,e.translation),"function"==typeof(null===(o=null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===t?void 0:t.cookieModal)||void 0===o?void 0:o.afterLoad)&&Bootstrapper.privacy.cookieModal.afterLoad(this.cookieModal)},this.injectModalDelay)};u.utilities.domReady(t)}else this.resetCookieValsState(), 276this.updateCheckboxes(e),this.addEventListeners(),this.getCookieValsState(),this.generateButtonsFromConfig(this.buttonConfig,e.translation),"function"==typeof(null===(n=null===(i=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===i?void 0:i.cookieModal)||void 0===n?void 0:n.afterLoad)&&Bootstrapper.privacy.cookieModal.afterLoad(this.cookieModal)},this.update=e=>{this.environment=e,this.environmentManager.enableAsyncEnvironments?this.environmentManager.getAsyncEnvironmentFromPromise(e, 277"Cookie Modal",[e=>this.updateModalDOM(e)]):this.updateModalDOM(e)},this.setCookieModalWrapperAccessibilitySettings=()=>{const e=document.getElementById("ensModalWrapper");e.setAttribute("role","dialog"),e.setAttribute("aria-labelledby","ensTitle"),e.setAttribute("aria-describedby","ensDescription"),e.setAttribute("focusable","true"),e.setAttribute("aria-modal","true")},this.buildPerTagOptOutTemplate=function(e,t){const o=this.listProcessor.getList()[e]||[],i="default"===e;let n="\x3cdiv class\x3d'ensTagsContent'"+ 278(i?" style\x3d'opacity: .5;'":"")+"\x3e";for(let s=0;s<o.length;s++){const r=o[s].displayName||o[s].tag,a=this.generateTagSlideId(e,o[s]),l=this.shouldTagBeChecked(t,o[s]);n+="\x3cdiv class\x3d'tagContainer'\x3e\x3clabel for\x3d'"+a+"' class\x3d'ensToggleLabel'\x3e"+r+"\x3cdiv class\x3d'card'\x3e\x3cinput class\x3d'ensCheckbox' type\x3d'checkbox' id\x3d'"+a+"' name\x3d'"+a+"'"+this.getCheckedString(l)+(i?" disabled/\x3e":"/\x3e")+"\x3cspan class\x3d'switch'\x3e\x3c/span\x3e\x3cspan class\x3d'toggle'\x3e\x3c/span\x3e\x3c/div\x3e\x3c/label\x3e", 279n+="\x3c/div\x3e"}return n+="\x3c/div\x3e",n},this.updateTagSlides=function(e,t,o){const i=this.listProcessor.getList()[t]||[];for(let e=0;e<i.length;e++){const n=this.generateTagSlideId(t,i[e]),s=1===o,r=document.getElementById(n);null!=r&&(r.checked=s)}},this.updateConsentDiffTagSlides=function(e,t){if(t.tags)for(let o=0;o<t.tags.length;o++){t.tags[o].displayName=t.tags[o].tagName;const i=this.generateTagSlideId(e,t.tags[o]),n=document.getElementById(i);null!=n&&(n.checked=t.tags[o].tagEnabled)}}, 280this.addRowsEventsPerTagOptOut=()=>{const e=document.getElementsByClassName("ensToggleRow"),t=e=>{const t=e.target.className;return t.indexOf("ensToggleLabel")>-1?this.handleExpandableEvent(e):t.indexOf("ensCheckbox")>-1&&this.handleSwitchEvent(e),!1},o=e=>{if(e.target.className.indexOf("ensToggleLabel")>-1){const t=13,o=32;switch(e.which){case t:case o:this.handleExpandableEvent(e)}}};for(let i=0;i<e.length;i++)e[i].addEventListener("click",t),e[i].addEventListener("keydown",o)},this.handleExpandableEvent= 281function(e){const t=e.target,o=t.parentNode.querySelector(".ensTagsContent");o&&("block"===o.style.display?(o.style.display="none",t.className=t.className.replace(/\bbottom\b/g,"right")):(o.style.display="block",t.className=t.className.replace(/\bright\b/g,"bottom"))),e.preventDefault()},this.handleKeySwitch=e=>{switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.handleSwitchEvent(e)}return!0},this.handleSwitchEvent=e=>{const t=e.target,o=t.checked,i=t.parentNode.parentNode.parentNode; 282if(i.className.indexOf("ensToggleRow")>-1){const e=i.querySelector(".ensTagsContent");if(e){const t=e.querySelectorAll(".ensCheckbox");for(let e=0;e<t.length;e++)t[e].checked=o}}},this.generateTagSlideId=(e,t)=>(e+"-"+(t.displayName||"")+"-"+t.tag+"-slide").replace(/[^A-Za-z0-9,:._-]/g,"-").replace(/\s/g,"-"),this.addChoiceButtonCustomization=function(e){const t=this.getModalCustomization(this.environment);e.style.backgroundColor=t.consentModalAccButtonHex,e.style.color=t.consentModalAccTextHex}, 283this.addCancelButtonCustomization=function(e){const t=this.getModalCustomization(this.environment);e.style.backgroundColor=t.consentModalCancelButtonHex,e.style.color=t.consentModalCancelTextHex},this.templateManager=a,this.cookieModal=document.createElement("dialog"),this.cookieModal.id="ensModalWrapper",this.openModalDelay=this.injectMod
283alDelay+50,this.environmentManager=h,this.update(n),x.registerConsentChangeCallback(e=>{this.resetCookieValsState(),this.updateCheckboxes(this.environment);for(const t in e)this.updateConsentDiffTagSlides(t, 284e[t]);this.getCookieValsState()})}updateCheckboxes(e){const t=e.optVals,o=e.translation;if(null===document.getElementById("ensModalWrapper"))this.update(e);else for(const e in o.cookies)if("default"!==e){const o=this.shouldCategoryBeChecked(t[e],e),i=document.getElementById(e+"Slide");null!=i&&(i.checked=!!o)}}generateButtonsFromConfig(e,t){const o=document.querySelector(".ensModal .ensButtons");o.innerHTML="";for(const i in e)if(e.hasOwnProperty(i)&&e[i].show){const n=document.createElement("button"); 285n.id=i,n.tabIndex=0,null==o||o.appendChild(n);const s=document.createElement("div");s.innerHTML=t[this.buttonTranslation[i]],s.id=i+"Text",s.className="ensCenter",n.appendChild(s),n.setAttribute("aria-label",s.innerHTML),n.addEventListener("click",e[i].clickHandler.bind(this)),n.addEventListener("keydown",e[i].keyDownHandler.bind(this)),this.getIncludeModalCustomization(this.environment)?(n.className="button raised","ensCancel"===i?this.addCancelButtonCustomization(n):this.addChoiceButtonCustomization(n)): 286n.className="ensCancel"===i?"button raised grey":"button raised blue"}}}class N extends x{constructor(e,t,o,n,s,r,a,l,h,c){super(s,e,a,o,h,t),this.gatewayData=t,this.tagPurposes=n,this.cookieManager=s,this.updateListValues=r,this.templateManager=l,this.tagAccessManager=h,this.environmentManager=c,this.sectionElement=document.createElement("section"),this.styleString=this.templateManager.getTemplate(b.CONSENT_MODAL_CSS),this.ensShowMore=()=>{const e=document.getElementById("ensShowMoreLink"),t=document.getElementById("ensTagsTableContainer"); 287"Show More"===e.innerText?(e.innerText="Show Less",t.style.display="block"):(e.innerText="Show More",t.style.display="none")},this.isEnabledConsentModal=function(e){return e&&e.hasOwnProperty("enableConsentModal")?e.enableConsentModal:this.gatewayData.featureToggles.enableConsentModal},this.cookieVals=[],this.closeModal=e=>{var t,o,i,n;"function"==typeof(null===(o=null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===t?void 0:t.consentModal)||void 0===o?void 0: 288o.beforeClose)&&Bootstrapper.privacy.consentModal.beforeClose(this.sectionElement),e&&!this.gatewayData.featureToggles.disableImpliedConsentReporting&&this.setDefaultConsent(),this.sectionElement.style.display="none",this.onCloseModal(),"function"==typeof(null===(n=null===(i=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===i?void 0:i.consentModal)||void 0===n?void 0:n.afterClose)&&Bootstrapper.privacy.consentModal.afterClose(this.sectionElement)},this.getInnerModalString= 289()=>"",this.init=()=>{this.update(this.environment)},this.injectModal=()=>{var e,t;this.gatewayData.featureToggles.disableDefaultStyles||u.utilities.addStyleElement(this.styleString),document.body.insertBefore(this.sectionElement,document.body.lastChild),this.setHTMLBindings(),this.setConsentModalWrapperAccessibilitySettings(),"function"==typeof(null===(t=null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===e?void 0:e.consentModal)||void 0===t?void 0:t.afterLoad)&& 290Bootstrapper.privacy.consentModal.afterLoad(this.sectionElement)},this.modalLoaded=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["MODAL_LOADED"]);yield this.cookieManager.setCookie("MODAL_LOADED","1");const t=this.cookieManager.getCookiesFromTypes(["MODAL_LOADED"]);this.consentReporter.sendReport(e,t,{isImpliedConsent:!1,isTrackingEvent:!0})}),this.modalViewed=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["MODAL_VIEWED"]); 291yield this.cookieManager.setCookie("MODAL_VIEWED","1");const t=this.cookieManager.getCookiesFromTypes(["MODAL_VIEWED"]);this.consentReporter.sendReport(e,t,{isImpliedConsent:!1,isTrackingEvent:!0})}),this.openModal=()=>{var e,t;"function"==typeof(null===(t=null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===e?void 0:e.consentModal)||void 0===t?void 0:t.beforeOpen)&&Bootstrapper.privacy.consentModal.beforeOpen(this.sectionElement),this.sectionElement.style.display= 292"block",u.utilities.domReady(()=>{var e,t;if(this.getIncludeModalCustomization(this.environment))this.addModalCustomization();else{const e=window.innerWidth/2,t=window.innerHeight/2,o=parseInt(window.getComputedStyle(this.sectionElement).width)/2,i=parseInt(window.getComputedStyle(this.sectionElement).height)/2;this.sectionElement.style.left=e-o+"px",this.sectionElement.style.top=t-i+"px"}this.modalLoaded(),this.onOpenModal(),"function"==typeof(null===(t=null===(e=null===Bootstrapper||void 0===Bootstrapper? 293void 0:Bootstrapper.privacy)||void 0===e?void 0:e.consentModal)||void 0===t?void 0:t.afterOpen)&&Bootstrapper.privacy.consentModal.afterOpen(this.sectionElement)})},this.getIncludeModalCustomization=function(e){return M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"includeConsentModalCustomConfig")},this.addModalCustomization=function(){const e=this.getModalCustomization();this.setModalSize(e),this.setModalPosition(e),this.setModalColor(e)},this.getModalCustomization= 294function(){return M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"consentModalCustomConfig")},this.setModalSize=e=>{this.sectionElement.style.width=e.consentModalHSize+"%",this.sectionElement.style.height=e.consentModalVSize+"%",this.sectionElement.style.overflow="scroll"},this.setModalPosition=e=>{"Left"===e.consentModalHPosition?this.sectionElement.style.left=e.consentModalHMargin+"%":"Right"===e.consentModalHPosition?this.sectionElement.style.right= 295e.consentModalHMargin+"%":this.sectionElement.style.left=(100-e.consentModalHSize)/2+"%","Top"===e.consentModalVPosition?this.sectionElement.style.top=e.consentModalVMargin+"%":"Bottom"===e.consentModalVPosition?this.sectionElement.style.bottom=e.consentModalVMargin+"%":this.sectionElement.style.top=(100-e.consentModalVSize)/2+"%"},this.setModalColor=e=>{this.sectionElement.style.backgroundColor=e.consentModalBackgroun
295dHex;const t=document.querySelector(".ensModal"),o=document.querySelector(".ensTitle"), 296i=document.querySelector(".consentDescription"),n=document.querySelector("#ensShowMoreLink");t.style.color=e.consentModalTextHex,o.style.color=e.consentModalTextHex,i.style.color=e.consentModalTextHex,n.style.color=e.consentModalTextHex},this.initializeFocus=()=>{this.previousFocusedElement=document.activeElement;const e=document.getElementById("ensShowMoreLink");e&&"function"==typeof e.focus&&e.focus()},this.onOpenModal=()=>{document.body.addEventListener("keydown",this.escapeCloseModal),this.initializeFocus()}, 297this.escapeCloseModal=e=>{this.gatewayData.featureToggles.disableEscapeKeyboardCommands||27!==e.keyCode||this.closeModal(!0)},this.onCloseModal=()=>{document.body.removeEventListener("keydown",this.escapeCloseModal),this.previousFocusedElement&&"function"==typeof this.previousFocusedElement.focus&&this.previousFocusedElement.focus()},this.getModalHtmlString=()=>{let e=!1;const t=this.templateManager.getTemplate(b.CONSENT_MODAL_HTML),o=document.createElement("div");o.innerHTML=t,o.querySelector("#ensConsentDescription").innerHTML= 298this.environment.translation.consentDescription,o.querySelector("#ensConsentTitle").innerHTML=this.environment.translation.consentTitle;for(const t in this.tagPurposes)if("default"!==t){const i=this.tagPurposes[t],n=this.checkIfPurposesNotEmpty(i);if(!e){if(n){const e=document.createElement("th");e.classList.add("mdl-data-table__cell--non-numeric"),e.innerText="Purposes",o.querySelector("#ensTagsTableTitleRow").appendChild(e)}e=!0}for(let e=0;e<i.length;e++){const t=i[e],s=Array.isArray(t.purpose)? 299t.purpose.join(", "):"",r=document.createElement("tr"),a=document.createElement("td");if(a.classList.add("mdl-data-table__cell--non-numeric"),a.innerText=t.displayName,r.appendChild(a),n){const e=document.createElement("td");e.classList.add("mdl-data-table__cell--non-numeric"),e.innerText=s,r.appendChild(e)}o.querySelector("#ensTagsTable").appendChild(r)}}if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableDoNotSellModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 300this.environment,"showDoNotSellOnConsentModal")){o.querySelector(".ensModal").appendChild(document.createElement("br"));const e=document.createElement("a");e.id="ensDoNotSellModalLink",e.href="javascript:void(0)",e.innerText=this.environment.translation.doNotSellModal.link,o.querySelector(".ensModal").appendChild(e)}if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableRequestDataModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 301this.environment,"showRequestDataOnConsentModal")){o.querySelector(".ensModal").appendChild(document.createElement("br"));const e=document.createElement("a");e.id="ensRequestDataModalLink",e.href="javascript:void(0)",e.innerText=this.environment.translation.requestDataModal.link,o.querySelector(".ensModal").appendChild(e)}if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableDeleteDataModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 302this.environment,"showDeleteDataOnConsentModal")){o.querySelector(".ensModal").appendChild(document.createElement("br"));const e=document.createElement("a");e.id="ensDeleteDataModalLink",e.href="javascript:void(0)",e.innerText=this.environment.translation.deleteDataModal.link,o.querySelector(".ensModal").appendChild(e)}return o.querySelector("#innerModal").innerHTML=this.getInnerModalString(),o.innerHTML},this.setHTMLBindings=()=>{},this.setConsentModalWrapperAccessibilitySettings=()=>{const e=document.getElementById("ensModalWrapper"); 303e.setAttribute("role","dialog"),e.setAttribute("aria-labelledby","ensConsentTitle"),e.setAttribute("aria-describedby","ensConsentDescription"),e.setAttribute("focusable","true"),e.setAttribute("aria-modal","true")},this.updateDOM=function(e){var t,o,i,n;this.isEnabledConsentModal(e)&&("function"==typeof(null===(o=null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===t?void 0:t.consentModal)||void 0===o?void 0:o.beforeLoad)&&Bootstrapper.privacy.consentModal.beforeLoad(this.sectionElement), 304this.environment=e,this.sectionElement.innerHTML=this.getModalHtmlString(),null==document.getElementById(this.sectionElement.id)?u.utilities.domReady(this.injectMod
304al):"function"==typeof(null===(n=null===(i=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===i?void 0:i.consentModal)||void 0===n?void 0:n.afterLoad)&&Bootstrapper.privacy.consentModal.afterLoad(this.sectionElement))},this.update=function(e){this.environmentManager.enableAsyncEnvironments?this.environmentManager.getAsyncEnvironmentFromPromise(e, 305"Consent Modal",[e=>this.updateDOM(e)]):this.updateDOM(e)},this.checkIfPurposesNotEmpty=function(e){let t=!1;for(let o=0;o<e.length;o++)if(Array.isArray(e[o].purpose)&&e[o].purpose.length){t=!0;break}return t},this.environmentManager=c,this.templateManager=l,this.gatewayData=t,this.sectionElement.id="ensModalWrapper"}}class U extends N{constructor(e,t,o,n,s,r,a,l,h,c){super(e,t,o,n,s,r,a,l,h,c),this.getInnerModalString=()=>{const e=document.createElement("div");return e.innerHTML=this.templateManager.getTemplate(b.NO_TOGGLES_MODAL_HTML), 306e.querySelector("#ensDenyText").innerText=this.environment.translation.deny,e.querySelector("#ensAllowText").innerText=this.environment.translation.allow,e.innerHTML},this.addChoiceButtonCustomization=function(e){const t=this.getModalCustomization();e.style.backgroundColor=t.consentModalAccButtonHex,e.style.color=t.consentModalAccTextHex},this.addCancelButtonCustomization=function(e){const t=this.getModalCustomization();e.style.backgroundColor=t.consentModalCancelButtonHex,e.style.color=t.consentModalCancelTextHex}, 307this.setHTMLBindings=()=>{const e=document.getElementById("ensAllow"),t=document.getElementById("ensDeny");this.getIncludeModalCustomization(this.environment)&&(this.addChoiceButtonCustomization(e),this.addCancelButtonCustomization(t));let o=!0;const n=document.getElementById("ensDoNotSellModalLink");M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableDoNotSellModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 308this.environment,"showDoNotSellOnConsentModal")?n.addEventListener("click",()=>{this.closeModal(o),Bootstrapper.gateway.openDoNotSellModal()}):null!==n&&n.remove();const s=document.getElementById("ensRequestDataModalLink");M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableRequestDataModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"showRequestDataOnConsentModal")?s.addEventListener("click", 309()=>{this.closeModal(o),Bootstrapper.gateway.openRequestDataModal()}):null!==s&&s.remove();const r=document.getElementById("ensDeleteDataModalLink");M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableDeleteDataModal")&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"showDeleteDataOnConsentModal")?r.addEventListener("click",()=>{this.closeModal(o),Bootstrapper.gateway.openDeleteDataModal()}): 310null!==r&&r.remove(),e.addEventListener("click",()=>i(this,void 0,void 0,function*(){yield this.allowAll(this.gatewayData),this.closeViewedModal()})),t.addEventListener("click",()=>i(this,void 0,void 0,function*(){yield this.denyAll(this.gatewayData),this.closeViewedModal()}))},this.templateManager=l,this.update(o)}closeViewedModal(){this.closeModal(),this.modalViewed()}}class H extends x{constructor(e,t,o,n,s,r,a,l,h){super(e,t,o,n,l,s),this.gatewayData=s,this.updateListValues=r,this.templateManager= 311a,this.cookieVals=[],this.ESC_KEYCODE=27,this.cookieValsState=[],this.injectModalDelay=100,this.openModalDelay=150,this.getConsentStatus=(e,t)=>super.getConsentStatus(e,t),this.retrieveTagStatuses=(e,t,o,i)=>(null==i?void 0:i.ignoreModalState)?e.map(e=>o):e.map(e=>{const o=this.generateTagSlideId(t,e),i=document.getElementById(o);if(i)return i.checked?"1":"0"}),this.modalLoaded=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["MODAL_LOADED"]);yield this.cookieManager.setCookie("MODAL_LOADED", 312"1");const t=this.cookieManager.getCookiesFromTypes(["MODAL_LOADED"]);this.consentReporter.sendReport(e,t)}),this.modalViewed=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["MODAL_VIEWED"]);yield this.cookieManager.setCookie("MODAL_VIEWED","1");const t=this.cookieManager.getCookiesFromTypes(["MODAL_VIEWED"]);this.consentReporter.sendReport(e,t)}),this.getCurrentCookieVal=e=>{const t=document.getElementById(e+"-Slide");let o=0;return t&&t.checked&&(o=1),o},this.saveNewCookieValues= 313()=>{const e=this.cookieManager.getCategoryMapFromCookieTypes(this.gatewayData.cookieTypes);for(const t in this.cookieManager.getCategoryMapFromCookieTypes(this.gatewayData.cookieTypes))e[t]=1===this.getCurrentCookieVal(t);this.setConsentStatuses(e)},this.getCookieValsState=()=>{const e=document.querySelectorAll(".ensCheckbox");for(let t=0;t<e.length;t++)this.cookieValsState.push(e[t].checked)},this.resetCookieValsState=()=>{this.cookieValsState=[]},this.setCookieValsState=()=>{if(0===this.cookieValsState.length)return; 314const e=document.querySelectorAll(".ensCheckbox");for(let t=0;t<e.length;t++)e[t].checked=this.cookieValsState[t]},this.openModal=()=>{var e,t;"function"==typeof(null===(t=null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===e?void 0:e.cookieModal)||void 0===t?void 0:t.beforeOpen)&&Bootstrapper.privacy.cookieModal.beforeOpen(this.consentModal),u.utilities.domReady(()=>{setTimeout(()=>{var e,t;this.consentModal.style.display="block",this.onOpenModal(),this.modalLoaded(), 315this.consentModal.isConnected&&this.consentModal.showModal(),"function"==typeof(null===(t=null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===e?void 0:e.cookieModal)||void 0===t?void 0:t.afterOpen)&&Bootstrapper.privacy.cookieModal.afterOpen(this.consentModal)},this.openModalDelay)})},this.initializeFocus=()=>{this.previousFocusedElement=document.activeElement;const e=document.querySelector(".ensCheckbox:enabled");e&&"function"==typeof e.focus?e.focus():this.consentModal.focus()}, 316this.onOpenModal=()=>{document.body.addEventListener("keydown",this.escapeCloseModal),this.initializeFocus()},this.escapeCloseModal=e=>{if(!this.gatewayData.featureToggles.disableEscapeKeyboardCommands&&e.keyCode===this.ESC_KEYCODE){const e=!0;this.closeModal(e),this.setCookieValsState()}},this.closeModal=e=>{var t,o,i,n;"function"==typeof(null===(o=null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===t?void 0:t.cookieModal)||void 0===o?void 0:o.beforeClose)&& 317Bootstrapper.privacy.cookieModal.beforeClose(this.consentModal),e&&!this.gatewayData.featureToggles.disableImpliedConsentReporting&&this.setDefaultConsent(),this.modalViewed(),this.consentModal.style.display="none",this.onCloseModal(),this.consentModal.close(),"function"==typeof(null===(n=null===(i=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===i?void 0:i.cookieModal)||void 0===n?void 0:n.afterClose)&&Bootstrapper.privacy.cookieModal.afterClose(this.consentModal)}, 318this.cancelCloseModal=()=>{this.closeModal(!0),this.setCookieValsState()},this.onCloseModal=()=>{document.removeEventListener("keydown",this.escapeCloseModal),this.previousFocusedElement&&"function"==typeof this.previousFocusedElement.focus&&this.previousFocusedElement.focus()},this.getCheckedString=e=>e?" checked ":"",this.shouldCategoryBeChecked=(e,t)=>{const o=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData,this.environment,"globalPrivacyControlCategories");if(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 319this.environment,"honorGlobalPrivacyControl")&&navigator.globalPrivacyControl&&(0===o.length||this.checkCategories(o,t)))return!1;const i=this.cookieManager.getCookie(t);return i?1===Number(i):1===Number(e)},this.isEnabledConsentModal=function(e){return e&&e.hasOwnProperty("enableConsentModal")?e.enableConsentModal:this.gatewayData.featureToggles.enableConsentModal},this.addEventListeners=()=>{this.addDsarEventListener("ensDoNotSellModalLink",Bootstrapper.gateway.openDoNotSellModal),this.addDsarEventListener("ensRequestDataModalLink", 320Bootstrapper.gateway.openRequestDataModal),this.addDsarEventListener("ensDeleteDataModalLink",Bootstrapper.gateway.openDeleteDataModal),(()=>{const e=document.querySelectorAll(".card input[type\x3dcheckbox]");for(let t=0;t<e.length;t++){const o=e[t];o.addEventListener("focus",function(){this.parentNode.style.outline="rgba(0, 103, 244, 0.247) auto 5px"}),o.addEventListener("blur",function(){this.parentNode.style.outline=""})}})(),document.getElementsByClassName("ensTagsContent")&&this.addRowsEventsPerTagOptOut()}, 321this.addDsarEventListener=(e,t)=>{if(document.getElementById(e)){const o=document.getElementById(e);null!=o&&o.addEventListener("click",()=>{this.closeModal(!0),t()})}},this.saveCookies=()=>{this.resetCookieValsState(),this.closeModal(),requestAnimationFrame(()=>{setTimeout(()=>{this.getCookieValsState(),this.saveNewCookieValues()},0)})},this.acceptAllClickHandler=()=>i(this,void 0,void 0,function*(){this.closeModal(),yield this.allowAll(this.gatewayData)}),this.rejectAllClickHandler=()=>i(this,void 0, 322void 0,function*(){this.closeModal(),yield this.denyAll(this.gatewayData)}),this.acceptAllKeyDownHandler=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeModal(),this.allowAll(this.gatewayData)}return!0},this.rejectAllKeyDownHandler=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeModal(),this.denyAll(this.gatewayData)}return!0},this.handleKeyCancel=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(), 323e.preventDefault(),this.cancelCloseModal()}return!0},this.handleKeySave=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.saveCookies()}return!0},this.updateButtonConfig=function(e){this.buttonConfig={ensAcceptAll:{clickHandler:this.acceptAllClickHandler,keyDownHandler:this.acceptAllKeyDownHandler},ensRejectAll:{clickHandler:this.rejectAllClickHandler,keyDownHandler:this.rejectAllKeyDownHandler},ensSave:{clickHandler:this.saveCookies,keyDownHandler:this.handleKeySave}, 324ensCancel:{clickHandler:this.cancelCloseModal,keyDownHandler:this.handleKeyCancel}}},this.updateButtonHandlers=function(){const e=document.querySelector("#ensModalWrapper .ensButtons");for(const t in this.buttonConfig){const o=e.querySelector(`#${t}`);null!=o&&(o.removeEventListener("click",this.buttonConfig[t].clickHandler.bind(this)),o.removeEventListener("keydown",this.buttonConfig[t].keyDownHandler.bind(this)),o.addEventListener("click",this.buttonConfig[t].clickHandler.bind(this)),o.addEventListener("keydown", 325this.buttonConfig[t].keyDownHandler.bind(this)))}},this.removeGpcElement=()=>{const e=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"honorGlobalPrivacyControl"),t=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableGPCConfirmation");if(!("globalPrivacyControl"in navigator&&!0===navigator.globalPrivacyControl&&e&&t)){const e=document.getElementById("ensGpcNotification");e&&e.remove()}},this.updateModalDOM= 326function(e,t){var o,i,n,s;if(this.isEnabledConsentModal(e))if("function"==typeof(null===(i=null===(o=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===o?void 0:o.cookieModal)||void 0===i?void 0:i.beforeLoad)&&Bootstrapper.privacy.cookieModal.beforeLoad(this.consentModal),this.consentModal.innerHTML=t,this.updateButtonConfig(e),null==document.getElementById("ensModalWrapper")){const t=()=>{setTimeout(()=>{var t,o;document.body.insertBefore(this.consentModal,document.body.lastChild), 327this.addEventListeners(),this.removeGpcElement(),this.getCookieValsState(),this.updateButtonHandlers(),this.updateCheckboxes(e),"function"==typeof(null===(o=null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===t?void 0:t.cookieModal)||void 0===o?void 0:o.afterLoad)&&Bootstrapper.privacy.cookieModal.afterLoad(this.consentModal)}
327,this.injectModalDelay)};u.utilities.domReady(t)}else this.resetCookieValsState(),this.updateCheckboxes(e),this.addEventListeners(),this.removeGpcElement(), 328this.getCookieValsState(),this.updateButtonHandlers(),"function"==typeof(null===(s=null===(n=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===n?void 0:n.cookieModal)||void 0===s?void 0:s.afterLoad)&&Bootstrapper.privacy.cookieModal.afterLoad(this.consentModal)},this.update=e=>{this.environment=e,this.environmentManager.enableAsyncEnvironments&&this.isEnabledConsentModal(e)&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"enablePrivacyConsentModalAdvancedMode")&& 329this.environmentManager.getAsyncEnvironmentHtml(e,[(e,t)=>this.updateModalDOM(e,t)],"consentModalHtmlUrl","consentModalCssUrl")},this.updateTagSlides=function(e,t,o){const i=this.listProcessor.getList()[t]||[];for(let e=0;e<i.length;e++){const n=this.generateTagSlideId(t,i[e]),s=1===o,r=document.getElementById(n);null!=r&&(r.checked=s)}},this.updateConsentDiffTagSlides=function(e,t){if(t.tags)for(let o=0;o<t.tags.length;o++){t.tags[o].displayName=t.tags[o].tagName;const i=this.generateTagSlideId(e, 330t.tags[o]),n=document.getElementById(i);null!=n&&(n.checked=t.tags[o].tagEnabled)}},this.addRowsEventsPerTagOptOut=()=>{const e=document.getElementsByClassName("ensToggleRow"),t=e=>{const t=e.target.className;return t.indexOf("ensToggleLabel")>-1?this.handleExpandableEvent(e):t.indexOf("ensCheckbox")>-1&&this.handleSwitchEvent(e),!1},o=e=>{if(e.target.className.indexOf("ensToggleLabel")>-1){const t=13,o=32;switch(e.which){case t:case o:this.handleExpandableEvent(e)}}};for(let i=0;i<e.length;i++)e[i].addEventListener("click", 331t),e[i].addEventListener("keydown",o)},this.handleExpandableEvent=function(e){const t=e.target,o=t.parentNode.querySelector(".ensTagsContent");o&&("block"===o.style.display?(o.style.display="none",t.className=t.className.replace(/\bbottom\b/g,"right")):(o.style.display="block",t.className=t.className.replace(/\bright\b/g,"bottom"))),e.preventDefault()},this.handleKeySwitch=e=>{switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.handleSwitchEvent(e)}return!0},this.handleSwitchEvent= 332e=>{const t=e.target,o=t.checked,i=t.parentNode.parentNode.parentNode;if(i.className.indexOf("ensToggleRow")>-1){const e=i.querySelector(".ensTagsContent");if(e){const t=e.querySelectorAll(".ensCheckbox");for(let e=0;e<t.length;e++)t[e].checked=o}}},this.generateTagSlideId=(e,t)=>(e+"-"+(t.displayName||"")+"-"+t.tag+"-slide").replace(/[^A-Za-z0-9,:._-]/g,"-").replace(/\s/g,"-"),this.templateManager=a,this.consentModal=document.createElement("dialog"),this.consentModal.id="ensModalWrapper",this.openModalDelay= 333this.injectModalDelay+50,this.environmentManager=h,this.update(n),x.registerConsentChangeCallback(e=>{this.resetCookieValsState(),this.updateCheckboxes(this.environment);for(const t in e)this.updateConsentDiffTagSlides(t,e[t]);this.getCookieValsState()})}updateCheckboxes(e){const t=e.optVals;if(null===document.getElementById("ensModalWrapper"))this.update(e);else for(const e in t){const o=this.shouldCategoryBeChecked(t[e],e),i=document.getElementById(e+"-Slide");if(null!=i&&(i.checked=o),document.getElementsByClassName("ensTagsContent")){const t= 334this.listProcessor.getList()[e]||[];for(let i=0;i<t.length;i++){const n=t[i],s=this.shouldTagBeChecked(o||"default"===e,n),r=document.getElementById(this.generateTagSlideId(e,n));null!=r&&(r.checked=s.valueOf())}}}}}class F{constructor(e,t,o,i,n,s,r,a,l){if(this.consentModal=null,this.templateManager=r,e.featureToggles.enableGdprModal){const h=o.getTranslatedList();this.consentModal=new U(o,e,t,h,i,s,n,r,a,l)}else M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,t,"enablePrivacyConsentModalAdvancedMode")? 335this.consentModal=new H(i,o,n,t,e,s,r,a,l):this.consentModal=new I(i,o,n,t,e,s,r,a,l)}getConsentModal(){return this.consentModal}}class q extends x{constructor(e,t,o,n,s,r,a,l,h,c){var d;super(s,e,r,o,h,t),this.listProcessor=e,this.gatewayData=t,this.environment=o,this.consentModal=n,this.cookieManager=s,this.consentReporter=r,this.templateManager=a,this.updateListV
335alues=l,this.tagAccessManager=h,this.environmentManager=c,this.sectionElement=document.createElement("section"),this.customBannerSet= 336!1,this.buttonTranslation={ensAcceptAll:"notificationBannerAllowAll",ensRejectAll:"notificationBannerDenyAll",ensOpenModal:"notificationBannerPreferences",ensCloseBanner:"close"},this.getConsentStatus=(e,t)=>super.getConsentStatus(e,t),this.bannerLoaded=function(){return i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["BANNER_LOADED"]);yield this.cookieManager.setCookie("BANNER_LOADED","1");const t=this.cookieManager.getCookiesFromTypes(["BANNER_LOADED"]);this.consentReporter.sendReport(e, 337t,{isImpliedConsent:!1,isTrackingEvent:!0})})},this.bannerViewed=function(){return i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["BANNER_VIEWED"]);yield this.cookieManager.setCookie("BANNER_VIEWED","1");const t=this.cookieManager.getCookiesFromTypes(["BANNER_VIEWED"]);this.consentReporter.sendReport(e,t,{isImpliedConsent:!1,isTrackingEvent:!0})})},this.checkCopyForLinks=function(){this.bannerCopy=this.bannerCopy.replace(/{{/gi,"\x3cspan id\x3d'ensModalLink' role\x3d'button' class\x3d'ensModalLink' aria-label\x3d'Cookie Consent Tool' tabindex\x3d'0'\x3e"), 338this.bannerCopy=this.bannerCopy.replace(/}}/gi,"\x3c/span\x3e")},this.closeEnsBanner=function(e){var t,o,i,n;const s=this.findBannerElement();"function"==typeof(null===(o=null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===t?void 0:t.banner)||void 0===o?void 0:o.beforeClose)&&Bootstrapper.privacy.banner.beforeClose(s),e&&!this.gatewayData.featureToggles.disableImpliedConsentReporting&&this.setDefaultConsent(),this.bannerViewed(),s.style.display="none",this.onCloseEnsBanner(), 339"function"==typeof(null===(n=null===(i=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===i?void 0:i.banner)||void 0===n?void 0:n.afterClose)&&Bootstrapper.privacy.banner.afterClose(s)},this.onCloseEnsBanner=function(){this.previousFocusedElement&&"function"==typeof this.previousFocusedElement.focus&&this.previousFocusedElement.focus(),document.body.removeEventListener("keydown",this.escapeBanner)},this.ensBannerShowModal=function(){this.closeEnsBanner(),this.consentModal.openModal&& 340this.consentModal.openModal()},this.hasBannerBeenViewed=function(){return!!this.cookieManager.getCookie("BANNER_VIEWED")},this.openBannerCheck=function(){this.hasBannerBeenViewed()||this.openEnsBanner()},this.openEnsBanner=function(){var e,t,o,i;const n=this.findBannerElement();if("function"==typeof(null===(t=null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===e?void 0:e.banner)||void 0===t?void 0:t.beforeOpen)&&Bootstrapper.privacy.banner.beforeOpen(n),n.style.display= 341"block",this.getIncludeBannerCustomization(this.environment))this.addBannerCustomization(n);else{const e=window.innerWidth/2,t=parseInt(window.getComputedStyle(n).width)/2;n.style.left=e-t+"px"}this.onOpenEnsBanner(),this.bannerLoaded(),"function"==typeof(null===(i=null===(o=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.afterOpen)&&Bootstrapper.privacy.banner.afterOpen(n)},this.onOpenEnsBanner=function(){this.previousFocusedElement= 342document.activeElement;const e=document.querySelector(".ensModalLink");null!=e&&"function"==typeof e.focus?e.focus():this.findBannerElement().focus(),document.body.addEventListener("keydown",this.escapeBanner)},this.addBannerCustomization=function(e){const t=this.getBannerCustomization(this.environment);e.style.backgroundColor=t.privacyNoticeBackgroundHex,e.style.color=t.privacyNoticeTextHex,e.style.opacity="1",e.style.width=t.privacyNoticeHSize+"%",e.style.left=(100-t.privacyNoticeHSize)/2+"%","Top"=== 343t.privacyNoticeVPosition?(e.style.top=t.privacyNoticeVMargin+"%",e.style.bottom="auto"):e.style.bottom=t.privacyNoticeVMargin+"%"},this.addChoiceButtonCustomization=function(e){const t=this.getBannerCustomization(this.environment);e.style.backgroundColor=t.privacyNoticeAccButtonHex,e.style.color=t.privacyNoticeAccTextHex},this.addCancelButtonCustomization=function(e){const t=this.getBannerCustomization(this.environment);e.style.backgroundColor=t.privacyNoticeCancelButtonHex,e.style.color=t.privacyNoticeCancelTextHex},
344this.getStyleString=()=>this.templateManager.getTemplate(b.BANNER_CSS),this.setBannerCopy=function(e){this.bannerCopy=e,this.checkCopyForLinks()},this.setBannerMarkup=function(){this.bannerMarkup=this.templateManager.getTemplate(b.BANNER_HTML)},this.isCustomBannerSet=function(){return this.customBannerSet},this.getBannerMarkup=function(){return this.bannerMarkup},this.findBannerElement=function(){return document.getElementById("ensNotifyBanner")},this.isEnabledPrivacyNotice=function(e){return M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 345e,"enablePrivacyNotice")},this.isEnabledAutoShowModal=function(e){return!M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"shouldNotAutoShowModal")},this.getIncludeBannerCustomization=function(e){return M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"includePrivacyNoticeCustomConfig")},this.getBannerCustomization=function(e){return M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"privacyNoticeCustomConfig")}, 346this.isEnabledAutoShowBanner=function(e){return!M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"shouldNotAutoShowBanner")},this.updateButtonConfig=function(e){var t,o,i,n,s,r,a,l,h,c,d,u;this.buttonConfig={ensAcceptAll:{show:null!==(i=null===(o=null===(t=null==e?void 0:e.bannerConfig)||void 0===t?void 0:t.ensAcceptAll)||void 0===o?void 0:o.show)&&void 0!==i&&i,clickHandler:this.acceptAllClickHandler,keyDownHandler:this.acceptAllKeyDownHandler},ensRejectAll:{show:null!== 347(r=null===(s=null===(n=null==e?void 0:e.bannerConfig)||void 0===n?void 0:n.ensRejectAll)||void 0===s?void 0:s.show)&&void 0!==r&&r,clickHandler:this.rejectAllClickHandler,keyDownHandler:this.rejectAllKeyDownHandler},ensOpenModal:{show:null!==(h=null===(l=null===(a=null==e?void 0:e.bannerConfig)||void 0===a?void 0:a.ensOpenModal)||void 0===l?void 0:l.show)&&void 0!==h&&h,clickHandler:this.ensBannerShowModal,keyDownHandler:this.handleKeyOpen},ensCloseBanner:{show:null===(u=null===(d=null===(c=null== 348e?void 0:e.bannerConfig)||void 0===c?void 0:c.ensCloseBanner)||void 0===d?void 0:d.show)||void 0===u||u,clickHandler:this.closeEnsBanner,keyDownHandler:this.handleKeyClose}}},this.injectBanner=(e,t)=>{var o,i;this.isCustomBannerSet()||(document.body.insertBefore(this.sectionElement,document.body.lastChild),t?this.updateButtonHandlers():(this.updateBanner(e.translation),this.gatewayData.featureToggles.disableDefaultStyles||u.utilities.addStyleElement(this.getStyleString())),this.addEventListeners()), 349"function"==typeof(null===(i=null===(o=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.afterLoad)&&Bootstrapper.privacy.banner.afterLoad(this.findBannerElement()),this.isEnabledAutoShowBanner(e)&&this.openBannerCheck()},this.updateDOM=function(e,t){var o,i,n,s,r,a;if(this.isEnabledPrivacyNotice(e)){const l=this.findBannerElement(),h=document.getElementById("ensModalWrapper");"function"==typeof(null===(i=null===(o=null===Bootstrapper|| 350void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.beforeLoad)&&Bootstrapper.privacy.banner.beforeLoad(l),this.updateButtonConfig(e),null==l?(this.isCustomBannerSet()||(t?this.sectionElement.innerHTML=t:(this.setBannerCopy(e.translation.notificationBannerContent),this.checkCopyForLinks(),this.setBannerMarkup(),this.sectionElement.innerHTML=this.bannerMarkup)),u.utilities.domReady(()=>this.injectBanner(e,t))):(this.bannerDisplayStyle=l.style.display, 351this.modalDisplayStyle=null!=h?h.style.display:"",t?(this.sectionElement.innerHTML=t,this.updateButtonHandlers()):(this.setBannerCopy(e.translation.notificationBannerContent),this.setBannerMarkup(),this.sectionElement.innerHTML=this.bannerMarkup,this.updateBanner(e.translation)),"block"===this.bannerDisplayStyle&&this.openEnsBanner(),"block"===this.modalDisplayStyle&&this.ensBannerShowModal(),this.addEventListeners(),"function"==typeof(null===(s=null===(n=null===Bootstrapper||void 0===Bootstrapper? 352void 0:Bootstrapper.privacy)||void 0===n?void 0:n.banner)||void 0===s?void 0:s.afterLoad)&&
352(null===(a=null===(r=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy)||void 0===r?void 0:r.banner)||void 0===a||a.afterLoad(l)))}else this.consentModal.isEnabledConsentModal(e)&&this.isEnabledAutoShowModal(e)&&setTimeout(()=>{this.cookieManager.getCookie("MODAL_VIEWED")||this.consentModal.openModal()},500)},this.update=function(e){this.environmentManager.enableAsyncEnvironments&&this.isEnabledPrivacyNotice(e)? 353M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"enablePrivacyNoticeAdvancedMode")?this.environmentManager.getAsyncEnvironmentHtml(e,[(e,t)=>this.updateDOM(e,t)],"bannerHtmlUrl","bannerCssUrl"):this.environmentManager.getAsyncEnvironmentFromPromise(e,"Banner",[e=>this.updateDOM(e)]):this.updateDOM(e)},this.addEventListeners=()=>{const e=document.getElementsByClassName("ensModalLink");document.getElementById("ensCloseBanner");for(let t=0;t<e.length;t++)e[t].addEventListener("click", 354this.ensBannerShowModal.bind(this)),e[t].addEventListener("keydown",this.handleKeyOpen.bind(this))},this.escapeBanner=e=>{this.gatewayData.featureToggles.disableEscapeKeyboardCommands||27!==e.keyCode||this.closeEnsBanner(true)},this.handleKeyOpen=e=>{switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.ensBannerShowModal()}return!0},this.handleKeyClose=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeEnsBanner(true)}return!0}, 355this.init=function(){this.update(this.environment)},this.testObject={bannerViewed:this.bannerViewed,ensBannerShowModal:this.ensBannerShowModal,bannerLoaded:this.bannerLoaded},this.acceptAllClickHandler=()=>i(this,void 0,void 0,function*(){this.closeEnsBanner(),yield this.allowAll(this.gatewayData)}),this.rejectAllClickHandler=()=>i(this,void 0,void 0,function*(){this.closeEnsBanner(),yield this.denyAll(this.gatewayData)}),this.acceptAllKeyDownHandler=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(), 356e.preventDefault(),this.closeEnsBanner(),this.allowAll(this.gatewayData)}return!0},this.rejectAllKeyDownHandler=function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeEnsBanner(),this.denyAll(this.gatewayData)}return!0},this.updateBanner=function(e){document.getElementById("ensBannerDescription").innerHTML=this.bannerCopy,this.generateButtonsFromConfig(this.buttonConfig,e)},this.updateButtonHandlers=function(){const e=document.querySelector("#ensNotifyBanner"); 357for(const t in this.buttonConfig){const o=e.querySelector(`#${t}`);null!=o&&(o.setAttribute("aria-label",o.innerHTML),o.removeEventListener("click",this.buttonConfig[t].clickHandler.bind(this)),o.removeEventListener("keydown",this.buttonConfig[t].keyDownHandler.bind(this)),o.addEventListener("click",this.buttonConfig[t].clickHandler.bind(this,"ensCloseBanner"==t||void 0)),o.addEventListener("keydown",this.buttonConfig[t].keyDownHandler.bind(this,"ensCloseBanner"==t||void 0)))}},this.environmentManager= 358c,this.templateManager=a,this.gatewayData=t,this.bannerCopy=null===(d=this.environment.translation)||void 0===d?void 0:d.notificationBannerContent,this.init()}generateButtonsFromConfig(e,t){const o=document.querySelector(".ensNotifyBanner .ensButtons");o.innerHTML="";for(const i in e)if(e.hasOwnProperty(i)&&e[i].show){const n=document.createElement("button");n.id=i,null==o||o.appendChild(n),n.innerHTML=t[this.buttonTranslation[i]],n.setAttribute("aria-label",n.innerHTML),n.addEventListener("click", 359e[i].clickHandler.bind(this,"ensCloseBanner"==i||void 0)),n.addEventListener("keydown",e[i].keyDownHandler.bind(this,"ensCloseBanner"==i||void 0)),this.getIncludeBannerCustomization(this.environment)?(n.className="button raised","ensCloseBanner"===i?this.addCancelButtonCustomization(n):this.addChoiceButtonCustomization(n)):n.className="ensCloseBanner"===i?"button raised grey":"button raised blue"}}}class G{constructor(e,t,o,i,n){this.environment=e,this.gatewayData=t,this.whichModal=o,this.templateManager= 360i,this.requestConfirmationModal=document.createElement("section"),this.modalHtmlString="",this.injectMod
360alDelay=100,this.openModalDelay=this.injectModalDelay+50,this.requestModalConfig={doNotSellConfirmation:{cssPrefix:"ensDoNotSellConfirmationModal",prevEventModal:"doNotSellModal",ariaLabel:"Do Not Sell Confirmation",prevModalFeatureToggle:"enableDoNotSellModal"},requestDataConfirmation:{cssPrefix:"ensRequestDataConfirmationModal",prevEventModal:"requestDataModal",ariaLabel:"Request Data Confirmation", 361prevModalFeatureToggle:"enableRequestDataModal"},deleteDataConfirmation:{cssPrefix:"ensDeleteDataConfirmationModal",prevEventModal:"deleteDataModal",ariaLabel:"Delete Data Confirmation",prevModalFeatureToggle:"enableDeleteDataModal"}},this.openModal=()=>{u.utilities.domReady(()=>{setTimeout(()=>{this.requestConfirmationModal.style.display="block";const e=window.innerWidth/2,t=window.innerHeight/2,o=parseInt(window.getComputedStyle(this.requestConfirmationModal).width)/2,i=parseInt(window.getComputedStyle(this.requestConfirmationModal).height)/ 3622;this.requestConfirmationModal.style.left=e-o+"px",this.requestConfirmationModal.style.top=t-i+"px",this.onOpenModal()},this.openModalDelay)})},this.onOpenModal=()=>{document.body.addEventListener("keydown",this.escapeCloseModal);(()=>{this.previousFocusedElement=document.activeElement;const e=document.getElementById(this.modalCSSPrefix+"Close");e&&"function"==typeof e.focus?e.focus():this.requestConfirmationModal.focus()})()},this.escapeCloseModal=e=>{this.gatewayData.featureToggles.disableEscapeKeyboardCommands|| 36327!==e.keyCode||this.closeModal()},this.closeModal=()=>{this.requestConfirmationModal.style.display="none",this.onCloseModal()},this.onCloseModal=()=>{document.removeEventListener("keydown",this.escapeCloseModal),this.previousFocusedElement&&"function"==typeof this.previousFocusedElement.focus&&this.previousFocusedElement.focus()},this.styleString=this.templateManager.getTemplate(b.REQUEST_CONFIRMATION_MODAL_CSS),this.getModalHtmlString=()=>this.modalHtmlString,this.setModalHtmlString=e=>{this.modalHtmlString= 364this.templateManager.getTemplate(b.REQUEST_CONFIRMATION_MODAL_HTML).replace(/modalCSSPrefix/g,this.modalCSSPrefix).replace(/modalAriaLabel/g,this.modalAriaLabel).replace(/translation\[prevEventModal\]\.title/g,e[this.prevEventModal].title).replace(/translation\[prevEventModal\]\.confirmationDescription/g,e[this.prevEventModal].confirmationDescription).replace(/translation\[prevEventModal\]\.close/g,e[this.prevEventModal].close)},this.isConfirmationModalEnabled=e=>e&&e.hasOwnProperty(this.prevModalFeatureToggle)? 365e[this.prevModalFeatureToggle]:this.gatewayData.featureToggles[this.prevModalFeatureToggle],this.addEventListeners=()=>{const e=document.getElementById(this.modalCSSPrefix+"Close");e.addEventListener("click",this.closeModal),e.addEventListener("keydown",function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeModal()}return!0})},this.updateDOM=e=>{if(this.setModalHtmlString(e.translation),this.requestConfirmationModal.innerHTML=this.getModalHtmlString(), 366null==document.getElementById(this.modalCSSPrefix+"Wrapper")){const e=()=>{this.gatewayData.featureToggles.disableDefaultStyles||u.utilities.addStyleElement(this.styleString),document.body.insertBefore(this.requestConfirmationModal,document.body.lastChild),this.setConfirmationModalWrapperAccessibilitySettings(),this.addEventListeners()};u.utilities.domReady(e)}else this.addEventListeners()},this.update=e=>{this.isConfirmationModalEnabled(e)&&(this.environmentManager.enableAsyncEnvironments?this.environmentManager.getAsyncEnvironmentFromPromise(e, 367"Request Confirmation Modal",[e=>this.updateDOM(e)]):this.updateDOM(e))},this.setConfirmationModalWrapperAccessibilitySettings=()=>{const e=document.getElementById(this.modalCSSPrefix+"Wrapper");e.setAttribute("role","dialog"),e.setAttribute("aria-labelledby",this.modalCSSPrefix+"Title"),e.setAttribute("aria-describedby",this.modalCSSPrefix+"Description"),e.setAttribute("focusable","true"),e.setAttribute("aria-modal","true")},this.templateManager=i,this.prevEventModal=this.requestModalConfig[o].prevEventModal, 368this.modalCSSPrefix=this.requestModalConfig[o].cssPrefix,this.modalAriaLabel=this.requestModalConfig[o].ariaLabel,this.requestConfirmationModal.id=this.modalCSSPrefix+"Wrapper",this.requestConfirmationModal.tabIndex=0,this.requestConfirmationModal.style.display="none",this.environmentManager=n,this.prevModalFeatureToggle=this.requestModalConfig[o].prevModalFeatureToggle,this.update(e)}}class V{constructor(e,t,o,n,s,r,a,l,h,c){this.cookieManager=e,this.updateListV
368alues=t,this.consentReporter=o,this.environment= 369n,this.gatewayData=s,this.whichModal=r,this.ccpaEventAPI=a,this.templateManager=l,this.tagAccessManager=h,this.environmentManager=c,this.contactInfoModal=document.createElement("section"),this.modalHtmlString="",this.allowPerTagOptOut=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"allowPerTagOptOut"),this.autoDoNotSellAllCategories=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"autoDoNotSellAllCategories"), 370this.ESC_KEYCODE=27,this.modalConfig={doNotSellModal:{event:"doNotSellChanged",cssPrefix:"ensDoNotSellModal",ariaLabel:"Do Not Sell",featureToggle:"enableDoNotSellModal",cookieType:"DO_NOT_SELL_MODAL_VIEWED",loadedCookieType:"DO_NOT_SELL_MODAL_LOADED",requestConfirmationModalString:"doNotSellConfirmation",close:"Close"},requestDataModal:{event:"requestData",cssPrefix:"ensRequestDataModal",ariaLabel:"Request Data",featureToggle:"enableRequestDataModal",cookieType:"REQUEST_DATA_MODAL_VIEWED",loadedCookieType:"REQUEST_DATA_MODAL_LOADED", 371requestConfirmationModalString:"requestDataConfirmation",close:"Close"},deleteDataModal:{event:"deleteData",cssPrefix:"ensDeleteDataModal",ariaLabel:"Delete Data",featureToggle:"enableDeleteDataModal",cookieType:"DELETE_DATA_MODAL_VIEWED",loadedCookieType:"DELETE_DATA_MODAL_LOADED",requestConfirmationModalString:"deleteDataConfirmation",close:"Close"}},this.injectModalDelay=100,this.openModalDelay=this.injectModalDelay+50,this.modalLoaded=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes([this.loadedCookieType]); 372yield this.cookieManager.setCookie(this.loadedCookieType,"1");const t=this.cookieManager.getCookiesFromTypes([this.loadedCookieType]);this.consentReporter.sendReport(e,t,{isImpliedConsent:!1,isTrackingEvent:!0})}),this.modalViewed=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes([this.modalCookieType]);yield this.cookieManager.setCookie(this.modalCookieType,"1");const t=this.cookieManager.getCookiesFromTypes([this.modalCookieType]);this.consentReporter.sendReport(e, 373t,{isImpliedConsent:!1,isTrackingEvent:!0})}),this.openModal=()=>{var e;"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.beforeOpen)&&Bootstrapper.privacy[this.whichModal].beforeOpen(this.contactInfoModal),u.utilities.domReady(()=>{setTimeout(()=>{var e;this.contactInfoModal.style.display="block";const t=window.innerWidth/2,o=window.innerHeight/2,i=parseInt(window.getComputedStyle(this.contactInfoModal).width)/ 3742,n=parseInt(window.getComputedStyle(this.contactInfoModal).height)/2;this.contactInfoModal.style.left=t-i+"px",this.contactInfoModal.style.top=o-n+"px",this.onOpenModal(),this.modalLoaded(),"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.afterOpen)&&Bootstrapper.privacy[this.whichModal].afterOpen(this.contactInfoModal)},this.openModalDelay)})},this.onOpenModal=()=>{document.body.addEventListener("keydown", 375this.escapeCloseModal);document.getElementById(this.modalCSSPrefix+"FirstName").required=!0;document.getElementById(this.modalCSSPrefix+"LastName").required=!0;document.getElementById(this.modalCSSPrefix+"Email").required=!0;document.getElementById(this.modalCSSPrefix+"Address").required=!0;(()=>{this.previousFocusedElement=document.activeElement;const e=document.querySelector("."+this.modalConfig[this.whichModal].cssPrefix+" input");e&&"function"==typeof e.focus?e.focus():this.contactInfoModal.focus()})()}, 376this.escapeCloseModal=e=>{this.gatewayData.featureToggles.disableEscapeKeyboardCommands||e.keyCode!==this.ESC_KEYCODE||this.closeModal()},this.closeModalClick=e=>{var t,o;"function"==typeof(null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===t?void 0:t.beforeClose)&&Bootstrapper.privacy[this.whichModal].beforeClose(this.contactInfoModal),e.preventDefault(),this.modalViewed(),this.contactInfoModal.style.display="none",this.onCloseModal(),"function"== 377typeof(null===(o=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===o?void 0:o.afterClose)&&Bootstrapper.privacy[this.whichModal].afterClose(this.contactInfoModal)},this.closeModal=()=>{var e,t;"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.beforeClose)&&Bootstrapper.privacy[this.whichModal].beforeClose(this.contactInfoModal),this.modalViewed(),this.contactInfoModal.style.display= 378"none",this.onCloseModal(),"function"==typeof(null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===t?void 0:t.afterClose)&&Bootstrapper.privacy[this.whichModal].afterClose(this.contactInfoModal)},this.onCloseModal=()=>{var e;document.removeEventListener("keydown",this.escapeCloseModal);document.getElementById(this.modalCSSPrefix+"FirstName").required=!1;document.getElementById(this.modalCSSPrefix+"LastName").required=!1;document.getElementById(this.modalCSSPrefix+ 379"Email").required=!1;document.getElementById(this.modalCSSPrefix+"Address").required=!1,"function"==typeof(null===(e=this.previousFocusedElement)||void 0===e?void 0:e.focus)&&this.previousFocusedElement.focus()},this.getModalHtmlString=()=>this.modalHtmlString,this.setModalHtmlString=e=>{this.modalHtmlString=this.templateManager.getTemplate(b.CONTACT_INFO_HTML).replace(/modalCSSPrefix/g,this.modalCSSPrefix).replace(/modalAriaLabel/g,this.modalAriaLabel).replace(/translation\[whichModal\]\.title/g, 380e[this.whichModal].title).replace(/translation\[whichModal\]\.description/g,e[this.whichModal].description).replace(/translation\[whichModal\]\.cancel/g,e[this.whichModal].cancel).replace(/translation\[whichModal\]\.save/g,e[this.whichModal].save)},this.isModalEnabled=e=>e&&e.hasOwnProperty(this.modalFeatureToggle)?e[this.modalFeatureToggle]:this.gatewayData.featureToggles[this.modalFeatureToggle],this.addEventListeners=()=>{const e=document.getElementById(this.modalCSSPrefix+"Save"),t=document.getElementById(this.modalCSSPrefix+ 381"Cancel");e.addEventListener("keydown",e=>{switch(e.which){case 13:case 32:return this.openRequestConfirmationModal(e)}return!0}),e.addEventListener("click",this.openRequestConfirmationModal),t.addEventListener("click",this.closeModalClick),t.addEventListener("keydown",e=>{switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeModal()}return!0})},this.openRequestConfirmationModal=e=>{const t=document.querySelector("#"+this.modalCSSPrefix+"Wrapper form");if(t&&t.checkValidity()){e.preventDefault(); 382const t=document.getElementById(this.modalCSSPrefix+"FirstName"),o=document.getElementById(this.modalCSSPrefix+"LastName"),i=document.getElementById(this.modalCSSPrefix+"Email"),n=document.getElementById(this.modalCSSPrefix+"Address"),s=document.getElementById(this.modalCSSPrefix+"Comments"),r={dt:Date.now(),firstName:t.value,lastName:o.value,email:i.value,address:n.value,comments:s.value};"doNotSellModal"===this.whichModal&&this.autoDoNotSellAllCategories&&this.blockAllCategories(),this.ccpaEventAPI.sendCCPAEvent(this.modalEvent, 383r),this.closeModal(),this.requestConfirmationModal.openModal()}},this.blockAllCategories=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(this.gatewayData.cookieTypes);this.allowPerTagOptOut&&this.tagAccessManager.clearTags();for(let e=0;e<this.gatewayData.cookieTypes.length;e++)yield this.cookieManager.setCookie(this.gatewayData.cookieTypes[e],0);const t=this.cookieManager.getCookiesFromTypes(this.gatewayData.cookieTypes);this.consentReporter.sendReport(e,t);const o= 384this.cookieManager.getCategoryMapFromCookieTypes(this.gatewayData.cookieTypes);
384this.updateListValues(o,this.tagAccessManager.getAllowedTags(),this.tagAccessManager.getBlockedTags());const i=document.querySelectorAll(".card input[type\x3dcheckbox]");if(i.length>0)for(let e=0;e<i.length;e++)i[e].checked=!1}),this.updateDOM=e=>{var t,o;if("function"==typeof(null===(t=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===t?void 0:t.beforeLoad)&&Bootstrapper.privacy[this.whichModal].beforeLoad(this.contactInfoModal), 385this.setModalHtmlString(e.translation),this.contactInfoModal.innerHTML=this.getModalHtmlString(),this.allowPerTagOptOut=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"allowPerTagOptOut"),this.autoDoNotSellAllCategories=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"autoDoNotSellAllCategories"),null==document.getElementById(this.modalCSSPrefix+"Wrapper")){const e=()=>{setTimeout(()=>{var e;this.gatewayData.featureToggles.disableDefaultStyles|| 386u.utilities.addStyleElement(this.styleString),document.body.insertBefore(this.contactInfoModal,document.body.lastChild),this.setModalWrapperAccessibilitySettings(),this.addEventListeners(),"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.afterLoad)&&Bootstrapper.privacy[this.whichModal].afterLoad(this.contactInfoModal)},this.injectModalDelay)};u.utilities.domReady(e)}else this.addEventListeners(),"function"== 387typeof(null===(o=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===o?void 0:o.afterLoad)&&Bootstrapper.privacy[this.whichModal].afterLoad(this.contactInfoModal)},this.update=e=>{this.isModalEnabled(e)&&(this.environmentManager.enableAsyncEnvironments?this.environmentManager.getAsyncEnvironmentFromPromise(e,"Contact Info Modal",[e=>this.updateDOM(e)]):this.updateDOM(e))},this.setModalWrapperAccessibilitySettings=()=>{const e=document.getElementById(this.modalCSSPrefix+ 388"Wrapper");e.setAttribute("role","dialog"),e.setAttribute("aria-labelledby",this.modalCSSPrefix+"Title"),e.setAttribute("aria-describedby",this.modalCSSPrefix+"Description"),e.setAttribute("focusable","true"),e.setAttribute("aria-modal","true")},this.templateManager=l,this.modalEvent=this.modalConfig[this.whichModal].event,this.modalCSSPrefix=this.modalConfig[this.whichModal].cssPrefix,this.modalAriaLabel=this.modalConfig[this.whichModal].ariaLabel,this.modalFeatureToggle=this.modalConfig[this.whichModal].featureToggle, 389this.modalCookieType=this.modalConfig[this.whichModal].cookieType,this.loadedCookieType=this.modalConfig[this.whichModal].loadedCookieType,this.requestConfirmationModal=new G(this.environment,this.gatewayData,this.modalConfig[this.whichModal].requestConfirmationModalString,l,c),this.environmentManager=c,this.contactInfoModal.id=this.modalCSSPrefix+"Wrapper",this.contactInfoModal.style.display="none",this.contactInfoModal.tabIndex=0,this.contactInfoModal.classList.add("contactInfoModalWrapper"),this.styleString= 390this.templateManager.getTemplate(b.CONTACT_INFO_CSS).replace(/modalCSSPrefix/g,this.modalCSSPrefix),this.update(n)}}class W{constructor(e,t,o,i,n){this.environment=e,this.gatewayData=t,this.whichModal=o,this.templateManager=i,this.requestConfirmationModal=document.createElement("section"),this.modalHtmlString="",this.injectModalDelay=100,this.openModalDelay=this.injectModalDelay+50,this.requestModalConfig={doNotSellConfirmation:{cssPrefix:"ensDoNotSellConfirmationModal",prevEventModal:"doNotSellModal", 391ariaLabel:"Do Not Sell Confirmation",prevModalFeatureToggle:"enableDoNotSellModal",gatewayConfigHtmlUrlKey:"doNotSellConfirmationHtmlUrl",gatewayConfigHtmlCssKey:"doNotSellConfirmationCssUrl"},requestDataConfirmation:{cssPrefix:"ensRequestDataConfirmationModal",prevEventModal:"requestDataModal",ariaLabel:"Request Data Confirmation",prevModalFeatureToggle:"enableRequestDataModal",gatewayConfigHtmlUrlKey:"requestDataConfirmationHtmlUrl",gatewayConfigHtmlCssKey:"requestDataConfirmationCssUrl"},deleteDataConfirmation:{cssPrefix:"ensDeleteDataConfirmationModal", 392prevEventModal:"deleteDataModal",ariaLabel:"Delete Data Confirmation",prevModalFeatureToggle:"enableDeleteDataModal",gatewayConfigHtmlUrlKey:"deleteDataConfirmationHtmlUrl",gatewayConfigHtmlCssKey:"requestDataConfirmationCssUrl"}},this.openModal=()=>{this.beforeLoad(),u.utilities.domReady(()=>{setTimeout(()=>{this.requestConfirmationModal.style.display="block";const e=window.innerWidth/2,t=window.innerHeight/2,o=parseInt(window.getComputedStyle(this.requestConfirmationModal).width)/2,i=parseInt(window.getComputedStyle(this.requestConfirmationModal).height)/ 3932;this.requestConfirmationModal.style.left=e-o+"px",this.requestConfirmationModal.style.top=t-i+"px",this.onOpenModal(),this.afterLoad()},this.openModalDelay)})},this.onOpenModal=()=>{document.body.addEventListener("keydown",this.escapeCloseModal);(()=>{this.previousFocusedElement=document.activeElement;const e=document.getElementById(this.modalCSSPrefix+"Close");e&&"function"==typeof e.focus?e.focus():this.requestConfirmationModal.focus()})()},this.escapeCloseModal=e=>{this.gatewayData.featureToggles.disableEscapeKeyboardCommands|| 39427!==e.keyCode||this.closeModal()},this.closeModal=()=>{this.requestConfirmationModal.style.display="none",this.onCloseModal()},this.onCloseModal=()=>{document.removeEventListener("keydown",this.escapeCloseModal),this.previousFocusedElement&&"function"==typeof this.previousFocusedElement.focus&&this.previousFocusedElement.focus()},this.getModalHtmlString=()=>this.modalHtmlString,this.mutateModalHtmlString=e=>e.replace(/modalCSSPrefix/g,this.modalCSSPrefix),this.isConfirmationModalEnabled=e=>e&&e.hasOwnProperty(this.prevModalFeatureToggle)? 395e[this.prevModalFeatureToggle]:this.gatewayData.featureToggles[this.prevModalFeatureToggle],this.addEventListeners=()=>{const e=document.getElementById(this.modalCSSPrefix+"Close");e.addEventListener("click",this.closeModal),e.addEventListener("keydown",function(e){switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeModal()}return!0})},this.beforeClose=()=>{var e;"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])|| 396void 0===e?void 0:e.beforeClose)&&Bootstrapper.privacy[this.whichModal].beforeClose(this.requestConfirmationModal)},this.afterClose=()=>{var e;"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.afterClose)&&Bootstrapper.privacy[this.whichModal].afterClose(this.requestConfirmationModal)},this.afterLoad=()=>{var e;"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])|| 397void 0===e?void 0:e.beforeLoad)&&Bootstrapper.privacy[this.whichModal].beforeLoad(this.requestConfirmationModal)},this.beforeLoad=()=>{var e;"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.afterLoad)&&Bootstrapper.privacy[this.whichModal].afterLoad(this.requestConfirmationModal)},this.updateDOM=(e,t)=>{if(this.beforeLoad(),this.modalHtmlString=t,this.requestConfirmationModal.innerHTML=this.mutateModalHtmlString(t), 398null==document.getElementById(this.modalCSSPrefix+"Wrapper")){const e=()=>{setTimeout(()=>{var e;document.body.insertBefore(this.requestConfirmationModal,document.body.lastChild),this.addEventListeners(),"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.afterLoad)&&Bootstrapper.privacy[this.whichModal].afterLoad(this.requestConfirmationModal)}
398,this.injectModalDelay)};u.utilities.domReady(e)}else this.addEventListeners(), 399this.afterLoad()},this.update=e=>{this.isConfirmationModalEnabled(e)&&this.environmentManager.enableAsyncEnvironments?M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"enablePrivacyDsarAdvancedMode")?this.environmentManager.getAsyncEnvironmentHtml(e,[(e,t)=>this.updateDOM(e,t)],this.requestModalConfig[this.whichModal].gatewayConfigHtmlUrlKey,this.requestModalConfig[this.whichModal].gatewayConfigHtmlCssKey):this.environmentManager.getAsyncEnvironmentFromPromise(e, 400"Confirmation Modal",[e=>this.updateDOM(e)]):this.updateDOM(e)},this.templateManager=i,this.prevEventModal=this.requestModalConfig[o].prevEventModal,this.modalCSSPrefix=this.requestModalConfig[o].cssPrefix,this.modalAriaLabel=this.requestModalConfig[o].ariaLabel,this.requestConfirmationModal.id=this.modalCSSPrefix+"Wrapper",this.requestConfirmationModal.style.display="none",this.environmentManager=n,this.prevModalFeatureToggle=this.requestModalConfig[o].prevModalFeatureToggle,this.requestConfirmationModal.tabIndex= 4010,this.update(e)}}class j{constructor(e,t,o,n,s,r,a,l,h,c){this.cookieManager=e,this.updateListValues=t,this.consentReporter=o,this.environment=n,this.gatewayData=s,this.whichModal=r,this.ccpaEventAPI=a,this.templateManager=l,this.tagAccessManager=h,this.environmentManager=c,this.contactInfoModal=document.createElement("section"),this.modalHtmlString="",this.allowPerTagOptOut=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"allowPerTagOptOut"),this.autoDoNotSellAllCategories= 402M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"autoDoNotSellAllCategories"),this.ESC_KEYCODE=27,this.modalConfig={doNotSellModal:{event:"doNotSellChanged",cssPrefix:"ensDoNotSellModal",featureToggle:"enableDoNotSellModal",cookieType:"DO_NOT_SELL_MODAL_VIEWED",loadedCookieType:"DO_NOT_SELL_MODAL_LOADED",requestConfirmationModalString:"doNotSellConfirmation",close:"Close",gatewayConfigHtmlUrlKey:"doNotSellModalHtmlUrl",gatewayConfigHtmlCssKey:"doNotSellModalCssUrl"}, 403requestDataModal:{event:"requestData",cssPrefix:"ensRequestDataModal",featureToggle:"enableRequestDataModal",cookieType:"REQUEST_DATA_MODAL_VIEWED",loadedCookieType:"REQUEST_DATA_MODAL_LOADED",requestConfirmationModalString:"requestDataConfirmation",close:"Close",gatewayConfigHtmlUrlKey:"requestDataModalHtmlUrl",gatewayConfigHtmlCssKey:"requestDataModalCssUrl"},deleteDataModal:{event:"deleteData",cssPrefix:"ensDeleteDataModal",featureToggle:"enableDeleteDataModal",cookieType:"DELETE_DATA_MODAL_VIEWED", 404loadedCookieType:"DELETE_DATA_MODAL_LOADED",requestConfirmationModalString:"deleteDataConfirmation",close:"Close",gatewayConfigHtmlUrlKey:"deleteDataModalHtmlUrl",gatewayConfigHtmlCssKey:"deleteDataModalCssUrl"}},this.injectModalDelay=100,this.openModalDelay=this.injectModalDelay+50,this.modalLoaded=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes([this.loadedCookieType]);yield this.cookieManager.setCookie(this.loadedCookieType,"1");const t=this.cookieManager.getCookiesFromTypes([this.loadedCookieType]); 405this.consentReporter.sendReport(e,t,{isImpliedConsent:!1,isTrackingEvent:!0})}),this.modalViewed=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes([this.modalCookieType]);yield this.cookieManager.setCookie(this.modalCookieType,"1");const t=this.cookieManager.getCookiesFromTypes([this.modalCookieType]);this.consentReporter.sendReport(e,t,{isImpliedConsent:!1,isTrackingEvent:!0})}),this.openModal=()=>{this.beforeLoad(),u.utilities.domReady(()=>{setTimeout(()=>{this.contactInfoModal.style.display= 406"block";const e=window.innerWidth/2,t=window.innerHeight/2,o=parseInt(window.getComputedStyle(this.contactInfoModal).width)/2,i=parseInt(window.getComputedStyle(this.contactInfoModal).height)/2;this.contactInfoModal.style.left=e-o+"px",this.contactInfoModal.style.top=t-i+"px",this.onOpenModal(),this.modalLoaded(),this.afterLoad()},this.openModalDelay)})},this.onOpenModal=()=>{document.body.addEventListener("keydown",this.escapeCloseModal),["FirstName","LastName","Email","Address"].forEach(e
406=>{document.getElementById(this.modalCSSPrefix+ 407e).required=!0});(()=>{this.previousFocusedElement=document.activeElement;const e=document.querySelector("."+this.modalConfig[this.whichModal].cssPrefix+" input");e&&"function"==typeof e.focus?e.focus():this.contactInfoModal.focus()})()},this.escapeCloseModal=e=>{this.gatewayData.featureToggles.disableEscapeKeyboardCommands||e.keyCode!==this.ESC_KEYCODE||this.closeModal()},this.closeModalClick=e=>{this.beforeClose(),e.preventDefault(),this.modalViewed(),this.contactInfoModal.style.display="none", 408this.onCloseModal(),this.afterClose()},this.closeModal=()=>{this.beforeClose(),this.modalViewed(),this.contactInfoModal.style.display="none",this.onCloseModal(),this.afterClose()},this.onCloseModal=()=>{var e;document.removeEventListener("keydown",this.escapeCloseModal),["FirstName","LastName","Email","Address"].forEach(e=>{document.getElementById(this.modalCSSPrefix+e).required=!0}),"function"==typeof(null===(e=this.previousFocusedElement)||void 0===e?void 0:e.focus)&&this.previousFocusedElement.focus()}, 409this.mutateModalHtmlString=e=>e.replace(/modalCSSPrefix/g,this.modalCSSPrefix),this.isModalEnabled=e=>e&&e.hasOwnProperty(this.modalFeatureToggle)?e[this.modalFeatureToggle]:this.gatewayData.featureToggles[this.modalFeatureToggle],this.addEventListeners=()=>{const e=document.getElementById(this.modalCSSPrefix+"Save"),t=document.getElementById(this.modalCSSPrefix+"Cancel");e.addEventListener("keydown",e=>{switch(e.which){case 13:case 32:return this.openRequestConfirmationModal(e)}return!0}),e.addEventListener("click", 410this.openRequestConfirmationModal),t.addEventListener("click",this.closeModalClick),t.addEventListener("keydown",e=>{switch(e.which){case 13:case 32:return e.stopPropagation(),e.preventDefault(),this.closeModal()}return!0})},this.openRequestConfirmationModal=e=>{const t=document.querySelector("#"+this.modalCSSPrefix+"Wrapper form");if(t&&t.checkValidity()){e.preventDefault();const t=document.getElementById(this.modalCSSPrefix+"FirstName"),o=document.getElementById(this.modalCSSPrefix+"LastName"), 411i=document.getElementById(this.modalCSSPrefix+"Email"),n=document.getElementById(this.modalCSSPrefix+"Address"),s=document.getElementById(this.modalCSSPrefix+"Comments"),r={dt:Date.now(),firstName:t.value,lastName:o.value,email:i.value,address:n.value,comments:s.value};"doNotSellModal"===this.whichModal&&this.autoDoNotSellAllCategories&&this.blockAllCategories(),this.ccpaEventAPI.sendCCPAEvent(this.modalEvent,r),this.closeModal(),this.requestConfirmationModal.openModal()}},this.blockAllCategories= 412()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(this.gatewayData.cookieTypes);this.allowPerTagOptOut&&this.tagAccessManager.clearTags();for(let e=0;e<this.gatewayData.cookieTypes.length;e++)yield this.cookieManager.setCookie(this.gatewayData.cookieTypes[e],0);const t=this.cookieManager.getCookiesFromTypes(this.gatewayData.cookieTypes);this.consentReporter.sendReport(e,t);const o=this.cookieManager.getCategoryMapFromCookieTypes(this.gatewayData.cookieTypes);this.updateListValues(o, 413this.tagAccessManager.getAllowedTags(),this.tagAccessManager.getBlockedTags());const i=document.querySelectorAll(".card input[type\x3dcheckbox]");if(i.length>0)for(let e=0;e<i.length;e++)i[e].checked=!1}),this.beforeClose=()=>{var e;"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.beforeClose)&&Bootstrapper.privacy[this.whichModal].beforeClose(this.contactInfoModal)},this.afterClose=()=>{var e;"function"==typeof(null=== 414(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.afterClose)&&Bootstrapper.privacy[this.whichModal].afterClose(this.contactInfoModal)},this.afterLoad=()=>{var e;"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.beforeLoad)&&Bootstrapper.privacy[this.whichModal].beforeLoad(this.contactInfoModal)},this.beforeLoad=()=>{var e;"function"==typeof(null=== 415(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.afterLoad)&&Bootstrapper.privacy[this.whichModal].afterLoad(this.contactInfoModal)},this.updateDOM=(e,t)=>{if(this.beforeLoad(),this.modalHtmlString=t,this.contactInfoModal.innerHTML=this.mutateModalHtmlString(t),this.allowPerTagOptOut=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"allowPerTagOptOut"),this.autoDoNotSellAllCategories=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 416e,"autoDoNotSellAllCategories"),null==document.getElementById(this.modalCSSPrefix+"Wrapper")){const e=()=>{setTimeout(()=>{var e;document.body.insertBefore(this.contactInfoModal,document.body.lastChild),this.addEventListeners(),"function"==typeof(null===(e=null===Bootstrapper||void 0===Bootstrapper?void 0:Bootstrapper.privacy[this.whichModal])||void 0===e?void 0:e.afterLoad)&&Bootstrapper.privacy[this.whichModal].afterLoad(this.contactInfoModal)}
416,this.injectModalDelay)};u.utilities.domReady(e)}else this.addEventListeners(), 417this.afterLoad()},this.update=e=>{this.isModalEnabled(e)&&this.environmentManager.enableAsyncEnvironments?M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"enablePrivacyDsarAdvancedMode")?this.environmentManager.getAsyncEnvironmentHtml(e,[(e,t)=>this.updateDOM(e,t)],this.modalConfig[this.whichModal].gatewayConfigHtmlUrlKey,this.modalConfig[this.whichModal].gatewayConfigHtmlCssKey):this.environmentManager.getAsyncEnvironmentFromPromise(e,"Contact Info Modal",[e=> 418this.updateDOM(e)]):this.updateDOM(e)},this.modalEvent=this.modalConfig[this.whichModal].event,this.modalCSSPrefix=this.modalConfig[this.whichModal].cssPrefix,this.modalFeatureToggle=this.modalConfig[this.whichModal].featureToggle,this.modalCookieType=this.modalConfig[this.whichModal].cookieType,this.loadedCookieType=this.modalConfig[this.whichModal].loadedCookieType,this.requestConfirmationModal=new W(this.environment,this.gatewayData,this.modalConfig[this.whichModal].requestConfirmationModalString, 419l,c),this.environmentManager=c,this.contactInfoModal.id=this.modalCSSPrefix+"Wrapper",this.contactInfoModal.style.display="none",this.contactInfoModal.tabIndex=0,this.contactInfoModal.classList.add("contactInfoModalWrapper"),this.update(n)}}class z{constructor(e,t,o,i,n,s){this.consentReporter=e,this.updateListValues=t,this.cookieManager=o,this.tagAccessManager=i,this.gatewayData=n,this.environment=s}
419sendCCPAEvent(e,t){if("string"!=typeof e||!/doNotSellChanged|requestData|deleteData/i.test(e)||null== 420t)return;const o=this.buildCCPAEvent(e,t);"doNotSellChanged"===e&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"autoDoNotSellAllCategories")&&this.blockAllCategories(),this.consentReporter.addCustomEvent(o),this.consentReporter.sendReport()}buildCCPAEvent(e,t){return{event:e,dt:Date.now(),firstName:t.firstName,lastName:t.lastName,email:t.email,address:t.address,comments:t.comments}}blockAllCategories(){return i(this,void 0,void 0,function*(){const e= 421this.cookieManager.getCookiesFromTypes(this.gatewayData.cookieTypes);M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"allowPerTagOptOut")&&this.tagAccessManager.clearTags();for(let e=0;e<this.gatewayData.cookieTypes.length;e++)yield this.cookieManager.setCookie(this.gatewayData.cookieTypes[e],"0");this.consentReporter.sendReport(e,this.cookieManager.getCookiesFromTypes(this.gatewayData.cookieTypes)),this.updateListValues(this.cookieManager.getCategoryMapFromCookieTypes(this.gatewayData.cookieTypes), 422this.tagAccessManager.getAllowedTags(),this.tagAccessManager.getBlockedTags())})}}class K{constructor(e,t,o,i){this.environmentManager=e,this.environment=t,this.gatewayData=o,this.templateManager=i,this.sectionElement=document.createElement("section"),this.isEnabledConsentWidget=function(e){return e&&e.hasOwnProperty("consentWidget")?e.consentWidget:this.gatewayData.featureToggles.consentWidget},this.updateDOM=function(e,t){this.isEnabledConsentWidget(e)&&(t?this.sectionElement.innerHTML=t:(this.sectionElement.innerHTML= 423this.getWidgetString(),this.sectionElement.querySelector("#consentWidgetText").innerHTML=e.translation.consentWidgetCopy),null==document.getElementById("ensConsentWidget")&&u.utilities.domReady(this.injectWidget))},this.update=e=>{this.environmentManager.enableAsyncEnvironments?M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"enablePrivacyConsentModalAdvancedMode")?this.environmentManager.getAsyncEnvironmentHtml(e,[(e,t)=>this.updateDOM(e,t)],"consentWidgetHtmlUrl", 424"consentWidgetCssUrl"):this.environmentManager.getAsyncEnvironmentFromPromise(e,"ConsentWidget",[e=>this.updateDOM(e,null)]):this.updateDOM(e,null)},this.getWidgetString=function(){return this.widgetString},this.injectWidget=()=>{this.gatewayData.featureToggles.disableDefaultStyles||u.utilities.addStyleElement(this.styleString),document.body.insertBefore(this.sectionElement,document.body.lastChild),this.setHTMLBindings()},this.setHTMLBindings=()=>{document.getElementById("ensConsentWidget").addEventListener("click",
425function(){Bootstrapper.gateway.openModal&&Bootstrapper.gateway.openModal()}),document.getElementById("ensConsentWidget").addEventListener("keydown",function(e){switch(e.which){case 13:case 32:e.stopPropagation(),e.preventDefault(),Bootstrapper.gateway.openModal&&Bootstrapper.gateway.openModal()}return!0})},this.templateManager=i,this.sectionElement.id="ensConsentWidget",this.sectionElement.className="consentWidget",this.sectionElement.setAttribute("aria-label","Cookie Consent Widget"),this.widgetString= 426this.templateManager.getTemplate(b.CONSENT_WIDGET_HTML),this.styleString=this.templateManager.getTemplate(b.CONSENT_WIDGET_CSS),this.update(t)}}class ${constructor(e,t,o,i,n,s,r,a,l){this.version=e,this.gateway=t,this.clientId=o,this.publishPath=i,this.instanceId=n,this.packet=s,this.mode=r,this.cookies=a,this.environment=l}}class Y extends ${constructor(e,t,o,i,n,s,r,a,l,h,c){super(e,t,o,i,n,s,r,a,l),this.version=e,this.gateway=t,this.clientId=o,this.publishPath=i,this.instanceId=n,this.packet=s, 427this.mode=r,this.cookies=a,this.environment=l,this.documentReferrer=h,this.pageUrl=c}}class J extends C{constructor(e,t,o,i,n,s,r,a,l,h,c,d,u,g=!1){super(),this.imageReference=e,this.clientId=t,this.publishPath=o,this.enforceMode=i,this.gatewayVersion=n,this.reportingEnabled=s,this.performanceEnabled=r,this.nexusDomain=l,this.reportingFilter=h,this.sendBeaconReportingDisabled=d,this.sendBeacon=u,this.sendPageUrlInBeacons=g,this.unreportedResources=[],this.reportedResources=[],this.privacyCookies= 428{},this.stats=[],this.statIndex=0,this.REPORT_STRING_BUFFER=50,this.defaultFilteredProtocols=["data"],this.timerId=null,this.reportingFilter.filteredProtocols.push(...this.defaultFilteredProtocols),this.protocolRegex=M.utilities.arrayToRegex(this.reportingFilter.filteredProtocols.map(e=>J.formatProtocol(e))),this.filterRegex=new RegExp(this.reportingFilter.alwaysAllowedRegex.toString().replace("/","").replace("/",""),"i"),this.beacons=[],this.options.reportInterval=2500,this.options.requestCount= 4293,a&&this.setOptions(a),this.setEnvironment(c);const p=this.options.maxUrlSize-this.REPORT_STRING_BUFFER;this.maximumUncompressedSize=.13+Math.exp(-3.15E-5*p)*p*(4/3),this.urlPath=`//${this.nexusDomain}/privacy/v1/b/b.rnc`,this.startTimer()}sendBillingBeacon(){const e=new M.EnsRequest("");e.type="billing",e.source="",e.status="";const t=this.compressReportString(this.generateRawReportString([e]));return this.beacon(t.encodedBody,t.rawLength)}generateRawReport(e){const t=0===this.beaconCounter?new Y(this.version, 430this.gatewayVersion,this.clientId,this.publishPath,this.instanceId,this.beaconCounter,this.enforceMode?"enforce":"observe",this.privacyCookies,this.environmentName,document.referrer,this.sendPageUrlInBeacons?u.utilities.getPageUrl():void 0):new $(this.version,this.gatewayVersion,this.clientId,this.publishPath,this.instanceId,this.beaconCounter,this.enforceMode?"enforce":"observe",this.privacyCookies,this.environmentName);return t.requests=e,t}generateRawReportString(e){return JSON.stringify(this.generateRawReport(e))}sendReport(){return this.reportingEnabled? 431(this.processUnreportedResources(),this.sendBeacons()):[]}sendBeacons(){const e=[];if(this.options.requestCount>0)for(let t=0;t<this.options.requestCount;t++){if(this.beacons.length>0){const {data:t,length:o}=this.beacons.shift();e.push(this.asyncBeacon(t,o)),this.stats[this.statIndex]&&(this.stats[this.statIndex].written=!0),this.statIndex++}}else this.beacons.length>0&&(this.beacons.forEach(t=>{const {data:o,length:i}=t;e.push(this.asyncBeacon(o,i)),this.stats[this.statIndex]&&(this.stats[this.statIndex].written= 432!0),this.statIndex++}),this.beacons=[]);return e}processUnreportedResources(){const e=this.unreportedResources.map(e=>JSON.stringify(e).length);let t=0;const o=[];for(let i=0;i<=e.length;i++)if(i===e.length&&o.length>0||t+e[i]>this.maximumUncompressedSize){const e=o.splice(0,o.length),{encodedBody:i,rawLength:n}=this.compressReportString(this.generateRawReportString(e));if(i.length>this.options.maxUrlSize-this.REPORT_STRING_BUFFER){this.ensLogger.consoleLog(`Reporting beacon compressed length
432was bigger than the maximum,\n splitting data into smaller chunks\n Actual uncompressed Length: ${t}\n Actual compressed Length: ${i.length}`), 433this.ensLogger.consoleLog(`Uncompressed: ${e}`),this.ensLogger.consoleLog(`Compressed: ${i}`);const o=e.splice(0,Math.ceil(e.length/2));this.unreportedResources=e.reverse().concat(this.unreportedResources);const n=[];for(n.push(o);n.length>0;){const e=n.pop(),{encodedBody:t,rawLength:o}=this.compressReportString(this.generateRawReportString(e));if(t.length+this.REPORT_STRING_BUFFER<this.options.maxUrlSize){const i={rawLength:o,compressedLength:t.length,written:!1};this.stats.push(i),this.beacons.push({data:t, 434length:o}),this.reportedResources=this.reportedResources.concat(e)}else{const t=e.splice(0,Math.ceil(e.length/2));this.unreportedResources=e.concat(this.unreportedResources),n.push(t)}}}else{const t={rawLength:n,compressedLength:i.length,written:!1};this.stats.push(t),this.reportedResources=this.reportedResources.concat(e),this.beacons.push({data:i,length:n})}t=0}else o.push(this.unreportedResources.shift()),t+=e[i]}startTimer(){if(this.reportingEnabled){null!=this.timerId&&clearTimeout(this.timerId); 435const e=this.sendReport();return this.timerId=setTimeout(()=>this.startTimer(),this.options.reportInterval),e}}stopTimer(){null!=this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}addResource(e){if(this.reportingEnabled&&this.shouldReportEnsRequest(e.destination,e.status)){const t=e;t.source&&(t.source=e.source.substr(0,30)),t.type&&(t.type=e.type.substr(0,30)),t.status&&(t.status=e.status.substr(0,30)),this.unreportedResources.push(t)}}shouldReportEnsRequest(e,t){const o=(new Set(["blocked", 436"masked","rewrite","redact","observe","masked,redact","redact,observe","masked,observe","masked,redact,observe"])).has(t);if(this.protocolRegex.test(e))return!1;let i;try{i=(new URL(e,window.location.origin)).hostname}catch(e){return!1}return o||!this.filterRegex.test(i)}static formatProtocol(e){return e.endsWith(":")?"^"+e:"^"+e+":"}setCookies(e){this.privacyCookies=e}setOptions(e){for(const t in e)this.options.hasOwnProperty(t)&&(this.options[t]=e[t])}}const Q=function(){const e={img:{elementObserver:!0, 437processAttribute:["src","srcset"],previousProcessAttribute:["__src","__srcset"],enswatcher:!0},image:{elementObserver:!0,processAttribute:["src","srcset"],previousProcessAttribute:["__src","__srcset"],enswatcher:!0},source:{elementObserver:!0,processAttribute:["src","srcset"],previousProcessAttribute:["__src","__srcset"],enswatcher:!0},script:{elementObserver:!0,processAttribute:["src"],previousProcessAttribute:["__src"],enswatcher:!0},iframe:{elementObserver:!0,processAttribute:["src"],previousProcessAttribute:["__src"], 438enswatcher:!0},a:{elementObserver:!0,processAttribute:["href"],previousProcessAttribute:["__href"],featureFlag:"monitorAnchorTags"},form:{processAttribute:["action"],previousProcessAttribute:["__action"],featureFlag:"monitorFormAction"},link:{processAttribute:["href"],previousProcessAttribute:["__href"],featureFlag:"enableCSSMonitoring",enswatcher:!0},object:{processAttribute:["data"],previousProcessAttribute:["__data"],featureFlag:"enableObjectMonitoring",elementObserver:!0,enswatcher:!0},audio:{processAttribute:["src"], 439previousProcessAttribute:["__src"],featureFlag:"enableAudioMonitoring",elementObserver:!0,enswatcher:!0},embed:{processAttribute:["src"],previousProcessAttribute:["__src"],featureFlag:"enableEmbedMonitoring",elementObserver:!0,enswatcher:!0},track:{processAttribute:["src"],previousProcessAttribute:["__src"],featureFlag:"enableTrackMonitoring",elementObserver:!0,enswatcher:!0},video:{processAttribute:["src","poster"],previousProcessAttribute:["__src","__poster"],featureFlag:"enableVideoMonitoring", 440elementObserver:!0,enswatcher:!0},button:{processAttribute:["formaction"],previousProcessAttribute:["__formaction"],featureFlag:"enableButtonMonitoring",elementObserver:!0,enswatcher:!0},input:{processAttribute:["formaction"],previousProcessAttribute:["__formaction"],featureFlag:"enableInputMonitoring",elementObserver:!0,enswatcher:!0},area:{processAttribute:["href"],previousProcessAttribute:["__href"],featureFlag:"enableAreaMonitoring",elementObserver:!0,enswatcher:!0},elementObserverTags:[],processElementTags:[], 441enswatchTags:[]};return X(e,"elementObserver","elementObserverTags"),X(e,"processAttribute","processElementTags"),X(e,"enswatcher","enswatchTags"),e}();function X(e,t,o){for(const i in e)void 0!==e[i][t]&&!1!==e[i][t]&&e[o].push(i)}const Z=function(e,t,o){window.ensClientConfig.ensCreateElement=document.createElement;let i=!1;const n=function(){const e=document.querySelectorAll("iframe");for(let t=0;t<e.length;t++){const o=e[t];u.utilities.validateRemoveChild(o)&&o.parentNode.removeChild(o)}i=!0}, 442s=new MutationObserver(function(s){for(let r=0;r<s.length;r++){M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,"removeAllIFrames")&&!i&&n();const a=s[r];if("attributes"===a.type&&o.processElement("mutationObserverA",a.target),"childList"===a.type){const i=a.addedNodes.length;for(let e=0;e<i;e++){let t;t="[object Array]"===Object.prototype.toString.call(a.addedNodes)?a.addedNodes[e]:a.addedNodes.item(e),o.processElement("mutationObserverCL",t)}const n=a.removedNodes.length;for(let i=0;i<n;i++){let n; 443n="[object Array]"===Object.prototype.toString.call(a.removedNodes
443)?a.removedNodes[i]:a.removedNodes.item(i);const s=n.nodeName.toLowerCase();if(Q.enswatchTags.indexOf(s.toLowerCase())>-1&&(void 0===Q[s].featureFlag||M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,Q[s].featureFlag))&&Object.isExtensible(n)){n.enswatch||Object.defineProperty(n,"enswatch",u.utilities.watcher);try{["src","srcset"].forEach(e=>{n.enswatch(e,function(t,i,n){if(t===e){let e=n;return o.processURL(n,this.tagName.toLowerCase(), 444"Removed_NodeModified",this,u.utilities.getReferrer(),function(t){e=t}),e}})})}catch(e){}}}}}}),r=function(){const i=document,n={attributes:!0,childList:!0,subtree:!0,characterData:!1};n.attributeFilter=l(e,Q),e.isObservingStyle&&n.attributeFilter.push("style"),s.observe(i,n);const r=HTMLImageElement.prototype.setAttribute;HTMLImageElement.prototype.setAttribute=function(e,t,i){let n=t;const s=void 0===this.tagName?null:this.tagName.toLowerCase();return!i&&null!=s&&Q[s].processAttribute.includes(e)&& 445(n=o.processURL(t,s,"HTMLImage_SETATTRIBUTE",this,u.utilities.getReferrer())),r.call(this,e,n)};const a=HTMLScriptElement.prototype.setAttribute;HTMLScriptElement.prototype.setAttribute=function(e,t,i){let n=t;const s=void 0===this.tagName?null:this.tagName.toLowerCase();return!i&&null!=s&&Q[s].processAttribute.includes(e)&&(n=o.processURL(t,s,"HTMLScript_SETATTRIBUTE",this,u.utilities.getReferrer())),a.call(this,e,n)};const h=HTMLIFrameElement.prototype.setAttribute;HTMLIFrameElement.prototype.setAttribute= 446function(i,n,s){let r=n;if(!s&&"src"===i||"ng-src"===i){let i=this;M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,"removeAllIFrames")?u.utilities.validateRemoveChild(i)?i.parentNode.removeChild(i):i=null:o.processURL(n,this.tagName.toLowerCase(),"HTMLIFRAME_SETATTRIBUTE",this,u.utilities.getReferrer(),n=>(r=n,(u.utilities.isSafari()||M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,"removeIFrameOnBlock"))&&o.isVoidURL(n)&&(u.utilities.validateRemoveChild(i)?i.parentNode.removeChild(i): 447i=null),r))}return h.call(this,i,r)};const c=HTMLAnchorElement.prototype.setAttribute;HTMLAnchorElement.prototype.setAttribute=function(i,n,s){let r=n;const a=void 0===this.tagName?null:this.tagName.toLowerCase();return!s&&"href"===i&&null!=a&&M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,Q[a].featureFlag)&&(r=o.processURL(n,a,"HTMLANCHOR_SETATTRIBUTE",this,u.utilities.getReferrer())),c.call(this,i,r)};const d=Element.prototype,g=Object.getOwnPropertyDescriptor(d,"innerHTML");if(g.configurable){const e= 448g.set;Object.defineProperty(d,"innerHTML",{set:function(t){return e.call(this,o.processHTML("innerHTML",t))}})}},a=HTMLLinkElement.prototype.setAttribute;function l(e,o){const i=[];for(const n in o)Array.isArray(o[n].processAttribute)&&o[n].processAttribute.forEach(s=>{-1!==i.indexOf(s)||void 0!==o[n].featureFlag&&!M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,o[n].featureFlag)||i.push(s)});return i}HTMLLinkElement.prototype.setAttribute=function(i,n,s){let r=n;const l=void 0===this.tagName? 449null:this.tagName.toLowerCase();return!s&&"href"===i&&null!=l&&M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,Q[l].featureFlag)&&(r=o.processURL(n,l,"HTMLLINK_SETATTRIBUTE",this,u.utilities.getReferrer())),a.call(this,i,r)},document.createElement=function(i){const n=Function.prototype.apply.call(window.ensClientConfig.ensCreateElement,document,arguments),r=i.toLowerCase();if(Q.enswatchTags.indexOf(r)>-1&&(void 0===Q[r].featureFlag||M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,Q[r].featureFlag))&& 450Object.isExtensible(n)){n.enswatch||Object.defineProperty(n,"enswatch",u.utilities.watcher);try{Array.isArray(Q[r].processAttribute)&&Q[r].processAttribute.forEach(e=>{n.enswatch(e,function(e,t,i){let n=i;try{i instanceof URL&&(n=i.href)}catch(e){}return o.processURL(i,this.tagName.toLowerCase(),r+"_DOMAttrModified",this,u.utilities.getReferrer(),function(e){n=e}),n})})}catch(e){}}if(e.isObservingStyle||Q.processElementTags.indexOf(i)>-1){const t={attributes:!0,childList:!1,characterData:!1};t.attributeFilter= 451l(e,Q),s.observe(n,t)}return n},window.Image=function(e,t){const o=document.createElement("img");return void 0!==e&&o.setAttribute("width",e),void 0!==t&&o.setAttribute("height",t),o};r();return{updateEnvironment:function(e){(t=e)&&r()}}};function ee(e){var t=window.XMLHttpRequest.prototype.open,o=window.XMLHttpRequest.prototype.send,i=u.utilities.getReferrer();function n(t,o){return e.processURL(t,"xhr",u.utilities.apiToSource("xhr"),{},i)}return window.XMLHttpRequest.prototype.send=function(t){let s= 452this.url;return void 0!==this.url&&""!==this.url?e.processURLAndBody(s,t,"xhr",u.utilities.apiToSource("xhr"),{},i,function(e,o){s=e,t=o}):s=n(s,this),o.apply(this,[t])},window.XMLHttpRequest.prototype.open=function(e,o,i,s,r){if((o=n(o,this))&&"//javascript:;"!==o)return this.url=o,arguments[1]=o,t.apply(this,arguments);this.setRequestHeader=function(){},this.send=function(){}},{resetHandlers:function(){window.XMLHttpRequest.prototype.send=o,window.XMLHttpRequest.prototype.open=t}}}function te(e, 453t){const o=window.fetch,i=window.Request,n=void 0!==window.fetch&&void 0!==window.Request,s=u.utilities.getReferrer();function r(e){const o=t?new Error(e+" fetch blocked by privacy-gateway"):e+" fetch blocked by privacy-gateway";return Promise.reject(o)}function a(t){return""!==t&&e.isVoidURL(t)}return n&&(window.fetch=function(t){if("string"==typeof t||t instanceof String){const o=t;if(a(t=e.processURL(t,"fetch",u.utilities.apiToSource("fetch"),{},s)))return r(o)}if(t instanceof window.Request&& 454!0===t.ensBlocked)return r("");return o.apply(this,arguments)},window.Request=function(t,o){if(t instanceof URL&&(t=t.toString()),a(t))this.ensBlocked=!0;else{if(o&&o.body?e.processURLAndBody(t,o.body,"request",u.utilities.apiToSource("request"),{},s,function(e,i){t=e,o.body=i}):e.processURL(t,"request",u.utilities.apiToSource("request"),{},s,function(e){t=e}),!a(t))return new i(t,o);this.ensBlocked=!0}},window.Request.prototype=i.prototype),{resetHandlers:function(){window.fetch=o,window.Request= 455i,void 0!==i&&(window.Request.prototype=i.prototype)}}}function oe(e,t){const o=window.navigator.sendBeacon,i=u.utilities.getReferrer();return window.navigator.sendBeacon=function(n,s){if(void 0!==o){if("string"==typeof n||n instanceof String){if(-1!==n.indexOf(e))return o.apply(this,[n,s]);if(void 0!==s){if(t.processURLAndBody(n,s,"sendBeacon",u.utilities.apiToSource("sendBeacon"),{},i,function(e,t){n=e,s=t}),t.isVoidURL(n))return}else if(n=t.processURL(n,"sendBeacon",u.utilities.apiToSource("sendBeacon"), 456{},i),t.isVoidURL(n))return}return o.apply(this,[n,s])}},{resetHandlers:function(){return window.navigator.sendBeacon=o},sendBeacon:function(e,t){return window.navigator.sendBeacon(e,t)}}}class ie{constructor(e){this.clientName=e,this.ALLOWED_KEY=e+"_ENSIGHTEN_ALLOWED_URLS",this.BLOCKED_KEY=e+"_ENSIGHTEN_BLOCKED_URLS",this.INTERACTION_KEY=e+"_ENSIGHTEN_INTERACTED_URLS"}isLocalStorageSupported(){try{return"localStorage"in window&&null!=window.localStorage&&"object"==typeof localStorage&&"function"== 457typeof localStorage.getItem&&"function"==typeof localStorage.setItem}catch(e){return!1}}allowTag(e,t=!0){if(this.validateTag(e)&&this.isLocalStorageSupported()){const o=this.getAllowedTags();this.isTagIncluded(o,e)||(o.push(e),localStorage.setItem(this.ALLOWED_KEY,JSON.stringify(o)));let i=this.getBlockedTags();return i=i.filter(function(t){return JSON.stringify(t)!==JSON.stringify(e)}),localStorage.setItem(this.BLOCKED_KEY,JSON.stringify(i)),t&&this.consentReporter.addCustomEvent(this.buildTagOptInOptOutEvent(e, 4581)),e}return this.isLocalStorageSupported()?Error("invalid tag"):Error("Local storage is either disabled or not supported in your browser.")}blockTag(e,t=!0){if(this.validateTag(e)&&this.isLocalStorageSupported()){const o=this.getBlockedTags();this.isTagIncluded(o,e)||(o.push(e),localStorage.setItem(this.BLOCKED_KEY,JSON.stringify(o)));let i=this.getAllowedTags();return i=i.filter(function(t){return JSON.stringify(t)!==JSON.stringify(e)}),localStorage.setItem(this.ALLOWED_KEY,JSON.stringify(i)),t&& 459this.consentReporter.addCustomEvent(this.buildTagOptInOptOutEvent(e,0)),e}return Error("invalid tag")}clearTags(){this.isLocalStorageSupported()&&(localStorage.setItem(this.ALLOWED_KEY,""),localStorage.setItem(this.BLOCKED_KEY,""))}getAllowedTags(){return this.isLocalStorageSupported()&&localStorage.getItem(this.ALLOWED_KEY)?JSON.parse(localStorage.getItem(this.ALLOWED_KEY)):[]}getBlockedTags(){return this.isLocalStorageSupported()&&localStorage.getItem(this.BLOCKED_KEY)?JSON.parse(localStorage.getItem(this.BLOCKED_KEY)): 460[]}isTagInAllowedList(e){return this.validateTag(e)?this.isTagIncluded(this.getAllowedTags(),e):Error("invalid tag")}isTagInBlockedList(e){return this.validateTag(e)?this.isTagIncluded(this.getBlockedTags(),e):Error("invalid tag")}setConsentReporter(e){this.consentReporter=e}computeOptInOptOutEvents(e,t,o,i){const n=[],s=this.getInteractedTags();if(!(s instanceof Error)){for(let r=e.length;r--;r>=0){const a=this.hasTagBeenInteractedWith(e[r],o,s,Number(t[r]),Number(i));null==t[r]||!a&&t[r]===i||(n.push({event:this.buildTagOptInOptOutEvent(e[r], 461Number(t[r])),tag:e[r],tagStatus:Number(t[r]),tagStatusChanged:a}),void 0===s[o]&&(s[o]={}),s[o][e[r].displayName]=Number(t[r]))}localStorage.setItem(this.INTERACTION_KEY,JSON.stringify(s))}return n}getInteractedTags(){return this.isLocalStorageSupported()?localStorage.getItem(this.INTERACTION_KEY)?JSON.parse(localStorage.getItem(this.INTERACTION_KEY)):{}:Error("Local storage is either disabled or not supported in your browser.")}hasTagBeenInteractedWith(e,t,o,i,n){return void 0!==o[t]&&void 0!== 462o[t][e.displayName]?o[t][e.displayName]!==i:i!==n}buildTagOptInOptOutEvent(e,t){let o;return o=e.hasOwnProperty("displayName")&&null!==e.displayName&&e.displayName.length>0?e.displayName:e.tag.slice(0,128),{event:"cookieChanged",[o]:String(t),dt:Date.now(),isTag:1}}validateTag(e){return e&&e.tag}isTagIncluded(e,t){let o=!1;for(let i=e.length;i--;i>=0)if(e[i].displayName===t.displayName&&e[i].tag===t.tag){o=!0;break}return o}}class ne{constructor(e,t,o){this.featureToggles=e,this.environment=t,this.domProcessor= 463o,this.ensLogger=new y,this.filterSheet=null,this.cssLoadBlocker=null,this.sanitizeCount=0,this.seenUrl=[],this.disabledCssHash={},this.matchURLRegEx=/(url\s*\("?'?)(?=(.[^\(|^\|^"|^')]*))/i,this.observer=new MutationObserver(e=>{M.utilities.each(e,e=>{if(e.addedNodes.length>0&&"link"===e.addedNodes[0].localName||"link"===e.attributeName){let t=!1;if(e.addedNodes.length>0&&e.addedNodes[0].classList.length>0&&"__css_exfil_protection_filtered_styles"===e.addedNodes[0].classList&&(t=!0),!t){const t= 464e.addedNodes[0];null!=t&&t.addEventListener("load",()=>{this.scanCssSingle(document.styleSheets[document.styleSheets.length-1])})}}})}),this.observerConfig={attributes:!0,childList:!0,subtree:!0,characterData:!0,attributeFilter:["href"]},this.startObserving=()=>{this.observer.observe(document,this.observerConfig),window.addEventListener("DOMContentLoaded",this.domContentLoadedListener,!1),window.addEventListener("load",this.loadListener,!1)},this.stopObserving=()=>{this.observer.disconnect(),window.removeEventListener("DOMContentLoaded", 465this.domContentLoadedListener),window.removeEventListener("load",this.loadListener)},this.domContentLoadedListener=()=>{for(let e=0;e<document.styleSheets.length;e++)this.disabledCssHash[window.btoa(document.styleSheets[e].href)]=document.styleSheets[e].disabled;const e=document.createElement("style");e.innerText=this.buildContentLoadBlockerCSS(),e.className="__tmp_css_exfil_protection_load_blocker",this.cssLoadBlocker=e,document.head.appendChild(this.cssLoadBlocker),this.filterSheet=this.createFilterSheet(), 466this.incrementSanitize(),this.scanCss()},this.loadListener=()=>{this.decrementSanitize()},this.updateEnvironment=e=>{this.environment=e,this.stopObserving(),M.utilities.getEnvironmentOverrideOrGlobalDefault(this.featureToggles,this.environment,"enableCSSMonitoring")&&this.startObserving()},this.getCSSRules=e=>{let t=null;try{null!=e&&(t=e.rules||e.cssRules)}catch(e){this.ensLogger.consoleLog(e)}return t},this.parseCSSRules=e=>{const t=[],o=[];if(null!=e)for(let i=0;i<e.length;i++){let n=null;null!= 467e[i].selectorText&&(n=e[i].selectorText.toLowerCase());let s=null;null!=e[i].cssText&&(s=e[i].cssText.toLowerCase()),null==s||-1===s.indexOf("url")||-1===s.indexOf("https://")&&-1===s.indexOf("http://")&&-1===s.indexOf("//")||-1!==s.indexOf("xmlns\x3d'http://")||!0===this.urlAllowed(s,e[i].selectorText)||(t.push(e[i].selectorText),o.push(s))}return null!=t[0]&&null!=e[0]&&this.disableCSS(e[0].parentStyleSheet),[t,o]},this.filterCss=(e,t)=>{for(const o in e)"string"==typeof t[o]&&"function"==typeof t[o].indexOf&& 468(-1!==t[o].indexOf("background")&&this.filterSheet.sheet.insertRule(e[o]+" { background-image:none !important; }",this.filterSheet.sheet.cssRules.length),-1!==t[o].indexOf("list-style")&&this.filterSheet.sheet.insertRule(e[o]+" { list-style: inherit !important; }",this.filterSheet.sheet.cssRules.length),-1!==t[o].indexOf("cursor")&&this.filterSheet.sheet.insertRule(e[o]+" { cursor: auto !important; }",this.filterSheet.sheet.cssRules.length),-1!==t[o].indexOf("content")&&this.filterSheet.sheet.insertRule(e[o]+ 469" { content: normal !important; }",this.filterSheet.sheet.cssRules.length));return this.filterSheet},this.createFilterSheet=()=>(this.filterSheet=document.createElement("style"),this.filterSheet.disabled=!1,this.filterSheet.className="__css_exfil_protection_filtered_styles",this.filterSheet.innerText="",document.head.appendChild(this.filterSheet),this.filterSheet),this.scanCssSingle=e=>{this.filterSheet=document.createElement("style"),this.filterSheet.className="__css_exfil_protection_filtered_styles", 470this.filterSheet.innerText="",document.head.appendChild(this.filterSheet);const t=this.getCSSRules(e);if(null==t)this.incrementSanitize(),this.getCrossDomainCSS(e);else{this.incrementSanitize(),this.handleImportedCSS(t);const o=this.parseCSSRules(t);this.filterCss(o[0],o[1]),this.checkCSSDisabled(e)&&this.enableCSS(e),this.decrementSanitize()}},this.scanCss=()=>{const e=document.styleSheets,t=e=>{const o=this.getCSSRules(e);if(null==o)setTimeout(t,1E3);else{this.incrementSanitize(),this.handleImportedCSS(o); 471const t=this.parseCSSRules(o);this.filterCss(t[0],t[1]),this.checkCSSDisabled(e)&&this.enableCSS(e),this.decrementSanitize()}};for(let o=0;o<e.length;o++){const i=this.getCSSRules(e[o]),n=e[o];if(null==i)this.incrementSanitize(),this.getCrossDomainCSS(n),null==e[o].href?setTimeout(t,1E3,n):(this.incrementSanitize(),this.getCrossDomainCSS(e[o]));else{this.incrementSanitize(),this.handleImportedCSS(i);const t=this.parseCSSRules(i);this.filterCss(t[0],t[1]),this.checkCSSDisabled(e[o])&&this.enableCSS(e[o]), 472this.decrementSanitize()}}},this.handleImportedCSS=e=>{if(null!=e)for(let t=0;t<e.length;t++)if("[object CSSImportRule]"===Object.prototype.toString.call(e[t])){this.incrementSanitize();const o=this.getCSSRules(e[t].styleSheet);if(null==o)this.getCrossDomainCSS(e[t].styleSheet);else{const e=this.parseCSSRules(o);this.filterCss(e[0],e[1]),this.decrementSanitize()}}else t=e.length},this.urlAllowed=(e,t)=>{const o=this.getHTMLUrl(e),i=t||"media",n=this.domProcessor.processURL(o,i,"CSS_MANAGER",{},u.utilities.getReferrer()); 473return!this.domProcessor.isVoidURL(n)},this.getHTMLUrl=e=>{const t=e.match(this.matchURLRegEx);return t&&t.length>2?t[2]:null},this.getCrossDomainCSS=e=>{let t=null,o=null;
473if(null!=e&&(o=e.href),null!=o){if(-1!==this.seenUrl.indexOf(o))return void this.decrementSanitize();this.seenUrl.push(o)}const i=new XMLHttpRequest;i.open("GET",o,!0),i.onreadystatechange=()=>{if(4===i.readyState){const o=document.createElement("style");if(o.innerText=i.responseText,document.head.appendChild(o),t=this.getCSSRules(o.sheet), 474null!=t){this.handleImportedCSS(t);const i=this.parseCSSRules(t);return this.filterCss(i[0],i[1]),u.utilities.validateRemoveChild(o)&&o.parentNode.removeChild(o),this.checkCSSDisabled(e)&&this.enableCSS(e),this.decrementSanitize(),t}setTimeout(function i(){if(t=this.getCSSRules(o.sheet),null!=t){this.handleImportedCSS(t);const i=this.parseCSSRules(t);return this.filterCss(i[0],i[1]),o.disabled=!0,u.utilities.validateRemoveChild(o)&&o.parentNode.removeChild(o),this.checkCSSDisabled(e)&&this.enableCSS(e), 475this.decrementSanitize(),t}setTimeout(i,10)},10)}},i.send()},this.disableCSS=e=>{null!=e&&(e.disabled=!0)},this.enableCSS=e=>{null==e||this.disabledCssHash[window.btoa(e.href)]||(e.disabled=!1,window.dispatchEvent(new Event("resize")))},this.checkCSSDisabled=e=>null!=e&&e.disabled,this.disableAndRemoveCSS=e=>{null!=e&&(e.disabled=!0,u.utilities.validateRemoveChild(e)&&e.parentNode.removeChild(e))},this.incrementSanitize=()=>{this.sanitizeCount=this.sanitizeCount++},this.decrementSanitize=()=>{this.sanitizeCount--, 476this.sanitizeCount<=0&&this.disableAndRemoveCSS(this.cssLoadBlocker)},this.buildContentLoadBlockerCSS=()=>"input,input ~ * { background-image:none !important; list-style: inherit !important; cursor: auto !important; content:'' !important; } input::before,input::after,input ~ *::before, input ~ *::after { content:'' !important; }",M.utilities.getEnvironmentOverrideOrGlobalDefault(e,t,"enableCSSMonitoring")&&this.startObserving()}}var se;!function(e){e.ConfigUpdate="ConfigUpdate",e.Status="status", 477e.ConfigRequest="ConfigRequest",e.Initialized="Initialized",e.ReportingRequest="ReportingRequest",e.Version="version"}(se||(se={}));const re=se;class ae{constructor(e,t,o,i,n,s){this.gatewayData=e,this.environment=t,this.activeCategories=o,this.allowedTags=i,this.blockedTags=n,this.historyEntryReporter=s,this.ensLogger=new y,this.checkServiceWorkerInitialized=()=>navigator.serviceWorker&&navigator.serviceWorker.controller&&this.isServiceWorkerInitialized,this.shouldProcessThroughServiceWorker=(e, 478t,o)=>{const i=["XHR_MANAGER","FETCH_MANAGER","SENDBEACON_MANAGER"],n=["img","image","source","link","xhr","script","iframe","form"];return!(!this.checkServiceWorkerInitialized()||!i.includes(e)&&!n.includes(t))&&this.isSameOrigin(t,o)},this.updateMessageHandler=e=>{navigator.serviceWorker.addEventListener("message",e)},this.updateServiceWorkerConfig=(e,t,o,i)=>(this.environment=e,this.activeCategories=t,this.allowedTags=o,this.blockedTags=i,!(!navigator.serviceWorker||!navigator.serviceWorker.controller)&& 479(navigator.serviceWorker.controller.postMessage({ensMessageType:re.ConfigUpdate,configObject:this.gatewayData,activeEnvironment:this.environment,activeCategories:this.activeCategories,allowedTags:this.allowedTags,blockedTags:this.blockedTags}),!0)),this.updateReporterEntries=e=>{for(let t=0;t<e.length;t++)this.historyEntryReporter.createHistoryEntry(e[t].ensRequest,e[t].node),this.historyEntryReporter.resourceComplete(e[t].node,e[t].ensRequest.id,e[t].status)},this.gatewayData=JSON.parse(JSON.stringify(e)), 480navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",e=>{switch(e.data.message){case re.ConfigRequest:this.isServiceWorkerInitialized=!1,this.updateServiceWorkerConfig(this.environment,this.activeCategories,this.allowedTags,this.blockedTags);break;case re.Initialized:this.isServiceWorkerInitialized=e.data;break;case re.ReportingRequest:this.updateReporterEntries(e.data.result);break;default:this.ensLogger.consoleLog(`Unhandled message: ${e.data.message}`)}}),this.updateServiceWorkerConfig(this.environment, 481this.activeCategories,this.allowedTags,this.blockedTags)}setServiceWorkerInitialized(e){this.isServiceWorkerInitialized=e}isSameOrigin(e,t){if("iframe"===e.trim().toLowerCase()){const e=new URL(t);return!!window.location.origin.includes(e.origin)}return!0}getServiceWorkerVersion(){return!(!navigator.serviceWorker||!navigator.serviceWorker.controller)&&(navigator.serviceWorker.controller.postMessage({ensMessageType:re.Version}),!0)}}class le{constructor(e,t){this.browserHistoryEntryReporter=e,this.serviceWorkerHistoryEntryReporter= 482t,this.browserHistoryEntryReporter=e,this.serviceWorkerHistoryEntryReporter=t}getHistory(){const e=this.browserHistoryEntryReporter.getHistory();if(null!=this.serviceWorkerHistoryEntryReporter){const t=this.serviceWorkerHistoryEntryReporter.getHistory();if(null!=t.before)for(const o in t.before){const i=t.before[o];e.before[o]=i}if(null!=t.complete)for(const o in t.complete){const i=t.complete[o];e.complete[o]=i}}return e}}class he{constructor(e,t){this.request=e,this.node=t}}class ce{constructor(e, 483t){this.history=e,this.reporter=t,this.ensLogger=new y,setInterval(this.historyGarbageCollector,250,this)}getHistory(){return this.history}createHistoryEntry(e,t){t.__reference||(this.history.before[e.id]=new he(e,t))}resourceComplete(e,t,o){t=t||e.__gateway;const i=this.history.before[t];if(!i)return!1;const n=i.request;n.end=+new Date,n.status=o,this.history.complete[t]=new he(n,e),this.ensLogger.consoleLog("resourceComplete: ",o,": ",n),this.reporter.addResource(n),delete this.history.before[t]}historyGarbageCollector(e){for(const t in e.history.before){if(!e.history.before.hasOwnProperty(t))continue; 484const o=+new Date;void 0!==e.history.before[t].request&&o-e.history.before[t].request.start>5E3&&(e.resourceComplete(e.history.before.nodeRef,t,"timeout"),delete e.history.before[t])}}}class de{constructor(e,t){this.featureToggles=e,this.domProcessor=t,this.matchURLRegEx=/(url\s*\("?'?)(?=(.[^\(|^\|^"|^')]*))/i,this.referrer=u.utilities.getReferrer()}processElementStyle(e,t){if(this.getIsObservingStyle()&&this.elementHasCSSUrl(e)){const o=this,i=this.getElementUrl(e),n=e.tagName.toLowerCase();this.domProcessor.processURL(i, 485n,t,e,this.referrer,t=>{e.style=o.replaceElementStyle(e,t)})}return e.style}processHTMLStyle(e,t){const o=this,i=/style\s*=/i.test(t);if(this.getIsObservingStyle()&&i&&this.htmlHasCSSUrl(t)){const i=this.findTagsWithStyle(t);null!=i&&M.utilities.each(i,i=>{const n=o.getHTMLUrl(i);if(n){const s=o.getTagName(i);o.domProcessor.processURL(n,s,e,{},this.referrer,e=>{t=t.replace(n,e)})}})}return t}getIsObservingStyle(){return this.featureToggles.isObservingStyle}replaceElementStyle(e,t){let o=e.getAttribute("style"), 486i=this.getElementUrl(e);const n=i;return i=i.replace(i,t),o=o.replace(n,i),o}elementHasCSSUrl(e){if("function"!=typeof e.getAttribute)return!1;const t=e.getAttribute("style");if(null==e.tagName||null==t)return!1;const o=t.match(this.matchURLRegEx);return null!=o&&!this.domProcessor.isVoidURL(o[2])}htmlHasCSSUrl(e){const t=e.match(this.matchURLRegEx);return null!=t&&!this.domProcessor.isVoidURL(t[2])}getElementUrl(e){const t=e.getAttribute("style").match(this.matchURLRegEx);return t&&t.length>2?t[2]: 487null}getHTMLUrl(e){const t=e.match(this.matchURLRegEx);return t&&t.length>2?t[2]:null}getTagName(e){const t=e.match(/(<\s*(\w*)[^>]+style\s*=\s*(.*?)[^>]*>)/i);return t&&t.length>2?t[2]:null}findTagsWithStyle(e){return e.match(/(<\s*(\w*)[^>]+style\s*=\s*(.*?)[^>]*>)/gi)}}class ue extends M.UrlProcessor{constructor(e,t,o,i,n){super(e,t,o,i),this.events=["load","abort","error"],this.referrer=u.utilities.getReferrer(),this.styleRequestTracker=new de(this.gatewayData.featureToggles,this),this.serviceWorkerBridge= 488n}getIsObservingStyle(){return this.styleRequestTracker.getIsObservingStyle()}processURL(e,t,o,i,n,s){return this.serviceWorkerBridge&&this.serviceWorkerBridge.shouldProcessThroughServiceWorker(o,t,e)?e:super.processURL(e,t,o,this.gatewayData.featureToggles.enableHtmlNodeHistory?i:{},n,s)}processURLAndBody(e,t,o,i,n,s,r){this.serviceWorkerBridge&&this.serviceWorkerBridge.shouldProcessThroughServiceWorker(i,o,e)||super.processURLAndBody(e,t,o,i,this.gatewayData.featureToggles.enableHtmlNodeHistory? 489n:{},s,r)}processElement(e,t){let o=t.tagName;const i=Object.getPrototypeOf(t)===DocumentFragment.prototype;let n=+new Date;if(!i){if(null==o||null===t)return t;this.serviceWorkerBridge&&this.serviceWorkerBridge.checkServiceWorkerInitialized()||this.styleRequestTracker.processElementStyle(t,e);const i=t.tagName.toLowerCase();if(this.hasElementBeenProcessed(t,i))return t;if(t.__gateway=n,(M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"removeIFrameOnBlock")|| 490M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"removeAllIFrames"))&&"iframe"===i)return this.removeIframe(t);Q[i]&&(void 0===Q[i].featureFlag||M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,Q[i].featureFlag))&&Q[i].processAttribute.forEach(o=>{const n=t[o];this.serviceWorkerBridge&&this.serviceWorkerBridge.shouldProcessThroughServiceWorker(e,i,n)||this.processElementByAttribute(t,e,o,function(e){t[o]= 491e;t[`__${o}`]=t[o]})})}return this.processElementChildren(e,t),o=n=null,t}processHTML(e,t){if(null==t)return t;let o=t;for(const t in Q){const i=Q[t];void 0===i.processAttribute||void 0!==i.featureFlag&&!M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,Q[t].featureFlag)||i.processAttribute.forEach(i=>
491{(new RegExp(i+"\\s*\x3d","i")).test(o.toString())&&(o=u.utilities.handleTrustedHTML(o,o=>this.processHTMLAttribute(e,o,[t],i)))})}return this.serviceWorkerBridge&& 492this.serviceWorkerBridge.checkServiceWorkerInitialized()||(o=u.utilities.handleTrustedHTML(o,t=>this.styleRequestTracker.processHTMLStyle(e,t))),o}processElementChildren(e,t){t.children&&M.utilities.each(Array.from(t.children),t=>{this.processElement(e,t)})}processHTMLAttribute(e,t,o,i){const n="(\x3c\\s*("+o.join("|")+")[^\x3e]+"+i+"\\s*\x3d\\s*(.*?)[^\x3e]*\x3e)";function s(e){return e.match(new RegExp("(\x3c\\s*(iframe)\\s(.*?)*\x3e)(.*?)(\x3c\\s*/\\s*iframe\x3e)+","ig"))}M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles, 493this.environment,"removeAllIFrames")&&s(t)&&(t=function(e){const t=s(e);for(let o=0;o<t.length;o++){const i=t[o];e=e.replace(i,"")}return e}(t));const r=function(e){return e.match(new RegExp(n,"ig"))}(t);return r&&M.utilities.each(r,o=>{const s=function(e){const t="\\s*"+i+"\\s*\x3d\\s*('|\")?(.*?)(\\1)(\\s|/\x3e|\x3e|;|$)",o=e.match(new RegExp(t,"i"));return o&&o.length>2?o[2].trim():null}(o);if(s){const i=function(e){const t=e.match(new RegExp(n,"i"));return t&&t.length>2?t[2]:null}(o);super.processURL(s, 494i,e,{},this.referrer,o=>{if((u.utilities.isSafari()||M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"removeIFrameOnBlock"))&&null!==i&&"iframe"===i.toLowerCase()){const e=/[.*+?^${}()|[\]\\]/g;let o="(\x3c\\s*(iframe)[^\x3e]+src\\s*\x3d\\s*(('|\"|`)?"+s.replace(e,"\\$\x26")+")[^\x3e]*\x3e)(.*?)(\x3c\\s*/\\s*iframe\x3e)";o=new RegExp(o,"i"),t=t.replace(o,"")}else this.serviceWorkerBridge&&this.serviceWorkerBridge.shouldProcessThroughServiceWorker(e, 495i,s)||(t=t.replace(s,o))})}}),t}processElementByAttribute(e,t,o,i){if("srcset"===o.toLowerCase())return this.processElementSrcSet(e,t,o,i);const n=void 0!==o?e[o]:e.src,s="string"==typeof n?n:"",r=e.tagName.toLowerCase();return this.processURLInternal(s,null,r,t,e,this.referrer,i,t=>{e.addEventListener?M.utilities.each(this.events,o=>{e.addEventListener(o,this.createEventHandler(t,o),!1)}):e.attachEvent&&M.utilities.each(this.events,o=>{e.attachEvent("on"+o,this.sendBlockReport(t,o,this.referrer))})})}processElementSrcSet(e, 496t,o,i){const n=e[o];if("string"!=typeof n)return"";{const o=n.split(","),s=e.tagName.toLowerCase(),r=o.map(o=>{const n=o.split(" ")[0],r=this.processURLInternal(n,null,s,t,e,this.referrer,i,t=>{e.addEventListener?M.utilities.each(this.events,o=>{e.addEventListener(o,this.createEventHandler(t,o),!1)}):e.attachEvent&&M.utilities.each(this.events,o=>{e.attachEvent("on"+o,this.sendBlockReport(t,o,this.referrer))})});return this.isVoidURL(r)?"":o}).filter(e=>""!==e);return r.length>0?r.reduce((e,t)=>e+ 497", "+t):""}}hasElementBeenProcessed(e,t){let o=!1;return e.__gateway&&(-1===Q.processElementTags.indexOf(t)?o=!0:null!=Q[t]&&Q[t].processAttribute.forEach(t=>{e[`__${t}`]===e[t]&&(o=!0)})),o}removeIframe(e){return u.utilities.validateRemoveChild(e)&&e.parentNode.removeChild(e),e=null}}class ge{constructor(e){this.consentReporter=e,this.measurePageLoadTime()}measurePageLoadTime(){window.addEventListener("load",()=>{let e;if(u.utilities.isSafari())e=Date.now()-performance.timing.navigationStart;else{const t= 498performance.getEntriesByType("navigation")[0];e=t.domComplete-t.fetchStart}this.pageLoadTime=e,this.reportPageLoadTime()})}reportPageLoadTime(){const e=this.buildPageLoadEvent();"number"!=typeof this.pageLoadTime||Number.isNaN(this.pageLoadTime)||(this.consentReporter.addCustomEvent(e),this.consentReporter.sendReport())}buildPageLoadEvent(){return{dt:Date.now(),pageLoadTime:this.pageLoadTime,event:"pageLoad"}}}const pe=["date","expires"];class me extends C{constructor(e,t,o,i,n,s,r,a,l,h,c,d,u,g, 499p,m,f,y,v){super(),this.imageReference=e,this.environmentName=t,this.defaultOptions=o,this.clientId=i,this.clientName=n,this.publishPath=s,this.gatewayVersion=r,this.url=a,this.httpMethod=l,this.sampleRateString=h,this.reportingEnabled=c,this.interestedHeaders=d,this.forbiddenHeaders=u,this.nexusDomain=g,this.customReporter=p,this.sendBeaconReportingDisabled=m,this.sendBeacon=f,this.scheduler
499=y,this.customHeaderFetcher=v,this.urlPath=`//${this.nexusDomain}/privacy/v1/c/b.rnc`,this.init(h,v)}init(e, 500t){const o=parseFloat(e);isNaN(o)&&console.error("Failed to parseFloat headerSampleRate"),this.shouldSample(o)&&(this.fetchHeadersFunction=t||this.asyncFetchHeaderFetcher.bind(this),this.fetchHeadersFunction=this.decorateFetchHeadersToReturnInterestedHeaders(this.fetchHeadersFunction))}isEnabled(){return this.reportingEnabled&&!!this.fetchHeadersFunction}shouldSample(e){if(!this.reportingEnabled||e<=0)return!1;return e>=Math.random()}deleteHeaders(e,t){t&&t.forEach(t=>delete e[t])}pickHeaders(e,t){if(!t|| 5010===t.length)return e;const o={};for(const i of t)e[i]&&(o[i]=e[i]);return o}decorateFetchHeadersToReturnInterestedHeaders(e){return(t,o)=>i(this,void 0,void 0,function*(){try{const i=yield e(t,o);return this.deleteHeaders(i.headers,pe),this.deleteHeaders(i.headers,this.forbiddenHeaders),i.headers=this.pickHeaders(i.headers,this.interestedHeaders),i}catch(e){return console.error(e.message?e.message:e),null}})}run(){this.isEnabled()&&this.scheduler(this.fetchAndSubmitReportThenDelete.bind(this))}fetchAndSubmitReport(){this.fetchHeaders().then(this.sendReport.bind(this)).catch(console.error)}fetchAndSubmitReportThenDelete(){this.fetchHeaders().then(e=> 502{this.sendReport(e),delete this.fetchHeadersFunction}).catch(console.error)}fetchHeaders(){if(this.isEnabled())return this.fetchHeadersFunction(this.httpMethod,this.url)}asyncFetchHeaderFetcher(e,t){return i(this,void 0,void 0,function*(){try{const o=yield fetch(t,{method:e}),i={};[...o.headers.entries()].forEach(([e,t])=>i[e]=t);const n={status:o.status,headers:i,method:e,url:t};if(!o.ok)throw new Error(`HTTP error: ${o.status} ${o.statusText}`);return n}catch(e){const t=e.message?e.message:e;throw new Error(`Failed to fetch: ${t}`); 503}})}sendReport(e){if(e&&this.isEnabled()){const t=this.generateRawReport(e),{encodedBody:o,rawLength:i}=this.compressReportString(JSON.stringify(t));return"function"==typeof this.customReporter&&this.customReporter(e),this.beacon(o,i)}}stripQueryParams(e){const t=e.split("?");return t.length>1?t[0]:e}stripFragmentIdentifier(e){const t=e.split("#");return t.length>1?t[0]:e}generateRawReport(e){const t=Object.assign({},e.headers);return{version:this.version,gateway:this.gatewayVersion,clientId:this.clientId, 504clientName:this.clientName,publishPath:this.publishPath,mode:null,cookies:{},headers:e.headers,dt:Date.now(),settings:{modal:"",environment:this.environmentName,defaults:{}},events:[{event:"headerReporter",url:this.stripFragmentIdentifier(this.stripQueryParams(e.url)),status:""+e.status,method:e.method,headers:t}]}}}const fe="enforce-gpc-toast";class ye extends x{constructor(e,t,o,n,s,r,a){super(n,e,s,t,r,o),this.listProcessor=e,this.environment=t,this.gatewayData=o,this.cookieManager=n,this.consentReporter= 505s,this.tagAccessManager=r,this.environmentManager=a,this.injectToastDelay=100,this.init=()=>{this.update(this.environment)},this.openToast=()=>{this.findToastElement().style.display="block",this.toastLoaded()},this.closeToast=()=>{this.findToastElement().style.display="none",this.toastViewed()},this.toastLoaded=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["GPC_NOTIFICATION_LOADED"]);yield this.cookieManager.setCookie("GPC_NOTIFICATION_LOADED","1");const t=this.cookieManager.getCookiesFromTypes(["GPC_NOTIFICATION_LOADED"]); 506this.consentReporter.sendReport(e,t)}),this.toastViewed=()=>i(this,void 0,void 0,function*(){const e=this.cookieManager.getCookiesFromTypes(["GPC_NOTIFICATION_VIEWED"]);yield this.cookieManager.setCookie("GPC_NOTIFICATION_VIEWED","1");const t=this.cookieManager.getCookiesFromTypes(["GPC_NOTIFICATION_VIEWED"]);this.consentReporter.sendReport(e,t)}),this.hasToastBeenViewed=()=>!!this.cookieManager.getCookie("GPC_NOTIFICATION_VIEWED"),this.openToastCheck=()=>{this.hasToastBeenViewed()||this.openToast()}, 507this.update=e=>{this.environmentManager.enableAsyncEnvironments&&this.isEnabledGpcNotification(e)&&M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,e,"enableGpcNotificationAdvancedMode")&&this.environmentManager.getAsyncEnvironmentHtml(e,[(e,t)=>this.updateToastDOM(e,t)],"gpcNotificationHtmlUrl","gpcNotificationCssUrl")},this.updateToastDOM=(e,t)=>{const o=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"honorGlobalPrivacyControl"), 508i=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"gpcEmbedded"),n="globalPrivacyControl"in navigator&&!0===navigator.globalPrivacyControl,s=M.utilities.getEnvironmentOverrideOrGlobalDefault(this.gatewayData.featureToggles,this.environment,"enableGPCConfirmation");if(n&&o&&s&&!i)if(this.gpcNotification.innerHTML=t,this.gpcNotification.style.display="none",null==this.findToastElement()){const e=()=>{document.body.insertBefore(this.gpcNotification, 509document.body.lastChild),this.updateDismissButton(),this.openToastCheck()};u.utilities.domReady(e)}else this.updateDismissButton()},this.updateDismissButton=()=>{const e=document.getElementById("ensToastDismiss");null!=e&&(e.removeEventListener("click",this.closeToast.bind(this)),e.addEventListener("click",this.closeToast.bind(this)))},this.isEnabledGpcNotification=e=>e&&e.hasOwnProperty("enableGpcNotification")?e.enableGpcNotification:this.gatewayData.featureToggles.enableGpcNotification,this.findToastElement= 510()=>document.getElementById(fe),this.environmentManager=a,this.gpcNotification=document.createElement("div"),this.gpcNotification.id=fe,this.gpcNotification.className="enforce-gpc-toast",this.init()}}const ve=function(e){let t,o,n,s,r,a,l,h,c,p,m,f,v,C,b,E,S,T,D,L,A,O,R,_,B,P={},I={};const N={};M.utilities.isWhitelist(e,p)&&(e.whitelist.default=e.whitelist.default||[]),e.featureToggles.disableDefaultStyles=void 0!==e.featureToggles.disableDefaultStyles&&e.featureToggles.disableDefaultStyles,e.featureToggles.useLocalTemplates= 511void 0===e.featureToggles.useLocalTemplates||e.featureToggles.useLocalTemplates,e.featureToggles.overridePublicSuffixEnabled=void 0!==e.featureToggles.overridePublicSuffixEnabled&&e.featureToggles.overridePublicSuffixEnabled,B=new k(e.featureToggles.useLocalTemplates),e.featureToggles.enableDataMonitoring=e.featureToggles.enableDataMonitoring||!1,e.featureToggles.enableGoogleConsent=e.featureToggles.enableGoogleConsent||!1;const U=["enableObjectMonitoring","enableAudioMonitoring","enableEmbedMonitoring", 512"enableTrackMonitoring","enableVideoMonitoring"];for(const t in U)e.featureToggles[t]=void 0===e.featureToggles[t]||e.featureToggles[t];e.featureToggles.objectFetchRejection=e.featureToggles.objectFetchRejection||!1,e.featureToggles.disableXHRManager=e.featureToggles.disableXHRManager||!1,e.featureToggles.disableSendBeaconReporting=void 0===e.featureToggles.disableSendBeaconReporting||e.featureToggles.disableSendBeaconReporting,e.featureToggles.useCategoryNameInExternalConsentNotifications=void 0!== 513e.featureToggles.useCategoryNameInExternalConsentNotifications&&e.featureToggles.useCategoryNameInExternalConsentNotifications,e.featureToggles.sendPageUrlInBeacons=e.featureToggles.sendPageUrlInBeacons||!1,I.openM
513odal=function(){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the modal cannot work without it."):new Error("Ensighten API Error: You must first register your modal before you can call it. Use Bootstrapper.gateway.setOpenModal to register a function that opens your modal."); 514},I.isEnabledConsentModal=function(t){return t&&t.hasOwnProperty("enableConsentModal")?t.enableConsentModal:e.featureToggles.enableConsentModal};const H={before:{},complete:{}},G={before:{},complete:{}};_={clientName:e.info.name,enableFiltering:e.featureToggles.enableFiltering};function W(t){m.initializeActiveEnvironment(),$(t),"function"==typeof I.update&&I.update(t),null==P||P.update(t),null==C||C.update(t),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,t,"consentWidget")&&r.update(t), 515h.setEnvironment(t),b.setEnvironment(t);const o=Y(t);null!=S&&S.updateEnvironment(t),T.updateEnvironment(t),L.updateEnvironment(t,l.getCategoryMapFromCookieTypes(o),E.getAllowedTags(),E.getBlockedTags()),D&&D.updateServiceWorkerConfig(t,l.getCategoryMapFromCookieTypes(o),E.getAllowedTags(),E.getBlockedTags())}function $(e){p=e,N.environment=e}const Y=e=>{let t=[];return e&&e.optVals&&(t=Object.keys(e.optVals)),t};function X(){const e={version:"2.3.802"};return e.version}const se={getCookie:function(e){return l.getCookie(e)}, 516setCookie:function(e,t,o){return i(this,void 0,void 0,function*(){const i=l.getCookiesFromTypes([e]);yield l.setCookie(e,t,o);const n=l.getCookiesFromTypes([e]);null!=h&&h.sendReport(i,n),I&&I.updateCheckboxes&&(I.updateCheckboxes(p),I.updateTagSlides&&I.updateTagSlides(p,e,parseInt(t))),console.warn("The setCookie api is deprecated - use the setConsentStatus APIs instead")})},setCookies:function(e,t){return i(this,void 0,void 0,function*(){const o=[];for(const t in e)o.push(t);const i=l.getCookiesFromTypes(o); 517yield l.setCookies(e,t);const n=l.getCookiesFromTypes(o);if(null!=h&&h.sendReport(i,n),I&&I.updateCheckboxes&&(I.updateCheckboxes(p),I.updateTagSlides))for(const t in e)I.updateTagSlides(p,t,e[t]);console.warn("The setCookies api is deprecated - use the setConsentStatuses APIs instead")})},saveTcf:function(e,t,o){return i(this,void 0,void 0,function*(){const i=l.getCookiesFromTypes([e]);yield l.setCookie(e,t,o);const n=l.getCookiesFromTypes([e]);null!=h&&h.sendReport(i,n),I&&I.updateCheckboxes&&(I.updateCheckboxes(p), 518I.updateTagSlides&&I.updateTagSlides(p,e,parseInt(t)))})},getCookieTypes:function(){return e.cookieTypes},calculateCookieDomain:function(t,o,i){return d.calculateCookieDomain(t,o,e.suffixOverrides,i,e.featureToggles.enableOnlyTLDNetworkCalls)},getCookieRetentionPeriod:function(){return l.getDefaultCookieRetentionPeriod()},setCookieDomain:function(e){l.setCookieDomain(e)},getCookieDomain:function(){return l.getCookieDomain()},setCookieDomainPath:function(e){l.setCookieDomainPath(e)},getCookieDomainPath:function(){return l.getCookieDomainPath()}, 519setCookieRetentionPeriod:e=>{l.setDefaultCookieRetentionPeriod(e)}};let re=!0,he=!1;if(function(){var i,k,_,x,N,U,se;if(l=d.build(e.info.name,e.featureToggles.overridePublicSuffixEnabled,e.suffixOverrides,e.featureToggles.enableOnlyTLDNetworkCalls,e.getCookie,e.setCookie),E=new ie(e.info.name),m=new g(document,e.environmentConfigs,e.defaultEnv,e.info.name,l,e.featureToggles.enableAsyncEnvironments,e.info.nexus,e.info.publishPath),!0===e.featureToggles.enableEnvironmentMatching&&null==m.getActiveEnvironment())return void(re= 520!1);const le=m.getActiveEnvironment(),pe=Y(le);$(le),m.registerEnvironmentChangeCallback(W);const fe=l.getCategoryMapFromCookieTypes(pe);v=new M.ListProcessor(p,e,fe,E.getAllowedTags(),E.getBlockedTags());let ve=null;const Ce={alwaysAllowedRegex:/a^/,filteredProtocols:[]};let we;!1===e.featureToggles.enableAllowedDomainsReporting&&(Ce.alwaysAllowedRegex=v.getAlwaysAllowedListRegex()),Ce.filteredProtocols=ensClientConfig.filteredProtocols?ensClientConfig.filteredProtocols:[],b=new J(window.Image,e.info.clientId, 521e.info.publishPath,e.featureToggles.enableFiltering,X(),e.featureToggles.enableReporting,e.featureToggles.enablePerformanceModeReporting,e.reportingOptions||{maxUrlSize:32E3,reportInterval:2500,requestCount:3},e.info.reporting||e.info.nexus,Ce,p,e.featureToggles.disableSendBeaconReporting,we?we.sendBeacon:null,e.featureToggles.sendPageUrlInBeacons),b.setCookies(de()),u.utilities.domReady(function(){b.sendBillingBeacon()}),ve||(ve={enableFiltering:!1}),A=new ce(H,b),O=new ce(G,b),e.featureToggles.enableServiceWorker&&
522"serviceWorker"in navigator&&(O=new ce(G,b),D=new ae(e,p,l.getCategoryMapFromCookieTypes(pe),E.getAllowedTags(),E.getBlockedTags(),O),m.registerEnvironmentChangeCallback(()=>{const e=m.getActiveEnvironment(),t=Y(e),o=l.getCategoryMapFromCookieTypes(t);D.updateServiceWorkerConfig(e,o,E.getAllowedTags(),E.getBlockedTags())})),L=new ue(e,p,A,v,D),m.registerEnvironmentChangeCallback(()=>{const e=m.getActiveEnvironment(),t=Y(e),o=l.getCategoryMapFromCookieTypes(t);L.updateListValues(o,E.getAllowedTags(), 523E.getBlockedTags())}),p?(f=!0,h=new w(window.Image,p.name||"",e.libraryPackage,p.optVals,e.info.clientId,e.info.name,e.info.publishPath,M.utilities.isWhitelist(e,p)?"whitelist":"blacklist",e.cookieTypes,X(),e.featureToggles.enableReporting,l,e.info.reporting||e.info.nexus,e.onConsent,e.featureToggles.disableSendBeaconReporting,we?we.sendBeacon:null,e.featureToggles.useCategoryNameInExternalConsentNotifications,e.featureToggles.disableImpliedConsentReporting),E.setConsentReporter(h),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles, 524p,"enableConsentModal")&&(a=new F(e,p,v,l,h,L.updateListValues,B,E,m),I=a.getConsentModal()),s=new z(h,L.updateListValues,l,E,e,p),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"enableTagKiller")&&(R=new ge(h)),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"enableDoNotSellModal")&&(t=M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"enablePrivacyDsarAdvancedMode")?new j(l,L.updateListValues,h,p,e,"doNotSellModal",s,B,E,m):new V(l,L.updateListValues, 525h,p,e,"doNotSellModal",s,B,E,m)),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"enableRequestDataModal")&&(o=M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"enablePrivacyDsarAdvancedMode")?new j(l,L.updateListValues,h,p,e,"requestDataModal",s,B,E,m):new V(l,L.updateListValues,h,p,e,"requestDataModal",s,B,E,m)),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"enableDeleteDataModal")&&(n=M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles, 526p,"enablePrivacyDsarAdvancedMode")?new j(l,L.updateListValues,h,p,e,"deleteDataModal",s,B,E,m):new V(l,L.updateListValues,h,p,e,"deleteDataModal",s,B,E,m)),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"enableHeaderReporter")&&(c=new me(window.Image,p.name||"",p.optVals,e.info.clientId,e.info.name,e.info.publishPath,X(),(null===(i=e.headerReporter)||void 0===i?void 0:i.headerUrl)||window.location.href,(null===(k=e.headerReporter)||void 0===k?void 0:k.headerMethod)||"OPTIONS", 527(null===(_=e.headerReporter)||void 0===_?void 0:_.headerSampleRate)||1,e.featureToggles.enableReporting,(null===(x=e.headerReporter)||void 0===x?void 0:x.interestedHeaders)||[],(null===(N=e.headerReporter)||void 0===N?void 0:N.forbiddenHeaders)||[],e.info.reporting||e.info.nexus,null===(U=e.headerReporter)||void 0===U?void 0:U.onHeader,e.featureToggles.disableSendBeaconReporting,we?we.sendBeacon:null,e=>{setTimeout(e,0)},null===(se=e.headerReporter)||void 0===se?void 0:se.customHeaderFetcher),u.utilities.domReady(()=> 528{c.run()})),C=new ye(v,p,e,l,h,E,m),P=new q(v,e,p,I,l,h,B,L.updateListValues,E,m),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"consentWidget")&&(r=new K(m,p,e,B))):f=!1,!1===e.featureToggles.disableXHRManager&&(new ee(L),new te(L,e.featureToggles.objectFetchRejection),we=new oe(e.info.nexus||"nexus.ensighten.com",L)),S=new ne(e.featureToggles,p,L),T=new Z(e.featureToggles,p,L);const be=M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,le,"removeAllIFrames")|| 529M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,le,"removeIFrameOnBlock");!function(e,t){const o=new y,i=["Anchor","Area","Body","Button","Canvas","Div","Form","Frame","Head","Html","IFrame","Input","Label","LI","Link","Map","Object","OList","Option","Paragraph","Pre","Span","Table","TableCell","TableCol","TableRow","TableSection","Template","UList","Unknown"],n=["appendChild","insertBefore","replaceChild","removeChild"],s=["append","prepe
529nd","removeChild"];function r(){M.utilities.each(i, 530function(e){window["HTML"+e+"Element"]&&window["HTML"+e+"Element"].prototype?M.utilities.each(s,function(t){a(window["HTML"+e+"Element"].prototype,t)}):u.utilities.couldNotBind("HTML"+e+"Element")})}if((document.insertAdjacentElement||window.Element&&Element.prototype.insertAdjacentElement||window.HTMLElement&&HTMLElement.prototype.insertAdjacentElement)&&s.push("insertAdjacentElement"),window.Node&&window.Node.prototype&&window.Node.prototype.appendChild?M.utilities.each(n,u.utilities.bind(a,null, 531window.Node.prototype)):u.utilities.couldNotBind("Node"),window.Element&&window.Element.prototype&&window.Element.prototype.appendChild?M.utilities.each(s,u.utilities.bind(a,null,window.Element.prototype)):u.utilities.couldNotBind("Element"),u.utilities.isNative(document.createElement("div").appendChild)){let e=document.createElement("div"),t=e,o=0;for(;!Object.prototype.hasOwnProperty.call(t,"appendChild");)if(t=Object.getPrototypeOf(t),o++>5){u.utilities.couldNotBind("div.appendChild");break}M.utilities.each(s, 532u.utilities.bind(a,null,t)),e=t=o=null}function a(i,n){if(!i||!i[n]||u.utilities.isFunctionOverridden(i,n)||i+""=="[Interface prototype object]")return!1;const s=i[n],r=function(){const i=Array.prototype.slice.call(arguments);try{let o=i[0];const r=Object.getPrototypeOf(o)===DocumentFragment.prototype;"string"==typeof o&&(o=i[1]);const a="string"==typeof this.tagName?this.tagName.toLowerCase():"",l="string"==typeof o.tagName?o.tagName.toLowerCase():"";if(-1===Q.elementObserverTags.indexOf(a)&&-1=== 533Q.elementObserverTags.indexOf(l)&&!r)return e.getIsObservingStyle()&&(o=e.processElement(n,o),o.__gateway=null),Function.prototype.apply.call(s,this,i);if(t&&"iframe"===l)return Function.prototype.apply.call(s,this,i);if(o=e.processElement(n,o),o.__gateway=null,o)return Function.prototype.apply.call(s,this,i)}catch(e){return o.consoleLog("Privacy Gateway Error",e),window.Bootstrapper&&"function"==typeof window.Bootstrapper.reportException&&window.Bootstrapper.reportException(e),Function.prototype.apply.call(s, 534this,i)}};try{i[n]=r,u.utilities.markFunctionOverridden(i,n)}catch(e){console.log(e)}}u.utilities.isNative(document.createElement("div").appendChild)&&r()}(L,be),function(e){const t=document.write;document.write=function(){let o="";for(var i=0;i<arguments.length;i++)o+=e.processHTML("write",arguments[i]);return Function.prototype.call.call(t,document,o),o},u.utilities.isNative(document.write)}(L),function(e){var t=document.writeln;document.writeln=function(){for(var o="",i=0;i<arguments.length;i++)o+= 535e.processHTML("writeln",arguments[i]);return Function.prototype.call.call(t,document,o),o},u.utilities.isNative(document.writeln)}(L),M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"enableWindowOpenOverride")&&(e=>{const t=window.open;window.open=(...o)=>{let i=o[0];i instanceof URL&&(i=i.toString()),null!=i&&(e.processURL(i,"windowOpen","Window_Open_Called",{},u.utilities.getReferrer(),function(e){i=e}),o[0]=i);try{return t.apply(null,o)}catch(e){}}})(L),u.utilities.unbound.script= 536document.all&&!document.addEventListener,he=!0}(),!re)return he=!1,{isInitialized:he};function de(){const e={};function t(t){const o=se.getCookie(t);void 0!==o&&(e[t]=o)}const o=se.getCookieTypes();for(let e=0;e<o.length;e++)t(o[e]);return t("MODAL_VIEWED"),t("MODAL_LOADED"),t("BANNER_VIEWED"),t("BANNER_LOADED"),t("LOCALE"),e}const pe=function(){const e=m.getActiveEnvironment(),t=Y(e),o=l.getCategoryMapFromCookieTypes(t);h.sendReport(),L.updateListValues(o,E.getAllowedTags(),E.getBlockedTags()),D&& 537D.updateServiceWorkerConfig(e,o,E.getAllowedTags(),E.getBlockedTags())};function fe(t,o){e.enableBotAndFraudProtection=!0,e.enableBotAndFraudProtectionReason=o;const i={};for(let e=0;e<t.length;e++){let o;o="object"==typeof t[e]?t[e].name:t[e],i[o]=0}!function(e){L.updateListValues(e,E.getAllowedTags(),E.getBlockedTags())}(i),function(e){D&&D.updateServiceWorkerConfig(m.getActiveEnvironment(),e,E.getAllowedTags(),E.getBlockedTags())}(i),x.fireConsentChangeCallbacks(()=>i)}function ve(t){fe(e.cookieTypes, 538t)}const Ce=M.utilities.getEnvironmentOverrideOrGlobalDefault(e.featureToggles,p,"honorGlobalPrivacyControl");if(null!=Ce&&Ce)"undefined"!=typeof navigator&&!0===navigator.globalPrivacyControl&&function(){const t=M.utilities.getEnvironmentOverrideOrGlobalDefault(e,p,"globalPrivacyControlCategories");0===t.length?ve("GPC"):fe(t,"GPC")}();return N.isInitialized=he,N.templateManager=B,N.cookieModal=I,N.consentCookies=se,N.banner=P,N.closeBanner=function(){try{P.closeEnsBanner()}catch(e){throw new Error("Ensighten API error: Your banner is not initialized in your client config "+ 539e);}},N.environment=m.activeEnvironment,N.environmentManager=m,N.getLog=function(){const e=[{location:window.location.href||null}
539,{cookie:document.cookie||null}];if(window.JSON){for(const t in H.complete)e.push({resource:H.complete[t].request});console&&console.dir&&console.dir(e),alert(JSON.stringify(e))}},N.getList=function(){const e=v.getList();return E.isLocalStorageSupported()&&(e.CUSTOM_ALLOW=E.getAllowedTags(),e.CUSTOM_BLOCK=E.getBlockedTags()),e},N.getVersion=X,N.getHistory=()=>(new le(A, 540O)).getHistory(),N.history=H,N.isWhitelist=function(){return M.utilities.isWhitelist(e,p)},N.allowTag=function(e){return E.allowTag(e),pe(),e},N.blockTag=function(e){return E.blockTag(e),pe(),e},N.clearTags=function(){E.clearTags(),pe()},N.modal=I,N.sendCCPAEvent=function(e,t){try{s.sendCCPAEvent(e,t)}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the modal cannot work without it. "+e):new Error("Ensighten API error: Your modal is not initialized in your client config. "+ 541e);}},N.doNotSellModal=t,N.openDoNotSellModal=function(){try{t.openModal()}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the do not sell modal cannot work without it. "+e):new Error("Ensighten API error: Your do not sell modal is not initialized in your client config. "+e);}},N.requestDataModal=o,N.openRequestDataModal=function(){try{o.openModal()}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the request data modal cannot work without it. "+ 542e):new Error("Ensighten API error: Your request data modal is not initialized in your client config. "+e);}},N.deleteDataModal=n,N.openDeleteDataModal=function(){try{n.openModal()}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the delete data modal cannot work without it. "+e):new Error("Ensighten API error: Your delete data modal is not initialized in your client config. "+e);}},N.openBanner=function(){try{P.openEnsBanner()}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the banner cannot work without it. "+ 543e):new Error("Ensighten API error: Your banner is not initialized in your client config. "+e);}},N.openModal=function(){try{I.openModal()}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the modal cannot work without it. "+e):new Error("Ensighten API error: Your modal is not initialized in your client config. "+e);}},N.closeModal=function(){try{const e=!0;I.closeModal(e)}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the modal cannot work without it. "+ 544e):new Error("Ensighten API error: Your modal is not initialized in your client config. "+e);}},N.gpcNotification=C,N.openGpcNotification=function(){try{C.openToast()}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the toast cannot work without it. "+e):new Error("Ensighten API error: Your toast is not initialized in your client config. "+e);}},N.closeGpcNotification=function(){try{C.closeToast()}catch(e){throw!1===f?new Error("Ensighten API Error: No gateway environment found, the toast cannot work without it. "+ 545e):new Error("Ensighten API error: Your toast is not initialized in your client config. "+e);}},N.options=_,N.reporter=b,N.resetEnvironment=()=>i(this,void 0,void 0,function*(){yield l.deleteCookie("LOCALE"),m.setEnvironment(),$(m.getActiveEnvironment())}),N.setOpenModal=function(t){I.openModal=t,function(){if(e.featureToggles.enableConsentModal){const e=document.getElementById("ensModalWrapper");u.utilities.validateRemoveChild(e)&&e.parentElement.removeChild(e)}}()},N.setOpenBanner=function(e){P.customElementSet= 546!0,P.openEnsBanner=e,function(){const e=document.getElementById("ensNotifyBanner");u.utilities.validateRemoveChild(e)&&e.parentElement.removeChild(e)}()},N.getUserPreferences=()=>{const e=m.getActiveEnvironment(),t=Y(e),o=l.getCategoryMapFromCookieTypes(t);for(const t of Object.keys(o))null==o[t]&&(o[t]=e.optVals[t].toString());return o},N.getCookieRetentionPeriod=se.getCookieRetentionPeriod,N.getUserPreference=e=>{const t=m.getActiveEnvironment(),o=l.getCookie(e);let i;return console.warn("The getUserPreference api is deprecated - use the getConsentStatus APIs instead"), 547i=null!=o?o:t.optVals[e],i},N.updatePreferences=pe,N.getPrivacyCookies=de,N.enableCSSMonitoring=!0===e.featureToggles.enableCSSMonitoring,N.monitorFormAction=!0===e.featureToggles.monitorFormAction,N.monitorAnchorTags=!0===e.featureToggles.monitorAnchorTags,N.blockAllCategories=ve,N.flushReports=()=>
547{if(null==b?void 0:b.reportingEnabled)try{b.stopTimer();const e=b.sendReport(),t=b.startTimer()||[];return e.concat(t)}catch(e){console.error("Ensighten API: Failed to flush report",e)}return[]},N.getServiceWorkerVersion= 548null==D?void 0:D.getServiceWorkerVersion,N.enableBotAndFraudProtectionReason=e.enableBotAndFraudProtectionReason,N.calculateCookieDomain=d.calculateCookieDomain,N.detectCookieDomain=d.detectCookieDomain,N.getInteractedTags=()=>{if(p)return E.getInteractedTags();throw new Error("Ensighten API: no active environment available (getInteractedTags)");},N.addCustomReportingEvent=function(e){return h.addCustomEvent(e)},N.registerConsentChangeCallback=I.constructor.registerConsentChangeCallback,N}},[514](e, 549t,o){o.r(t),o.d(t,{utilities:()=>i});const i=new class{constructor(){this.overriddenFunctionProperty="ensOverriddenFunctions",this.unbound={},this.watcher={enumerable:!1,configurable:!0,writable:!0,value:function(e,t){let o=this[e],i=o;const n=function(){if("function"==typeof this.getAttribute){const t=this.getAttribute(e);t&&(i=t)}return i},s=function(n){return o=i,i=t.call(this,e,o,n),this.setAttribute&&this.setAttribute(e,i,!0),i};delete this[e]&&Object.defineProperty(this,e,{get:n,set:s,enumerable:!0, 550configurable:!0})}}}addStyleElement(e){const t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.appendChild(document.createTextNode(e)),t.appendChild(o)}apiToSource(e){return e.toUpperCase()+"_MANAGER"}couldNotBind(e){this.unbound[e]=!0}bind(e,t,o){return o=Array.prototype.slice.call(arguments),e=o.shift(),t=o.shift(),function(){return e.apply(t,o.concat(Array.prototype.slice.call(arguments)))}}cookieNameToCookieType(e,t){return t.replace(e.toUpperCase()+ 551"_ENSIGHTEN_PRIVACY_","")}getReferrer(){return window.location.toString()}getPageUrl(){return window.location.protocol+"//"+window.location.host+window.location.pathname}domReady(e){let t=!1;const o=function(){t||"function"!=typeof document.addEventListener&&"load"!==event.type&&"complete"!==document.readyState||(t=!0,"function"==typeof document.addEventListener&&(document.removeEventListener("DOMContentLoaded",o),window.removeEventListener("load",o)),e())};"complete"===document.readyState?e():(document.addEventListener("DOMContentLoaded", 552o),window.addEventListener("load",o))}getCookieTLD(){return["ac","ad","co","ed","go","gr","lg","ne","or","com","co","org","edu","info","gov","net","mod","nhs","plc","sch","ltd"]}getCookieSLD(){return["af","ax","al","dz","as","ad","ao","ai","aq","ag","ar","am","aw","au","at","az","bh","bs","bd","bb","by","be","bz","bj","bm","bt","bo","bq","ba","bw","bv","br","io","bn","bg","bf","bi","kh","cm","ca","cv","ky","cf","td","cl","cn","cx","cc","co","km","cg","cd","ck","cr","ci","hr","cu","cw","cy","cz","dk", 553"dj","dm","do","ec","eg","sv","gq","er","ee","et","fk","fo","fj","fi","fr","gf","pf","tf","ga","gm","ge","de","gh","gi","gr","gl","gd","gp","gu","gt","gg","gn","gw","gy","ht","hm","va","hn","hk","hu","is","in","id","ir","iq","ie","im","il","it","jm","jp","je","jo","kz","ke","ki","kp","kr","kw","kg","la","lv","lb","ls","lr","ly","li","lt","lu","mo","mk","mg","mw","my","mv","ml","mt","mh","mq","mr","mu","yt","mx","fm","md","mc","mn","me","ms","ma","mz","mm","na","nr","np","nl","nc","nz","ni","ne","ng", 554"nu","nf","mp","no","om","pk","pw","ps","pa","pg","py","pe","ph","pn","pl","pt","pr","qa","ro","ru","rw","bl","sh","kn","lc","mf","pm","vc","ws","sm","st","sa","sn","rs","sc","sl","sg","sx","sk","si","sb","so","za","gs","ss","es","lk","sd","sr","sj","sz","se","ch","sy","tw","tj","tz","th","tl","tg","tk","to","tt","tn","tr","tm","tc","tv","ug","ua","uk","ae","gb","us","um","uy","uz","vu","ve","vn","vg","vi","wf","eh","ye","zm","zw"]}getBrowserLocale(){let e=window.navigator.userLanguage||window.navigator.language; 555return e?(e=e.split("-"),e=e[0]&&e[1]?e[0]+"-"+e[1].toUpperCase():e[0]):e="en",e}getFunctionString(e){return!e||"function"!=typeof e&&"object"!=typeof e?"":e+""}getUrlParamVal(e){let t;const o={},i=window.location.href.slice(window.location.href.indexOf("?")+1).split("\x26");for(let e=0;e<i.length;e++)t=i[e].split("\x3d"),o[t[0]]=t[1];let n="";return o[e]&&(n=o[e]),n}isMobileSafari(){const e=window.navigator.userAgent,t=!!e.match(/iP(ad|od|hone)/i),o=!!e.match(/WebKit/i);return t&&o&&!e.match(/CriOS/i)}isSafari(){return window.navigator&& 556window.navigator.userAgent.toLowerCase().indexOf("safari")>-1&&-1===window.navigator.userAgent.toLowerCase().indexOf("chromium/")&&-1===window.navigator.userAgent.toLowerCase().indexOf("chrome/")}isChrome(){return window.navigator&&window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1}isIE(){return"ActiveXObject"in window}isNative(e){let t=new RegExp("function\\s+.+?\\(\\s*\\)\\s*{\\s*\\[native code\\]\\s*}"),o=new RegExp("function\\s+.+?\\(\\s*\\)\\s*{\\s*\\/\\*\\s*source code not available\\s*\\*\\/\\s*}"), 557i=this.getFunctionString(e);const n=t.test(i)||o.test(i);return t=o=i=null,n}validateRemoveChild(e){return e instanceof Node&&e.parentNode instanceof Node&&null!=document.body&&document.body.contains(e)}
557isFunctionOverridden(e,t){return e.hasOwnProperty(this.overriddenFunctionProperty)&&e[this.overriddenFunctionProperty][t]}handleTrustedHTML(e,t){if(null==e)return e;const o=""+e.toString(),i=t(o);return i.toString()===o?e:i}markFunctionOverridden(e,t){e.hasOwnProperty(this.overriddenFunctionProperty)|| 558(e[this.overriddenFunctionProperty]={}),e[this.overriddenFunctionProperty][t]=!0}}},[150](e,t,o){var i=o(134).h32;t.descriptorChecksum=function(e){return i(e,0).toNumber()>>8&255},t.blockChecksum=function(e){return i(e,0).toNumber()},t.streamChecksum=function(e,t){return null===e?t.digest().toNumber():(null===t&&(t=i(0)),t.update(e))},t.readUInt32LE=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0};o(898).UINT32;Math.imul||(Math.imul=function(e,t){var o=65535&e,i=65535&t;return o*i+ 559((e>>>16)*i+o*(t>>>16)<<16)|0}),t.uncompress=function(e,t,o,i){for(var n=o=o||0,s=i=i||e.length-o,r=0;n<s;){var a=e[n++],l=a>>4;if(l>0){for(var h=l+240;255===h;)l+=h=e[n++];for(var c=n+l;n<c;)t[r++]=e[n++];if(n===s)return r}var d=e[n++]|e[n++]<<8;if(0===d||d>r)return-(n-2);var u=15&a;for(h=u+240;255===h;)u+=h=e[n++];var g=r-d;for(c=r+u+4;r<c;)t[r++]=t[g++]}return r};var n=2113929216,s=15;function r(e,o,i,r,a,l){var h=a,c=l-a,d=0;if(e.length>=n)throw new Error("input too large");if(e.length>12){var u= 560t.compressBound(e.length);if(c<u)throw Error("output too small: "+c+" \x3c "+u);for(var g=67,p=e.length-12;i+4<p;){var m=e[i+1]<<8|e[i],f=e[i+3]<<8|e[i+2],y=Math.imul(m|f<<16,2654435761)>>>16,v=r[y]-1;if(r[y]=i+1,v<0||i-v>>>16>0||(e[v+3]<<8|e[v+2])!=f||(e[v+1]<<8|e[v])!=m)i+=g++>>6;else{g=67;var C=i-d,w=i-v;v+=4;for(var b=i+=4;i<p&&e[i]==e[v];)i++,v++;var M=(b=i-b)<15?b:15;if(C>=s){o[h++]=240+M;for(var E=C-s;E>254;E-=255)o[h++]=255;o[h++]=E}else o[h++]=(C<<4)+M;for(var k=0;k<C;k++)o[h++]=e[d+k];if(o[h++]= 561w,o[h++]=w>>8,b>=15){for(b-=15;b>=255;)b-=255,o[h++]=255;o[h++]=b}d=i}}}if(0==d)return 0;if((C=e.length-d)>=s){o[h++]=240;for(var S=C-s;S>254;S-=255)o[h++]=255;o[h++]=S}else o[h++]=C<<4;for(i=d;i<e.length;)o[h++]=e[i++];return h}t.compressBound=function(e){return e>n?0:e+e/255+16|0},t.compress=function(e,t,o,i){for(var n=new Array(65536),s=0;s<65536;s++)n[s]=0;return r(e,t,0,n,o||0,i||t.length)},t.compressHC=t.compress,t.compressDependent=r},[897](e,t,o){e.exports=o(813)},[813](e,t,o){var i=o(287).hp; 562t.ZM=407708164,t.Cw=i.alloc(4),t.Cw.writeUInt32LE(t.ZM,0,!1),t.UW=0,t.B_=i.alloc(4),t.B_.writeUInt32LE(t.UW,0,!1),t.utils=o(150)},[526](e,t){t.byteLength=function(e){var t=a(e),o=t[0],i=t[1];return 3*(o+i)/4-i},t.toByteArray=function(e){var t,o,s=a(e),r=s[0],l=s[1],h=new n(function(e,t,o){return 3*(t+o)/4-o}(0,r,l)),c=0,d=l>0?r-4:r;for(o=0;o<d;o+=4)t=i[e.charCodeAt(o)]<<18|i[e.charCodeAt(o+1)]<<12|i[e.charCodeAt(o+2)]<<6|i[e.charCodeAt(o+3)],h[c++]=t>>16&255,h[c++]=t>>8&255,h[c++]=255&t;2===l&&(t= 563i[e.charCodeAt(o)]<<2|i[e.charCodeAt(o+1)]>>4,h[c++]=255&t);1===l&&(t=i[e.charCodeAt(o)]<<10|i[e.charCodeAt(o+1)]<<4|i[e.charCodeAt(o+2)]>>2,h[c++]=t>>8&255,h[c++]=255&t);return h},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],r=16383,a=0,l=i-n;a<l;a+=r)s.push(h(e,a,a+r>l?l:a+r));1===n?(t=e[i-1],s.push(o[t>>2]+o[t<<4&63]+"\x3d\x3d")):2===n&&(t=(e[i-2]<<8)+e[i-1],s.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"\x3d"));return s.join("")};for(var o=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array: 564Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)o[r]=s[r],i[s.charCodeAt(r)]=r;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("\x3d");return-1===o&&(o=t),[o,o===t?0:4-o%4]}function l(e){return o[e>>18&63]+o[e>>12&63]+o[e>>6&63]+o[63&e]}function h(e,t,o){for(var i,n=[],s=t;s<o;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),n.push(l(i));return n.join("")}i["-".charCodeAt(0)]=62, 565i["_".charCodeAt(0)]=63},[788](e,t,o){var i=o(287).hp;var n=o(931);function s(e,t){return void 0===t&&(t="utf8"),i.isBuffer(e)?a(e.toString("base64")):a(i.from(e,t).toString("base64"))}function r(e){return e=e.toString(),n.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function a(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var l=s;l.encode=s,l.decode=function(e,t){return void 0===t&&(t="utf8"),i.from(r(e),"base64").toString(t)},l.toBase64=r,l.fromBase64=a,l.toBuffer=function(e){return i.from(r(e), 566"base64")},t.default=l},[931](e,t,o){var i=o(287).hp;
vendor: 19,999 bytes, lines 566-605
566Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length,o=t%4;if(!o)return e;var n=t,s=4-o,r=t+s,a=i.alloc(r);for(a.write(e);s--;)a.write("\x3d",n++);return a.toString()}},[711](e,t,o){e.exports=o(788).default,e.exports.default=e.exports},[287](e,t,o){var i=o(526),n=o(251),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;var r=2147483647;function a(e){if(e> 567r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,o){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return h(e,t,o)}function h(e,t,o){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var o=0|m(e,t), 568i=a(o),n=i.write(e,t);n!==o&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(q(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer))return g(e,t,o);if("undefined"!=typeof SharedArrayBuffer&&(q(e,SharedArrayBuffer)||e&&q(e.buffer, 569SharedArrayBuffer)))return g(e,t,o);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return l.from(i,t,o);var n=function(e){if(l.isBuffer(e)){var t=0|p(e.length),o=a(t);return 0===o.length||e.copy(o,0,0,t),o}if(void 0!==e.length)return"number"!=typeof e.length||G(e.length)?a(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&& 570null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"');}function d(e){return c(e),a(e<0?0:0|p(e))}function u(e){for(var t= 571e.length<0?0:0|p(e.length),o=a(t),i=0;i<t;i+=1)o[i]=255&e[i];return o}function g(e,t,o){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(o||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===t&&void 0===o?new Uint8Array(e):void 0===o?new Uint8Array(e,t):new Uint8Array(e,t,o),Object.setPrototypeOf(i,l.prototype),i}function p(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ 572r.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var o=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===o)return 0;for(var n=!1;;)switch(t){case "ascii":case "latin1":case "binary":return o;case "utf8":case "utf-8":return U(e).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2* 573o;case "hex":return o>>>1;case "base64":return H(e).length;default:if(n)return i?-1:U(e).length;t=(""+t).toLowerCase(),n=!0}}function f(e,t,o){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if((o>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case "hex":return O(this,t,o);case "utf8":case "utf-8":return T(this,t,o);case "ascii":return L(this,t,o);case "latin1":case "binary":return A(this,t,o);case "base64":return S(this, 574t,o);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return R(this,t,o);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,o){var i=e[t];e[t]=e[o],e[o]=i}function v(e,t,o,i,n){if(0===e.length)return-1;if("string"==typeof o?(i=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),G(o=+o)&&(o=n?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(n)return-1;o=e.length-1}else if(o<0){if(!n)return-1;o=0}if("string"==typeof t&&(t=l.from(t, 575i)),l.isBuffer(t))return 0===t.length?-1:C(e,t,o,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):C(e,[t],o,i,n);throw new TypeError("val must be string, number or Buffer");}function C(e,t,o,i,n){var s,r=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;r=2,a/=2,l/= 5762,o/=2}function h(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(n){var c=-1;for(s=o;s<a;s++)if(h(e,s)===h(t,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===l)return c*r}else-1!==c&&(s-=s-c),c=-1}else for(o+l>a&&(o=a-l),s=o;s>=0;s--){for(var d=!0,u=0;u<l;u++)if(h(e,s+u)!==h(t,u)){d=!1;break}if(d)return s}return-1}function w(e,t,o,i){o=Number(o)||0;var n=e.length-o;i?(i=Number(i))>n&&(i=n):i=n;var s=t.length;i>s/2&&(i=s/2);for(var r=0;r<i;++r){var a=parseInt(t.substr(2*r,2),16);if(G(a))return r;e[o+r]=a}return r} 577function b(e,t,o,i){return F(U(t,e.length-o),e,o,i)}function M(e,t,o,i){return F(function(e){for(var t=[],o=0;o<e.length;++o)t.push(255&e.charCodeAt(o));return t}(t),e,o,i)}function E(e,t,o,i){return F(H(t),e,o,i)}function k(e,t,o,i){return F(function(e,t){for(var o,i,n,s=[],r=0;r<e.length&&!((t-=2)<0);++r)i=(o=e.charCodeAt(r))>>8,n=o%256,s.push(n),s.push(i);return s}(t,e.length-o),e,o,i)}function S(e,t,o){return 0===t&&o===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,o))}function T(e,t, 578o){o=Math.min(e.length,o);for(var i=[],n=t;n<o;){var s,r,a,l,h=e[n],c=null,d=h>239?4:h>223?3:h>191?2:1;if(n+d<=o)switch(d){case 1:h<128&&(c=h);break;case 2:128==(192&(s=e[n+1]))&&(l=(31&h)<<6|63&s)>127&&(c=l);break;case 3:s=e[n+1],r=e[n+2],128==(192&s)&&128==(192&r)&&(l=(15&h)<<12|(63&s)<<6|63&r)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:s=e[n+1],r=e[n+2],a=e[n+3],128==(192&s)&&128==(192&r)&&128==(192&a)&&(l=(15&h)<<18|(63&s)<<12|(63&r)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c> 57965535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=d}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var o="",i=0;for(;i<t;)o+=String.fromCharCode.apply(String,e.slice(i,i+=D));return o}(i)}l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console|| 580"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,o){return h(e,t,o)},Object.setPrototypeOf(l.prototype, 581Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,o){return function(e,t,o){return c(e),e<=0?a(e):void 0!==t?"string"==typeof o?a(e).fill(t,o):a(e).fill(t):a(e)}(e,t,o)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)|| 582!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var o=e.length,i=t.length,n=0,s=Math.min(o,i);n<s;++n)if(e[n]!==t[n]){o=e[n],i=t[n];break}return o<i?-1:i<o?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers'); 583if(0===e.length)return l.alloc(0);var o;if(void 0===t)for(t=0,o=0;o<e.length;++o)t+=e[o].length;var i=l.allocUnsafe(t),n=0;for(o=0;o<e.length;++o){var s=e[o];if(q(s,Uint8Array))n+s.length>i.length?l.from(s).copy(i,n):Uint8Array.prototype.set.call(i,s,n);else{if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,n)}n+=s.length}return i},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits"); 584for(var t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length; 585return 0===e?"":0===arguments.length?T(this,0,e):f.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",o=t.IS;return e=this.toString("hex",0,o).replace(/(.{2})/g,"$1 ").trim(),this.length>o&&(e+=" ... "),"\x3cBuffer "+e+"\x3e"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,o,i, 586n){if(q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===o&&(o=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||o>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=o)return 0;if(i>=n)return-1;if(t>=o)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(i>>>=0),r=(o>>>=0)-(t>>>=0),a=Math.min(s,r), 587h=this.slice(i,n),c=e.slice(t,o),d=0;d<a;++d)if(h[d]!==c[d]){s=h[d],r=c[d];break}return s<r?-1:r<s?1:0},l.prototype.includes=function(e,t,o){return-1!==this.indexOf(e,t,o)},l.prototype.indexOf=function(e,t,o){return v(this,e,t,o,!0)},l.prototype.lastIndexOf=function(e,t,o){return v(this,e,t,o,!1)},l.prototype.write=function(e,t,o,i){if(void 0===t)i="utf8",o=this.length,t=0;else if(void 0===o&&"string"==typeof t)i=t,o=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); 588t>>>=0,isFinite(o)?(o>>>=0,void 0===i&&(i="utf8")):(i=o,o=void 0)}var n=this.length-t;if((void 0===o||o>n)&&(o=n),e.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case "hex":return w(this,e,t,o);case "utf8":case "utf-8":return b(this,e,t,o);case "ascii":case "latin1":case "binary":return M(this,e,t,o);case "base64":return E(this,e,t,o);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return k(this,e, 589t,o);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function L(e,t,o){var i="";o=Math.min(e.length,o);for(var n=t;n<o;++n)i+=String.fromCharCode(127&e[n]);return i}function A(e,t,o){var i="";o=Math.min(e.length,o);for(var n=t;n<o;++n)i+=String.fromCharCode(e[n]);return i}function O(e,t,o){var i=e.length;(!t||t<0)&&(t=0),(!o||o<0||o>i)&&(o=i);for(var n= 590"",s=t;s<o;++s)n+=V[e[s]];return n}function R(e,t,o){for(var i=e.slice(t,o),n="",s=0;s<i.length-1;s+=2)n+=String.fromCharCode(i[s]+256*i[s+1]);return n}function _(e,t,o){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>o)throw new RangeError("Trying to access beyond buffer length");}function B(e,t,o,i,n,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<s)throw new RangeError('"value" argument is out of bounds');if(o+i>e.length)throw new RangeError("Index out of range"); 591}function P(e,t,o,i,n,s){if(o+i>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range");}function x(e,t,o,i,s){return t=+t,o>>>=0,s||P(e,0,o,4),n.write(e,t,o,i,23,4),o+4}function I(e,t,o,i,s){return t=+t,o>>>=0,s||P(e,0,o,8),n.write(e,t,o,i,52,8),o+8}l.prototype.slice=function(e,t){var o=this.length;(e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i, 592l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,o){e>>>=0,t>>>=0,o||_(e,t,this.length);for(var i=this[e],n=1,s=0;++s<t&&(n*=256);)i+=this[e+s]*n;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,o){e>>>=0,t>>>=0,o||_(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE= 593function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+ 5943])},l.prototype.readIntLE=function(e,t,o){e>>>=0,t>>>=0,o||_(e,t,this.length);for(var i=this[e],n=1,s=0;++s<t&&(n*=256);)i+=this[e+s]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,o){e>>>=0,t>>>=0,o||_(e,t,this.length);for(var i=t,n=1,s=this[e+--i];i>0&&(n*=256);)s+=this[e+--i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e, 595t){e>>>=0,t||_(e,2,this.length);var o=this[e]|this[e+1]<<8;return 32768&o?4294901760|o:o},l.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);var o=this[e+1]|this[e]<<8;return 32768&o?4294901760|o:o},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>= 5960,t||_(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,o,i){(e=+e,t>>>=0,o>>>=0,i)||B(this,e,t,o,Math.pow(2,8*o)-1,0);var n=1,s=0;for(this[t]=255&e;++s< 597o&&(n*=256);)this[t+s]=e/n&255;return t+o},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,o,i){(e=+e,t>>>=0,o>>>=0,i)||B(this,e,t,o,Math.pow(2,8*o)-1,0);var n=o-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+o},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,2,65535,0),this[t]=255&e,this[t+ 5981]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+ 5992]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,o,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*o-1);B(this,e,t,o,n-1,-n)}var s=0,r=1,a=0;for(this[t]=255&e;++s<o&&(r*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/r|0)-a&255;return t+o},l.prototype.writeIntBE=function(e,t,o,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*o-1);B(this,e,t,o,n-1,-n)}var s=o-1,r=1,a=0;for(this[t+s]=255&e;--s>=0&&(r*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/r|0)-a&255;return t+o},l.prototype.writeInt8= 600function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+ 6013]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,o){return e=+e,t>>>=0,o||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,o){return x(this,e,t,!0,o)},l.prototype.writeFloatBE=function(e,t,o){return x(this,e,t,!1,o)},l.prototype.writeDoubleLE=function(e,t,o){return I(this,e,t,!0,o)},l.prototype.writeDoubleBE=function(e,t,o){return I(this,e,t,!1,o)},l.prototype.copy=function(e, 602t,o,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(o||(o=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<o&&(i=o),i===o)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-o&&(i=e.length-t+o);var n=i-o;return this===e&&"function"== 603typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,o,i):Uint8Array.prototype.set.call(e,this.subarray(o,i),t),n},l.prototype.fill=function(e,t,o,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,o=this.length):"string"==typeof o&&(i=o,o=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var n=e.charCodeAt(0);("utf8"===i&&n<128||"latin1"===i)&& 604(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<o)throw new RangeError("Out of range index");if(o<=t)return this;var s;if(t>>>=0,o=void 0===o?this.length:o>>>0,e||(e=0),"number"==typeof e)for(s=t;s<o;++s)this[s]=e;else{var r=l.isBuffer(e)?e:l.from(e,i),a=r.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<o-t;++s)this[s+t]=r[s%a]}return this};var N=/[^+/0-9A-Za-z-_]/g;function U(e,t){var o; 605t=t||1/0;for(var i=e.length,n=null,s=[],r=0;r<i;++r){if((o=e.charCodeAt(r))>
vendor: 21,429 bytes, lines 605-647
60555295&&o<57344){if(!n){if(o>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(r+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=o;continue}if(o<56320){(t-=3)>-1&&s.push(239,191,189),n=o;continue}o=65536+(n-55296<<10|o-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,o<128){if((t-=1)<0)break;s.push(o)}else if(o<2048){if((t-=2)<0)break;s.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;s.push(o>>12|224,o>> 6066&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return s}function H(e){return i.toByteArray(function(e){if((e=(e=e.split("\x3d")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="\x3d";return e}(e))}function F(e,t,o,i){for(var n=0;n<i&&!(n+o>=t.length||n>=e.length);++n)t[n+o]=e[n];return n}function q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&& 607e.constructor.name===t.name}function G(e){return e!=e}var V=function(){for(var e="0123456789abcdef",t=new Array(256),o=0;o<16;++o)for(var i=16*o,n=0;n<16;++n)t[i+n]=e[o]+e[n];return t}()},[898](e,t,o){t.UINT32=o(741),t.UINT64=o(174)},[741](e,t){var o;!function(){i(Math.pow(36,5)),i(Math.pow(16,7)),i(Math.pow(10,9)),i(Math.pow(2,30)),i(36),i(16),i(10),i(2);function i(e,t){return this instanceof i?(this._low=0,this._high=0,this.remainder=null,void 0===t?s.call(this,e):"string"==typeof e?r.call(this, 608e,t):void n.call(this,e,t)):new i(e,t)}function n(e,t){return this._low=0|e,this._high=0|t,this}function s(e){return this._low=65535&e,this._high=e>>>16,this}function r(e,t){var o=parseInt(e,t||10);return this._low=65535&o,this._high=o>>>16,this}i.prototype.fromBits=n,i.prototype.fromNumber=s,i.prototype.fromString=r,i.prototype.toNumber=function(){return 65536*this._high+this._low},i.prototype.toString=function(e){return this.toNumber().toString(e||10)},i.prototype.add=function(e){var t=this._low+ 609e._low,o=t>>>16;return o+=this._high+e._high,this._low=65535&t,this._high=65535&o,this},i.prototype.subtract=function(e){return this.add(e.clone().negate())},i.prototype.multiply=function(e){var t,o,i=this._high,n=this._low,s=e._high,r=e._low;return t=(o=n*r)>>>16,t+=i*r,t&=65535,t+=n*s,this._low=65535&o,this._high=65535&t,this},i.prototype.div=function(e){if(0==e._low&&0==e._high)throw Error("division by zero");if(0==e._high&&1==e._low)return this.remainder=new i(0),this;if(e.gt(this))return this.remainder= 610this.clone(),this._low=0,this._high=0,this;if(this.eq(e))return this.remainder=new i(0),this._low=1,this._high=0,this;for(var t=e.clone(),o=-1;!this.lt(t);)t.shiftLeft(1,!0),o++;for(this.remainder=this.clone(),this._low=0,this._high=0;o>=0;o--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),o>=16?this._high|=1<<o-16:this._low|=1<<o);return this},i.prototype.negate=function(){var e=1+(65535&~this._low);return this._low=65535&e,this._high=~this._high+(e>>>16)&65535,this},i.prototype.equals= 611i.prototype.eq=function(e){return this._low==e._low&&this._high==e._high},i.prototype.greaterThan=i.prototype.gt=function(e){return this._high>e._high||!(this._high<e._high)&&this._low>e._low},i.prototype.lessThan=i.prototype.lt=function(e){return this._high<e._high||!(this._high>e._high)&&this._low<e._low},i.prototype.or=function(e){return this._low|=e._low,this._high|=e._high,this},i.prototype.and=function(e){return this._low&=e._low,this._high&=e._high,this},i.prototype.not=function(){return this._low= 61265535&~this._low,this._high=65535&~this._high,this},i.prototype.xor=function(e){return this._low^=e._low,this._high^=e._high,this},i.prototype.shiftRight=i.prototype.shiftr=function(e){return e>16?(this._low=this._high>>e-16,this._high=0):16==e?(this._low=this._high,this._high=0):(this._low=this._low>>e|this._high<<16-e&65535,this._high>>=e),this},i.prototype.shiftLeft=i.prototype.shiftl=function(e,t){return e>16?(this._high=this._low<<e-16,this._low=0,t||(this._high&=65535)):16==e?(this._high=this._low, 613this._low=0):(this._high=this._high<<e|this._low>>16-e,this._low=this._low<<e&65535,t||(this._high&=65535)),this},i.prototype.rotateLeft=i.prototype.rotl=function(e){var t=this._high<<16|this._low;return t=t<<e|t>>>32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.rotateRight=i.prototype.rotr=function(e){var t=this._high<<16|this._low;return t=t>>>e|t<<32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.clone=function(){return new i(this._low,this._high)},void 0===(o=function(){return i}.apply(t, 614[]))||(e.exports=o)}()},[174](e,t){var o;!function(){var i={16:s(Math.pow(16,5)),10:s(Math.pow(10,5)),2:s(Math.pow(2,5))},n={16:s(16),10:s(10),2:s(2)};function s(e,t,o,i){return this instanceof s?(this.remainder=null,"string"==typeof e?l.call(this,e,t):void 0===t?a.call(this,e):void r.apply(this,arguments)):new s(e,t,o,i)}function r(e,t,o,i){return void 0===o?(this._a00=65535&e,this._a16=e>>>16,this._a32=65535&t,this._a48=t>>>16,this):(this._a00=0|e,this._a16=0|t,this._a32=0|o,this._a48=0|i,this)} 615function a(e){return this._a00=65535&e,this._a16=e>>>16,this._a32=0,this._a48=0,this}function l(e,t){t=t||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var o=i[t]||new s(Math.pow(t,5)),n=0,r=e.length;n<r;n+=5){var a=Math.min(5,r-n),l=parseInt(e.slice(n,n+a),t);this.multiply(a<5?new s(Math.pow(t,a)):o).add(new s(l))}return this}s.prototype.fromBits=r,s.prototype.fromNumber=a,s.prototype.fromString=l,s.prototype.toNumber=function(){return 65536*this._a16+this._a00},s.prototype.toString=function(e){var t= 616n[e=e||10]||new s(e);if(!this.gt(t))return this.toNumber().toString(e);for(var o=this.clone(),i=new Array(64),r=63;r>=0&&(o.div(t),i[r]=o.remainder.toNumber().toString(e),o.gt(t));r--);return i[r-1]=o.toNumber().toString(e),i.join("")},s.prototype.add=function(e){var t=this._a00+e._a00,o=t>>>16,i=(o+=this._a16+e._a16)>>>16,n=(i+=this._a32+e._a32)>>>16;return n+=this._a48+e._a48,this._a00=65535&t,this._a16=65535&o,this._a32=65535&i,this._a48=65535&n,this},s.prototype.subtract=function(e){return this.add(e.clone().negate())}, 617s.prototype.multiply=function(e){var t=this._a00,o=this._a16,i=this._a32,n=this._a48,s=e._a00,r=e._a16,a=e._a32,l=t*s,h=l>>>16,c=(h+=t*r)>>>16;h&=65535,c+=(h+=o*s)>>>16;var d=(c+=t*a)>>>16;return c&=65535,d+=(c+=o*r)>>>16,c&=65535,d+=(c+=i*s)>>>16,d+=t*e._a48,d&=65535,d+=o*a,d&=65535,d+=i*r,d&=65535,d+=n*s,this._a00=65535&l,this._a16=65535&h,this._a32=65535&c,this._a48=65535&d,this},s.prototype.div=function(e){if(0==e._a16&&0==e._a32&&0==e._a48){if(0==e._a00)throw Error("division by zero");if(1== 618e._a00)return this.remainder=new s(0),this}if(e.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(e))return this.remainder=new s(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var t=e.clone(),o=-1;!this.lt(t);)t.shiftLeft(1,!0),o++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;o>=0;o--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),o>=48?this._a48|=1<<o-48:o>=32?this._a32|=1<< 619o-32:o>=16?this._a16|=1<<o-16:this._a00|=1<<o);return this},s.prototype.negate=function(){var e=1+(65535&~this._a00);return this._a00=65535&e,e=(65535&~this._a16)+(e>>>16),this._a16=65535&e,e=(65535&~this._a32)+(e>>>16),this._a32=65535&e,this._a48=~this._a48+(e>>>16)&65535,this},s.prototype.equals=s.prototype.eq=function(e){return this._a48==e._a48&&this._a00==e._a00&&this._a32==e._a32&&this._a16==e._a16},s.prototype.greaterThan=s.prototype.gt=function(e){return this._a48>e._a48||!(this._a48<e._a48)&& 620(this._a32>e._a32||!(this._a32<e._a32)&&(this._a16>e._a16||!(this._a16<e._a16)&&this._a00>e._a00))},s.prototype.lessThan=s.prototype.lt=function(e){return this._a48<e._a48||!(this._a48>e._a48)&&(this._a32<e._a32||!(this._a32>e._a32)&&(this._a16<e._a16||!(this._a16>e._a16)&&this._a00<e._a00))},s.prototype.or=function(e){return this._a00|=e._a00,this._a16|=e._a16,this._a32|=e._a32,this._a48|=e._a48,this},s.prototype.and=function(e){return this._a00&=e._a00,this._a16&=e._a16,this._a32&=e._a32,this._a48&= 621e._a48,this},s.prototype.xor=function(e){return this._a00^=e._a00,this._a16^=e._a16,this._a32^=e._a32,this._a48^=e._a48,this},s.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},s.prototype.shiftRight=s.prototype.shiftr=function(e){return(e%=64)>=48?(this._a00=this._a48>>e-48,this._a16=0,this._a32=0,this._a48=0):e>=32?(e-=32,this._a00=65535&(this._a32>>e|this._a48<<16-e),this._a16=this._a48>>e&65535,this._a32= 6220,this._a48=0):e>=16?(e-=16,this._a00=65535&(this._a16>>e|this._a32<<16-e),this._a16=65535&(this._a32>>e|this._a48<<16-e),this._a32=this._a48>>e&65535,this._a48=0):(this._a00=65535&(this._a00>>e|this._a16<<16-e),this._a16=65535&(this._a16>>e|this._a32<<16-e),this._a32=65535&(this._a32>>e|this._a48<<16-e),this._a48=this._a48>>e&65535),this},s.prototype.shiftLeft=s.prototype.shiftl=function(e,t){return(e%=64)>=48?(this._a48=this._a00<<e-48,this._a32=0,this._a16=0,this._a00=0):e>=32?(e-=32,this._a48= 623this._a16<<e|this._a00>>16-e,this._a32=this._a00<<e&65535,this._a16=0,this._a00=0):e>=16?(e-=16,this._a48=this._a32<<e|this._a16>>16-e,this._a32=65535&(this._a16<<e|this._a00>>16-e),this._a16=this._a00<<e&65535,this._a00=0):(this._a48=this._a48<<e|this._a32>>16-e,this._a32=65535&(this._a32<<e|this._a16>>16-e),this._a16=65535&(this._a16<<e|this._a00>>16-e),this._a00=this._a00<<e&65535),t||(this._a48&=65535),this},s.prototype.rotateLeft=s.prototype.rotl=function(e){if(0==(e%=64))return this;if(e>=32){var t= 624this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var o=this._a48<<16|this._a32,i=this._a16<<16|this._a00,n=o<<e|i>>>32-e,s=i<<e|o>>>32-e;return this._a00=65535&s,this._a16=s>>>16,this._a32=65535&n,this._a48=n>>>16,this},s.prototype.rotateRight=s.prototype.rotr=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var o=this._a48<< 62516|this._a32,i=this._a16<<16|this._a00,n=o>>>e|i<<32-e,s=i>>>e|o<<32-e;return this._a00=65535&s,this._a16=s>>>16,this._a32=65535&n,this._a48=n>>>16,this},s.prototype.clone=function(){return new s(this._a00,this._a16,this._a32,this._a48)},void 0===(o=function(){return s}.apply(t,[]))||(e.exports=o)}()},[251](e,t){t.read=function(e,t,o,i,n){var s,r,a=8*n-i-1,l=(1<<a)-1,h=l>>1,c=-7,d=o?n-1:0,u=o?-1:1,g=e[t+d];for(d+=u,s=g&(1<<-c)-1,g>>=-c,c+=a;c>0;s=256*s+e[t+d],d+=u,c-=8);for(r=s&(1<<-c)-1,s>>=-c,c+= 626i;c>0;r=256*r+e[t+d],d+=u,c-=8);if(0===s)s=1-h;else{if(s===l)return r?NaN:1/0*(g?-1:1);r+=Math.pow(2,i),s-=h}return(g?-1:1)*r*Math.pow(2,s-i)},t.write=function(e,t,o,i,n,s){var r,a,l,h=8*s-n-1,c=(1<<h)-1,d=c>>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:s-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,r=c):(r=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-r))<1&&(r--,l*=2),(t+=r+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(r++,l/=2),r+d>=c?(a=0,r=c):r+d>=1?(a= 627(t*l-1)*Math.pow(2,n),r+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),r=0));n>=8;e[o+g]=255&a,g+=p,a/=256,n-=8);for(r=r<<n|a,h+=n;h>0;e[o+g]=255&r,g+=p,r/=256,h-=8);e[o+g-p]|=128*m}},[134](e,t,o){e.exports={h32:o(492),h64:o(470)}},[492](e,t,o){var i=o(287).hp,n=o(898).UINT32;n.prototype.xxh_update=function(e,t){var o,i,n=r._low,a=r._high;o=(i=e*n)>>>16,o+=t*n,o&=65535,o+=e*a;var l=this._low+(65535&i),h=l>>>16,c=(h+=this._high+(65535&o))<<16|65535&l;h=(c=c<<13|c>>>19)>>>16,o=(i=(l=65535&c)*(n=s._low))>>> 62816,o+=h*n,o&=65535,o+=l*(a=s._high),this._low=65535&i,this._high=65535&o};var s=n("2654435761"),r=n("2246822519"),a=n("3266489917"),l=n("668265263"),h=n("374761393");function c(){return 2==arguments.length?(new c(arguments[1])).update(arguments[0]).digest():this instanceof c?void d.call(this,arguments[0]):new c(arguments[0])}function d(e){return this.seed=e instanceof n?e.clone():n(e),this.v1=this.seed.clone().add(s).add(r),this.v2=this.seed.clone().add(r),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s), 629this.total_len=0,this.memsize=0,this.memory=null,this}c.prototype.init=d,c.prototype.update=function(e){var t,o="string"==typeof e;o&&(e=function(e){for(var t=[],o=0,i=e.length;o<i;o++){var n=e.charCodeAt(o);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(o++,n=65536+((1023&n)<<10|1023&e.charCodeAt(o)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(t)}(e),o=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof 630ArrayBuffer&&(t=!0,e=new Uint8Array(e));var n=0,s=e.length,r=n+s;if(0==s)return this;if(this.total_len+=s,0==this.memsize&&(this.memory=o?"":t?new Uint8Array(16):new i(16)),this.memsize+s<16)return o?this.memory+=e:t?this.memory.set(e.subarray(0,s),this.memsize):e.copy(this.memory,this.memsize,0,s),this.memsize+=s,this;if(this.memsize>0){o?this.memory+=e.slice(0,16-this.memsize):t?this.memory.set(e.subarray(0,16-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,16-this.memsize);var a= 6310;o?(this.v1.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v2.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v3.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a),this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2)),a+=4,this.v4.xxh_update(this.memory.charCodeAt(a+1)<<8|this.memory.charCodeAt(a), 632this.memory.charCodeAt(a+3)<<8|this.memory.charCodeAt(a+2))):(this.v1.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v2.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v3.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2]),a+=4,this.v4.xxh_update(this.memory[a+1]<<8|this.memory[a],this.memory[a+3]<<8|this.memory[a+2])),n+=16-this.memsize,this.memsize=0,o&&(this.memory="")}if(n<= 633r-16){var l=r-16;do o?(this.v1.xxh_update(e.charCodeAt(n+1)<<8|e.charCodeAt(n),e.charCodeAt(n+3)<<8|e.charCodeAt(n+2)),n+=4,this.v2.xxh_update(e.charCodeAt(n+1)<<8|e.charCodeAt(n),e.charCodeAt(n+3)<<8|e.charCodeAt(n+2)),n+=4,this.v3.xxh_update(e.charCodeAt(n+1)<<8|e.charCodeAt(n),e.charCodeAt(n+3)<<8|e.charCodeAt(n+2)),n+=4,this.v4.xxh_update(e.charCodeAt(n+1)<<8|e.charCodeAt(n),e.charCodeAt(n+3)<<8|e.charCodeAt(n+2))):(this.v1.xxh_update(e[n+1]<<8|e[n],e[n+3]<<8|e[n+2]),n+=4,this.v2.xxh_update(e[n+ 6341]<<8|e[n],e[n+3]<<8|e[n+2]),n+=4,this.v3.xxh_update(e[n+1]<<8|e[n],e[n+3]<<8|e[n+2]),n+=4,this.v4.xxh_update(e[n+1]<<8|e[n],e[n+3]<<8|e[n+2])),n+=4;while(n<=l)}return n<r&&(o?this.memory+=e.slice(n):t?this.memory.set(e.subarray(n,r),this.memsize):e.copy(this.memory,this.memsize,n,r),this.memsize=r-n),this},c.prototype.digest=function(){var e,t,o=this.memory,i="string"==typeof o,c=0,d=this.memsize,u=new n;for((e=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))): 635this.seed.clone().add(h)).add(u.fromNumber(this.total_len));c<=d-4;)i?u.fromBits(o.charCodeAt(c+1)<<8|o.charCodeAt(c),o.charCodeAt(c+3)<<8|o.charCodeAt(c+2)):u.fromBits(o[c+1]<<8|o[c],o[c+3]<<8|o[c+2]),e.add(u.multiply(a)).rotl(17).multiply(l),c+=4;for(;c<d;)u.fromBits(i?o.charCodeAt(c++):o[c++],0),e.add(u.multiply(h)).rotl(11).multiply(s);return t=e.clone().shiftRight(15),e.xor(t).multiply(r),t=e.clone().shiftRight(13),e.xor(t).multiply(a),t=e.clone().shiftRight(16),e.xor(t),this.init(this.seed), 636e},e.exports=c},[470](e,t,o){var i=o(287).hp,n=o(898).UINT64,s=n("11400714785074694791"),r=n("14029467366897019727"),a=n("1609587929392839161"),l=n("9650029242287828579"),h=n("2870177450012600261");function c(){return 2==arguments.length?(new c(arguments[1])).update(arguments[0]).digest():this instanceof c?void d.call(this,arguments[0]):new c(arguments[0])}function d(e){return this.seed=e instanceof n?e.clone():n(e),this.v1=this.seed.clone().add(s).add(r),this.v2=this.seed.clone().add(r),this.v3= 637this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}c.prototype.init=d,c.prototype.update=function(e){var t,o="string"==typeof e;o&&(e=function(e){for(var t=[],o=0,i=e.length;o<i;o++){var n=e.charCodeAt(o);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(o++,n=65536+((1023&n)<<10|1023&e.charCodeAt(o)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(t)}(e), 638o=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var a=0,l=e.length,h=a+l;if(0==l)return this;if(this.total_len+=l,0==this.memsize&&(this.memory=o?"":t?new Uint8Array(32):new i(32)),this.memsize+l<32)return o?this.memory+=e:t?this.memory.set(e.subarray(0,l),this.memsize):e.copy(this.memory,this.memsize,0,l),this.memsize+=l,this;if(this.memsize>0){o?this.memory+=e.slice(0,32-this.memsize):t?this.memory.set(e.subarray(0,32-this.memsize),this.memsize): 639e.copy(this.memory,this.memsize,0,32-this.memsize);var c=0;if(o)u=n(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v1.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+ 6405)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v2.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+3)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v3.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory.charCodeAt(c+1)<<8|this.memory.charCodeAt(c),this.memory.charCodeAt(c+ 6413)<<8|this.memory.charCodeAt(c+2),this.memory.charCodeAt(c+5)<<8|this.memory.charCodeAt(c+4),this.memory.charCodeAt(c+7)<<8|this.memory.charCodeAt(c+6)),this.v4.add(u.multiply(r)).rotl(31).multiply(s);else u=n(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v1.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<< 6428|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v2.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v3.add(u.multiply(r)).rotl(31).multiply(s),c+=8,u=n(this.memory[c+1]<<8|this.memory[c],this.memory[c+3]<<8|this.memory[c+2],this.memory[c+5]<<8|this.memory[c+4],this.memory[c+7]<<8|this.memory[c+6]),this.v4.add(u.multiply(r)).rotl(31).multiply(s); 643a+=32-this.memsize,this.memsize=0,o&&(this.memory="")}if(a<=h-32){var d=h-32;do{var u;if(o)u=n(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v1.add(u.multiply(r)).rotl(31).multiply(s),a+=8,u=n(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v2.add(u.multiply(r)).rotl(31).multiply(s), 644a+=8,u=n(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v3.add(u.multiply(r)).rotl(31).multiply(s),a+=8,u=n(e.charCodeAt(a+1)<<8|e.charCodeAt(a),e.charCodeAt(a+3)<<8|e.charCodeAt(a+2),e.charCodeAt(a+5)<<8|e.charCodeAt(a+4),e.charCodeAt(a+7)<<8|e.charCodeAt(a+6)),this.v4.add(u.multiply(r)).rotl(31).multiply(s);else u=n(e[a+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v1.add(u.multiply(r)).rotl(31).multiply(s), 645u=n(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v2.add(u.multiply(r)).rotl(31).multiply(s),u=n(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v3.add(u.multiply(r)).rotl(31).multiply(s),u=n(e[(a+=8)+1]<<8|e[a],e[a+3]<<8|e[a+2],e[a+5]<<8|e[a+4],e[a+7]<<8|e[a+6]),this.v4.add(u.multiply(r)).rotl(31).multiply(s);a+=8}while(a<=d)}return a<h&&(o?this.memory+=e.slice(a):t?this.memory.set(e.subarray(a,h),this.memsize):e.copy(this.memory,this.memsize, 646a,h),this.memsize=h-a),this},c.prototype.digest=function(){var e,t,o=this.memory,i="string"==typeof o,c=0,d=this.memsize,u=new n;for(this.total_len>=32?((e=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),e.add(this.v3.clone().rotl(12)),e.add(this.v4.clone().rotl(18)),e.xor(this.v1.multiply(r).rotl(31).multiply(s)),e.multiply(s).add(l),e.xor(this.v2.multiply(r).rotl(31).multiply(s)),e.multiply(s).add(l),e.xor(this.v3.multiply(r).rotl(31).multiply(s)),e.multiply(s).add(l),e.xor(this.v4.multiply(r).rotl(31).multiply(s)), 647e.multiply(s).add(l)):e=this.seed.clone().add(h),e.add(u.fromNumber(this.total_len));c<=d-8;
647)i?u.fromBits(o.charCodeAt(c+1)<<8|o.charCodeAt(c),o.charCodeAt(c+3)<<8|o.charCodeAt(c+2),o.charCodeAt(c+5)<<8|o.charCodeAt(c+4),o.charCodeAt(c+7)<<8|o.charCodeAt(c+6)):u.fromBits(o[c+1]<<8|o[c],o[c+3]<<8|o[c+2],o[c+5]<<8|o[c+4],o[c+7]<<8|o[c+6]),u.multiply(r).rotl(31).multiply(s),e.xor(u).rotl(27).multiply(s).add(l),c+=8;for(c+4<=d&&(i?u.fromBits(o.charCodeAt(c+1)<<8|o.charCodeAt(c),o.charCodeAt(c+3)<<8|o.charCodeAt(c+ 6482),0,0):u.fromBits(o[c+1]<<8|o[c],o[c+3]<<8|o[c+2],0,0),e.xor(u.multiply(s)).rotl(23).multiply(r).add(a),c+=4);c<d;)u.fromBits(i?o.charCodeAt(c++):o[c++],0,0,0),e.xor(u.multiply(h)).rotl(11).multiply(s);return t=e.clone().shiftRight(33),e.xor(t).multiply(r),t=e.clone().shiftRight(29),e.xor(t).multiply(a),t=e.clone().shiftRight(32),e.xor(t),this.init(this.seed),e},e.exports=c}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports, 649o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e=o(514).utilities;Object.isExtensible(Object)&&!Object.prototype.hasOwnProperty("enswatch")&& 650Object.defineProperty(Object.prototype,"enswatch",e.watcher)})(),(()=>{const {utilities:e}=o(514),{GatewayInternal:t,Gateway:i}=o(588);if(document.elementFromPoint&&!e.isIE()){if(ensBrowserSupported=!0,"undefined"==typeof Bootstrapper&&(Bootstrapper={}),Bootstrapper.gateway&&Bootstrapper.gateway.singleton)throw console.warn("Two or more gateways have attempted to initialize"),new Error("Detected two or more gateway cores attempting to intialize");Bootstrapper.gateway={singleton:!0},Bootstrapper.hasOwnProperty("privacy")&& 651"function"==typeof Bootstrapper.privacy.onBeforeInit&&Bootstrapper.privacy.onBeforeInit(ensClientConfig),"function"==typeof ensClientConfig.domReady&&(e.domReady=ensClientConfig.domReady),gateway=new i(ensClientConfig),gateway.isInitialized?(Bootstrapper.gateway={templateManager:gateway.templateManager,environment:gateway.environment,environmentExists:gateway.environmentManager.environmentExists,getActiveEnvironment:gateway.environmentManager.getActiveEnvironment,getActiveLocale:gateway.environmentManager.getActiveLocale, 652getAvailableLocales:gateway.environmentManager.getAvailableLocales,getCookie:gateway.consentCookies.getCookie,getCookieTypes:gateway.consentCookies.getCookieTypes,getCookieDomain:gateway.consentCookies.getCookieDomain,getCookieDomainPath:gateway.consentCookies.getCookieDomainPath,getVersion:gateway.getVersion,openBanner:gateway.openBanner,closeBanner:gateway.closeBanner,openModal:gateway.openM
652odal,closeModal:gateway.closeModal,openGpcNotification:gateway.openGpcNotification,closeGpcNotification:gateway.closeGpcNotification, 653openDoNotSellModal:gateway.openDoNotSellModal,openRequestDataModal:gateway.openRequestDataModal,openDeleteDataModal:gateway.openDeleteDataModal,sendCCPAEvent:gateway.sendCCPAEvent,registerEnvironmentChangeCallback:gateway.environmentManager.registerEnvironmentChangeCallback,registerConsentChangeCallback:gateway.registerConsentChangeCallback,getList:gateway.getList,isWhitelist:gateway.isWhitelist,resetEnvironment:gateway.resetEnvironment,saveTcf:gateway.consentCookies.saveTcf,setConsentStatus:gateway.banner.setConsentStatus, 654setConsentStatuses:gateway.banner.setConsentStatuses,setCookie:gateway.consentCookies.setCookie,setCookies:gateway.consentCookies.setCookies,setCookieDomain:gateway.consentCookies.setCookieDomain,setCookieDomainPath:gateway.consentCookies.setCookieDomainPath,setCookieRetentionPeriod:gateway.consentCookies.setCookieRetentionPeriod,setEnvironment:gateway.environmentManager.setEnvironment,setOpenModal:gateway.setOpenModal,setOpenBanner:gateway.setOpenBanner,flushReports:gateway.flushReports,getInteractedTags:gateway.getInteractedTags, 655getConsentStatus:gateway.banner.getConsentStatus,getUserPreferences:gateway.getUserPreferences,getUserPreference:gateway.getUserPreference,updatePreferences:gateway.updatePreferences,allowTag:gateway.allowTag,blockTag:gateway.blockTag,blockAllCategories:gateway.blockAllCategories,clearTags:gateway.clearTags,getCookieRetentionPeriod:gateway.getCookieRetentionPeriod,getHistory:gateway.getHistory,enableBotAndFraudProtectionReason:gateway.enableBotAndFraudProtectionReason,addCustomReportingEvent:gateway.addCustomReportingEvent, 656googleConsentManager:gateway.googleConsentManager,singleton:!0},Object.defineProperty(Bootstrapper.gateway,"environment",{get:function(){return gateway.environmentManager.getActiveEnvironment()}}),Bootstrapper.hasOwnProperty("privacy")&&"function"==typeof Bootstrapper.privacy.onAfterInitInternal&&Bootstrapper.privacy.onAfterInitInternal(ensClientConfig),Bootstrapper.hasOwnProperty("privacy")&&"function"==typeof Bootstrapper.privacy.onAfterInit&&Bootstrapper.privacy.onAfterInit(ensClientConfig)):Bootstrapper.gateway= 657{}}else ensBrowserSupported=!1;!ensBrowserSupported&&ensClientConfig.browserNotSupportedURL&&""!==ensClientConfig.browserNotSupportedURL&&(window.location=ensClientConfig.browserNotSupportedURL)})()})()},4273644,[4274174,4273643],655551,[655550,742547],24); 658Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;(function(){var style=document.createElement("style");style.type="text/css";style.innerHTML='/*** HIDE OLD CONSENT BANNER TEMP CSS ***/\r\n#consent-tracking {\r\n display: none !important;\r\n}\r\n\r\n/*** CONSENT BANNER STYLES ***/\r\n\r\n#ensNotifyBanner {\r\n background-color: #fff;\r\n color: #4c4c4c;\r\n border-radius: 0;\r\n border-top: 1px solid #4c4c4c;\r\n font-size: 1em;\r\n font-weight: 200;\r\n opacity: 1;\r\n position: fixed;\r\n bottom: 0;\r\n left: 0 !important;\r\n right: 0;\r\n width: 100%;\r\n padding: 20px 100px;\r\n font-family: "Gilroy-Medium", sans-serif;\r\n}\r\n\r\n#ensBannerDescription {\r\n width: 100%;\r\n float: left;\r\n text-align: center;\r\n}\r\n\r\n\r\n@media(max-width: 800px) {\r\n .ensNotifyBanner .ensButtons {\r\n flex-direction: column;\r\n align-items: center;\r\n } \r\n}\r\n\r\n.ensButtons .button {\r\n margin-left: 0px !important;\r\n}\r\n\r\n.ensNotifyBanner .ensButtons {\r\n width: 100%;\r\n clear: none;\r\n margin: 0;\r\n gap: 10px; \r\n justify-content: center;\r\n}\r\n\r\n.ensButtons .button {\r\n height: initial !important;\r\n width: 250px !important;\r\n}\r\n\r\n.ensButtons .button.raised.blue {\r\n background-color: #003b89;\r\n color: #fff;\r\n box-shadow: none;\r\n border: none;\r\n font-weight: bold;\r\n}\r\n\r\n.ensButtons #ensOpenModal {\r\n background-color: #fff;\r\n color: #4c4c4c;\r\n border: 1px solid #4c4c4c;\r\n}\r\n\r\n.ensButtons .button.raised.grey {\r\n background-color: #fff;\r\n border-radius: 2px;\r\n box-shadow: none;\r\n border-width: 1px;\r\n border-style: solid;\r\n margin-left: 15px;\r\n}\r\n\r\n@media (max-width: 1024.98px) {\r\n #ensNotifyBanner {\r\n padding: 10px 20px 20px;\r\n }
658\r\n\r\n #ensBannerDescription {\r\n width: 100%;\r\n text-align: center;\r\n }\r\n\r\n .ensNotifyBanner .ensButtons {\r\n width: 100%;\r\n justify-content: center;\r\n margin-top: 15px;\r\n }\r\n\r\n #ensAcceptAll {\r\n margin-left: 0;\r\n }\r\n}\r\n\r\n/*** MODAL BANNER STYLES ***/\r\n\r\n#ensModalWrapper {\r\n max-width: 50% !important;\r\n box-shadow: none !important;\r\n border: 1px solid #4c4c4c;\r\n border-radius: 10px;\r\n}\r\n\r\n#ensModalWrapper .ensModal {\r\n font-family: "Gilroy-Medium", sans-serif;\r\n}\r\n\r\n.ensModal .consentDescription {\r\n display: none;\r\n}\r\n\r\n.ensModal .ensTitle {\r\n color: #333 !important;\r\n font-size: 18px;\r\n font-weight: bold;\r\n background: none;\r\n}\r\n\r\n.ensModal .ensToggleRow .card {\r\n width: 44px;\r\n border: none;\r\n}\r\n\r\n.ensToggleLabel {\r\n display: block;\r\n}\r\n\r\n.ensModal .ensToggleRow .switch {\r\n width: 40px;\r\n height: 20px;\r\n}\r\n\r\n.ensModal .ensToggleRow .toggle {\r\n height: 22px;\r\n width: 22px;\r\n}\r\n\r\n.ensModal .ensToggleRow input[type\x3d\'checkbox\']:checked~.toggle {\r\n left: 21px;\r\n}\r\n\r\n.ensToggleRowWrapper \x3e div:nth-child(1) {\r\n opacity: 1 !important;\r\n}\r\n\r\n.ensToggleRowWrapper \x3e div:nth-child(1) \x3e .ensToggleLabel \x3e .card {\r\n display: none;\r\n}\r\n\r\n@media (max-width: 1024.98px) {\r\n #ensModalWrapper {\r\n max-width: 90% !important;\r\n left: 5% !important;\r\n }\r\n}\r\n\r\n@media (max-width: 599.98px) {\r\n #ensModalWrapper {\r\n\t\ttop: 100px !important;\r\n\t}\r\n}\r\n\r\n.cookie-consent-backdrop {\r\n opacity: .5;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n z-index: 1040;\r\n width: 100vw;\r\n height: 100vh;\r\n background-color: #000; \r\n}';document.head.appendChild(style)})()}, 6594180824,[4273644],655552,[655551],24); 660Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.privacy=Bootstrapper.privacy||{};Bootstrapper.privacy.templates={"COOKIE_MODAL_CSS":'.ensCenter {\n text-align: center;\n}\n\n#ensModalWrapper {\n border: 1px solid #333;\n position: fixed;\n max-width: 80%;\n border: 1px solid #000;\n display: none;\n box-shadow: 5px 5px 5px grey;\n background-color: #fff;\n padding: 20px 0;\n z-index: 9999;\n}\n\n.ensModal {\n font-family: Roboto, Arial, sans-serif;\n}\n\n.ensModal input[type\x3d"checkbox"] {\n position: absolute !important;\n height: 1px;\n width: 1px;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap; /* added line */\n}\n\n.ensModal input[type\x3d"checkbox"]:checked ~ .toggle {\n background: #fff;\n left: 36px;\n transition: 0.5s;\n}\n\n.ensModal input[type\x3d"checkbox"]:checked ~ .switch {\n background: #43a047;\n transition: 0.5s;\n}\n\n.ensModal .switch {\n display: block;\n width: 50px;\n height: 15px;\n background: #939393;\n border-radius: 10px;\n position: absolute;\n top: 0;\n transition: 0.5s;\n}\n\n.ensModal .toggle {\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: white;\n position: absolute;\n top: -2px;\n left: -2px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);\n transition: 0.5s;\n}\n\n.ensModal .card {\n display: inline-block;\n margin: 9px;\n margin: 5px;\n width: 50px;\n height: 20px;\n text-align: center;\n position: relative;\n float: right;\n}\n\n.ensModal {\n font-size: 18px;\n color: #333;\n padding: 20px;\n}\n\n.ensToggleRow {\n margin-bottom: 10px;\n}\n\n.ensToggleLabel {\n margin-right: 5px;\n}\n\n.ensButtons {\n clear: both;\n margin-top: 15px;\n float: right;\n}\n\n.ensButtons .button {\n display: inline-block;\n position: relative;\n width: 120px;\n height: 32px;\n border-radius: 2px;\n font-size: 0.9em;\n background-color: #fff;\n color: #646464;\n margin-left: 20px;\n}\n\n.ensButtons .button.grey {\n background-color: #eee;\n}\n\n.ensButtons .button.blue {\n background-color: #2b5cac;\n color: #fff;\n}\n\n.ensButtons .button.raised {\n transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0.2s;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);\n}\n\n.ensButtons .button.raised:active {\n box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);\n transition-delay: 0s;\n}\n\n.ensModal .ensTitle {\n margin: 5px;\n width: 95%;\n color: #74736f;\n position: absolute;\n top: -5px;\n left: -5px;\n padding-left: 5%;\n padding-top: 13px;\n padding-bottom: 3px;\n text-align: center;\n}\n\n.ensModal .consentDescription {\n color: #333;\n font-size: 14px;\n}\n\n.ensModal hr {\n color: #c5c5c5;\n}\n\n.ensModal .description {\n max-width: 600px;\n font-size: 12px;\n margin-top: 15px;\n clear: both;\n}\n\n.ensToggleLabel.chevron::before {\n border-style: solid;\n border-width: 2px 2px 0 0;\n content: "";\n display: inline-block;\n height: 8px;\n margin: 0 5px 2px 0;\n position: relative;\n width: 8px;\n}\n\n.ensToggleLabel.chevron.right:before {\n transform: rotate(45deg);\n}\n\n.ensToggleLabel.chevron.bottom:before {\n margin-left: 2px;\n margin-bottom: 3px;\n transform: rotate(135deg);\n}\n\n.ensModal .ensTagsContent {\n display: none;\n padding: 0 0 0 20px;\n}\n\n.ensModal .tagContainer {\n color: #676767;\n padding: 7px 0 7px 7px;\n font-size: 15px;\n}\n\n.contactInfoLink {\n display: block;\n margin-bottom: 4px;\n}\n\n.ensToggleRowWrapper {\n max-height: 400px;\n overflow: auto;\n}\n',"CONSENT_MODAL_HTML":'\x3cdiv class\x3d"ensModal" aria-label\x3d"Consent Configuration" data-nosnippet\x3d"true"\x3e\n \x3cheader class\x3d"ensTitle" id\x3d"ensConsentTitle"\x3e\n \x3c/header\x3e\n \x3cdiv class\x3d"consentDescription" id\x3d"ensConsentDescription"\x3e\n \x3c/div\x3e\n \x3cdiv\x3e\x3c/div\x3e\n \x3cbr /\x3e\n \x3cdiv style\x3d"float: right"\x3e\n \x3ca class\x3d"mdl-navigation__link closed" onclick\x3d"ensShowMore()" id\x3d"ensShowMoreLink" href\x3d"#"\n style\x3d"text-decoration: underline"\x3eShow More\x3c/a\x3e\n \x3c/div\x3e\n \x3cdiv\x3e\x3cbr /\x3e\x3cbr /\x3e\x3c/div\x3e\n\n \x3cdiv id\x3d"ensTagsTableContainer" style\x3d"max-height: 200px;
660 overflow-y: scroll; display: none"\x3e\n \x3ctable id\x3d"ensTagsTable" class\x3d"mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp"\n style\x3d"width: 100%"\x3e\n \x3ctr id\x3d"ensTagsTableTitleRow"\x3e\n \x3cth class\x3d"mdl-data-table__cell--non-numeric"\x3eTag\x3c/th\x3e\n \x3c/tr\x3e\n \x3c/table\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv id\x3d\'innerModal\' style\x3d\'padding:0 20px;\'\x3e\x3c/div\x3e', 661"CONSENT_MODAL_CSS":'.ensCenter {\n text-align: center;\n}\n\n#ensModalWrapper {\n border: 1px solid #333;\n position: fixed;\n max-width: 60%;\n border: 1px solid #000;\n display: none;\n box-shadow: 5px 5px 5px grey;\n background-color: #fff;\n padding: 20px 0;\n z-index: 9999;\n}\n\n.ensModal {\n font-family: Roboto, Arial, sans-serif;\n min-width: 400px;\n max-width: 400px;\n}\n\n.ensModal input[type\x3d"checkbox"] {\n display: none;\n}\n\n.ensModal input[type\x3d"checkbox"]:checked ~ .toggle {\n background: #fff;\n left: 36px;\n transition: 0.5s;\n}\n\n.ensModal input[type\x3d"checkbox"]:checked ~ .switch {\n background: #43a047;\n transition: 0.5s;\n}\n\n.ensModal .switch {\n display: block;\n width: 50px;\n height: 15px;\n background: #939393;\n border-radius: 10px;\n position: absolute;\n top: 0;\n transition: 0.5s;\n}\n\n.ensModal .toggle {\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: white;\n position: absolute;\n top: -2px;\n left: -2px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);\n transition: 0.5s;\n}\n\n.ensModal .card {\n display: inline-block;\n margin: 9px;\n margin: 5px;\n width: 50px;\n height: 20px;\n text-align: center;\n position: relative;\n float: right;\n}\n\n.ensModal {\n font-size: 18px;\n color: #333;\n padding: 20px 20px 0px 20px;\n}\n\n.ensToggleRow {\n margin-bottom: 10px;\n}\n\n.ensToggleLabel {\n margin-right: 5px;\n}\n\n.ensButtons {\n clear: both;\n margin-top: 15px;\n float: right;\n}\n\n.ensButtons .button {\n display: inline-block;\n position: relative;\n width: 120px;\n height: 32px;\n border-radius: 2px;\n font-size: 0.9em;\n background-color: #fff;\n color: #646464;\n margin-left: 20px;\n}\n\n.ensButtons .button.grey {\n background-color: #eee;\n}\n\n.ensButtons .button.blue {\n background-color: #2b5cac;\n color: #fff;\n}\n\n.ensButtons .button.raised {\n transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0.2s;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);\n}\n\n.ensButtons .button.raised:active {\n box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);\n transition-delay: 0s;\n}\n\n.ensModal .ensTitle {\n margin: 5px;\n width: 95%;\n color: #74736f;\n position: absolute;\n top: -5px;\n left: -5px;\n padding-left: 5%;\n padding-top: 13px;\n padding-bottom: 3px;\n text-align: center;\n}\n\n.ensModal .consentDescription {\n color: #333;\n font-size: 14px;\n}\n\n.ensModal hr {\n color: #c5c5c5;\n}\n\n.ensModal .description {\n max-width: 600px;\n font-size: 12px;\n margin-top: 15px;\n clear: both;\n}\n\n.mdl-shadow--2dp {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),\n 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);\n}\n\n.mdl-data-table {\n position: relative;\n border: 1px solid rgba(0, 0, 0, 0.12);\n border-collapse: collapse;\n white-space: nowrap;\n font-size: 13px;\n background-color: #fff;\n}\n\n.mdl-data-table thead {\n padding-bottom: 3px;\n}\n\ntr {\n display: table-row;\n vertical-align: inherit;\n border-color: inherit;\n}\n\n.mdl-data-table td:first-of-type,\n.mdl-data-table th:first-of-type {\n padding-left: 24px;\n}\n\n.mdl-data-table__cell--non-numeric.mdl-data-table__cell--non-numeric {\n text-align: left;\n}\n\ntbody {\n display: table-row-group;\n vertical-align: middle;\n border-color: inherit;\n}\n\n.mdl-data-table tbody tr {\n position: relative;\n height: 48px;\n transition-duration: 0.28s;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-property: background-color;\n}\n\n.mdl-data-table td:first-of-type,\n.mdl-data-table th:first-of-type {\n padding-left: 24px;\n}\n\n.mdl-data-table td,\n.mdl-data-table td .mdl-data-table__select {\n vertical-align: middle;\n}\n\n.mdl-data-table td {\n position: relative;\n height: 48px;\n border-top: 1px solid rgba(0, 0, 0, 0.12);\n border-bottom: 1px solid rgba(0, 0, 0, 0.12);\n padding: 12px 18px;\n box-sizing: border-box;\n}\n\n.mdl-data-table th {\n position: relative;\n vertical-align: bottom;\n text-overflow: ellipsis;\n font-weight: 700;\n line-height: 24px;\n letter-spacing: 0;\n height: 48px;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.54);\n padding-bottom: 8px;\n box-sizing: border-box;\n}\n\n.mdl-data-table th {\n padding: 0 18px 12px 18px;\n text-align: right;\n}\n\n.mdl-navigation__link {\n color: #424242;\n margin: 0;\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n letter-spacing: 0;\n opacity: 0.87;\n}\n', 662"COOKIE_MODAL_HTML":"\x3cdiv class\x3d'ensModal' aria-label\x3d'Consent Configuration' data-nosnippet\x3d\"true\"\x3e\n \x3cheader class\x3d'ensTitle' id\x3d'ensTitle'\x3e \x3c/header\x3e\n \x3cdiv class\x3d'consentDescription' id\x3d'ensDescription'\x3e \x3c/div\x3e\n \x3chr\x3e\n \x3cdiv class\x3d'ensToggleRowWrapper'\x3e\n \x3c/div\x3e\n\n \x3ca id\x3d'ensDoNotSellModalLink' class\x3d'contactInfoLink' href\x3d'javascript:void(0)'\x3e \x3c/a\x3e\n \x3ca id\x3d'ensRequestDataModalLink' class\x3d'contactInfoLink' href\x3d'javascript:void(0)'\x3e \x3c/a\x3e\n \x3ca id\x3d'ensDeleteDataModalLink' class\x3d'contactInfoLink' href\x3d'javascript:void(0)'\x3e \x3c/a\x3e\n\n \x3cdiv class\x3d'ensButtons'\x3e\n \x3c/div\x3e\n\x3c/div\x3e", 663"BANNER_HTML":'\x3cdiv id\x3d"ensNotifyBanner" class\x3d"ensNotifyBanner" role\x3d"dialog" aria-label\x3d"Consent Banner"\n aria-describedby\x3d"ensBannerDe
663scription" data-nosnippet\x3d"true" tabIndex\x3d"0"\x3e\n \x3cdiv id\x3d"ensBannerDescription"\x3e\x3c/div\x3e\n \x3cdiv class\x3d"ensButtons"\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"ensClear"\x3e\x3c/div\x3e\n\x3c/div\x3e',"NO_TOGGLES_MODAL_HTML":"\x3cdiv class\x3d'ensButtons' data-nosnippet\x3d\"true\"\x3e \n \x3cbutton id\x3d'ensDeny' class\x3d'button raised grey'\x3e \n \x3cdiv class\x3d'ensCenter' id\x3d'ensDenyText'\x3e this.environment.translation.deny \x3c/div\x3e \n \x3c/button\x3e \n \x3cbutton id\x3d'ensAllow' class\x3d'button raised blue'\x3e \n \x3cdiv class\x3d'ensCenter' id\x3d'ensAllowText' fit\x3e this.environment.translation.allow \x3c/div\x3e \n\x3c/div\x3e", 664"BANNER_CSS":".ensNotifyBanner {\n background-color: #191b23;\n color: #ededed;\n opacity: 0.8;\n width: 60%;\n border-radius: 10px;\n padding: 20px;\n font-family: Roboto, Arial, sans-serif;\n position: fixed;\n bottom: 50px;\n display: none;\n z-index: 9999;\n}\n\n.ensButtons {\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n}\n\n.ensButtons .button {\n display: inline-block;\n position: relative;\n padding: 8px 2px; /* Controls the button's height and width relative to its text content */\n border-radius: 2px;\n font-size: 0.9em;\n white-space: nowrap; /* Prevents text from wrapping inside button */\n overflow: hidden; /* Ensures overflowing text doesn't spill out of the button */\n background-color: #fff;\n color: #646464;\n margin-left: 20px;\n text-align: center;\n cursor: pointer;\n}\n\n.ensButtons .button.grey {\n background-color: #eee;\n}\n\n.ensButtons .button.blue {\n background-color: #2b5cac;\n color: #fff;\n}\n\n.ensButtons .button.raised {\n transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0.2s;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);\n}\n\n.ensButtons .button.raised:active {\n box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);\n transition-delay: 0s;\n}\n\n.ensClear {\n clear: both;\n}\n\n.ensModalLink {\n cursor: pointer;\n text-decoration: underline;\n}\n\n.ensModalLink:hover {\n color: #2b5cac;\n}\n"}}, 6654273643,742547,24); 666Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;window.ensightenIsIE=~window.navigator.userAgent.indexOf("MSIE ")||/Trident.*rv:11\./i.test(window.navigator.userAgent)?"1":"0";Bootstrapper.privacy=Bootstrapper.privacy||{};Bootstrapper.privacy.onBeforeInit=function(config){config.featureToggles.disableEscapeKeyboardCommands=true};Bootstrapper.hideBackdrop=function(){if(document.getElementById("cookieConsentBackdrop")!=null){document.getElementById("cookieConsentBackdrop").remove(); 667document.getElementsByClassName("skip")[0].focus()}};Bootstrapper.bindBackdropEvents=function(){if(document.getElementById("ensAcceptAll")){document.getElementById("ensAcceptAll").addEventListener("click",function(){Bootstrapper.hideBackdrop()});document.getElementById("ensAcceptAll").addEventListener("keydown",function(e){if(e.code.includes("Enter")||e.code.includes("Space"))Bootstrapper.hideBackdrop()})}if(document.getElementById("ensSave")){document.getElementById("ensSave").addEventListener("click", 668function(){Bootstrapper.hideBackdrop()});document.getElementById("ensSave").addEventListener("keydown",function(e){if(e.code.includes("Enter")||e.code.includes("Space"))Bootstrapper.hideBackdrop()})}if(document.getElementById("ensRejectAll")){document.getElementById("ensRejectAll").addEventListener("click",function(){Bootstrapper.hideBackdrop()});document.getElementById("ensRejectAll").addEventListener("keydown",function(e){if(e.code.includes("Enter")||e.code.includes("Space"))Bootstrapper.hideBackdrop()})}}; 669Bootstrapper.privacy.onAfterInit=config=>{const has_consented=()=>{return Bootstrapper.gateway.getCookie(Bootstrapper.gateway.getCookieTypes()[0])?true:false};Bootstrapper.bindDOMLoaded(()=>{let wait_for_banner=setInterval(()=>{if(document.getElementById("ensNotifyBanner")){clearInterval(wait_for_banner);Bootstrapper.bindBackdropEvents();document.getElementById("ensPrivacyPolicy").focus()}},100)});Bootstrapper.bindDOMParsed(()=>{let wait_for_banner=setInterval(()=>{if(document.getElementById("ensNotifyBanner")){clearInterval(wait_for_banner); 670if(!has_consented()){Bootstrapper.gateway.openBanner();if(document.getElementById("cookieConsentBackdrop")===null){const cookieOverlay=document.createElement("div");
670cookieOverlay.className="cookie-consent-backdrop";cookieOverlay.id="cookieConsentBackdrop";document.body.insertBefore(cookieOverlay,document.getElementById("#maincontent"));if(document.getElementById("ensNotifyBanner"))document.getElementById("ensPrivacyPolicy").focus()}}else if(document.getElementById("cookieConsentBackdrop")!=null)document.getElementById("cookieConsentBackdrop").remove()}}, 671100);Bootstrapper.bindBackdropEvents();document.body.addEventListener("click",function(e){if(document.getElementById("ensModalWrapper")&&document.getElementById("ensModalWrapper").style.display==="block"&&!e.target.closest("#ensModalWrapper")){if(!has_consented()){Bootstrapper.gateway.openBanner();if(document.getElementById("cookieConsentBackdrop")===null){const cookieOverlay=document.createElement("div");cookieOverlay.className="cookie-consent-backdrop";cookieOverlay.id="cookieConsentBackdrop";document.body.insertBefore(cookieOverlay, 672document.getElementById("#maincontent"))}}else if(document.getElementById("cookieConsentBackdrop")!=null)document.getElementById("cookieConsentBackdrop").remove();Bootstrapper.gateway.closeModal()}})})};document.addEventListener("click",function(params){if(params.target.id=="ensSave"||params.target.id=="ensAcceptAll")if(document.getElementById("cookieConsentBackdrop")!=null)document.getElementById("cookieConsentBackdrop").remove()});document.addEventListener("DOMContentLoaded",function(){let wait_for_banner= 673setInterval(()=>{if($("#ensNotifyBanner").is(":visible")===false){clearInterval(wait_for_banner);return}if(document.getElementById("ensNotifyBanner")){clearInterval(wait_for_banner);Bootstrapper.bindBackdropEvents();document.getElementById("ensPrivacyPolicy").focus()}},100)});const uetq_options={};uetq_options.ad_storage_category="Advertising Cookies";uetq_options.ad_storage="denied";uetq_options.ad_storage_category&&(uetq_options.ad_storage_category=uetq_options.ad_storage_category.replace(/ /g, 674"_")),window.uetq=window.uetq||[],Bootstrapper.privacy=Bootstrapper.privacy||{};const onBeforeInit_old_uetq=Bootstrapper.privacy.onBeforeInit,onAfterInit_old_uetq=Bootstrapper.privacy.onAfterInit,_private_uetq={version:"1.0",consent_types:["ad_storage"],parse_consent_value:t=>"1"===String(t)?"granted":"denied",parse_consent_key:t=>{const e=[];return _private_uetq.consent_types.forEach(n=>{t!==uetq_options[n+"_category"]&&t!==uetq_options[n+"_tag"]||e.push(n)}),e},get_user_preferences:()=>{const t= 675{};try{const e=Bootstrapper.gateway.getConsentStatus();return Object.keys(e).forEach(n=>{t[n.replace(/ /g,"_")]=!0===e[n].categoryEnabled?"1":"0"}),t}catch(e){return t}},get_tag_status:(t,e)=>{const n=Bootstrapper.gateway.getConsentStatus(),o=n[t]&&n[t].tags||[];for(var r=0;r<o.length;r++)if(o[r]===e)return!0===o[r].tagEnabled?"1":"0"},get_consent_value:(t,e)=>{e=e||_private_uetq.get_user_preferences();const n=uetq_options[t+"_category"],o=uetq_options[t+"_tag"],r=!!o&&_private_uetq.get_tag_status(n, 676o);return r?_private_uetq.parse_consent_value(r):n&&"undefined"!==String(typeof e[n])?_private_uetq.parse_consent_value(e[n]):uetq_options[t]?uetq_options[t]:void 0},get_consent:t=>{t=t||_private_uetq.get_user_preferences();const e={};return _private_uetq.consent_types.forEach(n=>{const o=_private_uetq.get_consent_value(n,t);o&&(e[n]=o)}),e},get_default_privacy_consent:()=>{const t=Bootstrapper.gateway&&Bootstrapper.gateway.getActiveEnvironment&&Bootstrapper.gateway.getActiveEnvironment()&&Bootstrapper.gateway.getActiveEnvironment().optVals? 677Bootstrapper.gateway.getActiveEnvironment().optVals:{},e={};return Object.entries(t).forEach(([t,n])=>{e[t.replace(/ /g,"_")]=n}),e},get_default_consent:()=>{const t=_private_uetq.get_default_privacy_consent();return _private_uetq.get_consent(t)},get_updated_consent:t=>{const e=_private_uetq.consent,n={};return Object.entries(t).forEach(([o,r])=>{e[o]!==t[o]&&(n[o]=t[o])}),n},init:()=>{_private_uetq.consent=_private_uetq.get_default_consent(),window.uetq.push("consent","default",_private_uetq.consent); 678const t=_private_uetq.get_consent();if(JSON.stringify(_private_uetq.consent)!==JSON.stringify(t)){const e=_private_uetq.get_updated_consent(t);window.uetq.push("consent","update",e),_private_uetq.consent=e}}};Bootstrapper.privacy.onBeforeInit=function(t){onBeforeInit_old_uetq&&onBeforeInit_old_uetq.apply(this,arguments);let e={};const n=t.onConsent;t.onConsent=function(t,o){n&&n.apply(this,arguments);const r=_private_uetq.parse_consent_key(t);r.length>0&&(r.forEach(t=>{e[t]=_private_uetq.parse_consent_value(o)}), 679setTimeout(()=>{const t=_private_uetq.get_updated_consent(e);Object.keys(t).length>0&&(window.uetq.push("consent","update",e),_private_uetq.consent=Object.assign({},_private_uetq.consent,e),e={})},0))}},Bootstrapper.privacy.onAfterInit=function(t){onAfterInit_old_uetq&&onAfterInit_old_uetq.apply(this,arguments),_private_uetq.init(
679)},setTimeout(()=>{window.gateway&&window.gateway.isInitialized||_private_uetq.init()},0)},4240995,771919,24);Bootstrapper.getServerComponent(Bootstrapper.getExtraParams ? Bootstrapper.getExtraParams() : undefined);}})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.