nexus.ensighten.com
3.121.16.187 

URL: http://nexus.ensighten.com/tdb/Bootstrap.js
Submission: On October 01 via manual from CA

Form analysis 0 forms found in the DOM

Text Content

(function ensightenInit(){var ensightenOptions = {client: "tdb", clientId: 822, publishPath: "prod", isPublic:1, serverComponentLocation: "nexus.ensighten.com/tdb/prod/serverComponent.php", staticJavascriptPath: "nexus.ensighten.com/tdb/prod/code/", ns: 'Bootstrapper', nexus:"nexus.ensighten.com", scUseCacheBuster: "true", enableTagAuditBeacon : "true", enablePagePerfBeacon : "true", registryNs : "ensBootstraps", generatedOn : "Tue Oct 01 20:09:38 GMT 2019", beaconSamplingSeedValue: 11};
if ( !window[ensightenOptions.ns] ) {
window[ensightenOptions.registryNs]||(window[ensightenOptions.registryNs]={});
window[ensightenOptions.registryNs][ensightenOptions.ns]=window[ensightenOptions.ns]=function(f){function l(a){this.name="DependencyNotAvailableException";this.message="Dependency with id "+a+"is missing"}function m(a){this.name="BeaconException";this.message="There was an error durring beacon initialization";a=a||{};this.lineNumber=a.lineNumber||a.line;this.fileName=a.fileName}function n(){for(var a=b.dataDefinitionIds.length,c=!0,d=0;d<a;d++){var e=b.dataDefinitions[b.dataDefinitionIds[d]];if(!e||
null==e.endRegistration){c=!1;break}}c&&b.callOnDataDefintionComplete()}var e={},b={};b.ensightenOptions=ensightenOptions;b.scDataObj={};e.version="1.26.0";e.nexus=f.nexus||"nexus.ensighten.com";e.rand=-1;e.currSec=(new Date).getSeconds();e.options={interval:f.interval||100,erLoc:f.errorLocation||e.nexus+"/error/e.gif",scLoc:f.serverComponentLocation||e.nexus+"/"+f.client+"/serverComponent.php",sjPath:f.staticJavascriptPath||e.nexus+"/"+f.client+"/code/",alLoc:f.alertLocation||e.nexus+"/alerts/a.gif",
publishPath:f.publishPath,isPublic:f.isPublic,client:f.client,clientId:f.clientId,enableTagAuditBeacon:f.enableTagAuditBeacon,scUseCacheBuster:f.scUseCacheBuster,beaconSamplingSeedValue:f.beaconSamplingSeedValue||-1};e.ruleList=[];e.allDeploymentIds=[];e.runDeploymentIds=[];e.runRuleIds=[];e.exceptionList=[];e.ensightenVariables={};e.test=function(a){if(!(a.executionData.hasRun||a.executionData.runTime&&0<a.executionData.runTime.length)){for(var c=0;c<a.dependencies.length;c++)if(!1===a.dependencies[c]())return;
a.execute()}};l.prototype=Error();l.prototype||(l.prototype={});l.prototype.constructor=l;e.DependencyNotAvailableException=l;m.prototype=Error();m.prototype||(m.prototype={});m.prototype.constructor=m;e.BeaconException=m;e.checkForInvalidDependencies=function(a,c,d,h){for(a=0;a<d.length;a++)if("DEPENDENCYNEVERAVAILABLE"===d[a])return b.currentRuleId=this.id,b.currentDeploymentId=this.deploymentId,b.reportException(new e.DependencyNotAvailableException(h[a])),c&&-1!==c&&e.allDeploymentIds.push(c),
!0;return!1};b.currentRuleId=-1;b.currentDeploymentId=-1;b.reportedErrors=[];b.reportedAlerts=[];b.AF=[];b._serverTime="";b._clientIP="";b.sampleBeacon=function(){var a=!1;try{var c=(e.currSec||0)%20,b=e.options.beaconSamplingSeedValue;-1===b?a=!0:0!==c&&0===b%c&&(a=!0)}catch(h){}return a};b.getServerComponent=function(a){b.callOnGetServerComponent();b.insertScript(window.location.protocol+"//"+e.options.scLoc,!1,a||!0,e.options.scUseCacheBuster)};b.setVariable=function(a,c){e.ensightenVariables[a]=
c};b.getVariable=function(a){return a in e.ensightenVariables?e.ensightenVariables[a]:null};b.testAll=function(){for(var a=0;a<e.ruleList.length;a++)e.test(e.ruleList[a])};b.executionState={DOMParsed:!1,DOMLoaded:!1,dataDefinitionComplete:!1,conditionalRules:!1,readyForServerComponent:!1};b.reportException=function(a){a.timestamp=(new Date).getTime();e.exceptionList.push(a);a=window.location.protocol+"//"+e.options.erLoc+"?msg="+encodeURIComponent(a.message||"")+"&lnn="+encodeURIComponent(a.lineNumber||
a.line||-1)+"&fn="+encodeURIComponent(a.fileName||"")+"&cid="+encodeURIComponent(e.options.clientId||-1)+"&client="+encodeURIComponent(e.options.client||"")+"&publishPath="+encodeURIComponent(e.options.publishPath||"")+"&rid="+encodeURIComponent(b.currentRuleId||-1)+"&did="+encodeURIComponent(b.currentDeploymentId||-1)+"&errorName="+encodeURIComponent(a.name||"");a=b.imageRequest(a);a.timestamp=(new Date).getTime();this.reportedErrors.push(a)};b.Rule=function(a){this.execute=function(){this.executionData.runTime.push(new Date);
b.currentRuleId=this.id;b.currentDeploymentId=this.deploymentId;try{this.code()}catch(c){window[ensightenOptions.ns].reportException(c)}finally{this.executionData.hasRun=!0,-1!==this.deploymentId&&(e.runDeploymentIds.push(this.deploymentId),e.runRuleIds.push(this.id)),b.testAll()}};this.id=a.id;this.deploymentId=a.deploymentId;this.dependencies=a.dependencies||[];this.code=a.code;this.executionData={hasRun:!1,runTime:[]}};b.registerRule=function(a){if(b.getRule(a.id)&&-1!==a.id)return!1;e.ruleList.push(a);
-1!==a.deploymentId&&e.allDeploymentIds.push(a.deploymentId);b.testAll();return!0};b.getRule=function(a){for(var c=0;c<e.ruleList.length;c++)if(e.ruleList[c].id===a)return e.ruleList[c];return!1};b.getRuleList=function(){return e.ruleList};b.clearRuleList=function(){e.ruleList=[]};b.getAllDeploymentIds=function(){return e.allDeploymentIds};b.getRunRuleIds=function(){return e.runRuleIds};b.getRunDeploymentIds=function(){return e.runDeploymentIds};b.hasRuleRun=function(a){return(a=b.getRule(a))?a.executionData.hasRun:
!1};e.toTwoChar=function(a){return(2===a.toString().length?"":"0")+a};b.Alert=function(a){var c=new Date;c=c.getFullYear()+"-"+e.toTwoChar(c.getMonth())+"-"+e.toTwoChar(c.getDate())+" "+e.toTwoChar(c.getHours())+":"+e.toTwoChar(c.getMinutes())+":"+e.toTwoChar(c.getSeconds());this.severity=a.severity||1;this.subject=a.subject||"";this.type=a.type||1;this.ruleId=a.ruleId||-1;this.severity=encodeURIComponent(this.severity);this.date=encodeURIComponent(c);this.subject=encodeURIComponent(this.subject);
this.type=encodeURIComponent(this.type)};b.generateAlert=function(a){a=b.imageRequest(window.location.protocol+"//"+e.options.alLoc+"?d="+a.date+"&su="+a.subject+"&se="+a.severity+"&t="+a.type+"&cid="+e.options.clientId+"&client="+e.options.client+"&publishPath="+e.options.publishPath+"&rid="+b.currentRuleId+"&did="+b.currentDeploymentId);a.timestamp=(new Date).getTime();this.reportedAlerts.push(a)};b.imageRequest=function(a){var c=new Image(0,0);c.src=a;return c};b.insertScript=function(a,c,d,h){var p=
document.getElementsByTagName("script"),g;h=void 0!==h?h:!0;if(void 0!==c?c:1)for(g=0;g<p.length;g++)if(p[g].src===a&&p[g].readyState&&/loaded|complete/.test(p[g].readyState))return;if(d){d=1==d&&"object"==typeof b.scDataObj?b.scDataObj:d;e.rand=Math.random()*("1E"+(10*Math.random()).toFixed(0));c=window.location.href;"object"===typeof d&&d.PageID&&(c=d.PageID,delete d.PageID);if("object"===typeof d)for(g in d){g=~c.indexOf("#")?c.slice(c.indexOf("#"),c.length):"";c=c.slice(0,g.length?c.length-g.length:
c.length);c+=~c.indexOf("?")?"&":"?";for(k in d)c+=k+"="+d[k]+"&";c=c.slice(0,-1)+g;break}a+="?";h&&(a+="r="+e.rand+"&");a+="ClientID="+encodeURIComponent(e.options.clientId)+"&PageID="+encodeURIComponent(c)}(function(a,c,b){var d=c.head||c.getElementsByTagName("head");setTimeout(function(){if("item"in d){if(!d[0]){setTimeout(arguments.callee,25);return}d=d[0]}var a=c.createElement("script");a.src=b;a.onload=a.onerror=function(){this.addEventListener&&(this.readyState="loaded")};d.insertBefore(a,
d.firstChild)},0)})(window,document,a)};b.loadScriptCallback=function(a,c,b){var d=document.getElementsByTagName("script"),e;b=d[0];for(e=0;e<d.length;e++)if(d[e].src===a&&d[e].readyState&&/loaded|complete/.test(d[e].readyState))try{c()}catch(g){window[ensightenOptions.ns].reportException(g)}finally{return}d=document.createElement("script");d.type="text/javascript";d.async=!0;d.src=a;d.onerror=function(){this.addEventListener&&(this.readyState="loaded")};d.onload=d.onreadystatechange=function(){if(!this.readyState||
"complete"===this.readyState||"loaded"===this.readyState){this.onload=this.onreadystatechange=null;this.addEventListener&&(this.readyState="loaded");try{c.call(this)}catch(g){window[ensightenOptions.ns].reportException(g)}}};b.parentNode.insertBefore(d,b)};b.insertPageFiles=function(a){var b=0,d=0,e=function(){d==a.length-1&&window[ensightenOptions.ns].callOnPageSpecificCompletion();d++};for(b=0;b<a.length;++b)window[ensightenOptions.ns].loadScriptCallback(a[b],e)};b.unobtrusiveAddEvent=function(a,
b,d){try{var c=a[b]?a[b]:function(){};a[b]=function(){d.apply(this,arguments);return c.apply(this,arguments)}}catch(p){window[ensightenOptions.ns].reportException(p)}};b.anonymous=function(a,c){return function(){try{b.currentRuleId=c?c:"anonymous",a()}catch(d){window[ensightenOptions.ns].reportException(d)}}};b.setCurrentRuleId=function(a){b.currentRuleId=a};b.setCurrentDeploymentId=function(a){b.currentDeploymentId=a};b.bindImmediate=function(a,c,d){if("function"===typeof a)a=new b.Rule({id:c||-1,
deploymentId:d||-1,dependencies:[],code:a});else if("object"!==typeof a)return!1;b.registerRule(a)};b.bindDOMParsed=function(a,c,d){if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:d||-1,dependencies:[function(){return window[ensightenOptions.ns].executionState.DOMParsed}],code:a});else if("object"!==typeof a)return!1;b.registerRule(a)};b.bindDOMLoaded=function(a,c,d){if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:d||-1,dependencies:[function(){return window[ensightenOptions.ns].executionState.DOMLoaded}],
code:a});else if("object"!==typeof a)return!1;b.registerRule(a)};b.bindPageSpecificCompletion=function(a,c,d){if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:d||-1,dependencies:[function(){return window[ensightenOptions.ns].executionState.conditionalRules}],code:a});else if("object"!==typeof a)return!1;b.registerRule(a)};b.bindOnGetServerComponent=function(a,c,d){if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:d||-1,dependencies:[function(){return window[ensightenOptions.ns].executionState.readyForServerComponent}],
code:a});else if("object"!==typeof a)return!1;b.registerRule(a)};b.bindDataDefinitionComplete=function(a,c,d){if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:d||-1,dependencies:[function(){return window[ensightenOptions.ns].executionState.dataDefinitionComplete}],code:a});else if("object"!==typeof a)return!1;b.registerRule(a)};b.checkHasRun=function(a){if(0===a.length)return!0;for(var c,d=0;d<a.length;++d)if(c=b.getRule(parseInt(a[d],10)),!c||!c.executionData.hasRun)return!1;return!0};
b.bindDependencyImmediate=function(a,c,d,h,f){var g=[];if(!e.checkForInvalidDependencies(c,h,d,f)){g.push(function(){return window[ensightenOptions.ns].checkHasRun(d)});if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:h||-1,dependencies:g,code:a});else if("object"!==typeof a)return!1;b.registerRule(a)}};b.bindDependencyDOMLoaded=function(a,c,d,h,f){var g=[];if(!e.checkForInvalidDependencies(c,h,d,f)){g.push(function(){return window[ensightenOptions.ns].executionState.DOMLoaded});g.push(function(){return window[ensightenOptions.ns].checkHasRun(d)});
if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:h||-1,dependencies:g,code:a});else if("object"!==typeof a)return!1;b.registerRule(a)}};b.bindDependencyDOMParsed=function(a,c,d,h,f){var g=[];if(!e.checkForInvalidDependencies(c,h,d,f)){g.push(function(){return window[ensightenOptions.ns].executionState.DOMParsed});g.push(function(){return window[ensightenOptions.ns].checkHasRun(d)});if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:h||-1,dependencies:g,code:a});else if("object"!==
typeof a)return!1;b.registerRule(a)}};b.bindDependencyPageSpecificCompletion=function(a,c,d,h,f){var g=[];if(!e.checkForInvalidDependencies(c,h,d,f)){g.push(function(){return window[ensightenOptions.ns].executionState.conditionalRules});g.push(function(){return window[ensightenOptions.ns].checkHasRun(d)});if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:h||-1,dependencies:g,code:a});else if("object"!==typeof a)return!1;b.registerRule(a)}};b.bindDependencyOnGetServerComponent=function(a,
c,d,h,f){var g=[];if(!e.checkForInvalidDependencies(c,h,d,f)){g.push(function(){return window[ensightenOptions.ns].executionState.readyForServerComponent});g.push(function(){return window[ensightenOptions.ns].checkHasRun(d)});if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:h||-1,dependencies:g,code:a});else if("object"!==typeof a)return!1;b.registerRule(a)}};b.bindDependencyPageSpecificCompletion=function(a,c,d,f,p){var g=[];if(!e.checkForInvalidDependencies(c,f,d,p)){g.push(function(){return window[ensightenOptions.ns].executionState.dataDefinitionComplete});
g.push(function(){return window[ensightenOptions.ns].checkHasRun(d)});if("function"===typeof a)a=new b.Rule({id:c||-1,deploymentId:f||-1,dependencies:g,code:a});else if("object"!==typeof a)return!1;b.registerRule(a)}};b.dataDefintionIds=[];b.dataDefinitions=[];b.pageSpecificDataDefinitionsSet=!1;b.setPageSpecificDataDefinitionIds=function(a){for(var c=a?a.length:0,d=0;d<c;d++){var e=a[d];if(Array.prototype.indexOf)-1==b.dataDefinitionIds.indexOf(e)&&b.dataDefinitionIds.push(e);else{for(var f=!1,g=
b.dataDefinitionIds.length,l=0;l<g;l++)if(b.dataDefinitionIds[l]===e){f=!0;break}f||b.dataDefinitionIds.push(e)}}b.pageSpecificDataDefinitionsSet=!0;n()};b.DataDefinition=function(a,b){this.id=a;this.registrationFn=b;this.endRegistrationTime=this.startRegistrationTime=null;this.startRegistration=function(){this.startRegistrationTime=new Date};this.endRegistration=function(){this.endRegistrationTime=new Date}};b.registerDataDefinition=function(a,c){var d=b.dataDefinitions[c];d||(d=new b.DataDefinition(c,
a),b.dataDefinitions[c]=d);d.startRegistrationTime||(d.startRegistration(),d.registrationFn(),d.endRegistration());b.pageSpecificDataDefinitionsSet&&n()};b.callOnDataDefintionComplete=function(){b.executionState.dataDefinitionComplete=!0;b.testAll()};b.callOnDOMParsed=function(){window[ensightenOptions.ns].executionState.DOMParsed=!0;window[ensightenOptions.ns].testAll()};b.callOnDOMLoaded=function(){window[ensightenOptions.ns].executionState.DOMParsed=!0;window[ensightenOptions.ns].executionState.DOMLoaded=
!0;window[ensightenOptions.ns].testAll()};b.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=!0;window[ensightenOptions.ns].testAll()},1)};b.callOnGetServerComponent=
function(){window[ensightenOptions.ns].executionState.readyForServerComponent=!0;window[ensightenOptions.ns].testAll()};b.hasDOMParsed=function(){return window[ensightenOptions.ns].executionState.DOMParsed};b.hasDOMLoaded=function(){return window[ensightenOptions.ns].executionState.DOMLoaded};b.hasPageSpecificCompletion=function(){return window[ensightenOptions.ns].executionState.conditionalRules};var r=function(){var a=[],b=!1,d=!1;return{add:function(c){b&&!d?c():"function"==typeof c&&(a[a.length]=
c)},exec:function(){d=!0;do{var c=a;a=[];b=!0;for(var e=0;e<c.length;e++)try{c[e].call(window)}catch(g){window[ensightenOptions.ns].reportException(g)}}while(0<a.length);d=!1},haveRun:function(){return b}}};b.new_fArray=function(){return r()};e.timer=null;(function(){function a(a,b){return function(){a.apply(b,arguments)}}window.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/")?e.timer=window.setInterval(function(){/loaded|interactive|complete/.test(document.readyState)&&(clearInterval(e.timer),b.callOnDOMParsed())},50):document.addEventListener("DOMContentLoaded",b.callOnDOMParsed,!1),window.addEventListener("load",b.callOnDOMLoaded,
!1)):(setTimeout(function(){var a=window.document;(function(){try{if(!document.body)throw"continue";a.documentElement.doScroll("left")}catch(c){setTimeout(arguments.callee,15);return}window[ensightenOptions.ns].callOnDOMParsed()})()},1),window.attachEvent("onload",function(){window[ensightenOptions.ns].callOnDOMLoaded()}));document.readyState&&"complete"===document.readyState&&(b.executionState.DOMParsed=!0,b.executionState.DOMLoaded=!0);"true"===e.options.enableTagAuditBeacon&&b.sampleBeacon()&&
window.setTimeout(function(){if(window[ensightenOptions.ns]&&!window[ensightenOptions.ns].mobilePlatform)try{for(var a=[],c,d,h,l,g=0;g<e.ruleList.length;++g)d=e.ruleList[g],h=d.executionData.hasRun?"1":"0",l=d.deploymentId.toString()+"|"+d.id.toString()+"|"+h,a.push(l);c="["+a.join(";")+"]";var m=window.location.protocol+"//"+e.nexus+"/"+encodeURIComponent(f.client)+"/"+encodeURIComponent(f.publishPath)+"/TagAuditBeacon.rnc?cid="+encodeURIComponent(f.clientId)+"&data="+c+"&idx=0&r="+e.rand;b.imageRequest(m)}catch(q){b.currentRuleId=
-1,b.currentDeploymentId=-1,a=new e.BeaconException(q),window[ensightenOptions.ns].reportException(a)}},3E3);window.setInterval(b.testAll,e.options.interval);return b}(ensightenOptions);
"true"===ensightenOptions.enablePagePerfBeacon&&window[ensightenOptions.ns]&&window[ensightenOptions.ns].sampleBeacon()&&window[ensightenOptions.ns].bindDOMParsed(function(){if(!window[ensightenOptions.ns].mobilePlatform){var f=window.performance;if(f){f=f.timing||{};var l=f.navigationStart||0,m={connectEnd:"ce",connectStart:"cs",domComplete:"dc",domContentLoadedEventEnd:"dclee",domContentLoadedEventStart:"dcles",domInteractive:"di",domLoading:"dl",domainLookupEnd:"dle",domainLookupStart:"dls",fetchStart:"fs",
loadEventEnd:"lee",loadEventStart:"les",redirectEnd:"rede",redirectStart:"reds",requestStart:"reqs",responseStart:"resps",responseEnd:"respe",secureConnectionStart:"scs",unloadEventStart:"ues",unloadEventEnd:"uee"};var n="&ns="+encodeURIComponent(f.navigationStart);for(var e in m)if(void 0!==f[e]){var b=f[e]-l;n+="&"+m[e]+"="+(0<b?encodeURIComponent(b):0)}else n+="&"+m[e]+"=-1";window[ensightenOptions.ns].timing=n;e=ensightenOptions.nexus||"nexus.ensighten.com";f=ensightenOptions.staticJavascriptPath||
"";n=f.indexOf("/",0);l=f.indexOf("/code/");f=f.substring(n,l)+"/perf.rnc";f+="?cid="+encodeURIComponent(ensightenOptions.clientId)+window[ensightenOptions.ns].timing;window[ensightenOptions.ns].imageRequest("//"+e+f)}}});
/*
MIT License (c) copyright 2013 original author or authors */
window[ensightenOptions.ns].data||(window[ensightenOptions.ns].when=function(){function f(a,b,d,c){return l(a).then(b,d,c)}function p(a){this.then=a}function l(a){return c(function(b){b(a)})}function c(b){function g(a){k&&(r=e(a),d(k,r),k=u)}function f(a){g(h(a))}function q(b){k&&d(k,a(b))}var r,k=[];try{b(g,f,q)}catch(E){f(E)}return new p(function(a,b,d){return c(function(c,g,e){k?k.push(function(f){f.then(a,b,d).then(c,g,e)}):n(function(){r.then(a,b,d).then(c,g,e)})})})}function e(a){return a instanceof
p?a:a!==Object(a)?m(a):c(function(b,d,c){n(function(){try{var g=a.then;"function"===typeof g?z(g,a,b,d,c):b(m(a))}catch(y){d(y)}})})}function m(a){var b=new p(function(d){try{return"function"==typeof d?e(d(a)):b}catch(D){return h(D)}});return b}function h(a){var b=new p(function(d,c){try{return"function"==typeof c?e(c(a)):b}catch(F){return h(F)}});return b}function a(b){var d=new p(function(c,g,e){try{return"function"==typeof e?a(e(b)):d}catch(y){return a(y)}});return d}function d(a,b){n(function(){for(var d,
c=0;d=a[c++];)d(b)})}function b(a,b,d,g,e){q(2,arguments);return f(a,function(a){return c(function(d,c,g){function e(a){h(a)}function q(a){u(a)}var k;var n=a.length>>>0;var t=Math.max(0,Math.min(b,n));var w=[];var x=n-t+1;var m=[];if(t){var h=function(a){m.push(a);--x||(u=h=r,c(m))};var u=function(a){w.push(a);--t||(u=h=r,d(w))};for(k=0;k<n;++k)k in a&&f(a[k],q,e,g)}else d(w)}).then(d,g,e)})}function t(a,b,d,c){q(1,arguments);return k(a,w).then(b,d,c)}function k(a,b){return f(a,function(a){return c(function(d,
c,g){var e,q;var k=e=a.length>>>0;var r=[];if(k){var n=function(a,e){f(a,b).then(function(a){r[e]=a;--k||d(r)},c,g)};for(q=0;q<e;q++)q in a?n(a[q],q):--k}else d(r)})})}function n(a){1===x.push(a)&&A(g)}function g(){for(var a,b=0;a=x[b++];)a();x=[]}function q(a,b){for(var d,c=b.length;c>a;)if(d=b[--c],null!=d&&"function"!=typeof d)throw Error("arg "+c+" must be a function");}function r(){}function w(a){return a}f.defer=function(){var a,b;var d={promise:u,resolve:u,reject:u,notify:u,resolver:{resolve:u,
reject:u,notify:u}};d.promise=a=c(function(c,g,e){d.resolve=d.resolver.resolve=function(d){if(b)return l(d);b=!0;c(d);return a};d.reject=d.resolver.reject=function(d){if(b)return l(h(d));b=!0;g(d);return a};d.notify=d.resolver.notify=function(a){e(a);return a}});return d};f.resolve=l;f.reject=function(a){return f(a,h)};f.join=function(){return k(arguments,w)};f.all=t;f.map=k;f.reduce=function(a,b){var d=z(B,arguments,1);return f(a,function(a){var c=a.length;d[0]=function(a,d,g){return f(a,function(a){return f(d,
function(d){return b(a,d,g,c)})})};return G.apply(a,d)})};f.any=function(a,d,c,g){return b(a,1,function(a){return d?d(a[0]):a[0]},c,g)};f.some=b;f.isPromise=function(a){return a&&"function"===typeof a.then};p.prototype={otherwise:function(a){return this.then(u,a)},ensure:function(a){function b(){return l(a())}return this.then(b,b).yield(this)},yield:function(a){return this.then(function(){return a})},spread:function(a){return this.then(function(b){return t(b,function(b){return a.apply(u,b)})})},always:function(a,
b){return this.then(a,a,b)}};var u;var x=[];var H=setTimeout;var A="function"===typeof setImmediate?"undefined"===typeof window?setImmediate:setImmediate.bind(window):"object"===typeof process&&process.nextTick?process.nextTick:function(a){H(a,0)};var v=Function.prototype;var C=v.call;var z=v.bind?C.bind(C):function(a,b){return a.apply(b,B.call(arguments,2))};v=[];var B=v.slice;var G=v.reduce||function(a){var b=0;var d=Object(this);var c=d.length>>>0;var g=arguments;if(1>=g.length)for(;;){if(b in
d){g=d[b++];break}if(++b>=c)throw new TypeError;}else g=g[1];for(;b<c;++b)b in d&&(g=a(g,d[b],b,d));return g};return f}(),function(){function f(c,f){return l.all(f||[],function(e){return c.apply(null,e)})}function p(e){var m=c.call(arguments,1);return function(){return f(e,m.concat(c.call(arguments)))}}var l=window[ensightenOptions.ns].when;var c=[].slice;l.apply=f;l.call=function(e){return f(e,c.call(arguments,1))};l.lift=p;l.bind=p;l.compose=function(e){var m=c.call(arguments,1);return function(){var h=
c.call(arguments);h=f(e,h);return l.reduce(m,function(a,d){return d(a)},h)}}}(),window[ensightenOptions.ns].data=function(f,p){function l(a,d){this.name="DataDefinitionException";this.message=d||"Data definitions cannot be resolved as there are invalid id(s): "+a}var c={engines:{memory:{get:function(a){if(e.utils.isArray(a)){for(var d=[],b=0;b<a.length;b++)d.push(c.data[a[b]]);return f[ensightenOptions.ns].when.resolve(d)}d=c.dataDefinitions[a]||{storage:{get:function(){}}};d=d.storage.get(d);c.data[a]=
d;return f[ensightenOptions.ns].when.resolve(c.data[a])},set:function(a,d){if(e.utils.isArray(a))for(var b in a)c.data[a[b]]=d[b];else c.data[a]=d;return f[ensightenOptions.ns].when.resolve(!0)},remove:function(a){if(e.utils.isArray(a))for(var d in a)delete c.data[a[d]];else delete c.data[a];return f[ensightenOptions.ns].when.resolve(!0)},clear:function(a){c.data={};c.definitions={};return f[ensightenOptions.ns].when.resolve(!0)},all:function(){return f[ensightenOptions.ns].when.resolve(c.data)}}},
normalizeInputArgs:function(a,d){var b={key:[],val:p},c;if(e.utils.isPlainObject(a))for(c in b.val=[],a)b.key.push(c),b.val.push(a[c]);else e.utils.isArray(a),b.key=a,b.val=d;return b},definitions:{},data:{}},e={utils:{isPlainObject:function(a){return!!a&&"[object Object]"===Object.prototype.toString.call(a)},isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},escapeRegEx:function(a){try{return a.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}catch(d){return a}}}},m=function(){return f[ensightenOptions.ns].when.reject("Not Implemented.")};
l.prototype=Error();l.prototype||(l.prototype={});l.prototype.constructor=l;c.DataDefinitionException=l;c.checkForInvalidDataDefinitions=function(a){e.utils.isArray(a)||(a=[a]);return a&&0<a.length&&(a=a.join(","),-1<a.indexOf("invalid_id"))?(f[ensightenOptions.ns].reportException(new c.DataDefinitionException(a)),!0):!1};c.collectAvailableDataDefinitions=function(a){for(var d=[],b=0;b<a.length;b++){var t=parseInt(a[b],10),k=f[ensightenOptions.ns].dataDefinitions[t];if(null===k||k===p)if(k=e.storage.session.get({id:t}),
null!==k&&k!==p)e.set(t,k),c.dataDefinitions[t]={id:t,load:"visitor",storage:e.storage.visitor,missingDDFromCache:!0},d.push(f[ensightenOptions.ns].data.get(""+t));else return f[ensightenOptions.ns].reportException(new c.DataDefinitionException(a,"Invalid data definition used: "+t)),{promises:[],isInvalid:!0};else d.push(f[ensightenOptions.ns].data.get(""+a[b]))}return{promises:d,isInvalid:!1}};c.getSync=function(a){function d(a){var d=a.extract||t,c=a.transform||k,g=!1,e=null,f=null;try{e=d()}catch(v){e=
null,g=!0}try{f=c(e)}catch(v){f=null,g=!0}g&&b.push(a.id);return f}var b=[],t=function(){return document},k=function(a){return null!==a&&a!==p?a.toString():null},n=parseInt(a);a="string"===typeof a?a.split("."):[];var g={},q="";if(!isNaN(n)&&"undefined"===typeof c.dataDefinitions[n])return f[ensightenOptions.ns].reportException(new c.DataDefinitionException(n,"Error resolving data definition: "+n+".  Does not exist on the page.")),"Data definition specified does not exist on the page";if(isNaN(n)&&
"undefined"===typeof c.dataDefinitionsBySourceCollName[""+a[0]+"."+a[1]+"."+a[2]])return f[ensightenOptions.ns].reportException(new c.DataDefinitionException(a,"Error resolving data definition: "+a[0]+"."+a[1]+"."+a[2]+".  Does not exist on the page.")),"Data definition specified does not exist on the page";isNaN(n)?3==a.length&&(g=e.getDataDefinitionBySourceCollectionName(a[0],a[1],a[2])):g=e.getDataDefinitionById(n);q=g.load&&g.load.match(/(session|visitor)/i)&&g.storage&&g.storage.get?g.storage.get(g):
d(g);0<b.length&&f[ensightenOptions.ns].reportException(new c.DataDefinitionException(b,"Error resolving data definitions synchronously: "+b));return q};c.dataDefinitions={};c.dataDefinitionsBySourceCollName={};e.defineEngine=function(a,d){var b,e=["get","set","remove","clear","all"];c.engines[a]=d;if(!d.returnsPromise)for(b=0;b<e.length;b++){var k=e[b];d[k]=f[ensightenOptions.ns].when.lift(d[k])}};e.storage={instance:{set:function(a,d){},get:function(a){return c.getSync(a.id)}},page:{set:function(a,
d){},get:function(a){return c.data[a.id]}},session:{set:function(a,d){var b=e.storage.session.get({id:a}),c=new Date,k=c.getTime();c.setTime(k+18E5);null!=b&&(d=b);f[ensightenOptions.ns].data.cookie.utils.set(a,d,{expires:c.toGMTString()});b={expires:c.getTime(),value:d};f[ensightenOptions.ns].data.local.utils.set(a,b)},get:function(a){var d=f[ensightenOptions.ns].data.cookie.utils.get(a.id),b=f.JSON&&f.JSON.stringify?f.JSON:f[ensightenOptions.ns].JSON;b=b||{};var c=new Date;c=c.getTime();if(null===
d){try{var e=b.parse(f[ensightenOptions.ns].data.local.utils.get(a.id))}catch(n){e=null}null!=e&&(e.expires=+e.expires,c<=e.expires?d=e.value:""==e.expires&&e.value!=p?d=e.value:f[ensightenOptions.ns].data.local.utils.remove(a.id))}return d}},visitor:{set:function(a,d){var b=e.storage.session.get({id:a});null!=b&&(d=b);f[ensightenOptions.ns].data.cookie.utils.set(a,d);f[ensightenOptions.ns].data.local.utils.set(a,{expires:"",value:d})},get:function(a){return e.storage.session.get(a)}}};e.getEngine=
e.engine=function(a){return a?c.engines[a]||{get:m,set:m,remove:m,clear:m,all:m}:c.engines};e.all=function(a){return f[ensightenOptions.ns].data.engine(a||"memory").all()};e.get=function(a,d,b){d=d||"memory";b=b||{};-1<a.indexOf(",")?(a=a.split(","),a=c.normalizeInputArgs(a)):a=c.normalizeInputArgs(a);return b.wait?c.getWait(a.key,f[ensightenOptions.ns].data.engine(d),b):c.data&&c.data.hasOwnProperty(a.key)?f[ensightenOptions.ns].data.engine(d).get(a.key):c.getWaitForKey(a.key,f[ensightenOptions.ns].data.engine(d),
b)};c.getWait=function(a,d,b){var c=+new Date,k=f[ensightenOptions.ns].when.defer(),n=function(){var c=d.get(a);if(-1===b.wait)return c;c.then(function(a){b.setCheck(a)?k.resolve(a):setTimeout(g,b.interval)},function(a){setTimeout(g,b.interval)})},g=function(){var a=+new Date-c;-1!==b.wait&&a<b.wait?n():k.reject("Timeout")};b.interval=b.interval||500;b.wait=b.wait||5E3;e.utils.isArray(a)?b.setCheck=b.setCheck||function(a){for(var b=!0,d=0;d<a.length;d++)b=b&&!!a[d];return b}:b.setCheck=b.setCheck||
function(a){return!!a};n();return k.promise};c.getWaitForKey=function(a,d,b){var e=f[ensightenOptions.ns].when.defer(),k=function(){if(c.data&&c.data.hasOwnProperty(a)){var g=d.get(a);if(-1===b.wait)return g;g.then(function(a){e.resolve(a)},function(a){e.reject(a)})}else setTimeout(n,b.interval)},n=function(){k()};b.interval=b.interval||100;b.wait=b.wait||1;k();return e.promise};e.set=function(a,d,b){var e=c.normalizeInputArgs(a,d);Array.prototype.slice.call(arguments);return f[ensightenOptions.ns].data.engine(b||
"memory").set(e.key,e.val)};e.remove=function(a,d){return f[ensightenOptions.ns].data.engine(d||"memory").remove(a)};e.clear=function(a){return f[ensightenOptions.ns].data.engine(a||"memory").clear()};e.define=function(a,d){d&&(a.name=d.id||d.name);if(!a.name)return f[ensightenOptions.ns].when.reject(Error("Invalid parameters: missing 'name'"));a.id=a.name;var b=a.load||"page";a.load=a.load||"javascript";a.load=-1<a.load.indexOf("javascript")?a.load:a.load+",javascript";a.trigger=a.trigger||function(){return f[ensightenOptions.ns].when.resolve()};
a.priv=a.priv||!1;a.collection=a.collection||"Data Layer";a.persist=f[ensightenOptions.ns].data.engine("memory");a.storage=e.storage[b.toLowerCase()]||e.storage.page;var h=a.extract||function(){return document},k=a.transform||function(a){return a},n=function(b,d){var c=[];c.push(a.persist.set(b,d));a.storage.set(a.id,d);"object"==typeof f[ensightenOptions.ns].data.dataExport&&f[ensightenOptions.ns].data.dataExport(b,d,a.collection);f[ensightenOptions.ns].when.all(c).then(function(a){g.resolve(a)},
function(a){g.reject(a)})},g=f[ensightenOptions.ns].when.defer();try{var q=a.trigger()}catch(r){f[ensightenOptions.ns].reportException(new c.DataDefinitionException(null,'"'+r+'" error caught in Data Definition trigger: '+a.dataDefName+", ID:"+a.id+". Using bottom of body trigger.")),q=f[ensightenOptions.ns].data.bottomOfBodyTrigger()}q.then(function(){g.resolve(f[ensightenOptions.ns].when.reduce([function(){try{return h()}catch(r){return f[ensightenOptions.ns].reportException(new c.DataDefinitionException(null,
'"'+r+'" error caught in Data Definition extractor: '+a.dataDefName+", ID:"+a.id+".")),null}}(),function(){try{return k.apply(this,arguments)}catch(r){return f[ensightenOptions.ns].reportException(new c.DataDefinitionException(null,'"'+r+'" error caught in Data Definition transformer: '+a.dataDefName+", ID "+a.id+".")),null}},n],function(b,d,c,e){if(1==c)return d(b);2==c&&d(a.name,b)}))},function(a){g.reject(a)});c.dataDefinitions[a.id]=a;c.dataDefinitionsBySourceCollName[""+a.source+"."+a.collection+
"."+a.dataDefName]=a;return g.promise};e.checkConditions=function(a){var d,b={lt:function(a,b){var d=+a,e=+b;return isNaN(d)||isNaN(e)?(f[ensightenOptions.ns].reportException(new c.DataDefinitionException(null,"Value(s) cannot be converted to number: compareWith: "+a+", compareTo: "+b)),!1):d<e},gt:function(a,b){var d=+a,e=+b;return isNaN(d)||isNaN(e)?(f[ensightenOptions.ns].reportException(new c.DataDefinitionException(null,"Value(s) cannot be converted to number: compareWith: "+a+", compareTo: "+
b)),!1):d>e},eql:function(a,b){return a==b},exists:function(a,b){return null==a||a==p||""==a?!1:!0},re:function(a,b,d){b=new RegExp(b,d?"i":"");try{return a.match(b)}catch(q){return!1}},starts:function(a,d,c){d=e.utils.escapeRegEx(d);return b.re(a,"^"+d,c)},ends:function(a,d,c){d=e.utils.escapeRegEx(d);return b.re(a,d+"$",c)},contains:function(a,d,c){d=e.utils.escapeRegEx(d);return b.re(a,".*"+d+".*",c)}};b.is=b.eql;b["starts with"]=b.starts;b["ends with"]=b.ends;b["is greater than"]=b.gt;b["is less than"]=
b.lt;b.matches=b.re;for(d=0;d<a.values.length;d++){var h=(a.customComparator?a.customComparator[d]?a.customComparator[d]:b[a.comparators[d]]:b[a.comparators[d]])(a.values[d],a.compareTo[d],a.caseInsensitive?a.caseInsensitive[d]||!1:!1);a.not[d]&&(h=!h);if(!h)return!1}return!0};e.triggerPromise=function(a,d,b){b=b||5E3;var c=+new Date,e=f[ensightenOptions.ns].when.defer();(function(){var f=a();f!=d?e.resolve(f):+new Date-c<b?setTimeout(arguments.callee,200):e.reject("timed out")})();return e.promise};
e.timeoutPromise=function(a,d){var b=f[ensightenOptions.ns].when.defer();d=d||800;a.then(b.resolve,b.reject);setTimeout(function(){b.reject(Error("timed out"))},d);return b.promise};e.delayTrigger=function(a){a=a||10;var d=f[ensightenOptions.ns].when.defer();setTimeout(function(){d.resolve()},a);return d.promise};e.delayUntilTrigger=function(a,d,b,c){b=b||null;c=c||200;var e=+new Date,h=f[ensightenOptions.ns].when.defer();(function(){var g=a();g!=d?h.resolve(g):b?+new Date-e<b?setTimeout(arguments.callee,
c):h.reject("timed out"):setTimeout(arguments.callee,c)})();return h.promise};c.applyTrigger=function(a){var d=f[ensightenOptions.ns].when.defer();a(function(){d.resolve(!0)});return d.promise};e.immediateTrigger=function(){return c.applyTrigger(f[ensightenOptions.ns].bindImmediate)};e.bottomOfBodyTrigger=function(){return c.applyTrigger(f[ensightenOptions.ns].bindDOMParsed)};e.whenValueExistsTrigger=function(){return f[ensightenOptions.ns].when.resolve(this.extract())};e.afterEnsightenCompleteTrigger=
function(){return c.applyTrigger(f[ensightenOptions.ns].bindPageSpecificCompletion)};e.afterElementsDownloadedTrigger=function(){return c.applyTrigger(f[ensightenOptions.ns].bindDOMLoaded)};e.getAllDataDefinitionsOnCurrentPage=function(){return c.dataDefinitions};e.getAllDataDefinitionsOnCurrentPage_S_C_N=function(){return c.dataDefinitionsBySourceCollName};e.getDataDefinitionById=function(a){return c.dataDefinitions[a||-1]||{}};e.getDataDefinitionBySourceCollectionName=function(a,d,b){return c.dataDefinitionsBySourceCollName[""+
a+"."+d+"."+b]||{}};e.getDataDefinitionByPercentSyntax=function(a){a=(""+a).split("_");return 1>a.length?{}:c.dataDefinitions[a[1]]||{}};e.resolve=function(a,d){var b=this,h=null;if(!c.checkForInvalidDataDefinitions(a))if(d)f[ensightenOptions.ns].bindDataDefinitionComplete(function(){var e=c.collectAvailableDataDefinitions(a);e.isInvalid||f[ensightenOptions.ns].when.all(e.promises).then(function(e){try{d.apply(b,e)}catch(r){f[ensightenOptions.ns].reportException(new c.DataDefinitionException(a,"Error resolving data definitions: "+
a+". Details: "+r))}},function(b){f[ensightenOptions.ns].reportException(new c.DataDefinitionException(a,"Error resolving data definitions: "+a+". Details: "+b))})});else{h=[];var k=a;e.utils.isArray(a)||(k=[a]);for(var m=0;m<k.length;m++)h.push(c.getSync(k[m]));return h=e.utils.isArray(a)?h:h[0]}};e.extract=function(a,d){var b="",c=function(a,b){var d=~b.indexOf("#")?b.split("#")[1]:"",c=d?0:~b.indexOf("[")?parseInt(b.match(/\[(\d+)\]/)[1]):0,e=(d?b.split("#")[0]:c?b.split("[")[0]:b).toLowerCase();
if(a==document&&"html"==e&&0==c)return document.getElementsByTagName("html")[0];if(~b.indexOf("#"))return document.getElementById(b.split("#")[1]);var g=a.firstChild;if(!g)return null;var f=0;for(c=0!=c?c-1:c;g;){if(1==g.nodeType){if(g.tagName.toLowerCase()==e&&""!=d&&g.id==d||g.tagName.toLowerCase()==e&&f==c&&""==d)return g;g.tagName.toLowerCase()==e&&f++}g=g.nextSibling}},e=function(a,b){a=a.split("/");for(var d=c(b||document,a[1]),e=2;e<a.length;e++){if(null==d)return null;d=c(d,a[e])}return d},
h=function(){for(var a={},b=f.document.getElementsByTagName("META")||[],d=0,c=b.length;d<c;d++){var e=b[d].name||b[d].getAttribute("property")||"";0!==e.length&&(a[e]=b[d].content)}return a}(),g=function(a){var b=h[a];if(b)return b;b=f.document.getElementsByTagName("META")||[];for(var d=0,c=b.length;d<c;d++){var e=b[d].name||b[d].getAttribute("property")||"";if(a==e)return b[d].content}},q=function(a){return(val=(new RegExp("&"+a+"=([^&]*)")).exec(f.location.search.replace(/^\?/,"&")))?val[0].split("=")[1]:
""},r=function(a){return(val=(new RegExp("^"+a+"=.*|;\\s*"+a+"=.*")).exec(f.document.cookie))?val[0].split("=")[1].split(";")[0]:""},m=function(a){(a=l(a))&&a.nodeType&&1==a.nodeType&&(a=a.value||a.innerHTML||"");return a.toString().replace(/\n|\r|\s\s+/g,"")||""},l=function(a){var b="";if(0==a.indexOf("/HTML/BODY"))b=e(a);else try{b=eval(a)}catch(A){b=""}return b};try{return d?"meta"==d?b=g(a):"cookie"==d?b=r(a):"param"==d?b=q(a):"content"==d?b=m(a):"event"==d?b=l(a):"var"==d&&(b=f[a]):b=g(a)||r(a)||
q(a)||m(a)||l(a)||f[a]||"",b||""}catch(x){return""}};if("undefined"==typeof h)var h={exports:{}};return e}(window),window[ensightenOptions.ns].data.defineEngine("store",function(){function f(a){return function(){var d=Array.prototype.slice.call(arguments,0);d.unshift(b);k.appendChild(b);b.addBehavior("#default#userData");b.load(h);d=a.apply(store,d);k.removeChild(b);return d}}function p(a){return a.replace(l,"___")}var l=RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),c={},e=window,m=e.document,
h="localStorage",a,d=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};c.set=function(a,b){};c.get=function(a){};c.remove=function(a){};c.clear=function(){};try{if(h in e&&e[h]){var b=e[h];c.set=function(a,c){var e,g=window.JSON&&window.JSON.stringify?window.JSON:window[ensightenOptions.ns].JSON;if(d(a)){var f=0;for(e=a.length;f<e;f++)b.setItem(a[f],"string"===typeof c[f]?c[f]:g.stringify(c[f]))}else b.setItem(a,"string"===typeof c?c:g.stringify(c))};c.get=function(a){if(d(a)){var c=
{},e;var f=0;for(e=a.length;f<e;f++)c[a[f]]=b.getItem(a[f]);return c}return b.getItem(a)};c.remove=function(a){if(d(a)){var c;var e=0;for(c=a.length;e<c;e++)b.removeItem(a[e])}else b.removeItem(a)};c.clear=function(){b.clear()};c.all=function(){return b}}else if("globalStorage"in e&&e.globalStorage)b=e.globalStorage[e.location.hostname],c.set=function(a,c){if(d(a)){var e;var f=0;for(e=a.length;f<e;f++)b[a[f]]=c[f]}else b[a]=c},c.get=function(a){if(d(a)){var c={},e;var f=0;for(e=a.length;f<e;f++)c[a[f]]=
b[a[f]]&&b[a[f]].value;return c}return b[a]&&b[a].value},c.remove=function(a){if(d(a)){var c;var e=0;for(c=a.length;e<c;e++)delete b[a[e]]}else delete b[a]},c.clear=function(){for(var a in b)delete b[a]},c.all=function(){return b};else if(m.documentElement.addBehavior){try{var t=new ActiveXObject("htmlfile");t.open();t.write('<script>document.w=window\x3c/script><iframe src="/favicon.ico"></frame>');t.close();var k=t.w.frames[0].document;b=k.createElement("div")}catch(g){b=m.createElement("div"),
k=m.body}c.set=f(function(a,b,e){if(d(b)){var f;var g=0;for(f=b.length;g<f;g++){fixedKey=p(b[g]);if(void 0===e[g])return c.remove(fixedKey);a.setAttribute(fixedKey,e[g]);a.save(h)}}else{fixedKey=p(b);if(void 0===e)return c.remove(fixedKey);a.setAttribute(fixedKey,e);a.save(h)}});c.get=f(function(a,b){if(d(b)){var c={},e;var f=0;for(e=b.length;f<e;f++){var g=p(b[f]);c[b[f]]=a.getAttribute(g)}return c}b=p(b);return a.getAttribute(b)});c.remove=f(function(a,b){if(d(b)){var c;var e=0;for(c=b.length;e<
c;e++)a.removeAttribute(p(b[e])),a.save(h)}else b=p(b),a.removeAttribute(b),a.save(h)});c.clear=f(function(a){var b=a.XMLDocument.documentElement.attributes;a.load(h);for(var d=0,c;c=b[d];d++)a.removeAttribute(c.name);a.save(h)});c.all=f(function(a){for(var b=a.XMLDocument.documentElement.attributes,d={},c=0,e;e=b[c];++c){var f=p(e.name);d[e.name]=a.getAttribute(f)}return d})}}catch(g){}var n={};for(a in c)n[a]=c[a];n.testStorage=function(){try{var a="tk_"+Math.ceil(5E7*Math.random());n.set(a,"test");
if("test"===n.get(a))return n.remove(a),!0}catch(q){}return!1};c.utils=n;return window[ensightenOptions.ns].data.local=c}()),window[ensightenOptions.ns].data.defineEngine("cookie",function(f,p){var l=function(){return l.get.apply(l,arguments)},c=l.utils={isArray:Array.isArray||function(c){return"[object Array]"===Object.prototype.toString.call(c)},isPlainObject:window[ensightenOptions.ns].data.utils.isPlainObject,toArray:function(c){return Array.prototype.slice.call(c)},getKeys:Object.keys||function(c){var e=
[],f="";for(f in c)c.hasOwnProperty(f)&&e.push(f);return e},escape:function(c){return String(c).replace(/[,;"\\=\s%]/g,function(c){return encodeURIComponent(c)})},retrieve:function(c,f){return null==c?f:c},getAllCookies:function(){if(""===f.cookie)return{};for(var c=f.cookie.split("; "),m={},h=0,a=c.length;h<a;h++){var d=c[h].split("=");m[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return m},set:function(e,m,h){h=h||-1;if(c.isPlainObject(e))for(var a in e)e.hasOwnProperty(a)&&l.set(a,e[a],
m);else if(c.isArray(e)){var d;a=0;for(d=e.length;a<d;a++)l.set(e[a],m[a],h)}else{a=h.expires!==p?h.expires:l.defaults.expires||"";"number"===typeof a&&(a=new Date(a));a=c.isPlainObject(a)&&"toGMTString"in a?";expires="+a.toGMTString():c.isPlainObject(a)&&a instanceof Date?";expires="+a.toUTCString():";expires="+a;d=(d=h.path||l.defaults.path)?";path="+d:"";var b=h.domain||l.defaults.domain;b=b?";domain="+b:"";h=h.secure||l.defaults.secure?";secure":"";f.cookie=c.escape(e)+"="+c.escape(m)+a+d+b+h}},
get:function(e,f){f=f||p;var h=c.getAllCookies();if(c.isArray(e)){for(var a={},d=0,b=e.length;d<b;d++)a[e[d]]=c.retrieve(h[e[d]],f),a[e[d]]===p&&(a[e[d]]=null);return a}a=c.retrieve(h[e],f);return a===p?null:a},getGMTString:function(c){var e=new Date;e.setTime(e.getTime()+864E5*c);return e.toGMTString()}};l.defaults={path:"/",expires:c.getGMTString(90)};l.set=function(e,f){c.set(e,f)};l.remove=function(e){e=c.isArray(e)?e:c.toArray(arguments);for(var f=0,h=e.length;f<h;f++)c.set(e[f],"",{expires:-1})};
l.clear=function(){return l.remove(c.getKeys(c.getAllCookies()))};l.get=function(e,f){return c.get(e,f)};l.all=function(){return c.getAllCookies()};l.utils=c;return window[ensightenOptions.ns].data.cookie=l}(document)));
window[ensightenOptions.ns].ensEvent||(window[ensightenOptions.ns].ensEvent=function(p,u){var k={queue:{},pollQueue:{},pushTrigger:function(b,c){if("[object Array]"===Object.prototype.toString.call(b)){for(var g=0;g<b.length;g++)k.pushTrigger(b[g],c);return!0}if("string"!=typeof b)return!1;this.queue[b]=this.queue[b]||{fn:[]};"function"==typeof c&&this.queue[b].fn.push(c);return!0},callTrigger:function(b,c,g){if("string"!=typeof b)return!1;b=k.queue[b];if("object"==typeof b&&b.fn&&b.fn.length&&(0!=
b.fireOnFirstSet&&c==u||c!=u&&0!=b.fireOnUpdate))for(c=0;c<b.fn.length;c++)try{b.fn[c].call(this)}catch(n){p[ensightenOptions.ns].reportException(n)}},setPollOptions:function(b,c,g){this.queue[b]=this.queue[b]||{fn:[]};this.queue[b].fireOnFirstSet=c;this.queue[b].fireOnUpdate=g},callPoll:function(b,c,g,p,r){if("string"==typeof b&&c&&c.length&&!(1>c.length)){for(var n=0;n<c.length;n++)k.setPollOptions(c[n],p,r);k.pushWatch(b,c,g)}},pushWatch:function(b,c,g){this.pollQueue[b]||(this.pollQueue[b]={previousVal:u,
eventArr:[],valueFn:g});this.pollQueue[b].eventArr=this.pollQueue[b].eventArr.concat(c);this.pollQueue[b].valueFn=g},globalWatch:function(){setInterval(function(){for(var b in k.pollQueue){var c=k.pollQueue[b],g=c.valueFn(b);if(c.previousVal!==g&&null!==g&&""!==g){for(var n=0;n<c.eventArr.length;n++)k.callTrigger.call(p,c.eventArr[n],c.previousVal,g);k.pollQueue[b].previousVal=g}}},500)}};k.globalWatch();return{add:function(b,c){return k.pushTrigger(b,c)},get:function(b){return k.queue[b]},trigger:function(b,
c){return k.callTrigger.call(c||p,b)},poll:function(b,c,g,n,r){r=r||p[ensightenOptions.ns].data.resolve;return k.callPoll(b,c,r,g,n)}}}(window),function(p,u,k){u[p]=k()}("qwery",window[ensightenOptions.ns],function(){function p(){this.c={}}function u(a){return H.g(a)||H.s(a,"(^|\\s+)"+a+"(\\s+|$)",1)}function k(a,d){for(var e=0,f=a.length;e<f;e++)d(a[e])}function b(a){for(var d=[],e=0,f=a.length;e<f;++e)l(a[e])?d=d.concat(a[e]):d[d.length]=a[e];return d}function c(a){for(var d=0,e=a.length,f=[];d<
e;d++)f[d]=a[d];return f}function g(a){for(;(a=a.previousSibling)&&1!=a.nodeType;);return a}function n(a,d,e,f,b,h,l,c,g,k,y){var I,B,m;if(1!==this.nodeType||d&&"*"!==d&&this.tagName&&this.tagName.toLowerCase()!==d||e&&(I=e.match(Q))&&I[1]!==this.id)return!1;if(e&&(m=e.match(R)))for(a=m.length;a--;)if(!u(m[a].slice(1)).test(this.className))return!1;if(g&&v.pseudos[g]&&!v.pseudos[g](this,y))return!1;if(f&&!l)for(B in g=this.attributes,g)if(Object.prototype.hasOwnProperty.call(g,B)&&(g[B].name||B)==
b)return this;return f&&!x(h,S(this,b)||"",l)?!1:this}function r(a){return J.g(a)||J.s(a,a.replace(T,"\\$1"))}function x(a,d,e){switch(a){case "=":return d==e;case "^=":return d.match(w.g("^="+e)||w.s("^="+e,"^"+r(e),1));case "$=":return d.match(w.g("$="+e)||w.s("$="+e,r(e)+"$",1));case "*=":return d.match(w.g(e)||w.s(e,r(e),1));case "~=":return d.match(w.g("~="+e)||w.s("~="+e,"(?:^|\\s+)"+r(e)+"(?:\\s+|$)",1));case "|=":return d.match(w.g("|="+e)||w.s("|="+e,"^"+r(e)+"(-|$)",1))}return 0}function q(a,
d){var e=[],f=[],b,h,l=d,c=C.g(a)||C.s(a,a.split(K)),g=a.match(L);if(!c.length)return e;var m=(c=c.slice(0)).pop();c.length&&(b=c[c.length-1].match(M))&&(l=N(d,b[1]));if(!l)return e;var y=m.match(E);var v=l!==d&&9!==l.nodeType&&g&&/^[+~]$/.test(g[g.length-1])?function(a){for(;l=l.nextSibling;)1==l.nodeType&&(y[1]?y[1]==l.tagName.toLowerCase():1)&&(a[a.length]=l);return a}([]):l.getElementsByTagName(y[1]||"*");b=0;for(m=v.length;b<m;b++)if(h=n.apply(v[b],y))e[e.length]=h;if(!c.length)return e;k(e,
function(a){t(a,c,g)&&(f[f.length]=a)});return f}function t(a,d,e,b){function l(a,b,c){for(;c=U[e[b]](c,a);)if(f(c)&&n.apply(c,d[b].match(E)))if(b){if(h=l(c,b-1,c))return h}else return c}var h;return(h=l(a,d.length-1,a))&&(!b||z(h,b))}function f(a,d){return a&&"object"===typeof a&&(d=a.nodeType)&&(1==d||9==d)}function h(a){var d=[],e;var f=0;a:for(;f<a.length;++f){for(e=0;e<d.length;++e)if(d[e]==a[f])continue a;d[d.length]=a[f]}return d}function l(a){return"object"===typeof a&&isFinite(a.length)}
function N(a,d,e){return 9===a.nodeType?a.getElementById(d):a.ownerDocument&&((e=a.ownerDocument.getElementById(d))&&z(e,a)&&e||!z(a,a.ownerDocument)&&F('[id="'+d+'"]',a)[0])}function v(a,d){var e,h;var g=d?"string"==typeof d?v(d)[0]:!d.nodeType&&l(d)?d[0]:d:m;if(!g||!a)return[];if(a===window||f(a))return!d||a!==window&&f(g)&&z(a,g)?[a]:[];if(a&&l(a))return b(a);if(e=a.match(V)){if(e[1])return(h=N(g,e[1]))?[h]:[];if(e[2])return c(g.getElementsByTagName(e[2]));if(W&&e[3])return c(g.getElementsByClassName(e[3]))}return F(a,
g)}function y(a,d){return function(e){var f,b;O.test(e)?9!==a.nodeType&&((b=f=a.getAttribute("id"))||a.setAttribute("id",b="__qwerymeupscotty"),d(a.parentNode||a,'[id="'+b+'"]'+e,!0),f||a.removeAttribute("id")):e.length&&d(a,e,!1)}}var m=document,D=m.documentElement,F,Q=/#([\w\-]+)/,R=/\.[\w\-]+/g,M=/^#([\w\-]+)$/,X=/^([\w]+)?\.([\w\-]+)$/,O=/(^|,)\s*[>~+]/,Y=/^\s+|\s*([,\s\+~>]|$)\s*/g,A=/[\s>\+~]/,P=/(?![\s\w\-\/\?&=:\.\(\)!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/,T=/([.*+?\^=!:${}()|\[\]\/\\])/g,
V=new RegExp(M.source+"|"+/^([\w\-]+)$/.source+"|"+/^\.([\w\-]+)$/.source),L=new RegExp("("+A.source+")"+P.source,"g"),K=new RegExp(A.source+P.source),E=new RegExp(/^(\*|[a-z0-9]+)?(?:([\.#]+[\w\-\.#]+)?)/.source+"("+/\[([\w\-]+)(?:([\|\^\$\*~]?=)['"]?([ \w\-\/\?&=:\.\(\)!,@#%<>\{\}\$\*\^]+)["']?)?\]/.source+")?("+/:([\w\-]+)(\(['"]?([^()]+)['"]?\))?/.source+")?"),U={" ":function(a){return a&&a!==D&&a.parentNode},">":function(a,d){return a&&a.parentNode==d.parentNode&&a.parentNode},"~":function(a){return a&&
a.previousSibling},"+":function(a,d,e,f){return a?(e=g(a))&&(f=g(d))&&e==f&&e:!1}};p.prototype={g:function(a){return this.c[a]||void 0},s:function(a,d,e){d=e?new RegExp(d):d;return this.c[a]=d}};var H=new p,J=new p,w=new p,C=new p,z="compareDocumentPosition"in D?function(a,d){return 16==(d.compareDocumentPosition(a)&16)}:"contains"in D?function(a,d){d=9===d.nodeType||d==window?D:d;return d!==a&&d.contains(a)}:function(a,d){for(;a=a.parentNode;)if(a===d)return 1;return 0},S=function(){var a=m.createElement("p");
return(a.innerHTML='<a href="#x">x</a>',"#x"!=a.firstChild.getAttribute("href"))?function(a,e){return"class"===e?a.className:"href"===e||"src"===e?a.getAttribute(e,2):a.getAttribute(e)}:function(a,e){return a.getAttribute(e)}}(),W=!!m.getElementsByClassName,Z=m.querySelector&&m.querySelectorAll,aa=function(a,d){var e=[],f,b;try{if(9===d.nodeType||!O.test(a))return c(d.querySelectorAll(a));k(f=a.split(","),y(d,function(a,d){b=a.querySelectorAll(d);1==b.length?e[e.length]=b.item(0):b.length&&(e=e.concat(c(b)))}));
return 1<f.length&&1<e.length?h(e):e}catch(ba){}return G(a,d)},G=function(a,d){var e=[],f,b;a=a.replace(Y,"$1");if(f=a.match(X)){var l=u(f[2]);f=d.getElementsByTagName(f[1]||"*");var c=0;for(b=f.length;c<b;c++)l.test(f[c].className)&&(e[e.length]=f[c]);return e}k(f=a.split(","),y(d,function(a,f,h){l=q(f,a);c=0;for(b=l.length;c<b;c++)if(9===a.nodeType||h||z(l[c],d))e[e.length]=l[c]}));return 1<f.length&&1<e.length?h(e):e};A=function(a){"undefined"!==typeof a.useNativeQSA&&(F=a.useNativeQSA?Z?aa:G:
G)};A({useNativeQSA:!0});v.configure=A;v.uniq=h;v.is=function(a,d,e){if(f(d))return a==d;if(l(d))return!!~b(d).indexOf(a);for(var c=d.split(","),h;d=c.pop();)if(h=C.g(d)||C.s(d,d.split(K)),d=d.match(L),h=h.slice(0),n.apply(a,h.pop().match(E))&&(!h.length||t(a,h,d,e)))return!0;return!1};v.pseudos={};return v}),function(){function p(f,b,c){n||(n=window[ensightenOptions.ns].qwery);var h=n;if((h=h.call(c,b,c))&&0<h.length){if("_root"==b)f=c;else if(f===c)f=void 0;else{b:{for(var l=h.length,g=0;g<l;g++)if(f===
h[g]){h=!0;break b}h=!1}h||(f.parentNode?(r++,f=p(f.parentNode,b,c)):f=void 0)}return f}return!1}function u(f,b,c,g){q[f.id]||(q[f.id]={});q[f.id][b]||(q[f.id][b]={});q[f.id][b][c]||(q[f.id][b][c]=[]);q[f.id][b][c].push(g)}function k(f,b,c,g){if(g||c)if(g)for(var h=0;h<q[f.id][b][c].length;h++){if(q[f.id][b][c][h]===g){q[f.id][b][c].pop(h,1);break}}else delete q[f.id][b][c];else q[f.id][b]={}}function b(b,c,l){if(q[b][l]){var f=c.target||c.srcElement,h,k,m={},n=k=0;r=0;for(h in q[b][l])q[b][l].hasOwnProperty(h)&&
(k=p(f,h,t[b].element))&&g.matchesEvent(l,t[b].element,k,"_root"==h,c)&&(r++,q[b][l][h].match=k,m[r]=q[b][l][h]);c.stopPropagation=function(){c.cancelBubble=!0};for(k=0;k<=r;k++)if(m[k])for(n=0;n<m[k].length;n++){if(!1===m[k][n].call(m[k].match,c)){g.cancel(c);return}if(c.cancelBubble)return}}}function c(c,h,l,n){function f(c){return function(f){b(p,f,c)}}c instanceof Array||(c=[c]);l||"function"!=typeof h||(l=h,h="_root");var p=this.id,m;for(m=0;m<c.length;m++)q[p]&&q[p][c[m]]||g.addEvent(this,c[m],
f(c[m])),n?k(this,c[m],h,l):u(this,c[m],h,l);return this}function g(b,c,l,k){if("string"==typeof b&&"function"==typeof c||"string"==typeof c)g(document).on(b,c,l,k||!1);if(!(this instanceof g)){for(var f in t)if(t[f].element===b)return t[f];x++;t[x]=new g(b,x);t[x]._on=t[x].on;t[x].on=function(b,c,f,g){var h="function"==typeof c?c:f;if("function"==typeof c?f:g)b=[b],"string"==typeof c&&b.push(c),b.push(function(b){return function(c){c.defaultPrevented||window[ensightenOptions.ns].Delegate.load(this);
if(this.nodeName&&"a"!=this.nodeName.toLowerCase())return b.call(this);"undefined"!=typeof c.preventDefault?c.preventDefault():c.returnValue=!1;b.call(this)}}(h)),this._on.apply(this,b);else return this._on.call(this,b,c,f)};return t[x]}this.element=b;this.id=c}var n,r=0,x=0,q={},t={};g.prototype.on=function(b,g,l){return c.call(this,b,g,l)};g.prototype.off=function(b,g,l){return c.call(this,b,g,l,!0)};g.cancel=function(b){b.preventDefault();b.stopPropagation()};g.addEvent=function(b,c,g){b.element.addEventListener(c,
g,"blur"==c||"focus"==c)};g.matchesEvent=function(){return!0};g.load=function(b){setTimeout(function(b,c){return function(){if(b.nodeName&&"a"==b.nodeName.toLowerCase()){if(c&&/^javascript\s*:/.test(c))return(new Function(unescape(c))).call(window);c&&(window.location.href=c)}}}(b,b.href||""),750)};window[ensightenOptions.ns].Delegate=g}(),function(p){var u=p.addEvent;p.addEvent=function(k,b,c){if(k.element.addEventListener)return u(k,b,c);"focus"==b&&(b="focusin");"blur"==b&&(b="focusout");k.element.attachEvent("on"+
b,c)};p.cancel=function(k){k.preventDefault&&k.preventDefault();k.stopPropagation&&k.stopPropagation();k.returnValue=!1;k.cancelBubble=!0}}(window[ensightenOptions.ns].Delegate),window[ensightenOptions.ns].on=window[ensightenOptions.ns].Delegate);
Bootstrapper.dataDefinitionIds = [16071];/*
at.js 1.2.2 | (c) Adobe Systems Incorporated | All rights reserved
zepto.js | (c) 2010-2016 Thomas Fuchs | zeptojs.com/license
rx.js | (c) 2015-2016 Netflix, Inc., Microsoft Corp. and contributors | http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
privacy-gateway.js - v
Created by Ensighten Inc. on 2017-11-29.
Copyright (c) 2015 Ensighten Inc.
Any redistribution or reproduction of part or all of the contents in any form is prohibited.
You may not, except with our express written permission, distribute or commercially exploit the content.
Nor may you transmit it or store it in any other website or other form of electronic retrieval system.
privacy-gateway.js - v
Created by Ensighten Inc. on 2018-05-25.
Copyright (c) 2015 Ensighten Inc.
Any redistribution or reproduction of part or all of the contents in any form is prohibited.
You may not, except with our express written permission, distribute or commercially exploit the content.
Nor may you transmit it or store it in any other website or other form of electronic retrieval system.
*/
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("tdinsurance.com/melochemonnex")>-1||document.URL.indexOf("tdassurance.com/melochemonnex")>-1||document.URL.indexOf("staging.tdinsurance.com/meloche/index_c")>-1)mboxCreate("tdi_meloche_main-top");if(document.URL.indexOf("tdinsurance.com/affinity")>-1)mboxCreate("tdi_affinity_main-top");if(document.URL.indexOf("tdinsurance.com/group")>-1)mboxCreate("tdi_group_main-top");
if(document.location.host.indexOf("tdinsurance.com")>-1&&document.location.pathname=="/"||document.location.host.indexOf("tdassurance.com")>-1&&document.location.pathname=="/")mboxCreate("tdi-main_top");if(document.URL.indexOf("tdinsurance.com/index_e")>-1)mboxCreate("tdi-main_top");if(document.URL.indexOf("tdinsurance.com/customer-service/contact-us")>-1)mboxCreate("tdi-customer-service-contactus_top");if(document.URL.indexOf("tdinsurance.com/products-services/auto-car-insurance")>-1)mboxCreate("tdi-auto-insurance_top");
if(document.URL.indexOf("tdinsurance.com/products-services/home-insurance")>-1&&document.URL.indexOf("earn-aeroplan-miles-home")==-1)mboxCreate("tdi-residential-insurance_top");if(document.URL.indexOf("tdinsurance.com/products-services/home-insurance/earn-aeroplan-miles-home")>-1)mboxCreate("tdi-residential-aeroplan_top");if(document.URL.indexOf("tdinsurance.com/products-services/travel-medical-insurance")>-1)mboxCreate("tdi-travelmedical-insurance_top");if(document.URL.indexOf("tdinsurance.com/products-services/life-insurance")>
-1)mboxCreate("tdi-life-insurance_top");if(document.URL.indexOf("tdinsurance.com/my-policies")>-1)mboxCreate("tdi-myinsurance-mypolicies_top");if(document.URL.indexOf("tdinsurance.com/products-services/recreational-vehicle-insurance")>-1)mboxCreate("tdi-rv-insurance_top")},2113251,[490595,2589015],423798,[252250,414663]);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(~document.URL.indexOf("mbna.ca/mysupport")||~document.URL.indexOf("mobile-ads")||document.URL.indexOf("tdinsurance.com")>-1||document.URL.indexOf("tdassurance.com")>-1);else(function(){Bootstrapper.gatewayOptions={clientName:"TDBank",cookieTypes:["PERSONALIZATION","THIRDPARTY"],enableFiltering:Bootstrapper.enableFiltering||false};Bootstrapper.blockPathsByDefault=
{"PERSONALIZATION":["mbox.js"],"THIRDPARTY":[]};Bootstrapper.whitelist={"default":["localhost","tdinsurance.com","tdassurance.com",location.hostname,"ensighten.com",".td.com","tdbank.com","tdwealthmedia.com","marketsandresearch.td.com","tdcanadatrust.com","tdwaterhouse.ca","intelliresponse.com","accounts.google.com","brightcove.com","players.brightcove.net","estara.com","googleapis.com","dmtry.com","www.google.com","youtube.com","ytimg.com","markitcdn.com","appnexus.com","google-analytics.com","coremetrics.com",
"247realmedia.com","mathtag.com","limelight.com","convertlanguage.com","bazaarvoice.com","liveperson.net","lpcdn.lpsnmedia.net","liveperson.com","liveperson.net","lpsnmedia.net","liveengage.net","liveengage.com","liveper.sn","z1.liveper.sn","lpcdn.lpsnmedia.net","accdn.lpsnmedia.net","lptag.liveperson.net","va.v.liveperson.net","omtrdc.net","gstatic.com","mbna.ca","egain.com","adnxs.com","cdn.oas-training7.adnxs.com","track.linksynergy.com","linksynergy.com","platform.twitter.com","syndication.twitter.com",
"twitter.com","www.tdwealthvideos.com","www7.dev.tdinsurance.com","www7.dev.tdassurance.com","www2.sys.tdinsurance.com","www2.sys.tdassurance.com","tdassetmanagement.com","www.tdassetmanagement.com","mms.tdcanadatrust.com","td.intelliresponse.com","maps.google.com","td.mediaroom.com","www.googletagmanager.com","analytics.emeraldconnect.com","analytics.broadridgeadvisor.com"],"PERSONALIZATION":["twitter.com","twimg.com","apis.google.com","platform.twitter.com","syndication.twitter.com","td.demdex.net",
"dpm.demdex.net"],"THIRDPARTY":["adap.tv","spotxchange.com","360yield.com","adadvisor.net","admeta.com","adtech.com","aggregateknowledge.com","agkn.com","bluekai.com","bkrtx.com","bstatic.com","thebrighttag.com","criteo.com","criteo.net","doubleclick.net","exelator.com","facebook.com","facebook.net","googleadservices.com","jwplayer.com","kau.li","p-td.com","acxiom-online.com","adscale.de","burstmedia.com","nexac.com","eqads.com","krxd.net","leadback.advertising.com","lijit.com","scorecardresearch.com",
"addtoany.com","yahoo.com","yimg.com","vimeo.com","vmmpxl.com","turn.com","tribalfusion.com","switchads.com","sonobi.com","smartadserver.com","rubiconproject.com","rfihub.com","yieldmanager.net","contextweb.com","rlcdn.com","openx.net","mookie1.com","newrelic.com","media6degrees.com","pubmatic.com","everestjs.net","pixel.everesttech.net","s.idio.co","a.idio.co","event.on24.com","portal.on24.com","cdn.adgrx.com","adgrx.com","dcs.adgear.com","adgear.com","rtb.adgrx.com","cdn.adgrx.com","cdnssl.clicktale.net"]}})()},
2869063,[2858775],292469,[292467]);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(~document.URL.indexOf("mbna.ca/mysupport")||~document.URL.indexOf("mobile-ads")||document.URL.indexOf("tdinsurance.com")>-1||document.URL.indexOf("tdassurance.com")>-1);else{Bootstrapper.enablePrivacy=false;Bootstrapper.privacyStaging=false;(function(){function gatewayPrivacy(){if(/gateway=privacy/.test(window.location.search))return true;return false}function onStage(){for(var i=
0;i<stageArray.length;i++)if(stageArray[i].test(window.location.href)){Bootstrapper.privacyStaging=true;return true}return false}function onProd(){for(var i=0;i<prodArray.length;i++)if(prodArray[i].test(window.location.href))return true;return false}function onOptOutPage(){for(var i=0;i<optOutArray.length;i++)if(optOutArray[i].test(window.location.href))return true;return false}function linkOnly(){for(var i=0;i<linkArray.length;i++)if(window.location.href.indexOf(linkArray[i])>=0)return true;return false}
function cookieOnly(){for(var i=0;i<cookieArray.length;i++)if(window.location.hostname.indexOf(cookieArray[i])>=0)return true;return false}function isExplicit(){return false}var stageArray=[/www.stg.tdcanadatrust.com/,/dev.td.com/,/www.stg.tdcanadatrust.com/,/www.test2.tdcanadatrust.com/,/www.sys1.apply.td.com/,/tools.test.tdcanadatrust.com\/tdam-npc-ie/,/www.w10.sys.tdcanadatrust.com\/mortgagePayCalculator/];var prodArray=[/www.tdcanadatrust.com/,/www.td.com\/ca\/markets-research/,/www.td.com\/ca\/products-services\/investing/,
/www.td.com\/ca\/products-services\/td-wealth/,/www.td.com\/ca\/my-accounts\/getting-started\/start-tdw-get-started.jsp/,/www.td.com\/ca\/services\/annualtrading.jsp/,/www.td.com\/ca\/francais\/marches-et-recherche/,/www.td.com\/ca\/francais\/produits-et-services\/gestion-de-patrimoine/,/www.td.com\/ca\/francais\/produits-et-services\/investir-aupres-de-la-td/,/www.td.com\/ca\/francais\/produits-et-services\/investissements/,/www.td.com\/ca\/francais\/mes-comptes/,/www.tdassetmanagement.com/,/www.tdcanadatrust.com\/m/,
/www.td.com\/ca\/m\/products-services\/investing/,/www.td.com\/ca\/m\/products-services\/td-wealth/,/www.td.com\/ca\/francais\/m\/produits-et-services\/investissements/,/ apply.td.com /,/tools.tdcanadatrust.com/,/www.tdbusinessplanner.com/,/www.redacteurdeplandaffairestd.com/,/tools.td.com/,/outils.td.com/,/portfolio-managers.td.com/,/private-bankers.td.com/,/advisors.td.com/,/financialplanners.td.com/,/apps.tdcanadatrust.com/,/mms.tdcanadatrust.com/,/www.mbna.ca/,/www.choicerewards.ca/,/apply.mbna.ca/,
/apply.choicerewards.ca/,/www.cucardsonline.com/];var linkArray=["www.tdcanadatrust.com/m","www.td.com/ca/m/products-services/investing","www.td.com/ca/m/products-services/td-wealth","www.td.com/ca/francais/m/produits-et-services/investissements"];var cookieArray=["apply.td.com","tools.tdcanadatrust.com","www.tdbusinessplanner.com","www.redacteurdeplandaffairestd.com","tools.td.com","outils.td.com","portfolio-managers.td.com","private-bankers.td.com","advisors.td.com","financialplanners.td.com","apps.tdcanadatrust.com",
"mms.tdcanadatrust.com"];var optOutArray=[/www.mbna.ca\/mobile\/mbnamobile.jsp/];if(linkOnly())Bootstrapper.linkOnly=true;else Bootstrapper.linkOnly=false;if(cookieOnly())Bootstrapper.cookieOnly=true;else Bootstrapper.cookieOnly=false;Bootstrapper.explicitCase=isExplicit();if(gatewayPrivacy()||onProd()&&!onOptOutPage()){Bootstrapper.enablePrivacy=true;Bootstrapper.enableFiltering=true}})()}},2858775,292467);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(~window.location.href.indexOf("tdcanadatrust.com/webforms/mobmortgage.form")){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdct_resl-lead-form_top")}},1390052,[2776059],295756,[382555]);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("sales.test.allianz-assistance.ca")>-1){var _url=[location.protocol,"//",location.host,location.pathname].join("");if(_url=="https://sales.test.allianz-assistance.ca/td"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_page_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/ProductOptions/PerTrip"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');
mboxCreate("tdi_travelmedical_quote_complete_page_trip_insurance_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/ProductOptions/Annual"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_complete_page_multiple_trip_insurance_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/Application/PerTrip"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_sales_application_trip_insurance_top")}else if(_url==
"https://sales.test.allianz-assistance.ca/td/Sales/Application/Annual"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_sales_application_multiple_trip_insurance_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/Confirmation/Annual"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_sales_confirmation_multiple_trip_insurance_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/Confirmation/PerTrip"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');
mboxCreate("tdi_travelmedical_quote_sales_confirmation_single_trip_insurance_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/ProductOptions/TCI"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_tcti_quote_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/Application/TCI"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_tcti_sales_application_top")}else if(_url==
"https://sales.test.allianz-assistance.ca/td/Sales/Confirmation/TCI"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_tcti_sales_confirmation_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/MedicalQuestionnaire"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_questionnaire_quote_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/ProductOptions/ESP"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');
mboxCreate("tdi_travelmedical_esp_quote_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/Confirmation/ESP"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_esp_sales_confirmation_top")}else if(_url=="https://sales.test.allianz-assistance.ca/td/Sales/Application/ESP"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_esp_sales_application_top")}}if(document.URL.indexOf("https://td.allianz-assistance.ca")>
-1){var _url=[location.protocol,"//",location.host,location.pathname].join("");if(_url=="https://td.allianz-assistance.ca/en"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_page_top")}else if(_url=="https://td.allianz-assistance.ca/en?offer\x3dPerTrip"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_page_top")}else if(_url=="https://td.allianz-assistance.ca/en?offer\x3dAnnual"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');
mboxCreate("tdi_travelmedical_quote_page_top")}else if(_url=="https://td.allianz-assistance.ca/en?offer\x3dTCI"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_page_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/ProductOptions/PerTrip"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_complete_page_trip_insurance_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/ProductOptions/Annual"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');
mboxCreate("tdi_travelmedical_quote_complete_page_multiple_trip_insurance_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/Application/PerTrip"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_sales_application_trip_insurance_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/Application/Annual"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_sales_application_multiple_trip_insurance_top")}else if(_url==
"https://td.allianz-assistance.ca/en/Sales/Confirmation/Annual"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_sales_confirmation_multiple_trip_insurance_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/Confirmation/PerTrip"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_quote_sales_confirmation_single_trip_insurance_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/ProductOptions/TCI"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');
mboxCreate("tdi_travelmedical_tcti_quote_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/Application/TCI"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_tcti_sales_application_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/Confirmation/TCI"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_tcti_sales_confirmation_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/MedicalQuestionnaire"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');
mboxCreate("tdi_travelmedical_questionnaire_quote_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/ProductOptions/ESP"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_esp_quote_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/Confirmation/ESP"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');mboxCreate("tdi_travelmedical_esp_sales_confirmation_top")}else if(_url=="https://td.allianz-assistance.ca/en/Sales/Application/ESP"){document.write('\x3cdiv class\x3d"mboxDefault"\x3e\x3c/div\x3e');
mboxCreate("tdi_travelmedical_esp_sales_application_top")}}},1400786,[2776059],347344,[382555]);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;switch(document.location.host){case "www.new.tdinsurance.com":case "staging.new.tdassurance.com":case "staging.new.tdinsurance.com":case "www.new.tdassurance.com":case "www3.dev.tdinsurance.com":case "www.tdinsurance.com":case "www.tdassurance.com":case "www7.dev.tdinsurance.com":case "www8.dev.tdinsurance.com":case "staging.tdassurance.com":try{var mboxCopyright="Copyright 1996-2015. Adobe Systems Incorporated. All rights reserved.";
var TNT=TNT||{};TNT.a=function(){return{nestedMboxes:[],b:{companyName:"Test\x26amp;Target",isProduction:true,adminUrl:"http://admin6.testandtarget.omniture.com/admin",clientCode:"tdbankfinancialgroup",serverHost:"tdbankfinancialgroup.tt.omtrdc.net",mboxTimeout:15E3,mboxLoadedTimeout:100,mboxFactoryDisabledTimeout:30*60,bodyPollingTimeout:16,bodyHidingEnabled:false,bodyHiddenStyle:"body{opacity:0}",sessionExpirationTimeout:31*60,experienceManagerDisabledTimeout:30*60,experienceManagerTimeout:5E3,
visitorApiTimeout:500,visitorApiPageDisplayTimeout:500,overrideMboxEdgeServer:false,overrideMboxEdgeServerTimeout:31*60,tntIdLifetime:7776E3,crossDomain:"enabled",trafficDuration:10368E3,trafficLevelPercentage:100,clientSessionIdSupport:false,clientTntIdSupport:false,passPageParameters:true,usePersistentCookies:true,crossDomainEnabled:true,crossDomainXOnly:false,imsOrgId:"A783776A5245B1E50A490D44@AdobeOrg",globalMboxName:"target-global-mbox",globalMboxLocationDomId:"",globalMboxAutoCreate:true,experienceManagerPluginUrl:"//cdn.tt.omtrdc.net/cdn/target.js",
siteCatalystPluginName:"tt",mboxVersion:61,optoutEnabled:false,mboxIsSupportedFunction:function(){return true},parametersFunction:function(){function getCookie(c,notFoundString){var dc=document.cookie;if(dc.indexOf(c)!=-1){var cs=dc.split(c)[1];return(cs[0]=="\x3d"?cs.substr(1):cs).split(";")[0]}return notFoundString||""}var cookieMboxParams=["dcxExists\x3d"+(getCookie("DCX","not found!")!="not found!")];cookieMboxParams.push("tdb_vistype\x3d"+(getCookie("DCX-OL")=="1"?"customer":"prospect"));cookieMboxParams.push("tdCAN_vistype\x3d"+
(getCookie("VARLINK")?"customer":"prospect"));cookieMboxParams.push("tdct_vistype\x3d"+(getCookie("DCX-EW")?"customer":"prospect"));cookieMboxParams.push("tdw_vistype\x3d"+(getCookie(" DCX-WB")?"customer":"prospect"));cookieMboxParams.push("aam_oas\x3d"+getCookie("aam_oas",""));String.prototype.encodeCookieValue=function(){if(!this)return"";var e="",t=this.replace(/profile\./g,""),l=this.length;for(i=0;i<l;i++)e+=("0"+this.charCodeAt(i)).slice(-3);return e};String.prototype.decodeCookieValue=function(){if(!this)return"";
var d="",l=this.length;for(i=0;i<l;i=i+3)d+=String.fromCharCode(this.substr(i,3));return d};window.MboxSmartList=function(c,d,e){this.f={};this.g="MboxSmartList";this.h=function(){var count=0;for(var prop in this.f)count++;return count};this.i=function(j){return this.f[j]};this.k=function(j,value){if(value=="remove!")delete this.f[j];else{var adjName=j.replace(/\^\|\^|&|=/g,"");var adjValue=value.replace(/\^\|\^|&|=/g,"");this.f[adjName]=adjValue}};this.l=function(m,d,e){for(var prop in m.f)if(!d||
d&&prop.indexOf(d)==0){if(d&&e)prop=prop.replace(requiredPrevix,e);this.k(prop,m.i(prop))}return this};this.n=function(m,d,e){for(var i=0;i<m.length;i++){var pair=m[i].split("\x3d");if(pair.length==2&&(!d||d&&pair[0].indexOf(d)==0)){if(d&&e)pair[0]=pair[0].replace(d,e);this.k(pair[0],pair[1])}}return this};this.o=function(p){for(var prop in p.f)delete this.f[prop]};this.q=function(r){var outstr="";for(var name in this.f)if(typeof this.f[name]!="function")outstr+=(outstr?r:"")+name+"\x3d"+this.f[name];
return outstr};if(c)if(c.g=="MboxSmartList")this.l(c,d,e);else this.n(c,d,e)};window.MboxSmartListList=function(c,s){this.f={};this.g="MboxSmartListList";this.t="^|^";this.u="\x26";this.h=function(){var count=0;for(var prop in this.f)count++;return count};this.i=function(j){if(!this.f[j])this.f[j]=new MboxSmartList;return this.f[j]};this.v=function(j,f){if(!this.f[j])this.f[j]=new MboxSmartList(f);return this};this.w=function(x){var y=this.t,z=this.u,A=x.split(y);for(var i=0;i<A.length;i++){var m=
A[i].split(z);this.v(m[0],m.slice(1))}return this};this.B=function(){var outstr="";for(var name in this.f)if(this.i(name).h()>0)outstr+=(outstr?this.t:"")+name+this.u+this.i(name).q(this.u);return outstr};this.C=function(D){var outstr="";if(!D)D="";for(var name in this.f)if(this.f[name].h()>0)outstr+=(outstr?"\x26":"")+this.i(name).q(this.u);return outstr+(D?"\x26":"")+D};if(c)if(typeof c=="string")this.w(c);else if(s&&c)this.v(s,c)};window.E="mboxPersSent";var F=adReadCookie(E)?new MboxSmartListList:
new MboxSmartListList((adReadCookie("mboxPers")||"").decodeCookieValue());adSetCookie(E,"true",.5);var G=new MboxSmartList(unescape(location.search.substr(1)).split(";")[0].split("\x26"),"mbxp._","profile._");mboxUrlBuilder.prototype.oldURL=mboxUrlBuilder.prototype.buildUrl;mboxUrlBuilder.prototype.buildUrl=function(){var URL=this.oldURL();if(URL.indexOf("/sc/")!=-1){var usplit=URL.split("?");var path=usplit[0];var queryParams=new MboxSmartList(usplit[1].split("\x26"));queryParams.o(F);queryParams.o(G);
URL=path+"?"+queryParams.q("\x26")}return URL};var outStr=F.C(G.q("\x26"));outStr+="\x26"+cookieMboxParams.join("\x26");return outStr},cookieDomainFunction:function(){return mboxCookiePageDomain()}},I:{J:"mboxPage",K:"mboxMCGVID",L:"mboxMCGLH",M:"mboxAAMB",N:"mboxMCAVID",O:"mboxMCSDID",P:"mboxCount",Q:"mboxHost",R:"mboxFactoryId",S:"mboxPC",T:"screenHeight",U:"screenWidth",V:"browserWidth",W:"browserHeight",X:"browserTimeOffset",Y:"colorDepth",Z:"mboxXDomain",_:"mboxURL",ab:"mboxReferrer",bb:"mboxVersion",
cb:"mbox",db:"mboxId",eb:"mboxDOMLoaded",fb:"mboxTime",gb:"scPluginVersion"},hb:{ib:"mboxDisable",jb:"mboxSession",kb:"mboxEnv",lb:"mboxDebug"},mb:{ib:"disable",jb:"session",S:"PC",nb:"level",ob:"check",lb:"debug",pb:"em-disabled",qb:"mboxEdgeServer"},rb:{sb:"default",tb:"mbox",ub:"mboxImported-",vb:6E4,wb:"mboxDefault",xb:"mboxMarker-",yb:250,gb:1,zb:"mboxedge",Ab:"tt.omtrdc.net"}}}();TNT.a.Bb={};(function(Cb){var Db={}.toString;function Eb(Fb){return Fb===void 0}function Gb(Fb){return Fb===null}
function Hb(Fb){if(Eb(Fb)||Gb(Fb))return true;return Fb.length===0}function Ib(Fb){return Db.call(Fb)==="[object Function]"}function Jb(Fb){return Db.call(Fb)==="[object Array]"}function Kb(Fb){return Db.call(Fb)==="[object String]"}function Lb(Fb){return Db.call(Fb)==="[object Object]"}function Mb(Nb,Ob){var Pb=Nb.length,Qb=-1;while(++Qb<Pb)Ob(Nb[Qb])}Cb.Eb=Eb;Cb.Gb=Gb;Cb.Hb=Hb;Cb.Ib=Ib;Cb.Jb=Jb;Cb.Kb=Kb;Cb.Lb=Lb;Cb.Mb=Mb})(TNT.a.Bb);mboxUrlBuilder=function(Rb,Sb){this.Rb=Rb;this.Sb=Sb;this.Tb=[];
this.Ub=function(_){return _};this.Vb=null};mboxUrlBuilder.prototype={constructor:mboxUrlBuilder,addNewParameter:function(j,Fb){this.Tb.push({name:j,value:Fb});return this},addParameterIfAbsent:function(j,Fb){if(!Fb)return;for(var Wb=0;Wb<this.Tb.length;Wb++){var Xb=this.Tb[Wb];if(Xb.name===j)return this}this.checkInvalidCharacters(j);return this.addNewParameter(j,Fb)},addParameter:function(j,Fb){this.checkInvalidCharacters(j);for(var Wb=0;Wb<this.Tb.length;Wb++){var Xb=this.Tb[Wb];if(Xb.name===j){Xb.value=
Fb;return this}}return this.addNewParameter(j,Fb)},addParameters:function(Tb){if(!Tb)return this;for(var Wb=0;Wb<Tb.length;Wb++){var Yb=Tb[Wb];var Zb=Yb.indexOf("\x3d");if(Zb===-1||Zb===0)continue;this.addParameter(Yb.substring(0,Zb),Yb.substring(Zb+1,Yb.length))}return this},setServerType:function(g){this._b=g},setBasePath:function(Vb){this.Vb=Vb},setUrlProcessAction:function(ac){this.Ub=ac},buildUrl:function(){var bc=TNT.a.cc(this.Rb),dc=this.Vb?this.Vb:"/m2/"+this.Sb+"/mbox/"+this._b,_="https://"+
bc+dc,ec=[];for(var Wb=0;Wb<this.Tb.length;Wb++){var Xb=this.Tb[Wb];ec.push(encodeURIComponent(Xb.name)+"\x3d"+encodeURIComponent(Xb.value))}_+=_.indexOf("?")!=-1?"\x26"+ec.join("\x26"):"?"+ec.join("\x26");return this.fc(this.Ub(_))},getParameters:function(){return this.Tb},setParameters:function(Tb){this.Tb=Tb},clone:function(){var gc=new mboxUrlBuilder(this.Rb,this.Sb);gc.setServerType(this._b);gc.setBasePath(this.Vb);gc.setUrlProcessAction(this.Ub);for(var Wb=0;Wb<this.Tb.length;Wb++)gc.addParameter(this.Tb[Wb].name,
this.Tb[Wb].value);return gc},fc:function(hc){return hc.replace(/"/g,"\x26quot;").replace(/>/g,"\x26gt;")},checkInvalidCharacters:function(j){var ic=new RegExp("('|\")");if(ic.exec(j))throw"Parameter '"+j+"' contains invalid characters";}};TNT.a.q=function(){var jc=[],kc=0,lc=[];function mc(nc,oc){kc+=1;jc[nc]=oc;pc()}function pc(){var Pb=lc.length,Qb=-1,qc;if(kc!==jc.length||!lc.length)return;while(++Qb<Pb){qc=lc[Qb];qc.fn.apply(qc.ctx,jc)}}return{rc:function(){var nc=jc.length;jc[jc.length]=null;
return function(){mc(nc,[].slice.call(arguments))}},sc:function(cb,context){lc.push({fn:cb,ctx:context});pc()}}};(function(Cb,Bb,I,b,tc){var uc=new RegExp("\\|MCMID\\|"),vc="vst.",wc=vc+"trk",xc=vc+"trks";function yc(zc,Fb){return encodeURIComponent(zc)+"\x3d"+encodeURIComponent(Fb)}function Ac(Bc){var Cc,Dc=function(zc){return vc+zc};if(!Bb.Ib(Bc.getCustomerIDs))return[];Cc=Bc.getCustomerIDs();if(!Bb.Lb(Cc))return[];return Cb.Ec(Cc,[],Dc)}function Fc(Bc,Gc){var Hc=Bc.trackingServer,Ic=Bc.trackingServerSecure;
if(Hc)Gc.push(yc(wc,Hc));if(Ic)Gc.push(yc(xc,Ic))}function Jc(Bc,Gc){Gc.push.apply(Gc,Ac(Bc))}function Kc(oc){var Gc=[];Bb.Mb(oc,function(Nb){Gc.push(Nb[0])});return Gc}function Lc(Mc){return!Bb.Hb(Mc.value)}function Nc(q,Bc,Oc,zc){var Pc;if(!Bb.Ib(Bc[Oc]))return;Pc=q.rc();Bc[Oc](function(Fb){Pc({key:zc,value:Fb})},true)}function Qc(q,Bc,Rc){Rc(q,Bc,"getMarketingCloudVisitorID",I.K);Rc(q,Bc,"getAudienceManagerBlob",I.M);Rc(q,Bc,"getAnalyticsVisitorID",I.N);Rc(q,Bc,"getAudienceManagerLocationHint",
I.L)}function Sc(q,Bc,Tc,Uc,Vc){if(Uc){window.clearTimeout(Tc.id);Vc({optout:Uc,params:[]});Wc();return}Qc(q,Bc,Nc);q.sc(function(){if(Tc.done)return;var I=Kc([].slice.call(arguments)),Gc=[];window.clearTimeout(Tc.id);Bb.Mb(I,function(Mc){if(Lc(Mc))Gc.push(yc(Mc.key,Mc.value))});Jc(Bc,Gc);Fc(Bc,Gc);Vc({optout:Uc,params:Gc});Wc()})}function Xc(Yc){var Bc;if(Bb.Hb(Yc)||Bb.Eb(window.Visitor)||!Bb.Ib(window.Visitor.getInstance))return null;Bc=window.Visitor.getInstance(Yc);if(Bb.Eb(Bc)||Bb.Gb(Bc)||!Bc.isAllowed())return null;
return Bc}function Zc(){return!Bb.Gb(Xc(b.imsOrgId))}function _c(){var Bc=Xc(b.imsOrgId);if(Bb.Gb(Bc))return false;if(Bb.Eb(Bc.cookieName))return false;if(!Bb.Ib(Bc.cookieRead))return false;var ad=Bc.cookieRead(Bc.cookieName);if(Bb.Hb(ad))return false;return uc.test(ad)}function bd(Bc,cd){return cd&&Bb.Ib(Bc.isOptedOut)&&!Bb.Eb(window.Visitor.OptOut)}function dd(cd,Vc){var Yc=b.imsOrgId,ed=b.visitorApiTimeout,q=tc(),Tc={id:NaN,done:false},Bc;Bc=Xc(Yc);if(Bb.Gb(Bc)){Vc(null);return}fd();Tc.id=window.setTimeout(function(){Tc.done=
true;Vc(null);Wc()},ed);if(bd(Bc,cd))Bc.isOptedOut(function(Uc){Sc(q,Bc,Tc,Uc,Vc)},window.Visitor.OptOut.GLOBAL,true);else Sc(q,Bc,Tc,false,Vc)}function gd(Bc,Oc,zc,hd){if(Bc[Oc]){var Fb=Bc[Oc]();if(Fb)hd.push(yc(zc,Fb))}}function id(){var Bc=Xc(b.imsOrgId),Gc=[];gd(Bc,"getMarketingCloudVisitorID",I.K,Gc);gd(Bc,"getAudienceManagerBlob",I.M,Gc);gd(Bc,"getAnalyticsVisitorID",I.N,Gc);gd(Bc,"getAudienceManagerLocationHint",I.L,Gc);Jc(Bc,Gc);Fc(Bc,Gc);return Gc}function jd(cb){var Yc=b.imsOrgId,Sb=b.clientCode,
Bc=Xc(Yc);if(Bb.Gb(Bc)||!Bb.Ib(Bc.getSupplementalDataID))return"";return Bc.getSupplementalDataID("mbox:"+Sb+":"+cb)}function fd(){if(!b.bodyHidingEnabled)return;if(!b.globalMboxAutoCreate)return;var kd=document.getElementsByTagName("head")[0];var ld=document.createElement("style");ld.type="text/css";ld.id="at-id-body-style";if(ld.styleSheet)ld.styleSheet.cssText=css;else ld.appendChild(document.createTextNode(b.bodyHiddenStyle));if(kd)kd.appendChild(ld)}function Wc(){if(!b.bodyHidingEnabled)return;
if(!b.globalMboxAutoCreate)return;window.setTimeout(function(){var kd=document.getElementsByTagName("head")[0];var ld=document.getElementById("at-id-body-style");if(kd&&ld)kd.removeChild(ld)},b.visitorApiPageDisplayTimeout)}Cb.Zc=Zc;Cb._c=_c;Cb.dd=dd;Cb.id=id;Cb.jd=jd})(TNT.a,TNT.a.Bb,TNT.a.I,TNT.a.b,TNT.a.q);mboxStandardFetcher=function(){};mboxStandardFetcher.prototype={constructor:mboxStandardFetcher,getType:function(){return"standard"},fetch:function(md){md.setServerType(this.getType());document.write("\x3c"+
"scr"+'ipt src\x3d"'+md.buildUrl()+'"\x3e\x3c'+"/scr"+"ipt\x3e")},cancel:function(){}};mboxAjaxFetcher=function(){};mboxAjaxFetcher.prototype={constructor:mboxAjaxFetcher,getType:function(){return"ajax"},fetch:function(md){md.setServerType(this.getType());var kd=document.getElementsByTagName("head")[0],nd=document.createElement("script");nd.src=md.buildUrl();kd.appendChild(nd)},cancel:function(){}};(function(Cb){function od(){}od.prototype={constructor:od,getType:function(){return"ajax"},fetch:function(md){md.setServerType(this.getType());
document.write("\x3c"+"scr"+'ipt src\x3d"'+md.buildUrl()+'"\x3e\x3c'+"/scr"+"ipt\x3e")},cancel:function(){}};Cb.od=od})(TNT.a);mboxMap=function(){this.pd={};this.qd=[]};mboxMap.prototype={constructor:mboxMap,put:function(zc,Fb){if(!this.pd[zc])this.qd[this.qd.length]=zc;this.pd[zc]=Fb},get:function(zc){return this.pd[zc]},remove:function(zc){var rd=[];this.pd[zc]=undefined;for(var i=0;i<this.qd.length;i++)if(this.qd[i]!==zc)rd.push(this.qd[i]);this.qd=rd},each:function(ac){for(var Wb=0;Wb<this.qd.length;Wb++){var zc=
this.qd[Wb];var Fb=this.pd[zc];if(Fb){var Gc=ac(zc,Fb);if(Gc===false)break}}},isEmpty:function(){return this.qd.length===0}};mboxList=function(){this.sd=[]};mboxList.prototype={constructor:mboxList,add:function(td){if(!td)return;this.sd.push(td)},get:function(cb){var Gc=new mboxList;for(var Wb=0;Wb<this.sd.length;Wb++){var td=this.sd[Wb];if(td.getName()===cb)Gc.add(td)}return Gc},getById:function(nc){return this.sd[nc]},length:function(){return this.sd.length},each:function(ac){var Bb=TNT.a.Bb;if(!Bb.Ib(ac))throw"Action must be a function, was: "+
typeof ac;for(var Wb=0;Wb<this.sd.length;Wb++)ac(this.sd[Wb])}};mboxSignaler=function(ud){this.ud=ud};mboxSignaler.prototype={constructor:mboxSignaler,signal:function(vd,cb){if(!this.ud.isEnabled())return;var wd=mboxSignaler.xd(),yd=this.zd(this.ud.Ad(cb));wd.appendChild(yd);var oc=[].slice.call(arguments,1),td=this.ud.create(cb,oc,yd),md=td.getUrlBuilder();md.addParameter(TNT.a.I.J,mboxGenerateId());td.setFetcher(new mboxAjaxFetcher);td.load()},zd:function(Bd){var Gc=document.createElement("div");
Gc.id=Bd;Gc.style.visibility="hidden";Gc.style.display="none";return Gc}};mboxSignaler.xd=function(){return document.body};mboxLocatorDefault=function(Cd){this.Cd=Cd;document.write('\x3cdiv id\x3d"'+this.Cd+'" style\x3d"visibility:hidden;display:none"\x3e\x26nbsp;\x3c/div\x3e')};mboxLocatorDefault.prototype={constructor:mboxLocatorDefault,locate:function(){var Dd=1,Ed=document.getElementById(this.Cd);while(Ed){if(Ed.nodeType===Dd&&Ed.className&&Ed.className.indexOf("mboxDefault")!==-1)return Ed;Ed=
Ed.previousSibling}return null},force:function(){var Fd=document.getElementById(this.Cd),Gd=document.createElement("div");Gd.className="mboxDefault";if(Fd)Fd.parentNode.insertBefore(Gd,Fd);return Gd}};mboxLocatorNode=function(Ed){this.Ed=Ed};mboxLocatorNode.prototype={constructor:mboxLocatorNode,locate:function(){return typeof this.Ed==="string"?document.getElementById(this.Ed):this.Ed},force:function(){return null}};mboxOfferContent=function(){this.Hd=function(){}};mboxOfferContent.prototype={constructor:mboxOfferContent,
show:function(td){var Gc=td.showContent(document.getElementById(td.getImportName()));if(Gc===1)this.Hd();return Gc},setOnLoad:function(Hd){this.Hd=Hd}};mboxOfferAjax=function(Id){this.Id=Id;this.Hd=function(){}};mboxOfferAjax.prototype={constructor:mboxOfferAjax,setOnLoad:function(Hd){this.Hd=Hd},show:function(td){var Jd=document.createElement("div"),Gc;Jd.id=td.getImportName();Jd.innerHTML=this.Id;Gc=td.showContent(Jd);if(Gc===1)this.Hd();return Gc}};mboxOfferDefault=function(){this.Hd=function(){}};
mboxOfferDefault.prototype={constructor:mboxOfferDefault,show:function(td){var Gc=td.hide();if(Gc===1)this.Hd();return Gc},setOnLoad:function(Hd){this.Hd=Hd}};mboxCookieManager=function(j,Kd){this.j=j;this.Ld=TNT.a.mb.ob;this.Md=TNT.a.b.crossDomainXOnly;this.Nd=TNT.a.mb.ib;this.Od=TNT.a.b.usePersistentCookies;this.Pd=new mboxMap;this.Kd=Kd===""||Kd.indexOf(".")===-1?"":"; domain\x3d"+Kd;this.loadCookies()};mboxCookieManager.prototype={constructor:mboxCookieManager,isEnabled:function(){this.setCookie(this.Ld,
"true",60);this.loadCookies();return this.getCookie(this.Ld)=="true"},setCookie:function(j,Fb,Qd){if(typeof j=="undefined"||typeof Fb=="undefined"||typeof Qd=="undefined")return;var Rd=Math.ceil(Qd+(new Date).getTime()/1E3),Sd=mboxCookieManager.Td(j,encodeURIComponent(Fb),Rd);this.Pd.put(j,Sd);this.saveCookies()},getCookie:function(j){var Sd=this.Pd.get(j);return Sd?decodeURIComponent(Sd.value):null},deleteCookie:function(j){this.Pd.remove(j);this.saveCookies()},getCookieNames:function(Ud){var Vd=
[];this.Pd.each(function(j,Sd){if(j.indexOf(Ud)===0)Vd[Vd.length]=j});return Vd},saveCookies:function(){var Wd=this,Xd=[],Yd=0;this.Pd.each(function(j,Sd){if(!Wd.Md||j===Wd.Nd){Xd[Xd.length]=mboxCookieManager.Zd(Sd);if(Yd<Sd.expireOn)Yd=Sd.expireOn}});var _d=new Date(Yd*1E3);var ec=[];ec.push(this.j,"\x3d",Xd.join("|"));if(Wd.Od)ec.push("; expires\x3d",_d.toGMTString());ec.push("; path\x3d/",this.Kd);document.cookie=ec.join("")},loadCookies:function(){var ae=mboxCookieManager.be(this.j),ce=mboxCookieManager.de(ae),
ee=Math.ceil((new Date).getTime()/1E3);this.Pd=new mboxMap;for(var Wb=0;Wb<ce.length;Wb++){var Sd=mboxCookieManager.fe(ce[Wb]);if(ee>Sd.expireOn)continue;this.Pd.put(Sd.name,Sd)}}};mboxCookieManager.Zd=function(Sd){return Sd.name+"#"+Sd.value+"#"+Sd.expireOn};mboxCookieManager.fe=function(Db){var ec=Db.split("#");return mboxCookieManager.Td(ec[0],ec[1],ec[2])};mboxCookieManager.Td=function(j,Fb,Rd){return{name:j,value:Fb,expireOn:Rd}};mboxCookieManager.be=function(j){var result=(new RegExp("(^|; )"+
encodeURIComponent(j)+"\x3d([^;]*)")).exec(document.cookie);return result?result[2]:null};mboxCookieManager.de=function(Db){if(!Db)return[];return Db.split("|")};mboxSession=function(ge,he,ie,je,ke){var le=window.mboxForceSessionId;this.ie=ie;this.je=je;this.ke=ke;this.Bd=typeof le!=="undefined"?le:mboxGetPageParameter(he,true);this.Bd=this.Bd||ke.getCookie(ie)||ge;this.ke.setCookie(ie,this.Bd,je)};mboxSession.prototype={constructor:mboxSession,getId:function(){return this.Bd},forceId:function(me){this.Bd=
me;this.ke.setCookie(this.ie,this.Bd,this.je)}};mboxPC=function(ie,je,ke){var ne=window.mboxForcePCId;this.ie=ie;this.je=je;this.ke=ke;this.Bd=typeof ne!="undefined"?ne:ke.getCookie(ie);if(this.Bd)ke.setCookie(ie,this.Bd,je)};mboxPC.prototype={constructor:mboxPC,getId:function(){return this.Bd},forceId:function(me){if(this.Bd===me)return false;this.Bd=me;this.ke.setCookie(this.ie,this.Bd,this.je);return true}};(function(Cb,Bb,mb,b,rb){var oe=new RegExp(".*\\.(\\d+)_\\d+");function cc(pe){var qe=oe.exec(pe);
if(qe&&qe.length===2)return rb.zb+qe[1]+"."+rb.Ab;return""}function re(ke,se){var bc=cc(se);if(!Bb.Hb(bc))ke.setCookie(mb.qb,bc,b.overrideMboxEdgeServerTimeout)}function te(ue,ke){this.ue=ue;this.ke=ke;re(ke,ue.getId())}te.prototype={constructor:te,getId:function(){return this.ue.getId()},forceId:function(me){if(!this.ue.forceId(me))return false;re(this.ke,me);return true}};Cb.te=te})(TNT.a,TNT.a.Bb,TNT.a.mb,TNT.a.b,TNT.a.rb);mboxGetPageParameter=function(j,ve){ve=ve||false;var we;if(ve)we=new RegExp("\\?[^#]*"+
j+"\x3d([^\x26;#]*)","i");else we=new RegExp("\\?[^#]*"+j+"\x3d([^\x26;#]*)");var Gc=null;var xe=we.exec(document.location);if(xe&&xe.length>=2)Gc=xe[1];return Gc};mboxCookiePageDomain=function(){var Kd=/([^:]*)(:[0-9]{0,5})?/.exec(document.location.host)[1];var ye=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;if(!ye.exec(Kd)){var ze=/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/.exec(Kd);if(ze){Kd=ze[0];if(Kd.indexOf("www.")===0)Kd=Kd.substr(4)}}return Kd?Kd:""};mboxShiftArray=function(Ae){var Gc=
[];for(var Wb=1;Wb<Ae.length;Wb++)Gc[Gc.length]=Ae[Wb];return Gc};mboxGenerateId=function(){var s=[],hex="0123456789abcdef";for(var i=0;i<36;i++)s[i]=hex.substr(Math.floor(Math.random()*16),1);s[14]="4";s[19]=hex.substr(s[19]&3|8,1);s[8]=s[13]=s[18]=s[23]="-";return s.join("").replace(/-/g,"")};mboxScreenHeight=function(){return screen.height};mboxScreenWidth=function(){return screen.width};mboxBrowserWidth=function(){return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.clientWidth:
document.body.clientWidth};mboxBrowserHeight=function(){return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.clientHeight:document.body.clientHeight};mboxBrowserTimeOffset=function(){return-(new Date).getTimezoneOffset()};mboxScreenColorDepth=function(){return screen.pixelDepth};mbox=function(j,Bd,md,Be,Ce,ud){this.De=null;this.Ee=0;this.Fe=Be;this.Ce=Ce;this.Ge=null;this.He=new mboxOfferContent;this.Gd=null;this.md=md;this.message="";this.Ie={};this.Je=0;
this.Ke=5;this.Bd=Bd;this.j=j;this.Le();md.addParameter(TNT.a.I.cb,j);md.addParameter(TNT.a.I.db,Bd);this.Me=function(){};this.Hd=function(){};this.Ne=null;this.Oe=document.documentMode>=10&&!ud.isDomLoaded();if(this.Oe){this.Pe=TNT.a.nestedMboxes;this.Pe.push(this.j)}};mbox.prototype.getId=function(){return this.Bd};mbox.prototype.Le=function(){var maxLength=TNT.a.rb.yb;if(this.j.length>maxLength)throw"Mbox Name "+this.j+" exceeds max length of "+maxLength+" characters.";else if(this.j.match(/^\s+|\s+$/g))throw"Mbox Name "+
this.j+" has leading/trailing whitespace(s).";};mbox.prototype.getName=function(){return this.j};mbox.prototype.getParameters=function(){var Tb=this.md.getParameters();var Gc=[];for(var Wb=0;Wb<Tb.length;Wb++)if(Tb[Wb].name.indexOf("mbox")!==0)Gc[Gc.length]=Tb[Wb].name+"\x3d"+Tb[Wb].value;return Gc};mbox.prototype.setOnLoad=function(ac){this.Hd=ac;return this};mbox.prototype.setMessage=function(Qe){this.message=Qe;return this};mbox.prototype.setOnError=function(Me){this.Me=Me;return this};mbox.prototype.setFetcher=
function(Re){if(this.Ge)this.Ge.cancel();this.Ge=Re;return this};mbox.prototype.getFetcher=function(){return this.Ge};function Se(md,td){var Te=TNT.a,b=Te.b,Ue=b.mboxTimeout;if(Te.Zc()&&Te._c())md.addParameters(Te.id());td.Ge.fetch(md);td.Ve=setTimeout(function(){td.Me("browser timeout",td.Ge.getType())},Ue)}function We(td){var Ne=td.getDefaultDiv();if(Ne)td.Xe(td.getDefaultDiv())}function Ye(md,td,cd){var Te=TNT.a;td.setFetcher(new mboxAjaxFetcher);Te.dd(cd,function(Ze){if(Ze===null){Se(md,td);return}if(cd&&
Ze.optout){We(td);return}md.addParameters(Ze.params);Se(md,td)})}mbox.prototype.load=function(Tb){var Wd=this,md=Wd.md,Te=TNT.a,b=Te.b,cd=b.optoutEnabled;if(Wd.Ge===null)return Wd;Wd.cancelTimeout();Wd.Ee=0;if(Tb&&Tb.length>0)md=Wd.md.clone().addParameters(Tb);if(cd&&Te.Zc()){Ye(md,Wd,cd);return Wd}var Zc=Te.Zc();if(Zc&&!Te._c()){Ye(md,Wd,false);return Wd}Se(md,Wd);return Wd};mbox.prototype.loaded=function(){this.cancelTimeout();if(!this.activate()&&this.Je<this.Ke){var Wd=this;setTimeout(function(){Wd.loaded()},
TNT.a.b.mboxLoadedTimeout)}};mbox.prototype.activate=function(){if(this.Ee)return this.Ee;if(this.Oe&&this.Pe[this.Pe.length-1]!==this.j)return this.Ee;if(this.show()){this.cancelTimeout();this.Ee=1}if(this.Oe)this.Pe.pop();return this.Ee};mbox.prototype.isActivated=function(){return this.Ee};mbox.prototype.setOffer=function(He){var _e=He&&He.show&&He.setOnLoad;if(!_e)throw"Invalid offer";var af=TNT.a.b.globalMboxName===this.j;af=af&&He instanceof mboxOfferDefault;af=af&&this.Ge!==null;af=af&&this.Ge.getType()===
"ajax";if(!af){this.He=He;return this}var bf=this.He.Hd;this.He=He;this.He.setOnLoad(bf);return this};mbox.prototype.getOffer=function(){return this.He};mbox.prototype.show=function(){return this.He.show(this)};mbox.prototype.showContent=function(Id){if(!mbox.cf(Id))return 0;this.Gd=mbox.df(this,this.Gd);if(this.Gd===null)return 0;if(!mbox.ef(document.body,this.Gd))return 0;if(this.Gd===Id){this.Xe(this.Gd);this.Hd();return 1}this.ff(this.Gd);this.ff(Id);mbox.gf(this,Id);this.Xe(this.Gd);this.Hd();
return 1};mbox.cf=function(Id){return Id!==undefined&&Id!==null};mbox.ef=function(hf,jf){var DOCUMENT_POSITION_CONTAINED_BY=16;var kf=hf.contains!==undefined;if(kf)return hf!==jf&&hf.contains(jf);else return Boolean(hf.compareDocumentPosition(jf)&DOCUMENT_POSITION_CONTAINED_BY)};mbox.df=function(td,Gd){if(Gd!==undefined&&Gd!==null&&mbox.ef(document.body,Gd))return Gd;return td.getDefaultDiv()};mbox.gf=function(td,lf){td.Gd.parentNode.replaceChild(lf,td.Gd);td.Gd=lf};mbox.prototype.hide=function(){return this.showContent(this.getDefaultDiv())};
mbox.prototype.finalize=function(){if(!this.getDefaultDiv())this.Fe.force();if(!this.getDiv())this.Gd=mbox.df(this,this.Gd);this.mf();this.setFetcher(new mboxAjaxFetcher);this.cancelTimeout();this.Hd()};mbox.prototype.cancelTimeout=function(){if(this.Ve)clearTimeout(this.Ve);if(this.Ge)this.Ge.cancel()};mbox.prototype.getDiv=function(){return this.Gd};mbox.prototype.getDefaultDiv=function(){if(this.Ne===null)this.Ne=this.Fe.locate();return this.Ne};mbox.prototype.setEventTime=function(nf){this.Ie[nf]=
(new Date).getTime()};mbox.prototype.getEventTimes=function(){return this.Ie};mbox.prototype.getImportName=function(){return this.Ce};mbox.prototype.getURL=function(){return this.md.buildUrl()};mbox.prototype.getUrlBuilder=function(){return this.md};mbox.prototype.of=function(Gd){return Gd.style.display!="none"};mbox.prototype.Xe=function(Gd){this.pf(Gd,true)};mbox.prototype.ff=function(Gd){this.pf(Gd,false)};mbox.prototype.pf=function(Gd,qf){Gd.style.visibility=qf?"visible":"hidden";Gd.style.display=
qf?"block":"none"};mbox.prototype.mf=function(){this.Oe=false};mbox.prototype.relocateDefaultDiv=function(){this.Ne=this.Fe.locate()};function rf(ud){ud.getMboxes().each(function(td){td.finalize()})}mboxFactory=function(bc,Sb,sf){var Te=TNT.a;var b=Te.b;var Bb=Te.Bb;var mb=Te.mb;var hb=Te.hb;var rb=Te.rb;var tf=b.mboxVersion;this.uf=false;this.sf=sf;this.sd=new mboxList;mboxFactories.put(sf,this);this.vf=b.mboxIsSupportedFunction()&&typeof(window.attachEvent||document.addEventListener||window.addEventListener)!=
"undefined";this.wf=this.vf&&mboxGetPageParameter(hb.ib,true)===null;var xf=sf==rb.sb;var ie=rb.tb+(xf?"":"-"+sf);this.ke=new mboxCookieManager(ie,b.cookieDomainFunction());if(!b.crossDomainXOnly)this.wf=this.wf&&this.ke.isEnabled();this.wf=this.wf&&Bb.Gb(this.ke.getCookie(mb.ib))&&Bb.Gb(this.ke.getCookie(mb.pb));if(this.isAdmin())this.enable();this.yf();this.zf=mboxGenerateId();this.Af=mboxScreenHeight();this.Bf=mboxScreenWidth();this.Cf=mboxBrowserWidth();this.Df=mboxBrowserHeight();this.Ef=mboxScreenColorDepth();
this.Ff=mboxBrowserTimeOffset();this.Gf=new mboxSession(this.zf,hb.jb,mb.jb,b.sessionExpirationTimeout,this.ke);var ue=new mboxPC(mb.S,b.tntIdLifetime,this.ke);this.Hf=b.overrideMboxEdgeServer?new Te.te(ue,this.ke):ue;this.md=new mboxUrlBuilder(bc,Sb);this.If(this.md,xf,tf);this.Jf=(new Date).getTime();this.Kf=this.Jf;var Wd=this;this.addOnLoad(function(){Wd.Kf=(new Date).getTime()});if(this.vf){this.addOnLoad(function(){Wd.uf=true;rf(Wd);TNT.a.nestedMboxes=[]});if(this.wf){this.limitTraffic(b.trafficLevelPercentage,
b.trafficDuration);this.Lf();this.Mf=new mboxSignaler(this)}else if(!b.isProduction)if(this.isAdmin())if(!this.isEnabled())alert("mbox disabled, probably due to timeout\n"+"Reset your cookies to re-enable\n(this message will only appear in administrative mode)");else alert("It looks like your browser will not allow "+b.companyName+" to set its administrative cookie. To allow setting the"+" cookie please lower the privacy settings of your browser.\n"+"(this message will only appear in administrative mode)")}};
mboxFactory.prototype.forcePCId=function(me){if(!TNT.a.b.clientTntIdSupport)return;if(this.Hf.forceId(me))this.Gf.forceId(mboxGenerateId())};mboxFactory.prototype.forceSessionId=function(me){if(!TNT.a.b.clientSessionIdSupport)return;this.Gf.forceId(me)};mboxFactory.prototype.isEnabled=function(){return this.wf};mboxFactory.prototype.getDisableReason=function(){return this.ke.getCookie(TNT.a.mb.ib)};mboxFactory.prototype.isSupported=function(){return this.vf};mboxFactory.prototype.disable=function(Qd,
Nf){if(typeof Qd=="undefined")Qd=60*60;if(typeof Nf=="undefined")Nf="unspecified";if(!this.isAdmin()){this.wf=false;this.ke.setCookie(TNT.a.mb.ib,Nf,Qd)}};mboxFactory.prototype.enable=function(){this.wf=true;this.ke.deleteCookie(TNT.a.mb.ib)};mboxFactory.prototype.isAdmin=function(){return document.location.href.indexOf(TNT.a.hb.kb)!=-1};mboxFactory.prototype.limitTraffic=function(Of,Qd){if(TNT.a.b.trafficLevelPercentage!=100){if(Of==100)return;var Pf=true;if(parseInt(this.ke.getCookie(TNT.a.mb.nb))!=
Of)Pf=Math.random()*100<=Of;this.ke.setCookie(TNT.a.mb.nb,Of,Qd);if(!Pf)this.disable(60*60,"limited by traffic")}};mboxFactory.prototype.addOnLoad=function(Qf){if(this.isDomLoaded())Qf();else{var Rf=false;var Sf=function(){if(Rf)return;Rf=true;Qf()};this.Tf.push(Sf);if(this.isDomLoaded()&&!Rf)Sf()}};mboxFactory.prototype.getEllapsedTime=function(){return this.Kf-this.Jf};mboxFactory.prototype.getEllapsedTimeUntil=function(fb){return fb-this.Jf};mboxFactory.prototype.getMboxes=function(){return this.sd};
mboxFactory.prototype.get=function(cb,db){return this.sd.get(cb).getById(db||0)};mboxFactory.prototype.update=function(cb,Tb){var Te=TNT.a,I=Te.I;if(!this.isEnabled())return;var Wd=this;if(!this.isDomLoaded()){this.addOnLoad(function(){Wd.update(cb,Tb)});return}if(this.sd.get(cb).length()===0)throw"Mbox "+cb+" is not defined";this.sd.get(cb).each(function(td){var md=td.getUrlBuilder();md.addParameter(I.J,mboxGenerateId());Wd.Uf(md,cb);td.load(Tb)})};mboxFactory.prototype.setVisitorIdParameters=function(md,
cb){this.Uf(md,cb)};mboxFactory.prototype.create=function(cb,Tb,Vf){return this.Wf(cb,Tb,Vf)};mboxFactory.prototype.Xf=function(cb,Tb,Vf){return this.Wf(cb,Tb,Vf)};mboxFactory.prototype.Wf=function(cb,Tb,Vf){if(!this.isSupported())return null;var Yf=new Date;var fb=Yf.getTime()-Yf.getTimezoneOffset()*TNT.a.rb.vb;var md=this.md.clone();md.addParameter(TNT.a.I.P,this.sd.length()+1);md.addParameter(TNT.a.I.fb,fb);md.addParameters(Tb);this.Uf(md,cb);var db,Fe,td;if(Vf)Fe=new mboxLocatorNode(Vf);else{if(this.uf)throw"The page has already been loaded, can't write marker";
Fe=new mboxLocatorDefault(this.Ad(cb))}try{db=this.sd.get(cb).length();td=new mbox(cb,db,md,Fe,this.Zf(cb),this);if(this.wf)td.setFetcher(this.uf?new mboxAjaxFetcher:new mboxStandardFetcher);var Wd=this;td.setOnError(function(Qe,g){td.setMessage(Qe);td.activate();if(!td.isActivated()){Wd.disable(TNT.a.b.mboxFactoryDisabledTimeout,Qe);window.location.reload(false)}});this.sd.add(td)}catch(_f){this.disable();throw'Failed creating mbox "'+cb+'", the error was: '+_f;}return td};mboxFactory.prototype.ag=
function(md){var S=this.Hf.getId();if(S)md.addParameter(TNT.a.I.S,S)};mboxFactory.prototype.bg=function(md,cb){var cg=!TNT.isAutoCreateGlobalMbox()&&TNT.getGlobalMboxName()===cb;if(cg)md.addParameters(TNT.getTargetPageParameters())};mboxFactory.prototype.dg=function(md,cb){var Te=TNT.a,eg=Te.I.O,O=Te.jd(cb);if(O)md.addParameter(eg,O)};mboxFactory.prototype.fg=function(md){var Te=TNT.a;if(Te.Zc()&&Te._c())md.addParameters(Te.id())};mboxFactory.prototype.Uf=function(md,cb){this.ag(md);this.bg(md,cb);
this.dg(md,cb);this.fg(md,cb)};mboxFactory.prototype.getCookieManager=function(){return this.ke};mboxFactory.prototype.getPageId=function(){return this.zf};mboxFactory.prototype.getPCId=function(){return this.Hf};mboxFactory.prototype.getSessionId=function(){return this.Gf};mboxFactory.prototype.getSignaler=function(){return this.Mf};mboxFactory.prototype.getUrlBuilder=function(){return this.md};mboxFactory.prototype.gg=function(cb){return this.sf+"-"+cb+"-"+this.sd.get(cb).length()};mboxFactory.prototype.Ad=
function(cb){return TNT.a.rb.xb+this.gg(cb)};mboxFactory.prototype.Zf=function(cb){return TNT.a.rb.ub+this.gg(cb)};mboxFactory.prototype.If=function(md,xf,tf){md.addParameter(TNT.a.I.Q,document.location.hostname);md.addParameter(TNT.a.I.J,this.zf);md.addParameter(TNT.a.I.T,this.Af);md.addParameter(TNT.a.I.U,this.Bf);md.addParameter(TNT.a.I.V,this.Cf);md.addParameter(TNT.a.I.W,this.Df);md.addParameter(TNT.a.I.X,this.Ff);md.addParameter(TNT.a.I.Y,this.Ef);md.addParameter(TNT.a.hb.jb,this.Gf.getId());
if(!xf)md.addParameter(TNT.a.I.R,this.sf);if(TNT.a.b.crossDomainEnabled)md.addParameter(TNT.a.I.Z,TNT.a.b.crossDomain);var I=TNT.getClientMboxExtraParameters();if(I)md.addParameters(I.split("\x26"));md.setUrlProcessAction(function(_){if(TNT.a.b.passPageParameters){_+="\x26";_+=TNT.a.I._;_+="\x3d"+encodeURIComponent(document.location);var ab=encodeURIComponent(document.referrer);if(_.length+ab.length<2E3){_+="\x26";_+=TNT.a.I.ab;_+="\x3d"+ab}}_+="\x26";_+=TNT.a.I.bb;_+="\x3d"+tf;return _})};mboxFactory.prototype.Lf=
function(){document.write("\x3cstyle\x3e."+TNT.a.rb.wb+" { visibility:hidden; }\x3c/style\x3e")};mboxFactory.prototype.isDomLoaded=function(){return this.uf};mboxFactory.prototype.yf=function(){if(this.Tf)return;this.Tf=[];var Wd=this;(function(){var hg=document.addEventListener?"DOMContentLoaded":"onreadystatechange";var ig=false;var jg=function(){if(ig)return;ig=true;for(var i=0;i<Wd.Tf.length;++i)Wd.Tf[i]()};if(document.addEventListener){document.addEventListener(hg,function(){document.removeEventListener(hg,
arguments.callee,false);jg()},false);window.addEventListener("load",function(){document.removeEventListener("load",arguments.callee,false);jg()},false)}else if(document.attachEvent)if(self!==self.top)document.attachEvent(hg,function(){if(document.readyState==="complete"){document.detachEvent(hg,arguments.callee);jg()}});else{var kg=function(){try{document.documentElement.doScroll("left");jg()}catch(lg){setTimeout(kg,13)}};kg()}if(document.readyState==="complete")jg()})()};mboxScPluginFetcher=function(Sb,
mg){this.Sb=Sb;this.mg=mg};mboxScPluginFetcher.prototype={constructor:mboxScPluginFetcher,getType:function(){return"ajax"},fetch:function(md){md.setServerType(this.getType());var kd=document.getElementsByTagName("head")[0],nd=document.createElement("script");nd.src=this.ng(md);kd.appendChild(nd)},cancel:function(){},ng:function(md){md.setBasePath("/m2/"+this.Sb+"/sc/standard");this.og(md);var pg=TNT.a.I.gb;var qg=TNT.a.rb.gb;md.addParameter(pg,qg);return md.buildUrl()},og:function(md){var rg=["dynamicVariablePrefix",
"visitorID","vmk","ppu","charSet","visitorNamespace","cookieDomainPeriods","cookieLifetime","pageName","currencyCode","variableProvider","channel","server","pageType","transactionID","purchaseID","campaign","state","zip","events","products","linkName","linkType","resolution","colorDepth","javascriptVersion","javaEnabled","cookiesEnabled","browserWidth","browserHeight","connectionType","homepage","pe","pev1","pev2","pev3","visitorSampling","visitorSamplingGroup","dynamicAccountSelection","dynamicAccountList",
"dynamicAccountMatch","trackDownloadLinks","trackExternalLinks","trackInlineStats","linkLeaveQueryString","linkDownloadFileTypes","linkExternalFilters","linkInternalFilters","linkTrackVars","linkTrackEvents","linkNames","lnk","eo"];for(var Wb=0;Wb<rg.length;Wb++)this.sg(rg[Wb],md);for(Wb=1;Wb<=75;Wb++){this.sg("prop"+Wb,md);this.sg("eVar"+Wb,md);this.sg("hier"+Wb,md)}},sg:function(j,md){var Bb=TNT.a.Bb,Fb=this.mg[j];if(Bb.Hb(Fb)||Bb.Lb(Fb))return;md.addParameter(j,Fb)}};(function(Cb){function tg(ud,
mg){if(!mg)return null;var ug=TNT.a.b.siteCatalystPluginName,Sb=TNT.a.b.clientCode,Bb=TNT.a.Bb;mg["m_"+ug]=function(mg){var vg="_t",xg="m_i",yg=mg[xg](ug);yg.wf=true;yg.Sb=Sb;yg[vg]=function(){if(!this.isEnabled())return;var td=this.Wf(),Re=new mboxScPluginFetcher(this.Sb,this.s);if(td){td.setFetcher(Re);td.load()}};yg.isEnabled=function(){return this.wf&&ud.isEnabled()};yg.Wf=function(){var cb=this.zg(),Gd=document.createElement("div");if(!Bb.Eb(document.body))document.body.appendChild(Gd);return ud.create(cb,
[],Gd)};yg.zg=function(){var Ag=this.s.events&&this.s.events.indexOf("purchase")!=-1;return"SiteCatalyst: "+(Ag?"purchase":"event")}};return mg.loadModule(ug)}Cb.tg=tg})(TNT.a);(function(Cb){function Bg(Cg,ie,Qd,ke){if(Cg.targetJSLoaded)return;ke.setCookie(ie,true,Qd);window.location.reload()}function Dg(b,mb,ke){var Eg="_AT",Gg=50,ie=mb.pb,Qd=b.experienceManagerDisabledTimeout,De=b.experienceManagerTimeout,_=b.experienceManagerPluginUrl,Hg=function(Ig){},Jg=function(Ig){setTimeout(function(){window[Eg].applyWhenReady(Ig)},
Gg)};if(Eg in window)return;window[Eg]={};if(ke.getCookie(ie)!=="true"){document.write("\x3cscr"+'ipt src\x3d"'+_+'"\x3e\x3c/sc'+"ript\x3e");window[Eg].applyWhenReady=Jg;setTimeout(function(){Bg(window[Eg],ie,Qd,ke)},De)}else window[Eg].applyWhenReady=Hg}Cb.Dg=Dg})(TNT.a);(function(Cb,a,Bb,b,I,rb){function Kg(){return b.globalMboxName}function Lg(){return b.globalMboxLocationDomId}function Mg(){return b.globalMboxAutoCreate}function Ng(){return b.parametersFunction()}function Og(){var Dd=1,Pg=document.getElementsByTagName("script"),
Ed=Pg[Pg.length-1];while(Ed){if(Ed.nodeType===Dd&&Ed.className===rb.wb)return Ed;Ed=Ed.previousSibling}return null}function Qg(ud,cb,I){var Vf,td;if(a.Zc()){Vf=Og();td=ud.create(cb,I,Vf)}else td=ud.create(cb,I);if(td&&ud.isEnabled())td.load();return td}function Rg(ud,Vf,cb,I){return ud.Xf(cb,I,Vf)}function Sg(ud,cb,I){ud.update(cb,I)}function Tg(ke,j){return ke.getCookie(j)}function Ug(ke,j,Fb,Qd){ke.setCookie(j,Fb,Qd)}function Vg(Wg){var Gc=[];var Xg=/([^&=]+)=([^&]*)/g;var Yg=decodeURIComponent;
var qe=Xg.exec(Wg);while(qe){Gc.push([Yg(qe[1]),Yg(qe[2])].join("\x3d"));qe=Xg.exec(Wg)}return Gc}function Ec(Zg,qd,Dc){var Gc=[];for(var zc in Zg){if(!Zg.hasOwnProperty(zc))continue;var Fb=Zg[zc];if(Bb.Lb(Fb)){qd.push(zc);Gc=Gc.concat(Ec(Fb,qd,Dc));qd.pop()}else if(qd.length>0)Gc.push([Dc(qd.concat(zc).join(".")),Fb].join("\x3d"));else Gc.push([Dc(zc),Fb].join("\x3d"))}return Gc}function _g(){var ah=window.targetPageParams,Dc=function(zc){return zc};if(!Bb.Ib(ah))return[];var Gc=null;try{Gc=ah()}catch(bh){}if(Bb.Gb(Gc))return[];
if(Bb.Jb(Gc))return Gc;if(Bb.Kb(Gc)&&!Bb.Hb(Gc))return Vg(Gc);if(Bb.Lb(Gc))return Ec(Gc,[],Dc);return[]}function ch(ud){var dh=Kg(),eh=Lg(),fh=_g(),gh,hh,ih;if(!eh){eh="mbox-"+dh+"-"+mboxGenerateId();gh=document.createElement("div");gh.className="mboxDefault";gh.id=eh;gh.style.visibility="hidden";gh.style.display="none";hh=setInterval(function(){if(document.body){clearInterval(hh);document.body.insertBefore(gh,document.body.firstChild)}},b.bodyPollingTimeout)}ih=ud.create(dh,fh,eh);if(ih&&ud.isEnabled()){if(!ud.isDomLoaded())if(!a.Zc())ih.setFetcher(new a.od);
else ih.setFetcher(new mboxAjaxFetcher);ih.load()}}function jh(ud,cb,Tb){if(!ud.isEnabled())return;var Yf=new Date,kh=Yf.getTimezoneOffset()*rb.vb,md=ud.getUrlBuilder().clone();md.setBasePath("/m2/"+b.clientCode+"/viztarget");md.addParameter(I.cb,cb);md.addParameter(I.db,0);md.addParameter(I.P,ud.getMboxes().length()+1);md.addParameter(I.fb,Yf.getTime()-kh);md.addParameter(I.J,mboxGenerateId());md.addParameter(I.eb,ud.isDomLoaded());if(Tb&&Tb.length>0)md.addParameters(Tb);ud.ag(md);ud.lh(md,cb);ud.dg(md,
cb);return md.buildUrl()}function mh(){return new mboxMap}function nh(oh,Sb,sf){return new mboxFactory(oh,Sb,sf)}function fd(){if(!b.bodyHidingEnabled)return;var kd=document.getElementsByTagName("head")[0];var ld=document.createElement("style");ld.id="at-id-body-style";ld.innerHTML=b.bodyHiddenStyle;if(kd)kd.appendChild(ld)}function Wc(){if(!b.bodyHidingEnabled)return;setTimeout(function(){var kd=document.getElementsByTagName("head")[0];var ld=document.getElementById("at-id-body-style");if(kd&&ld)kd.removeChild(ld)},
b.visitorApiPageDisplayTimeout)}a.Qg=Qg;a.Rg=Rg;a.Sg=Sg;a.jh=jh;a.Tg=Tg;a.Ug=Ug;a.ch=ch;a.mh=mh;a.nh=nh;a.Ec=Ec;a.Wc=Wc;a.fd=fd;Cb.getGlobalMboxName=Kg;Cb.getGlobalMboxLocation=Lg;Cb.isAutoCreateGlobalMbox=Mg;Cb.getClientMboxExtraParameters=Ng;Cb.getTargetPageParameters=_g})(TNT,TNT.a,TNT.a.Bb,TNT.a.b,TNT.a.I,TNT.a.rb);(function(Cb){function ph(ke,b,qh,rh){var sh=60*60,th=mboxGetPageParameter(qh,true)||ke.getCookie(rh);if(!th)return;setTimeout(function(){if(typeof window.mboxDebugLoaded==="undefined")alert("Could not load the remote debug.\nPlease check your connection to "+
b.companyName+" servers")},sh);var ec=[];ec.push(b.adminUrl,"/mbox/mbox_debug.jsp","?");ec.push("mboxServerHost","\x3d",b.serverHost,"\x26");ec.push("clientCode","\x3d",b.clientCode);document.write("\x3c"+"scr"+'ipt src\x3d"'+ec.join("")+'"\x3e\x3c'+"/scr"+"ipt\x3e")}function uh(b,vh){var Bb=Cb.Bb,wh,xh,Fb;if(Bb.Eb(b)||Bb.Gb(b)||!Bb.Lb(b))return vh;for(var zc in b){wh=b.hasOwnProperty(zc)&&vh.hasOwnProperty(zc);Fb=b[zc];xh=!Bb.Eb(Fb)&&!Bb.Gb(Fb);if(wh&&xh)vh[zc]=Fb}return vh}function yh(ud,ke){TNT.createGlobalMbox=
function(){Cb.ch(ud)};window.mboxCreate=function(cb){var I=[].slice.call(arguments,1);return Cb.Qg(ud,cb,I)};window.mboxDefine=function(Vf,cb){var I=[].slice.call(arguments,2);return Cb.Rg(ud,Vf,cb,I)};window.mboxUpdate=function(cb){var I=[].slice.call(arguments,1);Cb.Sg(ud,cb,I)};window.mboxVizTargetUrl=function(cb){var I=[].slice.call(arguments,1);return Cb.jh(ud,cb,I)};window.mboxSetCookie=function(j,Fb,Qd){return Cb.Ug(ke,j,Fb,Qd)};window.mboxGetCookie=function(j){return Cb.Tg(ke,j)};if(typeof Cb.tg!==
"undefined")window.mboxLoadSCPlugin=function(mg){return Cb.tg(ud,mg)}}function zh(){if(typeof window.mboxVersion!=="undefined")return;Cb.b=uh(window.targetGlobalSettings,Cb.b);var b=Cb.b,tf=b.mboxVersion,oh=b.serverHost,Sb=b.clientCode,sb=Cb.rb.sb,qh=Cb.hb.lb,rh=Cb.mb.lb,Ah=Cb.mb.qb,ud,ke;window.mboxFactories=Cb.mh();window.mboxFactoryDefault=ud=Cb.nh(oh,Sb,sb);window.mboxVersion=tf;ke=ud.getCookieManager();yh(ud,ke);ph(ke,b,qh,rh);Cb.cc=function(Bh){var Rb;if(!b.overrideMboxEdgeServer)return Bh;
Rb=ke.getCookie(Ah);return Rb===null?Bh:Rb}}Cb.zh=zh})(TNT.a);TNT.a.zh();TNT.a.Dg(TNT.a.b,TNT.a.mb,window.mboxFactoryDefault.getCookieManager());var monthsPersistent=12;function adReadCookie(name){var nameEQ=name+"\x3d";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null}function adSetCookie(name,value,hours){var expires=!hours?"":function(){var date=
new Date;date.setTime(date.getTime()+hours*60*60*1E3);return"; expires\x3d"+date.toGMTString()}();document.cookie=name+"\x3d"+value+expires+"; path\x3d/; domain\x3d"+mboxCookiePageDomain()}var updateProfile=function(Ch){if(typeof mboxFactoryDefault=="undefined")return false;if(Ch.length>0){var oldCookie=(adReadCookie("mboxPers")||"").decodeCookieValue();var F=new MboxSmartListList(oldCookie);F.i("profile").n(Ch,"profile._");F.i("mboxparams").n(Ch,"_");var newCookie=F.B();adSetCookie("mboxPers",newCookie.encodeCookieValue(),
Dh)}},aam_tnt_cb=function(){if(typeof arguments[0].stuff!="undefined"&&arguments[0].stuff!="")for(var i=0;i<arguments[0].stuff.length;i++)if(arguments[0].stuff[i].cn=="aam_tnt")if(arguments[0].stuff[0].cv.split(",")){var demdex_raw=arguments[0].stuff[i].cv.split(",");var tapMboxBuilder=mboxFactoryDefault.getUrlBuilder();tapMboxBuilder.addParameters(demdex_raw)}},xCr=mboxCreate,mboxCreate=function(){updateProfile(Array.prototype.slice.call(arguments,1));xCr.apply({},Array.prototype.slice.call(arguments,
0))},xUp=mboxUpdate,mboxUpdate=function(){updateProfile(Array.prototype.slice.call(arguments,1));xUp.apply({},Array.prototype.slice.call(arguments,0))},Dh=monthsPersistent*30*24;if(location.search.length>0)updateProfile(unescape(location.search.substr(1)).replace(/mbxp\./gi,"profile.").split("\x26"));window.aam_tnt_cb=aam_tnt_cb;document.write('\x3cscript src\x3d"//td.demdex.net/event?d_stuff\x3d1\x26d_dst\x3d1\x26d_rtbd\x3djson\x26d_cts\x3d1\x26d_cb\x3daam_tnt_cb"\x3e\x3c/script\x3e');function getCookie(cname){var name=
cname+"\x3d";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)}return""}var tntCookie="unknown";if(getCookie("userSegments")!=="")tntCookie=getCookie("userSegments");targetPageParams=function(){return["prop32\x3d"+tntCookie]};if(TNT.isAutoCreateGlobalMbox())TNT.createGlobalMbox();if(typeof TNT!="undefined")window.TNT=TNT||
{};if(typeof mboxCopyright!="undefined")window.mboxCopyright=mboxCopyright||"error";if(typeof mboxVersion!="undefined")window.mboxVersion=mboxVersion||"error";if(typeof mboxFactories!="undefined")window.mboxFactories=mboxFactories||{};if(typeof mboxFactoryDefault!="undefined")window.mboxFactoryDefault=mboxFactoryDefault||{};if(typeof mboxVizTargetUrl!="undefined")window.mboxVizTargetUrl=mboxVizTargetUrl||function(){};if(typeof mboxLoadSCPlugin!="undefined")window.mboxLoadSCPlugin=mboxLoadSCPlugin||
function(){}}catch(n){window.TNT={},window.mboxError=n,window.mboxCopyright="error",window.mboxFactories={},window.mboxFactoryDefault={},window.mboxVizTargetUrl=function(){},mboxCreate=function(){},mboxDefine=function(){},mboxUpdate=function(){},mboxLoadSCPlugin=function(){}}break;default:break}},2589015,[1944519],414663,[383955]);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("tdcanadatrust.com")>-1)if(document.URL.indexOf("/m/")>-1);else{if(document.location.href.indexOf("test2")>-1||document.location.href.indexOf("stgpat")>-1)window.egchatServer="https://uat.chat.td.com";else if(document.location.href.indexOf("sys")>-1)window.egchatServer="https://dev.chat.td.com";else if(document.location.href.indexOf("dev")>-1)window.egchatServer=
"https://dev.chat.td.com";else if(document.location.href.indexOf("demande.pat")>-1)window.egchatServer="https://uat.chat.td.com";else window.egchatServer="https://chat.td.com";window.egchatscript=window.egchatServer+"/system/web/custom/eg_resource_tdct.js";document.write("\x3cscript type\x3d'text/javascript' src\x3d"+window.egchatscript+"\x3e\x3c/script\x3e");console.log(window.egchatServer+" env")}},812538,269927);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;window.cvParamInPageName=1;window.cvParamToInclude="PID";window.cvAutoSections=0;window.cvURL=unescape(document.URL);window.cvSearchEngines=".abcsok.,.alicesuche.,.alltheweb.,.altavista.,.anonymouse.,.aol.,.aolrecherche.,.aolsearch.,.aolsvc.,.ask.,.baidu.,.biglobe.,.bing.,.centrum.,.chip.,.clix.,.cuil.,.daum.,.eniro.,.euroseek.,.excite.,.fireball.,.goo.,.google.,.googlesyndication.,.icq.,.infoseek.,.ixquick.,.kvasir.,.libero.,.live.,.livedoor.,.lycos.,.mail.,.msn.,.myway.,.naver.,.netscape.,.nifty.,.rambler.,.recherche.,.recherchet2.,.search.,.searchalot.,.seznam.,.startpagina.,.suche.,.szukaj.,.terra.,.tiscali.,.toile.,.ucweb.,.uol.,.vinden.,.virgilio.,.walla.,.yahoo.,.yandex.";
window.cvDownloadExtensions="exe,zip,wav,mp3,wma,mov,mpg,avi,wmv,doc,pdf,xls,ppt,pps,csv,jpg,png,bmp,wmf,tif,docx,xlsx,pptx,jad,ipa";window.getRSID=function(){var rsid=[];var mycvHostName=document.location.hostname;switch(mycvHostName){case "www.td.com":case "td.com":case "fef.td.com":case "www.fef.td.com":case "tdcommercialbanking.com":case "www.tdcommercialbanking.com":case "servicesbancairescommerciauxtd.com":case "www.servicesbancairescommerciauxtd.com":case "www.tdultimatepride.ca":case "tdultimatepride.ca":case "www.tdforeverproud.ca":case "tdforeverproud.ca":case "exprimetafierteavectd.ca":case "www.exprimetafierteavectd.ca":case "www.grandforfaitworldpridetd.ca":case "grandforfaitworldpridetd.ca":case "tdforests.twistimage.com":case "maketodaymatter.td.com":case "agissonsaujourdhui.td.com":case "art.td.com":case "collectionart.td.com":case "es.td.com":case "hi.td.com":case "pa.td.com":case "ur.td.com":case "fa.td.com":case "ko.td.com":case "arb.td.com":case "ru.td.com":case "ta.td.com":case "ja.td.com":case "commongroundproject.td.com":case "projetespacespourtous.td.com":rsid.push("tdtdbfg,tdglobal");
break;case "mywelcomecentre.td.com":case "prime300.td.com":case "300bonus.td.com":case "tools.td.com":case "outils.td.com":case "zh-tools.td.com":case "zt-tools.td.com":case "www.tdcanadatrust.ca":case "tdcanadatrust.ca":case "www.tdcanadatrust.com":case "tdcanadatrust.com":case "easyweb.tdcanadatrust.com":case "easywebsoc.tdcanadatrust.com":case "easywebcpo.tdcanadatrust.com":case "easyweb.td.com":case "banquenet.td.com":case "www.tdsimplysave.ca":case "tdsimplysave.ca":case "www.tdsimplepargnes.ca":case "tdsimplepargnes.ca":case "www.tdextra.com":case "tdextra.com":case "www.tdenplus.com":case "tdenplus.com":case "www.tdretirement.com":case "tdretirement.com":case "secure.tdcanadatrust.com":case "td.intelliresponse.com":case "app.tdcanadatrust.com":case "apps.tdcanadatrust.com":case "calc.tdcanadatrust.com":case "calcs.tdcanadatrust.com":case "apply.td.com":case "demande.td.com":case "tools.tdcanadatrust.com":case "www.tdsmallbusinesscontest.com":case "survey.tdcanadatrust.com":case "tdbestholidayevervideos.twistimage.com":case "tdeasywebdemo.com":case "www.tdeasywebdemo.com":case "tdbanquenetdemo.com":case "www.tdbanquenetdemo.com":case "zt.tdcanadatrust.com":case "zh.tdcanadatrust.com":case "mms.tdcanadatrust.com":case "www.tdbusinessplanner.com":case "tdbusinessplanner.com":case "tools.td.com":case "outils.td.com":case "www.commenceraepargnertd.com":case "www.tdstartsaving.com":case "commenceraepargnertd.com":case "tdstartsaving.com":case "es.tdcanadatrust.com":case "hi.tdcanadatrust.com":case "pa.tdcanadatrust.com":case "ur.tdcanadatrust.com":case "fa.tdcanadatrust.com":case "ko.tdcanadatrust.com":case "arb.tdcanadatrust.com":case "ru.tdcanadatrust.com":case "ta.tdcanadatrust.com":case "ja.tdcanadatrust.com":case "tddiversityevents.twistimage.com":case "tddiversityevents.com":case "www.tddiversityevents.com":case "zh.tddiversityevents.com":case "zt.tddiversityevents.com":case "www.zh.tddiversityevents.com":case "www.zt.tddiversityevents.com":case "www.tdaeroplan.com":case "www.aeroplantd.com":case "tdaeroplan.com":case "aeroplantd.com":case "www.tdhousie.com":case "www.tdtabletcontest.com":case "prepayment.tdcanadatrust.com":case "tdmusic.com":case "www.tdmusic.com":case "tdvideos.twistimage.com":case "secure.e2rm.com":case "www.tdrewards.com":case "www.tdreads.com":case "tdreads.com":case "tdafford.com":case "www.tdafford.com":case "tdmortgagetool.com":case "www.tdmortgagetool.com":case "mortgagerenewal.td.com":case "300bonus.td.com":case "digitalacademy.td.com":case "academienumerique.td.com":case "loan.tdcanadatrust.com":case "www.email-td.com":case "300bonus.td.com":case "prime300.td.com":case "tdcanadatrust.mortgagewebcenter.com":rsid.push("tdtdct,tdglobal");
break;case "tdwaterhouse.ca":case "www.tdwaterhouse.ca":case "apps.tdwaterhouse.ca":case "webbroker.tdwaterhouse.ca":case "webbrokercpo.tdwaterhouse.ca":case "webbrokersoc.tdwaterhouse.ca":case "survey.tdwaterhouse.ca":case "www.tdadvisor.com":case "tdadvisor.com":case "www.tdam.com":case "tdam.com":case "tdaminstitutional.com":case "www.tdaminstitutional.com":case "www.tdassetmanagement.com":case "www.tdassetmanagementusa.com":case "tdassetmanagement.com":case "tdwealthvideos.com":case "www.tdwealthvideos.com":case "zt.tdwaterhouse.ca":case "zh.tdwaterhouse.ca":case "private-bankers.td.com":case "portfolio-managers.td.com":case "advisors.tdwaterhouse.ca":case "financialplanners.tdwaterhouse.ca":case "financialplanners.td.com":case "advisors.td.com":case "zt.tdassetmanagement.com":case "zh.tdassetmanagement.com":case "tdmapgenerator.tdassetmanagement.com":case "zt.td.com":case "zh.td.com":rsid.push("tdtdw,tdglobal");
break;case "www.melochemonnex.com":case "melochemonnex.com":case "insurance2.melochemonnex.com":case "insurance.group.tdinsurance.com":case "insurance2.group.tdinsurance.com":case "www.tdassurance.com":case "tdassurance.com":case "groupe.tdassurance.com":case "www.tdinsurance.com":case "tdinsurance.com":case "group.tdinsurance.com":case "www.mytdiservice.com":case "mytdiservice.com":case "www.primmum.com":case "primmum.com":case "www.td-insurance.com":case "td-insurance.com":case "www.td-assurance.com":case "td-assurance.com":case "www.monservicetda.com":case "monservicetda.com":case "survey.tdinsurance.com":case "zt.tdinsurance.com":case "zh.tdinsurance.com":case "td.allianz-assistance.ca":case "new.tdinsurance.com":case "new.tdassurance.com":case "www.new.tdinsurance.com":case "www.new.tdassurance.com":rsid.push("tdtdi,tdglobal");
break;case "mbna.ca":case "www.mbna.ca":case "myalumnicontest.ca":case "www.myalumnicontest.ca":case "concoursmonalmamater.ca":case "www.concoursmonalmamater.ca":case "onlineaccess.ca":case "www.onlineaccess.ca":case "www.accesenligne.ca":case "accesenligne.ca":case "applyonlinenow.com":case "www.applyonlinenow.com":case "apply.mbna.ca":case "www.apply.mbna.ca":case "appliquer.mbna.ca":case "www.appliquer.mbna.ca":case "creditrsvp.com":case "www.creditrsvp.com":case "mbna.decisioncentre.ca":case "classofthetitans.ca":case "www.classofthetitans.ca":case "rewards.mbna.ca":case "recompenses.mbna.ca":case "pages.emails.mbna.ca":rsid.push("tdmbnaca,tdglobal");
break;case "survey.td.com":rsid.push("tdglobal");break;case "www.choicerewards.ca":case "choicerewards.ca":case "www.cuets.ca":case "cuets.ca":rsid.push("tdtdcuetsca,tdglobal");break;case "www.tdbank.com":rsid.push("tdunitedstates,tdglobal");break;default:rsid.push("tdother")}if(document.URL.indexOf("www.td.com/products-services/banking/edb")>-1||document.URL.indexOf("www.td.com/francais/produits-et-services/operations-bancaires/edb-fr")>-1){rsid=[];rsid.push("tdtdct,tdglobal")}if(document.URL.indexOf("www.td.com/ca/products-services/investing")>
-1||document.URL.indexOf("www.td.com/ca/markets-research")>-1||document.URL.indexOf("www.td.com/ca/my-accounts")>-1||document.URL.indexOf("www.td.com/ca/products-services/td-wealth")>-1||document.URL.indexOf("www.td.com/ca/francais/produits-et-services/gestion-de-patrimoine")>-1||document.URL.indexOf("www.td.com/ca/francais/marches-et-recherche")>-1||document.URL.indexOf("www.td.com/ca/francais/produits-et-services/investissements")>-1||document.URL.indexOf("ca/francais/produits-et-services/investir-aupres-de-la-td")>
-1||document.URL.indexOf("advisor.td.com/advisor-dashboard/")>-1||document.URL.indexOf("/advisor-match.td.com/")>-1){rsid=[];rsid.push("tdtdw,tdglobal")}var $dd=document.URL.toLowerCase();if($dd.indexOf("cguid\x3db85-4e5e1419df51")>-1)rsid.push("tdtdw,tdglobal");else if($dd.indexOf("cguid\x3d800-4e68e383e2f8")>-1)rsid.push("tdunitedstates,tdglobal");else if($dd.indexOf("cguid\x3d140-cb3f0d907975")>-1)rsid.push("tdtdct,tdglobal");if(document.URL.indexOf("www.td.com/life-insurance/calculator")>-1||
document.URL.indexOf("www.td.com/forms/termlife.jsp")>-1||document.URL.indexOf("www.td.com/forms/CASHenrollment.jsp")>-1||document.URL.indexOf("www.td.com/m/termlife")>-1){rsid=[];rsid.push("tdtdi,tdglobal")}if(document.URL.indexOf("www.td.com/tools")>-1||document.URL.indexOf("www.td.com/francais/tools"))if(document.URL.indexOf("Coverage")>-1||document.URL.indexOf("Insurance")>-1||document.URL.indexOf("Assurance")>-1||document.URL.indexOf("Assessment")>-1||document.URL.indexOf("Evaluation")>-1){rsid=
[];rsid.push("tdtdi,tdglobal")}return rsid.join(",")};window.customSections=function(section,subsection_1,subsection_2,subsection_3){var sectionEmpty=true;if(typeof section!=="undefined"&&section!=" "&&section!="")sectionEmpty=false;var sub1Empty=true;if(typeof subsection_1!=="undefined"&&subsection_1!=" "&&subsection_1!="")sub1Empty=false;var sub2Empty=true;if(typeof subsection_2!=="undefined"&&subsection_2!=" "&&subsection_2!="")sub2Empty=false;var sub3Empty=true;if(typeof subsection_3!=="undefined"&&
subsection_3!=" "&&subsection_3!="")sub3Empty=false;if(!sectionEmpty){s.prop7=s.hier1=section;if(!sub1Empty){s.prop8=s.prop7+"/"+subsection_1;s.hier1=s.prop7+"|"+subsection_1}if(!sub2Empty&&!sub1Empty){s.prop8=s.prop7+"/"+subsection_1;s.prop9=s.prop8+"/"+subsection_2;s.hier1=s.prop7+"|"+subsection_1+"|"+subsection_2}if(!sub3Empty&&!sub2Empty&&!sub1Empty){s.prop8=s.prop7+"/"+subsection_1;s.prop9=s.prop8+"/"+subsection_2;s.prop10=s.prop9+"/"+subsection_3;s.hier1=s.prop7+"|"+subsection_1+"|"+subsection_2+
"|"+subsection_3}}};window.cfCheckRSID=function(cvURL){var cvHostName=cfUtility(cvURL,"server");switch(cvHostName){case "www.tdbank.com":case "tdbank.com":case "customerservice.td.com":case "tdbank.mortgagewebcenter.com":case "onlinebanking.tdbank.com":case "businessonline.tdbank.com":case "esecure.tdbank.com":case "creditcards.tdcardservices.com":case "espanol.tdbank.com":case "survey.tdbank.com":case "survey.td.com":case "m.tdbank.com":case "m.td.com":case "bankhumangain.com":case "www.bankhumanagain.com":case "onlinebillpay.tdbank.com":case "tdetreasury.tdbank.com":case "treasurydirect.tdbank.com":ReportSuiteID=
"tdunitedstates,tdglobal";break;case "tools.td.com":case "outils.td.com":ReportSuiteID="tdtdct, tdglobal";break;case "qa.us.td.com":ReportSuiteID="tdunitedstatesdev";break;default:ReportSuiteID="tdother";break}ReportSuiteID=ReportSuiteID.toLowerCase();return ReportSuiteID};window.cfPageName=function(cvURL,cvParamInPageName,cvParamToInclude){if(cvParamInPageName==1)if(cvParamToInclude!=""){var cvParam_Modified="?";cvParam_Split=cvParamToInclude.toLowerCase().split(",");for(var i=0;i<cvParam_Split.length;i=
i+1)if(cfGetQParam(cvURL,cvParam_Split[i]))cvParam_Modified=cvParam_Modified+cvParam_Split[i]+"\x3d"+cfGetQParam(cvURL,cvParam_Split[i])+"\x26";cvParam_Modified=cvParam_Modified.substring(0,cvParam_Modified.length-1);var cvPageName=cfUtility(cvURL,"channel")+cfUtility(cvURL,"filename")+cvParam_Modified}else var cvPageName=cfUtility(cvURL,"channel")+cfUtility(cvURL,"filenameparameters");else var cvPageName=cfUtility(cvURL,"channel")+cfUtility(cvURL,"filename");if(cvPageName.length>100)cvPageName="/"+
cfUtility(cvURL,"server")+"/..."+cfRight(cvPageName.replace(cfUtility(cvURL,"server")+"/",""),100-(cfUtility(cvURL,"server").length+5));return cvPageName};window.cfUtility=function(cvURL,cvAction){cvURL=unescape(cvURL.toLowerCase());switch(cvAction){case "server":var a=cvURL.split(/\/+/g)[1];if(typeof a!=="undefined"){var b=a.split(".");if(b.length==2)var c="www."+a;else c=a;TheResult=c}else TheResult="";break;case "domain":var a=cfUtility(cvURL,"server");if(typeof a!=="undefined"){var b=a.split(".");
b_len=b.length;var TheResult=String(b[b_len-2]+"."+b[b_len-1])}else TheResult="";break;case "channel":var a=cvURL.split("?")[0];a=a.replace("http://","/");a=a.replace("https://","/");var b=a.substring(a.lastIndexOf("/")+1);a=a.replace(b,"");a=a.replace(cvURL.split(/\/+/g)[1],cfUtility(cvURL,"server"));TheResult=a;break;case "filename":var a=cvURL.split("?")[0];var b=a.substring(a.lastIndexOf("/")+1);TheResult=b;break;case "filenameparameters":var cvParamPos=cvURL.indexOf("?");if(cvParamPos!=-1)var cvParam=
cvURL.substring(cvParamPos);else var cvParam="";TheResult=cfUtility(cvURL,"filename")+cvParam;break;case "se":var cvReferrer_Server=cvURL.split(/\/+/g)[1];var cvReferrer_Server_Splitted=cvReferrer_Server.split(".");cvReferrer_Server_Splitted_Length=cvReferrer_Server_Splitted.length;var TheResult=String("."+cvReferrer_Server_Splitted[cvReferrer_Server_Splitted_Length-2]+".");break;case "ext":var TheResult=cvURL.substring(cvURL.lastIndexOf("/")+1,cvURL.length).substring(cvURL.substring(cvURL.lastIndexOf("/")+
1,cvURL.length).lastIndexOf(".")+1,cvURL.substring(cvURL.lastIndexOf("/")+1,cvURL.length).length);break;default:var TheResult=""}return TheResult};window.cfGetQParam=function(a,b){var c=a.indexOf("?");var d=a.indexOf("#");if(c<0)return"";var e=a.substr(c+1);if(d>0)e=a.substring(c+1,d);var f=e.split("\x26");for(var i=0;i<f.length;i++){var g=f[i].split("\x3d");g[0]=unescape(g[0]);if(g[0]==b){g[1]=unescape(g[1]);if(g[1].indexOf('"')>-1){var h=/"/g;g[1]=g[1].replace(h,'\\"')}if(g[1].indexOf("+")>-1){var j=
/\+/g;g[1]=g[1].replace(j," ")}return g[1]}}return""};window.cfLeft=function(str,n){if(n<=0)return"";else if(n>String(str).length)return str;else return String(str).substring(0,n)};window.cfRight=function(str,n){if(n<=0)return"";else if(n>String(str).length)return str;else{var iLen=String(str).length;return String(str).substring(iLen,iLen-n)}};window.cfClean=function(cvURL){if(cvURL){cvURL=cvURL.replace("http://","/");cvURL=cvURL.replace("https://","/")}return cvURL};window.removeHTMLTags=function(strInputCode){if(strInputCode){strInputCode=
strInputCode.replace(/&(lt|gt);/g,function(strMatch,p1){return p1=="lt"?"\x3c":"\x3e"});var strTagStrippedText=strInputCode.replace(/<\/?[^>]+(>|$)/g,"");return strTagStrippedText}};window.trackConversions=function(ConvID,ConvType,AuthStat,ProcStep,ProdID,ProdAmount){if(AuthStat!=="undefined"&&AuthStat!=""){AuthStat=false;if(ConvID.indexOf(":p:")>-1)AuthStat=false;else if(ConvID.indexOf(":s:")>-1)AuthStat=true}if(ProdID!=="undefined"&&ProdID!=""&&ProdAmount!=="undefined"&&ProdAmount!="")s.products=
";"+ProdID.toLowerCase()+";;;event18\x3d"+ProdAmount;if(ConvType.indexOf("Login")>-1)s.events=s.apl(s.events,"event4",",",1);else if(ConvType.indexOf("ProcessStart")>-1)if(AuthStat==true){s.events=s.apl(s.events,"event5,event12",",",1);s.eVar21=ConvID.toLowerCase();s.eVar23=ConvID.toLowerCase()+":"+ProcStep.toLowerCase()}else{s.events=s.apl(s.events,"event5,event11",",",1);s.eVar21=ConvID.toLowerCase();s.eVar22=ConvID.toLowerCase()+":"+ProcStep.toLowerCase()}else if(ConvType.indexOf("ProcessComplete")>
-1)if(AuthStat==true){s.events=s.apl(s.events,"event6,event12",",",1);s.eVar21=ConvID.toLowerCase();s.eVar23=ConvID.toLowerCase()+":"+ProcStep.toLowerCase()}else{s.events=s.apl(s.events,"event6,event11",",",1);s.eVar21=ConvID.toLowerCase();s.eVar22=ConvID.toLowerCase()+":"+ProcStep.toLowerCase()}else if(ConvType.indexOf("ApplyStart")>-1){s.events=s.apl(s.events,"event17",",",1);s.eVar70=ConvID.toLowerCase()}else if(ConvType.indexOf("ApplyComplete")>-1){s.events=s.apl(s.events,"event7",",",1);s.eVar70=
ConvID.toLowerCase()}else if(ConvType.indexOf("ApplyApproved")>-1){s.events=s.apl(s.events,"event8",",",1);s.eVar70=ConvID.toLowerCase()}else if(ConvType.indexOf("AcctCreate")>-1){s.events=s.apl(s.events,"event13",",",1);s.eVar23=ConvID.toLowerCase()}else if(ConvType.indexOf("AcctInteract")>-1){s.events=s.apl(s.events,"event12",",",1);s.eVar21=ConvID.toLowerCase();s.eVar23=ConvID.toLowerCase()+":"+ProcStep.toLowerCase()}else if(ConvType.indexOf("ToolInteract")>-1){s.events=s.apl(s.events,"event11",
",",1);s.eVar21=ConvID.toLowerCase();s.eVar22=ConvID.toLowerCase()+":"+ProcStep.toLowerCase()}};window.trackCustomLink=function(LinkID,LinkType,EventType){s.linkTrackVars=s.apl(s.linkTrackVars,"events,pageName,prop16,prop17,prop18,prop19,eVar2,eVar21,eVar25,eVar26,eVar27,eVar64,eVar65,eVar66,eVar67",",",1);s.prop16=s.eVar64=s.pageName;s.prop17=s.eVar65=unescape(LinkID.toLowerCase());s.prop18=s.eVar66=unescape(LinkType.toLowerCase());s.prop19=s.eVar67=unescape(EventType.toLowerCase());if(LinkID.indexOf(":Login")>
-1){s.linkTrackEvents="event4";s.events="event4"}else if(LinkID.indexOf(":ProcesStart")>-1){s.linkTrackEvents="event5";s.events="event5";s.eVar21=LinkID.substring(0,LinkID.length-12).toLowerCase()}else if(LinkID.indexOf(":ProcessComplete")>-1){s.linkTrackEvents="event6";s.events="event6";s.eVar21=LinkID.substring(0,LinkID.length-16).toLowerCase()}else if(LinkID.indexOf(":ApplyComplete")>-1){s.linkTrackEvents="event7";s.events="event7";s.eVar21=LinkID.substring(0,LinkID.length-14).toLowerCase()}else if(LinkID.indexOf(":ApplyApproved")>
-1){s.linkTrackEvents="event8";s.events="event8";s.eVar21=LinkID.substring(0,LinkID.length-14).toLowerCase()}else if(LinkID.indexOf(":AcctInteract")>-1){s.linkTrackEvents="event12";s.events="event12";s.eVar21=LinkID.substring(0,LinkID.length-13).toLowerCase()}else if(LinkID.indexOf(":AcctCreate")>-1){s.linkTrackEvents="event13";s.events="event13";s.eVar21=LinkID.substring(0,LinkID.length-11).toLowerCase()}else if(LinkID.indexOf(":ToolInteract")>-1){s.linkTrackEvents="event11";s.events="event11";s.eVar21=
LinkID.substring(0,LinkID.length-13).toLowerCase()}var LinkTypeAbbrev="o";if(LinkType.indexOf("DL")>-1){var LinkTypeAbbrev="d";s.linkTrackVars=s.apl(s.linkTrackVars,"eVar43,eVar44,eVar45",",",1)}else if(LinkType.indexOf(":EXT")>-1)var LinkTypeAbbrev="e";var linkLabel=LinkID+"|"+LinkType+"|"+EventType+"|"+s.pageName;s.tl(this,LinkTypeAbbrev,linkLabel)}},2939098,383947);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(~document.URL.indexOf("www2.pat.tdinsurance.com")||~document.URL.indexOf("www2.pat.tdassurance.com")||~document.URL.indexOf("staging.tdinsurance.com")){!function(t){function e(t,e){qi=t,$i=e,Ri=e.documentElement,Li=t.screen,Vi=e.location}function n(t){wu=t,Ui=wu,Hi=wu.enabled,zi=wu.clientCode,Bi=wu.imsOrgId,Wi=wu.serverDomain,Zi=wu.crossDomain,Ji=wu.timeout,Yi=wu.globalMboxName,
Xi=wu.globalMboxAutoCreate,Gi=wu.mboxParams,Ki=wu.globalMboxParams,Qi=wu.version,tu=wu.defaultContentHiddenStyle,eu=wu.defaultContentVisibleStyle,nu=wu.bodyHiddenStyle,ru=wu.bodyHidingEnabled,ou=wu.deviceIdLifetime/1E3,iu=wu.sessionIdLifetime/1E3,uu=wu.selectorsPollingTimeout,su=wu.visitorApiTimeout,cu=wu.overrideMboxEdgeServer,au=wu.overrideMboxEdgeServerTimeout,fu=wu.optoutEnabled,lu=wu.cookieDomain,pu="disabled"!==Zi,hu="x-only"===Zi,du=wu.secureOnly?"https:":"",bu=wu.supplementalDataIdParamTimeout}
function r(t){return t}function o(){for(var t=[],e="0123456789abcdef",n=0;n<36;n++)t[n]=e.substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]=_u,t.join(_u)}function i(t){setTimeout(t,0)}function u(t){for(var e=5381,n=0;n<t.length;n++)e=(e<<5)+e+t.charCodeAt(n);return e}function s(){}function c(t){return"string"===Ou.type(t)}function a(t){return c(t)&&Ou.trim(t).length>0}function f(t){return!c(t)||0===t.length}function l(t){return"number"===Ou.type(t)}
function p(t){return"undefined"===Ou.type(t)}function h(t){return Ou.isArray(t)}function d(t){return Ou.isFunction(t)}function b(t){return"null"===Ou.type(t)}function v(t){return"object"===Ou.type(t)}function m(t){return t&&1===t.nodeType&&"object"===Ou.type(t)&&!Ou.isPlainObject(t)}function y(t){return!(h(t)&&t.length>0)}function g(t){return v(t)&&a(t.error)?t.error:p(t)||b(t)||!a(t.message)?a(t)?t:as:t.message}function w(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(t)}function x(t){var e;switch(t.arrayFormat){case "index":return function(t,n,r){if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e)return void(r[t]=n);void 0===r[t]&&(r[t]={}),r[t][e[1]]=n};case "bracket":return function(t,n,r){return e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0===r[t]?void(r[t]=[n]):void(r[t]=[].concat(r[t],n)):void(r[t]=n)};default:return function(t,e,n){if(void 0===n[t])return void(n[t]=e);n[t]=[].concat(n[t],e)}}}function _(t){return Array.isArray(t)?
t.sort():"object"==typeof t?_(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}function E(t){try{return encodeURIComponent(t)}catch(e){return t}}function O(t){try{return decodeURIComponent(t)}catch(e){return t}}function S(t){return gs[t]?gs[t]:(ys.href=t,gs[t]=fs(ys.href))}function T(t,e){if(!e)return"";var n="; "+t;return!0===e?n:n+"\x3d"+e}function j(t){if("number"==typeof t.expires){var e=new Date;e.setMilliseconds(e.getMilliseconds()+864E5*t.expires),
t.expires=e}return T("Expires",t.expires?t.expires.toUTCString():"")+T("Domain",t.domain)+T("Path",t.path)+T("Secure",t.secure)}function A(t,e,n){return encodeURIComponent(t).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"\x3d"+encodeURIComponent(e).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+j(n)}function C(t){for(var e={},n=t?t.split("; "):[],r=/(%[0-9A-Z]{2})+/g,o=0;o<n.length;o++){var i=n[o].split("\x3d"),
u=i.slice(1).join("\x3d");'"'===u.charAt(0)&&(u=u.slice(1,-1));try{e[i[0].replace(r,decodeURIComponent)]=u.replace(r,decodeURIComponent)}catch(t){}}return e}function k(){return C(document.cookie)}function N(t){return k()[t]}function P(t,e,n){document.cookie=A(t,e,xs({path:"/"},n))}function D(t,e){P(t,"",xs({},e,{expires:-1}))}function I(t){return/^(?!0)(?!.*\.$)((1?\d?\d|25[0-5]|2[0-4]\d)(\.|$)){4}$/.test(t)}function M(t){if(I(t))return t;var e=t.split(".").reverse(),n=e.length;return n>=3&&/^(com|edu|gov|net|mil|org|nom|co|name|info|biz)$/i.test(e[1])?
e[2]+"."+e[1]+"."+e[0]:1===n?e[0]:e[1]+"."+e[0]}function F(){Ts(Ds,zs,{domain:lu});var t=Ss(Ds)===zs;return js(Ds),t}function q(){var t=Ss(Rs),e=ms(Vi.search);return a(t)||a(e[Us])}function $(){return Hi&&F()&&!q()}function R(){var t=Ss($s),e=ms(Vi.search);return a(t)||a(e[Vs])}function L(){var t=Ss(Ls),e=ms(Vi.search),n=ms(vs($i.referrer));return a(t)||a(e[Hs])||a(n[Hs])}function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console.warn.apply(console,[].concat.apply([Bs],t))}function U(){for(var t=
[],e=0;e<arguments.length;e++)t[e]=arguments[e];R()&&console.log.apply(console,[].concat.apply([Bs],t))}function H(){var t={};return t.valid=!0,t}function z(t){var e={};return e.valid=!1,e.error=t,e}function B(t){return f(t)?z(Au):t.length>As?z(Cu):H()}function W(t){if(!v(t))return z(ju);var e=t.mbox,n=B(e);return n.valid?d(t.success)?d(t.error)?H():z(Nu):z(ku):n}function Z(t){return v(t)?h(t.offer)?H():z(Du):z(ju)}function J(t){if(!v(t))return z(ju);var e=t.mbox,n=B(e);return n.valid?H():n}function Y(t,
e){return-1!==e.indexOf(t)}function X(t){return Ou.isEmptyObject(t)?[]:Object.keys(t)}function G(t,e){return Ou.map(e,t)}function K(t,e){return Ou.grep(e,t)}function Q(t){return[].concat.apply([],t)}function tt(t,e){Ou.each(e,function(e,n){return t(n,e),!0})}function et(t,e){var n={};return tt(function(t,e){return n[e]=t},t),tt(function(t,e){return n[e]=t},e),n}function nt(t,e,n){var r=et({},t),o=X(e).filter(function(t){return!Y(t,n)});return tt(function(t){return r[t]=e[t]},o),r}function rt(t){return Ou.isArray(t)&&
t.length>0?t[0]:null}function ot(t,e){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function it(t){return Ou.trim(t)}function ut(t){return{key:t,val:t.charAt(0)+"\\3"+t.charAt(1)+" "}}function st(t){var e=t.match(pc);if(y(e))return t;var n=G(ut,e),r=t;return tt(function(t){r=r.replace(t.key,t.val)},n),r}function ct(t){for(var e,n,r,o,i=[],u=it(t),s=u.indexOf(ac);-1!==s;)e=it(u.substring(0,s)),n=it(u.substring(s)),o=n.indexOf(fc),r=it(n.substring(lc,o)),u=it(n.substring(o+
1)),s=u.indexOf(ac),e&&r&&i.push({sel:e,eq:Number(r)});return u&&i.push({sel:u}),i}function at(t){if(m(t))return Ou(t);if(!c(t))return Ou(t);var e=st(t);if(-1===e.indexOf(ac))return Ou(e);var n=ct(e),r=Ou($i);return tt(function(t){var e=t.sel,n=t.eq;r=r.find(e),l(n)&&(r=r.eq(n))},n),r}function ft(t){return at(t).length>0}function lt(t){at(t).remove()}function pt(t,e){at(t).before(e)}function ht(t){return Ou("\x3c"+oc+"/\x3e").append(t)}function dt(t,e,n){var r=Ou(t),o=r.attr(e);a(o)&&(r.removeAttr(e),
r.attr(n,o))}function bt(t,e){return a(Ou(t).attr(e))}function vt(t){return"function"==typeof t}function mt(t){return null!=t&&"object"==typeof t}function yt(){try{return vu.apply(this,arguments)}catch(t){return _c.errorObject.e=t,_c.errorObject}}function gt(t){return vu=t,yt}function wt(t){return t.reduce(function(t,e){return t.concat(e instanceof Ic.UnsubscriptionError?e.errors:e)},[])}function xt(t,e,n){if(t){if(t instanceof Qc.Subscriber)return t;if(t[ta.$$rxSubscriber])return t[ta.$$rxSubscriber]()}return t||
e||n?new Qc.Subscriber(t,e,n):new Qc.Subscriber(ea.empty)}function _t(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}function Et(){return za in qi&&Ba in new qi[za]}function Ot(t){if(t.dataType===ma)return t.cache=!0,t;if(t.dataType!==da)return t;if(Et()){var e={};e[Ba]=!0,t.xhrFields=e}else t.dataType=ba,t.jsonp=ka;return t}function St(t){return pa.create(function(e){var n=!1,r={success:function(t){n=!0,e.next({data:t}),
e.complete()},error:function(t,r,o){var i=g(o||r);n=!0,e.next({status:r,error:i}),e.complete()}};Ou.ajaxSettings.global=!1;var o=Ou.ajax(Ot(Ou.extend(!0,r,t)));return function(){n||o.abort()}})}function Tt(t){return!y(t)&&2===t.length&&a(it(t[0]))}function jt(t){var e=t.indexOf(Zs);return-1===e?[]:[t.substr(0,e),t.substr(e+1)]}function At(t,e,n,r){tt(function(t,o){v(t)?(e.push(o),At(t,e,n,r),e.pop()):y(e)?n[r(o)]=t:n[r(e.concat(o).join(Xs))]=t},t)}function Ct(t){var e={},n=[],r=K(a,t);tt(function(t){return n.push(jt(t))},
r);var o=K(Tt,n);return tt(function(t){return e[O(it(t[0]))]=O(it(t[1]))},o),e}function kt(t){var e={},n=ms(Js+t);return tt(function(t,n){a(n)&&(e[n]=t)},n),e}function Nt(t,e){var n={};return p(e)?At(t,[],n,r):At(t,[],n,e),n}function Pt(t){p(qi[Wa])||d(qi[Wa][Za])&&qi[Wa][Za](t)}function Dt(t,e,n){p(qi[Wa])||d(qi[Wa][Ja])&&qi[Wa][Ja](t,e,n)}function It(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function Mt(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=
e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var u=o[i];if("entries"!==u&&"size"!==u&&r.prototype[u]===r.prototype.entries)return u}return"@@iterator"}function Ft(t,e,n,r){var o=new Df.InnerSubscriber(t,n,r);if(o.closed)return null;if(e instanceof Nf.Observable)return e._isScalar?(o.next(e.value),o.complete(),null):e.subscribe(o);if(Af.isArray(e)){for(var i=
0,u=e.length;i<u&&!o.closed;i++)o.next(e[i]);o.closed||o.complete()}else{if(Cf.isPromise(e))return e.then(function(t){o.closed||(o.next(t),o.complete())},function(t){return o.error(t)}).then(null,function(t){jf.root.setTimeout(function(){throw t;})}),o;if(e&&"function"==typeof e[Pf.$$iterator])for(var s=e[Pf.$$iterator]();;){var c=s.next();if(c.done){o.complete();break}if(o.next(c.value),o.closed)break}else if(e&&"function"==typeof e[If.$$observable]){var a=e[If.$$observable]();if("function"==typeof a.subscribe)return a.subscribe(new Df.InnerSubscriber(t,
n,r));o.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var f=kf.isObject(e)?"an invalid object":"'"+e+"'",l="You provided "+f+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";o.error(new TypeError(l))}}return null}function qt(t){return t&&"function"==typeof t.schedule}function $t(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new Fl(t,
e))}function Rt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new Wl(t,e,n))}function Lt(t){return t instanceof Date&&!isNaN(+t)}function Vt(t,e,n){void 0===n&&(n=Sp.async);var r=Tp.isDate(t),o=r?+t-n.now():Math.abs(t);return this.lift(new kp(o,r,e,n))}function Ut(t){return fu&&d(t[Wp])&&!p(qi.Visitor[Xp])}function Ht(t){return Ut(t)?pa.create(function(e){t[Wp](function(t){e.next(t),e.complete()},qi.Visitor[Xp].GLOBAL,!0)}):pa.of(!1)}function zt(t){return Fp+
t}function Bt(t){if(!d(t[Zp]))return{};var e=t[Zp]();return v(e)?Nt(e,zt):{}}function Wt(t){var e={};return a(t[Jp])&&(e[qp]=t[Jp]),a(t[Yp])&&(e[$p]=t[Yp]),e}function Zt(t,e){var n={};return tt(function(t){return tt(function(t,e){return n[e]=t},t)},e),tt(function(t,e){return n[e]=t},Bt(t)),tt(function(t,e){return n[e]=t},Wt(t)),n}function Jt(t,e,n){return d(t[e])?pa.create(function(r){t[e](function(t){var e={};e[n]=t,r.next(e),r.complete()},!0)}):pa.of({})}function Yt(t){var e=[Jt(t,Vp,_a),Jt(t,Up,
wa),Jt(t,Hp,ga),Jt(t,zp,xa)];return pa.forkJoin.apply(pa,e).map(function(e){return Zt(t,e)})}function Xt(t,e,n){var r=Qt(t,e);return a(r)&&(n[Ea]=r),n}function Gt(){return{status:Ya,error:Pu}}function Kt(t,e){return e?pa["throw"](Gt()):pa.of(t)}function Qt(t,e){return d(t[Bp])?t[Bp](Mp+":"+zi+":"+e):Ws}function te(){if(f(Bi))return null;if(p(qi.Visitor))return null;if(b(qi.Visitor))return null;if(!d(qi.Visitor[Rp]))return null;var t={sdidParamExpiry:bu},e=qi.Visitor[Rp](Bi,t);return v(e)&&d(e[Lp])&&
e[Lp]()?e:null}function ee(t){var e=te();if(b(e))return pa.of({});var n=++Gp,r=""+ef+n,o=""+nf+n,i=rf+":request:"+n+":mbox:"+t,u=function(){Pt(r)},s=function(){Pt(o),Dt(i,r,o)};return pa.of(e)["do"](u).flatMap(Ht).flatMap(function(t){return Kt(e,t)}).flatMap(Yt).timeoutWith(su,pa.of({})).map(function(n){return Xt(e,t,Zt(e,[n]))})["do"](s)}function ne(t,e,n){return{name:t,value:e,expires:n}}function re(t){return[E(t.name),E(t.value),t.expires].join(Gs)}function oe(t){var e=t.split(Gs);return y(e)||
e.length<3?null:isNaN(parseInt(e[2],10))?null:ne(O(e[0]),O(e[1]),Number(e[2]))}function ie(t){return f(t)?[]:t.split(Ks)}function ue(t){return t.expires}function se(t){var e=G(ue,t);return Math.max.apply(Math,e)}function ce(){var t={},e=Ss(Is),n=G(oe,ie(e)),r=Math.ceil(Date.now()/1E3),o=K(function(t){return v(t)&&r<=t.expires},n);return tt(function(e){return t[e.name]=e},o),t}function ae(t){var e=G(r,t),n=Math.abs(1E3*se(e)-Date.now()),o=G(re,e).join(Ks),i=new Date(Date.now()+n);Ts(Is,o,{domain:lu,
expires:i})}function fe(t,e,n){if(!hu){var r=ce();r[t]=ne(t,e,Math.ceil(n+Date.now()/1E3)),ae(r)}}function le(t){if(hu)return Ws;var e=ce(),n=e[t];return v(n)?n.value:Ws}function pe(t){fe(Fs,t,iu)}function he(){return hu?Kp:(f(le(Fs))&&fe(Fs,Kp,iu),le(Fs))}function de(t){var e=t.split(Xs);if(2!==e.length||f(e[1]))return Ws;var n=e[1].split(Qs);return 2!==n.length||f(n[0])?Ws:n[0]}function be(t){if(cu){var e=de(t);if(!f(e)){var n=new Date(Date.now()+au);Ts(qs,e,{domain:lu,expires:n})}}}function ve(){return le(Ms)}
function me(t){fe(Ms,t,ou),be(t)}function ye(){return Qp}function ge(){var t=new Date;return t.getTime()-6E4*t.getTimezoneOffset()}function we(){return th++}function xe(){var t={};return t[$a]=he(),hu||(t[Va]=ve()),t[qa]=ye(),t[Ha]=Qi,t[Ia]=Ws+we(),t[La]=Ws+ge(),t[Ma]=Vi.hostname,t[Ua]=Vi.href,t[Ra]=$i.referrer,pu&&(t[Da]=Zi),t}function _e(){var t={};return t[ja]=Ws+Ri.clientHeight,t[Ca]=Ws+Ri.clientWidth,t[Aa]=Ws+-(new Date).getTimezoneOffset(),t[Sa]=Ws+Li.height,t[Ta]=Ws+Li.width,t[Oa]=Ws+Li.colorDepth,
t}function Ee(t){if(!d(t))return{};var e=null;try{e=t()}catch(t){}return b(e)?{}:h(e)?Ct(e):a(e)?kt(e):v(e)?Nt(e):{}}function Oe(){return et(Gi||{},Ee(qi.targetPageParamsAll))}function Se(){return et(Ki||{},Ee(qi.targetPageParams))}function Te(t){return Yi!==t?Oe():et(Oe(),Se())}function je(){return Ss(qs)}function Ae(){if(!cu)return Wi;var t=je();return f(t)?Wi:Wi.replace(zi,[nh,t].join(Ws))}function Ce(){return oh.replace(rh,zi)}function ke(){return[du,ih,Ae(),Ce()].join(Ws)}function Ne(t,e){var n=
e.mbox,r={};return r[Fa]=n,r=et(r,xe()),r=et(r,_e()),r=et(r,t),r=et(r,Te(n)),r=et(r,e.params)}function Pe(t,e){var n={};return n.type=eh,n.url=ke(),n.dataType=da,n.data=Ne(t,e),n.timeout=e.timeout,n}function De(t){var e=t.mbox,n=++uh,r=""+of+n,o=""+uf+n,i=sf+":request:"+n+":mbox:"+e,u=function(){Pt(r)},s=function(){Pt(o),Dt(i,r,o)};return pa.of(e).flatMap(ee).map(function(e){return Pe(e,t)})["do"](u).flatMap(St)["do"](s)}function Ie(t){var e=t.sessionId;a(e)&&pe(e)}function Me(t){var e=t.tntId;a(e)&&
me(e)}function Fe(t){if(p(qi[sh]))return void(qi[sh]=[t]);h(qi[sh])&&qi[sh].push(t)}function qe(t){var e=t.trace;v(e)&&Fe(e)}function $e(t){var e=t.error;return a(e)?pa["throw"](Wn(Ya,e)):pa.of(t)}function Re(t){var e=t.message;return f(e)?ah:e}function Le(t){var e=t.duration;return l(e)?e:ch}function Ve(t){var e=Re(t),n=new Date(Date.now()+Le(t));Ts(Rs,e,{domain:lu,expires:n})}function Ue(t){var e=t.disabled;return v(e)?(Ve(e),pa["throw"](Wn(Ga,Re(e)))):pa.of(t)}function He(t){return a(t.html)}function ze(t){return a(t.redirect)}
function Be(t){return!y(t.actions)}function We(t){return v(t.dynamic)&&a(t.dynamic.url)}function Ze(t){return p(t.html)&&p(t.redirect)&&p(t.actions)&&p(t.dynamic)}function Je(t){return a(t.clickToken)}function Ye(t){return!y(t.plugins)}function Xe(t){return Je(t)?[{action:_h,clickTrackId:t.clickToken}]:[]}function Ge(t){return Ye(t)?[t.html].concat(t.plugins):[t.html]}function Ke(t){var e=K(He,t);if(y(e))return pa.of([]);var n={};return n[jh]=fh,n[Ph]=Q(G(Ge,e)).join(Ws),pa.of([n].concat(G(Xe,t)))}
function Qe(t,e){var n=t.split(Gs),r=n[1],o=n[0];return e&&!~o.indexOf(e)&&(~o.indexOf(Js)?o+=Ys+e:o+=Js+e),r?o+Gs+r:o}function tn(){return[$a,Zs,he()].join(Ws)}function en(t){return[Qh,Zs,E(t)].join(Ws)}function nn(t){var e=en($i.referrer),n=Qe(t,e),r=te();return b(r)?n:d(r[td])?r[td](n):n}function rn(t){var e=String(t[Wh]),n=String(t[Zh]),r=Vi.search.substring(1),o=t[Bh];if(f(o))return U(Zu,t),null;e&&ed===e&&(o=Qe(o,r)),n&&ed===n&&(o=Qe(o,tn()));var i=nt({},t,[Bh,Wh,Zh]);return i[Bh]=nn(o),i}function on(t){var e=
{action:wh,url:t.redirect};return pa.of([rn(e)])}function un(t){return{action:yh,content:t}}function sn(t){return Ye(t)?G(un,t.plugins):[]}function cn(t){var e=t[Xh];if(f(e))return Ws;var n=ud.exec(e);return y(n)?Ws:2!==n.length?Ws:n[1]}function an(t,e){var n=ht(e);return n.children().first().attr(rd,t),n.html()}function fn(t){var e=t[Ph],n=cn(t);if(f(n)||f(e))return et({},t);var r=t[Xh],o=nt({},t,[Xh,Ph]);return o[Xh]=r.replace(sd,Ws),o[Ph]=an(n,e),o}function ln(t){var e=[],n=t[Ch];if(f(n))return t;
f(t[kh])?e.push(Ch):e.push(kh,Ch);var r=nt({},t,e);return r[Ph]="\x3c"+rc+" "+nd+'\x3d"'+n+'" /\x3e',r}function pn(t){var e=fn(t);if(!c(e[Ph]))return U(Vu,e),null;var n=t[Dh];return ya===n&&(e[jh]=lh),nt({},e,[Dh])}function hn(t){var e=fn(t);return c(e[Ph])?e:(U(Vu,e),null)}function dn(t){var e=fn(t);return c(e[Ph])?e:(U(Vu,e),null)}function bn(t){var e=fn(t);return c(e[Ph])?e:(U(Vu,e),null)}function vn(t){var e=fn(ln(t));return c(e[Ph])?e:(U(Vu,e),null)}function mn(t){var e=fn(ln(t));return c(e[Ph])?
e:(U(Vu,e),null)}function yn(t){return c(t[Ph])?t:(U(Vu,t),null)}function gn(t){var e=t[Ah],n=t[Ch];return f(e)||f(n)?(U(Uu,t),null):t}function wn(t){var e=t[Jh],n=t[Ch];if(f(e)||f(n))return U(Hu,t),null;var r={},o=nt({},t,[Jh,Ch]);return r[e]=n,o[Kh]=r,o}function xn(t){var e=t[Ih],n=t[Mh];if(f(e)||f(n))return U(zu,t),null;var r={},o=nt({},t,[jh,Ih,Mh]);return r[Fh]=e,r[qh]=n,o[Kh]=r,o[jh]=hh,o}function _n(t){var e=Number(t[$h]),n=Number(t[Rh]);if(isNaN(e)||isNaN(n))return U(Bu,t),null;var r,o=t[Uh],
i={};return a(o)?(i[Uh]=o,r=nt({},t,[jh,$h,Rh,Uh])):r=nt({},t,[jh,$h,Rh]),i[Lh]=e,i[Vh]=n,r[Kh]=i,r[jh]=hh,r}function En(t){var e=Number(t[Hh]),n=Number(t[zh]);return isNaN(e)||isNaN(n)?(U(Wu,t),null):t}function On(t){return rn(t)}function Sn(t){return f(t[Nh])?(U(Ju,t),null):t}function Tn(t){switch(t[jh]){case fh:return pn(t);case gh:return hn(t);case Sh:return dn(t);case Th:return bn(t);case Eh:return vn(t);case Oh:return mn(t);case yh:return yn(t);case ph:return gn(t);case hh:return wn(t);case bh:return xn(t);
case vh:return _n(t);case mh:return t;case dh:return En(t);case wh:return On(t);case xh:return Sn(t);default:return null}}function jn(t){return K(function(t){return!b(t)},G(function(t){return Tn(t)},t))}function An(t){return pa.of([].concat(jn(t.actions),sn(t)))}function Cn(t){var e={};return tt(function(t){p(e[t.type])&&(e[t.type]={}),e[t.type][t.name]=t.defaultValue},t.params),e}function kn(t){return p(t.request)?{}:t.request}function Nn(t){return-1!==t.indexOf(cd)}function Pn(t){var e={};return p(t.mbox)?
e:(tt(function(t,n){Nn(n)||(e[n]=t)},t.mbox),e)}function Dn(t,e,n,r){var o={};return o=et(o,et(t,e)),o=et(o,et(n,r))}function In(t,e,n){var r={};return r.type=eh,r.url=t,r.dataType=va,r.data=e,r.timeout=n,r}function Mn(t,e){var n={};return n[jh]=fh,n[Ph]=t.data,[n].concat(Xe(e),sn(e))}function Fn(t,e){var n=e.dynamic,r=Cn(n),o=kn(r),i=Pn(r),u=ms(Vi.search),s=t.params,c=n.url,a=Dn(o,u,i,s),f=t.timeout;return pa.of(In(c,a,f)).flatMap(St).map(function(t){return Mn(t,e)})}function qn(t){return pa.of([].concat(Xe(t),
sn(t)))}function $n(t,e){var n=[];return tt(function(e){return ze(e)?void n.push(on(e)):Be(e)?void n.push(An(e)):We(e)?void n.push(Fn(t,e)):Ze(e)?void n.push(qn(e)):void 0},e),n.concat(Ke(e))}function Rn(t){var e=[];return tt(function(t){var n=t.responseTokens;v(n)&&e.push(n)},t),e}function Ln(t,e){var n=e.offers;if(!h(n))return pa.of({actions:[],responseTokens:[]});var r=$n(t,n),o=Rn(n);return pa.forkJoin.apply(pa,r).map(Q).map(function(t){return{actions:t,responseTokens:o}})}function Vn(t,e,n){return this.lift(new pd(t,
e,n))}function Un(t,e){return pa.of(e)["do"](Ie)["do"](Me)["do"](qe).flatMap($e).flatMap(Ue).flatMap(function(e){return Ln(t,e)})}function Hn(t){var e=t.data;return v(e)?pa.of(e):pa.of(t)}function zn(t){var e=t.params;return v(e)?e:{}}function Bn(t){var e=t.timeout;return l(e)&&e>=0?e:Ji}function Wn(t,e){return{status:t,error:e}}function Zn(t){var e=[];return ht(t).find(md).forEach(function(t){e.push(ht(t).html())}),e.join(Ws)}function Jn(t){return pa.of(t).flatMap(De).flatMap(Hn).flatMap(function(e){return Un(t,
e)})}function Yn(t,e){var n=new qi.CustomEvent(t,{detail:e});$i.dispatchEvent(n)}function Xn(){var t=he(),e=ve();return a(e)?{sessionId:t,deviceId:e}:{sessionId:t}}function Gn(t){var e=t.responseTokens,n={type:yd,mbox:t.mbox,tracking:Xn()};y(e)||(n.responseTokens=e),Yn(yd,n)}function Kn(t){Yn(gd,{type:gd,mbox:t.mbox,message:t.message,tracking:Xn()})}function Qn(t){Yn(wd,{type:wd,mbox:t.mbox,tracking:Xn()})}function tr(t){Yn(xd,{type:xd,mbox:t.mbox,message:t.message,selectors:t.selectors,tracking:Xn()})}
function er(t,e){var n=t.mbox,r=e.actions,o=e.responseTokens;U(_d,Fu,r),t.success(r),Gn({mbox:n,responseTokens:o})}function nr(t,e){var n=t.mbox,r=e.status||Ka,o=g(e);V(_d,qu,e),t.error(r,o),Kn({mbox:n,message:o})}function rr(t){var e={};return e.mbox=t.mbox,e.params=zn(t),e.timeout=Bn(t),e}function or(t){var e=W(t),n=e.error;if(!e.valid)return i(t.error(Xa,n)),void V(_d,n);if(!$())return i(t.error(Xa,Su)),void V(Su);var r=rr(t),o=function(e){return er(t,e)},u=function(e){return nr(t,e)};Jn(r).subscribe(o,
u)}function ir(){return Ou(ec).eq(0)}function ur(t,e){return"\x3c"+nc+" "+rd+'\x3d"'+t+'" '+od+'\x3d"'+Od+'"\x3e'+e+"\x3c/"+nc+"\x3e"}function sr(){!0===ru&&ft(Cd)&&(lt(Cd),Pt(Qa))}function cr(){!0===ru&&(ft(Cd)||(pt(ir(),ur(Ad,nu)),Pt(tf)))}function ar(t){y(t)||tt(function(t){var e=jd+u(t),n=t+" {"+tu+"}";pt(ir(),ur(e,n))},t)}function fr(t){lt("#"+(jd+u(t)))}function lr(t,e){at(t).removeClass(Ed).addClass(e?Td:Sd)}function pr(){if($()){var t=Ou(tc),e="."+Ed+" {"+tu+"}",n="."+Sd+" {"+eu+"}";t.append("\x3c"+
nc+" "+rd+'\x3d"'+kd+'"\x3e'+e+"\x3c/"+nc+"\x3e"),t.append("\x3c"+nc+"\x3e"+n+"\x3c/"+nc+"\x3e")}}function hr(t){var e=Ou(t).attr(nd);return a(e)?e:null}function dr(t){return K(a,G(hr,t.find(ec).get()))}function br(t){var e={};return e.type=eh,e.url=t,e.dataType=ma,U(cs,t),St(e).map(function(t){return Ws})}function vr(t){return Ou(t).attr(Cs)}function mr(t){return t.find(rc).forEach(function(t){return dt(t,nd,Cs)}),t}function yr(t){return t.find(rc).forEach(function(t){return dt(t,Cs,nd)}),t}function gr(t){var e=
function(t){return bt(t,Cs)},n=K(e,t.find(rc).get());return y(n)?t:(tt(wr,G(vr,n)),t)}function wr(t){return U(Xu,t),Ou("\x3c"+rc+"/\x3e").attr(nd,t).attr(nd)}function xr(t){return pa.of(t).map(mr).map(gr).map(yr)}function _r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function Er(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}function Or(t){var e=t[Ld.$$iterator];if(!e&&"string"==typeof t)return new Hd(t);if(!e&&void 0!==t.length)return new zd(t);if(!e)throw new TypeError("object is not iterable");
return t[Ld.$$iterator]()}function Sr(t){var e=+t.length;return isNaN(e)?0:0!==e&&Tr(e)?(e=jr(e)*Math.floor(Math.abs(e)),e<=0?0:e>Bd?Bd:e):e}function Tr(t){return"number"==typeof t&&$d.root.isFinite(t)}function jr(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}function Ar(t,e){return void 0===e&&(e=0),this.lift(new cb(t,e))}function Cr(t){var e=new Rb(t),n=this.lift(e);return e.caught=n}function kr(t,e){return this.lift(new zb.MergeMapOperator(t,e,1))}function Nr(t,e,n){var r=dr(n),o=function(n){return t(e,
n)};return y(r)?pa.of(n).map(o).map(function(){return Ws}):pa.of(n).map(o).flatMap(function(){return pa.from(r).concatMap(br)})}function Pr(t){return function(e){return U(Mu,e),pa.of(t)}}function Dr(t,e){var n=e[Ph],r=at(e[Xh]),o=ht(n),i=function(e){return Nr(t,r,e)};return xr(o).flatMap(i).map(function(){return e})["catch"](Pr(e))}function Ir(t,e){return t.html(e.html())}function Mr(t){return U(Lu,t),Dr(Ir,t)}function Fr(t){var e=at(t[Xh]),n=t[Ph];return U(Lu,t),e.text(n),pa.of(t)}function qr(t,
e){return t.append(e.html())}function $r(t){return U(Lu,t),Dr(qr,t)}function Rr(t,e){return t.prepend(e.html())}function Lr(t){return U(Lu,t),Dr(Rr,t)}function Vr(t,e){var n=t.parent();return t.before(e.html()).empty().remove(),n}function Ur(t){return U(Lu,t),Dr(Vr,t)}function Hr(t,e){return t.before(e.html()),t.prev()}function zr(t){return U(Lu,t),Dr(Hr,t)}function Br(t,e){return t.after(e.html()),t.next()}function Wr(t){return U(Lu,t),Dr(Br,t)}function Zr(t,e){return t.before(e.html()).parent()}
function Jr(t){return U(Lu,t),Dr(Zr,t)}function Yr(t,e){return nd===e&&t.is(rc)}function Xr(t,e){t.removeAttr(nd),t.attr(nd,wr(e))}function Gr(t){var e=t[Ah],n=t[Ch],r=at(t[Xh]);return U(Lu,t),Yr(r,e)?Xr(r,n):r.attr(e,n),pa.of(t)}function Kr(t,e,n){t.forEach(function(t){var r=X(e);tt(function(r){return t.style.setProperty(r,e[r],n)},r)})}function Qr(t){var e=at(t[Xh]),n=t[Yh];return U(Lu,t),f(n)?e.css(t[Kh]):Kr(e,t[Kh],n),pa.of(t)}function to(t){var e=at(t[Xh]);return U(Lu,t),e.empty().remove(),pa.of(t)}
function eo(t){var e=t[Hh],n=t[zh],r=at(t[Xh]),o=r.children(),i=o.eq(e),u=o.eq(n);return ft(i)&&ft(u)?(U(Lu,t),e<n?u.after(i):u.before(i),pa.of(t)):(U(Yu,t),pa.of(t))}function no(t){if(f(t))return!0;var e=S(t);return a(e.anchor)&&e.host===Vi.hostname&&e.port===Vi.port&&"http"===e.protocol.slice(0,4)}function ro(t){var e=Ou(t),n=e.attr(id);return!(!e.is(cc)||!a(n)||n.toLowerCase()!==Xb)||(!(!e.is(sc)||!a(n)||n.toLowerCase()!==Xb)||!(!e.is(sc)||!f(n)))}function oo(t){var e=t.currentTarget;return function(){Ou(e).parent().trigger(Yb),
Vi.href=e.href}}function io(t){var e=t.currentTarget;return function(){Ou(e).parent().trigger(Xb),e.submit()}}function uo(t){var e=t.currentTarget;return function(){Ou(e).parent().trigger(Yb),e.submit()}}function so(t){return t.target===Gb}function co(t){var e=Ou(t.currentTarget);return t.type===Yb&&e.is(ic)}function ao(t){var e=Ou(t.currentTarget);return t.type===Xb&&Ou(e).is(uc)}function fo(t){var e=t.target,n=t.currentTarget;return t.type===Yb&&e!==n&&ro(e)}function lo(t){return co(t)&&po(t)?oo(t):
fo(t)&&!so(t.currentTarget)?uo(t):ao(t)&&!so(t.currentTarget)?io(t):s}function po(t){var e=t.currentTarget,n=e.href;return!f(n)&&(t.type===Yb&&!no(n)&&!so(e)&&!t.hasMetaKey)}function ho(t){return t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.which>1}function bo(t){var e=et({},t);return e.params=zn(t),e.timeout=Bn(t),e.success=d(t.success)?t.success:function(){},e.error=d(t.error)?t.error:function(t,e){},e}function vo(t){return a(t.type)&&(a(t.selector)||m(t.selector))}function mo(t){return function(){U(Gu,
t),t.success()}}function yo(t){return function(e){var n=e.status||Ka,r=g(e);V(Ku,t,e),t.error(n,r)}}function go(t,e){mo(t)(),lo(e)()}function wo(t,e,n){yo(t)(n),lo(e)()}function xo(t,e,n){var r={};r.mbox=t.mbox,r.params=t.params,r.timeout=t.timeout,Jn(r).subscribe(e,n)}function _o(t,e){var n=ho(e),r=e.target,o=e.currentTarget,i=e.type,u={target:r,currentTarget:o,type:i,hasMetaKey:n};return xo(t,function(){return go(t,u)},function(e){return wo(t,u,e)}),!(co(u)&&po(u)||fo(u)&&!so(o)||ao(u)&&!so(o)||
t.preventDefault)}function Eo(t){var e=t.selector,n=t.type;tt(function(e){Ou(e).on(n,function(e){return _o(t,e)})},at(e))}function Oo(t){var e=J(t),n=e.error;return t=bo(t),e.valid?$()?vo(t)?void Eo(t):void xo(t,mo(t),yo(t)):(i(t.error(Xa,Su)),void V(Su)):(i(t.error(Ya,n)),void V(Kb,n))}function So(t,e){var n={};return n[t]=e,n}function To(t,e,n){var r={};return r.mbox=t+Ns,r.type=Yb,r.selector=e,r.params=n,r}function jo(t,e,n){U(Lu,t);var r=t[Nh];return Oo(To(e,t[Xh],So(n,r))),pa.of(t)}function Ao(t,
e){return jo(e,t,Pa)}function Co(t,e){return jo(e,t,Na)}function ko(t){var e=t[Ph];if(f(e))return t;if(!at(t[Xh]).is(tc))return t;var n=nt({},t,[jh,Ph]);return n[jh]=gh,n[Ph]=Zn(e),n}function No(t,e){var n=ko(e);switch(n[jh]){case fh:return Mr(n);case lh:return Fr(n);case gh:return $r(n);case Sh:return Lr(n);case Th:return Ur(n);case Eh:return zr(n);case Oh:return Wr(n);case yh:return Jr(n);case ph:return Gr(n);case hh:return Qr(n);case mh:return to(n);case dh:return eo(n);case xh:return Ao(t,n);
case _h:return Co(t,n);default:return pa.of(n)}}function Po(t){var e=t[Bh];return U(Lu,t),Vi.replace(e),pa.of(t)}function Do(t){return!yv.isArray(t)&&t-parseFloat(t)+1>=0}function Io(t){return void 0===t&&(t=-1),0===t?new qv.EmptyObservable:t<0?this.lift(new Rv(-1,this)):this.lift(new Rv(t-1,this))}function Mo(t){return this.lift(new Jv(t))}function Fo(t){return this.lift(new nm(t))}function qo(t){return a(t)?t:m(t)?t:tc}function $o(t,e){p(e[Xh])&&(e[Xh]=t)}function Ro(t,e){tt(function(e){return $o(t,
e)},e)}function Lo(t){ar(K(a,G(function(t){return t[Gh]},t)))}function Vo(t){var e=t[Xh],n=t[Gh];(a(e)||m(e))&&lr(e,hm(t)),a(n)&&fr(n)}function Uo(t){tt(Vo,t)}function Ho(t,e){var n=""+cf+e,r=""+af+e,o=ff+":rendering:"+e+":mbox:"+t;Pt(r),Dt(o,n,r)}function zo(t,e,n){var r=function(t){return t[Xh]},o=function(t){return a(t)||m(t)},i=Iu,u=K(o,G(r,n));Uo(n),V(Iu,n),tr({mbox:t,message:i,selectors:u}),Ho(t,e)}function Bo(t,e,n){var r=K(lm,n);if(!y(r))return void zo(t,e,r);U($u),Qn({mbox:t}),Ho(t,e)}function Wo(t,
e){No(t,e).subscribe(function(){U(Ru,e),Vo(e)},function(t){U(Mu,t),Vo(e)})}function Zo(t,e){tt(function(e){ft(e[Xh])&&(Wo(t,e),e.found=!0)},e)}function Jo(t,e){var n=pa.timer(uu),r=++fm;Pt(""+cf+r),pa.of(e,mv).repeat().takeUntil(n).takeWhile(function(t){return ot(lm,t)}).map(function(t){return K(lm,t)}).subscribe(function(e){Zo(t,e)},function(){Bo(t,r,e)},function(){Bo(t,r,e)})}function Yo(t){t===Yi&&sr()}function Xo(t,e){lr(t),Yo(e)}function Go(t){var e=Z(t),n=e.error;if(!e.valid)return V(am,n),
void sr();var r=f(t.mbox)?Yi:t.mbox,o=qo(t.selector),i=B(r),u=i.error;if(!i.valid)return V(am,u),void Xo(o,r);if(!$())return V(Su),void Xo(o,r);var s=t.offer;if(y(s))return U(am,rs),void Xo(o,r);var c=rt(K(pm,s));if(!b(c))return U(am,os),void Po(c);Ro(o,s),Lo(s),Yo(r),Jo(r,s)}function Ko(){ym={logger:{log:U,error:V},settings:{clientCode:zi,serverDomain:Wi,timeout:Ji,globalMboxAutoCreate:Xi,globalMboxName:Yi}}}function Qo(t){if(!v(t))throw new Error("Please provide options");}function ti(t){if(f(t))throw new Error("Please provide extension name");
var e=t.split(".");tt(function(t){if(!mm.test(t))throw new Error("Name space should contain only letters");},e)}function ei(t,e){if(!h(t))throw new Error("Please provide an array of dependencies");if(0===t.length)throw new Error("Please provide an array of dependencies");tt(function(t){if(p(e[t]))throw new Error(t+" module does not exist");},t)}function ni(t){if(!d(t))throw new Error("Please provide extension registration function");}function ri(t,e,n){for(var r=e.split("."),o=r.length,i=0;i<o-1;i++){var u=
r[i];t[u]=t[u]||{},t=t[u]}t[r[o-1]]=n}function oi(t){Ko();var e=qi[dm][bm];Qo(t);var n=t.name;ti(t.name);var r=t.modules;ei(r,ym);var o=t.register;ni(o),e[vm]=e[vm]||{};var i=[];tt(function(t){return i.push(ym[t])},r),ri(e[vm],n,o.apply(void 0,i))}function ii(t){return!y(gm[t])}function ui(t,e){ii(t)?gm[t].push(e):gm[t]=[e]}function si(t){var e=gm[t];return y(e)?[]:e}function ci(t,e,n,r){var o={};return o.mbox=t,o.params=e,o.success=n,o.error=r,o}function ai(t,e,n){var r={};return r.mbox=t,r.selector=
e,r.offer=n,r}function fi(t,e,n,r){var o=ai(t,e,n);U(ts,t),Go(o),r()}function li(t,e,n,r,o){V(es,t,n,r),lr(e),o()}function pi(t,e){Ou(t).attr(ks,e).addClass(""+Ps+e)}function hi(t,e,n,r,o){or(ci(t,e,function(e){return fi(t,n,e,r)},function(e,r){return li(t,n,e,r,o)}))}function di(){return sm.find(function(t){return"interactive"===t.readyState})}function bi(){try{throw new Error;}catch(t){return t.stack}}function vi(t,e){for(var n,r=/[^@\s\(]+$/gm,o=/(:\d+){1,2}\)?$/;n=r.exec(t);){n=n.pop();var i=
n.search(o);if(!(i<0)){var u=e(n.slice(0,i));if(u)return u}}}function mi(t){if(!(t in cm))return yi(t)?sm.last():sm.find(function(e){return e.src===t||e.getAttribute("src")===t})}function yi(t){return"loading"===document.readyState&&location.href.replace(/#.*/,"")===t}function gi(){"currentScript"in $i||(sm=$i.getElementsByTagName("script"),sm.find=function(t){for(var e=0;e<this.length;e++)if(t(this[e]))return this[e]},sm.last=function(){return this[this.length-1]},cm=Object.create(null),$i.addEventListener("load",
function(t){var e=t.target;if("script"===e.nodeName.toLowerCase()){var n=e.src;n&&(cm[n]=null)}},!0))}function wi(){return"currentScript"in $i?$i.currentScript:di()||vi(bi(),mi)||null}function xi(t){var e=wi();if(!m(e))return V(wm,us),null;var n=Ou(e);if(n.parent().is(tc))return U(wm,ss,t),Ou(tc);var r=n.prev();return r.is(oc)&&r.hasClass(Ed)?r:(U(wm,Qu,is,t),Ou(tc))}function _i(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!$()&&!L())return void V(Su);var r=B(t),o=r.error;if(!r.valid)return void V(wm,
o);var i=xi(t);if(!b(i)){var u=i.get(0);pi(u,t);var c=Ct(e);ui(t,{mbox:t,params:c,element:u}),U(wm,t,c,u),$()&&hi(t,c,u,s,s)}}function Ei(t,e){var n=Ou("#"+t);return ft(n)?n:(U(xm,Qu,is,e),Ou(tc))}function Oi(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!$()&&!L())return void V(Su);if(f(t))return void V(xm,ns);var o=B(e),i=o.error;if(!o.valid)return void V(xm,i);var u=Ei(t,e).get(0);pi(u,e);var s=Ct(n);U(xm,e,s,u),ui(e,{mbox:e,params:s,element:u})}function Si(t){for(var e=[],
n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!$())return void V(Su);var r=B(t),i=r.error;if(!r.valid)return void V(_m,i);var u=Ct(e);u[qa]=o();var c=function(t){return hi(t.mbox,et(t.params,u),t.element,s,s)},a=si(t);U(_m,a),tt(c,a)}function Ti(){qi[Sm]=qi[Sm]||{},qi[Sm].querySelectorAll=at}function ji(){$i.addEventListener(Yb,function(t){d(qi[Sm][Tm])&&qi[Sm][Tm](t)},!0)}function Ai(){var t={};return t.type=eh,t.url=xu,t.dataType=ma,t}function Ci(){if(Ti(),L()){var t=Ai(),e=function(t){return ji()},
n=function(t){return V(Em)};U(Om),St(t).subscribe(e,n)}}function ki(){if(!$())return void V(Su);if(!Xi)return void U(jm,Am);if(f(Yi))return void U(jm,Cm);var t=Yi,e={},n=Ou(tc).get(0),r=function(){return sr()};U(ts,Yi),cr(),hi(t,e,n,s,r)}function Ni(){R()&&U(km,Ui)}function Pi(t,e){t.enabled&&tt(function(n){void 0!==e[n]&&(t[n]=e[n])},Nm)}function Di(){var t=document,e=t.compatMode,n=t.documentMode,r=e&&"CSS1Compat"===e,o=!n||n>=9;return r&&o}function Ii(t){t.cookieDomain=M(Vi.hostname),t.enabled=
Di(),Pi(t,qi.targetGlobalSettings||{})}function Mi(){var t=function(){},e=window;e.adobe=e.adobe||{},e.adobe.target={VERSION:"",event:{},___bootstrap:t,getOffer:t,applyOffer:t,trackEvent:t,registerExtension:t},e.mboxCreate=t,e.mboxDefine=t,e.mboxUpdate=t}function Fi(t,r,o){return mu(),t.adobe&&t.adobe.target&&void 0!==t.adobe.target.getOffer?void V(Tu):(e(t,r),Ii(o),n(o),t.adobe.target.VERSION=Qi,t.adobe.target.event={REQUEST_SUCCEEDED:yd,REQUEST_FAILED:gd,CONTENT_RENDERING_SUCCEEDED:wd,CONTENT_RENDERING_FAILED:xd},
o.enabled?(gu(),gi(),pr(),Ci(),ki(),Ni(),t.adobe.target.getOffer=or,t.adobe.target.applyOffer=Go,t.adobe.target.trackEvent=Oo,t.adobe.target.registerExtension=oi,t.mboxCreate=_i,t.mboxDefine=Oi,void(t.mboxUpdate=Si)):(Mi(),void V(Su)))}if(!Di()||window.targetGlobalSettings&&!1===window.targetGlobalSettings.enabled)return Mi(),void("console"in window&&"warn"in window.console&&window.console.warn("AT: Adobe Target content delivery is disabled. Update your DOCTYPE to support Standards mode."));var qi,
$i,Ri,Li,Vi,Ui,Hi,zi,Bi,Wi,Zi,Ji,Yi,Xi,Gi,Ki,Qi,tu,eu,nu,ru,ou,iu,uu,su,cu,au,fu,lu,pu,hu,du,bu,vu,mu=function(){(function(t){"console"in this||(this.console=this.console||{}),"log"in this.console||(this.console.log=function(){}),"warn"in this.console||(this.console.warn=function(){}),Function.prototype.bind&&("object"==typeof this.console.log&&(this.console.log=Function.prototype.call.bind(this.console.log,this.console)),"object"==typeof this.console.warn&&(this.console.warn=Function.prototype.call.bind(this.console.warn,
this.console)))}).call("object"==typeof window&&window||"object"==typeof self&&self||{})},yu=function(){(function(t){(function(t){if(!("Event"in t))return!1;if("function"==typeof t.Event)return!0;try{return new Event("click"),!0}catch(t){return!1}})(this)||function(){function e(t,e){for(var n=-1,r=t.length;++n<r;)if(n in t&&t[n]===e)return n;return-1}var n={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,
storagecommit:1,textinput:1},r=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(e,n){if(!e)throw new Error("Not enough arguments");if("createEvent"in document){var r=document.createEvent("Event"),o=!(!n||n.bubbles===t)&&n.bubbles,i=!(!n||n.cancelable===t)&&n.cancelable;return r.initEvent(e,o,i),r}var r=document.createEventObject();return r.type=e,r.bubbles=!(!n||n.bubbles===t)&&n.bubbles,r.cancelable=!(!n||n.cancelable===t)&&n.cancelable,r},r&&Object.defineProperty(window.Event,
"prototype",{configurable:!1,enumerable:!1,writable:!0,value:r}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var t=this,r=arguments[0],o=arguments[1];if(t===window&&r in n)throw new Error("In IE8 the event: "+r+" is not available on the window object.");t._events||(t._events={}),t._events[r]||(t._events[r]=function(n){var r,o=t._events[n.type].list,i=o.slice(),u=-1,s=i.length;
for(n.preventDefault=function(){!1!==n.cancelable&&(n.returnValue=!1)},n.stopPropagation=function(){n.cancelBubble=!0},n.stopImmediatePropagation=function(){n.cancelBubble=!0,n.cancelImmediate=!0},n.currentTarget=t,n.relatedTarget=n.fromElement||null,n.target=n.target||n.srcElement||t,n.timeStamp=(new Date).getTime(),n.clientX&&(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop);++u<s&&!n.cancelImmediate;)u in i&&(r=i[u],-1!==e(o,r)&&"function"==
typeof r&&r.call(t,n))},t._events[r].list=[],t.attachEvent&&t.attachEvent("on"+r,t._events[r])),t._events[r].list.push(o)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var t,n=this,r=arguments[0],o=arguments[1];n._events&&n._events[r]&&n._events[r].list&&-1!==(t=e(n._events[r].list,o))&&(n._events[r].list.splice(t,1),n._events[r].list.length||(n.detachEvent&&n.detachEvent("on"+r,n._events[r]),
delete n._events[r]))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw new Error("Not enough arguments");if(!t||"string"!=typeof t.type)throw new Error("DOM Events Exception 0");var e=this,n=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var r=function(t){t.cancelBubble=!0,(e||window).detachEvent("on"+n,r)};this.attachEvent("on"+n,r)}this.fireEvent("on"+n,t)}catch(r){t.target=e;do t.currentTarget=
e,"_events"in e&&"function"==typeof e._events[n]&&e._events[n].call(e,t),"function"==typeof e["on"+n]&&e["on"+n].call(e,t),e=9===e.nodeType?e.parentWindow:e.parentNode;while(e&&!t.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))}(),"CustomEvent"in this&&("function"==typeof this.CustomEvent||this.CustomEvent.toString().indexOf("CustomEventConstructor")>-1)||(this.CustomEvent=
function(t,e){if(!t)throw Error('TypeError: Failed to construct "CustomEvent": An event name must be provided.');var n;if(e=e||{bubbles:!1,cancelable:!1,detail:null},"createEvent"in document)try{n=document.createEvent("CustomEvent"),n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail)}catch(r){n=document.createEvent("Event"),n.initEvent(t,e.bubbles,e.cancelable),n.detail=e.detail}else n=new Event(t,e),n.detail=e&&e.detail||null;return n},CustomEvent.prototype=Event.prototype)}).call("object"==typeof window&&
window||"object"==typeof self&&self||{})},gu=function(){yu()},wu={},xu="//cdn.tt.omtrdc.net/cdn/target-vec.js",_u="",Eu=function(t){var e=function(){function e(t){return null==t?String(t):Y[X.call(t)]||"object"}function n(t){return"function"==e(t)}function r(t){return null!=t&&t==t.window}function o(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function i(t){return"object"==e(t)}function u(t){return i(t)&&!r(t)&&Object.getPrototypeOf(t)==Object.prototype}function s(t){var e=!!t&&"length"in t&&t.length,
n=S.type(t);return"function"!=n&&!r(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function c(t){return N.call(t,function(t){return null!=t})}function a(t){return t.length>0?S.fn.concat.apply([],t):t}function f(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in M?M[t]:M[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function p(t,e){return"number"!=typeof e||F[f(t)]?e:e+"px"}function h(t){var e,
n;return I[t]||(e=D.createElement(t),D.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),I[t]=n),I[t]}function d(t){return"children"in t?P.call(t.children):S.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function b(t,e){var n,r=t?t.length:0;for(n=0;n<r;n++)this[n]=t[n];this.length=r,this.selector=e||""}function v(t,e,n){for(O in e)n&&(u(e[O])||tt(e[O]))?(u(e[O])&&!u(t[O])&&(t[O]={}),tt(e[O])&&!tt(t[O])&&(t[O]=[]),
v(t[O],e[O],n)):e[O]!==E&&(t[O]=e[O])}function m(t,e){return null==e?S(t):S(t).filter(e)}function y(t,e,r,o){return n(e)?e.call(t,r,o):e}function g(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function w(t,e){var n=t.className||"",r=n&&n.baseVal!==E;if(e===E)return r?n.baseVal:n;r?n.baseVal=e:t.className=e}function x(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?S.parseJSON(t):t):t}catch(e){return t}}function _(t,e){e(t);for(var n=0,r=t.childNodes.length;n<
r;n++)_(t.childNodes[n],e)}var E,O,S,T,j,A,C=[],k=C.concat,N=C.filter,P=C.slice,D=t.document,I={},M={},F={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},q=/^\s*<(\w+|!)[^>]*>/,$=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,L=/^(?:body|html)$/i,V=/([A-Z])/g,U=["val","css","html","text","data","width","height","offset"],H=["after","prepend","before","append"],z=D.createElement("table"),B=D.createElement("tr"),
W={tr:D.createElement("tbody"),tbody:z,thead:z,tfoot:z,td:B,th:B,"*":D.createElement("div")},Z=/complete|loaded|interactive/,J=/^[\w-]*$/,Y={},X=Y.toString,G={},K=D.createElement("div"),Q={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},tt=Array.isArray||function(t){return t instanceof
Array};return G.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,o=t.parentNode,i=!o;return i&&(o=K).appendChild(t),r=~G.qsa(o,e).indexOf(t),i&&K.removeChild(t),r},j=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},A=function(t){return N.call(t,function(e,n){return t.indexOf(e)==n})},G.fragment=function(t,e,n){var r,o,i;return $.test(t)&&
(r=S(D.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(R,"\x3c$1\x3e\x3c/$2\x3e")),e===E&&(e=q.test(t)&&RegExp.$1),e in W||(e="*"),i=W[e],i.innerHTML=""+t,r=S.each(P.call(i.childNodes),function(){i.removeChild(this)})),u(n)&&(o=S(r),S.each(n,function(t,e){U.indexOf(t)>-1?o[t](e):o.attr(t,e)})),r},G.Z=function(t,e){return new b(t,e)},G.isZ=function(t){return t instanceof G.Z},G.init=function(t,e){var r;if(!t)return G.Z();if("string"==typeof t)if(t=t.trim(),"\x3c"==t[0]&&q.test(t))r=G.fragment(t,
RegExp.$1,e),t=null;else{if(e!==E)return S(e).find(t);r=G.qsa(D,t)}else{if(n(t))return S(D).ready(t);if(G.isZ(t))return t;if(tt(t))r=c(t);else if(i(t))r=[t],t=null;else if(q.test(t))r=G.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==E)return S(e).find(t);r=G.qsa(D,t)}}return G.Z(r,t)},S=function(t,e){return G.init(t,e)},S.extend=function(t){var e,n=P.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){v(t,n,e)}),t},G.qsa=function(t,e){var n,r="#"==e[0],o=!r&&"."==
e[0],i=r||o?e.slice(1):e,u=J.test(i);return t.getElementById&&u&&r?(n=t.getElementById(i))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:P.call(u&&!r&&t.getElementsByClassName?o?t.getElementsByClassName(i):t.getElementsByTagName(e):t.querySelectorAll(e))},S.contains=D.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},S.type=e,S.isFunction=n,S.isWindow=r,S.isArray=tt,S.isPlainObject=u,S.isEmptyObject=
function(t){var e;for(e in t)return!1;return!0},S.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},S.inArray=function(t,e,n){return C.indexOf.call(e,t,n)},S.camelCase=j,S.trim=function(t){return null==t?"":String.prototype.trim.call(t)},S.uuid=0,S.support={},S.expr={},S.noop=function(){},S.map=function(t,e){var n,r,o,i=[];if(s(t))for(r=0;r<t.length;r++)null!=(n=e(t[r],r))&&i.push(n);else for(o in t)null!=(n=e(t[o],
o))&&i.push(n);return a(i)},S.each=function(t,e){var n,r;if(s(t))for(n=0;n<t.length;n++){if(!1===e.call(t[n],n,t[n]))return t}else for(r in t)if(!1===e.call(t[r],r,t[r]))return t;return t},S.grep=function(t,e){return N.call(t,e)},t.JSON&&(S.parseJSON=JSON.parse),S.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Y["[object "+e+"]"]=e.toLowerCase()}),S.fn={constructor:G.Z,length:0,forEach:C.forEach,reduce:C.reduce,push:C.push,sort:C.sort,splice:C.splice,
indexOf:C.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=G.isZ(e)?e.toArray():e;return k.apply(G.isZ(this)?this.toArray():this,n)},map:function(t){return S(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return S(P.apply(this,arguments))},ready:function(t){return Z.test(D.readyState)&&D.body?t(S):D.addEventListener("DOMContentLoaded",function(){t(S)},!1),this},get:function(t){return t===E?P.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},
size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){for(var e,n=this.length,r=0;r<n&&(e=this[r],!1!==t.call(e,r,e));)r++;return this},filter:function(t){return n(t)?this.not(this.not(t)):S(N.call(this,function(e){return G.matches(e,t)}))},add:function(t,e){return S(A(this.concat(S(t,e))))},is:function(t){return this.length>0&&G.matches(this[0],t)},not:function(t){var e=[];if(n(t)&&t.call!==E)this.each(function(n){t.call(this,
n)||e.push(this)});else{var r="string"==typeof t?this.filter(t):s(t)&&n(t.item)?P.call(t):S(t);this.forEach(function(t){r.indexOf(t)<0&&e.push(t)})}return S(e)},has:function(t){return this.filter(function(){return i(t)?S.contains(this,t):S(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!i(t)?t:S(t)},last:function(){var t=this[this.length-1];return t&&!i(t)?t:S(t)},find:function(t){var e=this;return t?"object"==typeof t?
S(t).filter(function(){var t=this;return C.some.call(e,function(e){return S.contains(e,t)})}):1==this.length?S(G.qsa(this[0],t)):this.map(function(){return G.qsa(this,t)}):S()},closest:function(t,e){var n=[],r="object"==typeof t&&S(t);return this.each(function(i,u){for(;u&&!(r?r.indexOf(u)>=0:G.matches(u,t));)u=u!==e&&!o(u)&&u.parentNode;u&&n.indexOf(u)<0&&n.push(u)}),S(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=S.map(n,function(t){if((t=t.parentNode)&&!o(t)&&e.indexOf(t)<0)return e.push(t),
t});return m(e,t)},parent:function(t){return m(A(this.pluck("parentNode")),t)},children:function(t){return m(this.map(function(){return d(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||P.call(this.childNodes)})},siblings:function(t){return m(this.map(function(t,e){return N.call(d(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return S.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==
this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=h(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=n(t);if(this[0]&&!e)var r=S(t).get(0),o=r.parentNode||this.length>1;return this.each(function(n){S(this).wrapAll(e?t.call(this,n):o?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){S(this[0]).before(t=S(t));for(var e;(e=t.children()).length;)t=e.first();S(t).append(this)}return this},
wrapInner:function(t){var e=n(t);return this.each(function(n){var r=S(this),o=r.contents(),i=e?t.call(this,n):t;o.length?o.wrapAll(i):r.append(i)})},unwrap:function(){return this.parent().each(function(){S(this).replaceWith(S(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=S(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return S(this.pluck("previousElementSibling")).filter(t||
"*")},next:function(t){return S(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;S(this).empty().append(y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===
this.nodeType)if(i(t))for(O in t)g(this,O,t[O]);else g(this,t,y(this,e,n,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(n=this[0].getAttribute(t))?n:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){g(this,t)},this)})},prop:function(t,e){return t=Q[t]||t,1 in arguments?this.each(function(n){this[t]=y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=Q[t]||t,this.each(function(){delete this[t]})},data:function(t,
e){var n="data-"+t.replace(V,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,e):this.attr(n);return null!==r?x(r):E},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=y(this,t,e,this.value)})):this[0]&&(this[0].multiple?S(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=S(this),r=y(this,e,t,n.offset()),o=n.offsetParent().offset(),i={top:r.top-o.top,left:r.left-
o.left};"static"==n.css("position")&&(i.position="relative"),n.css(i)});if(!this.length)return null;if(D.documentElement!==this[0]&&!S.contains(D.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,n){if(arguments.length<2){var r=this[0];if("string"==typeof t){if(!r)return;return r.style[j(t)]||getComputedStyle(r,"").getPropertyValue(t)}if(tt(t)){if(!r)return;
var o={},i=getComputedStyle(r,"");return S.each(t,function(t,e){o[e]=r.style[j(e)]||i.getPropertyValue(e)}),o}}var u="";if("string"==e(t))n||0===n?u=f(t)+":"+p(t,n):this.each(function(){this.style.removeProperty(f(t))});else for(O in t)t[O]||0===t[O]?u+=f(O)+":"+p(O,t[O])+";":this.each(function(){this.style.removeProperty(f(O))});return this.each(function(){this.style.cssText+=";"+u})},index:function(t){return t?this.indexOf(S(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&
C.some.call(this,function(t){return this.test(w(t))},l(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){T=[];var n=w(this);y(this,t,e,n).split(/\s+/g).forEach(function(t){S(this).hasClass(t)||T.push(t)},this),T.length&&w(this,n+(n?" ":"")+T.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return w(this,"");T=w(this),y(this,t,e,T).split(/\s+/g).forEach(function(t){T=T.replace(l(t)," ")}),w(this,T.trim())}})},toggleClass:function(t,
e){return t?this.each(function(n){var r=S(this);y(this,t,n,w(this)).split(/\s+/g).forEach(function(t){(e===E?!r.hasClass(t):e)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?
function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),r=L.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(S(t).css("margin-top"))||0,n.left-=parseFloat(S(t).css("margin-left"))||0,r.top+=parseFloat(S(e[0]).css("border-top-width"))||0,r.left+=parseFloat(S(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=
this.offsetParent||D.body;t&&!L.test(t.nodeName)&&"static"==S(t).css("position");)t=t.offsetParent;return t})}},S.fn.detach=S.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});S.fn[t]=function(n){var i,u=this[0];return n===E?r(u)?u["inner"+e]:o(u)?u.documentElement["scroll"+e]:(i=this.offset())&&i[t]:this.each(function(e){u=S(this),u.css(t,y(this,n,e,u[t]()))})}}),H.forEach(function(n,r){var o=r%2;S.fn[n]=function(){var n,i,u=S.map(arguments,
function(t){var r=[];return n=e(t),"array"==n?(t.forEach(function(t){return t.nodeType!==E?r.push(t):S.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(G.fragment(t)))}),r):"object"==n||null==t?t:G.fragment(t)}),s=this.length>1;return u.length<1?this:this.each(function(e,n){i=o?n:n.parentNode,n=0==r?n.nextSibling:1==r?n.firstChild:2==r?n:null;var c=S.contains(D.documentElement,i),a=/^(text|application)\/(javascript|ecmascript)$/;u.forEach(function(e){if(s)e=e.cloneNode(!0);else if(!i)return S(e).remove();
i.insertBefore(e,n),c&&_(e,function(e){if(null!=e.nodeName&&"SCRIPT"===e.nodeName.toUpperCase()&&(!e.type||a.test(e.type.toLowerCase()))&&!e.src){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},S.fn[o?n+"To":"insert"+(r?"Before":"After")]=function(t){return S(t)[n](this),this}}),G.Z.prototype=b.prototype=S.fn,G.uniq=A,G.deserializeValue=x,S.zepto=G,S}();return function(e){function n(t){return t._zid||(t._zid=h++)}function r(t,e,r,u){if(e=o(e),e.ns)var s=i(e.ns);
return(m[n(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!r||n(t.fn)===n(r))&&(!u||t.sel==u)})}function o(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function i(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function u(t,e){return t.del&&!g&&t.e in w||!!e}function s(t){return x[t]||g&&w[t]||t}function c(t,r,i,c,a,l,h){var d=n(t),b=m[d]||(m[d]=[]);r.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(i);
var r=o(n);r.fn=i,r.sel=a,r.e in x&&(i=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return r.fn.apply(this,arguments)}),r.del=l;var d=l||i;r.proxy=function(e){if(e=f(e),!e.isImmediatePropagationStopped()){e.data=c;var n=d.apply(t,e._args==p?[e]:[e].concat(e._args));return!1===n&&(e.preventDefault(),e.stopPropagation()),n}},r.i=b.length,b.push(r),"addEventListener"in t&&t.addEventListener(s(r.e),r.proxy,u(r,h))})}function a(t,e,o,i,c){var a=n(t);(e||"").split(/\s/).forEach(function(e){r(t,
e,o,i).forEach(function(e){delete m[a][e.i],"removeEventListener"in t&&t.removeEventListener(s(e.e),e.proxy,u(e,c))})})}function f(t,n){if(n||!t.isDefaultPrevented){n||(n=t),e.each(S,function(e,r){var o=n[e];t[e]=function(){return this[r]=_,o&&o.apply(n,arguments)},t[r]=E});try{t.timeStamp||(t.timeStamp=Date.now())}catch(t){}(n.defaultPrevented!==p?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=_)}return t}function l(t){var e,
n={originalEvent:t};for(e in t)O.test(e)||t[e]===p||(n[e]=t[e]);return f(n,t)}var p,h=1,d=Array.prototype.slice,b=e.isFunction,v=function(t){return"string"==typeof t},m={},y={},g="onfocusin"in t,w={focus:"focusin",blur:"focusout"},x={mouseenter:"mouseover",mouseleave:"mouseout"};y.click=y.mousedown=y.mouseup=y.mousemove="MouseEvents",e.event={add:c,remove:a},e.proxy=function(t,r){var o=2 in arguments&&d.call(arguments,2);if(b(t)){var i=function(){return t.apply(r,o?o.concat(d.call(arguments)):arguments)};
return i._zid=n(t),i}if(v(r))return o?(o.unshift(t[r],t),e.proxy.apply(null,o)):e.proxy(t[r],t);throw new TypeError("expected function");},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var _=function(){return!0},E=function(){return!1},O=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,S={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};
e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,r,o,i){var u,s,f=this;return t&&!v(t)?(e.each(t,function(t,e){f.on(t,n,r,e,i)}),f):(v(n)||b(o)||!1===o||(o=r,r=n,n=p),o!==p&&!1!==r||(o=r,r=p),!1===o&&(o=E),f.each(function(f,p){i&&(u=function(t){return a(p,
t.type,o),o.apply(this,arguments)}),n&&(s=function(t){var r,i=e(t.target).closest(n,p).get(0);if(i&&i!==p)return r=e.extend(l(t),{currentTarget:i,liveFired:p}),(u||o).apply(i,[r].concat(d.call(arguments,1)))}),c(p,t,o,r,n,s||u)}))},e.fn.off=function(t,n,r){var o=this;return t&&!v(t)?(e.each(t,function(t,e){o.off(t,n,e)}),o):(v(n)||b(r)||!1===r||(r=n,n=p),!1===r&&(r=E),o.each(function(){a(this,t,r,n)}))},e.fn.trigger=function(t,n){return t=v(t)||e.isPlainObject(t)?e.Event(t):f(t),t._args=n,this.each(function(){t.type in
w&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var o,i;return this.each(function(u,s){o=l(v(t)?e.Event(t):t),o._args=n,o.target=s,e.each(r(s,t.type||t),function(t,e){if(i=e.proxy(o),o.isImmediatePropagationStopped())return!1})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=
function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){v(t)||(e=t,t=e.type);var n=document.createEvent(y[t]||"Events"),r=!0;if(e)for(var o in e)"bubbles"==o?r=!!e[o]:n[o]=e[o];return n.initEvent(t,r,!0),f(n)}}(e),function(e){function n(t,n,r){var o=e.Event(n);return e(t).trigger(o,r),!o.isDefaultPrevented()}function r(t,e,r,o){if(t.global)return n(e||x,r,o)}function o(t){t.global&&0==e.active++&&r(t,null,"ajaxStart")}function i(t){t.global&&!--e.active&&r(t,null,
"ajaxStop")}function u(t,e){var n=e.context;if(!1===e.beforeSend.call(n,t,e)||!1===r(e,n,"ajaxBeforeSend",[t,e]))return!1;r(e,n,"ajaxSend",[t,e])}function s(t,e,n,o){var i=n.context;n.success.call(i,t,"success",e),o&&o.resolveWith(i,[t,"success",e]),r(n,i,"ajaxSuccess",[e,n,t]),a("success",e,n)}function c(t,e,n,o,i){var u=o.context;o.error.call(u,n,e,t),i&&i.rejectWith(u,[n,e,t]),r(o,u,"ajaxError",[n,o,t||e]),a(e,n,o)}function a(t,e,n){var o=n.context;n.complete.call(o,e,t),r(n,o,"ajaxComplete",[e,
n]),i(n)}function f(t,e,n){if(n.dataFilter==l)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function l(){}function p(t,n){if(!("type"in t))return e.ajax(t);var r,o=x.createElement("script"),i=function(t){e(o).triggerHandler("error",t||"abort")},a={abort:i};return n&&n.promise(a),e(o).on("load error",function(i,u){clearTimeout(r),e(o).off().remove(),"error"==i.type?c(null,u||"error",a,t,n):s(null,a,t,n)}),!1===u(a,t)?(i("abort"),a):(o.src=t.url,x.head.appendChild(o),t.timeout>0&&(r=setTimeout(function(){i("timeout")},
t.timeout)),a)}function h(t){return t&&(t=t.split(";",2)[0]),t&&(t==T?"html":t==S?"json":E.test(t)?"script":O.test(t)&&"xml")||"text"}function d(t,e){return""==e?t:(t+"\x26"+e).replace(/[&?]{1,2}/,"?")}function b(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=d(t.url,t.data),t.data=void 0)}function v(t,n,r,o){return e.isFunction(n)&&(o=r,r=n,n=void 0),e.isFunction(r)||(o=r,r=void 0),
{url:t,data:n,success:r,dataType:o}}function m(t,n,r,o){var i,u=e.isArray(n),s=e.isPlainObject(n);e.each(n,function(n,c){i=e.type(c),o&&(n=r?o:o+"["+(s||"object"==i||"array"==i?n:"")+"]"),!o&&u?t.add(c.name,c.value):"array"==i||!r&&"object"==i?m(t,c,r,n):t.add(n,c)})}var y,g,w=+new Date,x=t.document,_=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,E=/^(?:text|application)\/javascript/i,O=/^(?:text|application)\/xml/i,S="application/json",T="text/html",j=/^\s*$/,A=x.createElement("a");A.href=
t.location.href,e.active=0,e.ajaxJSONP=function(n,r){if(!("type"in n))return e.ajax(n);var o,i,a=n.jsonpCallback,f=(e.isFunction(a)?a():a)||"Zepto"+w++,l=x.createElement("script"),p=t[f],h=function(t){e(l).triggerHandler("error",t||"abort")},d={abort:h};return r&&r.promise(d),e(l).on("load error",function(u,a){clearTimeout(i),e(l).off().remove(),"error"!=u.type&&o?s(o[0],d,n,r):c(null,a||"error",d,n,r),t[f]=p,o&&e.isFunction(p)&&p(o[0]),p=o=void 0}),!1===u(d,n)?(h("abort"),d):(t[f]=function(){o=arguments},
l.src=n.url.replace(/\?(.+)=\?/,"?$1\x3d"+f),x.head.appendChild(l),n.timeout>0&&(i=setTimeout(function(){h("timeout")},n.timeout)),d)},e.ajaxSettings={type:"GET",beforeSend:l,success:l,error:l,complete:l,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:S,xml:"application/xml, text/xml",html:T,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:l},e.ajax=function(n){var r,
i,a=e.extend({},n||{}),v=e.Deferred&&e.Deferred();for(y in e.ajaxSettings)void 0===a[y]&&(a[y]=e.ajaxSettings[y]);o(a),a.crossDomain||(r=x.createElement("a"),r.href=a.url,r.href=r.href,a.crossDomain=A.protocol+"//"+A.host!=r.protocol+"//"+r.host),a.url||(a.url=t.location.toString()),(i=a.url.indexOf("#"))>-1&&(a.url=a.url.slice(0,i)),b(a);var m=a.dataType,w=/\?.+=\?/.test(a.url);if(w&&(m="jsonp"),!1!==a.cache&&(n&&!0===n.cache||"script"!=m&&"jsonp"!=m)||(a.url=d(a.url,"_\x3d"+Date.now())),"jsonp"==
m)return w||(a.url=d(a.url,a.jsonp?a.jsonp+"\x3d?":!1===a.jsonp?"":"callback\x3d?")),e.ajaxJSONP(a,v);if(a.crossDomain&&"script"==m)return p(a,v);var _,E=a.accepts[m],O={},S=function(t,e){O[t.toLowerCase()]=[t,e]},T=/^([\w-]+:)\/\//.test(a.url)?RegExp.$1:t.location.protocol,C=a.xhr(),k=C.setRequestHeader;if(v&&v.promise(C),a.crossDomain||S("X-Requested-With","XMLHttpRequest"),S("Accept",E||"*/*"),(E=a.mimeType||E)&&(E.indexOf(",")>-1&&(E=E.split(",",2)[0]),C.overrideMimeType&&C.overrideMimeType(E)),
(a.contentType||!1!==a.contentType&&a.data&&"GET"!=a.type.toUpperCase())&&S("Content-Type",a.contentType||"application/x-www-form-urlencoded"),a.headers)for(g in a.headers)S(g,a.headers[g]);if(C.setRequestHeader=S,C.onreadystatechange=function(){if(4==C.readyState){C.onreadystatechange=l,clearTimeout(_);var t,n=!1;if(C.status>=200&&C.status<300||304==C.status||0==C.status&&"file:"==T){if(m=m||h(a.mimeType||C.getResponseHeader("content-type")),"arraybuffer"==C.responseType||"blob"==C.responseType)t=
C.response;else{t=C.responseText;try{t=f(t,m,a),"script"==m?(0,eval)(t):"xml"==m?t=C.responseXML:"json"==m&&(t=j.test(t)?null:e.parseJSON(t))}catch(t){n=t}if(n)return c(n,"parsererror",C,a,v)}s(t,C,a,v)}else c(C.statusText||null,C.status?"error":"abort",C,a,v)}},!1===u(C,a))return C.abort(),c(null,"abort",C,a,v),C;var N=!("async"in a)||a.async;if(C.open(a.type,a.url,N,a.username,a.password),a.xhrFields)for(g in a.xhrFields)C[g]=a.xhrFields[g];for(g in O)k.apply(C,O[g]);return a.timeout>0&&(_=setTimeout(function(){C.onreadystatechange=
l,C.abort(),c(null,"timeout",C,a,v)},a.timeout)),C.send(a.data?a.data:null),C},e.get=function(){return e.ajax(v.apply(null,arguments))},e.post=function(){var t=v.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=v.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,r){if(!this.length)return this;var o,i=this,u=t.split(/\s/),s=v(t,n,r),c=s.success;return u.length>1&&(s.url=u[0],o=u[1]),s.success=function(t){i.html(o?e("\x3cdiv\x3e").html(t.replace(_,
"")).find(o):t),c&&c.apply(i,arguments)},e.ajax(s),this};var C=encodeURIComponent;e.param=function(t,n){var r=[];return r.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(C(t)+"\x3d"+C(n))},m(r,t,n),r.join("\x26").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],o=function(t){if(t.forEach)return t.forEach(o);r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,i){n=i.type,e=i.name,e&&"fieldset"!=i.nodeName.toLowerCase()&&
!i.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||i.checked)&&o(t(i).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"\x3d"+encodeURIComponent(e.value))}),t.join("\x26")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(n){var e=
getComputedStyle;t.getComputedStyle=function(t,n){try{return e(t,n)}catch(t){return null}}}}(),function(t){var e=t.zepto,n=e.qsa,r=/^\s*>/,o="Zepto"+ +new Date;e.qsa=function(e,i){var u,s,c=i;try{c?r.test(c)&&(s=t(e).addClass(o),c="."+o+" "+c):c="*",u=n(e,c)}catch(t){throw t;}finally{s&&s.removeClass(o)}return u}}(e),e}(window),Ou=Eu,Su='Adobe Target content delivery is disabled. Ensure that you can save cookies to your current domain, there is no "mboxDisable" cookie and there is no "mboxDisable" parameter in query string.',
Tu="Adobe Target has already been initialized.",ju="options argument is required",Au="mbox option is required",Cu="mbox option is too long",ku="success option is required",Nu="error option is required",Pu="Disabled due to optout",Du="offer option is required",Iu="Actions with missing selectors",Mu="Unexpected error",Fu="actions to be rendered",qu="request failed",$u="All actions rendered successfully",Ru="Action rendered successfully",Lu="Rendering action",Vu="Action has no content",Uu="Action has no attribute or value",
Hu="Action has no property or value",zu="Action has no height or width",Bu="Action has no left, top or position",Wu="Action has no from or to",Zu="Action has no url",Ju="Action has no click track ID",Yu="Rearrange elements are missing",Xu="Loading image",Gu="Track event request succeeded",Ku="Track event request failed",Qu="Mbox container not found",ts="Rendering mbox",es="Rendering mbox failed",ns="ID is missing",rs="No actions to be rendered",os="Redirect action",is="default to HEAD",us="document.currentScript is missing or not supported",
ss="executing from HTML HEAD",cs="Script load",as="unknown error",fs=function(t,e){e=e||{};for(var n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},
r=n.parser[e.strictMode?"strict":"loose"].exec(t),o={},i=14;i--;)o[n.key[i]]=r[i]||"";return o[n.q.name]={},o[n.key[12]].replace(n.q.parser,function(t,e,r){e&&(o[n.q.name][e]=r)}),o},ls=Object.getOwnPropertySymbols,ps=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,ds=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;
var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,o=w(t),i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var u in n)ps.call(n,u)&&(o[u]=n[u]);if(ls){r=ls(n);for(var s=0;s<r.length;s++)hs.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},bs=ds,vs=function(t){return t.split("?")[1]||""},ms=function(t,e){e=bs({arrayFormat:"none"},e);var n=x(e),r=
Object.create(null);return"string"!=typeof t?r:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("\x26").forEach(function(t){var e=t.replace(/\+/g," ").split("\x3d"),o=e.shift(),i=e.length>0?e.join("\x3d"):void 0;i=void 0===i?null:decodeURIComponent(i),n(decodeURIComponent(o),i,r)}),Object.keys(r).sort().reduce(function(t,e){var n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=_(n):t[e]=n,t},Object.create(null))):r},ys=document.createElement("a"),gs={},ws="undefined"!=typeof window?
window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},xs=ws&&ws.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_s=N,Es=P,Os=D,Ss=_s,Ts=Es,js=Os,As=250,Cs="data-at-src",ks="data-at-mbox-name",Ns="-clicked",Ps="mbox-name-",Ds="check",Is="mbox",Ms="PC",Fs="session",qs="mboxEdgeCluster",$s="mboxDebug",Rs="mboxDisable",Ls="mboxEdit",Vs="mboxDebug",Us="mboxDisable",
Hs="mboxEdit",zs="true",Bs="AT:",Ws="",Zs="\x3d",Js="?",Ys="\x26",Xs=".",Gs="#",Ks="|",Qs="_",tc="head",ec="script",nc="style",rc="img",oc="div",ic="a",uc="form",sc="button",cc="input",ac=":eq(",fc=")",lc=ac.length,pc=/((\.|#)\d{1})/g,hc=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t,e){if(e.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof ws&&ws.global===ws&&ws,!e.root)throw new Error("RxJS could not find any global context (window, self, global)");
}),dc=vt,bc={isFunction:dc},vc=Array.isArray||function(t){return t&&"number"==typeof t.length},mc={isArray:vc},yc=mt,gc={isObject:yc},wc={e:{}},xc={errorObject:wc},_c=xc,Ec=gt,Oc={tryCatch:Ec},Sc=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Tc=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+
e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Sc(e,t),e}(Error),jc=Tc,Ac={UnsubscriptionError:jc},Cc=mc,kc=gc,Nc=bc,Pc=Oc,Dc=xc,Ic=Ac,Mc=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,r=n._parent,o=n._parents,i=n._unsubscribe,u=n._subscriptions;
this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,c=o?o.length:0;r;)r.remove(this),r=++s<c&&o[s]||null;if(Nc.isFunction(i)){var a=Pc.tryCatch(i).call(this);a===Dc.errorObject&&(e=!0,t=t||(Dc.errorObject.e instanceof Ic.UnsubscriptionError?wt(Dc.errorObject.e.errors):[Dc.errorObject.e]))}if(Cc.isArray(u))for(s=-1,c=u.length;++s<c;){var f=u[s];if(kc.isObject(f)){var a=Pc.tryCatch(f.unsubscribe).call(f);if(a===Dc.errorObject){e=!0,t=t||[];var l=Dc.errorObject.e;
l instanceof Ic.UnsubscriptionError?t=t.concat(wt(l.errors)):t.push(l)}}}if(e)throw new Ic.UnsubscriptionError(t);}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case "function":n=new t(e);case "object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.");
}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),Fc=Mc,qc={Subscription:Fc},$c={closed:!0,next:function(t){},error:function(t){throw t;},complete:function(){}},
Rc={empty:$c},Lc=hc,Vc=Lc.root.Symbol,Uc="function"==typeof Vc&&"function"==typeof Vc["for"]?Vc["for"]("rxSubscriber"):"@@rxSubscriber",Hc={$$rxSubscriber:Uc},zc=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Bc=bc,Wc=qc,Zc=Rc,Jc=Hc,Yc=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=
!1,arguments.length){case 0:this.destination=Zc.empty;break;case 1:if(!n){this.destination=Zc.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new Gc(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new Gc(this,n,r,o)}}return zc(e,t),e.prototype[Jc.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||
this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},
e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(Wc.Subscription),Xc=Yc,Gc=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var i,u=this;Bc.isFunction(n)?i=n:n&&(u=n,i=n.next,r=n.error,o=n.complete,Bc.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this)),this._context=
u,this._next=i,this._error=r,this._complete=o}return zc(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),
t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t;}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=
e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Yc),Kc={Subscriber:Xc},Qc=Kc,ta=Hc,ea=Rc,na=xt,ra={toSubscriber:na},oa=hc,ia=_t,ua=_t(oa.root),sa={getSymbolObservable:ia,$$observable:ua},ca=hc,aa=ra,fa=sa,la=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=
function(t,e,n){var r=this.operator,o=aa.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(ca.root.Rx&&ca.root.Rx.config&&ca.root.Rx.config.Promise?e=ca.root.Rx.config.Promise:ca.root.Promise&&(e=
ca.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[fa.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}(),pa=la,ha={Observable:pa},da="json",ba="jsonp",va="html",ma="script",ya="text",ga="mboxMCAVID",wa="mboxAAMB",xa="mboxMCGLH",_a="mboxMCGVID",Ea="mboxMCSDID",
Oa="colorDepth",Sa="screenHeight",Ta="screenWidth",ja="browserHeight",Aa="browserTimeOffset",Ca="browserWidth",ka="mboxCallback",Na="mboxTarget",Pa="clickTrackId",Da="mboxXDomain",Ia="mboxCount",Ma="mboxHost",Fa="mbox",qa="mboxPage",$a="mboxSession",Ra="mboxReferrer",La="mboxTime",Va="mboxPC",Ua="mboxURL",Ha="mboxVersion",za="XMLHttpRequest",Ba="withCredentials",Wa="performance",Za="mark",Ja="measure",Ya="error",Xa="warning",Ga="disabled",Ka="unknown",Qa="mark_adobe_target_show_body",tf="mark_adobe_target_hide_body",
ef="mark_adobe_target_visitor_id_start_",nf="mark_adobe_target_visitor_id_end_",rf="measure_adobe_target_visitor_id",of="mark_adobe_target_request_start_",uf="mark_adobe_target_request_end_",sf="measure_adobe_target_request",cf="mark_adobe_target_render_start_",af="mark_adobe_target_render_end_",ff="measure_adobe_target_render",lf=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,
new n)},pf=ha,hf=function(t){function e(e){t.call(this),this.scheduler=e}return lf(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(pf.Observable),df=hf,bf={EmptyObservable:df},vf=It,mf={isPromise:vf},yf=hc,gf=Mt,wf=Mt(yf.root),xf={symbolIteratorPonyfill:gf,$$iterator:wf},_f=ws&&ws.__extends||function(t,e){function n(){this.constructor=
t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ef=Kc,Of=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return _f(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),
this.unsubscribe()},e}(Ef.Subscriber),Sf=Of,Tf={InnerSubscriber:Sf},jf=hc,Af=mc,Cf=mf,kf=gc,Nf=ha,Pf=xf,Df=Tf,If=sa,Mf=Ft,Ff={subscribeToResult:Mf},qf=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},$f=Kc,Rf=function(t){function e(){t.apply(this,arguments)}return qf(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,
e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}($f.Subscriber),Lf=Rf,Vf={OuterSubscriber:Lf},Uf=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Hf=ha,zf=bf,Bf=mc,Wf=Ff,Zf=Vf,Jf=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return Uf(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-
0]=arguments[n];if(null===t||0===arguments.length)return new zf.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Bf.isArray(t[0])&&(t=t[0]),0===t.length?new zf.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new Xf(t,this.sources,this.resultSelector)},e}(Hf.Observable),Yf=Jf,Xf=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=
new Array(o);for(var i=0;i<o;i++){var u=n[i],s=Wf.subscribeToResult(this,u,null,i);s&&(s.outerIndex=i,this.add(s))}}return Uf(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,u=i.length;if(!t._hasValue)return void e.complete();if(++this.completed===u){if(r===u){var s=o?o.apply(this,i):i;e.next(s)}e.complete()}},e}(Zf.OuterSubscriber),
Gf={ForkJoinObservable:Yf},Kf=Gf,Qf=Kf.ForkJoinObservable.create,tl={forkJoin:Qf},el=ha,nl=tl;el.Observable.forkJoin=nl.forkJoin;var rl=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ol=ha,il=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return rl(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=
function(t){var e=t.done,n=t.value,r=t.subscriber;if(e)return void r.complete();r.next(n),r.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(ol.Observable),ul=il,sl={ScalarObservable:ul},cl=qt,al={isScheduler:cl},fl=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=
null===e?Object.create(e):(n.prototype=e.prototype,new n)},ll=ha,pl=sl,hl=bf,dl=al,bl=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return fl(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];dl.isScheduler(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new pl.ScalarObservable(t[0],r):new hl.EmptyObservable(r)},e.dispatch=
function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;if(n>=r)return void o.complete();o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i<r&&!t.closed;i++)t.next(n[i]);t.complete()},e}(ll.Observable),vl=bl,ml={ArrayObservable:vl},yl=ml,gl=yl.ArrayObservable.of,wl={of:gl},xl=ha,_l=wl;xl.Observable.of=_l.of;var El=ws&&ws.__extends||
function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ol=ha,Sl=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return El(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},
e}(Ol.Observable),Tl=Sl,jl={ErrorObservable:Tl},Al=jl,Cl=Al.ErrorObservable.create,kl={_throw:Cl},Nl=ha,Pl=kl;Nl.Observable["throw"]=Pl._throw;var Dl=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Il=Kc,Ml=$t,Fl=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new $l(t,this.project,this.thisArg))},t}(),
ql=Fl,$l=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return Dl(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Il.Subscriber),Rl={map:Ml,MapOperator:ql},Ll=ha,Vl=Rl;Ll.Observable.prototype.map=Vl.map;var Ul=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=
null===e?Object.create(e):(n.prototype=e.prototype,new n)},Hl=Ff,zl=Vf,Bl=Rt,Wl=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Jl(t,this.project,this.resultSelector,this.concurrent))},t}(),Zl=Wl,Jl=function(t){function e(e,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,
this.buffer=[],this.active=0,this.index=0}return Ul(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Hl.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},
e.prototype.notifyNext=function(t,e,n,r,o){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var o;try{o=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(zl.OuterSubscriber),Yl=
Jl,Xl={mergeMap:Bl,MergeMapOperator:Zl,MergeMapSubscriber:Yl},Gl=ha,Kl=Xl;Gl.Observable.prototype.mergeMap=Kl.mergeMap,Gl.Observable.prototype.flatMap=Kl.mergeMap;var Ql=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},tp=qc,ep=function(t){function e(e,n){t.call(this)}return Ql(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(tp.Subscription),
np=ep,rp={Action:np},op=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ip=hc,up=rp,sp=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return op(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,
n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),ip.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n?e:ip.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=
this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null))},e}(up.Action),cp=sp,ap={AsyncAction:cp},
fp=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),(new this.SchedulerAction(this,t)).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}(),lp=fp,pp={Scheduler:lp},hp=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},dp=pp,bp=function(t){function e(){t.apply(this,
arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return hp(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var n;this.active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n;}},e}(dp.Scheduler),vp=bp,mp={AsyncScheduler:vp},yp=ap,gp=mp,wp=new gp.AsyncScheduler(yp.AsyncAction),xp={async:wp},_p=Lt,Ep={isDate:_p},Op=ws&&ws.__extends||function(t,e){function n(){this.constructor=
t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Sp=xp,Tp=Ep,jp=Vf,Ap=Ff,Cp=Vt,kp=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Np(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Np=function(t){function e(e,n,r,o,i){t.call(this),this.destination=e,this.absoluteTimeout=n,this.waitFor=
r,this.withObservable=o,this.scheduler=i,this.timeoutSubscription=void 0,this.index=0,this._previousIndex=0,this._hasCompleted=!1,e.add(this),this.scheduleTimeout()}return Op(e,t),Object.defineProperty(e.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0}),e.dispatchTimeout=function(t){var e=t.subscriber,n=t.index;e.hasCompleted||
e.previousIndex!==n||e.handleTimeout()},e.prototype.scheduleTimeout=function(){var t=this.index,n={subscriber:this,index:t};this.scheduler.schedule(e.dispatchTimeout,this.waitFor,n),this.index++,this._previousIndex=t},e.prototype._next=function(t){this.destination.next(t),this.absoluteTimeout||this.scheduleTimeout()},e.prototype._error=function(t){this.destination.error(t),this._hasCompleted=!0},e.prototype._complete=function(){this.destination.complete(),this._hasCompleted=!0},e.prototype.handleTimeout=
function(){if(!this.closed){var t=this.withObservable;this.unsubscribe(),this.destination.add(this.timeoutSubscription=Ap.subscribeToResult(this,t))}},e}(jp.OuterSubscriber),Pp={timeoutWith:Cp},Dp=ha,Ip=Pp;Dp.Observable.prototype.timeoutWith=Ip.timeoutWith;var Mp="mbox",Fp="vst.",qp=Fp+"trk",$p=Fp+"trks",Rp="getInstance",Lp="isAllowed",Vp="getMarketingCloudVisitorID",Up="getAudienceManagerBlob",Hp="getAnalyticsVisitorID",zp="getAudienceManagerLocationHint",Bp="getSupplementalDataID",Wp="isOptedOut",
Zp="getCustomerIDs",Jp="trackingServer",Yp="trackingServerSecure",Xp="OptOut",Gp=0,Kp=o(),Qp=o(),th=1,eh="GET",nh="mboxedge",rh="${clientCode}",oh=["/m2/",rh,"/mbox/json"].join(Ws),ih="//",uh=0,sh="___target_traces",ch=864E5,ah="3rd party cookies disabled",fh="setContent",lh="setText",ph="setAttribute",hh="setStyle",dh="rearrange",bh="resize",vh="move",mh="remove",yh="customCode",gh="appendContent",wh="redirect",xh="trackClick",_h="signalClick",Eh="insertBefore",Oh="insertAfter",Sh="prependContent",
Th="replaceContent",jh="action",Ah="attribute",Ch="value",kh="asset",Nh="clickTrackId",Ph="content",Dh="contentType",Ih="finalHeight",Mh="finalWidth",Fh="height",qh="width",$h="finalLeftPosition",Rh="finalTopPosition",Lh="left",Vh="top",Uh="position",Hh="from",zh="to",Bh="url",Wh="includeAllUrlParameters",Zh="passMboxSession",Jh="property",Yh="priority",Xh="selector",Gh="cssSelector",Kh="style",Qh="adobe_mc_ref",td="appendSupplementalDataIDTo",ed="true",nd="src",rd="id",od="class",id="type",ud=/CLKTRK#(\S+)/,
sd=/CLKTRK#(\S+)\s/,cd="mbox",ad=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},fd=Kc,ld=Vn,pd=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new hd(t,this.nextOrObserver,this.error,this.complete))},t}(),hd=function(t){function e(e,n,r,o){t.call(this,e);var i=new fd.Subscriber(n,
r,o);i.syncErrorThrowable=!0,this.add(i),this.safeSubscriber=i}return ad(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):
this.destination.complete()},e}(fd.Subscriber),dd={_do:ld},bd=ha,vd=dd;bd.Observable.prototype["do"]=vd._do,bd.Observable.prototype._do=vd._do;var md=[ec,"link",nc].join(","),yd="at-request-succeeded",gd="at-request-failed",wd="at-content-rendering-succeeded",xd="at-content-rendering-failed",_d="[getOffer()]",Ed="mboxDefault",Od="at-flicker-control",Sd="at-element-marker",Td="at-element-click-tracking",jd="at-",Ad="at-body-style",Cd="#"+Ad,kd="at-mbox-default-style",Nd=ws&&ws.__extends||function(t,
e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Pd=hc,Dd=ha,Id=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return Nd(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,r=this.scheduler;if(null==r)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||
(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){Pd.root.setTimeout(function(){throw t;})});else if(this._isScalar){if(!t.closed)return r.schedule(_r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(r.schedule(_r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(r.schedule(Er,0,{err:e,subscriber:t}))}).then(null,function(t){Pd.root.setTimeout(function(){throw t;})})},e}(Dd.Observable),Md=Id,Fd={PromiseObservable:Md},
qd=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},$d=hc,Rd=ha,Ld=xf,Vd=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=Or(e)}return qd(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,o=t.subscriber;if(n)return void o.error(t.error);
var i=r.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof r["return"]&&r["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=this,r=n.iterator,o=n.scheduler;if(o)return o.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var i=r.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof r["return"]&&r["return"]();break}}},e}(Rd.Observable),Ud=Vd,Hd=function(){function t(t,e,n){void 0===
e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[Ld.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),zd=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=Sr(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[Ld.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:
{done:!0,value:void 0}},t}(),Bd=Math.pow(2,53)-1,Wd={IteratorObservable:Ud},Zd=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Jd=ha,Yd=sl,Xd=bf,Gd=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Zd(e,t),e.create=function(t,n){var r=t.length;return 0===r?new Xd.EmptyObservable:1===
r?new Yd.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,o=t.subscriber;if(!o.closed){if(n>=r)return void o.complete();o.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,o=n.scheduler,i=r.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:r,index:0,length:i,subscriber:t});for(var u=0;u<i&&!t.closed;u++)t.next(r[u]);t.complete()},e}(Jd.Observable),Kd=Gd,Qd={ArrayLikeObservable:Kd},tb=ha,eb=function(){function t(t,
e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case "N":return t.next&&t.next(this.value);case "E":return t.error&&t.error(this.error);case "C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,n){switch(this.kind){case "N":return t&&t(this.value);case "E":return e&&e(this.error);case "C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,n)},
t.prototype.toObservable=function(){switch(this.kind){case "N":return tb.Observable.of(this.value);case "E":return tb.Observable["throw"](this.error);case "C":return tb.Observable.empty()}throw new Error("unexpected notification kind value");},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=
new t("N",void 0),t}(),nb=eb,rb={Notification:nb},ob=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ib=Kc,ub=rb,sb=Ar,cb=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new fb(t,this.scheduler,this.delay))},t}(),ab=cb,fb=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,
e),this.scheduler=n,this.delay=r}return ob(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new pb(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(ub.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(ub.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(ub.Notification.createComplete())},
e}(ib.Subscriber),lb=fb,pb=function(){function t(t,e){this.notification=t,this.destination=e}return t}(),hb=pb,db={observeOn:sb,ObserveOnOperator:ab,ObserveOnSubscriber:lb,ObserveOnMessage:hb},bb=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},vb=mc,mb=mf,yb=Fd,gb=Wd,wb=ml,xb=Qd,_b=xf,Eb=ha,Ob=db,Sb=sa,Tb=function(t){return t&&"number"==typeof t.length},jb=function(t){function e(e,
n){t.call(this,null),this.ish=e,this.scheduler=n}return bb(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[Sb.$$observable])return t instanceof Eb.Observable&&!n?t:new e(t,n);if(vb.isArray(t))return new wb.ArrayObservable(t,n);if(mb.isPromise(t))return new yb.PromiseObservable(t,n);if("function"==typeof t[_b.$$iterator]||"string"==typeof t)return new gb.IteratorObservable(t,n);if(Tb(t))return new xb.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable");
},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[Sb.$$observable]().subscribe(t):e[Sb.$$observable]().subscribe(new Ob.ObserveOnSubscriber(t,n,0))},e}(Eb.Observable),Ab=jb,Cb={FromObservable:Ab},kb=Cb,Nb=kb.FromObservable.create,Pb={from:Nb},Db=ha,Ib=Pb;Db.Observable.from=Ib.from;var Mb=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},
Fb=Vf,qb=Ff,$b=Cr,Rb=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Lb(t,this.selector,this.caught))},t}(),Lb=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return Mb(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(qb.subscribeToResult(this,n))}},e}(Fb.OuterSubscriber),Vb=
{_catch:$b},Ub=ha,Hb=Vb;Ub.Observable.prototype["catch"]=Hb._catch,Ub.Observable.prototype._catch=Hb._catch;var zb=Xl,Bb=kr,Wb={concatMap:Bb},Zb=ha,Jb=Wb;Zb.Observable.prototype.concatMap=Jb.concatMap;var Yb="click",Xb="submit",Gb="_blank",Kb="[trackEvent()]",Qb=hc,tv=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),
this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):
(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1E3/60)})}return t}(),ev=tv,nv=new tv(Qb.root),rv={RequestAnimationFrameDefinition:ev,AnimationFrame:nv},ov=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},iv=ap,uv=rv,sv=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return ov(e,
t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=uv.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(uv.AnimationFrame.cancelAnimationFrame(n),e.scheduled=void 0)},e}(iv.AsyncAction),cv=
sv,av={AnimationFrameAction:cv},fv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},lv=mp,pv=function(t){function e(){t.apply(this,arguments)}return fv(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do if(e=t.execute(t.state,t.delay))break;while(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<
o&&(t=n.shift());)t.unsubscribe();throw e;}},e}(lv.AsyncScheduler),hv=pv,dv={AnimationFrameScheduler:hv},bv=av,vv=dv,mv=new vv.AnimationFrameScheduler(bv.AnimationFrameAction),yv=mc,gv=Do,wv={isNumeric:gv},xv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},_v=wv,Ev=ha,Ov=xp,Sv=al,Tv=Ep,jv=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,
this.dueTime=0,_v.isNumeric(n)?this.period=Number(n)<1&&1||Number(n):Sv.isScheduler(n)&&(r=n),Sv.isScheduler(r)||(r=Ov.async),this.scheduler=r,this.dueTime=Tv.isDate(e)?+e-this.scheduler.now():e}return xv(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber,o=this;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,o.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this,r=n.period,o=n.dueTime;return n.scheduler.schedule(e.dispatch,
o,{index:0,period:r,subscriber:t})},e}(Ev.Observable),Av=jv,Cv={TimerObservable:Av},kv=Cv,Nv=kv.TimerObservable.create,Pv={timer:Nv},Dv=ha,Iv=Pv;Dv.Observable.timer=Iv.timer;var Mv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Fv=Kc,qv=bf,$v=Io,Rv=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Lv(t,
this.count,this.source))},t}(),Lv=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return Mv(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this,n=e.source,r=e.count;if(0===r)return t.prototype.complete.call(this);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(Fv.Subscriber),Vv={repeat:$v},Uv=ha,Hv=Vv;Uv.Observable.prototype.repeat=Hv.repeat;var zv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&
(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Bv=Vf,Wv=Ff,Zv=Mo,Jv=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Yv(t,this.notifier))},t}(),Yv=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(Wv.subscribeToResult(this,n))}return zv(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(Bv.OuterSubscriber),Xv={takeUntil:Zv},Gv=ha,Kv=Xv;
Gv.Observable.prototype.takeUntil=Kv.takeUntil;var Qv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},tm=Kc,em=Fo,nm=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new rm(t,this.predicate))},t}(),rm=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.index=0}return Qv(e,t),e.prototype._next=function(t){var e,
n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(tm.Subscriber),om={takeWhile:em},im=ha,um=om;im.Observable.prototype.takeWhile=um.takeWhile;var sm,cm,am="[applyOffer()]",fm=0,lm=function(t){return p(t.found)},pm=function(t){return!p(t[Bh])},hm=function(t){return t[jh]===xh||t[jh]===_h},dm="adobe",bm="target",vm="ext",mm=new RegExp("^[a-zA-Z]+$"),
ym={},gm={},wm="[mboxCreate()]",xm="[mboxDefine()]",_m="[mboxUpdate()]",Em="Unable to load target-vec.js",Om="Loading target-vec.js",Sm="_AT",Tm="clickHandlerForExperienceEditor",jm="[global mbox]",Am="auto-create disabled",Cm="mbox name is blank",km="Settings",Nm=["enabled","clientCode","imsOrgId","serverDomain","cookieDomain","crossDomain","timeout","globalMboxAutoCreate","mboxParams","globalMboxParams","defaultContentHiddenStyle","defaultContentVisibleStyle","bodyHidingEnabled","bodyHiddenStyle",
"selectorsPollingTimeout","visitorApiTimeout","overrideMboxEdgeServer","overrideMboxEdgeServerTimeout","optoutEnabled","secureOnly","supplementalDataIdParamTimeout"],Pm={___bootstrap:Fi};t.target=Pm}(window.adobe=window.adobe||{}),window.adobe.target.___bootstrap(window,document,{"clientCode":"tdbankfinancialgroup","imsOrgId":"A783776A5245B1E50A490D44@AdobeOrg","serverDomain":"tdbankfinancialgroup.tt.omtrdc.net","crossDomain":"enabled","timeout":5E3,"globalMboxName":"target-global-mbox","globalMboxAutoCreate":false,
"version":"1.2.2","defaultContentHiddenStyle":"visibility:hidden;","defaultContentVisibleStyle":"visibility:visible;","bodyHiddenStyle":"body{opacity:0!important}","bodyHidingEnabled":true,"deviceIdLifetime":632448E5,"sessionIdLifetime":186E4,"selectorsPollingTimeout":5E3,"visitorApiTimeout":2E3,"overrideMboxEdgeServer":false,"overrideMboxEdgeServerTimeout":186E4,"optoutEnabled":false,"secureOnly":false,"supplementalDataIdParamTimeout":30});adobe.target.getOffer({"mbox":"target-global-mbox","success":function(offer){adobe.target.applyOffer({"mbox":"target-global-mbox",
"offer":offer})},error:function(){console.log("Error",status,error)}})}},2589042,545972);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;(function(){function m(a,b,d){if("_root"==b)return d;if(a!==d){var c;p||(a.matches&&(p=a.matches),a.webkitMatchesSelector&&(p=a.webkitMatchesSelector),a.mozMatchesSelector&&(p=a.mozMatchesSelector),a.msMatchesSelector&&(p=a.msMatchesSelector),a.oMatchesSelector&&(p=a.oMatchesSelector),p||(p=f.matchesSelector));c=p;if(c.call(a,b))return a;if(a.parentNode)return r++,m(a.parentNode,
b,d)}}function s(a,b,d,c){g[a.id]||(g[a.id]={});g[a.id][b]||(g[a.id][b]={});g[a.id][b][d]||(g[a.id][b][d]=[]);g[a.id][b][d].push(c)}function c(a,b,d,c){if(c||d)if(c)for(var f=0;f<g[a.id][b][d].length;f++){if(g[a.id][b][d][f]===c){g[a.id][b][d].pop(f,1);break}}else delete g[a.id][b][d];else g[a.id][b]={}}function e(a,b,d){if(g[a][d]){var c=b.target||b.srcElement,e,k,l={},h=k=0;r=0;for(e in g[a][d])g[a][d].hasOwnProperty(e)&&(k=m(c,e,n[a].element))&&f.matchesEvent(d,n[a].element,k,"_root"==e,b)&&(r++,
g[a][d][e].match=k,l[r]=g[a][d][e]);b.stopPropagation=function(){b.cancelBubble=!0};for(k=0;k<=r;k++)if(l[k])for(h=0;h<l[k].length;h++){if(!1===l[k][h].call(l[k].match,b)){f.cancel(b);return}if(b.cancelBubble)return}}}function h(a,b,d,h){function m(a){return function(b){e(k,b,a)}}a instanceof Array||(a=[a]);d||"function"!=typeof b||(d=b,b="_root");var k=this.id,l;for(l=0;l<a.length;l++)g[k]&&g[k][a[l]]||f.addEvent(this,a[l],m(a[l])),h?c(this,a[l],b,d):s(this,a[l],b,d);return this}function f(a,b,c,
e){if("string"==typeof a&&"function"==typeof b||"string"==typeof b)f(document).on(a,b,c,e||!1);if(!(this instanceof f)){for(var g in n)if(n[g].element===a)return n[g];q++;n[q]=new f(a,q);n[q]._on=n[q].on;n[q].on=function(a,b,c,d){var e="function"==typeof b?b:c;if("function"==typeof b?c:d)a=[a],"string"==typeof b&&a.push(b),a.push(function(a){return function(b){b.defaultPrevented||Bootstrapper.Delegate.load(this);"undefined"!=typeof b.preventDefault?b.preventDefault():b.returnValue=!1;a.call(this)}}(e)),
this._on.apply(this,a);else return this._on.call(this,a,b,c)};return n[q]}this.element=a;this.id=b}var p,r=0,q=0,g={},n={};f.prototype.on=function(a,b,c){return h.call(this,a,b,c)};f.prototype.off=function(a,b,c){return h.call(this,a,b,c,!0)};f.matchesSelector=function(){};f.cancel=function(a){a.preventDefault();a.stopPropagation()};f.addEvent=function(a,b,c){a.element.addEventListener(b,c,"blur"==b||"focus"==b)};f.matchesEvent=function(){return!0};f.load=function(a){setTimeout(function(a,c){return function(){if(a.nodeName&&
"a"==a.nodeName.toLowerCase()){if(c&&/^javascript\s*:/.test(c))return(new Function(unescape(c))).call(window);c&&(window.location.href=c)}}}(a,a.href||""),750)};window.Bootstrapper.Delegate=f})();(function(m){var s=m.addEvent;m.addEvent=function(c,e,h){if(c.element.addEventListener)return s(c,e,h);"focus"==e&&(e="focusin");"blur"==e&&(e="focusout");c.element.attachEvent("on"+e,h)};m.simpleMatchesSelector=function(c){return"."===c.charAt(0)?-1<(" "+this.className+" ").indexOf(" "+c.slice(1)+" "):"#"===
c.charAt(0)?this.id===c.slice(1):this.tagName.toUpperCase()===c.toUpperCase()};m.matchesSelector=function(c){if(~c.indexOf(" ")||~c.indexOf("\x3e")){var e=this;for(c=c.split(" ").reverse();c.length;){var h=c.shift();if(~h.indexOf("\x3e")){for(h=h.split("\x3e").reverse();h.length;)if(tempSel=h.shift(),m.simpleMatchesSelector.call(e,tempSel))e=e.parentNode;else return!1;if(!c.length)return!0}else for(;e!=document;){var f=m.simpleMatchesSelector.call(e,h),e=e.parentNode;if(f){if(!c.length)return!0;break}}}return!1}return m.simpleMatchesSelector.call(this,
c)};m.cancel=function(c){c.preventDefault&&c.preventDefault();c.stopPropagation&&c.stopPropagation();c.returnValue=!1;c.cancelBubble=!0}})(window.Bootstrapper.Delegate);Bootstrapper.on=Bootstrapper.Delegate;Bootstrapper.ajaxListener=function(){var listeners={},listener=function(a,b){var detected=[],selector=a||function(){},attach=b||function(node){};return function(){if(typeof selector=="function"&&typeof attach=="function"){var n=selector();if(typeof n=="object")if(typeof n.length!="undefined"){n=
Array.prototype.slice.call(n,0);for(var i=n.length-1;i>=0;i--)for(var j=0;j<detected.length;j++)if(n[i]==detected[j])n.splice(i,1);for(var i=0;i<n.length;detected.push(n[i++]));for(var i=0;i<n.length;attach.call(n[i],n[i++]));}else{for(var i=0;i<detected.length;i++)if(n==detected[i])return;detected.push(n);attach.call(n,n)}}}},_public={create:function(x,y){do var a=parseInt(Math.random()*1E5)+"";while(listeners[a]);listeners[a]=listener(x,y)}};setInterval(function(){for(key in listeners)listeners[key]()},
500);return _public}();Bootstrapper.propertyWatcher=function(options){var _private={watchers:[]},_public={};_private.options=options||{};_private.options.interval=_private.options.interval||50;_private.Watcher=function(propertyFn,options){var _public={};_public.propertyFn=propertyFn;_public.lastValue=undefined;_public.options=options;_public.change=function(oldVal,newVal){};return _public};_private.doChecks=function(){for(var i=0;i<_private.watchers.length;i++){var w=_private.watchers[i],p=w.propertyFn?
w.propertyFn():null;if(w.lastValue!=p){w.change(w.lastValue,p);w.lastValue=p}}_private.resetTimer()};_private.resetTimer=function(){window.setTimeout(function(){_private.doChecks()},_private.options.interval)};_private.addWatcher=function(fn,options){var w=_private.Watcher(fn,options);_private.watchers.push(w);return w};_public={create:_private.addWatcher};_private.doChecks();return _public}();Bootstrapper.VTconfig={"DM":"261002","MVT":"261002"}},490595,252250);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.registerDataDefinition(function(){Bootstrapper.data.define({extract:function(){var $d=document.URL.toLowerCase();if($d.indexOf("cguid\x3db85-4e5e1419df51")>-1)return"tdw";else if($d.indexOf("cguid\x3d800-4e68e383e2f8")>-1)return"tdb";else if($d.indexOf("cguid\x3d140-cb3f0d907975")>-1)return"tdct"},load:"session",trigger:Bootstrapper.data.bottomOfBodyTrigger,
dataDefName:"rsid",collection:"survey",source:"Manage",priv:"false"},{id:"16071"})},16071)},-1,-1);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("www.tdinsurance.com")>-1||document.URL.indexOf("www.tdassurance.com")>-1)ensClientConfig={"info":{"name":"tdb","publishPath":"dev","clientId":822},"cookieTypes":["Personalization","ThirdParty"],"whitelist":{"default":[{"tag":"'localhost',"},{"tag":"data:image"},{"tag":"www1.pat.td.com"},{"tag":"tdinsurance.com"},{"tag":"tdassurance.com"},{"tag":"staging.td.com"},
{"tag":"ads.td.com"},{"tag":"location.hostname"},{"tag":"ensighten.com"},{"tag":"\\.td.com"},{"tag":"tdbank.com"},{"tag":"www.td.com"},{"tag":"tdwealthmedia.com"},{"tag":"marketsandresearch.td.com"},{"tag":"tdcanadatrust.com"},{"tag":"tdwaterhouse.ca"},{"tag":"intelliresponse.com"},{"tag":"accounts.google.com"},{"tag":"brightcove.com"},{"tag":"players.brightcove.net"},{"tag":"estara.com"},{"tag":"googleapis.com"},{"tag":"dmtry.com"},{"tag":"www.google.com"},{"tag":"youtube.com"},{"tag":"ytimg.com"},
{"tag":"markitcdn.com"},{"tag":"appnexus.com"},{"tag":"google-analytics.com"},{"tag":"coremetrics.com"},{"tag":"247realmedia.com"},{"tag":"mathtag.com"},{"tag":"limelight.com"},{"tag":"convertlanguage.com"},{"tag":"bazaarvoice.com"},{"tag":"liveperson.net"},{"tag":"z1.liveper.sn"},{"tag":"lpcdn.lpsnmedia.net"},{"tag":"accdn.lpsnmedia.net"},{"tag":"lptag.liveperson.net"},{"tag":"va.v.liveperson.net"},{"tag":"omtrdc.net"},{"tag":"gstatic.com"},{"tag":"mbna.ca"},{"tag":"egain.com"},{"tag":"adnxs.com"},
{"tag":"cdn.oas-training7.adnxs.com"},{"tag":"track.linksynergy.com"},{"tag":"linksynergy.com"},{"tag":"platform.twitter.com"},{"tag":"syndication.twitter.com"},{"tag":"twitter.com"},{"tag":"www.tdwealthvideos.com"},{"tag":"www7.dev.tdinsurance.com"},{"tag":"www7.dev.tdassurance.com"},{"tag":"www2.sys.tdinsurance.com"},{"tag":"www2.sys.tdassurance.com"},{"tag":"tdassetmanagement.com"},{"tag":"www.tdassetmanagement.com"},{"tag":"scene7.com"},{"tag":"sitecatalyst.omniture.com"},{"tag":"use.typekit.net"},
{"tag":"js-agent.newrelic.com"},{"tag":"authorize.omniture.com"},{"tag":"cdn.realtor.ca"},{"tag":"googletagmanager.com"},{"tag":"preferences.truste.com"},{"tag":"preferences-mgr.truste.com"},{"tag":"preferences-mgr.trustarc.com"},{"tag":"bat.bing.com"}],"Personalization":[{"tag":"(platform.|syndication)?(twitter|twimg).com","displayName":"Twitter"},{"tag":"apis.google.com","displayName":"Google API"},{"tag":"(td|dpm).demdex.net","displayName":"Demdex"},{"tag":"cdnssl.clicktale.net","displayName":"clickTale"}],
"ThirdParty":[{"tag":"((redir|log|ads|s(et|ync))\\.adaptv\\.(com|tv)|adap\\.tv)","displayName":"Adap.tv"},{"tag":"spotxchange\\.com","displayName":"SpotXchange"},{"tag":"(360yield|tidaltv|qservz|turn|adnxs)\\.com","displayName":"360Yield"},{"tag":"adadvisor\\.net","displayName":"AdAdvisor"},{"tag":"(\\.atemda\\.com|(admaym|atemda)\\.com)","displayName":"AdMeta"},{"tag":"(\\.adtech(us\\.com|\\.de)|(atwola|adnxs|rfihub|meteofrance|mathtag|tribalfusion|acuityplatform|contextweb|dotomi|sitescout)\\.com|simpli\\.fi)",
"displayName":"ADTECH"},{"tag":"\\.ag(kn|gregateknowledge)\\.com","displayName":"Aggregate Knowledge"},{"tag":"((bkrtx|tags\\.bluekai)\\.com|(bluekai|nerdwallet|spongecell)\\.com|mxptint\\.net)","displayName":"BlueKai"},{"tag":"bstatic.com","displayName":"Bstatic"},{"tag":"thebrighttag.com","displayName":"BrightTag"},{"tag":"\\.criteo\\.(com|net)","displayName":"Criteo"},{"tag":"doubleclick.net","displayName":"DoubleClick"},{"tag":"\\.exelator\\.com","displayName":"eXelate"},{"tag":"facebook\\.com|facebook\\.net",
"displayName":"Facebook Custom Audiences"},{"tag":"googleadservices.com","displayName":"Google AdServices"},{"tag":"(jwpcdn|jwpltx|jwpsrv|longtailvideo)\\.com","displayName":"JW Player"},{"tag":"kau\\.li","displayName":"Kauli"},{"tag":"p-td.com","displayName":"P-td"},{"tag":"acxiom-online.com","displayName":"Acxiom"},{"tag":"\\.adscale\\.de","displayName":"AdScale"},{"tag":"\\.burst(net|beacon)\\.com","displayName":"Burst Media"},{"tag":"nexac.com","displayName":"Nexac"},{"tag":"eqads\\.com","displayName":"Eq Ads"},
{"tag":"krxd\\.net|(ml314|quantserve)\\.com","displayName":"Krux"},{"tag":"leadback\\.advertising\\.com","displayName":"LeadBack"},{"tag":"lijit\\.com","displayName":"Lijit"},{"tag":"\\.s(ecurestudies|core(card)?research)\\.com","displayName":"ScoreCardResearch"},{"tag":"addtoany\\.com","displayName":"AddToAny"},{"tag":"(yahoo|yimg)\\.com","displayName":"Yahoo Advertising Solutions"},{"tag":"vimeo\\.com|nr-data\\.net","displayName":"Vimeo"},{"tag":"vmmpxl.com","displayName":"Vmmpxl"},{"tag":"\\.turn\\.com",
"displayName":"Turn"},{"tag":"tribalfusion\\.com","displayName":"Tribal Fusion"},{"tag":"switchads\\.com","displayName":"Switch Concepts"},{"tag":"sonobi\\.com","displayName":"Sonobi Media"},{"tag":"(\\.yoc-adserver\\.com|(smartadserver|adventori)\\.com)","displayName":"SMART AdServer"},{"tag":"rubiconproject.com","displayName":"Rubicon Project"},{"tag":"rfihub.com","displayName":"Rfihub"},{"tag":"yieldmanager.net","displayName":"YieldManager"},{"tag":"contextweb.com","displayName":"contextweb"},
{"tag":"rlcdn.com","displayName":"rlcdn"},{"tag":"openx.net","displayName":"OpenX"},{"tag":"mookiel.com","displayName":"Mookie"},{"tag":"newrelic\\.com","displayName":"New Relic"},{"tag":"media6degrees\\.com","displayName":"Media6Degrees"},{"tag":"(\\.pubmatic\\.com|rfihub\\.com)","displayName":"PubMatic"},{"tag":"(pixel.everesttech|everestjs).net","displayName":"EverestTech"},{"tag":"(s|a).idio.co","displayName":"Idio"},{"tag":"(event|portal).on24.com","displayName":"On24"},{"tag":"(cdn.|dcs.|rtb.)?(adgrx|adgear).com",
"displayName":"AdGear"}]},"defaultEnv":"","featureToggles":{"enableReporting":true,"enableFiltering":true,"enablePrivacyNotice":false,"enableConsentModal":false,"showTrustedDomains":false,"requireSSL":false,"enableDataMonitoring":false,"usesWhitelist":true,"consentWidget":false},"libraryPackage":"enterprise","dataMonitoring":{"mode":"block","blockURLParamsRegex":[],"domainsAllowed":[]},"environmentConfigs":[{"name":"Public Canada","countryCode":"ca","languageCode":"en-CA","condition":{"type":"url",
"key":"","value":"tdinsurance.com","shouldBePositive":true,"operator":"contains"},"optVals":{"Personalization":1,"ThirdParty":1},"translation":{"notificationBannerContent":"Text that won't be seen","consentTitle":"Text that won't be seen","consentDescription":"Text that won't be seen","save":"Text that won't be seen","cancel":"Text that won't be seen","close":"Text that won't be seen","cookies":{"Personalization":{"title":"Won't be seen","description":"Won't be seen"},"ThirdParty":{"title":"Won't be seen",
"description":"Won't be seen"}}}},{"name":"TDAssurance - FR","countryCode":"ca","languageCode":"fr-CA","condition":{"type":"url","key":"","value":"tdassurance.com","shouldBePositive":true,"operator":"contains"},"optVals":{"Personalization":1,"ThirdParty":1},"translation":{"notificationBannerContent":"Text that won't be seen","consentTitle":"Text that won't be seen","consentDescription":"Text that won't be seen","save":"Text that won't be seen","cancel":"Text that won't be seen","close":"Text that won't be seen",
"cookies":{"Personalization":{"title":"Won't be seen","description":"Won't be seen"},"ThirdParty":{"title":"Won't be seen","description":"Won't be seen"}}}}]}},2969617,513943);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.dataManager=function(){var _private={data:{},add:function(o){if(typeof o=="object"&&o.id){o.get=function(e){return Bootstrapper.dataManager.getDataElement(this.id,e)};this.data[o.id]=o}},getObj:function(i){if(i)return _private.data[i];return _private.data},getDataElement:function(i,e){if(typeof this.data[i]=="undefined")return"";var dataObj=this.data[i].data,
retVal;if(typeof dataObj=="object"){if(typeof dataObj[e]=="undefined")return"";dataObj=dataObj[e];if(typeof dataObj.get=="string"){var d=eval(dataObj.get);if(typeof dataObj.mod=="string"&&dataObj.mod!==""){var m="(function(){ return "+(dataObj.mod===""?"this":dataObj.mod)+";})";retVal=eval(m).call(d)}else if(typeof dataObj.mod=="function")retVal=dataObj.mod.call(d,d);else retVal=d}else if(typeof dataObj.get=="function"){var d=dataObj.get.call(this.data[i]);if(typeof dataObj.mod=="string"&&dataObj.mod!==
""){var m="(function(){ return "+(dataObj.mod===""?"this":dataObj.mod)+";})";retVal=eval(m).call(d)}else if(typeof dataObj.mod=="function")retVal=dataObj.mod.call(d,d);else retVal=d}return retVal}},getDataLayer:function(i){var retObj={};var dataObj=this.data[i].data;for(key in dataObj)try{retObj[key]=this.getDataElement(i,key)}catch(e){retObj[key]=null}return retObj},getAllData:function(){var data=this.data,retObj={_d:{}};for(var key in data){retObj._d[key]={};var d=this.getDataLayer(key);for(var k in d){retObj[k]=
d[k];retObj._d[key][k]=d[k]}}return retObj},getData:function(i){if(i)return this.getDataLayer(i);else return this.getAllData()},addDataElement:function(layerId,name,o){if(typeof this.data[layerId]=="object"&&typeof name=="string"&&typeof o=="object"){var d=this.data[layerId];d.data[name]=o}}},_public={push:function(dl){_private.add(dl)},getObj:function(i){return _private.getObj(i)},getData:function(i){return _private.getData(i)},getDataElement:function(i,e){return _private.getDataElement(i,e)},addDataElement:function(layerId,
name,o){return _private.addDataElement(layerId,name,o)}};return _public}();Bootstrapper.dataManager.map=function(){return{define:function(n,d){if(Bootstrapper.data)for(i in d){var v=typeof d[i]=="string"?Bootstrapper.data.extract(d[i]):d[i]();Bootstrapper.data.dataManagerPush(i,v,n)}}}}();window.$data=function(a,b){if(typeof b=="string")try{return Bootstrapper.dataManager.getDataElement(a,b)}catch(e){}else if(typeof a=="string")return Bootstrapper.dataManager.getData()[a]||"";return""};Bootstrapper.bindOnGetServerComponent(function(){var DL=
Bootstrapper.dataManager&&Bootstrapper.targetingExtension?Bootstrapper.dataManager.getData():{};if(~document.cookie.indexOf("VTP:enabled"))DL["ensightenVT"]=1;if(Bootstrapper.scDataObj)for(i in DL)Bootstrapper.scDataObj[i]=DL[i]});var ns=window[ensightenOptions.ns];ns.VTconfig=ns.VTconfig||{};ns.VTconfig["DM"]=this.deploymentId;Bootstrapper.dataManager.pushObject=function(obj,id,name){Bootstrapper.dataManager.push({name:name||id,id:id,data:{}});for(var k in obj)if(obj[k]&&typeof obj[k]!=="function")Bootstrapper.dataManager.addDataElement(id,
k,{name:k,get:function(o,key){return function(){return o[key]}}(obj,k)})};document.getElementsByClassName=document.getElementsByClassName||function(b){var c=this.all||this.getElementsByTagName("*"),d=[];b=RegExp("(?:^|\\s)"+b+"(?:\\s|$)");for(var a=0;a<c.length;a++)b.test(c[a].className)&&d.push(c[a]);return d};Bootstrapper.getElementXPath=function(e){var n=e;var p="";while(n!=document.getElementsByTagName("html")[0]){var t="/"+n.tagName;if(n.id!=""){t+="#"+n.id;p=t+p}else{var c=1;_n=n.previousSibling;
while(_n!=null){if(n.tagName==_n.tagName)c++;_n=_n.previousSibling}p=t+(c!=1?"["+c+"]":"")+p}n=n.parentNode}return Bootstrapper.getMinXPath("/HTML"+p)};Bootstrapper.getMinXPath=function(path){var p=path.split("/"),lastId=0;for(var i=0;i<p.length;i++)if(~p[i].indexOf("#"))lastId=i;for(var i=lastId-1;i>0;i--)if(!p[i].match(/^(html|body)/i))p.splice(i,1);return p.join("/")};Bootstrapper.getElementByXPathStep=function(d,a){var c=~a.indexOf("#")?a.split("#")[1]:"",e=c?0:~a.indexOf("[")?parseInt(a.match(/\[(\d+)\]/)[1]):
0,f=(c?a.split("#")[0]:e?a.split("[")[0]:a).toLowerCase();if(d==document&&f=="html"&&e==0)return document.getElementsByTagName("html")[0];if(~a.indexOf("#"))return document.getElementById(a.split("#")[1]);var b=d.firstChild;if(!b)return null;for(var g=0,e=e!=0?e-1:e;b;){if(b.nodeType==1)if(b.tagName.toLowerCase()==f&&c!=""&&b.id==c)return b;else if(b.tagName.toLowerCase()==f&&g==e&&c=="")return b;else b.tagName.toLowerCase()==f&&g++;b=b.nextSibling}};Bootstrapper.getElementByXPath=function(d,n){for(var d=
d.split("/"),a=Bootstrapper.getElementByXPathStep(n||document,d[1]),c=2;c<d.length;c++){if(a==null)return null;a=Bootstrapper.getElementByXPathStep(a,d[c])}return a};window._log=function(m){window._enslog=window._enslog||[];window._enslog.push(m);if(console){var v=typeof m=="string"?m:"",s=window.location.search,p=~s.indexOf("ensightenDebug\x3d")?s.split("ensightenDebug\x3d")[1].split("\x26")[0].split("#")[0].split(";")[0]:!1;if(p&&p=="act"){if(~v.indexOf("$$$"))console.log(v)}else if(p&&p=="cloak"){if(~v.indexOf("*** Cloak"))console.log(v)}else if(p)console.log(m)}};
Bootstrapper.MVT=function(){var g={},h={split:function(b,a){var c=[];do{var d=b.shift(),e=[],f=[d];(e=d.x.split("/")).shift();for(d=b.length-1;-1<d;d--){var g=b[d].x.split("/");g.shift();g[0]==e[0]&&(f.push(b[d]),b.splice(d,1))}c.push(f)}while(0<b.length);for(d=0;d<c.length;d++)e=this.getCommon(c[d]),Bootstrapper.MVT.traverse(a,e,c[d])},getCommon:function(b){for(var a=[],c=0;c<b.length;a.push(b[c++].x));if(1==a.length)return a[0];for(c=0;c<a.length;(a[c]=a[c++].split("/")).shift());b=a[0];for(c=1;c<
a.length;c++){for(var d=0;d<a[c].length;d++)if(a[0][d]!=a[c][d]){var e=d;break}if(e)break}return"/"+b.slice(0,e).join("/")},tests:[]},i={hidden:[],cloaks:[],EDLutils:!0,initialized:!1,invisibilityCloak:!1,disabled:!!~window.location.search.indexOf("ensTools\x3ddisable"),cloakDisabled:(true||!!~window.location.search.indexOf("ensCloak\x3ddisable"))&&!~window.location.search.indexOf("ensCloak\x3denable"),forceSyncCloak:!!~window.location.search.indexOf("ensCloak\x3d")&&!!~window.location.search.indexOf("!resync"),
content:{initialized:!1,map:{},list:"",target:function(o){if(typeof o=="string"&&~o.indexOf("##")&&~o.indexOf("@@"))this.store(o);else{if(o instanceof Array){var c="";for(var i=0,l=o.length;i<l;i++)if(o[i].u)c+="##"+o[i].u+"@@"+(o[i].x||"")}else if(o.u)o="##"+o.u+"@@"+(o.x||"");this.store(o)}},utils:function(a,n,o){if(Bootstrapper.data)try{if(a=="get")return Bootstrapper.data.getEngine("store").utils.get(n);else if(a=="set")return Bootstrapper.data.getEngine("store").utils.set(n,o)}catch(e){Bootstrapper.MVT.EDLutils=
false;_log("*** Cloak:EDL utils not available")}else{Bootstrapper.MVT.EDLutils=false;_log("*** Cloak:EDL not available")}},store:function(o){if(!Bootstrapper.MVT.content.initialized)this.list=o;else{if(this.list=="")this.list=o;this.utils("set","_ensCloak",o)}_log("*** Cloak:Storage updated")},load:function(d){var cl;if(d==1)cl=this.list;else cl=this.utils("get","_ensCloak");if(!d){_log("GLOBAL: "+this.list);_log("STORED: "+cl)}if(typeof cl=="string"&&cl!=""&&~cl.indexOf("##")){cl=cl.split("##");
for(var i=0,l=cl.length;i<l;i++)if(~cl[i].indexOf("@@")){var u=cl[i].split("@@")[0],x=cl[i].split("@@")[1]||"";if(d=="list"){_log("URL: "+u);_log("XPATH: "+x)}this.add({"u":u,"x":x})}_log("*** Cloak:Storage loaded")}else _log("*** Cloak:Storage empty")},add:function(o){if(o.u){if(~window.location.href.indexOf(o.u))if(o.x&&o.x!=""){if(typeof this.map[o.x]=="undefined"){this.map[o.x]=o;this.map[o.x].t="map"}}else Bootstrapper.MVT.invisibilityCloak=true}else if(typeof this.map[o.x]=="undefined"){this.map[o.x]=
o;this.map[o.x].t="map"}},init:function(){if(!Bootstrapper.MVT.cloakDisabled){var sync=this.utils("get","_ensCloakSync")||"",time=(new Date).getTime(),fetch=true;if(Bootstrapper.MVT.EDLutils){if(~sync!=""&&!isNaN(sync))if(time-sync>18E5)sync=time;else fetch=false;else sync=time;if(fetch)this.utils("set","_ensCloakSync",sync)}else fetch=false;if(fetch||Bootstrapper.MVT.forceSyncCloak){if(Bootstrapper.scDataObj)Bootstrapper.scDataObj["ensCloak"]="sync";if(this.list=="")Bootstrapper.MVT.invisibilityCloak=
true;_log("*** Cloak:Syncing")}this.load(1);this.load(2)}var m=this.map;for(i in m)if(m[i].x)Bootstrapper.MVT.push({x:m[i].x,m:m[i].x,t:"map"});if(Bootstrapper.MVT.invisibilityCloak&&!Bootstrapper.MVT.disabled&&!Bootstrapper.MVT.cloakDisabled)Bootstrapper.MVT.cover()}},addModule:function(b,a){g[b]=a},swap:function(b,a){g[a.t].swap(b,a)},start:function(b){for(var a=0;a<b.length;a++)g[b[a].t].init(b[a]);a=h.getCommon(b);"/"==a&&h.split(b,document);this.traverse(document,a,b)},init:function(){Bootstrapper.MVT.content.initialized=
!0;Bootstrapper.MVT.content.init();_log("*** MVT:init - "+h.tests.length+" targets");Bootstrapper.MVT.initialized=!0;_log(h.tests.slice());if(h.tests.length&&!this.disabled)Bootstrapper.MVT.start(h.tests)},push:function(o){if(Bootstrapper.MVT.disabled)return;if(typeof o=="object"){_log("*** MVT:push");_log(o);if(typeof this.setDone=="undefined"){this.setDone=1;Bootstrapper.bindPageSpecificCompletion(function(){Bootstrapper.MVT.done()});Bootstrapper.bindDOMLoaded(function(){setTimeout(function(){Bootstrapper.MVT.done()},
500)})}if(o.x){o.cloak=this.cloak(o,1);if(o.t&&this.content.map[o.x])if(o.t=="map")this.content.map[o.x].cloak=o.cloak;else if(this.content.map[o.x].cloak)Bootstrapper.MVT.delCSS(this.content.map[o.x].cloak)}if(this.initialized&&o.x){_log("MVT:content");_log(o);if(this.content.map[o.x])for(i in o)this.content.map[o.x][i]=o[i];else this.check(o)}else{for(var i=0;i<h.tests.length;i++)if(h.tests[i].x&&o.x&&h.tests[i].x==o.x)if(h.tests[i].t=="map"&&o.t!="map"){for(j in o)h.tests[i][j]=o[j];return}h.tests.push(o);
this.hidden.push(o)}}},injectCSS:function(x,e){var d=document,s=d.createElement("style");if(e)s.className="_ensCSS";if("\v"=="v"){d.getElementsByTagName("head")[0].appendChild(s);s.styleSheet.cssText=x}else{s.type="text/css";s.innerHTML=x;d.getElementsByTagName("head")[0].appendChild(s)}return s},delCSS:function(s,f){if(s)try{if("\v"=="v")s.styleSheet.cssText="/**/";if(s.parentNode)s.parentNode.removeChild(s);return!0}catch(e){if(f)return f();return!1}return!1},cover:function(){_log("*** Cloak:Cover");
this.invisibilityCloak=this.injectCSS("body{position:relative; opacity:0 !important;filter:alpha(opacity\x3d0) !important;background:none !important}");Bootstrapper.bindPageSpecificCompletion(function(){Bootstrapper.MVT.uncover("Uncover - complete")});Bootstrapper.bindDOMLoaded(function(){setTimeout(function(){Bootstrapper.MVT.uncover("Uncover - loaded")},500)});setTimeout(function(){Bootstrapper.MVT.uncover("Uncover - timeout")},7E3)},uncover:function(l){if(this.invisibilityCloak)if(this.delCSS(this.invisibilityCloak)){this.invisibilityCloak=
!1;_log("*** Cloak:"+l)}},cloak:function(o,t){var s=false,x=o.toString();if(typeof o=="object"&&o.x)x=o.x;if(~x.indexOf("/HTML/"))x=x.substr(1).replace(/\//g," ").replace(/\[.*\]$/g,"");s=Bootstrapper.MVT.injectCSS(x+"{visibility:hidden !important}",t);if(t)this.cloaks.push(s);return s},show:function(a,b){if(b&&b.cloak)this.delCSS(b.cloak);else if(a){a.style.display=a.style.oldDisplay||"block";a.style.visibility="visible"}},done:function(){var a=this.hidden,c=this.cloaks,s=document.getElementsByTagName("style");
for(i=0;i<h.length;i++)this.show(h[i]);this.hidden=[];for(i=0;i<c.length;i++)this.delCSS(c[i]);this.cloaks=[];for(i=0;i<s.length;i++)if(s[i].className=="_ensCSS")this.delCSS(s[i]);_log("*** MVT:done")},check:function(o){var n=Bootstrapper.getElementByXPath(o.x);_log("*** MVT:check");_log(n);if(n)Bootstrapper.MVT.swap(n,o);else if(!Bootstrapper.hasDOMLoaded())setTimeout(function(){Bootstrapper.MVT.check(o)},25);else{setTimeout(function(){Bootstrapper.MVT.done()},100);_log("*** MVT:unresolved - not found")}},
traverse:function(b,a,c){if(1==c.length&&c[0].x==a)var d=!0;for(var e=0;e<c.length;c[e].x=c[e++].x.slice(a.length));(a=a.split("/")).shift();for(e=0;e<a.length;e++){var f=Bootstrapper.getElementByXPathStep(b,a[e]);if(null!=f){Bootstrapper.swapNodes=Bootstrapper.swapNodes||[];Bootstrapper.swapNodes.push(f);b=f}else{a="/"+a.slice(e).join("/");for(e=0;e<c.length;c[e].x=a+c[e++].x);if(!Bootstrapper.hasDOMParsed()){setTimeout(function(a,b,c){return function(){Bootstrapper.MVT.traverse(a,b,c)}}(b,a,c),
25);return}else{setTimeout(function(){Bootstrapper.MVT.done()},100);_log("*** MVT:unresolved - not found");return}}}d?this.swap(b,c[0]):h.split(c,b)}};return i}();Bootstrapper.bindOnGetServerComponent(function(){Bootstrapper.MVT.init()});Bootstrapper.MVT.addModule("map",{init:function(a){},swap:function(a,b){if(typeof Bootstrapper.DOMloadedDone=="undefined"||!Bootstrapper.DOMloadedDone){if(Bootstrapper.hasDOMLoaded()&&typeof Bootstrapper.DOMloadedDone=="undefined"){Bootstrapper.DOMloadedDone=!1;_log("*** DOM:loaded ***");
setTimeout(function(){Bootstrapper.DOMloadedDone=!0},500)}if(Bootstrapper.MVT.content.map[b.m].t!="map"){for(i in Bootstrapper.MVT.content.map[b.m])b[i]=Bootstrapper.MVT.content.map[b.m][i];Bootstrapper.MVT.swap(a,b);return}else{setTimeout(function(){Bootstrapper.MVT.swap(a,b)},10);return}}else{_log("*** MVT:show - no changes found \x3d "+b.m);Bootstrapper.MVT.show(a,b)}}});Bootstrapper.MVT.addModule("xp",{init:function(a){},swap:function(a,b){_log("*** MVT:loaded");_log(a);_log(b);var d=0;if(b.p==
"replace"){if(!a.tagName.toUpperCase().match(/IMG|INPUT|TEXTAREA/)){a.innerHTML=b.c;a.className=a.className+" ensContent";d=a}}else{d=document.createElement("div");d.className="ensContent";d.innerHTML=b.c;if(b.p=="prepend")if(a.firstChild!==null)a.insertBefore(d,a.firstChild);else d=0;else if(b.p=="append")a.appendChild(d,a);else if(b.p=="element")if(a.parentNode!==null)a.parentNode.replaceChild(d,a);else d=0;else if(b.p=="before")if(a.parentNode!==null)a.parentNode.insertBefore(d,a);else d=0;else if(b.p==
"after")if(a.parentNode!==null)if(a.nextSibling===null)a.parentNode.appendChild(d);else a.parentNode.insertBefore(d,a.nextSibling);else d=0}try{if(d)for(var s=d.getElementsByTagName("script"),l=s.length,i=0;i<l;i++)if(s[i].src){var l=document.createElement("script");l.src=s[i].src;l.type=s[i].type;s[i].parentNode.replaceChild(d,s[i])}else Function("try{"+s[i].text+"}catch(e){}")()}catch(e){}_log("*** MVT:complete");Bootstrapper.MVT.show(a,b)}});Bootstrapper.VTconfig=Bootstrapper.VTconfig||{};Bootstrapper.VTconfig["MVT"]=
this.deploymentId},609789,261002);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.ajaxListener=function(){var listeners={},listener=function(a,b){var detected=[],selector=a||function(){},attach=b||function(node){};return function(){if(typeof selector=="function"&&typeof attach=="function"){var n=selector();if(typeof n=="object")if(typeof n.length!="undefined"){n=Array.prototype.slice.call(n,0);for(var i=n.length-1;i>=0;i--)for(var j=0;j<
detected.length;j++)if(n[i]==detected[j])n.splice(i,1);for(var i=0;i<n.length;detected.push(n[i++]));for(var i=0;i<n.length;attach.call(n[i],n[i++]));}else{for(var i=0;i<detected.length;i++)if(n==detected[i])return;detected.push(n);attach.call(n,n)}}}},_public={create:function(x,y){do var a=parseInt(Math.random()*1E5)+"";while(listeners[a]);listeners[a]=listener(x,y)}};setInterval(function(){for(key in listeners)listeners[key]()},500);return _public}();Bootstrapper.getQueryParam=function(key,loc){if(!this.params||
loc){var search=loc||window.location.search;var params=search.replace(/^\?/,""),paramObj={};params=params.split("\x26");for(var i=0;i<params.length;i++){var t=params[i].split("\x3d");paramObj[t[0]]=t[1]}if(!loc)this.params=paramObj;else return paramObj[key]||""}return this.params[key]||""};Bootstrapper.propertyWatcher=function(options){var _private={watchers:[]},_public={};_private.options=options||{};_private.options.interval=_private.options.interval||50;_private.Watcher=function(propertyFn,options){var _public=
{};_public.propertyFn=propertyFn;_public.lastValue=undefined;_public.options=options;_public.change=function(oldVal,newVal){};return _public};_private.doChecks=function(){for(var i=0;i<_private.watchers.length;i++){var w=_private.watchers[i],p=w.propertyFn?w.propertyFn():null;if(w.lastValue!=p){w.change(w.lastValue,p);w.lastValue=p}}_private.resetTimer()};_private.resetTimer=function(){window.setTimeout(function(){_private.doChecks()},_private.options.interval)};_private.addWatcher=function(fn,options){var w=
_private.Watcher(fn,options);_private.watchers.push(w);return w};_public={create:_private.addWatcher};_private.doChecks();return _public}();Bootstrapper.safeIframeInsert=function(u){var newFrame=document.createElement("iframe");newFrame.src=u;newFrame.width=newFrame.height="1px";newFrame.style.display="none";var rand=parseInt(1E5*1E4*Math.random()*Math.random());Bootstrapper["appendFrame"+rand]=setInterval(function(a,b){return function(){document.getElementsByTagName("body")&&0<document.getElementsByTagName("body").length&&
(clearInterval(Bootstrapper["appendFrame"+b]),document.getElementsByTagName("body")[0].appendChild(a))}}(newFrame,rand),250)}},721482,295451);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("tdcanadatrust.com")>-1)if(document.URL.indexOf("/m/")>-1);else{window.isStorageSupported=function(){var isBrowserSupportStorage=false;if(typeof Storage!=="undefined")isBrowserSupportStorage=true;return isBrowserSupportStorage};window.saveToSessionStorage=function(storageKey,storageValue){try{sessionStorage.setItem(storageKey,storageValue);return true}catch(e){if(e===
QUOTA_EXCEEDED_ERR);return false}};window.retriveFromSessionStorage=function(storageKey){return sessionStorage.getItem(storageKey)};window.removeFromSessionStorage=function(storageKey){sessionStorage.removeItem(storageKey)};window.clearFromSessionStorage=function(){sessionStorage.clear()};window.getKeyFromSessionStorage=function(index){return sessionStorage.key(index)};window.getLengthForSessionStorage=function(){return sessionStorage.length};console.log("commonlivechat")}},747244,271085);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;Bootstrapper.bindDOMParsed(function(){$(document).ready(function(){if(document.URL.indexOf("credit-cards")>-1)Bootstrapper.safeIframeInsert("https://6835781.fls.doubleclick.net/activityi;src\x3d6835781;type\x3dpubli0;cat\x3dcredi0;u1\x3d"+_tmsFl.mcid+";dc_lat\x3d;dc_rdid\x3d;tag_for_child_directed_treatment\x3d;ord\x3d1;num\x3d"+Math.random()*1E13+"?");else if(document.URL.indexOf("cartes-de-credit")>
-1)Bootstrapper.safeIframeInsert("https://6835781.fls.doubleclick.net/activityi;src\x3d6835781;type\x3dpubli0;cat\x3dcredi0;u1\x3d"+_tmsFl.mcid+";dc_lat\x3d;dc_rdid\x3d;tag_for_child_directed_treatment\x3d;ord\x3d1;num\x3d"+Math.random()*1E13+"?")})})},2327240,520120);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;var goAhead=false;if(~document.URL.indexOf("www.mbna.ca"))goAhead=true;if(goAhead===true){!function(t){function e(t,e){qi=t,$i=e,Ri=e.documentElement,Li=t.screen,Vi=e.location}function n(t){wu=t,Ui=wu,Hi=wu.enabled,zi=wu.clientCode,Bi=wu.imsOrgId,Wi=wu.serverDomain,Zi=wu.crossDomain,Ji=wu.timeout,Yi=wu.globalMboxName,Xi=wu.globalMboxAutoCreate,Gi=wu.mboxParams,
Ki=wu.globalMboxParams,Qi=wu.version,tu=wu.defaultContentHiddenStyle,eu=wu.defaultContentVisibleStyle,nu=wu.bodyHiddenStyle,ru=wu.bodyHidingEnabled,ou=wu.deviceIdLifetime/1E3,iu=wu.sessionIdLifetime/1E3,uu=wu.selectorsPollingTimeout,su=wu.visitorApiTimeout,cu=wu.overrideMboxEdgeServer,au=wu.overrideMboxEdgeServerTimeout,fu=wu.optoutEnabled,lu=wu.cookieDomain,pu="disabled"!==Zi,hu="x-only"===Zi,du=wu.secureOnly?"https:":"",bu=wu.supplementalDataIdParamTimeout}function r(t){return t}function o(){for(var t=
[],e="0123456789abcdef",n=0;n<36;n++)t[n]=e.substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]=_u,t.join(_u)}function i(t){setTimeout(t,0)}function u(t){for(var e=5381,n=0;n<t.length;n++)e=(e<<5)+e+t.charCodeAt(n);return e}function s(){}function c(t){return"string"===Ou.type(t)}function a(t){return c(t)&&Ou.trim(t).length>0}function f(t){return!c(t)||0===t.length}function l(t){return"number"===Ou.type(t)}function p(t){return"undefined"===Ou.type(t)}
function h(t){return Ou.isArray(t)}function d(t){return Ou.isFunction(t)}function b(t){return"null"===Ou.type(t)}function v(t){return"object"===Ou.type(t)}function m(t){return t&&1===t.nodeType&&"object"===Ou.type(t)&&!Ou.isPlainObject(t)}function y(t){return!(h(t)&&t.length>0)}function g(t){return v(t)&&a(t.error)?t.error:p(t)||b(t)||!a(t.message)?a(t)?t:as:t.message}function w(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}
function x(t){var e;switch(t.arrayFormat){case "index":return function(t,n,r){if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e)return void(r[t]=n);void 0===r[t]&&(r[t]={}),r[t][e[1]]=n};case "bracket":return function(t,n,r){return e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0===r[t]?void(r[t]=[n]):void(r[t]=[].concat(r[t],n)):void(r[t]=n)};default:return function(t,e,n){if(void 0===n[t])return void(n[t]=e);n[t]=[].concat(n[t],e)}}}function _(t){return Array.isArray(t)?t.sort():"object"==
typeof t?_(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}function E(t){try{return encodeURIComponent(t)}catch(e){return t}}function O(t){try{return decodeURIComponent(t)}catch(e){return t}}function S(t){return gs[t]?gs[t]:(ys.href=t,gs[t]=fs(ys.href))}function T(t,e){if(!e)return"";var n="; "+t;return!0===e?n:n+"\x3d"+e}function j(t){if("number"==typeof t.expires){var e=new Date;e.setMilliseconds(e.getMilliseconds()+864E5*t.expires),t.expires=e}return T("Expires",
t.expires?t.expires.toUTCString():"")+T("Domain",t.domain)+T("Path",t.path)+T("Secure",t.secure)}function A(t,e,n){return encodeURIComponent(t).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"\x3d"+encodeURIComponent(e).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+j(n)}function C(t){for(var e={},n=t?t.split("; "):[],r=/(%[0-9A-Z]{2})+/g,o=0;o<n.length;o++){var i=n[o].split("\x3d"),u=i.slice(1).join("\x3d");
'"'===u.charAt(0)&&(u=u.slice(1,-1));try{e[i[0].replace(r,decodeURIComponent)]=u.replace(r,decodeURIComponent)}catch(t){}}return e}function k(){return C(document.cookie)}function N(t){return k()[t]}function P(t,e,n){document.cookie=A(t,e,xs({path:"/"},n))}function D(t,e){P(t,"",xs({},e,{expires:-1}))}function I(t){return/^(?!0)(?!.*\.$)((1?\d?\d|25[0-5]|2[0-4]\d)(\.|$)){4}$/.test(t)}function M(t){if(I(t))return t;var e=t.split(".").reverse(),n=e.length;return n>=3&&/^(com|edu|gov|net|mil|org|nom|co|name|info|biz)$/i.test(e[1])?
e[2]+"."+e[1]+"."+e[0]:1===n?e[0]:e[1]+"."+e[0]}function F(){Ts(Ds,zs,{domain:lu});var t=Ss(Ds)===zs;return js(Ds),t}function q(){var t=Ss(Rs),e=ms(Vi.search);return a(t)||a(e[Us])}function $(){return Hi&&F()&&!q()}function R(){var t=Ss($s),e=ms(Vi.search);return a(t)||a(e[Vs])}function L(){var t=Ss(Ls),e=ms(Vi.search),n=ms(vs($i.referrer));return a(t)||a(e[Hs])||a(n[Hs])}function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console.warn.apply(console,[].concat.apply([Bs],t))}function U(){for(var t=
[],e=0;e<arguments.length;e++)t[e]=arguments[e];R()&&console.log.apply(console,[].concat.apply([Bs],t))}function H(){var t={};return t.valid=!0,t}function z(t){var e={};return e.valid=!1,e.error=t,e}function B(t){return f(t)?z(Au):t.length>As?z(Cu):H()}function W(t){if(!v(t))return z(ju);var e=t.mbox,n=B(e);return n.valid?d(t.success)?d(t.error)?H():z(Nu):z(ku):n}function Z(t){return v(t)?h(t.offer)?H():z(Du):z(ju)}function J(t){if(!v(t))return z(ju);var e=t.mbox,n=B(e);return n.valid?H():n}function Y(t,
e){return-1!==e.indexOf(t)}function X(t){return Ou.isEmptyObject(t)?[]:Object.keys(t)}function G(t,e){return Ou.map(e,t)}function K(t,e){return Ou.grep(e,t)}function Q(t){return[].concat.apply([],t)}function tt(t,e){Ou.each(e,function(e,n){return t(n,e),!0})}function et(t,e){var n={};return tt(function(t,e){return n[e]=t},t),tt(function(t,e){return n[e]=t},e),n}function nt(t,e,n){var r=et({},t),o=X(e).filter(function(t){return!Y(t,n)});return tt(function(t){return r[t]=e[t]},o),r}function rt(t){return Ou.isArray(t)&&
t.length>0?t[0]:null}function ot(t,e){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function it(t){return Ou.trim(t)}function ut(t){return{key:t,val:t.charAt(0)+"\\3"+t.charAt(1)+" "}}function st(t){var e=t.match(pc);if(y(e))return t;var n=G(ut,e),r=t;return tt(function(t){r=r.replace(t.key,t.val)},n),r}function ct(t){for(var e,n,r,o,i=[],u=it(t),s=u.indexOf(ac);-1!==s;)e=it(u.substring(0,s)),n=it(u.substring(s)),o=n.indexOf(fc),r=it(n.substring(lc,o)),u=it(n.substring(o+
1)),s=u.indexOf(ac),e&&r&&i.push({sel:e,eq:Number(r)});return u&&i.push({sel:u}),i}function at(t){if(m(t))return Ou(t);if(!c(t))return Ou(t);var e=st(t);if(-1===e.indexOf(ac))return Ou(e);var n=ct(e),r=Ou($i);return tt(function(t){var e=t.sel,n=t.eq;r=r.find(e),l(n)&&(r=r.eq(n))},n),r}function ft(t){return at(t).length>0}function lt(t){at(t).remove()}function pt(t,e){at(t).before(e)}function ht(t){return Ou("\x3c"+oc+"/\x3e").append(t)}function dt(t,e,n){var r=Ou(t),o=r.attr(e);a(o)&&(r.removeAttr(e),
r.attr(n,o))}function bt(t,e){return a(Ou(t).attr(e))}function vt(t){return"function"==typeof t}function mt(t){return null!=t&&"object"==typeof t}function yt(){try{return vu.apply(this,arguments)}catch(t){return _c.errorObject.e=t,_c.errorObject}}function gt(t){return vu=t,yt}function wt(t){return t.reduce(function(t,e){return t.concat(e instanceof Ic.UnsubscriptionError?e.errors:e)},[])}function xt(t,e,n){if(t){if(t instanceof Qc.Subscriber)return t;if(t[ta.$$rxSubscriber])return t[ta.$$rxSubscriber]()}return t||
e||n?new Qc.Subscriber(t,e,n):new Qc.Subscriber(ea.empty)}function _t(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}function Et(){return za in qi&&Ba in new qi[za]}function Ot(t){if(t.dataType===ma)return t.cache=!0,t;if(t.dataType!==da)return t;if(Et()){var e={};e[Ba]=!0,t.xhrFields=e}else t.dataType=ba,t.jsonp=ka;return t}function St(t){return pa.create(function(e){var n=!1,r={success:function(t){n=!0,e.next({data:t}),
e.complete()},error:function(t,r,o){var i=g(o||r);n=!0,e.next({status:r,error:i}),e.complete()}};Ou.ajaxSettings.global=!1;var o=Ou.ajax(Ot(Ou.extend(!0,r,t)));return function(){n||o.abort()}})}function Tt(t){return!y(t)&&2===t.length&&a(it(t[0]))}function jt(t){var e=t.indexOf(Zs);return-1===e?[]:[t.substr(0,e),t.substr(e+1)]}function At(t,e,n,r){tt(function(t,o){v(t)?(e.push(o),At(t,e,n,r),e.pop()):y(e)?n[r(o)]=t:n[r(e.concat(o).join(Xs))]=t},t)}function Ct(t){var e={},n=[],r=K(a,t);tt(function(t){return n.push(jt(t))},
r);var o=K(Tt,n);return tt(function(t){return e[O(it(t[0]))]=O(it(t[1]))},o),e}function kt(t){var e={},n=ms(Js+t);return tt(function(t,n){a(n)&&(e[n]=t)},n),e}function Nt(t,e){var n={};return p(e)?At(t,[],n,r):At(t,[],n,e),n}function Pt(t){p(qi[Wa])||d(qi[Wa][Za])&&qi[Wa][Za](t)}function Dt(t,e,n){p(qi[Wa])||d(qi[Wa][Ja])&&qi[Wa][Ja](t,e,n)}function It(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function Mt(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=
e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var u=o[i];if("entries"!==u&&"size"!==u&&r.prototype[u]===r.prototype.entries)return u}return"@@iterator"}function Ft(t,e,n,r){var o=new Df.InnerSubscriber(t,n,r);if(o.closed)return null;if(e instanceof Nf.Observable)return e._isScalar?(o.next(e.value),o.complete(),null):e.subscribe(o);if(Af.isArray(e)){for(var i=
0,u=e.length;i<u&&!o.closed;i++)o.next(e[i]);o.closed||o.complete()}else{if(Cf.isPromise(e))return e.then(function(t){o.closed||(o.next(t),o.complete())},function(t){return o.error(t)}).then(null,function(t){jf.root.setTimeout(function(){throw t;})}),o;if(e&&"function"==typeof e[Pf.$$iterator])for(var s=e[Pf.$$iterator]();;){var c=s.next();if(c.done){o.complete();break}if(o.next(c.value),o.closed)break}else if(e&&"function"==typeof e[If.$$observable]){var a=e[If.$$observable]();if("function"==typeof a.subscribe)return a.subscribe(new Df.InnerSubscriber(t,
n,r));o.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var f=kf.isObject(e)?"an invalid object":"'"+e+"'",l="You provided "+f+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";o.error(new TypeError(l))}}return null}function qt(t){return t&&"function"==typeof t.schedule}function $t(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new Fl(t,
e))}function Rt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new Wl(t,e,n))}function Lt(t){return t instanceof Date&&!isNaN(+t)}function Vt(t,e,n){void 0===n&&(n=Sp.async);var r=Tp.isDate(t),o=r?+t-n.now():Math.abs(t);return this.lift(new kp(o,r,e,n))}function Ut(t){return fu&&d(t[Wp])&&!p(qi.Visitor[Xp])}function Ht(t){return Ut(t)?pa.create(function(e){t[Wp](function(t){e.next(t),e.complete()},qi.Visitor[Xp].GLOBAL,!0)}):pa.of(!1)}function zt(t){return Fp+
t}function Bt(t){if(!d(t[Zp]))return{};var e=t[Zp]();return v(e)?Nt(e,zt):{}}function Wt(t){var e={};return a(t[Jp])&&(e[qp]=t[Jp]),a(t[Yp])&&(e[$p]=t[Yp]),e}function Zt(t,e){var n={};return tt(function(t){return tt(function(t,e){return n[e]=t},t)},e),tt(function(t,e){return n[e]=t},Bt(t)),tt(function(t,e){return n[e]=t},Wt(t)),n}function Jt(t,e,n){return d(t[e])?pa.create(function(r){t[e](function(t){var e={};e[n]=t,r.next(e),r.complete()},!0)}):pa.of({})}function Yt(t){var e=[Jt(t,Vp,_a),Jt(t,Up,
wa),Jt(t,Hp,ga),Jt(t,zp,xa)];return pa.forkJoin.apply(pa,e).map(function(e){return Zt(t,e)})}function Xt(t,e,n){var r=Qt(t,e);return a(r)&&(n[Ea]=r),n}function Gt(){return{status:Ya,error:Pu}}function Kt(t,e){return e?pa["throw"](Gt()):pa.of(t)}function Qt(t,e){return d(t[Bp])?t[Bp](Mp+":"+zi+":"+e):Ws}function te(){if(f(Bi))return null;if(p(qi.Visitor))return null;if(b(qi.Visitor))return null;if(!d(qi.Visitor[Rp]))return null;var t={sdidParamExpiry:bu},e=qi.Visitor[Rp](Bi,t);return v(e)&&d(e[Lp])&&
e[Lp]()?e:null}function ee(t){var e=te();if(b(e))return pa.of({});var n=++Gp,r=""+ef+n,o=""+nf+n,i=rf+":request:"+n+":mbox:"+t,u=function(){Pt(r)},s=function(){Pt(o),Dt(i,r,o)};return pa.of(e)["do"](u).flatMap(Ht).flatMap(function(t){return Kt(e,t)}).flatMap(Yt).timeoutWith(su,pa.of({})).map(function(n){return Xt(e,t,Zt(e,[n]))})["do"](s)}function ne(t,e,n){return{name:t,value:e,expires:n}}function re(t){return[E(t.name),E(t.value),t.expires].join(Gs)}function oe(t){var e=t.split(Gs);return y(e)||
e.length<3?null:isNaN(parseInt(e[2],10))?null:ne(O(e[0]),O(e[1]),Number(e[2]))}function ie(t){return f(t)?[]:t.split(Ks)}function ue(t){return t.expires}function se(t){var e=G(ue,t);return Math.max.apply(Math,e)}function ce(){var t={},e=Ss(Is),n=G(oe,ie(e)),r=Math.ceil(Date.now()/1E3),o=K(function(t){return v(t)&&r<=t.expires},n);return tt(function(e){return t[e.name]=e},o),t}function ae(t){var e=G(r,t),n=Math.abs(1E3*se(e)-Date.now()),o=G(re,e).join(Ks),i=new Date(Date.now()+n);Ts(Is,o,{domain:lu,
expires:i})}function fe(t,e,n){if(!hu){var r=ce();r[t]=ne(t,e,Math.ceil(n+Date.now()/1E3)),ae(r)}}function le(t){if(hu)return Ws;var e=ce(),n=e[t];return v(n)?n.value:Ws}function pe(t){fe(Fs,t,iu)}function he(){return hu?Kp:(f(le(Fs))&&fe(Fs,Kp,iu),le(Fs))}function de(t){var e=t.split(Xs);if(2!==e.length||f(e[1]))return Ws;var n=e[1].split(Qs);return 2!==n.length||f(n[0])?Ws:n[0]}function be(t){if(cu){var e=de(t);if(!f(e)){var n=new Date(Date.now()+au);Ts(qs,e,{domain:lu,expires:n})}}}function ve(){return le(Ms)}
function me(t){fe(Ms,t,ou),be(t)}function ye(){return Qp}function ge(){var t=new Date;return t.getTime()-6E4*t.getTimezoneOffset()}function we(){return th++}function xe(){var t={};return t[$a]=he(),hu||(t[Va]=ve()),t[qa]=ye(),t[Ha]=Qi,t[Ia]=Ws+we(),t[La]=Ws+ge(),t[Ma]=Vi.hostname,t[Ua]=Vi.href,t[Ra]=$i.referrer,pu&&(t[Da]=Zi),t}function _e(){var t={};return t[ja]=Ws+Ri.clientHeight,t[Ca]=Ws+Ri.clientWidth,t[Aa]=Ws+-(new Date).getTimezoneOffset(),t[Sa]=Ws+Li.height,t[Ta]=Ws+Li.width,t[Oa]=Ws+Li.colorDepth,
t}function Ee(t){if(!d(t))return{};var e=null;try{e=t()}catch(t){}return b(e)?{}:h(e)?Ct(e):a(e)?kt(e):v(e)?Nt(e):{}}function Oe(){return et(Gi||{},Ee(qi.targetPageParamsAll))}function Se(){return et(Ki||{},Ee(qi.targetPageParams))}function Te(t){return Yi!==t?Oe():et(Oe(),Se())}function je(){return Ss(qs)}function Ae(){if(!cu)return Wi;var t=je();return f(t)?Wi:Wi.replace(zi,[nh,t].join(Ws))}function Ce(){return oh.replace(rh,zi)}function ke(){return[du,ih,Ae(),Ce()].join(Ws)}function Ne(t,e){var n=
e.mbox,r={};return r[Fa]=n,r=et(r,xe()),r=et(r,_e()),r=et(r,t),r=et(r,Te(n)),r=et(r,e.params)}function Pe(t,e){var n={};return n.type=eh,n.url=ke(),n.dataType=da,n.data=Ne(t,e),n.timeout=e.timeout,n}function De(t){var e=t.mbox,n=++uh,r=""+of+n,o=""+uf+n,i=sf+":request:"+n+":mbox:"+e,u=function(){Pt(r)},s=function(){Pt(o),Dt(i,r,o)};return pa.of(e).flatMap(ee).map(function(e){return Pe(e,t)})["do"](u).flatMap(St)["do"](s)}function Ie(t){var e=t.sessionId;a(e)&&pe(e)}function Me(t){var e=t.tntId;a(e)&&
me(e)}function Fe(t){if(p(qi[sh]))return void(qi[sh]=[t]);h(qi[sh])&&qi[sh].push(t)}function qe(t){var e=t.trace;v(e)&&Fe(e)}function $e(t){var e=t.error;return a(e)?pa["throw"](Wn(Ya,e)):pa.of(t)}function Re(t){var e=t.message;return f(e)?ah:e}function Le(t){var e=t.duration;return l(e)?e:ch}function Ve(t){var e=Re(t),n=new Date(Date.now()+Le(t));Ts(Rs,e,{domain:lu,expires:n})}function Ue(t){var e=t.disabled;return v(e)?(Ve(e),pa["throw"](Wn(Ga,Re(e)))):pa.of(t)}function He(t){return a(t.html)}function ze(t){return a(t.redirect)}
function Be(t){return!y(t.actions)}function We(t){return v(t.dynamic)&&a(t.dynamic.url)}function Ze(t){return p(t.html)&&p(t.redirect)&&p(t.actions)&&p(t.dynamic)}function Je(t){return a(t.clickToken)}function Ye(t){return!y(t.plugins)}function Xe(t){return Je(t)?[{action:_h,clickTrackId:t.clickToken}]:[]}function Ge(t){return Ye(t)?[t.html].concat(t.plugins):[t.html]}function Ke(t){var e=K(He,t);if(y(e))return pa.of([]);var n={};return n[jh]=fh,n[Ph]=Q(G(Ge,e)).join(Ws),pa.of([n].concat(G(Xe,t)))}
function Qe(t,e){var n=t.split(Gs),r=n[1],o=n[0];return e&&!~o.indexOf(e)&&(~o.indexOf(Js)?o+=Ys+e:o+=Js+e),r?o+Gs+r:o}function tn(){return[$a,Zs,he()].join(Ws)}function en(t){return[Qh,Zs,E(t)].join(Ws)}function nn(t){var e=en($i.referrer),n=Qe(t,e),r=te();return b(r)?n:d(r[td])?r[td](n):n}function rn(t){var e=String(t[Wh]),n=String(t[Zh]),r=Vi.search.substring(1),o=t[Bh];if(f(o))return U(Zu,t),null;e&&ed===e&&(o=Qe(o,r)),n&&ed===n&&(o=Qe(o,tn()));var i=nt({},t,[Bh,Wh,Zh]);return i[Bh]=nn(o),i}function on(t){var e=
{action:wh,url:t.redirect};return pa.of([rn(e)])}function un(t){return{action:yh,content:t}}function sn(t){return Ye(t)?G(un,t.plugins):[]}function cn(t){var e=t[Xh];if(f(e))return Ws;var n=ud.exec(e);return y(n)?Ws:2!==n.length?Ws:n[1]}function an(t,e){var n=ht(e);return n.children().first().attr(rd,t),n.html()}function fn(t){var e=t[Ph],n=cn(t);if(f(n)||f(e))return et({},t);var r=t[Xh],o=nt({},t,[Xh,Ph]);return o[Xh]=r.replace(sd,Ws),o[Ph]=an(n,e),o}function ln(t){var e=[],n=t[Ch];if(f(n))return t;
f(t[kh])?e.push(Ch):e.push(kh,Ch);var r=nt({},t,e);return r[Ph]="\x3c"+rc+" "+nd+'\x3d"'+n+'" /\x3e',r}function pn(t){var e=fn(t);if(!c(e[Ph]))return U(Vu,e),null;var n=t[Dh];return ya===n&&(e[jh]=lh),nt({},e,[Dh])}function hn(t){var e=fn(t);return c(e[Ph])?e:(U(Vu,e),null)}function dn(t){var e=fn(t);return c(e[Ph])?e:(U(Vu,e),null)}function bn(t){var e=fn(t);return c(e[Ph])?e:(U(Vu,e),null)}function vn(t){var e=fn(ln(t));return c(e[Ph])?e:(U(Vu,e),null)}function mn(t){var e=fn(ln(t));return c(e[Ph])?
e:(U(Vu,e),null)}function yn(t){return c(t[Ph])?t:(U(Vu,t),null)}function gn(t){var e=t[Ah],n=t[Ch];return f(e)||f(n)?(U(Uu,t),null):t}function wn(t){var e=t[Jh],n=t[Ch];if(f(e)||f(n))return U(Hu,t),null;var r={},o=nt({},t,[Jh,Ch]);return r[e]=n,o[Kh]=r,o}function xn(t){var e=t[Ih],n=t[Mh];if(f(e)||f(n))return U(zu,t),null;var r={},o=nt({},t,[jh,Ih,Mh]);return r[Fh]=e,r[qh]=n,o[Kh]=r,o[jh]=hh,o}function _n(t){var e=Number(t[$h]),n=Number(t[Rh]);if(isNaN(e)||isNaN(n))return U(Bu,t),null;var r,o=t[Uh],
i={};return a(o)?(i[Uh]=o,r=nt({},t,[jh,$h,Rh,Uh])):r=nt({},t,[jh,$h,Rh]),i[Lh]=e,i[Vh]=n,r[Kh]=i,r[jh]=hh,r}function En(t){var e=Number(t[Hh]),n=Number(t[zh]);return isNaN(e)||isNaN(n)?(U(Wu,t),null):t}function On(t){return rn(t)}function Sn(t){return f(t[Nh])?(U(Ju,t),null):t}function Tn(t){switch(t[jh]){case fh:return pn(t);case gh:return hn(t);case Sh:return dn(t);case Th:return bn(t);case Eh:return vn(t);case Oh:return mn(t);case yh:return yn(t);case ph:return gn(t);case hh:return wn(t);case bh:return xn(t);
case vh:return _n(t);case mh:return t;case dh:return En(t);case wh:return On(t);case xh:return Sn(t);default:return null}}function jn(t){return K(function(t){return!b(t)},G(function(t){return Tn(t)},t))}function An(t){return pa.of([].concat(jn(t.actions),sn(t)))}function Cn(t){var e={};return tt(function(t){p(e[t.type])&&(e[t.type]={}),e[t.type][t.name]=t.defaultValue},t.params),e}function kn(t){return p(t.request)?{}:t.request}function Nn(t){return-1!==t.indexOf(cd)}function Pn(t){var e={};return p(t.mbox)?
e:(tt(function(t,n){Nn(n)||(e[n]=t)},t.mbox),e)}function Dn(t,e,n,r){var o={};return o=et(o,et(t,e)),o=et(o,et(n,r))}function In(t,e,n){var r={};return r.type=eh,r.url=t,r.dataType=va,r.data=e,r.timeout=n,r}function Mn(t,e){var n={};return n[jh]=fh,n[Ph]=t.data,[n].concat(Xe(e),sn(e))}function Fn(t,e){var n=e.dynamic,r=Cn(n),o=kn(r),i=Pn(r),u=ms(Vi.search),s=t.params,c=n.url,a=Dn(o,u,i,s),f=t.timeout;return pa.of(In(c,a,f)).flatMap(St).map(function(t){return Mn(t,e)})}function qn(t){return pa.of([].concat(Xe(t),
sn(t)))}function $n(t,e){var n=[];return tt(function(e){return ze(e)?void n.push(on(e)):Be(e)?void n.push(An(e)):We(e)?void n.push(Fn(t,e)):Ze(e)?void n.push(qn(e)):void 0},e),n.concat(Ke(e))}function Rn(t){var e=[];return tt(function(t){var n=t.responseTokens;v(n)&&e.push(n)},t),e}function Ln(t,e){var n=e.offers;if(!h(n))return pa.of({actions:[],responseTokens:[]});var r=$n(t,n),o=Rn(n);return pa.forkJoin.apply(pa,r).map(Q).map(function(t){return{actions:t,responseTokens:o}})}function Vn(t,e,n){return this.lift(new pd(t,
e,n))}function Un(t,e){return pa.of(e)["do"](Ie)["do"](Me)["do"](qe).flatMap($e).flatMap(Ue).flatMap(function(e){return Ln(t,e)})}function Hn(t){var e=t.data;return v(e)?pa.of(e):pa.of(t)}function zn(t){var e=t.params;return v(e)?e:{}}function Bn(t){var e=t.timeout;return l(e)&&e>=0?e:Ji}function Wn(t,e){return{status:t,error:e}}function Zn(t){var e=[];return ht(t).find(md).forEach(function(t){e.push(ht(t).html())}),e.join(Ws)}function Jn(t){return pa.of(t).flatMap(De).flatMap(Hn).flatMap(function(e){return Un(t,
e)})}function Yn(t,e){var n=new qi.CustomEvent(t,{detail:e});$i.dispatchEvent(n)}function Xn(){var t=he(),e=ve();return a(e)?{sessionId:t,deviceId:e}:{sessionId:t}}function Gn(t){var e=t.responseTokens,n={type:yd,mbox:t.mbox,tracking:Xn()};y(e)||(n.responseTokens=e),Yn(yd,n)}function Kn(t){Yn(gd,{type:gd,mbox:t.mbox,message:t.message,tracking:Xn()})}function Qn(t){Yn(wd,{type:wd,mbox:t.mbox,tracking:Xn()})}function tr(t){Yn(xd,{type:xd,mbox:t.mbox,message:t.message,selectors:t.selectors,tracking:Xn()})}
function er(t,e){var n=t.mbox,r=e.actions,o=e.responseTokens;U(_d,Fu,r),t.success(r),Gn({mbox:n,responseTokens:o})}function nr(t,e){var n=t.mbox,r=e.status||Ka,o=g(e);V(_d,qu,e),t.error(r,o),Kn({mbox:n,message:o})}function rr(t){var e={};return e.mbox=t.mbox,e.params=zn(t),e.timeout=Bn(t),e}function or(t){var e=W(t),n=e.error;if(!e.valid)return i(t.error(Xa,n)),void V(_d,n);if(!$())return i(t.error(Xa,Su)),void V(Su);var r=rr(t),o=function(e){return er(t,e)},u=function(e){return nr(t,e)};Jn(r).subscribe(o,
u)}function ir(){return Ou(ec).eq(0)}function ur(t,e){return"\x3c"+nc+" "+rd+'\x3d"'+t+'" '+od+'\x3d"'+Od+'"\x3e'+e+"\x3c/"+nc+"\x3e"}function sr(){!0===ru&&ft(Cd)&&(lt(Cd),Pt(Qa))}function cr(){!0===ru&&(ft(Cd)||(pt(ir(),ur(Ad,nu)),Pt(tf)))}function ar(t){y(t)||tt(function(t){var e=jd+u(t),n=t+" {"+tu+"}";pt(ir(),ur(e,n))},t)}function fr(t){lt("#"+(jd+u(t)))}function lr(t,e){at(t).removeClass(Ed).addClass(e?Td:Sd)}function pr(){if($()){var t=Ou(tc),e="."+Ed+" {"+tu+"}",n="."+Sd+" {"+eu+"}";t.append("\x3c"+
nc+" "+rd+'\x3d"'+kd+'"\x3e'+e+"\x3c/"+nc+"\x3e"),t.append("\x3c"+nc+"\x3e"+n+"\x3c/"+nc+"\x3e")}}function hr(t){var e=Ou(t).attr(nd);return a(e)?e:null}function dr(t){return K(a,G(hr,t.find(ec).get()))}function br(t){var e={};return e.type=eh,e.url=t,e.dataType=ma,U(cs,t),St(e).map(function(t){return Ws})}function vr(t){return Ou(t).attr(Cs)}function mr(t){return t.find(rc).forEach(function(t){return dt(t,nd,Cs)}),t}function yr(t){return t.find(rc).forEach(function(t){return dt(t,Cs,nd)}),t}function gr(t){var e=
function(t){return bt(t,Cs)},n=K(e,t.find(rc).get());return y(n)?t:(tt(wr,G(vr,n)),t)}function wr(t){return U(Xu,t),Ou("\x3c"+rc+"/\x3e").attr(nd,t).attr(nd)}function xr(t){return pa.of(t).map(mr).map(gr).map(yr)}function _r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function Er(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}function Or(t){var e=t[Ld.$$iterator];if(!e&&"string"==typeof t)return new Hd(t);if(!e&&void 0!==t.length)return new zd(t);if(!e)throw new TypeError("object is not iterable");
return t[Ld.$$iterator]()}function Sr(t){var e=+t.length;return isNaN(e)?0:0!==e&&Tr(e)?(e=jr(e)*Math.floor(Math.abs(e)),e<=0?0:e>Bd?Bd:e):e}function Tr(t){return"number"==typeof t&&$d.root.isFinite(t)}function jr(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}function Ar(t,e){return void 0===e&&(e=0),this.lift(new cb(t,e))}function Cr(t){var e=new Rb(t),n=this.lift(e);return e.caught=n}function kr(t,e){return this.lift(new zb.MergeMapOperator(t,e,1))}function Nr(t,e,n){var r=dr(n),o=function(n){return t(e,
n)};return y(r)?pa.of(n).map(o).map(function(){return Ws}):pa.of(n).map(o).flatMap(function(){return pa.from(r).concatMap(br)})}function Pr(t){return function(e){return U(Mu,e),pa.of(t)}}function Dr(t,e){var n=e[Ph],r=at(e[Xh]),o=ht(n),i=function(e){return Nr(t,r,e)};return xr(o).flatMap(i).map(function(){return e})["catch"](Pr(e))}function Ir(t,e){return t.html(e.html())}function Mr(t){return U(Lu,t),Dr(Ir,t)}function Fr(t){var e=at(t[Xh]),n=t[Ph];return U(Lu,t),e.text(n),pa.of(t)}function qr(t,
e){return t.append(e.html())}function $r(t){return U(Lu,t),Dr(qr,t)}function Rr(t,e){return t.prepend(e.html())}function Lr(t){return U(Lu,t),Dr(Rr,t)}function Vr(t,e){var n=t.parent();return t.before(e.html()).empty().remove(),n}function Ur(t){return U(Lu,t),Dr(Vr,t)}function Hr(t,e){return t.before(e.html()),t.prev()}function zr(t){return U(Lu,t),Dr(Hr,t)}function Br(t,e){return t.after(e.html()),t.next()}function Wr(t){return U(Lu,t),Dr(Br,t)}function Zr(t,e){return t.before(e.html()).parent()}
function Jr(t){return U(Lu,t),Dr(Zr,t)}function Yr(t,e){return nd===e&&t.is(rc)}function Xr(t,e){t.removeAttr(nd),t.attr(nd,wr(e))}function Gr(t){var e=t[Ah],n=t[Ch],r=at(t[Xh]);return U(Lu,t),Yr(r,e)?Xr(r,n):r.attr(e,n),pa.of(t)}function Kr(t,e,n){t.forEach(function(t){var r=X(e);tt(function(r){return t.style.setProperty(r,e[r],n)},r)})}function Qr(t){var e=at(t[Xh]),n=t[Yh];return U(Lu,t),f(n)?e.css(t[Kh]):Kr(e,t[Kh],n),pa.of(t)}function to(t){var e=at(t[Xh]);return U(Lu,t),e.empty().remove(),pa.of(t)}
function eo(t){var e=t[Hh],n=t[zh],r=at(t[Xh]),o=r.children(),i=o.eq(e),u=o.eq(n);return ft(i)&&ft(u)?(U(Lu,t),e<n?u.after(i):u.before(i),pa.of(t)):(U(Yu,t),pa.of(t))}function no(t){if(f(t))return!0;var e=S(t);return a(e.anchor)&&e.host===Vi.hostname&&e.port===Vi.port&&"http"===e.protocol.slice(0,4)}function ro(t){var e=Ou(t),n=e.attr(id);return!(!e.is(cc)||!a(n)||n.toLowerCase()!==Xb)||(!(!e.is(sc)||!a(n)||n.toLowerCase()!==Xb)||!(!e.is(sc)||!f(n)))}function oo(t){var e=t.currentTarget;return function(){Ou(e).parent().trigger(Yb),
Vi.href=e.href}}function io(t){var e=t.currentTarget;return function(){Ou(e).parent().trigger(Xb),e.submit()}}function uo(t){var e=t.currentTarget;return function(){Ou(e).parent().trigger(Yb),e.submit()}}function so(t){return t.target===Gb}function co(t){var e=Ou(t.currentTarget);return t.type===Yb&&e.is(ic)}function ao(t){var e=Ou(t.currentTarget);return t.type===Xb&&Ou(e).is(uc)}function fo(t){var e=t.target,n=t.currentTarget;return t.type===Yb&&e!==n&&ro(e)}function lo(t){return co(t)&&po(t)?oo(t):
fo(t)&&!so(t.currentTarget)?uo(t):ao(t)&&!so(t.currentTarget)?io(t):s}function po(t){var e=t.currentTarget,n=e.href;return!f(n)&&(t.type===Yb&&!no(n)&&!so(e)&&!t.hasMetaKey)}function ho(t){return t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.which>1}function bo(t){var e=et({},t);return e.params=zn(t),e.timeout=Bn(t),e.success=d(t.success)?t.success:function(){},e.error=d(t.error)?t.error:function(t,e){},e}function vo(t){return a(t.type)&&(a(t.selector)||m(t.selector))}function mo(t){return function(){U(Gu,
t),t.success()}}function yo(t){return function(e){var n=e.status||Ka,r=g(e);V(Ku,t,e),t.error(n,r)}}function go(t,e){mo(t)(),lo(e)()}function wo(t,e,n){yo(t)(n),lo(e)()}function xo(t,e,n){var r={};r.mbox=t.mbox,r.params=t.params,r.timeout=t.timeout,Jn(r).subscribe(e,n)}function _o(t,e){var n=ho(e),r=e.target,o=e.currentTarget,i=e.type,u={target:r,currentTarget:o,type:i,hasMetaKey:n};return xo(t,function(){return go(t,u)},function(e){return wo(t,u,e)}),!(co(u)&&po(u)||fo(u)&&!so(o)||ao(u)&&!so(o)||
t.preventDefault)}function Eo(t){var e=t.selector,n=t.type;tt(function(e){Ou(e).on(n,function(e){return _o(t,e)})},at(e))}function Oo(t){var e=J(t),n=e.error;return t=bo(t),e.valid?$()?vo(t)?void Eo(t):void xo(t,mo(t),yo(t)):(i(t.error(Xa,Su)),void V(Su)):(i(t.error(Ya,n)),void V(Kb,n))}function So(t,e){var n={};return n[t]=e,n}function To(t,e,n){var r={};return r.mbox=t+Ns,r.type=Yb,r.selector=e,r.params=n,r}function jo(t,e,n){U(Lu,t);var r=t[Nh];return Oo(To(e,t[Xh],So(n,r))),pa.of(t)}function Ao(t,
e){return jo(e,t,Pa)}function Co(t,e){return jo(e,t,Na)}function ko(t){var e=t[Ph];if(f(e))return t;if(!at(t[Xh]).is(tc))return t;var n=nt({},t,[jh,Ph]);return n[jh]=gh,n[Ph]=Zn(e),n}function No(t,e){var n=ko(e);switch(n[jh]){case fh:return Mr(n);case lh:return Fr(n);case gh:return $r(n);case Sh:return Lr(n);case Th:return Ur(n);case Eh:return zr(n);case Oh:return Wr(n);case yh:return Jr(n);case ph:return Gr(n);case hh:return Qr(n);case mh:return to(n);case dh:return eo(n);case xh:return Ao(t,n);
case _h:return Co(t,n);default:return pa.of(n)}}function Po(t){var e=t[Bh];return U(Lu,t),Vi.replace(e),pa.of(t)}function Do(t){return!yv.isArray(t)&&t-parseFloat(t)+1>=0}function Io(t){return void 0===t&&(t=-1),0===t?new qv.EmptyObservable:t<0?this.lift(new Rv(-1,this)):this.lift(new Rv(t-1,this))}function Mo(t){return this.lift(new Jv(t))}function Fo(t){return this.lift(new nm(t))}function qo(t){return a(t)?t:m(t)?t:tc}function $o(t,e){p(e[Xh])&&(e[Xh]=t)}function Ro(t,e){tt(function(e){return $o(t,
e)},e)}function Lo(t){ar(K(a,G(function(t){return t[Gh]},t)))}function Vo(t){var e=t[Xh],n=t[Gh];(a(e)||m(e))&&lr(e,hm(t)),a(n)&&fr(n)}function Uo(t){tt(Vo,t)}function Ho(t,e){var n=""+cf+e,r=""+af+e,o=ff+":rendering:"+e+":mbox:"+t;Pt(r),Dt(o,n,r)}function zo(t,e,n){var r=function(t){return t[Xh]},o=function(t){return a(t)||m(t)},i=Iu,u=K(o,G(r,n));Uo(n),V(Iu,n),tr({mbox:t,message:i,selectors:u}),Ho(t,e)}function Bo(t,e,n){var r=K(lm,n);if(!y(r))return void zo(t,e,r);U($u),Qn({mbox:t}),Ho(t,e)}function Wo(t,
e){No(t,e).subscribe(function(){U(Ru,e),Vo(e)},function(t){U(Mu,t),Vo(e)})}function Zo(t,e){tt(function(e){ft(e[Xh])&&(Wo(t,e),e.found=!0)},e)}function Jo(t,e){var n=pa.timer(uu),r=++fm;Pt(""+cf+r),pa.of(e,mv).repeat().takeUntil(n).takeWhile(function(t){return ot(lm,t)}).map(function(t){return K(lm,t)}).subscribe(function(e){Zo(t,e)},function(){Bo(t,r,e)},function(){Bo(t,r,e)})}function Yo(t){t===Yi&&sr()}function Xo(t,e){lr(t),Yo(e)}function Go(t){var e=Z(t),n=e.error;if(!e.valid)return V(am,n),
void sr();var r=f(t.mbox)?Yi:t.mbox,o=qo(t.selector),i=B(r),u=i.error;if(!i.valid)return V(am,u),void Xo(o,r);if(!$())return V(Su),void Xo(o,r);var s=t.offer;if(y(s))return U(am,rs),void Xo(o,r);var c=rt(K(pm,s));if(!b(c))return U(am,os),void Po(c);Ro(o,s),Lo(s),Yo(r),Jo(r,s)}function Ko(){ym={logger:{log:U,error:V},settings:{clientCode:zi,serverDomain:Wi,timeout:Ji,globalMboxAutoCreate:Xi,globalMboxName:Yi}}}function Qo(t){if(!v(t))throw new Error("Please provide options");}function ti(t){if(f(t))throw new Error("Please provide extension name");
var e=t.split(".");tt(function(t){if(!mm.test(t))throw new Error("Name space should contain only letters");},e)}function ei(t,e){if(!h(t))throw new Error("Please provide an array of dependencies");if(0===t.length)throw new Error("Please provide an array of dependencies");tt(function(t){if(p(e[t]))throw new Error(t+" module does not exist");},t)}function ni(t){if(!d(t))throw new Error("Please provide extension registration function");}function ri(t,e,n){for(var r=e.split("."),o=r.length,i=0;i<o-1;i++){var u=
r[i];t[u]=t[u]||{},t=t[u]}t[r[o-1]]=n}function oi(t){Ko();var e=qi[dm][bm];Qo(t);var n=t.name;ti(t.name);var r=t.modules;ei(r,ym);var o=t.register;ni(o),e[vm]=e[vm]||{};var i=[];tt(function(t){return i.push(ym[t])},r),ri(e[vm],n,o.apply(void 0,i))}function ii(t){return!y(gm[t])}function ui(t,e){ii(t)?gm[t].push(e):gm[t]=[e]}function si(t){var e=gm[t];return y(e)?[]:e}function ci(t,e,n,r){var o={};return o.mbox=t,o.params=e,o.success=n,o.error=r,o}function ai(t,e,n){var r={};return r.mbox=t,r.selector=
e,r.offer=n,r}function fi(t,e,n,r){var o=ai(t,e,n);U(ts,t),Go(o),r()}function li(t,e,n,r,o){V(es,t,n,r),lr(e),o()}function pi(t,e){Ou(t).attr(ks,e).addClass(""+Ps+e)}function hi(t,e,n,r,o){or(ci(t,e,function(e){return fi(t,n,e,r)},function(e,r){return li(t,n,e,r,o)}))}function di(){return sm.find(function(t){return"interactive"===t.readyState})}function bi(){try{throw new Error;}catch(t){return t.stack}}function vi(t,e){for(var n,r=/[^@\s\(]+$/gm,o=/(:\d+){1,2}\)?$/;n=r.exec(t);){n=n.pop();var i=
n.search(o);if(!(i<0)){var u=e(n.slice(0,i));if(u)return u}}}function mi(t){if(!(t in cm))return yi(t)?sm.last():sm.find(function(e){return e.src===t||e.getAttribute("src")===t})}function yi(t){return"loading"===document.readyState&&location.href.replace(/#.*/,"")===t}function gi(){"currentScript"in $i||(sm=$i.getElementsByTagName("script"),sm.find=function(t){for(var e=0;e<this.length;e++)if(t(this[e]))return this[e]},sm.last=function(){return this[this.length-1]},cm=Object.create(null),$i.addEventListener("load",
function(t){var e=t.target;if("script"===e.nodeName.toLowerCase()){var n=e.src;n&&(cm[n]=null)}},!0))}function wi(){return"currentScript"in $i?$i.currentScript:di()||vi(bi(),mi)||null}function xi(t){var e=wi();if(!m(e))return V(wm,us),null;var n=Ou(e);if(n.parent().is(tc))return U(wm,ss,t),Ou(tc);var r=n.prev();return r.is(oc)&&r.hasClass(Ed)?r:(U(wm,Qu,is,t),Ou(tc))}function _i(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!$()&&!L())return void V(Su);var r=B(t),o=r.error;if(!r.valid)return void V(wm,
o);var i=xi(t);if(!b(i)){var u=i.get(0);pi(u,t);var c=Ct(e);ui(t,{mbox:t,params:c,element:u}),U(wm,t,c,u),$()&&hi(t,c,u,s,s)}}function Ei(t,e){var n=Ou("#"+t);return ft(n)?n:(U(xm,Qu,is,e),Ou(tc))}function Oi(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!$()&&!L())return void V(Su);if(f(t))return void V(xm,ns);var o=B(e),i=o.error;if(!o.valid)return void V(xm,i);var u=Ei(t,e).get(0);pi(u,e);var s=Ct(n);U(xm,e,s,u),ui(e,{mbox:e,params:s,element:u})}function Si(t){for(var e=[],
n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!$())return void V(Su);var r=B(t),i=r.error;if(!r.valid)return void V(_m,i);var u=Ct(e);u[qa]=o();var c=function(t){return hi(t.mbox,et(t.params,u),t.element,s,s)},a=si(t);U(_m,a),tt(c,a)}function Ti(){qi[Sm]=qi[Sm]||{},qi[Sm].querySelectorAll=at}function ji(){$i.addEventListener(Yb,function(t){d(qi[Sm][Tm])&&qi[Sm][Tm](t)},!0)}function Ai(){var t={};return t.type=eh,t.url=xu,t.dataType=ma,t}function Ci(){if(Ti(),L()){var t=Ai(),e=function(t){return ji()},
n=function(t){return V(Em)};U(Om),St(t).subscribe(e,n)}}function ki(){if(!$())return void V(Su);if(!Xi)return void U(jm,Am);if(f(Yi))return void U(jm,Cm);var t=Yi,e={},n=Ou(tc).get(0),r=function(){return sr()};U(ts,Yi),cr(),hi(t,e,n,s,r)}function Ni(){R()&&U(km,Ui)}function Pi(t,e){t.enabled&&tt(function(n){void 0!==e[n]&&(t[n]=e[n])},Nm)}function Di(){var t=document,e=t.compatMode,n=t.documentMode,r=e&&"CSS1Compat"===e,o=!n||n>=9;return r&&o}function Ii(t){t.cookieDomain=M(Vi.hostname),t.enabled=
Di(),Pi(t,qi.targetGlobalSettings||{})}function Mi(){var t=function(){},e=window;e.adobe=e.adobe||{},e.adobe.target={VERSION:"",event:{},___bootstrap:t,getOffer:t,applyOffer:t,trackEvent:t,registerExtension:t},e.mboxCreate=t,e.mboxDefine=t,e.mboxUpdate=t}function Fi(t,r,o){return mu(),t.adobe&&t.adobe.target&&void 0!==t.adobe.target.getOffer?void V(Tu):(e(t,r),Ii(o),n(o),t.adobe.target.VERSION=Qi,t.adobe.target.event={REQUEST_SUCCEEDED:yd,REQUEST_FAILED:gd,CONTENT_RENDERING_SUCCEEDED:wd,CONTENT_RENDERING_FAILED:xd},
o.enabled?(gu(),gi(),pr(),Ci(),ki(),Ni(),t.adobe.target.getOffer=or,t.adobe.target.applyOffer=Go,t.adobe.target.trackEvent=Oo,t.adobe.target.registerExtension=oi,t.mboxCreate=_i,t.mboxDefine=Oi,void(t.mboxUpdate=Si)):(Mi(),void V(Su)))}if(!Di()||window.targetGlobalSettings&&!1===window.targetGlobalSettings.enabled)return Mi(),void("console"in window&&"warn"in window.console&&window.console.warn("AT: Adobe Target content delivery is disabled. Update your DOCTYPE to support Standards mode."));var qi,
$i,Ri,Li,Vi,Ui,Hi,zi,Bi,Wi,Zi,Ji,Yi,Xi,Gi,Ki,Qi,tu,eu,nu,ru,ou,iu,uu,su,cu,au,fu,lu,pu,hu,du,bu,vu,mu=function(){(function(t){"console"in this||(this.console=this.console||{}),"log"in this.console||(this.console.log=function(){}),"warn"in this.console||(this.console.warn=function(){}),Function.prototype.bind&&("object"==typeof this.console.log&&(this.console.log=Function.prototype.call.bind(this.console.log,this.console)),"object"==typeof this.console.warn&&(this.console.warn=Function.prototype.call.bind(this.console.warn,
this.console)))}).call("object"==typeof window&&window||"object"==typeof self&&self||{})},yu=function(){(function(t){(function(t){if(!("Event"in t))return!1;if("function"==typeof t.Event)return!0;try{return new Event("click"),!0}catch(t){return!1}})(this)||function(){function e(t,e){for(var n=-1,r=t.length;++n<r;)if(n in t&&t[n]===e)return n;return-1}var n={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,
storagecommit:1,textinput:1},r=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(e,n){if(!e)throw new Error("Not enough arguments");if("createEvent"in document){var r=document.createEvent("Event"),o=!(!n||n.bubbles===t)&&n.bubbles,i=!(!n||n.cancelable===t)&&n.cancelable;return r.initEvent(e,o,i),r}var r=document.createEventObject();return r.type=e,r.bubbles=!(!n||n.bubbles===t)&&n.bubbles,r.cancelable=!(!n||n.cancelable===t)&&n.cancelable,r},r&&Object.defineProperty(window.Event,
"prototype",{configurable:!1,enumerable:!1,writable:!0,value:r}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var t=this,r=arguments[0],o=arguments[1];if(t===window&&r in n)throw new Error("In IE8 the event: "+r+" is not available on the window object.");t._events||(t._events={}),t._events[r]||(t._events[r]=function(n){var r,o=t._events[n.type].list,i=o.slice(),u=-1,s=i.length;
for(n.preventDefault=function(){!1!==n.cancelable&&(n.returnValue=!1)},n.stopPropagation=function(){n.cancelBubble=!0},n.stopImmediatePropagation=function(){n.cancelBubble=!0,n.cancelImmediate=!0},n.currentTarget=t,n.relatedTarget=n.fromElement||null,n.target=n.target||n.srcElement||t,n.timeStamp=(new Date).getTime(),n.clientX&&(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop);++u<s&&!n.cancelImmediate;)u in i&&(r=i[u],-1!==e(o,r)&&"function"==
typeof r&&r.call(t,n))},t._events[r].list=[],t.attachEvent&&t.attachEvent("on"+r,t._events[r])),t._events[r].list.push(o)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var t,n=this,r=arguments[0],o=arguments[1];n._events&&n._events[r]&&n._events[r].list&&-1!==(t=e(n._events[r].list,o))&&(n._events[r].list.splice(t,1),n._events[r].list.length||(n.detachEvent&&n.detachEvent("on"+r,n._events[r]),
delete n._events[r]))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw new Error("Not enough arguments");if(!t||"string"!=typeof t.type)throw new Error("DOM Events Exception 0");var e=this,n=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var r=function(t){t.cancelBubble=!0,(e||window).detachEvent("on"+n,r)};this.attachEvent("on"+n,r)}this.fireEvent("on"+n,t)}catch(r){t.target=e;do t.currentTarget=
e,"_events"in e&&"function"==typeof e._events[n]&&e._events[n].call(e,t),"function"==typeof e["on"+n]&&e["on"+n].call(e,t),e=9===e.nodeType?e.parentWindow:e.parentNode;while(e&&!t.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))}(),"CustomEvent"in this&&("function"==typeof this.CustomEvent||this.CustomEvent.toString().indexOf("CustomEventConstructor")>-1)||(this.CustomEvent=
function(t,e){if(!t)throw Error('TypeError: Failed to construct "CustomEvent": An event name must be provided.');var n;if(e=e||{bubbles:!1,cancelable:!1,detail:null},"createEvent"in document)try{n=document.createEvent("CustomEvent"),n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail)}catch(r){n=document.createEvent("Event"),n.initEvent(t,e.bubbles,e.cancelable),n.detail=e.detail}else n=new Event(t,e),n.detail=e&&e.detail||null;return n},CustomEvent.prototype=Event.prototype)}).call("object"==typeof window&&
window||"object"==typeof self&&self||{})},gu=function(){yu()},wu={},xu="//cdn.tt.omtrdc.net/cdn/target-vec.js",_u="",Eu=function(t){var e=function(){function e(t){return null==t?String(t):Y[X.call(t)]||"object"}function n(t){return"function"==e(t)}function r(t){return null!=t&&t==t.window}function o(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function i(t){return"object"==e(t)}function u(t){return i(t)&&!r(t)&&Object.getPrototypeOf(t)==Object.prototype}function s(t){var e=!!t&&"length"in t&&t.length,
n=S.type(t);return"function"!=n&&!r(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function c(t){return N.call(t,function(t){return null!=t})}function a(t){return t.length>0?S.fn.concat.apply([],t):t}function f(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in M?M[t]:M[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function p(t,e){return"number"!=typeof e||F[f(t)]?e:e+"px"}function h(t){var e,
n;return I[t]||(e=D.createElement(t),D.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),I[t]=n),I[t]}function d(t){return"children"in t?P.call(t.children):S.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function b(t,e){var n,r=t?t.length:0;for(n=0;n<r;n++)this[n]=t[n];this.length=r,this.selector=e||""}function v(t,e,n){for(O in e)n&&(u(e[O])||tt(e[O]))?(u(e[O])&&!u(t[O])&&(t[O]={}),tt(e[O])&&!tt(t[O])&&(t[O]=[]),
v(t[O],e[O],n)):e[O]!==E&&(t[O]=e[O])}function m(t,e){return null==e?S(t):S(t).filter(e)}function y(t,e,r,o){return n(e)?e.call(t,r,o):e}function g(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function w(t,e){var n=t.className||"",r=n&&n.baseVal!==E;if(e===E)return r?n.baseVal:n;r?n.baseVal=e:t.className=e}function x(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?S.parseJSON(t):t):t}catch(e){return t}}function _(t,e){e(t);for(var n=0,r=t.childNodes.length;n<
r;n++)_(t.childNodes[n],e)}var E,O,S,T,j,A,C=[],k=C.concat,N=C.filter,P=C.slice,D=t.document,I={},M={},F={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},q=/^\s*<(\w+|!)[^>]*>/,$=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,L=/^(?:body|html)$/i,V=/([A-Z])/g,U=["val","css","html","text","data","width","height","offset"],H=["after","prepend","before","append"],z=D.createElement("table"),B=D.createElement("tr"),
W={tr:D.createElement("tbody"),tbody:z,thead:z,tfoot:z,td:B,th:B,"*":D.createElement("div")},Z=/complete|loaded|interactive/,J=/^[\w-]*$/,Y={},X=Y.toString,G={},K=D.createElement("div"),Q={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},tt=Array.isArray||function(t){return t instanceof
Array};return G.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,o=t.parentNode,i=!o;return i&&(o=K).appendChild(t),r=~G.qsa(o,e).indexOf(t),i&&K.removeChild(t),r},j=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},A=function(t){return N.call(t,function(e,n){return t.indexOf(e)==n})},G.fragment=function(t,e,n){var r,o,i;return $.test(t)&&
(r=S(D.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(R,"\x3c$1\x3e\x3c/$2\x3e")),e===E&&(e=q.test(t)&&RegExp.$1),e in W||(e="*"),i=W[e],i.innerHTML=""+t,r=S.each(P.call(i.childNodes),function(){i.removeChild(this)})),u(n)&&(o=S(r),S.each(n,function(t,e){U.indexOf(t)>-1?o[t](e):o.attr(t,e)})),r},G.Z=function(t,e){return new b(t,e)},G.isZ=function(t){return t instanceof G.Z},G.init=function(t,e){var r;if(!t)return G.Z();if("string"==typeof t)if(t=t.trim(),"\x3c"==t[0]&&q.test(t))r=G.fragment(t,
RegExp.$1,e),t=null;else{if(e!==E)return S(e).find(t);r=G.qsa(D,t)}else{if(n(t))return S(D).ready(t);if(G.isZ(t))return t;if(tt(t))r=c(t);else if(i(t))r=[t],t=null;else if(q.test(t))r=G.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==E)return S(e).find(t);r=G.qsa(D,t)}}return G.Z(r,t)},S=function(t,e){return G.init(t,e)},S.extend=function(t){var e,n=P.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){v(t,n,e)}),t},G.qsa=function(t,e){var n,r="#"==e[0],o=!r&&"."==
e[0],i=r||o?e.slice(1):e,u=J.test(i);return t.getElementById&&u&&r?(n=t.getElementById(i))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:P.call(u&&!r&&t.getElementsByClassName?o?t.getElementsByClassName(i):t.getElementsByTagName(e):t.querySelectorAll(e))},S.contains=D.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},S.type=e,S.isFunction=n,S.isWindow=r,S.isArray=tt,S.isPlainObject=u,S.isEmptyObject=
function(t){var e;for(e in t)return!1;return!0},S.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},S.inArray=function(t,e,n){return C.indexOf.call(e,t,n)},S.camelCase=j,S.trim=function(t){return null==t?"":String.prototype.trim.call(t)},S.uuid=0,S.support={},S.expr={},S.noop=function(){},S.map=function(t,e){var n,r,o,i=[];if(s(t))for(r=0;r<t.length;r++)null!=(n=e(t[r],r))&&i.push(n);else for(o in t)null!=(n=e(t[o],
o))&&i.push(n);return a(i)},S.each=function(t,e){var n,r;if(s(t))for(n=0;n<t.length;n++){if(!1===e.call(t[n],n,t[n]))return t}else for(r in t)if(!1===e.call(t[r],r,t[r]))return t;return t},S.grep=function(t,e){return N.call(t,e)},t.JSON&&(S.parseJSON=JSON.parse),S.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Y["[object "+e+"]"]=e.toLowerCase()}),S.fn={constructor:G.Z,length:0,forEach:C.forEach,reduce:C.reduce,push:C.push,sort:C.sort,splice:C.splice,
indexOf:C.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=G.isZ(e)?e.toArray():e;return k.apply(G.isZ(this)?this.toArray():this,n)},map:function(t){return S(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return S(P.apply(this,arguments))},ready:function(t){return Z.test(D.readyState)&&D.body?t(S):D.addEventListener("DOMContentLoaded",function(){t(S)},!1),this},get:function(t){return t===E?P.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},
size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){for(var e,n=this.length,r=0;r<n&&(e=this[r],!1!==t.call(e,r,e));)r++;return this},filter:function(t){return n(t)?this.not(this.not(t)):S(N.call(this,function(e){return G.matches(e,t)}))},add:function(t,e){return S(A(this.concat(S(t,e))))},is:function(t){return this.length>0&&G.matches(this[0],t)},not:function(t){var e=[];if(n(t)&&t.call!==E)this.each(function(n){t.call(this,
n)||e.push(this)});else{var r="string"==typeof t?this.filter(t):s(t)&&n(t.item)?P.call(t):S(t);this.forEach(function(t){r.indexOf(t)<0&&e.push(t)})}return S(e)},has:function(t){return this.filter(function(){return i(t)?S.contains(this,t):S(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!i(t)?t:S(t)},last:function(){var t=this[this.length-1];return t&&!i(t)?t:S(t)},find:function(t){var e=this;return t?"object"==typeof t?
S(t).filter(function(){var t=this;return C.some.call(e,function(e){return S.contains(e,t)})}):1==this.length?S(G.qsa(this[0],t)):this.map(function(){return G.qsa(this,t)}):S()},closest:function(t,e){var n=[],r="object"==typeof t&&S(t);return this.each(function(i,u){for(;u&&!(r?r.indexOf(u)>=0:G.matches(u,t));)u=u!==e&&!o(u)&&u.parentNode;u&&n.indexOf(u)<0&&n.push(u)}),S(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=S.map(n,function(t){if((t=t.parentNode)&&!o(t)&&e.indexOf(t)<0)return e.push(t),
t});return m(e,t)},parent:function(t){return m(A(this.pluck("parentNode")),t)},children:function(t){return m(this.map(function(){return d(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||P.call(this.childNodes)})},siblings:function(t){return m(this.map(function(t,e){return N.call(d(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return S.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==
this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=h(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=n(t);if(this[0]&&!e)var r=S(t).get(0),o=r.parentNode||this.length>1;return this.each(function(n){S(this).wrapAll(e?t.call(this,n):o?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){S(this[0]).before(t=S(t));for(var e;(e=t.children()).length;)t=e.first();S(t).append(this)}return this},
wrapInner:function(t){var e=n(t);return this.each(function(n){var r=S(this),o=r.contents(),i=e?t.call(this,n):t;o.length?o.wrapAll(i):r.append(i)})},unwrap:function(){return this.parent().each(function(){S(this).replaceWith(S(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=S(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return S(this.pluck("previousElementSibling")).filter(t||
"*")},next:function(t){return S(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;S(this).empty().append(y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===
this.nodeType)if(i(t))for(O in t)g(this,O,t[O]);else g(this,t,y(this,e,n,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(n=this[0].getAttribute(t))?n:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){g(this,t)},this)})},prop:function(t,e){return t=Q[t]||t,1 in arguments?this.each(function(n){this[t]=y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=Q[t]||t,this.each(function(){delete this[t]})},data:function(t,
e){var n="data-"+t.replace(V,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,e):this.attr(n);return null!==r?x(r):E},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=y(this,t,e,this.value)})):this[0]&&(this[0].multiple?S(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=S(this),r=y(this,e,t,n.offset()),o=n.offsetParent().offset(),i={top:r.top-o.top,left:r.left-
o.left};"static"==n.css("position")&&(i.position="relative"),n.css(i)});if(!this.length)return null;if(D.documentElement!==this[0]&&!S.contains(D.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,n){if(arguments.length<2){var r=this[0];if("string"==typeof t){if(!r)return;return r.style[j(t)]||getComputedStyle(r,"").getPropertyValue(t)}if(tt(t)){if(!r)return;
var o={},i=getComputedStyle(r,"");return S.each(t,function(t,e){o[e]=r.style[j(e)]||i.getPropertyValue(e)}),o}}var u="";if("string"==e(t))n||0===n?u=f(t)+":"+p(t,n):this.each(function(){this.style.removeProperty(f(t))});else for(O in t)t[O]||0===t[O]?u+=f(O)+":"+p(O,t[O])+";":this.each(function(){this.style.removeProperty(f(O))});return this.each(function(){this.style.cssText+=";"+u})},index:function(t){return t?this.indexOf(S(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&
C.some.call(this,function(t){return this.test(w(t))},l(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){T=[];var n=w(this);y(this,t,e,n).split(/\s+/g).forEach(function(t){S(this).hasClass(t)||T.push(t)},this),T.length&&w(this,n+(n?" ":"")+T.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return w(this,"");T=w(this),y(this,t,e,T).split(/\s+/g).forEach(function(t){T=T.replace(l(t)," ")}),w(this,T.trim())}})},toggleClass:function(t,
e){return t?this.each(function(n){var r=S(this);y(this,t,n,w(this)).split(/\s+/g).forEach(function(t){(e===E?!r.hasClass(t):e)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?
function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),r=L.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(S(t).css("margin-top"))||0,n.left-=parseFloat(S(t).css("margin-left"))||0,r.top+=parseFloat(S(e[0]).css("border-top-width"))||0,r.left+=parseFloat(S(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=
this.offsetParent||D.body;t&&!L.test(t.nodeName)&&"static"==S(t).css("position");)t=t.offsetParent;return t})}},S.fn.detach=S.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});S.fn[t]=function(n){var i,u=this[0];return n===E?r(u)?u["inner"+e]:o(u)?u.documentElement["scroll"+e]:(i=this.offset())&&i[t]:this.each(function(e){u=S(this),u.css(t,y(this,n,e,u[t]()))})}}),H.forEach(function(n,r){var o=r%2;S.fn[n]=function(){var n,i,u=S.map(arguments,
function(t){var r=[];return n=e(t),"array"==n?(t.forEach(function(t){return t.nodeType!==E?r.push(t):S.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(G.fragment(t)))}),r):"object"==n||null==t?t:G.fragment(t)}),s=this.length>1;return u.length<1?this:this.each(function(e,n){i=o?n:n.parentNode,n=0==r?n.nextSibling:1==r?n.firstChild:2==r?n:null;var c=S.contains(D.documentElement,i),a=/^(text|application)\/(javascript|ecmascript)$/;u.forEach(function(e){if(s)e=e.cloneNode(!0);else if(!i)return S(e).remove();
i.insertBefore(e,n),c&&_(e,function(e){if(null!=e.nodeName&&"SCRIPT"===e.nodeName.toUpperCase()&&(!e.type||a.test(e.type.toLowerCase()))&&!e.src){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},S.fn[o?n+"To":"insert"+(r?"Before":"After")]=function(t){return S(t)[n](this),this}}),G.Z.prototype=b.prototype=S.fn,G.uniq=A,G.deserializeValue=x,S.zepto=G,S}();return function(e){function n(t){return t._zid||(t._zid=h++)}function r(t,e,r,u){if(e=o(e),e.ns)var s=i(e.ns);
return(m[n(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!r||n(t.fn)===n(r))&&(!u||t.sel==u)})}function o(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function i(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function u(t,e){return t.del&&!g&&t.e in w||!!e}function s(t){return x[t]||g&&w[t]||t}function c(t,r,i,c,a,l,h){var d=n(t),b=m[d]||(m[d]=[]);r.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(i);
var r=o(n);r.fn=i,r.sel=a,r.e in x&&(i=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return r.fn.apply(this,arguments)}),r.del=l;var d=l||i;r.proxy=function(e){if(e=f(e),!e.isImmediatePropagationStopped()){e.data=c;var n=d.apply(t,e._args==p?[e]:[e].concat(e._args));return!1===n&&(e.preventDefault(),e.stopPropagation()),n}},r.i=b.length,b.push(r),"addEventListener"in t&&t.addEventListener(s(r.e),r.proxy,u(r,h))})}function a(t,e,o,i,c){var a=n(t);(e||"").split(/\s/).forEach(function(e){r(t,
e,o,i).forEach(function(e){delete m[a][e.i],"removeEventListener"in t&&t.removeEventListener(s(e.e),e.proxy,u(e,c))})})}function f(t,n){if(n||!t.isDefaultPrevented){n||(n=t),e.each(S,function(e,r){var o=n[e];t[e]=function(){return this[r]=_,o&&o.apply(n,arguments)},t[r]=E});try{t.timeStamp||(t.timeStamp=Date.now())}catch(t){}(n.defaultPrevented!==p?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=_)}return t}function l(t){var e,
n={originalEvent:t};for(e in t)O.test(e)||t[e]===p||(n[e]=t[e]);return f(n,t)}var p,h=1,d=Array.prototype.slice,b=e.isFunction,v=function(t){return"string"==typeof t},m={},y={},g="onfocusin"in t,w={focus:"focusin",blur:"focusout"},x={mouseenter:"mouseover",mouseleave:"mouseout"};y.click=y.mousedown=y.mouseup=y.mousemove="MouseEvents",e.event={add:c,remove:a},e.proxy=function(t,r){var o=2 in arguments&&d.call(arguments,2);if(b(t)){var i=function(){return t.apply(r,o?o.concat(d.call(arguments)):arguments)};
return i._zid=n(t),i}if(v(r))return o?(o.unshift(t[r],t),e.proxy.apply(null,o)):e.proxy(t[r],t);throw new TypeError("expected function");},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var _=function(){return!0},E=function(){return!1},O=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,S={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};
e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,r,o,i){var u,s,f=this;return t&&!v(t)?(e.each(t,function(t,e){f.on(t,n,r,e,i)}),f):(v(n)||b(o)||!1===o||(o=r,r=n,n=p),o!==p&&!1!==r||(o=r,r=p),!1===o&&(o=E),f.each(function(f,p){i&&(u=function(t){return a(p,
t.type,o),o.apply(this,arguments)}),n&&(s=function(t){var r,i=e(t.target).closest(n,p).get(0);if(i&&i!==p)return r=e.extend(l(t),{currentTarget:i,liveFired:p}),(u||o).apply(i,[r].concat(d.call(arguments,1)))}),c(p,t,o,r,n,s||u)}))},e.fn.off=function(t,n,r){var o=this;return t&&!v(t)?(e.each(t,function(t,e){o.off(t,n,e)}),o):(v(n)||b(r)||!1===r||(r=n,n=p),!1===r&&(r=E),o.each(function(){a(this,t,r,n)}))},e.fn.trigger=function(t,n){return t=v(t)||e.isPlainObject(t)?e.Event(t):f(t),t._args=n,this.each(function(){t.type in
w&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var o,i;return this.each(function(u,s){o=l(v(t)?e.Event(t):t),o._args=n,o.target=s,e.each(r(s,t.type||t),function(t,e){if(i=e.proxy(o),o.isImmediatePropagationStopped())return!1})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=
function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){v(t)||(e=t,t=e.type);var n=document.createEvent(y[t]||"Events"),r=!0;if(e)for(var o in e)"bubbles"==o?r=!!e[o]:n[o]=e[o];return n.initEvent(t,r,!0),f(n)}}(e),function(e){function n(t,n,r){var o=e.Event(n);return e(t).trigger(o,r),!o.isDefaultPrevented()}function r(t,e,r,o){if(t.global)return n(e||x,r,o)}function o(t){t.global&&0==e.active++&&r(t,null,"ajaxStart")}function i(t){t.global&&!--e.active&&r(t,null,
"ajaxStop")}function u(t,e){var n=e.context;if(!1===e.beforeSend.call(n,t,e)||!1===r(e,n,"ajaxBeforeSend",[t,e]))return!1;r(e,n,"ajaxSend",[t,e])}function s(t,e,n,o){var i=n.context;n.success.call(i,t,"success",e),o&&o.resolveWith(i,[t,"success",e]),r(n,i,"ajaxSuccess",[e,n,t]),a("success",e,n)}function c(t,e,n,o,i){var u=o.context;o.error.call(u,n,e,t),i&&i.rejectWith(u,[n,e,t]),r(o,u,"ajaxError",[n,o,t||e]),a(e,n,o)}function a(t,e,n){var o=n.context;n.complete.call(o,e,t),r(n,o,"ajaxComplete",[e,
n]),i(n)}function f(t,e,n){if(n.dataFilter==l)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function l(){}function p(t,n){if(!("type"in t))return e.ajax(t);var r,o=x.createElement("script"),i=function(t){e(o).triggerHandler("error",t||"abort")},a={abort:i};return n&&n.promise(a),e(o).on("load error",function(i,u){clearTimeout(r),e(o).off().remove(),"error"==i.type?c(null,u||"error",a,t,n):s(null,a,t,n)}),!1===u(a,t)?(i("abort"),a):(o.src=t.url,x.head.appendChild(o),t.timeout>0&&(r=setTimeout(function(){i("timeout")},
t.timeout)),a)}function h(t){return t&&(t=t.split(";",2)[0]),t&&(t==T?"html":t==S?"json":E.test(t)?"script":O.test(t)&&"xml")||"text"}function d(t,e){return""==e?t:(t+"\x26"+e).replace(/[&?]{1,2}/,"?")}function b(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=d(t.url,t.data),t.data=void 0)}function v(t,n,r,o){return e.isFunction(n)&&(o=r,r=n,n=void 0),e.isFunction(r)||(o=r,r=void 0),
{url:t,data:n,success:r,dataType:o}}function m(t,n,r,o){var i,u=e.isArray(n),s=e.isPlainObject(n);e.each(n,function(n,c){i=e.type(c),o&&(n=r?o:o+"["+(s||"object"==i||"array"==i?n:"")+"]"),!o&&u?t.add(c.name,c.value):"array"==i||!r&&"object"==i?m(t,c,r,n):t.add(n,c)})}var y,g,w=+new Date,x=t.document,_=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,E=/^(?:text|application)\/javascript/i,O=/^(?:text|application)\/xml/i,S="application/json",T="text/html",j=/^\s*$/,A=x.createElement("a");A.href=
t.location.href,e.active=0,e.ajaxJSONP=function(n,r){if(!("type"in n))return e.ajax(n);var o,i,a=n.jsonpCallback,f=(e.isFunction(a)?a():a)||"Zepto"+w++,l=x.createElement("script"),p=t[f],h=function(t){e(l).triggerHandler("error",t||"abort")},d={abort:h};return r&&r.promise(d),e(l).on("load error",function(u,a){clearTimeout(i),e(l).off().remove(),"error"!=u.type&&o?s(o[0],d,n,r):c(null,a||"error",d,n,r),t[f]=p,o&&e.isFunction(p)&&p(o[0]),p=o=void 0}),!1===u(d,n)?(h("abort"),d):(t[f]=function(){o=arguments},
l.src=n.url.replace(/\?(.+)=\?/,"?$1\x3d"+f),x.head.appendChild(l),n.timeout>0&&(i=setTimeout(function(){h("timeout")},n.timeout)),d)},e.ajaxSettings={type:"GET",beforeSend:l,success:l,error:l,complete:l,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:S,xml:"application/xml, text/xml",html:T,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:l},e.ajax=function(n){var r,
i,a=e.extend({},n||{}),v=e.Deferred&&e.Deferred();for(y in e.ajaxSettings)void 0===a[y]&&(a[y]=e.ajaxSettings[y]);o(a),a.crossDomain||(r=x.createElement("a"),r.href=a.url,r.href=r.href,a.crossDomain=A.protocol+"//"+A.host!=r.protocol+"//"+r.host),a.url||(a.url=t.location.toString()),(i=a.url.indexOf("#"))>-1&&(a.url=a.url.slice(0,i)),b(a);var m=a.dataType,w=/\?.+=\?/.test(a.url);if(w&&(m="jsonp"),!1!==a.cache&&(n&&!0===n.cache||"script"!=m&&"jsonp"!=m)||(a.url=d(a.url,"_\x3d"+Date.now())),"jsonp"==
m)return w||(a.url=d(a.url,a.jsonp?a.jsonp+"\x3d?":!1===a.jsonp?"":"callback\x3d?")),e.ajaxJSONP(a,v);if(a.crossDomain&&"script"==m)return p(a,v);var _,E=a.accepts[m],O={},S=function(t,e){O[t.toLowerCase()]=[t,e]},T=/^([\w-]+:)\/\//.test(a.url)?RegExp.$1:t.location.protocol,C=a.xhr(),k=C.setRequestHeader;if(v&&v.promise(C),a.crossDomain||S("X-Requested-With","XMLHttpRequest"),S("Accept",E||"*/*"),(E=a.mimeType||E)&&(E.indexOf(",")>-1&&(E=E.split(",",2)[0]),C.overrideMimeType&&C.overrideMimeType(E)),
(a.contentType||!1!==a.contentType&&a.data&&"GET"!=a.type.toUpperCase())&&S("Content-Type",a.contentType||"application/x-www-form-urlencoded"),a.headers)for(g in a.headers)S(g,a.headers[g]);if(C.setRequestHeader=S,C.onreadystatechange=function(){if(4==C.readyState){C.onreadystatechange=l,clearTimeout(_);var t,n=!1;if(C.status>=200&&C.status<300||304==C.status||0==C.status&&"file:"==T){if(m=m||h(a.mimeType||C.getResponseHeader("content-type")),"arraybuffer"==C.responseType||"blob"==C.responseType)t=
C.response;else{t=C.responseText;try{t=f(t,m,a),"script"==m?(0,eval)(t):"xml"==m?t=C.responseXML:"json"==m&&(t=j.test(t)?null:e.parseJSON(t))}catch(t){n=t}if(n)return c(n,"parsererror",C,a,v)}s(t,C,a,v)}else c(C.statusText||null,C.status?"error":"abort",C,a,v)}},!1===u(C,a))return C.abort(),c(null,"abort",C,a,v),C;var N=!("async"in a)||a.async;if(C.open(a.type,a.url,N,a.username,a.password),a.xhrFields)for(g in a.xhrFields)C[g]=a.xhrFields[g];for(g in O)k.apply(C,O[g]);return a.timeout>0&&(_=setTimeout(function(){C.onreadystatechange=
l,C.abort(),c(null,"timeout",C,a,v)},a.timeout)),C.send(a.data?a.data:null),C},e.get=function(){return e.ajax(v.apply(null,arguments))},e.post=function(){var t=v.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=v.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,r){if(!this.length)return this;var o,i=this,u=t.split(/\s/),s=v(t,n,r),c=s.success;return u.length>1&&(s.url=u[0],o=u[1]),s.success=function(t){i.html(o?e("\x3cdiv\x3e").html(t.replace(_,
"")).find(o):t),c&&c.apply(i,arguments)},e.ajax(s),this};var C=encodeURIComponent;e.param=function(t,n){var r=[];return r.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(C(t)+"\x3d"+C(n))},m(r,t,n),r.join("\x26").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],o=function(t){if(t.forEach)return t.forEach(o);r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,i){n=i.type,e=i.name,e&&"fieldset"!=i.nodeName.toLowerCase()&&
!i.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||i.checked)&&o(t(i).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"\x3d"+encodeURIComponent(e.value))}),t.join("\x26")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(n){var e=
getComputedStyle;t.getComputedStyle=function(t,n){try{return e(t,n)}catch(t){return null}}}}(),function(t){var e=t.zepto,n=e.qsa,r=/^\s*>/,o="Zepto"+ +new Date;e.qsa=function(e,i){var u,s,c=i;try{c?r.test(c)&&(s=t(e).addClass(o),c="."+o+" "+c):c="*",u=n(e,c)}catch(t){throw t;}finally{s&&s.removeClass(o)}return u}}(e),e}(window),Ou=Eu,Su='Adobe Target content delivery is disabled. Ensure that you can save cookies to your current domain, there is no "mboxDisable" cookie and there is no "mboxDisable" parameter in query string.',
Tu="Adobe Target has already been initialized.",ju="options argument is required",Au="mbox option is required",Cu="mbox option is too long",ku="success option is required",Nu="error option is required",Pu="Disabled due to optout",Du="offer option is required",Iu="Actions with missing selectors",Mu="Unexpected error",Fu="actions to be rendered",qu="request failed",$u="All actions rendered successfully",Ru="Action rendered successfully",Lu="Rendering action",Vu="Action has no content",Uu="Action has no attribute or value",
Hu="Action has no property or value",zu="Action has no height or width",Bu="Action has no left, top or position",Wu="Action has no from or to",Zu="Action has no url",Ju="Action has no click track ID",Yu="Rearrange elements are missing",Xu="Loading image",Gu="Track event request succeeded",Ku="Track event request failed",Qu="Mbox container not found",ts="Rendering mbox",es="Rendering mbox failed",ns="ID is missing",rs="No actions to be rendered",os="Redirect action",is="default to HEAD",us="document.currentScript is missing or not supported",
ss="executing from HTML HEAD",cs="Script load",as="unknown error",fs=function(t,e){e=e||{};for(var n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},
r=n.parser[e.strictMode?"strict":"loose"].exec(t),o={},i=14;i--;)o[n.key[i]]=r[i]||"";return o[n.q.name]={},o[n.key[12]].replace(n.q.parser,function(t,e,r){e&&(o[n.q.name][e]=r)}),o},ls=Object.getOwnPropertySymbols,ps=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,ds=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;
var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,o=w(t),i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var u in n)ps.call(n,u)&&(o[u]=n[u]);if(ls){r=ls(n);for(var s=0;s<r.length;s++)hs.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},bs=ds,vs=function(t){return t.split("?")[1]||""},ms=function(t,e){e=bs({arrayFormat:"none"},e);var n=x(e),r=
Object.create(null);return"string"!=typeof t?r:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("\x26").forEach(function(t){var e=t.replace(/\+/g," ").split("\x3d"),o=e.shift(),i=e.length>0?e.join("\x3d"):void 0;i=void 0===i?null:decodeURIComponent(i),n(decodeURIComponent(o),i,r)}),Object.keys(r).sort().reduce(function(t,e){var n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=_(n):t[e]=n,t},Object.create(null))):r},ys=document.createElement("a"),gs={},ws="undefined"!=typeof window?
window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},xs=ws&&ws.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_s=N,Es=P,Os=D,Ss=_s,Ts=Es,js=Os,As=250,Cs="data-at-src",ks="data-at-mbox-name",Ns="-clicked",Ps="mbox-name-",Ds="check",Is="mbox",Ms="PC",Fs="session",qs="mboxEdgeCluster",$s="mboxDebug",Rs="mboxDisable",Ls="mboxEdit",Vs="mboxDebug",Us="mboxDisable",
Hs="mboxEdit",zs="true",Bs="AT:",Ws="",Zs="\x3d",Js="?",Ys="\x26",Xs=".",Gs="#",Ks="|",Qs="_",tc="head",ec="script",nc="style",rc="img",oc="div",ic="a",uc="form",sc="button",cc="input",ac=":eq(",fc=")",lc=ac.length,pc=/((\.|#)\d{1})/g,hc=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t,e){if(e.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof ws&&ws.global===ws&&ws,!e.root)throw new Error("RxJS could not find any global context (window, self, global)");
}),dc=vt,bc={isFunction:dc},vc=Array.isArray||function(t){return t&&"number"==typeof t.length},mc={isArray:vc},yc=mt,gc={isObject:yc},wc={e:{}},xc={errorObject:wc},_c=xc,Ec=gt,Oc={tryCatch:Ec},Sc=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Tc=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+
e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Sc(e,t),e}(Error),jc=Tc,Ac={UnsubscriptionError:jc},Cc=mc,kc=gc,Nc=bc,Pc=Oc,Dc=xc,Ic=Ac,Mc=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,r=n._parent,o=n._parents,i=n._unsubscribe,u=n._subscriptions;
this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,c=o?o.length:0;r;)r.remove(this),r=++s<c&&o[s]||null;if(Nc.isFunction(i)){var a=Pc.tryCatch(i).call(this);a===Dc.errorObject&&(e=!0,t=t||(Dc.errorObject.e instanceof Ic.UnsubscriptionError?wt(Dc.errorObject.e.errors):[Dc.errorObject.e]))}if(Cc.isArray(u))for(s=-1,c=u.length;++s<c;){var f=u[s];if(kc.isObject(f)){var a=Pc.tryCatch(f.unsubscribe).call(f);if(a===Dc.errorObject){e=!0,t=t||[];var l=Dc.errorObject.e;
l instanceof Ic.UnsubscriptionError?t=t.concat(wt(l.errors)):t.push(l)}}}if(e)throw new Ic.UnsubscriptionError(t);}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case "function":n=new t(e);case "object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.");
}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),Fc=Mc,qc={Subscription:Fc},$c={closed:!0,next:function(t){},error:function(t){throw t;},complete:function(){}},
Rc={empty:$c},Lc=hc,Vc=Lc.root.Symbol,Uc="function"==typeof Vc&&"function"==typeof Vc["for"]?Vc["for"]("rxSubscriber"):"@@rxSubscriber",Hc={$$rxSubscriber:Uc},zc=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Bc=bc,Wc=qc,Zc=Rc,Jc=Hc,Yc=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=
!1,arguments.length){case 0:this.destination=Zc.empty;break;case 1:if(!n){this.destination=Zc.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new Gc(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new Gc(this,n,r,o)}}return zc(e,t),e.prototype[Jc.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||
this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},
e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(Wc.Subscription),Xc=Yc,Gc=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var i,u=this;Bc.isFunction(n)?i=n:n&&(u=n,i=n.next,r=n.error,o=n.complete,Bc.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this)),this._context=
u,this._next=i,this._error=r,this._complete=o}return zc(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),
t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t;}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=
e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Yc),Kc={Subscriber:Xc},Qc=Kc,ta=Hc,ea=Rc,na=xt,ra={toSubscriber:na},oa=hc,ia=_t,ua=_t(oa.root),sa={getSymbolObservable:ia,$$observable:ua},ca=hc,aa=ra,fa=sa,la=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=
function(t,e,n){var r=this.operator,o=aa.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(ca.root.Rx&&ca.root.Rx.config&&ca.root.Rx.config.Promise?e=ca.root.Rx.config.Promise:ca.root.Promise&&(e=
ca.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[fa.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}(),pa=la,ha={Observable:pa},da="json",ba="jsonp",va="html",ma="script",ya="text",ga="mboxMCAVID",wa="mboxAAMB",xa="mboxMCGLH",_a="mboxMCGVID",Ea="mboxMCSDID",
Oa="colorDepth",Sa="screenHeight",Ta="screenWidth",ja="browserHeight",Aa="browserTimeOffset",Ca="browserWidth",ka="mboxCallback",Na="mboxTarget",Pa="clickTrackId",Da="mboxXDomain",Ia="mboxCount",Ma="mboxHost",Fa="mbox",qa="mboxPage",$a="mboxSession",Ra="mboxReferrer",La="mboxTime",Va="mboxPC",Ua="mboxURL",Ha="mboxVersion",za="XMLHttpRequest",Ba="withCredentials",Wa="performance",Za="mark",Ja="measure",Ya="error",Xa="warning",Ga="disabled",Ka="unknown",Qa="mark_adobe_target_show_body",tf="mark_adobe_target_hide_body",
ef="mark_adobe_target_visitor_id_start_",nf="mark_adobe_target_visitor_id_end_",rf="measure_adobe_target_visitor_id",of="mark_adobe_target_request_start_",uf="mark_adobe_target_request_end_",sf="measure_adobe_target_request",cf="mark_adobe_target_render_start_",af="mark_adobe_target_render_end_",ff="measure_adobe_target_render",lf=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,
new n)},pf=ha,hf=function(t){function e(e){t.call(this),this.scheduler=e}return lf(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(pf.Observable),df=hf,bf={EmptyObservable:df},vf=It,mf={isPromise:vf},yf=hc,gf=Mt,wf=Mt(yf.root),xf={symbolIteratorPonyfill:gf,$$iterator:wf},_f=ws&&ws.__extends||function(t,e){function n(){this.constructor=
t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ef=Kc,Of=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return _f(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),
this.unsubscribe()},e}(Ef.Subscriber),Sf=Of,Tf={InnerSubscriber:Sf},jf=hc,Af=mc,Cf=mf,kf=gc,Nf=ha,Pf=xf,Df=Tf,If=sa,Mf=Ft,Ff={subscribeToResult:Mf},qf=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},$f=Kc,Rf=function(t){function e(){t.apply(this,arguments)}return qf(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,
e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}($f.Subscriber),Lf=Rf,Vf={OuterSubscriber:Lf},Uf=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Hf=ha,zf=bf,Bf=mc,Wf=Ff,Zf=Vf,Jf=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return Uf(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-
0]=arguments[n];if(null===t||0===arguments.length)return new zf.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Bf.isArray(t[0])&&(t=t[0]),0===t.length?new zf.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new Xf(t,this.sources,this.resultSelector)},e}(Hf.Observable),Yf=Jf,Xf=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=
new Array(o);for(var i=0;i<o;i++){var u=n[i],s=Wf.subscribeToResult(this,u,null,i);s&&(s.outerIndex=i,this.add(s))}}return Uf(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,u=i.length;if(!t._hasValue)return void e.complete();if(++this.completed===u){if(r===u){var s=o?o.apply(this,i):i;e.next(s)}e.complete()}},e}(Zf.OuterSubscriber),
Gf={ForkJoinObservable:Yf},Kf=Gf,Qf=Kf.ForkJoinObservable.create,tl={forkJoin:Qf},el=ha,nl=tl;el.Observable.forkJoin=nl.forkJoin;var rl=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ol=ha,il=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return rl(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=
function(t){var e=t.done,n=t.value,r=t.subscriber;if(e)return void r.complete();r.next(n),r.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(ol.Observable),ul=il,sl={ScalarObservable:ul},cl=qt,al={isScheduler:cl},fl=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=
null===e?Object.create(e):(n.prototype=e.prototype,new n)},ll=ha,pl=sl,hl=bf,dl=al,bl=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return fl(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];dl.isScheduler(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new pl.ScalarObservable(t[0],r):new hl.EmptyObservable(r)},e.dispatch=
function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;if(n>=r)return void o.complete();o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i<r&&!t.closed;i++)t.next(n[i]);t.complete()},e}(ll.Observable),vl=bl,ml={ArrayObservable:vl},yl=ml,gl=yl.ArrayObservable.of,wl={of:gl},xl=ha,_l=wl;xl.Observable.of=_l.of;var El=ws&&ws.__extends||
function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ol=ha,Sl=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return El(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},
e}(Ol.Observable),Tl=Sl,jl={ErrorObservable:Tl},Al=jl,Cl=Al.ErrorObservable.create,kl={_throw:Cl},Nl=ha,Pl=kl;Nl.Observable["throw"]=Pl._throw;var Dl=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Il=Kc,Ml=$t,Fl=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new $l(t,this.project,this.thisArg))},t}(),
ql=Fl,$l=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return Dl(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Il.Subscriber),Rl={map:Ml,MapOperator:ql},Ll=ha,Vl=Rl;Ll.Observable.prototype.map=Vl.map;var Ul=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=
null===e?Object.create(e):(n.prototype=e.prototype,new n)},Hl=Ff,zl=Vf,Bl=Rt,Wl=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Jl(t,this.project,this.resultSelector,this.concurrent))},t}(),Zl=Wl,Jl=function(t){function e(e,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,
this.buffer=[],this.active=0,this.index=0}return Ul(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Hl.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},
e.prototype.notifyNext=function(t,e,n,r,o){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var o;try{o=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(zl.OuterSubscriber),Yl=
Jl,Xl={mergeMap:Bl,MergeMapOperator:Zl,MergeMapSubscriber:Yl},Gl=ha,Kl=Xl;Gl.Observable.prototype.mergeMap=Kl.mergeMap,Gl.Observable.prototype.flatMap=Kl.mergeMap;var Ql=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},tp=qc,ep=function(t){function e(e,n){t.call(this)}return Ql(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(tp.Subscription),
np=ep,rp={Action:np},op=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ip=hc,up=rp,sp=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return op(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,
n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),ip.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n?e:ip.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=
this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null))},e}(up.Action),cp=sp,ap={AsyncAction:cp},
fp=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),(new this.SchedulerAction(this,t)).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}(),lp=fp,pp={Scheduler:lp},hp=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},dp=pp,bp=function(t){function e(){t.apply(this,
arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return hp(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var n;this.active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n;}},e}(dp.Scheduler),vp=bp,mp={AsyncScheduler:vp},yp=ap,gp=mp,wp=new gp.AsyncScheduler(yp.AsyncAction),xp={async:wp},_p=Lt,Ep={isDate:_p},Op=ws&&ws.__extends||function(t,e){function n(){this.constructor=
t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Sp=xp,Tp=Ep,jp=Vf,Ap=Ff,Cp=Vt,kp=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Np(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Np=function(t){function e(e,n,r,o,i){t.call(this),this.destination=e,this.absoluteTimeout=n,this.waitFor=
r,this.withObservable=o,this.scheduler=i,this.timeoutSubscription=void 0,this.index=0,this._previousIndex=0,this._hasCompleted=!1,e.add(this),this.scheduleTimeout()}return Op(e,t),Object.defineProperty(e.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0}),e.dispatchTimeout=function(t){var e=t.subscriber,n=t.index;e.hasCompleted||
e.previousIndex!==n||e.handleTimeout()},e.prototype.scheduleTimeout=function(){var t=this.index,n={subscriber:this,index:t};this.scheduler.schedule(e.dispatchTimeout,this.waitFor,n),this.index++,this._previousIndex=t},e.prototype._next=function(t){this.destination.next(t),this.absoluteTimeout||this.scheduleTimeout()},e.prototype._error=function(t){this.destination.error(t),this._hasCompleted=!0},e.prototype._complete=function(){this.destination.complete(),this._hasCompleted=!0},e.prototype.handleTimeout=
function(){if(!this.closed){var t=this.withObservable;this.unsubscribe(),this.destination.add(this.timeoutSubscription=Ap.subscribeToResult(this,t))}},e}(jp.OuterSubscriber),Pp={timeoutWith:Cp},Dp=ha,Ip=Pp;Dp.Observable.prototype.timeoutWith=Ip.timeoutWith;var Mp="mbox",Fp="vst.",qp=Fp+"trk",$p=Fp+"trks",Rp="getInstance",Lp="isAllowed",Vp="getMarketingCloudVisitorID",Up="getAudienceManagerBlob",Hp="getAnalyticsVisitorID",zp="getAudienceManagerLocationHint",Bp="getSupplementalDataID",Wp="isOptedOut",
Zp="getCustomerIDs",Jp="trackingServer",Yp="trackingServerSecure",Xp="OptOut",Gp=0,Kp=o(),Qp=o(),th=1,eh="GET",nh="mboxedge",rh="${clientCode}",oh=["/m2/",rh,"/mbox/json"].join(Ws),ih="//",uh=0,sh="___target_traces",ch=864E5,ah="3rd party cookies disabled",fh="setContent",lh="setText",ph="setAttribute",hh="setStyle",dh="rearrange",bh="resize",vh="move",mh="remove",yh="customCode",gh="appendContent",wh="redirect",xh="trackClick",_h="signalClick",Eh="insertBefore",Oh="insertAfter",Sh="prependContent",
Th="replaceContent",jh="action",Ah="attribute",Ch="value",kh="asset",Nh="clickTrackId",Ph="content",Dh="contentType",Ih="finalHeight",Mh="finalWidth",Fh="height",qh="width",$h="finalLeftPosition",Rh="finalTopPosition",Lh="left",Vh="top",Uh="position",Hh="from",zh="to",Bh="url",Wh="includeAllUrlParameters",Zh="passMboxSession",Jh="property",Yh="priority",Xh="selector",Gh="cssSelector",Kh="style",Qh="adobe_mc_ref",td="appendSupplementalDataIDTo",ed="true",nd="src",rd="id",od="class",id="type",ud=/CLKTRK#(\S+)/,
sd=/CLKTRK#(\S+)\s/,cd="mbox",ad=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},fd=Kc,ld=Vn,pd=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new hd(t,this.nextOrObserver,this.error,this.complete))},t}(),hd=function(t){function e(e,n,r,o){t.call(this,e);var i=new fd.Subscriber(n,
r,o);i.syncErrorThrowable=!0,this.add(i),this.safeSubscriber=i}return ad(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):
this.destination.complete()},e}(fd.Subscriber),dd={_do:ld},bd=ha,vd=dd;bd.Observable.prototype["do"]=vd._do,bd.Observable.prototype._do=vd._do;var md=[ec,"link",nc].join(","),yd="at-request-succeeded",gd="at-request-failed",wd="at-content-rendering-succeeded",xd="at-content-rendering-failed",_d="[getOffer()]",Ed="mboxDefault",Od="at-flicker-control",Sd="at-element-marker",Td="at-element-click-tracking",jd="at-",Ad="at-body-style",Cd="#"+Ad,kd="at-mbox-default-style",Nd=ws&&ws.__extends||function(t,
e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Pd=hc,Dd=ha,Id=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return Nd(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,r=this.scheduler;if(null==r)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||
(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){Pd.root.setTimeout(function(){throw t;})});else if(this._isScalar){if(!t.closed)return r.schedule(_r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(r.schedule(_r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(r.schedule(Er,0,{err:e,subscriber:t}))}).then(null,function(t){Pd.root.setTimeout(function(){throw t;})})},e}(Dd.Observable),Md=Id,Fd={PromiseObservable:Md},
qd=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},$d=hc,Rd=ha,Ld=xf,Vd=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=Or(e)}return qd(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,o=t.subscriber;if(n)return void o.error(t.error);
var i=r.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof r["return"]&&r["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=this,r=n.iterator,o=n.scheduler;if(o)return o.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var i=r.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof r["return"]&&r["return"]();break}}},e}(Rd.Observable),Ud=Vd,Hd=function(){function t(t,e,n){void 0===
e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[Ld.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),zd=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=Sr(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[Ld.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:
{done:!0,value:void 0}},t}(),Bd=Math.pow(2,53)-1,Wd={IteratorObservable:Ud},Zd=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Jd=ha,Yd=sl,Xd=bf,Gd=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Zd(e,t),e.create=function(t,n){var r=t.length;return 0===r?new Xd.EmptyObservable:1===
r?new Yd.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,o=t.subscriber;if(!o.closed){if(n>=r)return void o.complete();o.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,o=n.scheduler,i=r.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:r,index:0,length:i,subscriber:t});for(var u=0;u<i&&!t.closed;u++)t.next(r[u]);t.complete()},e}(Jd.Observable),Kd=Gd,Qd={ArrayLikeObservable:Kd},tb=ha,eb=function(){function t(t,
e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case "N":return t.next&&t.next(this.value);case "E":return t.error&&t.error(this.error);case "C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,n){switch(this.kind){case "N":return t&&t(this.value);case "E":return e&&e(this.error);case "C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,n)},
t.prototype.toObservable=function(){switch(this.kind){case "N":return tb.Observable.of(this.value);case "E":return tb.Observable["throw"](this.error);case "C":return tb.Observable.empty()}throw new Error("unexpected notification kind value");},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=
new t("N",void 0),t}(),nb=eb,rb={Notification:nb},ob=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ib=Kc,ub=rb,sb=Ar,cb=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new fb(t,this.scheduler,this.delay))},t}(),ab=cb,fb=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,
e),this.scheduler=n,this.delay=r}return ob(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new pb(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(ub.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(ub.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(ub.Notification.createComplete())},
e}(ib.Subscriber),lb=fb,pb=function(){function t(t,e){this.notification=t,this.destination=e}return t}(),hb=pb,db={observeOn:sb,ObserveOnOperator:ab,ObserveOnSubscriber:lb,ObserveOnMessage:hb},bb=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},vb=mc,mb=mf,yb=Fd,gb=Wd,wb=ml,xb=Qd,_b=xf,Eb=ha,Ob=db,Sb=sa,Tb=function(t){return t&&"number"==typeof t.length},jb=function(t){function e(e,
n){t.call(this,null),this.ish=e,this.scheduler=n}return bb(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[Sb.$$observable])return t instanceof Eb.Observable&&!n?t:new e(t,n);if(vb.isArray(t))return new wb.ArrayObservable(t,n);if(mb.isPromise(t))return new yb.PromiseObservable(t,n);if("function"==typeof t[_b.$$iterator]||"string"==typeof t)return new gb.IteratorObservable(t,n);if(Tb(t))return new xb.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable");
},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[Sb.$$observable]().subscribe(t):e[Sb.$$observable]().subscribe(new Ob.ObserveOnSubscriber(t,n,0))},e}(Eb.Observable),Ab=jb,Cb={FromObservable:Ab},kb=Cb,Nb=kb.FromObservable.create,Pb={from:Nb},Db=ha,Ib=Pb;Db.Observable.from=Ib.from;var Mb=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},
Fb=Vf,qb=Ff,$b=Cr,Rb=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Lb(t,this.selector,this.caught))},t}(),Lb=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return Mb(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(qb.subscribeToResult(this,n))}},e}(Fb.OuterSubscriber),Vb=
{_catch:$b},Ub=ha,Hb=Vb;Ub.Observable.prototype["catch"]=Hb._catch,Ub.Observable.prototype._catch=Hb._catch;var zb=Xl,Bb=kr,Wb={concatMap:Bb},Zb=ha,Jb=Wb;Zb.Observable.prototype.concatMap=Jb.concatMap;var Yb="click",Xb="submit",Gb="_blank",Kb="[trackEvent()]",Qb=hc,tv=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),
this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):
(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1E3/60)})}return t}(),ev=tv,nv=new tv(Qb.root),rv={RequestAnimationFrameDefinition:ev,AnimationFrame:nv},ov=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},iv=ap,uv=rv,sv=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return ov(e,
t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=uv.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(uv.AnimationFrame.cancelAnimationFrame(n),e.scheduled=void 0)},e}(iv.AsyncAction),cv=
sv,av={AnimationFrameAction:cv},fv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},lv=mp,pv=function(t){function e(){t.apply(this,arguments)}return fv(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do if(e=t.execute(t.state,t.delay))break;while(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<
o&&(t=n.shift());)t.unsubscribe();throw e;}},e}(lv.AsyncScheduler),hv=pv,dv={AnimationFrameScheduler:hv},bv=av,vv=dv,mv=new vv.AnimationFrameScheduler(bv.AnimationFrameAction),yv=mc,gv=Do,wv={isNumeric:gv},xv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},_v=wv,Ev=ha,Ov=xp,Sv=al,Tv=Ep,jv=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,
this.dueTime=0,_v.isNumeric(n)?this.period=Number(n)<1&&1||Number(n):Sv.isScheduler(n)&&(r=n),Sv.isScheduler(r)||(r=Ov.async),this.scheduler=r,this.dueTime=Tv.isDate(e)?+e-this.scheduler.now():e}return xv(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber,o=this;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,o.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this,r=n.period,o=n.dueTime;return n.scheduler.schedule(e.dispatch,
o,{index:0,period:r,subscriber:t})},e}(Ev.Observable),Av=jv,Cv={TimerObservable:Av},kv=Cv,Nv=kv.TimerObservable.create,Pv={timer:Nv},Dv=ha,Iv=Pv;Dv.Observable.timer=Iv.timer;var Mv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Fv=Kc,qv=bf,$v=Io,Rv=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Lv(t,
this.count,this.source))},t}(),Lv=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return Mv(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this,n=e.source,r=e.count;if(0===r)return t.prototype.complete.call(this);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(Fv.Subscriber),Vv={repeat:$v},Uv=ha,Hv=Vv;Uv.Observable.prototype.repeat=Hv.repeat;var zv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&
(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Bv=Vf,Wv=Ff,Zv=Mo,Jv=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Yv(t,this.notifier))},t}(),Yv=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(Wv.subscribeToResult(this,n))}return zv(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(Bv.OuterSubscriber),Xv={takeUntil:Zv},Gv=ha,Kv=Xv;
Gv.Observable.prototype.takeUntil=Kv.takeUntil;var Qv=ws&&ws.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},tm=Kc,em=Fo,nm=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new rm(t,this.predicate))},t}(),rm=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.index=0}return Qv(e,t),e.prototype._next=function(t){var e,
n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(tm.Subscriber),om={takeWhile:em},im=ha,um=om;im.Observable.prototype.takeWhile=um.takeWhile;var sm,cm,am="[applyOffer()]",fm=0,lm=function(t){return p(t.found)},pm=function(t){return!p(t[Bh])},hm=function(t){return t[jh]===xh||t[jh]===_h},dm="adobe",bm="target",vm="ext",mm=new RegExp("^[a-zA-Z]+$"),
ym={},gm={},wm="[mboxCreate()]",xm="[mboxDefine()]",_m="[mboxUpdate()]",Em="Unable to load target-vec.js",Om="Loading target-vec.js",Sm="_AT",Tm="clickHandlerForExperienceEditor",jm="[global mbox]",Am="auto-create disabled",Cm="mbox name is blank",km="Settings",Nm=["enabled","clientCode","imsOrgId","serverDomain","cookieDomain","crossDomain","timeout","globalMboxAutoCreate","mboxParams","globalMboxParams","defaultContentHiddenStyle","defaultContentVisibleStyle","bodyHidingEnabled","bodyHiddenStyle",
"selectorsPollingTimeout","visitorApiTimeout","overrideMboxEdgeServer","overrideMboxEdgeServerTimeout","optoutEnabled","secureOnly","supplementalDataIdParamTimeout"],Pm={___bootstrap:Fi};t.target=Pm}(window.adobe=window.adobe||{}),window.adobe.target.___bootstrap(window,document,{"clientCode":"tdbankfinancialgroup","imsOrgId":"A783776A5245B1E50A490D44@AdobeOrg","serverDomain":"tdbankfinancialgroup.tt.omtrdc.net","crossDomain":"enabled","timeout":5E3,"globalMboxName":"target-global-mbox","globalMboxAutoCreate":true,
"version":"1.2.2","defaultContentHiddenStyle":"visibility:hidden;","defaultContentVisibleStyle":"visibility:visible;","bodyHiddenStyle":"body{opacity:0!important}","bodyHidingEnabled":true,"deviceIdLifetime":632448E5,"sessionIdLifetime":186E4,"selectorsPollingTimeout":5E3,"visitorApiTimeout":2E3,"overrideMboxEdgeServer":false,"overrideMboxEdgeServerTimeout":186E4,"optoutEnabled":false,"secureOnly":false,"supplementalDataIdParamTimeout":30});!function(e){function t(n){if(r[n])return r[n].exports;var i=
r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){r(1),r(2),e.exports=r(3)},function(e,t){(function(e){(function(e){"defineProperty"in Object&&function(){try{var e={};return Object.defineProperty(e,"test",{value:42}),!0}catch(e){return!1}}()||function(e){var t=Object.prototype.hasOwnProperty("__defineGetter__"),r="A property cannot both have accessors and be writable or have a value";Object.defineProperty=
function(n,i,o){if(e&&(n===window||n===document||n===Element.prototype||n instanceof Element))return e(n,i,o);var a=String(i),s="value"in o||"writable"in o,u="get"in o&&typeof o.get,c="set"in o&&typeof o.set;if(null===n||!(n instanceof Object||"object"==typeof n))throw new TypeError("Object must be an object (Object.defineProperty polyfill)");if(!(o instanceof Object))throw new TypeError("Descriptor must be an object (Object.defineProperty polyfill)");if(u){if("function"!==u)throw new TypeError("Getter expected a function (Object.defineProperty polyfill)");
if(!t)throw new TypeError("Getters \x26 setters cannot be defined on this javascript engine");if(s)throw new TypeError(r);n.__defineGetter__(a,o.get)}else n[a]=o.value;if(c){if("function"!==c)throw new TypeError("Setter expected a function (Object.defineProperty polyfill)");if(!t)throw new TypeError("Getters \x26 setters cannot be defined on this javascript engine");if(s)throw new TypeError(r);n.__defineSetter__(a,o.set)}return"value"in o&&(n[a]=o.value),n}}(Object.defineProperty),"forEach"in Array.prototype||
(Array.prototype.forEach=function(t){if(this===e||null===this)throw new TypeError(this+"is not an object");if(!(t instanceof Function))throw new TypeError(t+" is not a function");for(var r=Object(this),n=arguments[1],i=r instanceof String?r.split(""):r,o=Math.max(Math.min(i.length,9007199254740991),0)||0,a=-1;++a<o;)a in i&&t.call(n,i[a],a,r)}),"Date"in this&&"now"in this.Date&&"getTime"in this.Date.prototype||(Date.now=function(){return(new Date).getTime()}),function(e){if(!("WeakMap"in e))return!1;
var t={};return"test"===(new WeakMap([[t,"test"]])).get(t)}(this)||function(t){var r=Object.defineProperty,n=Date.now()%1E9,i=function(e){this.name="__st"+(1E9*Math.random()>>>0)+n++ +"__",e&&e.forEach&&e.forEach(function(e){this.set.apply(this,e)},this)};i.prototype.set=function(e,t){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Invalid value used as weak map key");var n=e[this.name];return n&&n[0]===e?n[1]=t:r(e,this.name,{value:[e,t],writable:!0}),this},i.prototype.get=function(t){var r;
return(r=t[this.name])&&r[0]===t?r[1]:e},i.prototype.delete=function(t){var r=t[this.name];return!(!r||r[0]!==t)&&(r[0]=r[1]=e,!0)},i.prototype.has=function(e){var t=e[this.name];return!!t&&t[0]===e},this.WeakMap=i}()}).call("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{})}).call(t,function(){return this}())},function(e,t){!function(e){function t(e){w.push(e),y||(y=!0,v(n))}function r(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||
e}function n(){y=!1;var e=w;w=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var r=e.takeRecords();i(e),r.length&&(e.callback_(r,e),t=!0)}),t&&n()}function i(e){e.nodes_.forEach(function(t){var r=b.get(t);r&&r.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}function o(e,t){for(var r=e;r;r=r.parentNode){var n=b.get(r);if(n)for(var i=0;i<n.length;i++){var o=n[i],a=o.options;if(r===e||a.subtree){var s=t(a);s&&o.enqueue(s)}}}}function a(e){this.callback_=
e,this.nodes_=[],this.records_=[],this.uid_=++O}function s(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function u(e){var t=new s(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,
t.oldValue=e.oldValue,t}function c(e,t){return E=new s(e,t)}function d(e){return M||(M=u(E),M.oldValue=e,M)}function f(){E=M=void 0}function l(e){return e===M||e===E}function h(e,t){return e===t?e:M&&l(e)?M:null}function p(e,t,r){this.observer=e,this.target=t,this.options=r,this.transientObservedNodes=[]}if(!e.JsMutationObserver){var v,b=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))v=setTimeout;else if(window.setImmediate)v=window.setImmediate;else{var m=[],g=String(Math.random());window.addEventListener("message",
function(e){if(e.data===g){var t=m;m=[],t.forEach(function(e){e()})}}),v=function(e){m.push(e),window.postMessage(g,"*")}}var y=!1,w=[],O=0;a.prototype={observe:function(e,t){if(e=r(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var n=b.get(e);n||b.set(e,n=[]);for(var i,o=0;o<n.length;o++)if(n[o].observer===this){i=n[o],i.removeListeners(),
i.options=t;break}i||(i=new p(this,e,t),n.push(i),this.nodes_.push(e)),i.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=b.get(e),r=0;r<t.length;r++){var n=t[r];if(n.observer===this){n.removeListeners(),t.splice(r,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}};var E,M;p.prototype={enqueue:function(e){var r=this.observer.records_,n=r.length;if(r.length>0){var i=r[n-1],o=h(i,e);if(o)return void(r[n-1]=o)}else t(this.observer);
r[n]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",
this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=b.get(e);t||b.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);
for(var t=b.get(e),r=0;r<t.length;r++)if(t[r]===this){t.splice(r,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case "DOMAttrModified":var t=e.attrName,r=e.relatedNode.namespaceURI,n=e.target,i=new c("attributes",n);i.attributeName=t,i.attributeNamespace=r;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;o(n,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(r)))return e.attributeOldValue?
d(a):i});break;case "DOMCharacterDataModified":var n=e.target,i=c("characterData",n),a=e.prevValue;o(n,function(e){if(e.characterData)return e.characterDataOldValue?d(a):i});break;case "DOMNodeRemoved":this.addTransientObserver(e.target);case "DOMNodeInserted":var s,u,l=e.target;"DOMNodeInserted"===e.type?(s=[l],u=[]):(s=[],u=[l]);var h=l.previousSibling,p=l.nextSibling,i=c("childList",e.target.parentNode);i.addedNodes=s,i.removedNodes=u,i.previousSibling=h,i.nextSibling=p,o(e.relatedNode,function(e){if(e.childList)return i})}f()}},
e.JsMutationObserver=a,e.MutationObserver||(e.MutationObserver=a,a._isPolyfilled=!0)}}(window)},function(e,t,r){!function(e,t,n){function i(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function o(e,t){"function"==typeof t&&(l.log(e,"handler"),t())}function a(e){n.applyOffer({selector:e.selector,offer:[{selector:e.selector,content:e.responseText,action:(e.method?e.method:"append")+"Content"}]}),o("Success",e.success),i(e.hideCss),e.applied=!0,l.log("Offer applied to ",e.selector)}function s(e){h.filter(function(e){return e.fetched&&
!e.applied}).forEach(function(e){t.querySelectorAll(e.selector).length&&a(e)})}function u(){v=!0;var r={childList:!0,subtree:!0},n=new e.MutationObserver(s);n.observe(t.documentElement,r),e.setTimeout(function(){l.log("Observer timed out"),n.disconnect(),h.forEach(function(e){i(e.hideCss)}),v=!1},3E4)}function c(e){var r=e+"{visibility:hidden}",n=t.getElementsByTagName("head")[0];if(n){var i=t.createElement("style");return i.setAttribute("type","text/css"),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(t.createTextNode(r)),
n.insertBefore(i,n.firstChild)}}function d(e){p.ajax({url:e.url},function(r,n){200===r&&n?(e.fetched=!0,e.responseText=n,t.querySelectorAll(e.selector).length?a(e):v||u()):(l.error("Error loading content for",e.url,", status:",r),i(e.hideCss),o("Error",e.error))})}function f(){h.filter(function(e){return!(!e.url||!e.selector)||(l.error("Missing URL or selector"),!1)}).forEach(function(e){e.hideCss=c(e.selector),e.fetched=!1,d(e)})}var l,h,p=r(4),v=!1;adobe.target.registerExtension({name:"getRemoteOffers",
modules:["logger"],register:function(e){return function(t){l=e,h=t,f()}}})}(window,document,adobe.target)},function(e,t){(function(e){function r(t){return t&&e.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent)?new XDomainRequest:e.XMLHttpRequest?new XMLHttpRequest:void 0}function n(e,t,r){e[t]=e[t]||r}var i=["responseType","withCredentials","timeout","onprogress"];t.ajax=function(t,o){function a(e,t){return function(){d||(o(void 0===f.status?e:f.status,0===f.status?"Error":f.response||f.responseText||
t,f),d=!0)}}var s=t.headers||{},u=t.body,c=t.method||(u?"POST":"GET"),d=!1,f=r(t.cors);f.open(c,t.url,!0);var l=f.onload=a(200);f.onreadystatechange=function(){4===f.readyState&&l()},f.onerror=a(null,"Error"),f.ontimeout=a(null,"Timeout"),f.onabort=a(null,"Abort"),u&&(n(s,"X-Requested-With","XMLHttpRequest"),e.FormData&&u instanceof e.FormData||n(s,"Content-Type","application/x-www-form-urlencoded"));for(var h,p=0,v=i.length;p<v;p++)h=i[p],void 0!==t[h]&&(f[h]=t[h]);for(var h in s)f.setRequestHeader(h,
s[h]);return f.send(u),f}}).call(t,function(){return this}())}])}},2612416,[1944519],554001,[383955]);
Bootstrapper.bindDOMParsed(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(~document.URL.indexOf("mbna.ca/mysupport"));else if(document.URL.indexOf("mbna.ca")>-1||document.URL.indexOf("choicerewards.ca")>-1){document.head=document.head||document.getElementsByTagName("head")[0];[].map||(Array.prototype.map=function(a){for(var b=this,c=b.length,d=[],e=0,f;e<b;)d[e]=e in b?a.call(arguments[1],b[e],e++,b):f;return d});[].indexOf||(Array.prototype.indexOf=
function(a,b,c){for(c=this.length,b=(c+~~b)%c;b<c&&(!(b in this)||this[b]!==a);b++);return b^c?b:-1});var log=Bootstrapper.privacyLog=Bootstrapper.privacyLog||[];log.push({overlay:"loaded"});var privPrefix="ens_pr_";Bootstrapper.privacyStaging=Bootstrapper.privacyStaging||false;Bootstrapper.addCss=function(cssCode,elId){var styleElement=document.createElement("style");styleElement.type="text/css";if(elId)styleElement.setAttribute("id",elId);if(styleElement.styleSheet)styleElement.styleSheet.cssText=
cssCode;else styleElement.appendChild(document.createTextNode(cssCode));var script=document.getElementsByTagName("script")[0];script.parentNode.insertBefore(styleElement,script)};var dialogCSS=".ens_grey_bg {background-color: #f1f1f1!important; padding-left: 30px; padding-right: 30px;} #ens_pr_dialog {margin-left: 40px; margin-right: 40px;} #ens_pr_landing {position: absolute; top: 40%; margin-left: 65%; z-index: 1000; text-align: center;} .ens_leftAlign {text-align: left;} .td-forscreenreader{position:absolute !important;top:0;left:-9999px}";
var linkEls=document.getElementsByTagName("link"),defaultExists=false;for(var i=0;i<linkEls.length;i++)if(linkEls[i].href&&/default.css/.test(linkEls[i].href))defaultExists=true;if(!defaultExists)dialogCSS+="#ens_pr_landing .td-layout-column.td-layout-column-first {margin-left: 0 !important;} #ens_pr_landing .td-layout-grid4 {width: 244px;} #ens_pr_landing .td-layout-column {float: left; margin: 0 6px; position: relative; _display: inline;} #ens_pr_landing .td-callout.td-callout-secondary.td-cs-primary {border: 1px solid #9dc2b1;} #ens_pr_landing .td-callout-secondary {background-color: #fff !important;} #ens_pr_landing .td-callout {position: relative; margin: 0 0 12px 0; padding: 11px 11px 18px 11px;} #ens_pr_landing .td-callout .td-callout-heading { position: relative;} #ens_pr_landing h4 {font-size: 16px !important; color: #555555; font-weight: bold; line-height: 1.2em; font-family: Arial, Helvetica, sans-serif;} #ens_pr_landing .td-button {z-index: 0;} #ens_pr_landing .td-button-primary {border: 1px solid #ac3e01; color: #fff !important; text-shadow: 1px 1px 0px #8d3f09; background: #c0570d; background: -moz-linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #c0570d), color-stop(49.9%, #b94d00), color-stop(50%, #ac3e01), color-stop(100%, #b04a02)); background: -webkit-linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); background: -o-linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); background: -ms-linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); background: linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); -pie-background: linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); box-shadow: 0 1px 3px #9f9f9f, 0 0 2px #f09126 inset; -webkit-box-shadow: 0 1px 3px #9f9f9f, 0 0 2px #f09126 inset; -moz-box-shadow: 0 1px 3px #9f9f9f, 0 0 2px #f09126 inset;} #ens_pr_landing .td-button-compact {font-size: 11px; line-height: 1.2em;} #ens_pr_landing .td-button {font-size: 12px; line-height: 1.2em;} #ens_pr_landing .td-button {display: -moz-inline-box; display: inline-block;} #ens_pr_landing .td-button {position: relative !important; top: 0; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 0; font-weight: bold; cursor: pointer; text-decoration: none !important; z-index: 1; background-position: 0 50%; background-repeat: repeat-x; -webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;} #ens_pr_landing .td-callout .td-callout-content *:last-child {margin-bottom: 0;} #ens_pr_landing .td-button-compact .td-button-label {padding: .2em 1em .3em 1em !important;} #ens_pr_landing .td-button .td-button-label { padding: .45em 1.9em .5em 1.9em !important;} #ens_pr_landing .td-button-label {display: -moz-inline-box; display: inline-block;}";
dialogCSS+=".ens_grey_bg {background-color: #f1f1f1!important;padding-left: 30px;padding-right: 30px;}#ens_pr_dialog {margin-left: 40px;margin-right: 40px;}#ens_pr_landing {position:relative;margin:0 auto;padding:0px;z-index: 10000;width:972px;text-align: center;padding:0px;border:solid 0px #CCCCCC;  }.ens_leftAlign {text-align: left;}.td-forscreenreader {position:absolute !important;top:0;left:-9999px}#ens_landingCallout{background:#e5e5e5;padding:5px 15px 5px 15px;font-size:10px;max-width:942px;}#ens_landingCallout a{color:#000;text-decoration: underline;}#ens_landingCallout a:hover{background:transparent;text-decoration:none;}#ens_landingCallout p{padding:0px; margin:0px;}#ens_landingCallout .ens_heading{text-align:left;font-weight:bold;}#ens_landingCallout .ens_close{position:absolute;float:right;top:35%;right:15px;font-weight:bold;font-size:19px;text-decoration: none;color:#999;cursor: pointer;}#ens_landingCallout .ens_close:hover{color:#333;}";
Bootstrapper.addCss(dialogCSS,"ens_style");Bootstrapper.toggleCheck=function(id){var checkId="check_"+id,checkEl=document.getElementById(checkId);if(/checked/.test(checkEl.className)){checkEl.className="";checkEl.checked=false;if(id==="per")setCookie(0,"1");if(id==="int")setCookie(1,"1")}else{checkEl.className="checked";checkEl.checked=true;if(id==="per")setCookie(0,"0");if(id==="int")setCookie(1,"0")}};Bootstrapper.cookieCheck=function(){};Bootstrapper.openCallout=function(id){var calloutId="callout_"+
id,calloutEl=document.getElementById(calloutId);if(calloutEl.hasAttribute("style")){var styleString=calloutEl.getAttribute("style");calloutEl.setAttribute("style",styleString.replace("none","block"))}};Bootstrapper.closeCallout=function(id){var calloutId="callout_"+id,calloutEl=document.getElementById(calloutId);if(calloutEl.hasAttribute("style")){var styleString=calloutEl.getAttribute("style");calloutEl.setAttribute("style",styleString.replace("block","none"))}};Bootstrapper.closeLanding=function(id){var calloutEl=
document.getElementById("ens_landingCallout");calloutEl.parentNode.removeChild(calloutEl)};function prepHTML(src,suffix){var elem=document.createElement("div");var className=privPrefix;elem.setAttribute("className",privPrefix+suffix)||elem.setAttribute("class",privPrefix+suffix);elem.setAttribute("id",privPrefix+suffix);elem.innerHTML=src;return elem}var globalHTML="\x3cli\x3e{{ens_footer}}\x3c/li\x3e";var globalHTML2="{{ens_footer}}\x3cspan\x3e|\x3c/span\x3e";var globalHTML3="";var landingHTML="\x3cdiv class\x3d'' id\x3d'ens_landingCallout'\x3e\x3c!-- Begin Callout --\x3e\x3cdiv class\x3d''\x3e\x3cp class\x3d'ens_leftAlign'\x3e\x3cspan class\x3d'ens_heading'\x3e{{ens_headline}}\x3c/span\x3e\x3cbr\x3e{{ens_body}}\x3cbr\x3e{{ens_info}}\x3c/p\x3e\x3cspan class\x3d'ens_close' onclick\x3d'Bootstrapper.closeLanding()' aria-label\x3d'Close Privacy banner notification'\x3e\u2716\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e";
var dialogHTML="\x3cdiv id\x3d'ens_dialog'\x3e\x3ch1\x3e{{ens_heading}}\x3c/h1\x3e\x3cdiv\x3e{{ens_body}}\x3c/div\x3e\x3cbr\x3e\x3cdiv class\x3d'Main-Grid-Mobile-web-fluid' tabindex\x3d'-1' style\x3d'display: block;'\x3e\x3cdiv class\x3d'td-layout-fluidrow show-grid'\x3e\x3cdiv class\x3d'td-layout-fluidcolumn td-layout-fluidgrid12 ens_grey_bg'\x3e\x3ch3\x3e{{ens_perHead}}\x3c/h3\x3e\x3cdiv\x3e{{ens_perBody}}\x3c/div\x3e\x3cbr\x3e\x3cform class\x3d'td-form'\x3e\x3cdiv class\x3d'td-layout-row td-margin-bottom-large'\x3e\x3cinput id\x3d'check_per' name\x3d'check' type\x3d'checkbox' value\x3d'ens_perCheck' onclick\x3d'Bootstrapper.toggleCheck(\"per\")' /\x3e\x3clabel for\x3d'check_per' onclick\x3d'Bootstrapper.toggleCheck(\"per\")'\x3e\x3cspan class\x3d'td-label-content-wrapper'\x3e\x3cspan class\x3d'td-label-check'\x3e\x3c/span\x3e\x3cspan class\x3d'td-label-content'\x3e{{ens_perCheck}}\x3c/span\x3e\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3c/form\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cbr\x3e\x3cdiv class\x3d'Main-Grid-Mobile-web-fluid' tabindex\x3d'-1' style\x3d'display: block;'\x3e\x3cdiv class\x3d'td-layout-fluidrow show-grid'\x3e\x3cdiv class\x3d'td-layout-fluidcolumn td-layout-fluidgrid12 ens_grey_bg'\x3e\x3ch3\x3e{{ens_intHead}}\x3c/h3\x3e\x3cdiv\x3e{{ens_intBodyOne}}\x3c/div\x3e\x3cbr\x3e\x3cdiv\x3e{{ens_intBodyTwo}}\x3c/div\x3e\x3cbr\x3e\x3cdiv\x3e{{ens_intBodyThree}}\x3c/div\x3e\x3cbr\x3e\x3cdiv\x3e{{ens_intBodyFour}}\x3c/div\x3e\x3cbr\x3e\x3cdiv\x3e{{ens_intBodyFive}}\x3c/div\x3e\x3cbr\x3e\x3cform class\x3d'td-form'\x3e\x3cdiv class\x3d'td-layout-row td-margin-bottom-large'\x3e\x3cinput id\x3d'check_int' name\x3d'check' type\x3d'checkbox' value\x3d'ens_perCheck' onclick\x3d'Bootstrapper.toggleCheck(\"int\")' /\x3e\x3clabel for\x3d'check_int' onclick\x3d'Bootstrapper.toggleCheck(\"int\")'\x3e\x3cspan class\x3d'td-label-content-wrapper'\x3e\x3cspan class\x3d'td-label-check'\x3e\x3c/span\x3e\x3cspan class\x3d'td-label-content'\x3e{{ens_intCheck}}\x3c/span\x3e\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3c/form\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3ch3\x3e{{ens_essHead}}\x3c/h3\x3e\x3cp\x3e{{ens_essBodyOne}}\x3c/p\x3e\x3cp\x3e{{ens_essBodyTwo}}\x3c/p\x3e\x3cp\x3e{{ens_essBodyThree}}\x3c/p\x3e\x3c/div\x3e";
var closed=false;var open=false;var prefix=Bootstrapper.gatewayOptions.clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_";var types=Bootstrapper.gatewayOptions.cookieTypes;log.push({prefix:prefix});log.push({types:types});function templateReplacer(template,data){return template.replace(RegExp("{{\\s*([a-z0-9_][.a-z0-9_]*)\\s*}}","gi"),function(tag,k){var p=k.split("."),len=p.length,temp=data,i=0;for(;i<len;i++)temp=temp[p[i]];return temp})}function attachHandlers(){}function _each(array,fn){if(!array)return false;
for(var i=0;i<array.length;i++)fn(array[i],i,array);array=null}function setCookie(typeNumber,value){setFirstPartyCookie(typeNumber,value);setLocalCookie(typeNumber,value);setThirdPartyCookie(typeNumber,value)}function setThirdPartyCookie(typeNumber,value){Bootstrapper.insertScript("//scarf.ensighten.com/x?key\x3d"+prefix+types[typeNumber]+"\x26value\x3d"+value+"\x26timestamp\x3d"+ +new Date)}function setLocalCookie(typeNumber,value){Bootstrapper.cookies[prefix+types[typeNumber]]=value}function setFirstPartyCookie(typeNumber,
value){var location=window.location||{},hostname=window.hostname||location.hostname||"",domain="";document.cookie=prefix+types[typeNumber]+"\x3d"+value+"; path\x3d/"+domain+"; expires\x3d"+(new Date(+new Date+1E3*60*60*24*365)).toUTCString()}function transferCookies(){var i;if(Bootstrapper.cookies[prefix+types[0]]===null)for(i=0;i<types.length;i++)try{Bootstrapper.cookies[prefix+types[i]]=(new RegExp(prefix+types[i]+"\x3d([^;]+);?")).exec(document.cookie)[1]||Bootstrapper.cookies[prefix+types[i]]}catch(error){console.log(error)}else for(i=
0;i<types.length;i++){setFirstPartyCookie(i,Bootstrapper.cookies[prefix+types[i]]);setThirdPartyCookie(i,Bootstrapper.cookies[prefix+types[i]])}}function findCookie(testString,returnValue){var reTest=new RegExp(testString),cookieList=document.cookie.split("; ");for(var i=0;i<cookieList.length;i++)if(reTest.test(cookieList[i])&&returnValue){var cookieVal=cookieList[i].split("\x3d"),retVal="";for(var j=1;j<cookieVal.length;j++){if(j>1)retVal+="\x3d";retVal+=cookieVal[j]}return retVal}else if(reTest.test(cookieList[i]))return true;
return false}function deleteCookies(type){log.push({preDelete:document.cookie});_each(cookies[type],function(cookie){document.cookie=cookie+"\x3d;expires\x3dThu, 01 Jan 1970 00:00:01 GMT;";document.cookie=cookie+"\x3d;expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/;";document.cookie=cookie+"\x3d;expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/"+window.location.pathname.split("/")[1]+";";document.cookie=cookie+"\x3d;domain\x3d.mbna.ca;"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;";document.cookie=
cookie+"\x3d;domain\x3d.mbna.ca;"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/;";document.cookie=cookie+"\x3d;domain\x3d"+location.hostname+";"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;";document.cookie=cookie+"\x3d;domain\x3d"+location.hostname+";"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/;";document.cookie=cookie+"\x3d;domain\x3d"+location.hostname.substr(3)+";"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;";document.cookie=cookie+"\x3d;domain\x3d"+location.hostname.substr(3)+";"+
"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/;"});log.push({postDelete:document.cookie})}var cookies={};function isInIframe(){if(window.self!==window.top)return true;return false}if(Bootstrapper.enablePrivacy&&Bootstrapper.enableFiltering)if(!isInIframe())var dialogInterval=setInterval(function(){if(Bootstrapper.privacyText&&Bootstrapper.privacyText.landingText&&Bootstrapper.privacyText.landingText.ens_info&&Bootstrapper.privacyText.globalText&&Bootstrapper.privacyText.globalText.ens_footer&&
Bootstrapper.privacyText.dialogText&&Bootstrapper.privacyText.dialogText.ens_helpThree&&Bootstrapper.privacyText.stgLinks&&Bootstrapper.privacyText.stgLinks.info&&Bootstrapper.privacyText.prodLinks&&Bootstrapper.privacyText.prodLinks.info){var globalText=templateReplacer(globalHTML,Bootstrapper.privacyText.globalText);var globalText2=templateReplacer(globalHTML2,Bootstrapper.privacyText.globalText);var globalText3=templateReplacer(globalHTML3,Bootstrapper.privacyText.globalText);if(Bootstrapper.privacyStaging){globalText=
templateReplacer(globalText,Bootstrapper.privacyText.stgLinks);globalText2=templateReplacer(globalText2,Bootstrapper.privacyText.stgLinks);globalText3=templateReplacer(globalText3,Bootstrapper.privacyText.stgLinks)}else{globalText=templateReplacer(globalText,Bootstrapper.privacyText.prodLinks);globalText2=templateReplacer(globalText2,Bootstrapper.privacyText.prodLinks);globalText3=templateReplacer(globalText3,Bootstrapper.privacyText.prodLinks)}var footerEl=document.getElementById("td-layout-footer"),
footerList;var footerEl2=document.getElementsByClassName("legals")[0];var footerEl3=document.getElementById("footer");if(footerEl){footerList=footerEl.getElementsByTagName("ul")[0];footerOrig=footerList.innerHTML;footerList.innerHTML=globalText+footerOrig}else if(footerEl2){footerList=footerEl2.innerHTML;console.log(footerList);jQuery(".legals").html(globalText2+footerList)}else if(footerEl3)console.log("footerEl3");else;if(/www(\.test2)?\.mbna\.ca\/privacy\/manage-content-preferences\.jsp/.test(window.location.href)||
/www(\.test2)?\.mbna\.ca\/francais\/privacy\/manage-content-preferences\.jsp/.test(window.location.href)||/www(\.test2)?\.choicerewards\.ca\/privacy\/manage-content-preferences\.jsp/.test(window.location.href)||/www(\.test2)?\.choicerewards\.ca\/francais\/privacy\/manage-content-preferences\.jsp/.test(window.location.href)){var leftCol=document.getElementById("td-nav-left");if(leftCol){var leftParent=leftCol.parentNode;if(leftParent)leftParent.parentNode.removeChild(leftParent)}var dialog=prepHTML(dialogHTML,
"dialog");dialog.innerHTML=templateReplacer(dialog.innerHTML,Bootstrapper.privacyText.dialogText);dialog.innerHTML=templateReplacer(dialog.innerHTML,Bootstrapper.privacyText.dialogText);if(Bootstrapper.privacyStaging)dialog.innerHTML=templateReplacer(dialog.innerHTML,Bootstrapper.privacyText.stgLinks);else dialog.innerHTML=templateReplacer(dialog.innerHTML,Bootstrapper.privacyText.prodLinks);var mainEl=document.getElementById("main");if(mainEl){if(/td-layout-grid12/i.test(mainEl.parentNode.className))mainEl.parentNode.className=
mainEl.parentNode.className.replace("td-layout-grid12","td-layout-grid15");mainEl.appendChild(dialog)}}var origCookies=Bootstrapper.cookies;Bootstrapper.loadScriptCallback("//scarf.ensighten.com/go",function(){if(Bootstrapper.enablePrivacy&&Bootstrapper.enableFiltering){log.push({scarfCookies:Bootstrapper.cookies||null});var useThirdParty=true;for(i=0;i<types.length;i++)if(!Bootstrapper.cookies[prefix+types[i]]||!/0|1/.test(Bootstrapper.cookies[prefix+types[i]]))useThirdParty=false;if(!useThirdParty){for(i=
0;i<types.length;i++)setLocalCookie(i,origCookies[prefix+types[i]]);log.push({useThirdParty:"false"})}log.push({transferredCookies:Bootstrapper.cookies||null});attachHandlers();if(useThirdParty){Bootstrapper.setPref=true;log.push({setPref:"true"})}if(/0/.test(Bootstrapper.cookies[prefix+types[0]]))Bootstrapper.toggleCheck("per");if(/0/.test(Bootstrapper.cookies[prefix+types[1]]))Bootstrapper.toggleCheck("int");if(!Bootstrapper.setPref){var landing=prepHTML(landingHTML,"landing");landing.innerHTML=
templateReplacer(landing.innerHTML,Bootstrapper.privacyText.landingText);if(Bootstrapper.privacyStaging)landing.innerHTML=templateReplacer(landing.innerHTML,Bootstrapper.privacyText.stgLinks);else landing.innerHTML=templateReplacer(landing.innerHTML,Bootstrapper.privacyText.prodLinks);if(!/mobile\//i.test(window.location.pathname))document.body.insertBefore(landing,document.body.childNodes[0]);log.push({landing:"loaded"})}if(Bootstrapper.cookies[prefix+types[0]])for(var i=0;i<types.length;i++)if(Bootstrapper.cookies[prefix+
types[i]]==="0")deleteCookies(types[i])}});clearInterval(dialogInterval)}return},200)}},2858788,416936);
Bootstrapper.bindDOMParsed(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("includes/javascript/cookies/setDcxCookie.jsp")>-1||~document.URL.indexOf("mobile-ads"));else if(document.URL.indexOf("tdcanadatrust.com")>-1||document.URL.indexOf("td.com")>-1){document.head=document.head||document.getElementsByTagName("head")[0];[].map||(Array.prototype.map=function(a){for(var b=this,c=b.length,d=[],e=0,f;e<b;)d[e]=e in b?a.call(arguments[1],
b[e],e++,b):f;return d});[].indexOf||(Array.prototype.indexOf=function(a,b,c){for(c=this.length,b=(c+~~b)%c;b<c&&(!(b in this)||this[b]!==a);b++);return b^c?b:-1});var log=Bootstrapper.privacyLog=Bootstrapper.privacyLog||[];log.push({overlay:"loaded"});var privPrefix="ens_pr_";Bootstrapper.privacyStaging=Bootstrapper.privacyStaging||false;Bootstrapper.addCss=function(cssCode,elId){var styleElement=document.createElement("style");styleElement.type="text/css";if(elId)styleElement.setAttribute("id",
elId);if(styleElement.styleSheet)styleElement.styleSheet.cssText=cssCode;else styleElement.appendChild(document.createTextNode(cssCode));var script=document.getElementsByTagName("script")[0];script.parentNode.insertBefore(styleElement,script)};var dialogCSS=".ens_grey_bg {background-color: #f1f1f1!important; padding-left: 30px; padding-right: 30px;} #ens_pr_dialog {margin-left: 40px; margin-right: 40px;} #ens_pr_landing {position: absolute; top: 40%; margin-left: 65%; z-index: 1000; text-align: center;} .ens_leftAlign {text-align: left;}";
var linkEls=document.getElementsByTagName("link"),defaultExists=false;for(var i=0;i<linkEls.length;i++)if(linkEls[i].href&&/default.css/.test(linkEls[i].href))defaultExists=true;if(!defaultExists)dialogCSS+="#ens_pr_landing .td-layout-column.td-layout-column-first {margin-left: 0 !important;} #ens_pr_landing .td-layout-grid4 {width: 244px;} #ens_pr_landing .td-layout-column {float: left; margin: 0 6px; position: relative; _display: inline;} #ens_pr_landing .td-callout.td-callout-secondary.td-cs-primary {border: 1px solid #9dc2b1;} #ens_pr_landing .td-callout-secondary {background-color: #fff !important;} #ens_pr_landing .td-callout {position: relative; margin: 0 0 12px 0; padding: 11px 11px 18px 11px;} #ens_pr_landing .td-callout .td-callout-heading { position: relative;} #ens_pr_landing h4 {font-size: 16px !important; color: #555555; font-weight: bold; line-height: 1.2em; font-family: Arial, Helvetica, sans-serif;} #ens_pr_landing .td-button {z-index: 0;} #ens_pr_landing .td-button-primary {border: 1px solid #ac3e01; color: #fff !important; text-shadow: 1px 1px 0px #8d3f09; background: #c0570d; background: -moz-linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #c0570d), color-stop(49.9%, #b94d00), color-stop(50%, #ac3e01), color-stop(100%, #b04a02)); background: -webkit-linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); background: -o-linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); background: -ms-linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); background: linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); -pie-background: linear-gradient(top, #c0570d 0%, #b94d00 49.9%, #ac3e01 50%, #b04a02 100%); box-shadow: 0 1px 3px #9f9f9f, 0 0 2px #f09126 inset; -webkit-box-shadow: 0 1px 3px #9f9f9f, 0 0 2px #f09126 inset; -moz-box-shadow: 0 1px 3px #9f9f9f, 0 0 2px #f09126 inset;} #ens_pr_landing .td-button-compact {font-size: 11px; line-height: 1.2em;} #ens_pr_landing .td-button {font-size: 12px; line-height: 1.2em;} #ens_pr_landing .td-button {display: -moz-inline-box; display: inline-block;} #ens_pr_landing .td-button {position: relative !important; top: 0; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 0; font-weight: bold; cursor: pointer; text-decoration: none !important; z-index: 1; background-position: 0 50%; background-repeat: repeat-x; -webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;} #ens_pr_landing .td-callout .td-callout-content *:last-child {margin-bottom: 0;} #ens_pr_landing .td-button-compact .td-button-label {padding: .2em 1em .3em 1em !important;} #ens_pr_landing .td-button .td-button-label { padding: .45em 1.9em .5em 1.9em !important;} #ens_pr_landing .td-button-label {display: -moz-inline-box; display: inline-block;}";
Bootstrapper.addCss(dialogCSS,"ens_style");Bootstrapper.toggleCheck=function(id){var checkId="check_"+id,checkEl=document.getElementById(checkId);if(/checked/.test(checkEl.className)){checkEl.className="";if(id==="per")setCookie(0,"1");if(id==="int")setCookie(1,"1")}else{checkEl.className="checked";if(id==="per")setCookie(0,"0");if(id==="int")setCookie(1,"0")}};Bootstrapper.openCallout=function(id){var calloutId="callout_"+id,calloutEl=document.getElementById(calloutId);if(calloutEl.hasAttribute("style")){var styleString=
calloutEl.getAttribute("style");calloutEl.setAttribute("style",styleString.replace("none","block"))}};Bootstrapper.closeCallout=function(id){var calloutId="callout_"+id,calloutEl=document.getElementById(calloutId);if(calloutEl.hasAttribute("style")){var styleString=calloutEl.getAttribute("style");calloutEl.setAttribute("style",styleString.replace("block","none"))}};Bootstrapper.closeLanding=function(id){var calloutEl=document.getElementById("ens_landingCallout");calloutEl.parentNode.removeChild(calloutEl)};
function prepHTML(src,suffix){var elem=document.createElement("div");var className=privPrefix;elem.setAttribute("className",privPrefix+suffix)||elem.setAttribute("class",privPrefix+suffix);elem.setAttribute("id",privPrefix+suffix);elem.innerHTML=src;return elem}var globalHTML="\x3cli\x3e{{ens_footer}}\x3c/li\x3e";var landingHTML="\x3cdiv id\x3d'ens_landingCallout' class\x3d'td-background-lightgreen hidden-xs hidden-sm td-layout-column td-layout-column-first td-layout-grid4'\x3e\x3c!-- Begin Callout --\x3e\x3cdiv class\x3d'td-callout td-callout-secondary td-cs-primary'\x3e\x3cdiv class\x3d'td-callout-heading'\x3e\x3ch4\x3e{{ens_headline}}\x3c/h4\x3e\x3c/div\x3e\x3cdiv class\x3d'td-callout-content'\x3e\x3cp class\x3d'td-copy-sub ens_leftAlign'\x3e{{ens_body}}\x3c/p\x3e\x3ca href\x3d'#' class\x3d'td-button td-button-primary td-button-compact' role\x3d'button' onclick\x3d'Bootstrapper.closeLanding()'\x3e\x3cspan class\x3d'td-button-label'\x3e{{ens_continue}}\x3c/span\x3e\x3c/a\x3e\x3cbr\x3e\x3cbr\x3e\x3cp\x3e{{ens_info}}\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e";
var dialogHTML="\x3cdiv id\x3d'ens_dialog'\x3e\x3ch2\x3e{{ens_heading}}\x3c/h2\x3e\x3cdiv\x3e{{ens_body}}\x3c/div\x3e\x3cbr\x3e\x3cdiv class\x3d'Main-Grid-Mobile-web-fluid' tabindex\x3d'-1' style\x3d'display: block;'\x3e\x3cdiv class\x3d'td-layout-fluidrow show-grid'\x3e\x3cdiv class\x3d'td-layout-fluidcolumn td-layout-fluidgrid12 ens_grey_bg'\x3e\x3ch3\x3e{{ens_perHead}}\x3c/h3\x3e\x3cdiv\x3e{{ens_perBody}}\x3c/div\x3e\x3cbr\x3e\x3cform class\x3d'td-form'\x3e\x3cdiv class\x3d'td-layout-row td-margin-bottom-large'\x3e\x3cinput id\x3d'check_per' name\x3d'check' type\x3d'checkbox' value\x3d'ens_perCheck' /\x3e\x3clabel for\x3d'check_per' onclick\x3d'Bootstrapper.toggleCheck(\"per\")'\x3e\x3cspan class\x3d'td-label-content-wrapper'\x3e\x3cspan class\x3d'td-label-check'\x3e\x3c/span\x3e\x3cspan class\x3d'td-label-content'\x3e{{ens_perCheck}}\x3c/span\x3e\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3c/form\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cbr\x3e\x3cdiv class\x3d'Main-Grid-Mobile-web-fluid' tabindex\x3d'-1' style\x3d'display: block;'\x3e\x3cdiv class\x3d'td-layout-fluidrow show-grid'\x3e\x3cdiv class\x3d'td-layout-fluidcolumn td-layout-fluidgrid12 ens_grey_bg'\x3e\x3ch3\x3e{{ens_intHead}}\x3c/h3\x3e\x3cdiv\x3e{{ens_intBodyOne}}\x3c/div\x3e\x3cbr\x3e\x3cdiv\x3e{{ens_intBodyTwo}}\x3c/div\x3e\x3cbr\x3e\x3cdiv\x3e{{ens_intBodyThree}}\x3c/div\x3e\x3cbr\x3e\x3cdiv\x3e{{ens_intBodyFour}}\x3c/div\x3e\x3cbr\x3e\x3cdiv\x3e{{ens_intBodyFive}}\x3c/div\x3e\x3cbr\x3e\x3cform class\x3d'td-form'\x3e\x3cdiv class\x3d'td-layout-row td-margin-bottom-large'\x3e\x3cinput id\x3d'check_int' name\x3d'check' type\x3d'checkbox' value\x3d'ens_perCheck' /\x3e\x3clabel for\x3d'check_int' onclick\x3d'Bootstrapper.toggleCheck(\"int\")'\x3e\x3cspan class\x3d'td-label-content-wrapper'\x3e\x3cspan class\x3d'td-label-check'\x3e\x3c/span\x3e\x3cspan class\x3d'td-label-content'\x3e{{ens_intCheck}}\x3c/span\x3e\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3c/form\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3ch3\x3e{{ens_essHead}}\x3c/h3\x3e\x3cp\x3e{{ens_essBodyOne}}\x3c/p\x3e\x3cp\x3e{{ens_essBodyTwo}}\x3c/p\x3e\x3cp\x3e{{ens_essBodyThree}}\x3c/p\x3e\x3c/div\x3e";
var closed=false;var open=false;var prefix=Bootstrapper.gatewayOptions.clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_";var types=Bootstrapper.gatewayOptions.cookieTypes;log.push({prefix:prefix});log.push({types:types});function templateReplacer(template,data){return template.replace(RegExp("{{\\s*([a-z0-9_][.a-z0-9_]*)\\s*}}","gi"),function(tag,k){var p=k.split("."),len=p.length,temp=data,i=0;for(;i<len;i++)temp=temp[p[i]];return temp})}function attachHandlers(){}function _each(array,fn){if(!array)return false;
for(var i=0;i<array.length;i++)fn(array[i],i,array);array=null}function setCookie(typeNumber,value){setFirstPartyCookie(typeNumber,value);setLocalCookie(typeNumber,value);setThirdPartyCookie(typeNumber,value)}function setThirdPartyCookie(typeNumber,value){Bootstrapper.insertScript("//scarf.ensighten.com/x?key\x3d"+prefix+types[typeNumber]+"\x26value\x3d"+value+"\x26timestamp\x3d"+ +new Date)}function setLocalCookie(typeNumber,value){Bootstrapper.cookies[prefix+types[typeNumber]]=value}function setFirstPartyCookie(typeNumber,
value){var location=window.location||{},hostname=window.hostname||location.hostname||"",domain="";document.cookie=prefix+types[typeNumber]+"\x3d"+value+"; path\x3d/"+domain+"; expires\x3d"+(new Date(+new Date+1E3*60*60*24*365)).toUTCString()}function transferCookies(){var i;if(Bootstrapper.cookies[prefix+types[0]]===null)for(i=0;i<types.length;i++)try{Bootstrapper.cookies[prefix+types[i]]=(new RegExp(prefix+types[i]+"\x3d([^;]+);?")).exec(document.cookie)[1]||Bootstrapper.cookies[prefix+types[i]]}catch(error){}else for(i=
0;i<types.length;i++){setFirstPartyCookie(i,Bootstrapper.cookies[prefix+types[i]]);setThirdPartyCookie(i,Bootstrapper.cookies[prefix+types[i]])}}function findCookie(testString,returnValue){var reTest=new RegExp(testString),cookieList=document.cookie.split("; ");for(var i=0;i<cookieList.length;i++)if(reTest.test(cookieList[i])&&returnValue){var cookieVal=cookieList[i].split("\x3d"),retVal="";for(var j=1;j<cookieVal.length;j++){if(j>1)retVal+="\x3d";retVal+=cookieVal[j]}return retVal}else if(reTest.test(cookieList[i]))return true;
return false}function deleteCookies(type){log.push({preDelete:document.cookie});_each(cookies[type],function(cookie){document.cookie=cookie+"\x3d;expires\x3dThu, 01 Jan 1970 00:00:01 GMT;";document.cookie=cookie+"\x3d;expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/;";document.cookie=cookie+"\x3d;expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/"+window.location.pathname.split("/")[1]+";";document.cookie=cookie+"\x3d;domain\x3d.tdcanadatrust.com;"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;";document.cookie=
cookie+"\x3d;domain\x3d.tdcanadatrust.com;"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/;";document.cookie=cookie+"\x3d;domain\x3d"+location.hostname+";"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;";document.cookie=cookie+"\x3d;domain\x3d"+location.hostname+";"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/;";document.cookie=cookie+"\x3d;domain\x3d"+location.hostname.substr(3)+";"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;";document.cookie=cookie+"\x3d;domain\x3d"+location.hostname.substr(3)+
";"+"expires\x3dThu, 01 Jan 1970 00:00:01 GMT;path\x3d/;"});log.push({postDelete:document.cookie})}var cookies={};function isInIframe(){if(window.self!==window.top)return true;return false}if(Bootstrapper.enablePrivacy&&Bootstrapper.enableFiltering)if(!isInIframe())var dialogInterval=setInterval(function(){if(Bootstrapper.privacyText&&Bootstrapper.privacyText.landingText&&Bootstrapper.privacyText.landingText.ens_info&&Bootstrapper.privacyText.globalText&&Bootstrapper.privacyText.globalText.ens_footer&&
Bootstrapper.privacyText.dialogText&&Bootstrapper.privacyText.dialogText.ens_helpThree&&Bootstrapper.privacyText.stgLinks&&Bootstrapper.privacyText.stgLinks.info&&Bootstrapper.privacyText.prodLinks&&Bootstrapper.privacyText.prodLinks.info){window.console.log("linkOnly: "+Bootstrapper.linkOnly+" cookieOnly: "+Bootstrapper.cookieOnly);var globalText=templateReplacer(globalHTML,Bootstrapper.privacyText.globalText);if(Bootstrapper.privacyStaging)globalText=templateReplacer(globalText,Bootstrapper.privacyText.stgLinks);
else globalText=templateReplacer(globalText,Bootstrapper.privacyText.prodLinks);var footerEl=document.getElementById("td-layout-footer"),footerList;if(footerEl){footerList=footerEl.getElementsByTagName("ul")[0];footerList.innerHTML+=globalText}if(/www(\.test2)?\.tdcanadatrust\.com\/customer-service\/security\/manage-content-preferences/.test(window.location.href)||/www(\.test2)?\.tdcanadatrust\.com\/francais\/service-a-la-clientele\/securite-de-linternet\/gerer-les-preferences-de-contenu/.test(window.location.href)){var leftCol=
document.getElementById("td-nav-left");if(leftCol){var leftParent=leftCol.parentNode;if(leftParent)leftParent.parentNode.removeChild(leftParent)}var dialog=prepHTML(dialogHTML,"dialog");dialog.innerHTML=templateReplacer(dialog.innerHTML,Bootstrapper.privacyText.dialogText);dialog.innerHTML=templateReplacer(dialog.innerHTML,Bootstrapper.privacyText.dialogText);if(Bootstrapper.privacyStaging)dialog.innerHTML=templateReplacer(dialog.innerHTML,Bootstrapper.privacyText.stgLinks);else dialog.innerHTML=
templateReplacer(dialog.innerHTML,Bootstrapper.privacyText.prodLinks);var mainEl=document.getElementById("main");if(mainEl&&!Bootstrapper.linkOnly&&!Bootstrapper.cookieOnly){if(/td-layout-grid12/i.test(mainEl.parentNode.className))mainEl.parentNode.className=mainEl.parentNode.className.replace("td-layout-grid12","td-layout-grid15");mainEl.appendChild(dialog)}}var origCookies=Bootstrapper.cookies;Bootstrapper.loadScriptCallback("//scarf.ensighten.com/go",function(){if(Bootstrapper.enablePrivacy&&Bootstrapper.enableFiltering){log.push({scarfCookies:Bootstrapper.cookies||
null});var useThirdParty=true;for(i=0;i<types.length;i++)if(!Bootstrapper.cookies[prefix+types[i]]||!/0|1/.test(Bootstrapper.cookies[prefix+types[i]]))useThirdParty=false;if(!useThirdParty)for(i=0;i<types.length;i++)setLocalCookie(i,origCookies[prefix+types[i]]);transferCookies();log.push({transferredCookies:Bootstrapper.cookies||null});attachHandlers();if(useThirdParty)Bootstrapper.setPref=true;if(/0/.test(Bootstrapper.cookies[prefix+types[0]]))Bootstrapper.toggleCheck("per");if(/0/.test(Bootstrapper.cookies[prefix+
types[1]]))Bootstrapper.toggleCheck("int");if(!Bootstrapper.setPref){var landing=prepHTML(landingHTML,"landing");landing.innerHTML=templateReplacer(landing.innerHTML,Bootstrapper.privacyText.landingText);if(Bootstrapper.privacyStaging)landing.innerHTML=templateReplacer(landing.innerHTML,Bootstrapper.privacyText.stgLinks);else landing.innerHTML=templateReplacer(landing.innerHTML,Bootstrapper.privacyText.prodLinks);if(!Bootstrapper.linkOnly&&!Bootstrapper.cookieOnly)document.body.appendChild(landing)}if(Bootstrapper.cookies[prefix+
types[0]])for(var i=0;i<types.length;i++)if(Bootstrapper.cookies[prefix+types[i]]==="0")deleteCookies(types[i])}});clearInterval(dialogInterval)}return},200)}},2593213,296324);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(~document.URL.indexOf("mbna.ca/mysupport")||~document.URL.indexOf("mobile-ads")||document.URL.indexOf("tdinsurance")>-1||document.URL.indexOf("tdassurance")>-1);else if(Bootstrapper.enablePrivacy)(function(undefined){var Bootstrapper=window.Bootstrapper=window.Bootstrapper||{};var ensightenOptions=Bootstrapper.ensightenOptions||{};if(Bootstrapper.gateway)return false;
if(document.readyState==="complete")Bootstrapper.callOnDOMLoaded();var events=["load","abort","error"];var elementMethods=["appendChild","insertBefore","replaceChild","removeChild"];if(document.insertAdjacentElement||window.Element&&Element.prototype.insertAdjacentElement||window.HTMLElement&&HTMLElement.prototype.insertAdjacentElement)elementMethods.push("insertAdjacentElement");var excList=new RegExp("nodeName|scopeName|tagName|"+"fileSize|outerHTML|start|contentEditable|href|nameProp|outerText|innerText|innerHTML");
var elementTypes=["Anchor","Area","Body","Button","Canvas","Div","Form","Frame","Head","Html","IFrame","Input","Label","LI","Link","Map","OList","Option","Paragraph","Span","Table","TableCell","TableCol","TableRow","TableSection","UList","Unknown"];var eventHandlers=["abort","error","KeyDown","KeyPress","KeyUp","load"];var forwardMethods=["cloneNode","attachEvent"];var getters=["ElementsByClassName","ClientRects","BoundingClientRect","Attribute","ElementsByTagName","ElementsByTagNameNS","AttributeNS",
"UserData","AttributeNode","AttributeNodeNS","Height","Width","Style","Opacity","Dimensions","OffsetParent","ElementsBySelector","InlineOpacity","Styles"];var unbound={};function couldNotBind(key){unbound[key]=true}function noop(){}function each(list,fn,context){if(list===undefined||!("length"in list))list={length:0};for(var i=0;i<list.length;i++)fn.call(context,list[i],i,list)}function map(list,fn,context){if(list===undefined||!("length"in list))list={length:0};for(var i=0;i<list.length;i++)list[i]=
fn.call(context,list[i],i,list)}function bind(fn,context,args){args=Array.prototype.slice.call(arguments);fn=args.shift();context=args.shift();return function(){return fn.apply(context,args.concat(Array.prototype.slice.call(arguments)))}}var Reporter=function(){var n=1;var flags={DYNAMIC:n,STATIC:n*=2,script:n*=2,image:n*=2,iframe:n*=2,appendChild:n*=2,insertBefore:n*=2,replaceChild:n*=2,write:n*=2,writeln:n*=2,insertAdjacentElement:n*=2,proxy:n*=2,setter:n*=2,blocked:n*=2,complete:n*=2,error:n*=
2,abort:n*=2,timeout:n+=2};function generateType(resource){var type=0;if(resource.type)type|=flags[resource.type];if(resource.source)type|=flags[resource.source];if(resource.status)type|=flags[resource.status];return type}function generateReportString(resources){var str=["","","",""],match=[];function helper(type,data,i){var temp;if(!data)return;match[type]=match[type]||{};if(data in match[type])return"\x3e\x3e$"+match[type][data];else{match[type][data]=i;return"\x3e\x3e"+data}}function processResource(resource,
i){str[0]+=helper(0,resource.destination||"unknown",i);str[1]+=helper(1,generateType(resource)||-1,i);str[2]+=helper(2,resource.start||-1,i);str[3]+=helper(3,resource.end||-1,i)}function trim(str){return str.slice(2,str.length)}each(resources,processResource);map(str,trim);return encodeURIComponent(str.join("\x3c\x3c"))}function doReport(){var buff=[],reportString;if(this.beaconCounter>=this.options.maxBeaconsPerPage||this.enabled===false||this.unreportedResources.length===0)return false;while(this.unreportedResources.length>
0){buff.push(this.unreportedResources.pop());reportString=generateReportString(buff);if(reportString.length+50>=this.options.maxUrlSize)break}this.reportedResources=this.reportedResources.concat(buff);return beacon.call(this,reportString)}function beacon(data){var Img=Bootstrapper.ImageRef||window.Image;if(this.beaconCounter>=this.options.maxBeaconsPerPage)return false;return(new Img).src="//b.ensighten.com?n\x3d"+this.beaconCounter++ +"\x26c\x3d"+ensightenOptions.clientId+"\x26i\x3d"+Bootstrapper.gateway.id+
"\x26d\x3d"+data}function startTimer(){var self=this;doReport.call(this);if(this.beaconCounter>=this.options.maxBeaconsPerPage||!this.enabled){this.enabled=false;return false}return setTimeout(function(){startTimer.call(self)},this.options.reportInterval)}function Reporter(options){this.unreportedResources=[];this.reportedResources=[];this.beaconCounter=0;this.enabled=true;startTimer.call(this);if(options)this.options=options}Reporter.prototype={options:{maxUrlSize:2E3,maxBeaconsPerPage:4,reportQueryParams:true,
reportPerformanceData:true,reportStack:false,reportInterval:2500,reportDuplicateRequests:true},addResource:function(resource){this.unreportedResources.push(resource)},setOptions:function(options){for(var p in options)if(options.hasOwnProperty(p))this.options[p]=options[p]}};return Reporter}();var HistoryEntry=function(){function HistoryEntry(request,node){this.request=request;this.nodeRef=node}return HistoryEntry}();var Observer=function(){function Observer(name,hook){this.name=name;this.hook=hook;
this.enabled=false}return Observer}();var Request=function(){function Request(destination,type,observed,start){this.destination=destination||"";this.type=null;this.observed=observed||+new Date;this.start=start||+new Date;this.end=-1;this.source=null;this.status=null}return Request}();function getFunctionString(fn){if(!fn||typeof fn!=="function"&&typeof fn!=="object")return false;if(fn.toString!==undefined)return fn.toString();return fn+""}function isNative(fn){var re=new RegExp("function\\s+.+?\\(\\s*\\)"+
"\\s*{\\s*\\[native code\\]\\s*}"),re2=new RegExp("function\\s+.+?\\"+"(\\s*\\)\\s*{\\s*\\/\\*\\s*"+"source code not available\\s*\\*\\/\\s*}"),fnStr=getFunctionString(fn);var retValue=re.test(fnStr)||re2.test(fnStr);re=re2=fnStr=null;return retValue}function isImageNative(){if(!window.Image)return false;return window.HTMLImageElement&&window.Image.prototype&&window.Image.prototype instanceof window.HTMLImageElement||typeof window.Image.toString==="function"&&window.Image.toString()==="[object Image]"||
window.Image=="[object HTMLImageElement]"||isNative(window.Image)}function createEventHandler(timeStamp,status){return function(){Bootstrapper.gateway.resourceComplete(this,timeStamp,status)}}function createFragment(html){try{var doc=document.implementation.createHTMLDocument("sandbox");doc.body.innerHTML=html;return doc.body}catch(error){}try{var docX=new ActiveXObject("htmlfile");docX.open();docX.write(html);docX.close();return docX.body}catch(error){}var div=document.createElement("div");div.innerHTML=
"\x3cdiv\x3e\x3c/div\x3e"+html;div.removeChild(div.firstChild);return div}function processHTML(source,html){var containsSrc=/src\s*=/i.test(html);if(!containsSrc){containsSrc=null;return html}var srcs=html.match(/src\s*=\s*(.+?)(\s|$|>)/ig);if(srcs){map(srcs,function(src){return src.replace(/\s*src\s*=\s*('|")?(.*?)('|")?(\s|$|>)/i,"$2")});each(srcs,function(src){var timeStamp=+new Date,request=new Request;request.id=timeStamp;request.source=source;request.destination=src;var node={};if(!Bootstrapper.gateway.onBefore(request,
node)){Bootstrapper.gateway.onBlock(request,node);html=html.replace(src,"//javascript:;")}})}containsSrc=srcs=null;return html}function processElement(source,node){var processed=node.__gateway||!node.tagName||node.tagName==="SCRIPT"&&node.src==="";var origTagName=node.tagName;if(!origTagName)origTagName="";var upperCaseTagName=origTagName.toUpperCase();if(upperCaseTagName==="SELECT"||upperCaseTagName==="DIV"||upperCaseTagName==="OPTION"||upperCaseTagName==="FORM")processed=true;if(processed){processed=
origTagName=upperCaseTagName=null;return node}var timeStamp=+new Date,request=new Request;request.id=timeStamp;request.source=source;node.__gateway=timeStamp;var tagName=request.type=node.tagName.toLowerCase();if(tagName==="iframe"||tagName==="script"){request.destination=node.src;if(!Bootstrapper.gateway.onBefore(request,node)){node.src="//javascript:;";Bootstrapper.gateway.onBlock(request,node)}else attachEvents(node,createEventHandler,timeStamp)}else if(tagName==="img"){request.destination=node.src;
if(!Bootstrapper.gateway.onBefore(request,node)){node.src="";Bootstrapper.gateway.onBlock(request,node)}else attachEvents(node,createEventHandler,timeStamp)}each(node.children,bind(processElement,this,source));processed=origTagName=upperCaseTagName=timeStamp=request=tagName=null;return node}function handleReference(arg){var reference=arg?arg.__reference:false;var tagName;if(reference)tagName=reference.tagName.toUpperCase();if(reference&&(tagName==="SCRIPT"||tagName==="IFRAME"||tagName==="IMAGE"||
tagName==="IMG")){for(var property in reference)if(Object.prototype.hasOwnProperty.call(reference,property)&&typeof arg[property]==="string")if(!excList.test(property)&&(arg[property]||reference[property]&&!arg[property]))if(reference[property]!==arg[property]&&arg[property]!==reference.__histLog[property])try{reference[property]=arg[property]}catch(e){try{if(reference.tagName&&reference.tagName.toUpperCase()==="SCRIPT"&&property==="text")reference.text=arg["text"];else if(reference.tagName&&reference.tagName.toUpperCase()===
"SCRIPT"&&property==="innerHTML")reference.innerHTML=arg["innerHTML"];else reference.setAttribute(property,arg[property])}catch(e){}}tagName=null;return reference}return arg}function checkElements(elements){var elements=elements||document.getElementsByTagName("*");each(elements,function(element){if(element&&element.appendChild&&isNative(element.appendChild))try{if(element.nodeName.toUpperCase()!=="OBJECT")each(elementMethods,bind(overrideHelper,null,element));else try{each(elementMethods,bind(overrideHelper,
null,element))}catch(e){}}catch(e){}});elements=null}function attachEvents(object,fn,timeStamp,proxy){if(object.addEventListener)each(events,function(event){object.addEventListener(event,fn(timeStamp,event,proxy),false)});else if(object.attachEvent)each(events,function(event){object.attachEvent("on"+event,fn(timeStamp,event,proxy))});if(proxy)each(events,function(event){var old=proxy["on"+event];proxy["on"+event]=function(){fn(timeStamp,event,proxy).apply(object,arguments);if(typeof old==="function")old.apply(object,
arguments)}})}function startEventLoop(node){var objectType=null;var proxyObject=null;if(node.__proxy!==undefined&&node.__proxy!==null)objectType="trackedReference";else if(node.__reference!==undefined&&node.__reference!==null&&node.__id!==undefined&&node.__id!==null)objectType="proxy";else objectType="untrackedReference";if(objectType!=="untrackedReference"){if(objectType==="proxy")proxyObject=node;else proxyObject=node.__proxy;objectType=null;proxyObject.startListenerLoop()}}function startImageEventLoop(node){var objectType=
null;var proxyObject=null;if(node.__proxy!==undefined&&node.__proxy!==null)objectType="trackedReference";else if(node.__reference!==undefined&&node.__reference!==null&&node.__id!==undefined&&node.__id!==null)objectType="proxy";else objectType="untrackedReference";if(objectType!=="untrackedReference"){if(objectType==="proxy")proxyObject=node;else proxyObject=node.__proxy;objectType=null;proxyObject.startImageSpecificLoop()}}function terminateImageEventLoop(node){var objectType=null;var proxyObject=
null;if(node.__proxy!==undefined&&node.__proxy!==null)objectType="trackedReference";else if(node.__reference!==undefined&&node.__reference!==null&&node.__id!==undefined&&node.__id!==null)objectType="proxy";else objectType="untrackedReference";if(objectType!=="untrackedReference"){if(objectType==="proxy")proxyObject=node;else proxyObject=node.__proxy;window.clearInterval(proxyObject.imageSpecificLoopId);proxyObject.imageSpecificLoopId=undefined}}function terminateEventLoop(node){var objectType=null;
var proxyObject=null;if(node.__proxy!==undefined&&node.__proxy!==null)objectType="trackedReference";else if(node.__reference!==undefined&&node.__reference!==null&&node.__id!==undefined&&node.__id!==null)objectType="proxy";else objectType="untrackedReference";if(objectType!=="untrackedReference"){if(objectType==="proxy")proxyObject=node;else proxyObject=node.__proxy;window.clearInterval(proxyObject.intervalId);proxyObject.intervalId=undefined}}function overrideHelper(object,fnName){var objectNameString=
object+"";if(!object||!object[fnName]||object+""==="[Interface prototype object]")return false;var method=object[fnName],proxiedMethod=function(){var args=Array.prototype.slice.call(arguments),node=args[0];if(typeof node==="string")node=args[1];var tagName=this.tagName;if(tagName===undefined||tagName===null)tagName="";else tagName=tagName.toUpperCase();var argTagName=node.tagName;if(argTagName===undefined||argTagName===null)argTagName="";else argTagName=argTagName.toUpperCase();if(tagName!=="SCRIPT"&&
tagName!=="IMG"&&tagName!=="IMAGE"&&tagName!=="IFRAME"&&argTagName!=="SCRIPT"&&argTagName!=="IMG"&&argTagName!=="IMAGE"&&argTagName!=="IFRAME"){if(this!==object){var isIE8OrLower=document.all&&!document.addEventListener;if(fnName==="appendChild"&&isIE8OrLower)if(this.canHaveChildren===true&&this.canHaveHTML!==true&&tagName==="SELECT"){args[0].parentNode.removeChild(args[0]);this.options.add(new Option(args[0].text,args[0].value));args[0]=this.lastChild;return this.lastChild}else{var origInnerHTML=
this.innerHTML;this.innerHTML=this.innerHTML+args[0].outerHTML;try{args[0].parentNode.removeChild(args[0])}catch(e){}if(this.innerHTML===origInnerHTML&&args[0].outerHTML!=="")throw"Could not set innerHTML on"+this+"in overrideHelper";args[0]=this.lastChild;return args[0]}}if(this.origMethods&&this.origMethods[fnName])var retVal=Function.prototype.apply.call(this.origMethods[fnName],this,args);else var retVal=Function.prototype.apply.call(method,this,args);return retVal}node=processElement(fnName,
node);map(args,handleReference);if(node){if(typeof node.updateRef=="function")node.updateRef();var returnVal=Function.prototype.apply.call(method,this,args);if(fnName==="insertBefore")arguments[0].__reference=returnVal;if(fnName==="removeChild"){terminateEventLoop(args[0]);if(args[0].imageSpecificLoopId)if(node.tagName==="IMG"||node.tagName==="IMAGE"){terminateImageEventLoop(args[0]);startImageEventLoop(args[0])}}else if(fnName==="replaceChild"){terminateEventLoop(args[1]);if(args[0].tagName.toUpperCase()===
"IMG"||args[0].tagName.toUpperCase()==="IMAGE"){terminateImageEventLoop(args[0]);startImageEventLoop(args[0])}if(args[1].tagName.toUpperCase()==="IMG"||args[1].tagName.toUpperCase()==="IMAGE")terminateImageEventLoop(args[1]);startEventLoop(args[1])}else{startEventLoop(args[0]);if(args[0]&&args[0].tagName&&(args[0].tagName.toUpperCase()==="IMG"||args[0].tagName.toUpperCase()==="IMAGE"))terminateImageEventLoop(args[0])}return returnVal}};var nodeName="";if(objectNameString!=="[xpconnect wrapped native prototype]"&&
objectNameString!=="[object XPC_WN_ModsAllowed_NoCall_Proto_JSClass]")if(window.DocumentFragment&&window.DocumentFragment.prototype&&object===window.DocumentFragment.prototype)nodeName="";else if(window.Element&&window.Element.prototype&&object===window.Element.prototype)nodeName="";else nodeName=object.nodeName||"";nodeName=nodeName.toUpperCase();if(nodeName.toUpperCase()==="EMBED")try{object[fnName]=proxiedMethod}catch(e){}else object[fnName]=proxiedMethod}function observeElementHelper(){each(elementTypes,
function(type){if(window["HTML"+type+"Element"]&&window["HTML"+type+"Element"].prototype)each(elementMethods,function(method){overrideHelper(window["HTML"+type+"Element"].prototype,method,method)});else couldNotBind("HTML"+type+"Element")})}function observeElement(){if(window.DocumentFragment&&window.DocumentFragment.prototype&&window.DocumentFragment.prototype.appendChild)each(elementMethods,bind(overrideHelper,null,window.DocumentFragment.prototype));else couldNotBind("DocumentFramgment");if(window.Element&&
window.Element.prototype&&window.Element.prototype.appendChild)each(elementMethods,bind(overrideHelper,null,window.Element.prototype));else couldNotBind("Element");if(isNative(document.createElement("div").appendChild)){var div=document.createElement("div");var proto=div;var escape=0;while(!Object.prototype.hasOwnProperty.call(proto,"appendChild")){proto=Object.getPrototypeOf(proto);if(escape++>5){couldNotBind("div.appendChild");break}}each(elementMethods,bind(overrideHelper,null,proto));div=proto=
escape=null}if(isNative(document.createElement("div").appendChild))observeElementHelper();return}function observeWrite(){var write=document.write;document.write=function(html,cb){html=processHTML("write",html);if(cb)return cb(html);return Function.prototype.call.call(write,document,html)};return!isNative(document.write)}function observeWriteln(){var writeln=document.writeln;document.writeln=function(html){html=processHTML("writeln",html);return Function.prototype.call.call(writeln,document,html)};
return!isNative(document.writeln)}function observeProxy(){var createDocumentFragment=document.createDocumentFragment;document.createDocumentFragment=function(){var ret=undefined;if(arguments.length>0){var args=Array.prototype.slice.call(arguments);ret=Function.prototype.apply.call(createDocumentFragment,document,args)}else ret=Function.prototype.apply.call(createDocumentFragment,document);checkElements([ret]);return ret};var intid=setInterval(function overtakeBody(){if(document.body&&isNative(document.body.appendChild))each(elementMethods,
bind(overrideHelper,null,document.body));if(document.head&&isNative(document.head.appendChild))each(elementMethods,bind(overrideHelper,null,document.head));if(document.body&&document.head&&!isNative(document.body.appendChild)&&!isNative(document.head.appendChild))clearInterval(intid)},25);var doNotOvertakeList=["G:PLUSONE","CUFON","OBJECT"];function isInDoNotOvertakeList(element){for(var i in doNotOvertakeList)if(element&&element.tagName&&element.tagName.toUpperCase().indexOf(doNotOvertakeList[i])!==
-1)return true;return false}if(document.getElementsByClassName){Bootstrapper.ensGetElementsByClassName=document.getElementsByClassName;document.getElementsByClassName=function ensGetElementsByClassNamePlaceholder(selector){var element=Function.prototype.apply.call(Bootstrapper.ensGetElementsByClassName,document,[selector]);if(isInDoNotOvertakeList(element))return element;if(element&&isNative(element.appendChild)){each(elementMethods,bind(overrideHelper,null,element));createForwardMethods(element,
element)}return element}}Bootstrapper.ensGetElementsByName=document.getElementsByName;document.getElementsByName=function ensGetElementsByNamePlaceholder(selector){var element=Function.prototype.apply.call(Bootstrapper.ensGetElementsByName,document,[selector]);if(isInDoNotOvertakeList(element))return element;if(element&&isNative(element.appendChild)){each(elementMethods,bind(overrideHelper,null,element));createForwardMethods(element,element)}return element};Bootstrapper.getElementsByTagName=document.getElementsByTagName;
document.getElementsByTagName=function ensGetElementsByTagName(selector){var element=Function.prototype.apply.call(Bootstrapper.getElementsByTagName,document,[selector]);if(isInDoNotOvertakeList(element))return element;if(element&&isNative(element.appendChild)){each(elementMethods,bind(overrideHelper,null,element));createForwardMethods(element,element)}return element};if(document.getElementsByTagNameNS){Bootstrapper.getElementsByTagNameNS=document.getElementsByTagNameNS;document.getElementsByTagNameNS=
function ensGetElementsByTagNameNS(selector){var element=Function.prototype.apply.call(Bootstrapper.getElementsByTagNameNS,document,[selector]);if(isInDoNotOvertakeList(element))return element;if(element&&isNative(element.appendChild)){each(elementMethods,bind(overrideHelper,null,element));createForwardMethods(element,element)}return element}}Bootstrapper.ensGetElementById=document.getElementById;document.getElementById=function ensProxiedGetElementById(id){var element=Function.prototype.apply.call(Bootstrapper.ensGetElementById,
document,[id]);if(isInDoNotOvertakeList(element))return element;if(element&&isNative(element.appendChild)){each(elementMethods,bind(overrideHelper,null,element));createForwardMethods(element,element)}return element};if(document.querySelector){Bootstrapper.querySelector=document.querySelector;document.querySelector=function ensQuerySelector(selector){var element=Function.prototype.apply.call(Bootstrapper.querySelector,document,[selector]);if(isInDoNotOvertakeList(element))return element;if(element&&
isNative(element.appendChild)){each(elementMethods,bind(overrideHelper,null,element));createForwardMethods(element,element)}return element}}if(document.querySelectorAll){Bootstrapper.querySelectorAll=document.querySelectorAll;document.querySelectorAll=function ensQuerySelectorAll(selector){var element=Function.prototype.apply.call(Bootstrapper.querySelectorAll,document,[selector]);if(isInDoNotOvertakeList(element))return element;if(element&&isNative(element.appendChild)){each(elementMethods,bind(overrideHelper,
null,element));createForwardMethods(element,element)}return element}}var createElement=document.createElement;var tempDocFrag=document.createDocumentFragment();if(!Bootstrapper.windowImageObj)Bootstrapper.windowImageObj=window.Image;Bootstrapper.ensCreateElement=createElement;var hasGooglePlus=false;var hasTwitter=false;var hasYouTubeEmbedded=false;var hasOAS=false;var hasAM=false;var hasEG=false;var hasLP=false;document.createElement=function(tagName){if(!hasGooglePlus){var s=document.getElementsByTagName("script");
for(var i=0;i<s.length;i++)if(s[i].src==="http://apis.google.com/js/plusone.js")hasGooglePlus=true}if(!hasLP&&document.querySelector("#lpButtonDiv"))hasLP=true;if(!hasTwitter)if(window.location.href==="https://www.td.com/ca/products-services/investing/td-direct-investing/why-choose-td/advanced.jsp"||window.location.href==="https://www.td.com/ca/m/products-services/investing/td-direct-investing/why-choose-td/advanced.jsp"||window.location.href==="https://www.td.com/ca/francais/produits-et-services/investissements/placements-directs-td/pourquoi-choisir-td/investisseurs-chevronnes.jsp"||
window.location.href==="https://www.td.com/ca/francais/m/produits-et-services/investissements/placements-directs-td/pourquoi-choisir-td/investisseurs-chevronnes.jsp"||window.location.href.indexOf("https://www.tdassetmanagement.com")>-1)hasTwitter=true;else if(document.querySelectorAll("div[id\x3d'twitter']").length>0)hasTwitter=true;if(!hasYouTubeEmbedded){var s=document.getElementsByTagName("script");for(var i=0;i<s.length;i++)if(s[i].src==="https://www.youtube.com/iframe_api")hasYouTubeEmbedded=
true}if(!hasOAS)if(window.oas_tag)hasOAS=true;if(!hasAM)if(/varlink/i.test(document.cookie))hasAM=true;if(!hasEG)if(window.EGAINCLOUD)hasEG=true;if(tagName&&tagName.indexOf("\x3c")!==-1){var ie78Element=Function.prototype.apply.call(Bootstrapper.ensCreateElement,document,[tagName]);return ie78Element}try{if(tagName.match(/img|image/i))if(window.google&&window.google.maps){window.Image=Bootstrapper.windowImageObj;return new ImageReference}else return new ImageProxy;else if(tagName.match(/iframe/i)&&
!(hasGooglePlus||hasTwitter||hasYouTubeEmbedded||hasOAS||hasAM||hasEG||hasLP))return new IframeProxy;else if(tagName.match(/script/i));}catch(error){}var isIE8OrLower=document.all&&!document.addEventListener;var element=Function.prototype.apply.call(createElement,document,arguments);if(isIE8OrLower){if(tagName.match(/cufon/i))return element;if(tagName==="object")return element;tempDocFrag.appendChild(element);tempDocFrag.removeChild(element);element=element.cloneNode(!0)}if(isNative(element.appendChild)){element.origMethods=
{};for(var i=0;i<elementMethods.length;i++)element.origMethods[elementMethods[i]]=element[elementMethods[i]];for(var i=0;i<forwardMethods.length;i++)element.origMethods[forwardMethods[i]]=element[forwardMethods[i]];each(elementMethods,bind(overrideHelper,null,element));createForwardMethods(element,element)}return element};var ImageReference=Bootstrapper.ImageRef=window.Image;if(window.getComputedStyle&&typeof window.getComputedStyle=="function"){var getComputedStyle=window.getComputedStyle;window.getComputedStyle=
function(n){n=n.__reference?n.__reference:n;var arr=Array.prototype.slice.call(arguments,0);arr.shift();arr.unshift(n);return Function.prototype.apply.call(getComputedStyle,window,arr)}}function proxyEventHandler(timeStamp,status,proxy){return function(event){proxy.width=proxy.__reference.width;proxy.height=proxy.__reference.height;Bootstrapper.gateway.resourceComplete(this,timeStamp,status);proxy.pause=false}}function isFunction(o){if(typeof o=="function"||typeof o=="object"&&(typeof o.apply=="function"||
typeof o.apply=="object"&&isNative(o.apply)))return true;var isIE8OrLower=document.all&&!document.addEventListener;if(isIE8OrLower&&typeof o==="object"&&isNative(o))return true;return false}function proxyMethod(property,obj){return function proxyMethodFn(){if(!isFunction(obj[property]))return false;var args=Array.prototype.slice.call(arguments);var retVal=Function.prototype.apply.call(obj[property],obj,args);return retVal}}var cloneDefaults={"skip":{children:true,document:true,all:true}};function cloneProperties(proxy,
reference,options){options=options||cloneDefaults;var skip=options.skip||cloneDefaults.skip;for(var property in reference)if(!skip[property])try{if(typeof reference[property]==="function")proxy[property]=proxyMethod(property,reference);else{proxy[property]=reference[property];proxy.__histLog[property]=reference.__histLog[property]=reference[property]}}catch(error){proxy.__errors.push(error)}skip=null}function createEventHandlers(proxy,reference){each(eventHandlers,function(event){proxy["on"+event]=
noop;reference["on"+event]=proxyMethod("on"+event,proxy)})}function createSetAttribute(proxy){proxy.setAttribute=function(property,value){proxy[property]=value}}function createGetAttribute(proxy,reference){proxy.getAttribute=function(property){return proxy[property]||reference[property]}}function createForwardMethods(proxy,reference){each(forwardMethods,function(method){if(proxy[method]&&proxy!==reference)return false;else if(method==="cloneNode"&&proxy===reference)proxy[method]=function proxiedCloneNode(){var args=
Array.prototype.slice.call(arguments);var isIE8OrLower=document.all&&!document.addEventListener;if(isIE8OrLower){var tempDiv=Function.prototype.apply.call(Bootstrapper.ensCreateElement,document,["div"]);var ie8OrLowerCloneNodeToReturn=null;var clonedNode=null;if(proxy.tagName.toUpperCase()==="OPTION"){tempDiv.innerHTML="\x3cSELECT\x3e"+proxy.outerHTML+"\x3c/SELECT\x3e";clonedNode=tempDiv.lastChild.lastChild.cloneNode(args[0]);tempDocFrag.appendChild(clonedNode);clonedNode=tempDocFrag.removeChild(clonedNode);
clonedNode=clonedNode.cloneNode(!0);clonedNode["class"]=proxy["class"];clonedNode["className"]=proxy["className"];ie8OrLowerCloneNodeToReturn=clonedNode}else{tempDiv.innerHTML=proxy.outerHTML;if(!tempDiv.lastChild){var newCreatedElement=Function.prototype.apply.call(Bootstrapper.ensCreateElement,document,[proxy.tagName]);tempDocFrag.appendChild(newCreatedElement);newCreatedElement=tempDocFrag.removeChild(newCreatedElement);newCreatedElement=newCreatedElement.cloneNode(!0);newCreatedElement["class"]=
proxy["class"];newCreatedElement["className"]=proxy["className"];ie8OrLowerCloneNodeToReturn=newCreatedElement}else{clonedNode=tempDiv.lastChild.cloneNode(args[0]);tempDocFrag.appendChild(clonedNode);clonedNode=tempDocFrag.removeChild(clonedNode);clonedNode=clonedNode.cloneNode(!0);ie8OrLowerCloneNodeToReturn=clonedNode}}return ie8OrLowerCloneNodeToReturn}else{var originalMethods=proxy.origMethods;for(var i=0;i<elementMethods.length;i++)proxy[elementMethods[i]]=originalMethods[elementMethods[i]];
for(var i=0;i<forwardMethods.length;i++)proxy[forwardMethods[i]]=originalMethods[forwardMethods[i]];var clonedNode=Function.prototype.apply.call(proxy.cloneNode,proxy,args);tempDocFrag.appendChild(clonedNode);tempDocFrag.removeChild(clonedNode);clonedNode=clonedNode.cloneNode(!0);clonedNode.origMethods={};for(var i=0;i<elementMethods.length;i++)clonedNode.origMethods[elementMethods[i]]=clonedNode[elementMethods[i]];for(var i=0;i<forwardMethods.length;i++)clonedNode.origMethods[forwardMethods[i]]=
clonedNode[forwardMethods[i]];each(elementMethods,bind(overrideHelper,null,clonedNode));createForwardMethods(clonedNode,clonedNode);return clonedNode}};else if(proxy!==reference)proxy[method]=proxyMethod(method,reference);else if(method==="attachEvent"&&proxy===reference){var origAttachEventFn=proxy[method];if(proxy.origMethods&&proxy.origMethods[method])proxy[method]=function attachEventNativeProxy(){var args=Array.prototype.slice.call(arguments);var retVal=Function.prototype.apply.call(proxy.origMethods[method],
proxy,args);return retVal};else proxy[method]=function attachEventNativeProxyUsingClosure(){var args=Array.prototype.slice.call(arguments);var retVal=Function.prototype.apply.call(origAttachEventFn,proxy,args);return retVal}}})}function createGetters(proxy,reference){each(getters,function(getter){var origFnExists=reference["get"+getter],proxyFnExists=proxy["get"+getter];if(origFnExists&&!proxyFnExists)proxy["get"+getter]=proxyMethod("get"+getter,reference)})}function handleSrcChange(proxy,reference){if(proxy["src"]!==
reference["src"]){var historyBeforeLog=Bootstrapper.gateway.history.before[proxy.__id];if(historyBeforeLog===undefined||historyBeforeLog===null){historyBeforeLog={};Bootstrapper.gateway.history.before[proxy.__id]=historyBeforeLog}var request=historyBeforeLog.request;if(request===undefined){request=new Request;request.id=proxy.__id;request.source="proxy";request.type=reference.tagName.toLowerCase()}request.destination=proxy.src;if(Bootstrapper.gateway.onBefore(request,reference)){attachEvents(reference,
proxyEventHandler,proxy.__id,proxy);proxy.pause=true;reference.src=proxy.src;proxy.src=reference.src;if(proxy.tagName.toUpperCase()!=="SCRIPT"){proxy["width"]=proxy.__histLog["width"]=reference.__histLog["width"]=reference["width"];proxy["height"]=proxy.__histLog["height"]=reference.__histLog["height"]=reference["height"]}}else{proxy.src=reference.src;Bootstrapper.gateway.onBlock(request,reference)}}}var tempAbsUrlEl=Function.prototype.apply.call(Bootstrapper.ensCreateElement,document,["a"]);function getAbsURL(u){var a=
tempAbsUrlEl;a.href=u;if(a.hostname||u==="")return a.href;else if(u.match(/^http(s)?:\/\//i))return u;var url=window.location.protocol+"//"+window.location.host;if(u.match(/^\//))url+=u;else if(u.match(/^\.\//)){var p=window.location.pathname.split("/");if(p[p.length-1]!=""){p.pop();p.push("")}url+=p.join("/")+u.replace(/^\.\//,"")}else if(u.match(/^\.\.\//)){var p=window.location.pathname.split("/");if(p[p.length-1]!="")p.pop();for(var i=p.length;i>-1;i--)if(!p[i])p.splice(i,1);for(var i=0;i<p.length-
1;i++)url+="/"+p[i];url+=u.replace(/^\.\./,"");return url}else url=u;return url}function createUpdateRefFunction(proxy,reference,excludeProperties){proxy.updateRef=function(){var head=document.getElementsByTagName("head")[0];var body=document.body;var needToSetSource=false;if(body&&body.contains&&!body.contains(proxy.__reference)&&!head.contains(proxy.__reference)){window.clearInterval(proxy.intervalId);proxy.intervalId=undefined}if(proxy.pause||proxy.ignore){head=body=null;return false}for(var property in reference)try{if(proxy.tagName.toUpperCase()===
"IFRAME")if(reference.src&&reference.src!==""){var urlsAreEqual=getAbsURL(reference["src"])!==getAbsURL(proxy["src"]);if(!urlsAreEqual)if(reference.__histLog["src"]===proxy["src"]||reference.__histLog["src"]===undefined||reference.__histLog["src"]===null){reference.__histLog["src"]=proxy["src"];proxy.__histLog["src"]=proxy["src"];proxy["src"]=reference["src"]}else handleSrcChange(proxy,reference);break}if(property in excludeProperties||typeof reference[property]==="function"||proxy[property]===reference[property])continue;
if(property==="src")if(reference.tagName.toUpperCase()!=="IFRAME"){if(getAbsURL(reference[property])!=getAbsURL(proxy[property]))handleSrcChange(proxy,reference)}else{needToSetSource=true;continue}else{if(typeof proxy[property]!=="function"&&proxy.pause)continue;if(reference.__histLog[property]!==reference[property]){proxy[property]=reference.__histLog[property]=proxy.__histLog[property]=reference[property];reference[property]=proxy[property]}else if(proxy.__histLog[property]!==proxy[property]){reference[property]=
proxy.__histLog[property]=reference.__histLog[property]=proxy[property];proxy[property]=reference[property]}if(reference[property]!==proxy[property])excludeProperties[property]=true}}catch(error){if(error==="syncError!!!"){head=body=null;throw"syncError";}proxy.__errors.push(error);excludeProperties[property]=true}if(needToSetSource)if(getAbsURL(reference["src"])!==getAbsURL(proxy["src"]))handleSrcChange(proxy,reference);head=body=null}}var createListenerLoop=function createListenerLoop(proxy,reference,
excludeProperties){var interval=100;if(proxy.updateRef===undefined||proxy.updateRef===null)createUpdateRefFunction(proxy,reference,excludeProperties);if(proxy.intervalId===null||proxy.intervalId===undefined){proxy.updateRef();var intervalId=setInterval(proxy.updateRef,interval);proxy.intervalId=intervalId}};var ImageCloneOptions={skip:{cloneNode:1,getElementsByTagName:1}};function ImageProxy(a,b){var proxy=this,excludeProperties={"__id":true,"__proxy":true,"startListenerLoop":true,"intervalId":true,
"fileUpdatedDate":true,"__errors":true,"outerHTML":true,"fileSize":true,"nodeName":true,"tagName":true,"fileSize":true,"start":true,"contentEditable":true,"nameProp":true,"__histLog":true},request=new Request,timeStamp=+new Date;if(typeof a!="undefined"||typeof b!="undefined")var reference=new ImageReference(a,b);else var reference=new ImageReference;reference.__proxy=this;reference.__histLog={};proxy.__histLog={};request.source="proxy";request.type="image";request.id=timeStamp;Bootstrapper.gateway.history.before[timeStamp]=
new HistoryEntry(request,reference);proxy.__id=timeStamp;proxy.__reference=reference;proxy.__errors=[];createGetAttribute(proxy,reference);cloneProperties(proxy,reference,ImageCloneOptions);proxy.__histLog["width"]=reference["width"];proxy.__histLog["height"]=reference["height"];reference.__histLog["width"]=reference["width"];reference.__histLog["height"]=reference["height"];createEventHandlers(proxy,reference);createSetAttribute(proxy);createForwardMethods(proxy,reference);createGetters(proxy,reference);
var startListenerLoop=function(){createListenerLoop(proxy,reference,excludeProperties)};proxy.startListenerLoop=startListenerLoop;var startImageSpecificLoop=function(){var imageSpecificLoopId=setInterval(function(){if(proxy["src"]!==undefined&&proxy["src"]!==null&&proxy["src"]!==""&&reference["src"]!=proxy["src"])if(getAbsURL(reference["src"])!=getAbsURL(proxy["src"]))handleSrcChange(proxy,reference)},25);this.imageSpecificLoopId=imageSpecificLoopId};this.startImageSpecificLoop=startImageSpecificLoop;
createUpdateRefFunction(proxy,reference,excludeProperties);this.startImageSpecificLoop();return!isImageNative()}function IframeProxy(){var proxy=this,excludeProperties={"__id":true,"__proxy":true,"startListenerLoop":true,"intervalId":true,"fileUpdatedDate":true,"outerHTML":true,"innerHTML":true,"outerText":true,"innerText":true,"__errors":true},reference=Function.prototype.call.call(createElement,document,"iframe"),request=new Request,timeStamp=+new Date;reference.__histLog={};reference.__proxy=this;
proxy.__histLog={};request.source="proxy";request.type="iframe";request.id=timeStamp;Bootstrapper.gateway.history.before[timeStamp]={request:request,nodeRef:reference};proxy.__id=timeStamp;proxy.__reference=reference;proxy.__errors=[];var hasId=proxy.id,hasClass=proxy.className,hasStyle=proxy.style;if(!hasId&&!hasClass&&!hasStyle){proxy.style={};proxy.style.cssText="display: none;"}cloneProperties(proxy,reference);createEventHandlers(proxy,reference);createSetAttribute(proxy);createForwardMethods(proxy,
reference);createGetters(proxy,reference);var startListenerLoop=function(){createListenerLoop(proxy,reference,excludeProperties)};proxy.startListenerLoop=startListenerLoop;createUpdateRefFunction(proxy,reference,excludeProperties)}function ScriptProxy(){var proxy=this,excludeProperties={"__id":true,"__proxy":true,"startListenerLoop":true,"intervalId":true,"fileUpdatedDate":true,"__errors":true,outerText:true,innerText:true,outerHTML:true},reference=Function.prototype.call.call(createElement,document,
"script"),request=new Request,timeStamp=+new Date;reference.__histLog={};reference.__proxy=this;proxy.__histLog={};request.source="proxy";request.type="script";request.id=timeStamp;reference.readyState=false;Bootstrapper.gateway.history.before[timeStamp]={request:request,nodeRef:reference};proxy.__id=timeStamp;proxy.__reference=reference;proxy.__errors=[];cloneProperties(proxy,reference);createEventHandlers(proxy,reference);createSetAttribute(proxy);createForwardMethods(proxy,reference);createGetters(proxy,
reference);var startListenerLoop=function(){createListenerLoop(proxy,reference,excludeProperties)};proxy.startListenerLoop=startListenerLoop;createUpdateRefFunction(proxy,reference,excludeProperties)}window.IframeProxy=IframeProxy;Bootstrapper.windowImageObj=window.Image;if(!(window.google&&window.google.maps)&&!window.InfoBox){var proxiedImage=false;try{var isIE8OrLower=document.all&&!document.addEventListener;if(!(window.location.hostname==="www.motorolasolutions.com"&&isIE8OrLower)){window.Image=
ImageProxy;proxiedImage=window.Image===ImageProxy}}catch(error){}if(!proxiedImage)unbound.image=true}}function observeSetters(){return false}var Gateway=function(){function onBlock(request,node){request.end=+new Date;request.status="blocked";this.history.complete[request.id]=new HistoryEntry(request,node);Bootstrapper.gateway.resourceComplete(node,request.id,"blocked");delete this.history.before[request.id]}function onBefore(req,node){if(!node.__reference)this.history.before[req.id]=new HistoryEntry(req,
node);if(this.events.onBeforeRequest(req,node))return true;else return!this.options.enableFiltering}function resourceComplete(node,id,status){id=id||node.__gateway;var before=this.history.before[id];if(!before)return false;var request=before.request;request.end=+new Date;request.status=status;this.history.complete[id]=new HistoryEntry(request,node);this.reporter.addResource(request);delete this.history.before[id]}var whitelist=Bootstrapper.whitelist||{};var defaultCategory="default";if(!whitelist.hasOwnProperty(defaultCategory))whitelist[defaultCategory]=
[];Bootstrapper.whitelist[defaultCategory].push(location.hostname);Bootstrapper.whitelist[defaultCategory].push("ensighten.com");var blockPathsByDefault=Bootstrapper.blockPathsByDefault||{};var gatewayOptions=Bootstrapper.gatewayOptions||{};var log=Bootstrapper.privacyLog=[];var prefix=gatewayOptions.clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_";var types=gatewayOptions.cookieTypes||function(){var result=[];for(var key in Bootstrapper.whitelist)if(key!==defaultCategory)result.push(key);return result}();
Bootstrapper.cookies=Bootstrapper.cookies||{};for(var i=0;i<types.length;i++)try{Bootstrapper.cookies[prefix+types[i]]=(new RegExp(prefix+types[i]+"\x3d([^;]+);?")).exec(document.cookie)[1]}catch(e){}Bootstrapper.onBeforeRequest=onBeforeRequest;Bootstrapper.getLog=function(){if(window.JSON){if(Bootstrapper.gateway)for(var id in Bootstrapper.gateway.history.complete)log.push({resource:Bootstrapper.gateway.history.complete[id].request});if(console&&console.dir)console.dir(log);alert(JSON.stringify(log))}else{var url=
"//nexus.ensighten.com/"+gatewayOptions.clientName.toLowerCase()+"/json2.js";Bootstrapper.loadScriptCallback(url,Bootstrapper.getLog)}};log.push({location:window.location.href||null});log.push({cookie:document.cookie||null});function parseURL(url){if(url.indexOf("javascript:")!==-1)url=window.location;var a=Function.prototype.apply.call(Bootstrapper.ensCreateElement,document,["a"]);a.href=url;var hostname=a.hostname;if(hostname===""||hostname===undefined||hostname===null)hostname=location.hostname;
return hostname}function parsePath(url){if(url.indexOf("javascript:")!==-1)url=window.location;var a=Function.prototype.apply.call(Bootstrapper.ensCreateElement,document,["a"]);a.href=url;return a.pathname}function onBeforeRequest(req,node){var destination=req.destination,hostName=parseURL(destination),pathName=parsePath(destination);if(checkWhiteList(hostName,defaultCategory)){var shouldBlock=checkBlockByDefault(pathName,function(type){return!checkOptIn(type)});if(shouldBlock)return false;else return true}if(checkWhiteLists(hostName))return true;
return false}function checkWhiteLists(destination){for(var i=0;i<types.length;i++)if(checkCookie(destination,types[i]))return true;return false}function checkCookie(destination,type){if(checkOptIn(type))if(checkWhiteList(destination,type))return true;return false}function checkWhiteList(hostName,type){for(var i=0;i<whitelist[type].length;i++)if((new RegExp(whitelist[type][i])).test(hostName))return true;return false}function checkBlockByDefault(pathName,cb){for(var category in blockPathsByDefault)if(blockPathsByDefault.hasOwnProperty(category)){var regexList=
blockPathsByDefault[category],len=regexList.length,i=0;for(;i<len;i++){var regex=regexList[i];if(pathName.match(regex))return cb(category)}}cb(null)}function checkOptIn(type){var cookies=Bootstrapper.cookies||{},cookieName=prefix+type,optedIn=cookies[cookieName]==="1";return optedIn}function Gateway(options,onBeforeRequest){var instance=this,instanceId=((1+Math.random())*268435456|0).toString(36);if(options)this.options=options;if(Bootstrapper.onBeforeRequest)this.events.onBeforeRequest=Bootstrapper.onBeforeRequest;
if(onBeforeRequest)this.events.onBeforeRequest=onBeforeRequest;this.id=instanceId;this.observers=[new Observer("aC",observeElement),new Observer("dW",observeWrite),new Observer("dL",observeWriteln),new Observer("Pr",observeProxy),new Observer("Se",observeSetters)];this.history={before:{},complete:{}};this.reporter=new Reporter;each(this.observers,function(observer){observer.enabled=observer.hook()});function historyGarbageCollector(){for(var id in Bootstrapper.gateway.history.before){if(!Bootstrapper.gateway.history.before.hasOwnProperty(id))continue;
var timeStamp=+new Date;if(timeStamp-Bootstrapper.gateway.history.before[id].request.start>5E3){Bootstrapper.gateway.resourceComplete(Bootstrapper.gateway.history.before.nodeRef,id,"timeout");delete Bootstrapper.gateway.history.before[id]}}}setInterval(historyGarbageCollector,250);this.unbound=unbound;unbound.script=document.all&&!document.addEventListener;var cantBlock={image:!!unbound.image,script:!!unbound.script};this.cantBlock=cantBlock}Gateway.prototype={options:{enableFiltering:gatewayOptions.enableFiltering||
false,enableObserving:true},dnt:{ajaxLocation:"//scarf.ensighten.com/dnt"},events:{onBeforeRequest:function(){return true}},onBefore:onBefore,onBlock:onBlock,resourceComplete:resourceComplete};return Gateway}();Bootstrapper.gateway=new Gateway})()},2858779,[2858776],292471,[292470]);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;var trackingServer="metrics.td.com"?"metrics.td.com":"";var trackingServerSecure="smetrics.td.com"?"smetrics.td.com":"";var marketingCloudServer="metrics.td.com"?"metrics.td.com":"";var marketingCloudServerSecure="smetrics.td.com"?"smetrics.td.com":"";var cookieLifetime=""?"":"";var cookieDomain=""?"":"";var A=!0,B=!1;window.Visitor=function(o,t){if(!o)throw"Visitor requires Adobe Marketing Cloud Org ID";
var a=this;a.version="1.6.0";var m=window,i=m.Visitor;i.version=a.version;m.s_c_in||(m.s_c_il=[],m.s_c_in=0);a._c="Visitor";a._il=m.s_c_il;a._in=m.s_c_in;a._il[a._in]=a;m.s_c_in++;a.ia={Ca:[]};var p=m.document,h=i.pb;h||(h=null);var C=i.qb;C||(C=void 0);var k=i.Ia;k||(k=A);var l=i.Ga;l||(l=B);a.ea=function(a){var c=0,b,e;if(a)for(b=0;b<a.length;b++)e=a.charCodeAt(b),c=(c<<5)-c+e,c&=c;return c};a.v=function(a){var c="0123456789",b="",e="",f,g=8,j=10,h=10;if(1==a){c+="ABCDEF";for(a=0;16>a;a++)f=Math.floor(Math.random()*
g),b+=c.substring(f,f+1),f=Math.floor(Math.random()*g),e+=c.substring(f,f+1),g=16;return b+"-"+e}for(a=0;19>a;a++)f=Math.floor(Math.random()*j),b+=c.substring(f,f+1),0==a&&9==f?j=3:(1==a||2==a)&&10!=j&&2>f?j=10:2<a&&(j=10),f=Math.floor(Math.random()*h),e+=c.substring(f,f+1),0==a&&9==f?h=3:(1==a||2==a)&&10!=h&&2>f?h=10:2<a&&(h=10);return b+e};a.Ka=function(){var a;!a&&m.location&&(a=m.location.hostname);if(a)if(/^[0-9.]+$/.test(a))a="";else{var c=a.split("."),b=c.length-1,e=b-1;1<b&&2>=c[b].length&&
(2==c[b-1].length||0>",ac,ad,ae,af,ag,ai,al,am,an,ao,aq,ar,as,at,au,aw,ax,az,ba,bb,be,bf,bg,bh,bi,bj,bm,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,cl,cm,cn,co,cr,cu,cv,cw,cx,cz,de,dj,dk,dm,do,dz,ec,ee,eg,es,et,eu,fi,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,im,in,io,iq,ir,is,it,je,jo,jp,kg,ki,km,kn,kp,kr,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mg,mh,mk,ml,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,na,nc,ne,nf,ng,nl,no,nr,nu,nz,om,pa,pe,pf,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,su,sv,sx,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tp,tr,tt,tv,tw,tz,ua,ug,uk,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,yt,".indexOf(","+
c[b]+","))&&e--;if(0<e)for(a="";b>=e;)a=c[b]+(a?".":"")+a,b--}return a};a.cookieRead=function(a){var a=encodeURIComponent(a),c=(";"+p.cookie).split(" ").join(";"),b=c.indexOf(";"+a+"\x3d"),e=0>b?b:c.indexOf(";",b+1);return 0>b?"":decodeURIComponent(c.substring(b+2+a.length,0>e?c.length:e))};a.cookieWrite=function(d,c,b){var e=a.cookieLifetime,f,c=""+c,e=e?(""+e).toUpperCase():"";b&&"SESSION"!=e&&"NONE"!=e?(f=""!=c?parseInt(e?e:0,10):-60)?(b=new Date,b.setTime(b.getTime()+1E3*f)):1==b&&(b=new Date,
f=b.getYear(),b.setYear(f+2+(1900>f?1900:0))):b=0;return d&&"NONE"!=e?(p.cookie=encodeURIComponent(d)+"\x3d"+encodeURIComponent(c)+"; path\x3d/;"+(b?" expires\x3d"+b.toGMTString()+";":"")+(a.cookieDomain?" domain\x3d"+a.cookieDomain+";":""),a.cookieRead(d)==c):0};a.g=h;a.K=function(a,c){try{"function"==typeof a?a.apply(m,c):a[1].apply(a[0],c)}catch(b){}};a.Oa=function(d,c){c&&(a.g==h&&(a.g={}),a.g[d]==C&&(a.g[d]=[]),a.g[d].push(c))};a.q=function(d,c){if(a.g!=h){var b=a.g[d];if(b)for(;0<b.length;)a.K(b.shift(),
c)}};a.J=function(a,c){var b,e=encodeURIComponent("d_fieldgroup")+"\x3d"+encodeURIComponent(c);if(-1===a.indexOf("?"))return a+"?"+e;var f=a.split("?"),g=f[0]+"?",f=f[1].split("\x26");f.splice(null!=b?b:1,0,e);return g+f.join("\x26")};a.j=h;a.Ma=function(d,c,b,e){c=a.J(c,d);e.url=a.J(e.url,d);e.k=a.J(e.k,d);e===Object(e)&&e.k&&"XMLHttpRequest"===a.ka.C.D?a.ka.$a(e,b,d):a.useCORSOnly||a.ha(d,c,b)};a.ha=function(d,c,b){var e=0,f=0,g;if(c&&p){for(g=0;!e&&2>g;){try{e=(e=p.getElementsByTagName(0<g?"HEAD":
"head"))&&0<e.length?e[0]:0}catch(j){e=0}g++}if(!e)try{p.body&&(e=p.body)}catch(k){e=0}if(e)for(g=0;!f&&2>g;){try{f=p.createElement(0<g?"SCRIPT":"script")}catch(i){f=0}g++}}!c||!e||!f?b&&b():(f.type="text/javascript",f.src=c,e.firstChild?e.insertBefore(f,e.firstChild):e.appendChild(f),e=a.loadTimeout,n.e[d]={requestStart:n.o(),url:c,sa:e,qa:n.va(),ra:0},b&&(a.j==h&&(a.j={}),a.j[d]=setTimeout(function(){b(A)},e)),a.ia.Ca.push(c))};a.Ja=function(d){a.j!=h&&a.j[d]&&(clearTimeout(a.j[d]),a.j[d]=0)};a.fa=
l;a.ga=l;a.isAllowed=function(){if(!a.fa&&(a.fa=k,a.cookieRead(a.cookieName)||a.cookieWrite(a.cookieName,"T",1)))a.ga=k;return a.ga};a.b=h;a.d=h;var F=i.Hb;F||(F="MC");var u=i.Mb;u||(u="MCMID");var G=i.Ib;G||(G="MCCIDH");var H=i.Lb;H||(H="MCSYNCS");var I=i.Jb;I||(I="MCIDTS");var x=i.Kb;x||(x="MCOPTOUT");var D=i.Fb;D||(D="A");var q=i.Cb;q||(q="MCAID");var z=i.Gb;z||(z="AAM");var y=i.Eb;y||(y="MCAAMLH");var r=i.Db;r||(r="MCAAMB");var s=i.Nb;s||(s="NONE");a.M=0;a.da=function(){if(!a.M){var d=a.version;
a.audienceManagerServer&&(d+="|"+a.audienceManagerServer);a.audienceManagerServerSecure&&(d+="|"+a.audienceManagerServerSecure);a.M=a.ea(d)}return a.M};a.ja=l;a.f=function(){if(!a.ja){a.ja=k;var d=a.da(),c=l,b=a.cookieRead(a.cookieName),e,f,g,j,i=new Date;a.b==h&&(a.b={});if(b&&"T"!=b){b=b.split("|");b[0].match(/^[\-0-9]+$/)&&(parseInt(b[0],10)!=d&&(c=k),b.shift());1==b.length%2&&b.pop();for(d=0;d<b.length;d+=2)if(e=b[d].split("-"),f=e[0],g=b[d+1],1<e.length?(j=parseInt(e[1],10),e=0<e[1].indexOf("s")):
(j=0,e=l),c&&(f==G&&(g=""),0<j&&(j=i.getTime()/1E3-60)),f&&g&&(a.c(f,g,1),0<j&&(a.b["expire"+f]=j+(e?"s":""),i.getTime()>=1E3*j||e&&!a.cookieRead(a.sessionCookieName))))a.d||(a.d={}),a.d[f]=k}if(!a.a(q)&&(b=a.cookieRead("s_vi")))b=b.split("|"),1<b.length&&0<=b[0].indexOf("v1")&&(g=b[1],d=g.indexOf("["),0<=d&&(g=g.substring(0,d)),g&&g.match(/^[0-9a-fA-F\-]+$/)&&a.c(q,g))}};a.Qa=function(){var d=a.da(),c,b;for(c in a.b)!Object.prototype[c]&&a.b[c]&&"expire"!=c.substring(0,6)&&(b=a.b[c],d+=(d?"|":"")+
c+(a.b["expire"+c]?"-"+a.b["expire"+c]:"")+"|"+b);a.cookieWrite(a.cookieName,d,1)};a.a=function(d,c){return a.b!=h&&(c||!a.d||!a.d[d])?a.b[d]:h};a.c=function(d,c,b){a.b==h&&(a.b={});a.b[d]=c;b||a.Qa()};a.La=function(d,c){var b=a.a(d,c);return b?b.split("*"):h};a.Pa=function(d,c,b){a.c(d,c?c.join("*"):"",b)};a.wb=function(d,c){var b=a.La(d,c);if(b){var e={},f;for(f=0;f<b.length;f+=2)e[b[f]]=b[f+1];return e}return h};a.yb=function(d,c,b){var e=h,f;if(c)for(f in e=[],c)Object.prototype[f]||(e.push(f),
e.push(c[f]));a.Pa(d,e,b)};a.m=function(d,c,b){var e=new Date;e.setTime(e.getTime()+1E3*c);a.b==h&&(a.b={});a.b["expire"+d]=Math.floor(e.getTime()/1E3)+(b?"s":"");0>c?(a.d||(a.d={}),a.d[d]=k):a.d&&(a.d[d]=l);b&&(a.cookieRead(a.sessionCookieName)||a.cookieWrite(a.sessionCookieName,"1"))};a.ca=function(a){if(a&&("object"==typeof a&&(a=a.d_mid?a.d_mid:a.visitorID?a.visitorID:a.id?a.id:a.uuid?a.uuid:""+a),a&&(a=a.toUpperCase(),"NOTARGET"==a&&(a=s)),!a||a!=s&&!a.match(/^[0-9a-fA-F\-]+$/)))a="";return a};
a.i=function(d,c){a.Ja(d);a.h!=h&&(a.h[d]=l);n.e[d]&&(n.e[d].nb=n.o(),n.I(d));if(d==F){var b=a.a(u);if(!b){b="object"==typeof c&&c.mid?c.mid:a.ca(c);if(!b){if(a.B){a.getAnalyticsVisitorID(h,l,k);return}b=a.v()}a.c(u,b)}if(!b||b==s)b="";"object"==typeof c&&((c.d_region||c.dcs_region||c.d_blob||c.blob)&&a.i(z,c),a.B&&c.mid&&a.i(D,{id:c.id}));a.q(u,[b])}if(d==z&&"object"==typeof c){b=604800;c.id_sync_ttl!=C&&c.id_sync_ttl&&(b=parseInt(c.id_sync_ttl,10));var e=a.a(y);e||((e=c.d_region)||(e=c.dcs_region),
e&&(a.m(y,b),a.c(y,e)));e||(e="");a.q(y,[e]);e=a.a(r);if(c.d_blob||c.blob)(e=c.d_blob)||(e=c.blob),a.m(r,b),a.c(r,e);e||(e="");a.q(r,[e]);!c.error_msg&&a.z&&a.c(G,a.z)}if(d==D){b=a.a(q);b||((b=a.ca(c))?b!==s&&a.m(r,-1):b=s,a.c(q,b));if(!b||b==s)b="";a.q(q,[b])}a.idSyncDisableSyncs?v.wa=k:(v.wa=l,b={},b.ibs=c.ibs,b.subdomain=c.subdomain,v.kb(b));if(c===Object(c)){var f;a.isAllowed()&&(f=a.a(x));f||(f=s,c.d_optout&&c.d_optout instanceof Array&&(f=c.d_optout.join(",")),b=parseInt(c.d_ottl,10),isNaN(b)&&
(b=7200),a.m(x,b,A),a.c(x,f));a.q(x,[f])}};a.h=h;a.r=function(d,c,b,e,f){var g="",j;if(a.isAllowed()&&(a.f(),g=a.a(d),!g&&(d==u||d==x?j=F:d==y||d==r?j=z:d==q&&(j=D),j))){if(c&&(a.h==h||!a.h[j]))a.h==h&&(a.h={}),a.h[j]=k,a.Ma(j,c,function(b,c){if(!a.a(d))if(n.e[j]&&(n.e[j].timeout=n.o(),n.e[j].eb=!!b,n.I(j)),c===Object(c)&&!a.useCORSOnly)a.ha(j,c.url,c.G);else{var e="";d==u?e=a.v():j==z&&(e={error_msg:"timeout"});a.i(j,e)}},f);a.Oa(d,b);c||a.i(j,{id:s});return""}if((d==u||d==q)&&g==s)g="",e=k;b&&e&&
a.K(b,[g]);return g};a._setMarketingCloudFields=function(d){a.f();a.i(F,d)};a.setMarketingCloudVisitorID=function(d){a._setMarketingCloudFields(d)};a.B=l;a.getMarketingCloudVisitorID=function(d,c){if(a.isAllowed()){a.marketingCloudServer&&0>a.marketingCloudServer.indexOf(".demdex.net")&&(a.B=k);var b=a.w("_setMarketingCloudFields");return a.r(u,b.url,d,c,b)}return""};a.Na=function(){a.getAudienceManagerBlob()};i.AuthState={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2};a.u={};a.ba=l;a.z="";a.setCustomerIDs=
function(d){if(a.isAllowed()&&d){a.f();var c,b;for(c in d)if(!Object.prototype[c]&&(b=d[c]))if("object"==typeof b){var e={};b.id&&(e.id=b.id);b.authState!=C&&(e.authState=b.authState);a.u[c]=e}else a.u[c]={id:b};var d=a.getCustomerIDs(),e=a.a(G),f="";e||(e=0);for(c in d)Object.prototype[c]||(b=d[c],f+=(f?"|":"")+c+"|"+(b.id?b.id:"")+(b.authState?b.authState:""));a.z=a.ea(f);a.z!=e&&(a.ba=k,a.Na())}};a.getCustomerIDs=function(){a.f();var d={},c,b;for(c in a.u)Object.prototype[c]||(b=a.u[c],d[c]||(d[c]=
{}),b.id&&(d[c].id=b.id),d[c].authState=b.authState!=C?b.authState:i.AuthState.UNKNOWN);return d};a._setAnalyticsFields=function(d){a.f();a.i(D,d)};a.setAnalyticsVisitorID=function(d){a._setAnalyticsFields(d)};a.getAnalyticsVisitorID=function(d,c,b){if(a.isAllowed()){var e="";b||(e=a.getMarketingCloudVisitorID(function(){a.getAnalyticsVisitorID(d,k)}));if(e||b){var f=b?a.marketingCloudServer:a.trackingServer,g="";a.loadSSL&&(b?a.marketingCloudServerSecure&&(f=a.marketingCloudServerSecure):a.trackingServerSecure&&
(f=a.trackingServerSecure));var j={};if(f){var f="http"+(a.loadSSL?"s":"")+"://"+f+"/id",e="d_visid_ver\x3d"+a.version+"\x26mcorgid\x3d"+encodeURIComponent(a.marketingCloudOrgID)+(e?"\x26mid\x3d"+encodeURIComponent(e):"")+(a.idSyncDisable3rdPartySyncing?"\x26d_coppa\x3dtrue":""),h=["s_c_il",a._in,"_set"+(b?"MarketingCloud":"Analytics")+"Fields"],g=f+"?"+e+"\x26callback\x3ds_c_il%5B"+a._in+"%5D._set"+(b?"MarketingCloud":"Analytics")+"Fields";j.k=f+"?"+e;j.oa=h}j.url=g;return a.r(b?u:q,g,d,c,j)}}return""};
a._setAudienceManagerFields=function(d){a.f();a.i(z,d)};a.w=function(d){var c=a.audienceManagerServer,b="",e=a.a(u),f=a.a(r,k),g=a.a(q),g=g&&g!=s?"\x26d_cid_ic\x3dAVID%01"+encodeURIComponent(g):"";a.loadSSL&&a.audienceManagerServerSecure&&(c=a.audienceManagerServerSecure);if(c){var b=a.getCustomerIDs(),j,h;if(b)for(j in b)Object.prototype[j]||(h=b[j],g+="\x26d_cid_ic\x3d"+encodeURIComponent(j)+"%01"+encodeURIComponent(h.id?h.id:"")+(h.authState?"%01"+h.authState:""));d||(d="_setAudienceManagerFields");
c="http"+(a.loadSSL?"s":"")+"://"+c+"/id";e="d_visid_ver\x3d"+a.version+"\x26d_rtbd\x3djson\x26d_ver\x3d2"+(!e&&a.B?"\x26d_verify\x3d1":"")+"\x26d_orgid\x3d"+encodeURIComponent(a.marketingCloudOrgID)+"\x26d_nsid\x3d"+(a.idSyncContainerID||0)+(e?"\x26d_mid\x3d"+encodeURIComponent(e):"")+(a.idSyncDisable3rdPartySyncing?"\x26d_coppa\x3dtrue":"")+(f?"\x26d_blob\x3d"+encodeURIComponent(f):"")+g;f=["s_c_il",a._in,d];b=c+"?"+e+"\x26d_cb\x3ds_c_il%5B"+a._in+"%5D."+d;return{url:b,k:c+"?"+e,oa:f}}return{url:b}};
a.getAudienceManagerLocationHint=function(d,c){if(a.isAllowed()&&a.getMarketingCloudVisitorID(function(){a.getAudienceManagerLocationHint(d,k)})){var b=a.a(q);b||(b=a.getAnalyticsVisitorID(function(){a.getAudienceManagerLocationHint(d,k)}));if(b)return b=a.w(),a.r(y,b.url,d,c,b)}return""};a.getAudienceManagerBlob=function(d,c){if(a.isAllowed()&&a.getMarketingCloudVisitorID(function(){a.getAudienceManagerBlob(d,k)})){var b=a.a(q);b||(b=a.getAnalyticsVisitorID(function(){a.getAudienceManagerBlob(d,
k)}));if(b){var b=a.w(),e=b.url;a.ba&&a.m(r,-1);return a.r(r,e,d,c,b)}}return""};a.s="";a.A={};a.N="";a.O={};a.getSupplementalDataID=function(d,c){!a.s&&!c&&(a.s=a.v(1));var b=a.s;a.N&&!a.O[d]?(b=a.N,a.O[d]=k):b&&(a.A[d]&&(a.N=a.s,a.O=a.A,a.s=b=!c?a.v(1):"",a.A={}),b&&(a.A[d]=k));return b};i.OptOut={GLOBAL:"global"};a.getOptOut=function(d,c){if(a.isAllowed()){var b=a.w("_setMarketingCloudFields");return a.r(x,b.url,d,c,b)}return""};a.isOptedOut=function(d,c,b){return a.isAllowed()?(c||(c=i.OptOut.GLOBAL),
(b=a.getOptOut(function(b){a.K(d,[b==i.OptOut.GLOBAL||0<=b.indexOf(c)])},b))?b==i.OptOut.GLOBAL||0<=b.indexOf(c):h):l};var w={p:!!m.postMessage,Fa:1,aa:864E5};a.rb=w;a.ma={postMessage:function(a,c,b){var e=1;c&&(w.p?b.postMessage(a,c.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):c&&(b.location=c.replace(/#.*$/,"")+"#"+ +new Date+e++ +"\x26"+a))},V:function(a,c){var b;try{if(w.p)if(a&&(b=function(b){if("string"===typeof c&&b.origin!==c||"[object Function]"===Object.prototype.toString.call(c)&&c(b.origin)===
B)return B;a(b)}),window.addEventListener)window[a?"addEventListener":"removeEventListener"]("message",b,B);else window[a?"attachEvent":"detachEvent"]("onmessage",b)}catch(e){}}};var J={na:function(){if(p.addEventListener)return function(a,c,b){a.addEventListener(c,function(a){"function"===typeof b&&b(a)},l)};if(p.attachEvent)return function(a,c,b){a.attachEvent("on"+c,function(a){"function"===typeof b&&b(a)})}}(),map:function(a,c){if(Array.prototype.map)return a.map(c);if(void 0===a||a===h)throw new TypeError;
var b=Object(a),e=b.length>>>0;if("function"!==typeof c)throw new TypeError;for(var f=Array(e),g=0;g<e;g++)g in b&&(f[g]=c.call(c,b[g],g,b));return f},Za:function(a,c){return this.map(a,function(a){return encodeURIComponent(a)}).join(c)}};a.xb=J;var K={C:function(){var a="none",c=k;"undefined"!==typeof XMLHttpRequest&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?a="XMLHttpRequest":(new Function("/*@cc_on return /^10/.test(@_jscript_version) @*/"))()?a="XMLHttpRequest":
"undefined"!==typeof XDomainRequest&&XDomainRequest===Object(XDomainRequest)&&(c=l),0<Object.prototype.toString.call(window.ob).indexOf("Constructor")&&(c=l));return{D:a,Ab:c}}(),ab:function(){return"none"===this.C.D?h:new window[this.C.D]},$a:function(d,c,b){var e=this;c&&(d.G=c);try{var f=this.ab();f.open("get",d.k+"\x26ts\x3d"+(new Date).getTime(),A);"XMLHttpRequest"===this.C.D&&(f.withCredentials=k,f.timeout=a.loadTimeout,f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),
f.onreadystatechange=function(){if(4===this.readyState&&200===this.status)a:{var a;try{if(a=JSON.parse(this.responseText),a!==Object(a)){e.n(d,null,"Response is not JSON");break a}}catch(b){e.n(d,b,"Error parsing response as JSON");break a}try{for(var c=d.oa,f=window,g=0;g<c.length;g++)f=f[c[g]];f(a)}catch(h){e.n(d,h,"Error forming callback function")}}});f.onerror=function(a){e.n(d,a,"onerror")};f.ontimeout=function(a){e.n(d,a,"ontimeout")};f.send();n.e[b]={requestStart:n.o(),url:d.k,sa:f.timeout,
qa:n.va(),ra:1};a.ia.Ca.push(d.k)}catch(g){this.n(d,g,"try-catch")}},n:function(d,c,b){a.CORSErrors.push({Bb:d,error:c,description:b});d.G&&("ontimeout"===b?d.G(A):d.G(B,d))}};a.ka=K;var v={Ha:3E4,$:649,Ea:l,id:h,S:h,ua:function(a){if("string"===typeof a)return a=a.split("/"),a[0]+"//"+a[2]},l:h,url:h,bb:function(){var d="http://fast.",c="?d_nsid\x3d"+a.idSyncContainerID+"#"+encodeURIComponent(p.location.href);this.l||(this.l="nosubdomainreturned");a.loadSSL&&(d=a.idSyncSSLUseAkamai?"https://fast.":
"https://");d=d+this.l+".demdex.net/dest5.html"+c;this.S=this.ua(d);this.id="destination_publishing_iframe_"+this.l+"_"+a.idSyncContainerID;return d},Ta:function(){var d="?d_nsid\x3d"+a.idSyncContainerID+"#"+encodeURIComponent(p.location.href);"string"===typeof a.L&&a.L.length&&(this.id="destination_publishing_iframe_"+(new Date).getTime()+"_"+a.idSyncContainerID,this.S=this.ua(a.L),this.url=a.L+d)},wa:h,ta:l,X:l,F:h,Ob:h,jb:h,Pb:h,W:l,H:[],hb:[],ib:[],ya:w.p?15:100,T:[],fb:[],pa:k,Ba:l,Aa:function(){return!a.idSyncDisable3rdPartySyncing&&
(this.ta||a.tb)&&this.l&&"nosubdomainreturned"!==this.l&&this.url&&!this.X},Q:function(){function a(){e=document.createElement("iframe");e.sandbox="allow-scripts allow-same-origin";e.title="Adobe ID Syncing iFrame";e.id=b.id;e.style.cssText="display: none; width: 0; height: 0;";e.src=b.url;b.jb=k;c();document.body.appendChild(e)}function c(){J.na(e,"load",function(){e.className="aamIframeLoaded";b.F=k;b.t()})}this.X=k;var b=this,e=document.getElementById(this.id);e?"IFRAME"!==e.nodeName?(this.id+=
"_2",a()):"aamIframeLoaded"!==e.className?c():(this.F=k,this.xa=e,this.t()):a();this.xa=e},t:function(d){var c=this;d===Object(d)&&this.T.push(d);if((this.Ba||!w.p||this.F)&&this.T.length)this.I(this.T.shift()),this.t();!a.idSyncDisableSyncs&&this.F&&this.H.length&&!this.W&&(this.Ea||(this.Ea=k,setTimeout(function(){c.ya=w.p?15:150},this.Ha)),this.W=k,this.Da())},I:function(a){var c=encodeURIComponent,b,e,f,g,h;if((b=a.ibs)&&b instanceof Array&&(e=b.length))for(f=0;f<e;f++)g=b[f],h=[c("ibs"),c(g.id||
""),c(g.tag||""),J.Za(g.url||[],","),c(g.ttl||""),"","",g.fireURLSync?"true":"false"],this.pa?this.P(h.join("|")):g.fireURLSync&&this.Ua(g,h.join("|"));this.fb.push(a)},Ua:function(d,c){a.f();var b=a.a(H),e=l,f=l,g=Math.ceil((new Date).getTime()/w.aa);if(b){if(b=b.split("*"),f=this.lb(b,d.id,g),e=f.Xa,f=f.Ya,!e||!f)this.P(c),b.push(d.id+"-"+(g+Math.ceil(d.ttl/60/24))),this.gb(b),a.c(H,b.join("*"))}else this.P(c),a.c(H,d.id+"-"+(g+Math.ceil(d.ttl/60/24)))},lb:function(a,c,b){var e=l,f=l,g,h,i;for(h=
0;h<a.length;h++)g=a[h],i=parseInt(g.split("-")[1],10),g.match("^"+c+"-")?(e=k,b<i?f=k:(a.splice(h,1),h--)):b>=i&&(a.splice(h,1),h--);return{Xa:e,Ya:f}},gb:function(a){if(a.join("*").length>this.$)for(a.sort(function(a,b){return parseInt(a.split("-")[1],10)-parseInt(b.split("-")[1],10)});a.join("*").length>this.$;)a.shift()},P:function(d){var c=encodeURIComponent;this.H.push((a.ub?c("---destpub-debug---"):c("---destpub---"))+d)},Da:function(){var d=this,c;this.H.length?(c=this.H.shift(),a.ma.postMessage(c,
this.url,this.xa.contentWindow),this.hb.push(c),setTimeout(function(){d.Da()},this.ya)):this.W=l},V:function(a){var c=/^---destpub-to-parent---/;"string"===typeof a&&c.test(a)&&(c=a.replace(c,"").split("|"),"canSetThirdPartyCookies"===c[0]&&(this.pa="true"===c[1]?k:l,this.Ba=k,this.t()),this.ib.push(a))},kb:function(d){this.url===h&&(this.l="string"===typeof a.la&&a.la.length?a.la:d.subdomain||"",this.url=this.bb());d.ibs instanceof Array&&d.ibs.length&&(this.ta=k);this.Aa()&&(a.idSyncAttachIframeASAP?
this.Ra():(i.Z||"complete"===p.readyState||"loaded"===p.readyState)&&this.Q());"function"===typeof a.idSyncIDCallResult?a.idSyncIDCallResult(d):this.t(d);"function"===typeof a.idSyncAfterIDCallResult&&a.idSyncAfterIDCallResult(d)},Sa:function(d,c){return a.vb||!d||c-d>w.Fa},Ra:function(){function a(){c.X||(document.body?c.Q():setTimeout(a,30))}var c=this;a()}};a.sb=v;a.timeoutMetricsLog=[];var n={Wa:window.performance&&window.performance.timing?1:0,za:window.performance&&window.performance.timing?
window.performance.timing:h,Y:h,R:h,e:{},U:[],send:function(d){if(a.takeTimeoutMetrics&&d===Object(d)){var c=[],b=encodeURIComponent,e;for(e in d)d.hasOwnProperty(e)&&c.push(b(e)+"\x3d"+b(d[e]));d="http"+(a.loadSSL?"s":"")+"://dpm.demdex.net/event?d_visid_ver\x3d"+a.version+"\x26d_visid_stg_timeout\x3d"+a.loadTimeout+"\x26"+c.join("\x26")+"\x26d_orgid\x3d"+b(a.marketingCloudOrgID)+"\x26d_timingapi\x3d"+this.Wa+"\x26d_winload\x3d"+this.cb()+"\x26d_ld\x3d"+this.o();(new Image).src=d;a.timeoutMetricsLog.push(d)}},
cb:function(){this.R===h&&(this.R=this.za?this.Y-this.za.navigationStart:this.Y-i.Va);return this.R},o:function(){return(new Date).getTime()},I:function(a){var c=this.e[a],b={};b.d_visid_stg_timeout_captured=c.sa;b.d_visid_cors=c.ra;b.d_fieldgroup=a;b.d_settimeout_overriden=c.qa;c.timeout?c.eb?(b.d_visid_timedout=1,b.d_visid_timeout=c.timeout-c.requestStart,b.d_visid_response=-1):(b.d_visid_timedout="n/a",b.d_visid_timeout="n/a",b.d_visid_response="n/a"):(b.d_visid_timedout=0,b.d_visid_timeout=-1,
b.d_visid_response=c.nb-c.requestStart);b.d_visid_url=c.url;i.Z?this.send(b):this.U.push(b);delete this.e[a]},mb:function(){for(var a=0,c=this.U.length;a<c;a++)this.send(this.U[a])},va:function(){return"function"===typeof setTimeout.toString?-1<setTimeout.toString().indexOf("[native code]")?0:1:-1}};a.zb=n;0>o.indexOf("@")&&(o+="@AdobeOrg");a.marketingCloudOrgID=o;a.cookieName="AMCV_"+o;a.sessionCookieName="AMCVS_"+o;a.cookieDomain=a.Ka();a.cookieDomain==m.location.hostname&&(a.cookieDomain="");a.loadSSL=
0<=m.location.protocol.toLowerCase().indexOf("https");a.loadTimeout=3E4;a.CORSErrors=[];a.marketingCloudServer=a.audienceManagerServer="dpm.demdex.net";if(t&&"object"==typeof t){for(var E in t)!Object.prototype[E]&&(a[E]=t[E]);a.idSyncContainerID=a.idSyncContainerID||0;a.f();K=a.a(I);E=Math.ceil((new Date).getTime()/w.aa);!a.idSyncDisableSyncs&&v.Sa(K,E)&&(a.m(r,-1),a.c(I,E));a.getMarketingCloudVisitorID();a.getAudienceManagerLocationHint();a.getAudienceManagerBlob()}if(!a.idSyncDisableSyncs){v.Ta();
J.na(window,"load",function(){i.Z=k;n.Y=n.o();n.mb();var a=v;a.Aa()&&a.Q()});try{a.ma.V(function(a){v.V(a.data)},v.S)}catch(L){}}};Visitor.getInstance=function(o,t){var a,m=window.s_c_il,i;0>o.indexOf("@")&&(o+="@AdobeOrg");if(m)for(i=0;i<m.length;i++)if((a=m[i])&&"Visitor"==a._c&&a.marketingCloudOrgID==o)return a;return new Visitor(o,t)};(function(){function o(){t.Z=a}var t=window.Visitor,a=t.Ia,m=t.Ga;a||(a=A);m||(m=B);window.addEventListener?window.addEventListener("load",o):window.attachEvent&&
window.attachEvent("onload",o);t.Va=(new Date).getTime()})();window.visitor=Visitor.getInstance("A783776A5245B1E50A490D44@AdobeOrg",{"trackingServer":trackingServer,"trackingServerSecure":trackingServerSecure,"marketingCloudServer":marketingCloudServer,"marketingCloudServerSecure":marketingCloudServerSecure,"cookieLifetime":cookieLifetime,"cookieDomain":cookieDomain})},1944519,383955);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;function getCookie(cname){var name=cname+"\x3d";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)}return""}var gdprList=["portfolio-managers.td.com","private-bankers.td.com","advisors.td.com","financialplanners.td.com","mms.tdcanadatrust.com","academienumerique.td.com",
"cartesfaq.td.com","digitalacademy.td.com"];for(var i=0;i<gdprList.length;i++)if(window.location.href.indexOf(gdprList[i])>-1)if(getCookie("GDPR")=="true"){ensClientConfig={"info":{"name":"tdb","publishPath":"gdpr","clientId":822,"nexus":"nexus.ensighten.com"},"cookieTypes":["GDPR"],"blacklist":{"default":[],"GDPR":[{"tag":"(platform.|syndication)?(twitter|twimg).com","displayName":"Twitter"},{"tag":"(td|dpm).demdex.net","displayName":"Demdex"},{"tag":"((redir|log|ads|s(et|ync))\\.adaptv\\.(com|tv)|adap\\.tv)",
"displayName":"Adap.tv"},{"tag":"spotxchange\\.com","displayName":"SpotXchange"},{"tag":"(360yield|tidaltv|qservz|turn|adnxs)\\.com","displayName":"360Yield"},{"tag":"adadvisor\\.net","displayName":"AdAdvisor"},{"tag":"(\\.atemda\\.com|(admaym|atemda)\\.com)","displayName":"AdMeta"},{"tag":"(\\.adtech(us\\.com|\\.de)|(atwola|adnxs|rfihub|meteofrance|mathtag|tribalfusion|acuityplatform|contextweb|dotomi|sitescout)\\.com|simpli\\.fi)","displayName":"ADTECH"},{"tag":"\\.ag(kn|gregateknowledge)\\.com",
"displayName":"Aggregate Knowledge"},{"tag":"((bkrtx|tags\\.bluekai)\\.com|(bluekai|nerdwallet|spongecell)\\.com|mxptint\\.net)","displayName":"BlueKai"},{"tag":"bstatic.com","displayName":"Bstatic"},{"tag":"thebrighttag.com","displayName":"BrightTag"},{"tag":"\\.criteo\\.(com|net)","displayName":"Criteo"},{"tag":"doubleclick.net","displayName":"DoubleClick"},{"tag":"\\.exelator\\.com","displayName":"eXelate"},{"tag":"facebook\\.com|facebook\\.net","displayName":"Facebook Custom Audiences"},{"tag":"googleadservices.com",
"displayName":"Google AdServices"},{"tag":"(jwpcdn|jwpltx|jwpsrv|longtailvideo)\\.com","displayName":"JW Player"},{"tag":"kau\\.li","displayName":"Kauli"},{"tag":"p-td.com","displayName":"P-td"},{"tag":"acxiom-online.com","displayName":"Acxiom"},{"tag":"\\.adscale\\.de","displayName":"AdScale"},{"tag":"\\.burst(net|beacon)\\.com","displayName":"Burst Media"},{"tag":"nexac.com","displayName":"Nexac"},{"tag":"eqads\\.com","displayName":"Eq Ads"},{"tag":"krxd\\.net|(ml314|quantserve)\\.com","displayName":"Krux"},
{"tag":"leadback\\.advertising\\.com","displayName":"LeadBack"},{"tag":"lijit\\.com","displayName":"Lijit"},{"tag":"\\.s(ecurestudies|core(card)?research)\\.com","displayName":"ScoreCardResearch"},{"tag":"addtoany\\.com","displayName":"AddToAny"},{"tag":"(yahoo|yimg)\\.com","displayName":"Yahoo Advertising Solutions"},{"tag":"vimeo\\.com|nr-data\\.net","displayName":"Vimeo"},{"tag":"vmmpxl.com","displayName":"Vmmpxl"},{"tag":"\\.turn\\.com","displayName":"Turn"},{"tag":"tribalfusion\\.com","displayName":"Tribal Fusion"},
{"tag":"switchads\\.com","displayName":"Switch Concepts"},{"tag":"sonobi\\.com","displayName":"Sonobi Media"},{"tag":"(\\.yoc-adserver\\.com|(smartadserver|adventori)\\.com)","displayName":"SMART AdServer"},{"tag":"rubiconproject.com","displayName":"Rubicon Project"},{"tag":"rfihub.com","displayName":"Rfihub"},{"tag":"yieldmanager.net","displayName":"YieldManager"},{"tag":"contextweb.com","displayName":"contextweb"},{"tag":"rlcdn.com","displayName":"rlcdn"},{"tag":"openx.net","displayName":"OpenX"},
{"tag":"mookiel.com","displayName":"Mookie"},{"tag":"newrelic\\.com","displayName":"New Relic"},{"tag":"media6degrees\\.com","displayName":"Media6Degrees"},{"tag":"(\\.pubmatic\\.com|rfihub\\.com)","displayName":"PubMatic"},{"tag":"(pixel.everesttech|everestjs).net","displayName":"EverestTech"},{"tag":"(s|a).idio.co","displayName":"Idio"},{"tag":"(event|portal).on24.com","displayName":"On24"},{"tag":"(cdn.|dcs.|rtb.)?(adgrx|adgear).com","displayName":"AdGear"},{"tag":"smetrics.td.com","displayName":"AdobeAnalytics"},
{"tag":"td.demdex.net","displayName":"AudienceManager"},{"tag":"www.googletagmanager.com"},{"tag":"metrics.td.com"},{"tag":"dpm.demdex.net"},{"tag":"tdbankfinancialgroup.tt.omtrdc.net"},{"tag":"cdn.tt.omtrdc.net"}]},"defaultEnv":"","featureToggles":{"enableReporting":true,"enableFiltering":true,"enablePrivacyNotice":false,"enableConsentModal":false,"showTrustedDomains":false,"requireSSL":false,"enableDataMonitoring":false,"usesWhitelist":false,"consentWidget":false},"libraryPackage":"enterprise",
"dataMonitoring":{"mode":"block","blockURLParamsRegex":[],"domainsAllowed":[]},"environmentConfigs":[{"name":"TDInsurance GPS Quoters","countryCode":"ca","languageCode":"en-CA","condition":{"type":"host","key":"","value":"portfolio-managers.td.com","shouldBePositive":true,"operator":"equals","_or":{"type":"host","key":"","value":"private-bankers.td.com","shouldBePositive":true,"operator":"equals","_or":{"type":"host","key":"","value":"financialplanners.td.com","shouldBePositive":true,"operator":"equals",
"_or":{"type":"host","key":"","value":"advisors.td.com","shouldBePositive":true,"operator":"equals","_or":{"type":"host","key":"","value":"td.com","shouldBePositive":true,"operator":"contains"}}}}},"optVals":{"GDPR":0},"translation":{"notificationBannerContent":"not used","consentTitle":"not used","consentDescription":"not used","save":"not used","cancel":"not used","close":"not used","cookies":{"GDPR":{}}}}]};if(Bootstrapper.ensightenOptions.publishPath)ensClientConfig.info.publishPath=Bootstrapper.ensightenOptions.publishPath;
if(Bootstrapper.ensightenOptions.nexus)ensClientConfig.info.nexus=Bootstrapper.ensightenOptions.nexus}},2619245,545249);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(~document.URL.indexOf("mbna.ca/mysupport")||~document.URL.indexOf("mobile-ads")||document.URL.indexOf("tdinsurance")>-1||document.URL.indexOf("tdassurance")>-1);else{Bootstrapper.enablePrivacy=Bootstrapper.enablePrivacy||false;Bootstrapper.cookies=Bootstrapper.cookies||{};Bootstrapper.setPref=true;Bootstrapper.explicitCase=Bootstrapper.explicitCase||false;var gatewayOptions=
Bootstrapper.gatewayOptions||{};var prefix=gatewayOptions.clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_";if(document.location.hostname==="stg2.pat.tdassurance.com"||document.location.hostname==="www2.pat.tdassurance.com"||window.location.hostname==="stg2.pat.tdinsurance.com"||window.location.hostname==="www2.pat.tdinsurance.com"||window.location.hostname==="www7.dev.tdinsurance.com"||window.location.hostname==="www8.dev.tdinsurance.com"||window.location.hostname==="www7.dev.tdassurance.com"||window.location.hostname===
"www8.dev.tdassurance.com"||window.location.hostname==="www2.sys.tdinsurance.com"||window.location.hostname==="www2.sys.tdassurance.com")var prefix=gatewayOptions.clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_TDI_";var types=gatewayOptions.cookieTypes;if(Bootstrapper.enablePrivacy)for(var i=0;i<types.length;i++)if(!findCookie(prefix+types[i])){setFirstPartyCookie(i,"1");setLocalCookie(i,"1");Bootstrapper.setPref=false}function findCookie(testString){var reTest=new RegExp(testString),cookieList=document.cookie.split("; ");
for(var i=0;i<cookieList.length;i++)if(reTest.test(cookieList[i]))return true;return false}function setFirstPartyCookie(typeNumber,value){var location=window.location||{},hostname=window.hostname||location.hostname||"",domain="";document.cookie=prefix+types[typeNumber]+"\x3d"+value+"; path\x3d/"+domain+"; expires\x3d"+(new Date(+new Date+1E3*60*60*24*365)).toUTCString()}function setLocalCookie(typeNumber,value){Bootstrapper.cookies[prefix+types[typeNumber]]=value}}},2858776,[2869063],292470,[292469]);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("www.tdinsurance.com")>-1||document.URL.indexOf("www.tdassurance.com")>-1){window.MutationObserver=window.MutationObserver||function(w){function v(a){this.i=[];this.m=a}function I(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,v._period)})()}function p(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],
previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==w&&a[c]!==w&&(b[c]=a[c]);return b}function J(a,b){var c=C(a,b);return function(d){var f=d.length,n;b.a&&3===a.nodeType&&a.nodeValue!==c.a&&d.push(new p({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&A(d,a,c.b,b.f);if(b.c||b.g)n=K(d,a,c,b);if(n||d.length!==f)c=C(a,b)}}function L(a,b){return b.value}function M(a,b){return"style"!==b.name?b.value:a.style.cssText}function A(a,
b,c,d){for(var f={},n=b.attributes,k,g,x=n.length;x--;)k=n[x],g=k.name,d&&d[g]===w||(D(b,k)!==c[g]&&a.push(p({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(p({target:b,type:"attributes",attributeName:g,oldValue:c[g]}))}function K(a,b,c,d){function f(b,c,f,k,y){var g=b.length-1;y=-~((g-y)/2);for(var h,l,e;e=b.pop();)h=f[e.j],l=k[e.l],d.c&&y&&Math.abs(e.j-e.l)>=g&&(a.push(p({type:"childList",target:c,addedNodes:[h],removedNodes:[h],
nextSibling:h.nextSibling,previousSibling:h.previousSibling})),y--),d.b&&l.b&&A(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(p({type:"characterData",target:h,oldValue:l.a})),d.g&&n(h,l)}function n(b,c){for(var g=b.childNodes,q=c.c,x=g.length,v=q?q.length:0,h,l,e,m,t,z=0,u=0,r=0;u<x||r<v;)m=g[u],t=(e=q[r])&&e.node,m===t?(d.b&&e.b&&A(a,m,e.b,d.f),d.a&&e.a!==w&&m.nodeValue!==e.a&&a.push(p({type:"characterData",target:m,oldValue:e.a})),l&&f(l,b,g,q,z),d.g&&(m.childNodes.length||e.c&&e.c.length)&&
n(m,e),u++,r++):(k=!0,h||(h={},l=[]),m&&(h[e=E(m)]||(h[e]=!0,-1===(e=F(q,m,r,"node"))?d.c&&(a.push(p({type:"childList",target:b,addedNodes:[m],nextSibling:m.nextSibling,previousSibling:m.previousSibling})),z++):l.push({j:u,l:e})),u++),t&&t!==g[u]&&(h[e=E(t)]||(h[e]=!0,-1===(e=F(g,t,u))?d.c&&(a.push(p({type:"childList",target:c.node,removedNodes:[t],nextSibling:q[r+1],previousSibling:q[r-1]})),z--):l.push({j:e,l:r})),r++));l&&f(l,b,g,q,z)}var k;n(b,c);return k}function C(a,b){var c=!0;return function f(a){var k=
{node:a};!b.a||3!==a.nodeType&&8!==a.nodeType?(b.b&&c&&1===a.nodeType&&(k.b=G(a.attributes,function(c,f){if(!b.f||b.f[f.name])c[f.name]=D(a,f);return c})),c&&(b.c||b.a||b.b&&b.g)&&(k.c=N(a.childNodes,f)),c=b.g):k.a=a.nodeValue;return k}(a)}function E(a){try{return a.id||(a.mo_id=a.mo_id||H++)}catch(b){try{return a.nodeValue}catch(c){return H++}}}function N(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=b(a[d],d,a);return c}function G(a,b){for(var c={},d=0;d<a.length;d++)c=b(c,a[d],d,a);return c}function F(a,
b,c,d){for(;c<a.length;c++)if((d?a[c][d]:a[c])===b)return c;return-1}v._period=30;v.prototype={observe:function(a,b){for(var c={b:!!(b.attributes||b.attributeFilter||b.attributeOldValue),c:!!b.childList,g:!!b.subtree,a:!(!b.characterData&&!b.characterDataOldValue)},d=this.i,f=0;f<d.length;f++)d[f].s===a&&d.splice(f,1);b.attributeFilter&&(c.f=G(b.attributeFilter,function(a,b){a[b]=!0;return a}));d.push({s:a,o:J(a,c)});this.h||I(this)},takeRecords:function(){for(var a=[],b=this.i,c=0;c<b.length;c++)b[c].o(a);
return a},disconnect:function(){this.i=[];clearTimeout(this.h);this.h=null}};var B=document.createElement("i");B.style.top=0;var D=(B="null"!=B.attributes.style.value)?L:M,H=1;return v}(void 0);var LZString=function(){var f=String.fromCharCode;var keyStrBase64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";var keyStrUriSafe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$";var baseReverseDic={};function getBaseValue(alphabet,character){if(!baseReverseDic[alphabet]){baseReverseDic[alphabet]=
{};for(var i=0;i<alphabet.length;i++)baseReverseDic[alphabet][alphabet.charAt(i)]=i}return baseReverseDic[alphabet][character]}var LZString={compressToBase64:function(input){if(input==null)return"";var res=LZString._compress(input,6,function(a){return keyStrBase64.charAt(a)});switch(res.length%4){default:case 0:return res;case 1:return res+"\x3d\x3d\x3d";case 2:return res+"\x3d\x3d";case 3:return res+"\x3d"}},decompressFromBase64:function(input){if(input==null)return"";if(input=="")return null;return LZString._decompress(input.length,
32,function(index){return getBaseValue(keyStrBase64,input.charAt(index))})},compressToUTF16:function(input){if(input==null)return"";return LZString._compress(input,15,function(a){return f(a+32)})+" "},decompressFromUTF16:function(compressed){if(compressed==null)return"";if(compressed=="")return null;return LZString._decompress(compressed.length,16384,function(index){return compressed.charCodeAt(index)-32})},compressToUint8Array:function(uncompressed){var compressed=LZString.compress(uncompressed);
var buf=new Uint8Array(compressed.length*2);for(var i=0,TotalLen=compressed.length;i<TotalLen;i++){var current_value=compressed.charCodeAt(i);buf[i*2]=current_value>>>8;buf[i*2+1]=current_value%256}return buf},decompressFromUint8Array:function(compressed){if(compressed===null||compressed===undefined)return LZString.decompress(compressed);else{var buf=new Array(compressed.length/2);for(var i=0,TotalLen=buf.length;i<TotalLen;i++)buf[i]=compressed[i*2]*256+compressed[i*2+1];var result=[];buf.forEach(function(c){result.push(f(c))});
return LZString.decompress(result.join(""))}},compressToEncodedURIComponent:function(input){if(input==null)return"";return LZString._compress(input,6,function(a){return keyStrUriSafe.charAt(a)})},decompressFromEncodedURIComponent:function(input){if(input==null)return"";if(input=="")return null;input=input.replace(/ /g,"+");return LZString._decompress(input.length,32,function(index){return getBaseValue(keyStrUriSafe,input.charAt(index))})},compress:function(uncompressed){return LZString._compress(uncompressed,
16,function(a){return f(a)})},_compress:function(uncompressed,bitsPerChar,getCharFromInt){if(uncompressed==null)return"";var i,value,context_dictionary={},context_dictionaryToCreate={},context_c="",context_wc="",context_w="",context_enlargeIn=2,context_dictSize=3,context_numBits=2,context_data=[],context_data_val=0,context_data_position=0,ii;for(ii=0;ii<uncompressed.length;ii+=1){context_c=uncompressed.charAt(ii);if(!Object.prototype.hasOwnProperty.call(context_dictionary,context_c)){context_dictionary[context_c]=
context_dictSize++;context_dictionaryToCreate[context_c]=true}context_wc=context_w+context_c;if(Object.prototype.hasOwnProperty.call(context_dictionary,context_wc))context_w=context_wc;else{if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=
0}else context_data_position++}value=context_w.charCodeAt(0);for(i=0;i<8;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=value>>1}}else{value=1;for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));
context_data_val=0}else context_data_position++;value=0}value=context_w.charCodeAt(0);for(i=0;i<16;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=value>>1}}context_enlargeIn--;if(context_enlargeIn==0){context_enlargeIn=Math.pow(2,context_numBits);context_numBits++}delete context_dictionaryToCreate[context_w]}else{value=context_dictionary[context_w];
for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=value>>1}}context_enlargeIn--;if(context_enlargeIn==0){context_enlargeIn=Math.pow(2,context_numBits);context_numBits++}context_dictionary[context_wc]=context_dictSize++;context_w=String(context_c)}}if(context_w!==""){if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,
context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++}value=context_w.charCodeAt(0);for(i=0;i<8;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=
0}else context_data_position++;value=value>>1}}else{value=1;for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=0}value=context_w.charCodeAt(0);for(i=0;i<16;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));
context_data_val=0}else context_data_position++;value=value>>1}}context_enlargeIn--;if(context_enlargeIn==0){context_enlargeIn=Math.pow(2,context_numBits);context_numBits++}delete context_dictionaryToCreate[context_w]}else{value=context_dictionary[context_w];for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=
value>>1}}context_enlargeIn--;if(context_enlargeIn==0){context_enlargeIn=Math.pow(2,context_numBits);context_numBits++}}value=2;for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=value>>1}while(true){context_data_val=context_data_val<<1;if(context_data_position==bitsPerChar-1){context_data.push(getCharFromInt(context_data_val));
break}else context_data_position++}return context_data.join("")},decompress:function(compressed){if(compressed==null)return"";if(compressed=="")return null;return LZString._decompress(compressed.length,32768,function(index){return compressed.charCodeAt(index)})},_decompress:function(length,resetValue,getNextValue){var dictionary=[],next,enlargeIn=4,dictSize=4,numBits=3,entry="",result=[],i,w,bits,resb,maxpower,power,c,data={val:getNextValue(0),position:resetValue,index:1};for(i=0;i<3;i+=1)dictionary[i]=
i;bits=0;maxpower=Math.pow(2,2);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}switch(next=bits){case 0:bits=0;maxpower=Math.pow(2,8);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}c=f(bits);break;case 1:bits=
0;maxpower=Math.pow(2,16);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}c=f(bits);break;case 2:return""}dictionary[3]=c;w=c;result.push(c);while(true){if(data.index>length)return"";bits=0;maxpower=Math.pow(2,numBits);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=
(resb>0?1:0)*power;power<<=1}switch(c=bits){case 0:bits=0;maxpower=Math.pow(2,8);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}dictionary[dictSize++]=f(bits);c=dictSize-1;enlargeIn--;break;case 1:bits=0;maxpower=Math.pow(2,16);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=
getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}dictionary[dictSize++]=f(bits);c=dictSize-1;enlargeIn--;break;case 2:return result.join("")}if(enlargeIn==0){enlargeIn=Math.pow(2,numBits);numBits++}if(dictionary[c])entry=dictionary[c];else if(c===dictSize)entry=w+w.charAt(0);else return null;result.push(entry);dictionary[dictSize++]=w+entry.charAt(0);enlargeIn--;w=entry;if(enlargeIn==0){enlargeIn=Math.pow(2,numBits);numBits++}}}};return LZString}();if(typeof define==="function"&&define.amd)define(function(){return LZString});
else if(typeof module!=="undefined"&&module!=null)module.exports=LZString;var polyfill;if(!window.addEventListener)(function(WindowPrototype,DocumentPrototype,ElementPrototype,addEventListener,removeEventListener,dispatchEvent,registry){WindowPrototype[addEventListener]=DocumentPrototype[addEventListener]=ElementPrototype[addEventListener]=function(type,listener){var target=this;registry.unshift([target,type,listener,function(event){event.currentTarget=target;event.preventDefault=function(){event.returnValue=
false};event.stopPropagation=function(){event.cancelBubble=true};event.target=event.srcElement||target;listener.call(target,event)}]);this.attachEvent("on"+type,registry[0][3])};WindowPrototype[removeEventListener]=DocumentPrototype[removeEventListener]=ElementPrototype[removeEventListener]=function(type,listener){for(var index=0,register;register=registry[index];++index)if(register[0]==this&&register[1]==type&&register[2]==listener)return this.detachEvent("on"+type,registry.splice(index,1)[0][3])};
WindowPrototype[dispatchEvent]=DocumentPrototype[dispatchEvent]=ElementPrototype[dispatchEvent]=function(eventObject){return this.fireEvent("on"+eventObject.type,eventObject)}})(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]);if(!document.getElementsByClassName)document.getElementsByClassName=function(search){var d=document,elements,pattern,i,results=[];if(d.querySelectorAll)return d.querySelectorAll("."+search);if(d.evaluate){pattern=
".//*[contains(concat(' ', @class, ' '), ' "+search+" ')]";elements=d.evaluate(pattern,d,null,0,null);while(i=elements.iterateNext())results.push(i)}else{elements=d.getElementsByTagName("*");pattern=new RegExp("(^|\\s)"+search+"(\\s|$)");for(i=0;i<elements.length;i++)if(pattern.test(elements[i].className))results.push(elements[i])}return results};if(!window.getComputedStyle)window.getComputedStyle=function(el,pseudo){this.el=el;this.getPropertyValue=function(prop){var re=/(\-([a-z]){1})/g;if(prop==
"float")prop="styleFloat";if(re.test(prop))prop=prop.replace(re,function(){return arguments[2].toUpperCase()});return el.currentStyle[prop]?el.currentStyle[prop]:null};return this};(function(window,document){var html=document.documentElement;var body=document.body;var define=function(object,property,getter){if(typeof object[property]==="undefined")Object.defineProperty(object,property,{get:getter})};define(window,"innerWidth",function(){return html.clientWidth});define(window,"innerHeight",function(){return html.clientHeight});
define(window,"scrollX",function(){return window.pageXOffset||html.scrollLeft});define(window,"scrollY",function(){return window.pageYOffset||html.scrollTop});define(document,"width",function(){return Math.max(body.scrollWidth,html.scrollWidth,body.offsetWidth,html.offsetWidth,body.clientWidth,html.clientWidth)});define(document,"height",function(){return Math.max(body.scrollHeight,html.scrollHeight,body.offsetHeight,html.offsetHeight,body.clientHeight,html.clientHeight)});return define})(window,
document);if(!Array.prototype.forEach)Array.prototype.forEach=function(callback,thisArg){var T,k;if(this===null)throw new TypeError(" this is null or not defined");var O=Object(this);var len=O.length>>>0;if(typeof callback!=="function")throw new TypeError(callback+" is not a function");if(arguments.length>1)T=thisArg;k=0;while(k<len){var kValue;if(k in O){kValue=O[k];callback.call(T,kValue,k,O)}k++}};var privacyStart;var gatewayConfig=function(){var events=["load","abort","error"];var elementMethods=
["appendChild","insertBefore","replaceChild","removeChild"];if(document.insertAdjacentElement||window.Element&&Element.prototype.insertAdjacentElement||window.HTMLElement&&HTMLElement.prototype.insertAdjacentElement)elementMethods.push("insertAdjacentElement");var excList=new RegExp("nodeName|scopeName|tagName|"+"fileSize|outerHTML|start|contentEditable|href|nameProp|outerText|innerText|innerHTML");var elementTypes=["Anchor","Area","Body","Button","Canvas","Div","Form","Frame","Head","Html","IFrame",
"Input","Label","LI","Link","Map","OList","Option","Paragraph","Span","Table","TableCell","TableCol","TableRow","TableSection","UList","Unknown"];var eventHandlers=["abort","error","KeyDown","KeyPress","KeyUp","load"];var forwardMethods=["cloneNode","attachEvent"];var getters=["ElementsByClassName","ClientRects","BoundingClientRect","Attribute","ElementsByTagName","ElementsByTagNameNS","AttributeNS","UserData","AttributeNode","AttributeNodeNS","Height","Width","Style","Opacity","Dimensions","OffsetParent",
"ElementsBySelector","InlineOpacity","Styles"];var unbound={};return{events:events,elementMethods:elementMethods,excList:excList,elementTypes:elementTypes,eventHandlers:eventHandlers,forwardMethods:forwardMethods,getters:getters,unbound:unbound}}();var utilities=function(){return{addStyleElement:function(cssStyleDef){var head=document.head||document.getElementsByTagName("head")[0];var styleTag=document.createElement("style");styleTag.type="text/css";if(styleTag.styleSheet)styleTag.styleSheet.cssText=
cssStyleDef;else styleTag.appendChild(document.createTextNode(cssStyleDef));head.appendChild(styleTag)},arrayToRegex:function(arr){if(Array.isArray(arr)){if(arr&&arr.length>0&&arr.join)return new RegExp(arr.join("|"));return new RegExp("a^")}},attachEvents:function(object,fn,timeStamp){if(object.addEventListener)utilities.each(gatewayConfig.events,function(event){object.addEventListener(event,fn(timeStamp,event),false)});else if(object.attachEvent)utilities.each(gatewayConfig.events,function(event){object.attachEvent("on"+
event,fn(timeStamp,event))})},bind:function(fn,context,args){args=Array.prototype.slice.call(arguments);fn=args.shift();context=args.shift();return function(){return fn.apply(context,args.concat(Array.prototype.slice.call(arguments)))}},browserSupportsMutationObserver:function(){var returnVal;var prefixes=["WebKit","Moz","O","Ms",""];for(var i=0;i<prefixes.length;i++)if(prefixes[i]+"MutationObserver"in window)returnVal=true;return returnVal},couldNotBind:function(key){gatewayConfig.unbound[key]=true},
createEventHandler:function(timeStamp,status){return function(){gateway.resourceComplete(this,timeStamp,status)}},deleteCookie:function(clientName,cookieKey){clientName=clientName.toUpperCase();var cookieString=clientName+"_ENSIGHTEN_PRIVACY_"+cookieKey;var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=cookies[i];var eqPos=cookie.indexOf("\x3d");var name=eqPos>-1?cookie.substr(0,eqPos):cookie;if(name.trim()===cookieString.trim())document.cookie=name+"\x3d; path\x3d/; expires\x3dThu, 01 Jan 1970 00:00:00 GMT"}},
deleteAllCookies:function(){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=cookies[i];var eqPos=cookie.indexOf("\x3d");var name=eqPos>-1?cookie.substr(0,eqPos):cookie;document.cookie=name+"\x3d; path\x3d/; expires\x3dThu, 01 Jan 1970 00:00:00 GMT"}},domReady:function(callback){var ready=false;var detach=function(){if(document.addEventListener){document.removeEventListener("DOMContentLoaded",completed);window.removeEventListener("load",completed)}else{document.detachEvent("onreadystatechange",
completed);window.detachEvent("onload",completed)}};var completed=function(){if(!ready&&(document.addEventListener||event.type==="load"||document.readyState==="complete")){ready=true;detach();callback()}};if(document.readyState==="complete")callback();else if(document.addEventListener){document.addEventListener("DOMContentLoaded",completed);window.addEventListener("load",completed)}else{document.attachEvent("onreadystatechange",completed);window.attachEvent("onload",completed);var top=false;try{top=
window.frameElement===null&&document.documentElement}catch(e){}if(top&&top.doScroll)(function scrollCheck(){if(ready)return;try{top.doScroll("left")}catch(e){return setTimeout(scrollCheck,50)}ready=true;detach();callback()})()}},each:function(list,fn,context){if(list===undefined||!("length"in list))list={length:0};for(var i=0;i<list.length;i++)fn.call(context,list[i],i,list)},getBrowserLocale:function(){var locale=window.navigator.userLanguage||window.navigator.language;if(locale){locale=locale.split("-");
if(locale[0]&&locale[1])locale=locale[0]+"-"+locale[1].toUpperCase();else locale=locale[0]}else locale="en";return locale},getCookie:function(key){var match=document.cookie.match(new RegExp(key+"\x3d([^;]+)"));if(match)return match[1]},getFunctionString:function(fn){if(!fn||typeof fn!=="function"&&typeof fn!=="object")return false;if(fn.toString!==undefined)return fn.toString();return fn+""},getUrlParamVal:function(key){var hash,queryStringObject={};var hashes=window.location.href.slice(window.location.href.indexOf("?")+
1).split("\x26");for(var i=0;i<hashes.length;i++){hash=hashes[i].split("\x3d");queryStringObject[hash[0]]=hash[1]}var returnVal="";if(queryStringObject[key])returnVal=queryStringObject[key];return returnVal},handleReference:function(arg){var reference=arg?arg.__reference:false;var tagName;if(reference)tagName=reference.tagName.toUpperCase();if(reference&&(tagName==="SCRIPT"||tagName==="IFRAME"||tagName==="IMAGE"||tagName==="IMG")){for(var property in reference)if(Object.prototype.hasOwnProperty.call(reference,
property)&&typeof arg[property]==="string")if(!gatewayConfig.excList.test(property)&&(arg[property]||reference[property]&&!arg[property]))if(reference[property]!==arg[property]&&arg[property]!==reference.__histLog[property])try{reference[property]=arg[property]}catch(e){try{if(reference.tagName&&reference.tagName.toUpperCase()==="SCRIPT"&&property==="text")reference.text=arg["text"];else if(reference.tagName&&reference.tagName.toUpperCase()==="SCRIPT"&&property==="innerHTML")reference.innerHTML=arg["innerHTML"];
else reference.setAttribute(property,arg[property])}catch(ex){}}tagName=null;return reference}return arg},isEncoded:function(str){return typeof str=="string"&&decodeURIComponent(str)!==str},isIE8OrLower:function(){return document.all&&!document.getSelection},isNative:function(fn){var re=new RegExp("function\\s+.+?\\(\\s*\\)"+"\\s*{\\s*\\[native code\\]\\s*}"),re2=new RegExp("function\\s+.+?\\"+"(\\s*\\)\\s*{\\s*\\/\\*\\s*"+"source code not available\\s*\\*\\/\\s*}"),fnStr=utilities.getFunctionString(fn);
var retValue=re.test(fnStr)||re2.test(fnStr);re=re2=fnStr=null;return retValue},map:function(list,fn,context){if(list===undefined||!("length"in list))list={length:0};for(var i=0;i<list.length;i++)list[i]=fn.call(context,list[i],i,list)},noop:function(){},overrideHelper:function(object,fnName){var objectNameString=object+"";if(!object||!object[fnName]||object+""==="[Interface prototype object]")return false;var method=object[fnName];var proxiedMethod=function(){var args=Array.prototype.slice.call(arguments);
var node=args[0];if(typeof node==="string")node=args[1];var tagName=this.tagName;if(tagName===undefined||tagName===null)tagName="";else tagName=tagName.toUpperCase();var argTagName=node.tagName;if(argTagName===undefined||argTagName===null)argTagName="";else argTagName=argTagName.toUpperCase();if(tagName!=="SCRIPT"&&tagName!=="IMG"&&tagName!=="IMAGE"&&tagName!=="IFRAME"&&argTagName!=="SCRIPT"&&argTagName!=="IMG"&&argTagName!=="IMAGE"&&argTagName!=="IFRAME"){if(this!==object)if(fnName==="appendChild"&&
utilities.isIE8OrLower())if(this.canHaveChildren===true&&this.canHaveHTML!==true&&tagName==="SELECT"){args[0].parentNode.removeChild(args[0]);this.options.add(new Option(args[0].text,args[0].value));args[0]=this.lastChild;return this.lastChild}else{var origInnerHTML=this.innerHTML;this.innerHTML=this.innerHTML+args[0].outerHTML;try{args[0].parentNode.removeChild(args[0])}catch(e){}if(this.innerHTML===origInnerHTML&&args[0].outerHTML!=="")throw"Could not set innerHTML on"+this+"in overrideHelper";
args[0]=this.lastChild;return args[0]}return Function.prototype.apply.call(method,this,args)}else{node=utilities.processElement(fnName,node);if(node)return Function.prototype.apply.call(method,this,args)}};var nodeName="";if(objectNameString!=="[xpconnect wrapped native prototype]"&&objectNameString!=="[object XPC_WN_ModsAllowed_NoCall_Proto_JSClass]")if(window.DocumentFragment&&window.DocumentFragment.prototype&&object===window.DocumentFragment.prototype)nodeName="";else if(window.Element&&window.Element.prototype&&
object===window.Element.prototype)nodeName="";else nodeName=object.nodeName||"";nodeName=nodeName.toUpperCase();if(nodeName.toUpperCase()==="EMBED")try{object[fnName]=proxiedMethod}catch(e){}else object[fnName]=proxiedMethod},processElement:function(source,node){var processed=node.__gateway||!node.tagName;if(processed){processed=null;return node}var timeStamp=+new Date,request=new Request;request.id=timeStamp;request.source=source;node.__gateway=timeStamp;var tagName=request.type=node.tagName.toLowerCase();
if(tagName==="iframe"||tagName==="script"||tagName==="img"){request.destination=node.src;if(!gateway.onBefore(request,node)){node.src=getBlockedSrcString(tagName,request);gateway.onBlock(request,node)}else utilities.attachEvents(node,utilities.createEventHandler,timeStamp)}utilities.each(node.children,utilities.bind(utilities.processElement,this,source));processed=timeStamp=request=tagName=null;return node;function getBlockedSrcString(tagName,request){if(gateway.dataGovernanceManager.shouldMaskData(request))return gateway.dataGovernanceManager.getMaskedDataString(request.destination);
else if(gateway.dataGovernanceManager.shouldRedactData(request))return gateway.dataGovernanceManager.getRedactedDataString(request.destination);else if(tagName==="img")return"";else return"//javascript:;"}},processHTML:function(source,html){var containsSrc=/src\s*=/i.test(html);if(!containsSrc){containsSrc=null;return html}var srcs=html.match(/src\s*=\s*(.+?)(\s|$|>)/ig);if(srcs){utilities.map(srcs,function(src){var replacedString=src.replace(/\s*src\s*=\s*('|")?(.*?)('|")?(\s|$|>)/i,"$2");return replacedString});
utilities.each(srcs,function(src){var timeStamp=+new Date,request=new Request;request.id=timeStamp;request.source=source;request.destination=src;var node={};if(!gateway.onBefore(request,node)){if(gateway.dataGovernanceManager.shouldMaskData(request))html=html.replace(src,gateway.dataGovernanceManager.getMaskedDataString(request.destination));else html=html.replace(src,"//javascript:;");gateway.onBlock(request,node)}})}containsSrc=srcs=null;return html},setFirstPartyCookie:function(clientName,cookieType,
value,cookieDomain){var prefix=clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_";document.cookie=prefix+cookieType+"\x3d"+value+"; path\x3d/; domain\x3d"+cookieDomain+"; expires\x3d"+(new Date(+new Date+1E3*60*60*24*365)).toUTCString()}}}();var writeLnObserver=function(){var writeln=document.writeln;document.writeln=function(html){html=utilities.processHTML("writeln",html);return Function.prototype.call.call(writeln,document,html)};return!utilities.isNative(document.writeln)};var writeObserver=function(){var write=
document.write;document.write=function(html,cb){html=utilities.processHTML("write",html);if(cb)return cb(html);return Function.prototype.call.call(write,document,html)};return!utilities.isNative(document.write)};var elementObserver=function(){function observeElementHelper(){utilities.each(gatewayConfig.elementTypes,function(type){if(window["HTML"+type+"Element"]&&window["HTML"+type+"Element"].prototype)utilities.each(gatewayConfig.elementMethods,function(method){utilities.overrideHelper(window["HTML"+
type+"Element"].prototype,method)});else utilities.couldNotBind("HTML"+type+"Element")})}if(window.DocumentFragment&&window.DocumentFragment.prototype&&window.DocumentFragment.prototype.appendChild)utilities.each(gatewayConfig.elementMethods,utilities.bind(utilities.overrideHelper,null,window.DocumentFragment.prototype));else utilities.couldNotBind("DocumentFramgment");if(window.Element&&window.Element.prototype&&window.Element.prototype.appendChild)utilities.each(gatewayConfig.elementMethods,utilities.bind(utilities.overrideHelper,
null,window.Element.prototype));else utilities.couldNotBind("Element");if(utilities.isNative(document.createElement("div").appendChild)){var div=document.createElement("div");var proto=div;var escape=0;while(!Object.prototype.hasOwnProperty.call(proto,"appendChild")){proto=Object.getPrototypeOf(proto);if(escape++>5){utilities.couldNotBind("div.appendChild");break}}utilities.each(gatewayConfig.elementMethods,utilities.bind(utilities.overrideHelper,null,proto));div=proto=escape=null}if(utilities.isNative(document.createElement("div").appendChild))observeElementHelper();
return};var MutationObserverFactory=function(){ensClientConfig.ensCreateElement=document.createElement;var ensMutationObserver=new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(mutation.type=="attributes")utilities.processElement("mutationObserverA",mutation.target);if(mutation.type=="childList"){var mutationLength=mutation.addedNodes.length;for(var i=0;i<mutationLength;i++){var item;if(Object.prototype.toString.call(mutation.addedNodes)==="[object Array]")item=mutation.addedNodes[i];
else item=mutation.addedNodes.item(i);utilities.processElement("mutationObserverCL",item)}}})});var watchTheDOM=function(){var docBody=document;var innerHTMLObservCfg={attributes:true,childList:true,subtree:true,characterData:false,attributeFilter:["src"]};ensMutationObserver.observe(docBody,innerHTMLObservCfg)};document.createElement=function(tagName){var element=Function.prototype.apply.call(ensClientConfig.ensCreateElement,document,arguments);if(tagName.match(/img|image|iframe|script/i)){var config=
{attributes:true,childList:false,characterData:false,attributeFilter:["src"]};ensMutationObserver.observe(element,config)}return element};window.Image=function(w,h){var img=document.createElement("img");if(typeof w!="undefined")img.setAttribute("width",w);if(typeof h!="undefined")img.setAttribute("height",h);return img};var init=function(){watchTheDOM()}()};var Reporter=function(){var that;function getReportHeader(){return{version:"1.0.0",gateway:that.gatewayVersion,clientId:that.clientId,publishPath:that.publishPath,
instanceId:that.instanceId,packet:that.beaconCounter,mode:that.gatewayMode,cookies:that.privacyCookies}}function generateRawReportString(resources){var report=getReportHeader();report.requests=resources;return JSON.stringify(report)}function generateReportString(resources){var reportString=generateRawReportString(resources);var stat={};stat.rawLength=reportString.length;reportString=LZString.compressToEncodedURIComponent(reportString);stat.compressedLength=reportString.length;that.stats.push(stat);
return reportString}function doReport(){var overCapacityResources=[],beacons=[];if(this.enabled===false||this.unreportedResources.length===0)return false;while(this.unreportedResources.length>0){var reportString=generateReportString(this.unreportedResources);if(reportString.length+50<this.options.maxUrlSize){beacons.push(beacon.call(this,reportString));this.reportedResources=this.reportedResources.concat(this.unreportedResources);this.unreportedResources=overCapacityResources;overCapacityResources=
[];if(this.stats.length>0)this.stats[this.stats.length-1].written=true}else overCapacityResources.push(this.unreportedResources.pop())}return beacons}function beacon(data){var Img=this.imageReference;var beaconRootUrl="//nexus.ensighten.com/privacy/v1/b/1.gif";var beacon=new Img;var encodedBeaconURL=beaconRootUrl+"?"+"n\x3d"+this.beaconCounter++ +"\x26c\x3d"+this.clientId+"\x26i\x3d"+this.instanceId;if(this.publishPath)encodedBeaconURL+="\x26p\x3d"+encodeURIComponent(this.publishPath);encodedBeaconURL+=
"\x26d\x3d"+data;beacon.src=encodedBeaconURL;return encodedBeaconURL}function startTimer(){var self=this;if(!this.enabled)return false;doReport.call(this);return setTimeout(function(){startTimer.call(self)},this.options.reportInterval)}function Reporter(imageReference,clientId,publishPath,usesWhitelist,gatewayVersion,reportingEnabled,options){this.instanceId=((1+Math.random())*268435456|0).toString(36);this.imageReference=imageReference;this.unreportedResources=[];this.reportedResources=[];this.beaconCounter=
0;this.enabled=reportingEnabled===false?false:true;this.clientId=clientId;this.publishPath=publishPath;this.gatewayMode=usesWhitelist?"whitelist":"blacklist";this.privacyCookies=[];this.gatewayVersion=gatewayVersion;this.stats=[];if(options)this.setOptions(options);startTimer.call(this);that=this}Reporter.prototype={options:{maxUrlSize:32E3,reportInterval:2500},addResource:function(resource){if(this.enabled)this.unreportedResources.push(resource)},setCookies:function(cookies){this.privacyCookies=
cookies},setOptions:function(options){for(var p in options)if(options.hasOwnProperty(p))this.options[p]=options[p]},_generateRawReportString:generateRawReportString,_generateReportString:generateReportString,_doReport:doReport,_beacon:beacon,_startTimer:startTimer};return Reporter}();var EnvironmentManager=function(document,environmentConfigs,defaultEnvName,clientName,getCookieDomain){var activeEnvironment=null,environmentChangeCallbacks=[],environmentsCount=environmentConfigs.length,clearEnvironment=
function(clientName){utilities.deleteCookie(clientName,"LOCALE");setEnvironment()},environmentExists=function(locale){return getEnvironmentByLocale(locale)!==null},evalCondition=function(condition){var conditionValue;conditionIsSatisfied=false;switch(condition.type){case "host":conditionValue=document.location.hostname;break;case "url":conditionValue=document.URL;break;case "cookie":conditionValue=getCookie(condition.key);break;case "jsVar":if(window[condition.key])conditionValue=window[condition.key];
break;default:console.warn("Error evaluating environment target")}switch(condition.operator){case "equals":conditionIsSatisfied=evaluateEquals(conditionValue,condition);break;case "contains":conditionIsSatisfied=evaluateContains(conditionValue,condition);break;case "exists":conditionIsSatisfied=evaluateExists(conditionValue,condition);break;default:console.warn("Error evaluating comparator for environment")}if(condition.shouldBePositive===false)if(conditionIsSatisfied===true)conditionIsSatisfied=
false;else conditionIsSatisfied=true;if(conditionIsSatisfied===true&&condition._and)conditionIsSatisfied=evalCondition(condition._and);if(conditionIsSatisfied===false&&condition._or)conditionIsSatisfied=evalCondition(condition._or);return conditionIsSatisfied},evaluateContains=function(conditionType,condition){return conditionType.indexOf(condition.value)!==-1},evaluateEquals=function(conditionType,condition){return conditionType==condition.value},evaluateExists=function(conditionType){var objectExists=
false;if(conditionType)objectExists=true;return objectExists},fireEnvironmentChangeCallbacks=function(){var callbacksCount=environmentChangeCallbacks.length;for(var i=0;i<callbacksCount;i++)if(typeof environmentChangeCallbacks[i]==="function")environmentChangeCallbacks[i](activeEnvironment)},getActiveEnvironment=function(){return activeEnvironment},getActiveLocale=function(){return activeEnvironment.languageCode},getAvailableLocales=function(){var availableLocales=[];for(var i=0;i<environmentsCount;i++)availableLocales.push(environmentConfigs[i].languageCode);
return availableLocales},getCookie=function(key){var match=document.cookie.match(new RegExp(key+"\x3d([^;]+)"));if(match)return match[1]},getDefaultEnvironment=function(){var environment=null;for(var i=0;i<environmentConfigs.length;i++)if(defaultEnvName&&environmentConfigs[i].name==defaultEnvName){environment=environmentConfigs[i];break}if(!environment)for(var i=0;i<environmentConfigs.length;i++)if(environmentConfigs[i].languageCode=="en"){environment=environmentConfigs[i];break}return environment},
getEnvironmentByBrowserLocale=function(){var locale=utilities.getBrowserLocale();return getEnvironmentByLocale(locale)},getEnvironmentByConditions=function(){var environment=null;for(var i=0;i<environmentsCount;i++)if(environmentConfigs[i].condition&&evalCondition(environmentConfigs[i].condition))environment=environmentConfigs[i];return environment},getEnvironmentByLocale=function(locale){var environment=null;for(var i=0;i<environmentsCount;i++)if(environmentConfigs[i].languageCode===locale){environment=
environmentConfigs[i];break}if(!environment){var trimmedLocale=locale.split("-");locale=trimmedLocale[0];for(var i=0;i<environmentsCount;i++)if(environmentConfigs[i].languageCode===locale){environment=environmentConfigs[i];break}}return environment},getEnvironmentByLocaleCookie=function(){var environment=null;var cookieVal=utilities.getCookie("LOCALE");if(cookieVal)environment=getEnvironmentByLocale(cookieVal);return environment},initializeActiveEnvironment=function(){var environment=null;environment=
getEnvironmentByLocaleCookie();if(!environment)environment=getEnvironmentByConditions();if(!environment)environment=getEnvironmentByBrowserLocale();if(!environment)environment=getDefaultEnvironment();if(environment&&environment.translation){environment.translation.save=environment.translation.save||"SAVE";environment.translation.cancel=environment.translation.cancel||"CANCEL";environment.translation.close=environment.translation.close||"CLOSE"}activeEnvironment=environment},registerEnvironmentChangeCallback=
function(callback){environmentChangeCallbacks.push(callback)},setEnvironment=function(locale){if(environmentExists(locale)){var cookieDomain=getCookieDomain();utilities.setFirstPartyCookie(clientName,"LOCALE",locale,cookieDomain);activeEnvironment=getEnvironmentByLocale(locale);fireEnvironmentChangeCallbacks(activeEnvironment)}else if(!locale){initializeActiveEnvironment();activeEnvironment=getActiveEnvironment();fireEnvironmentChangeCallbacks(activeEnvironment)}},init=function(){initializeActiveEnvironment()}();
return{environmentExists:environmentExists,clearEnvironment:clearEnvironment,getActiveEnvironment:getActiveEnvironment,getActiveLocale:getActiveLocale,getAvailableLocales:getAvailableLocales,registerEnvironmentChangeCallback:registerEnvironmentChangeCallback,setEnvironment:setEnvironment}};var DataGovernanceManager=function(dataMonitoring,data){var blockURLParamsRegex=function(){return utilities.arrayToRegex(data.blockURLParamsRegex)}();var dataMonitoringAllowedDomainsRegex=function(){return utilities.arrayToRegex(data.domainsAllowed)}();
function allowRequest(request,hostName){var dataMonitoringCheckPasses=true;var url=request.destination;if(dataMonitoring){dataMonitoringCheckPasses=false;var decodedURLString=url;if(utilities.isEncoded(url))decodedURLString=decodeURIComponent(url);dataMonitoringCheckPasses=!blockURLParamsRegex.test(decodedURLString);if(dataMonitoringCheckPasses===false)dataMonitoringCheckPasses=dataMonitoringAllowedDomainsRegex.test(hostName);if(!dataMonitoringCheckPasses)request.addReason("DATA_MONITORING")}return dataMonitoringCheckPasses}
function editQueryString(queryString,replacementStringChars){var replacementString=replacementStringChars||"~~~~~~~~~~~~~~~~~~~~";if(replacementStringChars==="")replacementString="";var newStringVal=queryString;if(utilities.isEncoded(newStringVal))newStringVal=decodeURIComponent(newStringVal);if(newStringVal!==""&&blockURLParamsRegex.test&&blockURLParamsRegex.test(newStringVal)){newStringVal=newStringVal.replace(blockURLParamsRegex,replacementString);newStringVal=editQueryString(newStringVal,replacementString)}return newStringVal}
function getMaskedDataString(dataMonitoringString){var newStringVal=editQueryString(dataMonitoringString,"~~~~~~~~~~");return newStringVal}function getRedactedDataString(dataMonitoringString){var newStringVal=editQueryString(dataMonitoringString,"");return newStringVal}function shouldMaskData(request){var shouldMask=false;if(data.mode==="mask"&&request.numReasons()===1&&request.hasReason("DATA_MONITORING"))shouldMask=true;return shouldMask}function shouldRedactData(request){var shouldMask=false;if(data.mode===
"redact"&&request.numReasons()===1&&request.hasReason("DATA_MONITORING"))shouldMask=true;return shouldMask}return{allowRequest:allowRequest,getMaskedDataString:getMaskedDataString,getRedactedDataString:getRedactedDataString,shouldMaskData:shouldMaskData,shouldRedactData:shouldRedactData}};var BusinessRulesManager=function(gatewayData){var init=function(){setStaticVals()},shouldGetEnterpriseModal=false,shouldGetPrivacyModal=false,setShouldGetEnterpriseModal=function(){shouldGetEnterpriseModal=gatewayData.libraryPackage===
"enterprise"},setShouldGetPrivacyModal=function(){shouldGetPrivacyModal=gatewayData.libraryPackage&&gatewayData.libraryPackage==="privacy"},setStaticVals=function(){setShouldGetEnterpriseModal();setShouldGetPrivacyModal()};init();return{shouldGetEnterpriseModal:shouldGetEnterpriseModal,shouldGetPrivacyModal:shouldGetPrivacyModal}};var PathFilterManager=function(activeList,shouldAddCategoryToList){var shouldAddCategoryToList=shouldAddCategoryToList,tagsWithFiltersRegEx,tagsWithAllowPaths=[],tagsWithBlockPaths=
[];var allowRequest=function(domain,path,targetListCheckPasses){var allowRequest=targetListCheckPasses;if(tagsWithFiltersRegEx.test(domain)){for(var tagsWithAllowPathsCount=0;tagsWithAllowPathsCount<tagsWithAllowPaths.length;tagsWithAllowPathsCount++){var allowPathRegEx=new RegExp(tagsWithAllowPaths[tagsWithAllowPathsCount]["tag"]);if(allowPathRegEx.test(domain)){var allowReg=[];allowReg=allowReg.concat(tagsWithAllowPaths[tagsWithAllowPathsCount]["paths"]);allowReg=utilities.arrayToRegex(allowReg);
if(allowReg.test(path))allowRequest=true;else allowRequest=false}}for(var tagsWithBlockPathsCount=0;tagsWithBlockPathsCount<tagsWithBlockPaths.length;tagsWithBlockPathsCount++){var domainRegEx=new RegExp(tagsWithBlockPaths[tagsWithBlockPathsCount]["tag"]);if(domainRegEx.test(domain)){var blockReg=[];blockReg=blockReg.concat(tagsWithBlockPaths[tagsWithBlockPathsCount]["paths"]);blockReg=utilities.arrayToRegex(blockReg);if(blockReg.test(path))allowRequest=false;else allowRequest=true}}}return allowRequest},
buildPathFilterList=function(){var tagsWithFilters=[];var filteredCategoryList=[];for(var category in activeList){filteredCategoryList.push(activeList[category]);if(shouldAddCategoryToList(category))for(var categoryCount=0;categoryCount<activeList[category].length;categoryCount++)if(activeList[category][categoryCount]["filter"]){tagsWithFilters.push(activeList[category][categoryCount]["tag"]);if(activeList[category][categoryCount]["filter"]==="blockPaths")tagsWithBlockPaths.push({tag:activeList[category][categoryCount]["tag"],
paths:activeList[category][categoryCount]["paths"]});else if(activeList[category][categoryCount]["filter"]==="allowPaths")tagsWithAllowPaths.push({tag:activeList[category][categoryCount]["tag"],paths:activeList[category][categoryCount]["paths"]})}}tagsWithFiltersRegEx=utilities.arrayToRegex(tagsWithFilters)},update=function(){buildPathFilterList()},init=function(){buildPathFilterList()};init();return{allowRequest:allowRequest,update:update}};var ListManager=function(environment,gatewayData,defaultCategory,
prefix){var activeList,environment=environment,listRegex,pathFilterManager=null,usesPathFilter=false,usesWhiteList=true;var init=function(){setUsesWhitelist();setList();buildListRegex(environment)},buildListRegex=function(){var list=getList(),reg=[];var listUsesObject=false;for(var cat in list)if(list[cat][0]&&typeof list[cat][0]==="object")listUsesObject=true;var addToList=function(listVals){if(listUsesObject)reg=reg.concat(getObjectsVals(list[listVals],"tag"));else reg=reg.concat(list[listVals])};
for(var category in list)if(shouldAddToListRegex(category))addToList(category);listRegex=utilities.arrayToRegex(reg)},shouldAddToListRegex=function(k){var shouldAddToListRegex=false;if(k==defaultCategory)shouldAddToListRegex=true;if(usesWhiteList)if(utilities.getCookie(prefix+k)=="1")shouldAddToListRegex=true;else{if(utilities.getCookie(prefix+k)!=="0"&&environment.optVals[k]===1)shouldAddToListRegex=true}else if(utilities.getCookie(prefix+k)=="0")shouldAddToListRegex=true;else if(utilities.getCookie(prefix+
k)!=="1"&&environment.optVals[k]===0)shouldAddToListRegex=true;return shouldAddToListRegex},getObjectsVals=function(arrayOfObjects,key){var arrayOfObjectVals=[];for(var i=0;i<arrayOfObjects.length;i++){var val=arrayOfObjects[i][key];arrayOfObjectVals.push(val);if(arrayOfObjects["filter"])usesPathFilter=true}if(usesPathFilter)pathFilterManager=new PathFilterManager(getList(),shouldAddToListRegex);return arrayOfObjectVals},getList=function(){return activeList},getListRegex=function(){return listRegex},
getCategoryTranslations=function(category){for(var i=0;i<category.length;i++){var translatedPurposes=[];for(var j=0;j<category[i].purpose.length;j++)translatedPurposes.push(environment.translation.purposes[category[i].purpose[j]]);category[i].purpose=translatedPurposes}return category},getTranslatedList=function(){var fullList=getList(),translatedList=fullList;for(var category in fullList)if(category!=="default")translatedList[category]=getCategoryTranslations(fullList[category]);return translatedList},
getUsesWhitelist=function(){return usesWhiteList},setUsesWhitelist=function(){if(environment&&environment.hasOwnProperty("usesWhitelist"))usesWhiteList=environment.usesWhitelist;else if(gatewayData.featureToggles.hasOwnProperty("usesWhitelist"))usesWhiteList=gatewayData.featureToggles.usesWhitelist;else usesWhiteList=true},setList=function(){activeList=usesWhiteList===true?gatewayData.whitelist||{}:gatewayData.blacklist||{};if(!activeList.hasOwnProperty(defaultCategory)&&usesWhiteList===true)activeList[defaultCategory]=
[];var listUsesObject=false;for(var cat in activeList)if(activeList[cat][0]&&typeof activeList[cat][0]==="object")listUsesObject=true;if(listUsesObject&&usesWhiteList){activeList[defaultCategory].push({tag:location.hostname});activeList[defaultCategory].push({tag:"ensighten.com"})}else if(usesWhiteList){activeList[defaultCategory].push(location.hostname);activeList[defaultCategory].push("ensighten.com")}},allowRequest=function(hostName,pathName,targetListCheckPasses){var listRegEx=getListRegex();
var targetListCheckPasses=false;if(getUsesWhitelist()===false){if(listRegEx.test&&!listRegEx.test(hostName))targetListCheckPasses=true}else if(listRegEx.test&&listRegEx.test(hostName))targetListCheckPasses=true;if(pathFilterManager)targetListCheckPasses=pathFilterManager.allowRequest(hostName,pathName,targetListCheckPasses,listRegEx);return targetListCheckPasses},updateListValues=function(){buildListRegex(environment);pathFilterManager.update()},updateEnvironment=function(newEnv){environment=newEnv;
buildListRegex(newEnv);pathFilterManager.update()};init();return{getList:getList,getListRegex:getListRegex,getTranslatedList:getTranslatedList,getUsesWhitelist:getUsesWhitelist,allowRequest:allowRequest,updateEnvironment:updateEnvironment,updateListValues:updateListValues}};var Banner=function(clientName,translation,cookieModal,getCookieDomain){var e=document.createElement("div");var bannerCopy=translation.notificationBannerContent;var bannerViewed=function(){utilities.setFirstPartyCookie(clientName,
"BANNER_VIEWED","1",getCookieDomain())};var checkCopyForLinks=function(){bannerCopy=bannerCopy.replace(/{{/i,"\x3cspan id\x3d'ensModalLink' class\x3d'ensModalLink'\x3e");bannerCopy=bannerCopy.replace(/}}/i,"\x3c/span\x3e")};var closeEnsBanner=function(){bannerViewed();var banner=document.getElementById("ensNotifyBanner");banner.style.display="none"};var ensBannerShowModal=function(){closeEnsBanner();if(cookieModal.openModal)cookieModal.openModal()};var openBannerCheck=function(){var ensBannerHasBeenViewed=
utilities.getCookie("BANNER_VIEWED");if(!ensBannerHasBeenViewed)openEnsBanner()};var openEnsBanner=function(){var banner=document.getElementById("ensNotifyBanner");banner.style.display="block";var parentWidth=window.innerWidth/2;var elementWidth=parseInt(window.getComputedStyle(banner).width)/2;banner.style.left=parentWidth-elementWidth+"px"};var styleString=""+".ensNotifyBanner{"+"background-color: #191B23;"+"color: #EDEDED;"+"opacity: 0.8;"+"width:60%;"+"border-radius: 10px;"+"padding:20px;"+"font-family: Roboto, 'Helvetica Neue', Helvetica, Arial;"+
"position: fixed;"+"bottom:50px;"+"display: none;"+"z-index: 9999;"+"}"+".ensButtons{"+"clear: both;"+"margin-top: 15px;"+"float: right;"+"}"+".ensButtons .button{"+"display: inline-block;"+"position: relative;"+"width: 120px;"+"height: 32px;"+"line-height: 32px;"+"border-radius: 2px;"+"font-size: 0.9em;"+"background-color: #fff;"+"color: #646464;"+"margin-left: 20px;"+"text-align: center;"+"}"+".ensButtons .button{"+"cursor: pointer;"+"}"+".ensButtons .button.grey {"+"background-color: #eee;"+"}"+
".ensButtons .button.blue {"+"background-color: #4285f4;"+"color: #fff;"+"}"+".ensButtons .button.raised {"+"transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);"+"transition-delay: 0.2s;"+"box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);"+"}"+".ensButtons .button.raised:active {"+"box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);"+"transition-delay: 0s;"+"}"+".ensClear{"+" clear:both;"+"}"+".ensModalLink{"+"  cursor: pointer;"+" text-decoration: underline;"+"}"+".ensModalLink:hover{"+"  color: #4285f4;"+
"}";var setBannerCopy=function(copy){bannerCopy=copy;checkCopyForLinks()};var setBannerMarkup=function(translation){bannerMarkup="\x3cdiv id\x3d'ensNotifyBanner' class\x3d'ensNotifyBanner'\x3e"+"\x3cdiv\x3e"+bannerCopy+"\x3c/div\x3e"+"\x3cdiv class\x3d'ensButtons'\x3e"+"\x3cdiv id\x3d'ensCloseBanner' class\x3d'button raised blue'\x3e"+translation.close+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3cdiv class\x3d'ensClear'\x3e\x3c/div\x3e"+"\x3c/div\x3e"};var getBannerMarkup=function(){return bannerMarkup};var update=
function(env){var banner=document.getElementById("ensNotifyBanner");var modal=document.getElementById("ensModalWrapper");bannerDisplayStyle=banner.style.display;modalDisplayStyle=modal.style.display;setBannerCopy(env.translation.notificationBannerContent);setBannerMarkup(env.translation);e.innerHTML=bannerMarkup;if(bannerDisplayStyle==="block")openEnsBanner();if(modalDisplayStyle==="block")ensBannerShowModal();var openModalLink=document.getElementsByClassName("ensModalLink");var closeBannerButton=
document.getElementById("ensCloseBanner");for(var i=0;i<openModalLink.length;i++)openModalLink[i].addEventListener("click",ensBannerShowModal);closeBannerButton.addEventListener("click",closeEnsBanner)};var init=function(){checkCopyForLinks();setBannerMarkup(translation);e.innerHTML=bannerMarkup;var injectBanner=function(){setTimeout(function(){document.body.insertBefore(e,document.body.lastChild);utilities.addStyleElement(styleString);var openModalLink=document.getElementsByClassName("ensModalLink");
var closeBannerButton=document.getElementById("ensCloseBanner");for(var i=0;i<openModalLink.length;i++)openModalLink[i].addEventListener("click",ensBannerShowModal);closeBannerButton.addEventListener("click",closeEnsBanner);openBannerCheck()},100)};utilities.domReady(injectBanner)}();var testObject={bannerViewed:bannerViewed,ensBannerShowModal:ensBannerShowModal};return{closeEnsBanner:closeEnsBanner,openEnsBanner:openEnsBanner,update:update}};var ConsentModal=function(gatewayData,environment,tagPurposes,
getCookieDomain,updateLists){var styleString=""+".ensCenter{"+"text-align: center;"+"}"+"#ensModalWrapper{"+"border: 1px solid #333;"+"position: fixed;"+"max-width: 60%;"+"border: 1px solid #000;"+"display: block;"+"box-shadow: 5px 5px 5px grey;"+"background-color:#fff;"+"padding: 20px 0;"+"z-index: 9999;"+"}"+".ensModal {"+"font-family: Roboto, 'Helvetica Neue', Helvetica, Arial;"+"min-width: 400px;"+"max-width: 400px;"+"}"+".ensModal input[type\x3d'checkbox'] {"+"display: none;"+"}"+".ensModal input[type\x3d'checkbox']:checked ~ .toggle {"+
"background: #fff;"+"left: 36px;"+"transition: .5s;"+"}"+".ensModal input[type\x3d'checkbox']:checked ~ .switch {"+"background: #43A047;"+"transition: .5s;"+"}"+".ensModal .switch {"+"display: block;"+"width: 50px;"+"height: 15px;"+"background: #939393;"+"border-radius: 10px;"+"position: absolute;"+"top: 0;"+"transition: .5s;"+"}"+".ensModal .toggle {"+"height: 17px;"+"width: 17px;"+"border-radius: 50%;"+"background: white;"+"position: absolute;"+"top: -2px;"+"left: -2px;"+"box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);"+
"transition: .5s;"+"}"+".ensModal .card {"+"display: inline-block;"+"margin: 9px;"+"margin: 5px;"+"width: 50px;"+"height: 20px;"+"text-align: center;"+"position: relative;"+"float:right;"+"}"+".ensModal{"+"font-size: 18px;"+"color: #333;"+"padding: 20px 20px 0px 20px;"+"}"+".ensToggleRow{"+"margin-bottom: 10px;"+"}"+".ensToggleLabel{"+"margin-right: 5px;"+"}"+".ensButtons{"+"clear: both;"+"margin-top: 15px;"+"float: right;"+"}"+".ensButtons .button{"+"display: inline-block;"+"position: relative;"+
"width: 120px;"+"height: 32px;"+"line-height: 32px;"+"border-radius: 2px;"+"font-size: 0.9em;"+"background-color: #fff;"+"color: #646464;"+"margin-left: 20px;"+"}"+".ensButtons .button.grey {"+"background-color: #eee;"+"}"+".ensButtons .button.blue {"+"background-color: #4285f4;"+"color: #fff;"+"}"+".ensButtons .button.raised {"+"transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);"+"transition-delay: 0.2s;"+"box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);"+"}"+".ensButtons .button.raised:active {"+
"box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);"+"transition-delay: 0s;"+"}"+".ensModal .ensTitle {"+"margin:5px;"+"width:95%;"+"color: #74736F;"+"position: absolute;"+"top:-5px;"+"left:-5px;"+"padding-left:5%;"+"padding-top:13px;"+"padding-bottom: 3px;"+"text-align: center;"+"}"+".ensModal .consentDescription {"+"color:#333;"+"font-size: 14px;"+"}"+".ensModal hr {"+"color: #C5C5C5"+"}"+".ensModal .description {"+"max-width:600px;"+"font-size: 12px;"+"marin-top:15px;"+"clear: both;"+"}"+".mdl-shadow--2dp {"+
"box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);"+"}"+".mdl-data-table {"+"position: relative;"+"border: 1px solid rgba(0,0,0,.12);"+"border-collapse: collapse;"+"white-space: nowrap;"+"font-size: 13px;"+"background-color: #fff;"+"}"+".mdl-data-table thead {"+"padding-bottom: 3px;"+"}"+"tr{"+"display: table-row;"+"vertical-align: inherit;"+"border-color: inherit;"+"}"+".mdl-data-table td:first-of-type, .mdl-data-table th:first-of-type {"+"padding-left: 24px;"+
"}"+".mdl-data-table__cell--non-numeric.mdl-data-table__cell--non-numeric {"+"text-align: left;"+"}"+"tbody {"+"display: table-row-group;"+"vertical-align: middle;"+"border-color: inherit;"+"}"+".mdl-data-table tbody tr {"+"position: relative;"+"height: 48px;"+"transition-duration: .28s;"+"transition-timing-function: cubic-bezier(.4,0,.2,1);"+"transition-property: background-color;"+"}"+".mdl-data-table td:first-of-type, .mdl-data-table th:first-of-type {"+"padding-left: 24px;"+"}"+".mdl-data-table td, .mdl-data-table td .mdl-data-table__select {"+
"vertical-align: middle;"+"}"+".mdl-data-table td {"+"position: relative;"+"height: 48px;"+"border-top: 1px solid rgba(0,0,0,.12);"+"border-bottom: 1px solid rgba(0,0,0,.12);"+"padding: 12px 18px;"+"box-sizing: border-box;"+"}"+".mdl-data-table th {"+"position: relative;"+"vertical-align: bottom;"+"text-overflow: ellipsis;"+"font-weight: 700;"+"line-height: 24px;"+"letter-spacing: 0;"+"height: 48px;"+"font-size: 12px;"+"color: rgba(0,0,0,.54);"+"padding-bottom: 8px;"+"box-sizing: border-box;"+"}"+
".mdl-data-table th {"+"padding: 0 18px 12px 18px;"+"text-align: right;"+"}"+".mdl-navigation__link {"+"color: #424242;"+"margin: 0;"+"font-size: 14px;"+"font-weight: 400;"+"line-height: 24px;"+"letter-spacing: 0;"+"opacity: .87;"+"}";ensShowMore=function(){var showMoreLink=document.getElementById("ensShowMoreLink");var tagsTable=document.getElementById("ensTagsTable");if(showMoreLink.innerText==="Show More"){showMoreLink.innerText="Show Less";tagsTable.style.display="block"}else{showMoreLink.innerText=
"Show More";tagsTable.style.display="none"}};var that=this;this.environment=environment;this.cookieVals=[];this.allowAll=function(){for(var i=0;i<gatewayData.cookieTypes.length;i++)utilities.setFirstPartyCookie(gatewayData.info.name,gatewayData.cookieTypes[i],1,getCookieDomain())};this.closeModal=function(){that.divElement.style.display="none"};this.denyAll=function(){for(var i=0;i<gatewayData.cookieTypes.length;i++)utilities.setFirstPartyCookie(gatewayData.info.name,gatewayData.cookieTypes[i],0,
getCookieDomain())};this.divElement=document.createElement("div");this.getInnerModalString=function(){return""};this.init=function(){that.divElement.innerHTML=that.getModalHtmlString();utilities.domReady(that.injectModal)};this.injectModal=function(){utilities.addStyleElement(styleString);document.body.insertBefore(that.divElement,document.body.lastChild);that.setHTMLBindings();that.openModalCheck()};this.modalViewed=function(){var topLevelDomain=document.location.hostname;utilities.setFirstPartyCookie(gatewayData.info.name,
"MODAL_VIEWED","1",getCookieDomain())};this.openModal=function(){that.divElement.style.display="block";var parentWidth=window.innerWidth/2;var parentHeight=window.innerHeight/2;var modalObject=parseInt(window.getComputedStyle(that.divElement));var elementWidth=parseInt(window.getComputedStyle(that.divElement).width)/2;var elementHeight=parseInt(window.getComputedStyle(that.divElement).height)/2;if(utilities.isIE8OrLower()){that.divElement.style.left="100px";that.divElement.style.top="100px"}else{that.divElement.style.left=
parentWidth-elementWidth+"px";that.divElement.style.top=parentHeight-elementHeight+"px"}};this.openModalCheck=function(){var ensModalHasBeenViewed=utilities.getCookie("MODAL_VIEWED");if(!ensModalHasBeenViewed)that.openModal()};this.getModalHtmlString=function(){var modalHtmlString="\x3cdiv class\x3d'ensModal'\x3e"+"\x3cdiv class\x3d'ensTitle'\x3e"+that.environment.translation["consentTitle"]+"\x3c/div\x3e"+"\x3cdiv class\x3d'consentDescription'\x3e"+that.environment.translation["consentDescription"]+
"\x3c/div\x3e"+"\x3cdiv\x3e\x3c/div\x3e"+"\x3cbr\x3e"+"\x3cdiv style\x3d'float:right;'\x3e\x3ca class\x3d'mdl-navigation__link closed' onclick\x3d'ensShowMore()' id\x3d'ensShowMoreLink' href\x3d'#' style\x3d'text-decoration: underline;'\x3eShow More\x3c/a\x3e\x3c/div\x3e"+"\x3cdiv\x3e\x3cbr\x3e\x3cbr\x3e\x3c/div\x3e"+"\x3cdiv style\x3d'max-height:300px; overflow-y: scroll; max-width: 100%'\x3e"+"\x3ctable id\x3d'ensTagsTable' class\x3d'mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp' style\x3d'display:none;'\x3e"+
"\x3ctr\x3e\x3cth class\x3d'mdl-data-table__cell--non-numeric'\x3eTag\x3c/th\x3e\x3cth class\x3d'mdl-data-table__cell--non-numeric'\x3ePurposes\x3c/th\x3e\x3c/tr\x3e";for(var cat in tagPurposes)if(cat!=="default")for(var i=0;i<tagPurposes[cat].length;i++)modalHtmlString+="\x3ctr\x3e\x3ctd  class\x3d'mdl-data-table__cell--non-numeric'\x3e"+tagPurposes[cat][i].displayName+"\x3c/td\x3e\x3ctd  class\x3d'mdl-data-table__cell--non-numeric'\x3e"+tagPurposes[cat][i].purpose.join(", ")+"\x3c/td\x3e\x3c/tr\x3e";
modalHtmlString+="\x3c/table\x3e"+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3cdiv style\x3d'padding:0 20px;'\x3e"+that.getInnerModalString()+"\x3c/div\x3e"+"\x3cdiv style\x3d'clear:both; font-size:8px; text-align: center; padding-top:20px;'\x3e\x3ca href\x3d'https://www.ensighten.com/products/enterprise-tag-management/privacy/' target\x3d'_blank' style\x3d'text-decoration: none; color: #424242;'\x3eGDPR Compliance - Powered By Ensighten\x3c/a\x3e\x3c/div\x3e";
return modalHtmlString};this.setHTMLBindings=function(){};this.update=function(environment){that.environment=environment;that.divElement.innerHTML=that.getModalHtmlString()};this.divElement.id="ensModalWrapper";return this};var ConsentWidget=function(environment){var that=this;this.widgetString="";this.styleString=""+".consentWidget {"+"border-radius: 2px;"+"font-size:10px;"+"position: fixed;"+"bottom: 0px;"+"right: 5%;"+"cursor: default;"+"background-color: #323232;"+"z-index: 3;"+"display: block;"+
" font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;"+"}"+".consentWidget__text {"+"padding: 14px 12px;"+"vertical-align: middle;"+"color: #fff;"+"float: left;"+"}";this.divElement=document.createElement("div");this.divElement.id="ensConsentWidget";this.divElement.className="consentWidget";this.init=function(){that.setWidgetString(environment);that.divElement.innerHTML=that.getWidgetString();utilities.domReady(that.injectWidget)};this.update=function(environment){that.setWidgetString(environment);
that.divElement.innerHTML=that.getWidgetString()};this.setWidgetString=function(environment){that.widgetString="\x3cdiv class\x3d'consentWidget__text' id\x3d'consentWidget__text'\x3e"+environment.translation["consentWidgetCopy"]+"\x3c/div\x3e"};this.getWidgetString=function(){return that.widgetString};this.injectWidget=function(){setTimeout(function(){utilities.addStyleElement(that.styleString);document.body.insertBefore(that.divElement,document.body.lastChild);that.setHTMLBindings()},100)};this.setHTMLBindings=
function(){document.getElementById("ensConsentWidget").addEventListener("click",updateConsent);function updateConsent(){if(Bootstrapper.gateway.openModal)Bootstrapper.gateway.openModal()}};this.init();return this};var NoTogglesConsentModal=function(gatewayData,environment,tagPurposes,getCookieDomain,updateLists){var modal=new ConsentModal(gatewayData,environment,tagPurposes,getCookieDomain);modal.getInnerModalString=function(){return"\x3cdiv class\x3d'ensButtons'\x3e"+"\x3cdiv  id\x3d'ensDeny'  class\x3d'button raised grey'\x3e"+
"\x3cdiv class\x3d'ensCenter'\x3e"+environment.translation.deny+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3cdiv id\x3d'ensAllow' class\x3d'button raised blue'\x3e"+"\x3cdiv class\x3d'ensCenter' fit\x3e"+environment.translation.allow+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"};modal.setHTMLBindings=function(){var allowButton=document.getElementById("ensAllow");var denyButton=document.getElementById("ensDeny");
if(utilities.isIE8OrLower()){allowButton.attachEvent("onclick",function(){modal.allowAll();modal.modalViewed();updateLists()});denyButton.attachEvent("onclick",function(){modal.denyAll();modal.modalViewed();updateLists()})}else{allowButton.addEventListener("click",function(){modal.allowAll();modal.closeModal();modal.modalViewed();updateLists()});denyButton.addEventListener("click",function(){modal.denyAll();modal.closeModal();modal.modalViewed();updateLists()})}};modal.init();return modal};var CookieModal=
function(cookieTypes,defaultEnvOptVals,clientName,translation,showTrustedDomains,getCookieDomain,updateLists){var e=document.createElement("div");e.id="ensModalWrapper";var cookieVals=[];var modalHtmlString="";var getCurrentCookieVal=function(key){var checkBox=document.getElementById(key+"Slide");var retVal=0;if(checkBox.checked)retVal=1;return retVal};var init=function(){setModalHtmlString(defaultEnvOptVals,translation);e.innerHTML=getModalHtmlString();var injectModal=function(){setTimeout(function(){utilities.addStyleElement(styleString);
document.body.insertBefore(e,document.body.lastChild);var saveButton=document.getElementById("ensSave");if(utilities.isIE8OrLower())saveButton.attachEvent("onclick",function(){saveNewCookieValues();updateLists()});else saveButton.addEventListener("click",function(){saveNewCookieValues();updateLists()})},100)};utilities.domReady(injectModal)};var saveNewCookieValues=function(){for(var i=0;i<cookieTypes.length;i++)utilities.setFirstPartyCookie(clientName,cookieTypes[i],getCurrentCookieVal(cookieTypes[i]),
getCookieDomain());closeModal()};var cookieTypesCount=cookieTypes.length;var openModal=function(){e.style.display="block";var parentWidth=window.innerWidth/2;var parentHeight=window.innerHeight/2;var modalObject=parseInt(window.getComputedStyle(e));var elementWidth=parseInt(window.getComputedStyle(e).width)/2;var elementHeight=parseInt(window.getComputedStyle(e).height)/2;if(utilities.isIE8OrLower()){e.style.left="100px";e.style.top="100px"}else{e.style.left=parentWidth-elementWidth+"px";e.style.top=
parentHeight-elementHeight+"px"}};var closeModal=function(){e.style.display="none"};var shouldOptBeChecked=function(defaultVal,cookieKey){var shouldBeChecked="";var localCookieVal=utilities.getCookie(cookieKey);if(defaultVal==1||localCookieVal=="1")shouldBeChecked=" checked ";if(!localCookieVal&&defaultVal!=1||localCookieVal=="0"&&defaultVal==1)shouldBeChecked="";return shouldBeChecked};var styleString=""+".ensCenter{"+"text-align: center;"+"}"+"#ensModalWrapper{"+"border: 1px solid #333;"+"position: fixed;"+
"max-width: 80%;"+"border: 1px solid #000;"+"display: none;"+"box-shadow: 5px 5px 5px grey;"+"background-color:#fff;"+"padding: 20px 0;"+"z-index: 9999;"+"}"+".ensModal {"+"font-family: Roboto, 'Helvetica Neue', Helvetica, Arial;"+"}"+".ensModal input[type\x3d'checkbox'] {"+"display: none;"+"}"+".ensModal input[type\x3d'checkbox']:checked ~ .toggle {"+"background: #fff;"+"left: 36px;"+"transition: .5s;"+"}"+".ensModal input[type\x3d'checkbox']:checked ~ .switch {"+"background: #43A047;"+"transition: .5s;"+
"}"+".ensModal .switch {"+"display: block;"+"width: 50px;"+"height: 15px;"+"background: #939393;"+"border-radius: 10px;"+"position: absolute;"+"top: 0;"+"transition: .5s;"+"}"+".ensModal .toggle {"+"height: 17px;"+"width: 17px;"+"border-radius: 50%;"+"background: white;"+"position: absolute;"+"top: -2px;"+"left: -2px;"+"box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);"+"transition: .5s;"+"}"+".ensModal .card {"+"display: inline-block;"+"margin: 9px;"+"margin: 5px;"+"width: 50px;"+"height: 20px;"+"text-align: center;"+
"position: relative;"+"float:right;"+"}"+".ensModal{"+"font-size: 18px;"+"color: #333;"+"padding: 20px;"+"}"+".ensToggleRow{"+"margin-bottom: 10px;"+"}"+".ensToggleLabel{"+"margin-right: 5px;"+"}"+".ensButtons{"+"clear: both;"+"margin-top: 15px;"+"float: right;"+"}"+".ensButtons .button{"+"display: inline-block;"+"position: relative;"+"width: 120px;"+"height: 32px;"+"line-height: 32px;"+"border-radius: 2px;"+"font-size: 0.9em;"+"background-color: #fff;"+"color: #646464;"+"margin-left: 20px;"+"}"+
".ensButtons .button.grey {"+"background-color: #eee;"+"}"+".ensButtons .button.blue {"+"background-color: #4285f4;"+"color: #fff;"+"}"+".ensButtons .button.raised {"+"transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);"+"transition-delay: 0.2s;"+"box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);"+"}"+".ensButtons .button.raised:active {"+"box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);"+"transition-delay: 0s;"+"}"+".ensModal .ensTitle {"+"margin:5px;"+"width:95%;"+"color: #74736F;"+"position: absolute;"+
"top:-5px;"+"left:-5px;"+"padding-left:5%;"+"padding-top:13px;"+"padding-bottom: 3px;"+"text-align: center;"+"}"+".ensModal .consentDescription {"+"color:#333;"+"font-size: 14px;"+"}"+".ensModal hr {"+"color: #C5C5C5"+"}"+".ensModal .description {"+"max-width:600px;"+"font-size: 12px;"+"marin-top:15px;"+"clear: both;"+"}";var getModalHtmlString=function(){return modalHtmlString};var setModalHtmlString=function(optVals,translation){modalHtmlString=""+"\x3cdiv class\x3d'ensModal'\x3e"+"\x3cdiv class\x3d'ensTitle'\x3e"+
translation["consentTitle"]+"\x3c/div\x3e"+"\x3cdiv class\x3d'consentDescription'\x3e"+translation["consentDescription"]+"\x3c/div\x3e"+"\x3chr\x3e";for(var propertyName in defaultEnvOptVals)cookieVals.push(defaultEnvOptVals[propertyName]);for(var prop in translation.cookies)if(showTrustedDomains===true&&prop==="default")if(utilities.isIE8OrLower())modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensToggleRow' style\x3d'opacity: .5;'\x3e"+"\x3clabel class\x3d'ensToggleLabel'\x3e"+translation.cookies[prop]["title"]+
"\x3cdiv class\x3d'card'\x3e"+"\x3cinput style\x3d'display:block;' class\x3d'ensCheckbox' type\x3d'checkbox' name\x3d'check'  disabled\x3d'disabled'  checked\x3d'checked'/\x3e"+"\x3c/div\x3e"+"\x3c/label\x3e"+"\x3cdiv class\x3d'description'\x3e"+translation.cookies[prop]["description"]+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3chr\x3e";else modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensToggleRow' style\x3d'opacity: .5;'\x3e"+"\x3clabel class\x3d'ensToggleLabel'\x3e"+translation.cookies[prop]["title"]+
"\x3cdiv class\x3d'card'\x3e"+"\x3cinput class\x3d'ensCheckbox' type\x3d'checkbox' name\x3d'check'  disabled\x3d'disabled'  checked\x3d'checked'/\x3e"+"\x3cspan class\x3d'switch'\x3e\x3c/span\x3e\x3cspan class\x3d'toggle'\x3e\x3c/span\x3e"+"\x3c/div\x3e"+"\x3c/label\x3e"+"\x3cdiv class\x3d'description'\x3e"+translation.cookies[prop]["description"]+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3chr\x3e";else if(utilities.isIE8OrLower())modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensToggleRow'\x3e"+"\x3clabel for\x3d'"+
prop+"Slide' class\x3d'ensToggleLabel'\x3e"+translation.cookies[prop]["title"]+"\x3c/label\x3e"+"\x3cdiv class\x3d'card'\x3e"+"\x3cinput  style\x3d'display:block;' "+"type\x3d'checkbox' id\x3d'"+prop+"Slide' "+"name\x3d'"+prop+"Slide' "+shouldOptBeChecked(optVals[prop],prop)+"/\x3e"+"\x3c/div\x3e"+"\x3cdiv class\x3d'description'\x3e"+translation.cookies[prop]["description"]+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3chr\x3e";else modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensToggleRow'\x3e"+"\x3clabel for\x3d'"+
prop+"Slide' class\x3d'ensToggleLabel'\x3e"+translation.cookies[prop]["title"]+"\x3cdiv class\x3d'card'\x3e"+"\x3cinput class\x3d'ensCheckbox' "+"type\x3d'checkbox' id\x3d'"+prop+"Slide' "+"name\x3d'"+prop+"Slide' "+shouldOptBeChecked(optVals[prop],prop)+"/\x3e"+"\x3cspan class\x3d'switch'\x3e\x3c/span\x3e\x3cspan class\x3d'toggle'\x3e\x3c/span\x3e"+"\x3c/div\x3e"+"\x3c/label\x3e"+"\x3cdiv class\x3d'description'\x3e"+translation.cookies[prop]["description"]+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3chr\x3e";
modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensButtons'\x3e"+"\x3cdiv onclick\x3d'gateway.cookieModal.closeModal();' class\x3d'button raised grey'\x3e"+"\x3cdiv class\x3d'ensCenter'\x3e"+translation.cancel+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3cdiv id\x3d'ensSave' class\x3d'button raised blue'\x3e"+"\x3cdiv class\x3d'ensCenter' fit\x3e"+translation.save+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"};
var update=function(env){setModalHtmlString(env.optVals,env.translation);var modalString=getModalHtmlString();e.innerHTML=modalString;var saveButton=document.getElementById("ensSave");if(utilities.isIE8OrLower())saveButton.attachEvent("onclick",function(){saveNewCookieValues();updateLists()});else saveButton.addEventListener("click",function(){saveNewCookieValues();updateLists()})};init();return{closeModal:closeModal,openModal:openModal,update:update}};var ConsentUIManager=function(gatewayData,environment,
businessRulesManager,listManager,getCookieDomain){var consentModal=null;var init=function(){if(businessRulesManager.shouldGetPrivacyModal){var translatedPurposeList=listManager.getTranslatedList();consentModal=new NoTogglesConsentModal(gatewayData,environment,translatedPurposeList,getCookieDomain,listManager.updateListValues)}else if(businessRulesManager.shouldGetEnterpriseModal)consentModal=new CookieModal(gatewayData.cookieTypes,environment.optVals,gatewayData.info.name,environment.translation,
gatewayData.featureToggles.showTrustedDomains,getCookieDomain,listManager.updateListValues);else consentModal=new CookieModal(gatewayData.cookieTypes,environment.optVals,gatewayData.info.name,environment.translation,gatewayData.featureToggles.showTrustedDomains,getCookieDomain,listManager.updateListValues)},getConsentModal=function(){return consentModal};init();return{getConsentModal:getConsentModal}};var Gateway=function(gatewayData){var banner,dataGovernanceManager,businessRulesManager,consentWidget,
consentUIManager,environment,environmentManager,cookieDomain,cookieTypes=null,defaultCategory="default",gatewayHasEnvironment,listManager,log=gatewayData.privacyLog=[],modal={},options,pathFilterManager=null,prefix=gatewayData.info.name.toUpperCase()+"_ENSIGHTEN_PRIVACY_",showTrustedDomains=gatewayData.featureToggles.showTrustedDomains||false,reporter;gatewayData.dataMonitoring=gatewayData.dataMonitoring||{};gatewayData.dataMonitoring.blockURLParamsRegex=gatewayData.dataMonitoring.blockURLParamsRegex||
[];gatewayData.dataMonitoring.mode=gatewayData.dataMonitoring.mode||"block";gatewayData.featureToggles.enableDataMonitoring=gatewayData.featureToggles.enableDataMonitoring||false;gatewayData.dataMonitoring.domainsAllowed=gatewayData.dataMonitoring.domainsAllowed||[];modal.openModal=function(){if(gatewayHasEnvironment===false)throw new Error("Ensighten API Error: No gateway environment found, the modal cannot work without it.");else throw 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.");
};var history={before:{},complete:{}};var closeBanner=function(){try{banner.closeEnsBanner()}catch(err){throw new Error("Ensighten API error:  Your banner is not initialized in your client config "+err);}};options={clientName:gatewayData.info.name,enableFiltering:gatewayData.featureToggles.enableFiltering};function resetEnvironment(){utilities.deleteCookie(gatewayData.info.name,"LOCALE");environmentManager.setEnvironment();setEnvironment(environmentManager.getActiveEnvironment())}function allowRequest(req,
testLocation){var locationProtocol=testLocation||window.location.protocol;var url=req.destination,shouldAllowRequest=true,hostName=parseURLHost(url),pathName=parseURLPath(url),protocol=parseURLProtocol(url);var SSLCheckPasses=true;if(gatewayData.featureToggles.requireSSL===true){SSLCheckPasses=false;if(locationProtocol==="https:"&&protocol==="https:"||locationProtocol==="http:")SSLCheckPasses=true;if(!SSLCheckPasses)req.addReason("SSL")}var targetListCheckPasses=true;if(gatewayData.featureToggles.enableFiltering&&
gatewayHasEnvironment===true){targetListCheckPasses=false;targetListCheckPasses=listManager.allowRequest(hostName,pathName,targetListCheckPasses);if(!targetListCheckPasses)req.addReason("List")}var dataMonitoringCheckPasses=dataGovernanceManager.allowRequest(req,hostName);if(targetListCheckPasses===false||SSLCheckPasses===false||dataMonitoringCheckPasses===false)shouldAllowRequest=false;return shouldAllowRequest}function updateEnvironment(env){setEnvironment(env);if(gatewayData.featureToggles.enableConsentModal)modal.update(env);
if(gatewayData.featureToggles.enablePrivacyNotice)banner.update(env);if(gatewayData.featureToggles.consentWidget&&gatewayData.featureToggles.enableConsentModal)consentWidget.update(env);listManager.updateEnvironment(env)}function getLog(){if(window.JSON){for(var id in history.complete)log.push({resource:history.complete[id].request});if(console&&console.dir)console.dir(log);alert(JSON.stringify(log))}}function historyGarbageCollector(){for(var id in history.before){if(!history.before.hasOwnProperty(id))continue;
var timeStamp=+new Date;if(history.before[id].request!==undefined&&timeStamp-history.before[id].request.start>5E3){resourceComplete(history.before.nodeRef,id,"timeout");delete history.before[id]}}}function onBlock(request,node){var status="blocked";if(dataGovernanceManager.shouldMaskData(request))status="masked";if(dataGovernanceManager.shouldRedactData(request))status="redact";request.end=+new Date;request.status=status;history.complete[request.id]=new HistoryEntry(request,node);resourceComplete(node,
request.id,status);delete history.before[request.id]}function modalDomCleanup(){if(gatewayData.featureToggles.enableConsentModal){var domElement=document.getElementById("ensModalWrapper");domElement.parentElement.removeChild(domElement)}}function setOpenModal(clientDefinedOverrideFunction){modal.openModal=clientDefinedOverrideFunction;modalDomCleanup()}function openBanner(){try{banner.openEnsBanner()}catch(err){if(gatewayHasEnvironment===false)throw new Error("Ensighten API Error: No gateway environment found, the banner cannot work without it."+
err);else throw new Error("Ensighten API error:  Your banner is not initialzed in your client config "+err);}}function openModal(){try{modal.openModal()}catch(err){if(gatewayHasEnvironment===false)throw new Error("Ensighten API Error: No gateway environment found, the modal cannot work without it."+err);else throw new Error("Ensighten API error:  Your modal is not initialzed in your client config "+err);}}function onBefore(req,node){if(!node.__reference)history.before[req.id]=new HistoryEntry(req,
node);return allowRequest(req)}function createAnchorElement(url){if(url.indexOf("javascript:")!==-1)url=window.location;var a=Function.prototype.apply.call(gatewayData.ensCreateElement,document,["a"]);a.href=url;return a}function parseURLPath(url){var a=createAnchorElement(url);return a.pathname}function parseURLHost(url){var a=createAnchorElement(url);var hostname=a.hostname;if(hostname===""||hostname===undefined||hostname===null)hostname=location.hostname;return hostname}function parseURLProtocol(url){var a=
createAnchorElement(url);return a.protocol}function resourceComplete(node,id,status){id=id||node.__gateway;var before=history.before[id];if(!before)return false;var request=before.request;request.end=+new Date;request.status=status;history.complete[id]=new HistoryEntry(request,node);ensLogger.consoleLog("resourceComplete: ",status,": ",request);reporter.addResource(request);delete history.before[id]}function setEnvironment(env){environment=env}function getVersion(){return ensGatewayVersion.version}
var consentCookies={getCookie:function(cookieType){return utilities.getCookie(cookieType)},setCookie:function(cookieType,value){utilities.setFirstPartyCookie(gatewayData.info.name,cookieType,value,consentCookies.getCookieDomain());if(gatewayData.featureToggles.enableConsentModal)modal.update(environment)},getCookieTypes:function(){return cookieTypes},calculateCookieDomain:function(domain){var host=domain||document.location.hostname;var re=new RegExp(".ac.uk|.co.uk|.gov.uk|.ltd.uk|.me.uk|.mod.uk|.net.uk|.nhs.uk|.org.uk|.plc.uk|.sch.uk");
var isIP=/^(([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;var domainIsIpAddress=isIP.test(host);if(host!=="localhost"&&!domainIsIpAddress){var hostHasTwoPartSuffix=re.test(host);host=host.split(".");var finalHostString;if(hostHasTwoPartSuffix)finalHostString=host.slice(host.length-3,host.length);else finalHostString=host.slice(host.length-2,host.length);finalHostString=finalHostString.join(".");return finalHostString}else return host},setCookieDomain:function(newCookieDomain){cookieDomain=
newCookieDomain},getCookieDomain:function(){return cookieDomain}};var init=function(){cookieDomain=consentCookies.calculateCookieDomain();businessRulesManager=new BusinessRulesManager(gatewayData);environmentManager=new EnvironmentManager(document,gatewayData.environmentConfigs,gatewayData.defaultEnv,gatewayData.info.name,consentCookies.getCookieDomain);setEnvironment(environmentManager.getActiveEnvironment());environmentManager.registerEnvironmentChangeCallback(updateEnvironment);listManager=new ListManager(environment,
gatewayData,defaultCategory,prefix);environmentManager.registerEnvironmentChangeCallback(listManager.updateListValues);dataGovernanceManager=new DataGovernanceManager(gatewayData.featureToggles.enableDataMonitoring,gatewayData.dataMonitoring);if(environment){gatewayHasEnvironment=true;cookieTypes=gatewayData.cookieTypes||function(){var result=[];for(var key in whitelist)if(key!==defaultCategory)result.push(key);return result}();if(gatewayData.featureToggles.enableConsentModal){consentUIManager=new ConsentUIManager(gatewayData,
environment,businessRulesManager,listManager,consentCookies.getCookieDomain);modal=consentUIManager.getConsentModal()}if(gatewayData.featureToggles.enablePrivacyNotice)banner=new Banner(gatewayData.info.name,environment.translation,modal,consentCookies.getCookieDomain);if(gatewayData.featureToggles.consentWidget&&gatewayData.featureToggles.enableConsentModal)consentWidget=new ConsentWidget(environment)}else gatewayHasEnvironment=false;var options=null;reporter=new Reporter(window.Image,gatewayData.info.clientId,
gatewayData.info.publishPath,listManager.getUsesWhitelist(),getVersion(),gatewayData.featureToggles.enableReporting,options);reporter.setCookies(getPrivacyCookies());log.push({location:window.location.href||null});log.push({cookie:document.cookie||null});if(!options)options={enableFiltering:false,enableObserving:true};new MutationObserverFactory;elementObserver();writeObserver();writeLnObserver();setInterval(historyGarbageCollector,250);gatewayConfig.unbound.script=document.all&&!document.addEventListener}();
function getPrivacyCookies(){var cookies={};function cookieHelper(key){var cookieVal=consentCookies.getCookie(key);if(cookieVal!==undefined)cookies[key]=cookieVal}var types=consentCookies.getCookieTypes();for(var i=0;i<types.length;i++)cookieHelper(types[i]);cookieHelper("MODAL_VIEWED");cookieHelper("BANNER_VIEWED");cookieHelper("LOCALE");return cookies}testElements={allowRequest:allowRequest,parseURLPath:parseURLPath,parseURLHost:parseURLHost};return{cookieModal:modal,consentCookies:consentCookies,
closeBanner:closeBanner,dataGovernanceManager:dataGovernanceManager,environment:environment,environmentManager:environmentManager,getLog:getLog,getVersion:getVersion,history:history,historyGarbageCollector:historyGarbageCollector,modal:modal,onBefore:onBefore,onBlock:onBlock,openBanner:openBanner,openModal:openModal,options:options,reporter:reporter,resourceComplete:resourceComplete,resetEnvironment:resetEnvironment,setOpenModal:setOpenModal,testElements:testElements}};var HistoryEntry=function(){function HistoryEntry(request,
node){this.request=request;this.nodeRef=node}return HistoryEntry}();var Request=function(){function Request(destination){this.destination=destination||"";this.type=null;this.start=+new Date;this.end=-1;this.source=null;this.status=null;this.reasons=[]}Request.prototype.addReason=function(reason){this.reasons.push(reason)};Request.prototype.hasReason=function(reason){if(this.reasons.length>0)return(new RegExp(this.reasons.join("|"))).test(reason);return false};Request.prototype.numReasons=function(){return this.reasons.length};
return Request}();ensLogger=function(){var consoleLoggingEnabled=false,checkForConsoleLoggingParam=function(){var hash,queryStringObject={};var hashes=window.location.href.slice(window.location.href.indexOf("?")+1).split("\x26");for(var i=0;i<hashes.length;i++){hash=hashes[i].split("\x3d");queryStringObject[hash[0]]=hash[1]}if(queryStringObject["ensLogger"]&&queryStringObject["ensLogger"]==="true")enableConsoleLogging()},disableConsoleLogging=function(){setConsoleLoggingState(false)},enableConsoleLogging=
function(){setConsoleLoggingState(true)},getConsoleLoggingState=function(){return consoleLoggingEnabled},init=function(){checkForConsoleLoggingParam()},consoleLog=function(){if(consoleLoggingEnabled&&window.console)console.log(arguments)},setConsoleLoggingState=function(state){consoleLoggingEnabled=state};init();return{disableConsoleLogging:disableConsoleLogging,enableConsoleLogging:enableConsoleLogging,getConsoleLoggingState:getConsoleLoggingState,consoleLog:consoleLog}}();var ensGatewayVersion=
ensGatewayVersion||{};ensGatewayVersion["version"]="2.1.129";if(document.elementFromPoint){ensBrowserSupported=true;if(typeof Bootstrapper==="undefined")Bootstrapper={};gateway=new Gateway(ensClientConfig);Bootstrapper.gateway={closeBanner:gateway.closeBanner,environment:gateway.environment,environmentExists:gateway.environmentManager.environmentExists,getActiveEnvironment:gateway.environmentManager.getActiveEnvironment,getActiveLocale:gateway.environmentManager.getActiveLocale,getAvailableLocales:gateway.environmentManager.getAvailableLocales,
getCookie:gateway.consentCookies.getCookie,getCookieTypes:gateway.consentCookies.getCookieTypes,getVersion:gateway.getVersion,openBanner:gateway.openBanner,openModal:gateway.openModal,registerEnvironmentChangeCallback:gateway.environmentManager.registerEnvironmentChangeCallback,resetEnvironment:gateway.resetEnvironment,setCookie:gateway.consentCookies.setCookie,setCookieDomain:gateway.consentCookies.setCookieDomain,setEnvironment:gateway.environmentManager.setEnvironment,setOpenModal:gateway.setOpenModal,
updatePreferences:gateway.setWhitelistRegex}}else ensBrowserSupported=false;if(!ensBrowserSupported&&ensClientConfig.browserNotSupportedURL&&ensClientConfig.browserNotSupportedURL!=="")window.location=ensClientConfig.browserNotSupportedURL;var privacyEnd}},2280363,[2969617],513942,[513943]);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("collection/collection.aspx")>-1||document.URL.indexOf("tdinsurance.com")>-1);else if(document.URL.indexOf("tdcanadatrust.com/products-services/banking/apply-")>-1||document.URL.indexOf("td.com")>-1||document.URL.indexOf("tdcanadatrust.com")>-1||document.URL.indexOf("allianz-assistance.ca")>-1||document.URL.indexOf("tdaeroplan.com")>-1||
document.URL.indexOf("staging.tdcanadatrust.com")>-1){var targetParamID;if(document.location.pathname=="/products-services/banking/mortgages/first-time-home-buyer/first-time-home-buyers.jsp")targetParamID="FTHB";if(document.location.pathname=="/products-services/borrowing/loans-lines-of-credit/personal-unsecured-loan.jsp")targetParamID="PULOANS";if(document.location.pathname=="/products-services/borrowing/loans-lines-of-credit/lines-of-credit.jsp")targetParamID="ULOC";if(document.location.pathname==
"/products-services/investing/retirement-income-options/index.jsp")targetParamID="RIF";if(document.location.pathname=="/products-services/borrowing/loans-lines-of-credit/home-equity-line-of-credit.jsp")targetParamID="HELOC";if(document.location.pathname=="/products-services/borrowing/loans-lines-of-credit/rsp-loan.jsp")targetParamID="RSP";if(document.location.pathname=="/products-services/borrowing/loans-lines-of-credit/autoloan.jsp")targetParamID="AL";if(document.location.pathname=="/products-services/banking/mortgages/refinancer/refinancer.jsp")targetParamID=
"RFI";if(document.location.pathname=="/products-services/banking/mortgages/renewer/renewer.jsp")targetParamID="MR";if(document.location.pathname=="/products-services/investing/tax-free-savings-account/tax-free.jsp")targetParamID="TFSA";if(document.location.pathname=="/products-services/banking/accounts/savings-accounts/youth.jsp")targetParamID="YA";if(document.location.pathname=="/products-services/investing/resp/resp-index.jsp")targetParamID="RESP";if(document.location.pathname=="/best-mortgage-selector/")targetParamID=
"MSELECT";if(document.location.pathname=="/products-services/banking/mortgages/numbers-resl.jsp")targetParamID="MRATES";if(document.location.pathname=="/products-services/banking/mortgages/numbers-resl_b.jsp")targetParamID="MRATES";if(document.location.pathname=="/products-services/banking/mortgages/numbers-resl_c.jsp")targetParamID="MRATES";if(document.location.pathname=="/products-services/banking/mortgages/numbers-resl_d.jsp")targetParamID="MRATES";if(document.location.pathname=="/products-services/banking/mortgages/first-time-home-buyer/articles/what-is-needed-for-approval.jsp")targetParamID=
"MPA";targetPageParams=function(){return{"entity":{"id":targetParamID}}};try{var mboxCopyright="Copyright 1996-2015. Adobe Systems Incorporated. All rights reserved.";var TNT=TNT||{};TNT.a=function(){return{nestedMboxes:[],b:{companyName:"Test\x26amp;Target",isProduction:true,adminUrl:"http://admin6.testandtarget.omniture.com/admin",clientCode:"tdbankfinancialgroup",serverHost:"tdbankfinancialgroup.tt.omtrdc.net",mboxTimeout:15E3,mboxLoadedTimeout:100,mboxFactoryDisabledTimeout:30*60,bodyPollingTimeout:16,
sessionExpirationTimeout:31*60,experienceManagerDisabledTimeout:30*60,experienceManagerTimeout:5E3,visitorApiTimeout:500,visitorApiPageDisplayTimeout:500,overrideMboxEdgeServer:false,overrideMboxEdgeServerTimeout:31*60,tntIdLifetime:7776E3,crossDomain:"enabled",trafficDuration:10368E3,trafficLevelPercentage:100,clientSessionIdSupport:false,clientTntIdSupport:false,passPageParameters:true,usePersistentCookies:true,crossDomainEnabled:true,crossDomainXOnly:false,imsOrgId:"A783776A5245B1E50A490D44@AdobeOrg",
globalMboxName:"target-global-mbox",globalMboxLocationDomId:"",globalMboxAutoCreate:true,experienceManagerPluginUrl:"//cdn.tt.omtrdc.net/cdn/target.js",siteCatalystPluginName:"tt",mboxVersion:59,mboxIsSupportedFunction:function(){return true},parametersFunction:function(){function getCookie(c,notFoundString){var dc=document.cookie;if(dc.indexOf(c)!=-1){var cs=dc.split(c)[1];return(cs[0]=="\x3d"?cs.substr(1):cs).split(";")[0]}return notFoundString||""}var cookieMboxParams=["dcxExists\x3d"+(getCookie("DCX",
"not found!")!="not found!")];cookieMboxParams.push("tdb_vistype\x3d"+(getCookie("DCX-OL")=="1"?"customer":"prospect"));cookieMboxParams.push("tdCAN_vistype\x3d"+(getCookie("VARLINK")?"customer":"prospect"));cookieMboxParams.push("tdct_vistype\x3d"+(getCookie("DCX-EW")?"customer":"prospect"));cookieMboxParams.push("tdw_vistype\x3d"+(getCookie(" DCX-WB")?"customer":"prospect"));cookieMboxParams.push("aam_oas\x3d"+getCookie("aam_oas",""));String.prototype.encodeCookieValue=function(){if(!this)return"";
var e="",t=this.replace(/profile\./g,""),l=this.length;for(i=0;i<l;i++)e+=("0"+this.charCodeAt(i)).slice(-3);return e};String.prototype.decodeCookieValue=function(){if(!this)return"";var d="",l=this.length;for(i=0;i<l;i=i+3)d+=String.fromCharCode(this.substr(i,3));return d};window.MboxSmartList=function(c,d,e){this.f={};this.g="MboxSmartList";this.h=function(){var count=0;for(var prop in this.f)count++;return count};this.i=function(j){return this.f[j]};this.k=function(j,value){if(value=="remove!")delete this.f[j];
else{var adjName=j.replace(/\^\|\^|&|=/g,"");var adjValue=value.replace(/\^\|\^|&|=/g,"");this.f[adjName]=adjValue}};this.l=function(m,d,e){for(var prop in m.f)if(!d||d&&prop.indexOf(d)==0){if(d&&e)prop=prop.replace(requiredPrevix,e);this.k(prop,m.i(prop))}return this};this.n=function(m,d,e){for(var i=0;i<m.length;i++){var pair=m[i].split("\x3d");if(pair.length==2&&(!d||d&&pair[0].indexOf(d)==0)){if(d&&e)pair[0]=pair[0].replace(d,e);this.k(pair[0],pair[1])}}return this};this.o=function(p){for(var prop in p.f)delete this.f[prop]};
this.q=function(r){var outstr="";for(var name in this.f)if(typeof this.f[name]!="function")outstr+=(outstr?r:"")+name+"\x3d"+this.f[name];return outstr};if(c)if(c.g=="MboxSmartList")this.l(c,d,e);else this.n(c,d,e)};window.MboxSmartListList=function(c,s){this.f={};this.g="MboxSmartListList";this.t="^|^";this.u="\x26";this.h=function(){var count=0;for(var prop in this.f)count++;return count};this.i=function(j){if(!this.f[j])this.f[j]=new MboxSmartList;return this.f[j]};this.v=function(j,f){if(!this.f[j])this.f[j]=
new MboxSmartList(f);return this};this.w=function(x){var y=this.t,z=this.u,A=x.split(y);for(var i=0;i<A.length;i++){var m=A[i].split(z);this.v(m[0],m.slice(1))}return this};this.B=function(){var outstr="";for(var name in this.f)if(this.i(name).h()>0)outstr+=(outstr?this.t:"")+name+this.u+this.i(name).q(this.u);return outstr};this.C=function(D){var outstr="";if(!D)D="";for(var name in this.f)if(this.f[name].h()>0)outstr+=(outstr?"\x26":"")+this.i(name).q(this.u);return outstr+(D?"\x26":"")+D};if(c)if(typeof c==
"string")this.w(c);else if(s&&c)this.v(s,c)};window.E="mboxPersSent";var F=adReadCookie(E)?new MboxSmartListList:new MboxSmartListList((adReadCookie("mboxPers")||"").decodeCookieValue());adSetCookie(E,"true",.5);var G=new MboxSmartList(unescape(location.search.substr(1)).split(";")[0].split("\x26"),"mbxp._","profile._");mboxUrlBuilder.prototype.oldURL=mboxUrlBuilder.prototype.buildUrl;mboxUrlBuilder.prototype.buildUrl=function(){var URL=this.oldURL();if(URL.indexOf("/sc/")!=-1){var usplit=URL.split("?");
var path=usplit[0];var queryParams=new MboxSmartList(usplit[1].split("\x26"));queryParams.o(F);queryParams.o(G);URL=path+"?"+queryParams.q("\x26")}return URL};var outStr=F.C(G.q("\x26"));outStr+="\x26"+cookieMboxParams.join("\x26");return outStr},cookieDomainFunction:function(){return mboxCookiePageDomain()}},I:{J:"mboxPage",K:"mboxMCGVID",L:"mboxMCGLH",M:"mboxAAMB",N:"mboxMCAVID",O:"mboxMCSDID",P:"mboxCount",Q:"mboxHost",R:"mboxFactoryId",S:"mboxPC",T:"screenHeight",U:"screenWidth",V:"browserWidth",
W:"browserHeight",X:"browserTimeOffset",Y:"colorDepth",Z:"mboxXDomain",_:"mboxURL",ab:"mboxReferrer",bb:"mboxVersion",cb:"mbox",db:"mboxId",eb:"mboxDOMLoaded",fb:"mboxTime",gb:"scPluginVersion"},hb:{ib:"mboxDisable",jb:"mboxSession",kb:"mboxEnv",lb:"mboxDebug"},mb:{ib:"disable",jb:"session",S:"PC",nb:"level",ob:"check",lb:"debug",pb:"em-disabled",qb:"mboxEdgeServer"},rb:{sb:"default",tb:"mbox",ub:"mboxImported-",vb:6E4,wb:"mboxDefault",xb:"mboxMarker-",yb:250,gb:1,zb:"mboxedge",Ab:"tt.omtrdc.net"}}}();
TNT.a.Bb={};(function(Cb){var Db={}.toString;function Eb(Fb){return Fb===void 0}function Gb(Fb){return Fb===null}function Hb(Fb){if(Eb(Fb)||Gb(Fb))return true;return Fb.length===0}function Ib(Fb){return Db.call(Fb)==="[object Function]"}function Jb(Fb){return Db.call(Fb)==="[object Array]"}function Kb(Fb){return Db.call(Fb)==="[object String]"}function Lb(Fb){return Db.call(Fb)==="[object Object]"}function Mb(Nb,Ob){var Pb=Nb.length,Qb=-1;while(++Qb<Pb)Ob(Nb[Qb])}Cb.Eb=Eb;Cb.Gb=Gb;Cb.Hb=Hb;Cb.Ib=
Ib;Cb.Jb=Jb;Cb.Kb=Kb;Cb.Lb=Lb;Cb.Mb=Mb})(TNT.a.Bb);mboxUrlBuilder=function(Rb,Sb){this.Rb=Rb;this.Sb=Sb;this.Tb=[];this.Ub=function(_){return _};this.Vb=null};mboxUrlBuilder.prototype={constructor:mboxUrlBuilder,addNewParameter:function(j,Fb){this.Tb.push({name:j,value:Fb});return this},addParameterIfAbsent:function(j,Fb){if(!Fb)return;for(var Wb=0;Wb<this.Tb.length;Wb++){var Xb=this.Tb[Wb];if(Xb.name===j)return this}this.checkInvalidCharacters(j);return this.addNewParameter(j,Fb)},addParameter:function(j,
Fb){this.checkInvalidCharacters(j);for(var Wb=0;Wb<this.Tb.length;Wb++){var Xb=this.Tb[Wb];if(Xb.name===j){Xb.value=Fb;return this}}return this.addNewParameter(j,Fb)},addParameters:function(Tb){if(!Tb)return this;for(var Wb=0;Wb<Tb.length;Wb++){var Yb=Tb[Wb];var Zb=Yb.indexOf("\x3d");if(Zb===-1||Zb===0)continue;this.addParameter(Yb.substring(0,Zb),Yb.substring(Zb+1,Yb.length))}return this},setServerType:function(g){this._b=g},setBasePath:function(Vb){this.Vb=Vb},setUrlProcessAction:function(ac){this.Ub=
ac},buildUrl:function(){var bc=TNT.a.cc(this.Rb),dc=this.Vb?this.Vb:"/m2/"+this.Sb+"/mbox/"+this._b,ec=document.location.protocol=="file:"?"http:":document.location.protocol,_=ec+"//"+bc+dc,fc=[];for(var Wb=0;Wb<this.Tb.length;Wb++){var Xb=this.Tb[Wb];fc.push(encodeURIComponent(Xb.name)+"\x3d"+encodeURIComponent(Xb.value))}_+=_.indexOf("?")!=-1?"\x26"+fc.join("\x26"):"?"+fc.join("\x26");return this.gc(this.Ub(_))},getParameters:function(){return this.Tb},setParameters:function(Tb){this.Tb=Tb},clone:function(){var hc=
new mboxUrlBuilder(this.Rb,this.Sb);hc.setServerType(this._b);hc.setBasePath(this.Vb);hc.setUrlProcessAction(this.Ub);for(var Wb=0;Wb<this.Tb.length;Wb++)hc.addParameter(this.Tb[Wb].name,this.Tb[Wb].value);return hc},gc:function(ic){return ic.replace(/"/g,"\x26quot;").replace(/>/g,"\x26gt;")},checkInvalidCharacters:function(j){var jc=new RegExp("('|\")");if(jc.exec(j))throw"Parameter '"+j+"' contains invalid characters";}};mboxStandardFetcher=function(){};mboxStandardFetcher.prototype={constructor:mboxStandardFetcher,
getType:function(){return"standard"},fetch:function(kc){kc.setServerType(this.getType());document.write("\x3c"+"scr"+'ipt src\x3d"'+kc.buildUrl()+'"\x3e\x3c'+"/scr"+"ipt\x3e")},cancel:function(){}};mboxAjaxFetcher=function(){};mboxAjaxFetcher.prototype={constructor:mboxAjaxFetcher,getType:function(){return"ajax"},fetch:function(kc){kc.setServerType(this.getType());var lc=document.getElementsByTagName("head")[0],mc=document.createElement("script");mc.src=kc.buildUrl();lc.appendChild(mc)},cancel:function(){}};
(function(Cb){function nc(){}nc.prototype={constructor:nc,getType:function(){return"ajax"},fetch:function(kc){kc.setServerType(this.getType());document.write("\x3c"+"scr"+'ipt src\x3d"'+kc.buildUrl()+'"\x3e\x3c'+"/scr"+"ipt\x3e")},cancel:function(){}};Cb.nc=nc})(TNT.a);mboxMap=function(){this.oc={};this.pc=[]};mboxMap.prototype={constructor:mboxMap,put:function(qc,Fb){if(!this.oc[qc])this.pc[this.pc.length]=qc;this.oc[qc]=Fb},get:function(qc){return this.oc[qc]},remove:function(qc){var rc=[];this.oc[qc]=
undefined;for(var i=0;i<this.pc.length;i++)if(this.pc[i]!==qc)rc.push(this.pc[i]);this.pc=rc},each:function(ac){for(var Wb=0;Wb<this.pc.length;Wb++){var qc=this.pc[Wb];var Fb=this.oc[qc];if(Fb){var sc=ac(qc,Fb);if(sc===false)break}}},isEmpty:function(){return this.pc.length===0}};mboxList=function(){this.tc=[]};mboxList.prototype={constructor:mboxList,add:function(uc){if(!uc)return;this.tc.push(uc)},get:function(cb){var sc=new mboxList;for(var Wb=0;Wb<this.tc.length;Wb++){var uc=this.tc[Wb];if(uc.getName()===
cb)sc.add(uc)}return sc},getById:function(vc){return this.tc[vc]},length:function(){return this.tc.length},each:function(ac){var Bb=TNT.a.Bb;if(!Bb.Ib(ac))throw"Action must be a function, was: "+typeof ac;for(var Wb=0;Wb<this.tc.length;Wb++)ac(this.tc[Wb])}};mboxSignaler=function(wc){this.wc=wc};mboxSignaler.prototype={constructor:mboxSignaler,signal:function(xc,cb){if(!this.wc.isEnabled())return;var yc=mboxSignaler.zc(),Ac=this.Bc(this.wc.Cc(cb));yc.appendChild(Ac);var Dc=[].slice.call(arguments,
1),uc=this.wc.create(cb,Dc,Ac),kc=uc.getUrlBuilder();kc.addParameter(TNT.a.I.J,mboxGenerateId());uc.setFetcher(new mboxAjaxFetcher);uc.load()},Bc:function(Ec){var sc=document.createElement("div");sc.id=Ec;sc.style.visibility="hidden";sc.style.display="none";return sc}};mboxSignaler.zc=function(){return document.body};mboxLocatorDefault=function(Fc){this.Fc=Fc;document.write('\x3cdiv id\x3d"'+this.Fc+'" style\x3d"visibility:hidden;display:none"\x3e\x26nbsp;\x3c/div\x3e')};mboxLocatorDefault.prototype=
{constructor:mboxLocatorDefault,locate:function(){var Gc=1,Hc=document.getElementById(this.Fc);while(Hc){if(Hc.nodeType===Gc&&Hc.className==="mboxDefault")return Hc;Hc=Hc.previousSibling}return null},force:function(){var Ic=document.getElementById(this.Fc),Jc=document.createElement("div");Jc.className="mboxDefault";if(Ic)Ic.parentNode.insertBefore(Jc,Ic);return Jc}};mboxLocatorNode=function(Hc){this.Hc=Hc};mboxLocatorNode.prototype={constructor:mboxLocatorNode,locate:function(){return typeof this.Hc===
"string"?document.getElementById(this.Hc):this.Hc},force:function(){return null}};mboxOfferContent=function(){this.Kc=function(){}};mboxOfferContent.prototype={constructor:mboxOfferContent,show:function(uc){var sc=uc.showContent(document.getElementById(uc.getImportName()));if(sc===1)this.Kc();return sc},setOnLoad:function(Kc){this.Kc=Kc}};mboxOfferAjax=function(Lc){this.Lc=Lc;this.Kc=function(){}};mboxOfferAjax.prototype={constructor:mboxOfferAjax,setOnLoad:function(Kc){this.Kc=Kc},show:function(uc){var Mc=
document.createElement("div"),sc;Mc.id=uc.getImportName();Mc.innerHTML=this.Lc;sc=uc.showContent(Mc);if(sc===1)this.Kc();return sc}};mboxOfferDefault=function(){this.Kc=function(){}};mboxOfferDefault.prototype={constructor:mboxOfferDefault,show:function(uc){var sc=uc.hide();if(sc===1)this.Kc();return sc},setOnLoad:function(Kc){this.Kc=Kc}};mboxCookieManager=function(j,Nc){this.j=j;this.Oc=TNT.a.mb.ob;this.Pc=TNT.a.b.crossDomainXOnly;this.Qc=TNT.a.mb.ib;this.Rc=TNT.a.b.usePersistentCookies;this.Sc=
new mboxMap;this.Nc=Nc===""||Nc.indexOf(".")===-1?"":"; domain\x3d"+Nc;this.loadCookies()};mboxCookieManager.prototype={constructor:mboxCookieManager,isEnabled:function(){this.setCookie(this.Oc,"true",60);this.loadCookies();return this.getCookie(this.Oc)=="true"},setCookie:function(j,Fb,Tc){if(typeof j=="undefined"||typeof Fb=="undefined"||typeof Tc=="undefined")return;var Uc=Math.ceil(Tc+(new Date).getTime()/1E3),Vc=mboxCookieManager.Wc(j,encodeURIComponent(Fb),Uc);this.Sc.put(j,Vc);this.saveCookies()},
getCookie:function(j){var Vc=this.Sc.get(j);return Vc?decodeURIComponent(Vc.value):null},deleteCookie:function(j){this.Sc.remove(j);this.saveCookies()},getCookieNames:function(Xc){var Yc=[];this.Sc.each(function(j,Vc){if(j.indexOf(Xc)===0)Yc[Yc.length]=j});return Yc},saveCookies:function(){var Zc=this,_c=[],ad=0;this.Sc.each(function(j,Vc){if(!Zc.Pc||j===Zc.Qc){_c[_c.length]=mboxCookieManager.bd(Vc);if(ad<Vc.expireOn)ad=Vc.expireOn}});var cd=new Date(ad*1E3);var fc=[];fc.push(this.j,"\x3d",_c.join("|"));
if(Zc.Rc)fc.push("; expires\x3d",cd.toGMTString());fc.push("; path\x3d/",this.Nc);document.cookie=fc.join("")},loadCookies:function(){var dd=mboxCookieManager.ed(this.j),fd=mboxCookieManager.gd(dd),hd=Math.ceil((new Date).getTime()/1E3);this.Sc=new mboxMap;for(var Wb=0;Wb<fd.length;Wb++){var Vc=mboxCookieManager.id(fd[Wb]);if(hd>Vc.expireOn)continue;this.Sc.put(Vc.name,Vc)}}};mboxCookieManager.bd=function(Vc){return Vc.name+"#"+Vc.value+"#"+Vc.expireOn};mboxCookieManager.id=function(Db){var fc=Db.split("#");
return mboxCookieManager.Wc(fc[0],fc[1],fc[2])};mboxCookieManager.Wc=function(j,Fb,Uc){return{name:j,value:Fb,expireOn:Uc}};mboxCookieManager.ed=function(j){var result=(new RegExp("(^|; )"+encodeURIComponent(j)+"\x3d([^;]*)")).exec(document.cookie);return result?result[2]:null};mboxCookieManager.gd=function(Db){if(!Db)return[];return Db.split("|")};mboxSession=function(jd,kd,ld,md,nd){var od=window.mboxForceSessionId;this.ld=ld;this.md=md;this.nd=nd;this.Ec=typeof od!=="undefined"?od:mboxGetPageParameter(kd,
true);this.Ec=this.Ec||nd.getCookie(ld)||jd;this.nd.setCookie(ld,this.Ec,md)};mboxSession.prototype={constructor:mboxSession,getId:function(){return this.Ec},forceId:function(pd){this.Ec=pd;this.nd.setCookie(this.ld,this.Ec,this.md)}};mboxPC=function(ld,md,nd){var qd=window.mboxForcePCId;this.ld=ld;this.md=md;this.nd=nd;this.Ec=typeof qd!="undefined"?qd:nd.getCookie(ld);if(this.Ec)nd.setCookie(ld,this.Ec,md)};mboxPC.prototype={constructor:mboxPC,getId:function(){return this.Ec},forceId:function(pd){if(this.Ec===
pd)return false;this.Ec=pd;this.nd.setCookie(this.ld,this.Ec,this.md);return true}};(function(Cb,Bb,mb,b,rb){var rd=new RegExp(".*\\.(\\d+)_\\d+");function cc(sd){var td=rd.exec(sd);if(td&&td.length===2)return rb.zb+td[1]+rb.Ab;return""}function ud(nd,vd){var bc=cc(vd);if(!Bb.Hb(bc))nd.setCookie(mb.qb,bc,b.overrideMboxEdgeServerTimeout)}function wd(xd,nd){this.xd=xd;this.nd=nd;ud(nd,xd.getId())}wd.prototype={constructor:wd,getId:function(){return this.xd.getId()},forceId:function(pd){if(!this.xd.forceId(pd))return false;
ud(this.nd,pd);return true}};Cb.wd=wd})(TNT.a,TNT.a.Bb,TNT.a.mb,TNT.a.b,TNT.a.rb);mboxGetPageParameter=function(j,yd){yd=yd||false;var zd;if(yd)zd=new RegExp("\\?[^#]*"+j+"\x3d([^\x26;#]*)","i");else zd=new RegExp("\\?[^#]*"+j+"\x3d([^\x26;#]*)");var sc=null;var Ad=zd.exec(document.location);if(Ad&&Ad.length>=2)sc=Ad[1];return sc};mboxCookiePageDomain=function(){var Nc=/([^:]*)(:[0-9]{0,5})?/.exec(document.location.host)[1];var Bd=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;if(!Bd.exec(Nc)){var Cd=
/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/.exec(Nc);if(Cd){Nc=Cd[0];if(Nc.indexOf("www.")===0)Nc=Nc.substr(4)}}return Nc?Nc:""};mboxShiftArray=function(Dd){var sc=[];for(var Wb=1;Wb<Dd.length;Wb++)sc[sc.length]=Dd[Wb];return sc};mboxGenerateId=function(){return(new Date).getTime()+"-"+Math.floor(Math.random()*999999)};mboxScreenHeight=function(){return screen.height};mboxScreenWidth=function(){return screen.width};mboxBrowserWidth=function(){return window.innerWidth?window.innerWidth:document.documentElement?
document.documentElement.clientWidth:document.body.clientWidth};mboxBrowserHeight=function(){return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.clientHeight:document.body.clientHeight};mboxBrowserTimeOffset=function(){return-(new Date).getTimezoneOffset()};mboxScreenColorDepth=function(){return screen.pixelDepth};TNT.a.q=function(){var Ed=[],Fd=0,Gd=[];function Hd(vc,Dc){Fd+=1;Ed[vc]=Dc;Id()}function Id(){var Pb=Gd.length,Qb=-1,Jd;if(Fd!==Ed.length||!Gd.length)return;
while(++Qb<Pb){Jd=Gd[Qb];Jd.fn.apply(Jd.ctx,Ed)}}return{Kd:function(){var vc=Ed.length;Ed[Ed.length]=null;return function(){Hd(vc,[].slice.call(arguments))}},Ld:function(cb,context){Gd.push({fn:cb,ctx:context});Id()}}}();mbox=function(j,Ec,kc,Md,Nd,wc){this.Od=null;this.Pd=0;this.Qd=Md;this.Nd=Nd;this.Rd=null;this.Sd=new mboxOfferContent;this.Jc=null;this.kc=kc;this.message="";this.Td={};this.Ud=0;this.Vd=5;this.Ec=Ec;this.j=j;this.Wd();kc.addParameter(TNT.a.I.cb,j);kc.addParameter(TNT.a.I.db,Ec);
this.Xd=function(){};this.Kc=function(){};this.Yd=null;this.Zd=document.documentMode>=10&&!wc.isDomLoaded();if(this.Zd){this._d=TNT.a.nestedMboxes;this._d.push(this.j)}};mbox.prototype.getId=function(){return this.Ec};mbox.prototype.Wd=function(){var maxLength=TNT.a.rb.yb;if(this.j.length>maxLength)throw"Mbox Name "+this.j+" exceeds max length of "+maxLength+" characters.";else if(this.j.match(/^\s+|\s+$/g))throw"Mbox Name "+this.j+" has leading/trailing whitespace(s).";};mbox.prototype.getName=function(){return this.j};
mbox.prototype.getParameters=function(){var Tb=this.kc.getParameters();var sc=[];for(var Wb=0;Wb<Tb.length;Wb++)if(Tb[Wb].name.indexOf("mbox")!==0)sc[sc.length]=Tb[Wb].name+"\x3d"+Tb[Wb].value;return sc};mbox.prototype.setOnLoad=function(ac){this.Kc=ac;return this};mbox.prototype.setMessage=function(ae){this.message=ae;return this};mbox.prototype.setOnError=function(Xd){this.Xd=Xd;return this};mbox.prototype.setFetcher=function(be){if(this.Rd)this.Rd.cancel();this.Rd=be;return this};mbox.prototype.getFetcher=
function(){return this.Rd};mbox.prototype.load=function(Tb){var kc=this.kc;if(this.Rd===null)return this;this.setEventTime("load.start");this.cancelTimeout();this.Pd=0;if(Tb&&Tb.length>0)kc=this.kc.clone().addParameters(Tb);this.Rd.fetch(kc);var Zc=this;this.ce=setTimeout(function(){Zc.Xd("browser timeout",Zc.Rd.getType())},TNT.a.b.mboxTimeout);this.setEventTime("load.end");return this};mbox.prototype.loaded=function(){this.cancelTimeout();if(!this.activate()&&this.Ud<this.Vd){var Zc=this;setTimeout(function(){Zc.loaded()},
TNT.a.b.mboxLoadedTimeout)}};mbox.prototype.activate=function(){if(this.Pd)return this.Pd;this.setEventTime("activate"+ ++this.Ud+".start");if(this.Zd&&this._d[this._d.length-1]!==this.j)return this.Pd;if(this.show()){this.cancelTimeout();this.Pd=1}this.setEventTime("activate"+this.Ud+".end");if(this.Zd)this._d.pop();return this.Pd};mbox.prototype.isActivated=function(){return this.Pd};mbox.prototype.setOffer=function(Sd){var de=Sd&&Sd.show&&Sd.setOnLoad;if(!de)throw"Invalid offer";var ee=TNT.a.b.globalMboxName===
this.j;ee=ee&&Sd instanceof mboxOfferDefault;ee=ee&&this.Rd!==null;ee=ee&&this.Rd.getType()==="ajax";if(!ee){this.Sd=Sd;return this}var fe=this.Sd.Kc;this.Sd=Sd;this.Sd.setOnLoad(fe);return this};mbox.prototype.getOffer=function(){return this.Sd};mbox.prototype.show=function(){this.setEventTime("show.start");var sc=this.Sd.show(this);this.setEventTime(sc==1?"show.end.ok":"show.end");return sc};mbox.prototype.showContent=function(Lc){if(!mbox.ge(Lc))return 0;this.Jc=mbox.he(this,this.Jc);if(this.Jc===
null)return 0;if(!mbox.ie(document.body,this.Jc))return 0;if(this.Jc===Lc){this.je(this.Jc);this.Kc();return 1}this.ke(this.Jc);this.ke(Lc);mbox.le(this,Lc);this.je(this.Jc);this.Kc();return 1};mbox.ge=function(Lc){return Lc!==undefined&&Lc!==null};mbox.ie=function(me,ne){var DOCUMENT_POSITION_CONTAINED_BY=16;var oe=me.contains!==undefined;if(oe)return me!==ne&&me.contains(ne);else return Boolean(me.compareDocumentPosition(ne)&DOCUMENT_POSITION_CONTAINED_BY)};mbox.he=function(uc,Jc){if(Jc!==undefined&&
Jc!==null&&mbox.ie(document.body,Jc))return Jc;return uc.getDefaultDiv()};mbox.le=function(uc,pe){uc.Jc.parentNode.replaceChild(pe,uc.Jc);uc.Jc=pe};mbox.prototype.hide=function(){this.setEventTime("hide.start");var sc=this.showContent(this.getDefaultDiv());this.setEventTime(sc==1?"hide.end.ok":"hide.end.fail");return sc};mbox.prototype.finalize=function(){this.setEventTime("finalize.start");this.cancelTimeout();if(!this.getDefaultDiv())if(this.Qd.force())this.setMessage("No default content, an empty one has been added");
else this.setMessage("Unable to locate mbox");if(!this.activate()){this.hide();this.setEventTime("finalize.end.hide")}this.setEventTime("finalize.end.ok")};mbox.prototype.cancelTimeout=function(){if(this.ce)clearTimeout(this.ce);if(this.Rd)this.Rd.cancel()};mbox.prototype.getDiv=function(){return this.Jc};mbox.prototype.getDefaultDiv=function(){if(this.Yd===null)this.Yd=this.Qd.locate();return this.Yd};mbox.prototype.setEventTime=function(qe){this.Td[qe]=(new Date).getTime()};mbox.prototype.getEventTimes=
function(){return this.Td};mbox.prototype.getImportName=function(){return this.Nd};mbox.prototype.getURL=function(){return this.kc.buildUrl()};mbox.prototype.getUrlBuilder=function(){return this.kc};mbox.prototype.re=function(Jc){return Jc.style.display!="none"};mbox.prototype.je=function(Jc){this.se(Jc,true)};mbox.prototype.ke=function(Jc){this.se(Jc,false)};mbox.prototype.se=function(Jc,te){Jc.style.visibility=te?"visible":"hidden";Jc.style.display=te?"block":"none"};mbox.prototype.ue=function(){this.Zd=
false};mbox.prototype.relocateDefaultDiv=function(){this.Yd=this.Qd.locate()};mboxFactory=function(bc,Sb,ve){var we=TNT.a;var b=we.b;var mb=we.mb;var hb=we.hb;var rb=we.rb;var xe=b.mboxVersion;this.ye=false;this.ve=ve;this.tc=new mboxList;mboxFactories.put(ve,this);this.ze=b.mboxIsSupportedFunction()&&typeof(window.attachEvent||document.addEventListener||window.addEventListener)!="undefined";this.Ae=this.ze&&mboxGetPageParameter(hb.ib,true)===null;var Be=ve==rb.sb;var ld=rb.tb+(Be?"":"-"+ve);this.nd=
new mboxCookieManager(ld,b.cookieDomainFunction());if(!b.crossDomainXOnly)this.Ae=this.Ae&&this.nd.isEnabled();this.Ae=this.Ae&&TNT.a.Bb.Gb(this.nd.getCookie(mb.ib))&&TNT.a.Bb.Gb(this.nd.getCookie(mb.pb));if(this.isAdmin())this.enable();this.Ce();this.De=mboxGenerateId();this.Ee=mboxScreenHeight();this.Fe=mboxScreenWidth();this.Ge=mboxBrowserWidth();this.He=mboxBrowserHeight();this.Ie=mboxScreenColorDepth();this.Je=mboxBrowserTimeOffset();this.Ke=new mboxSession(this.De,hb.jb,mb.jb,b.sessionExpirationTimeout,
this.nd);var xd=new mboxPC(mb.S,b.tntIdLifetime,this.nd);this.Le=b.overrideMboxEdgeServer?new we.wd(xd,this.nd):xd;this.kc=new mboxUrlBuilder(bc,Sb);this.Me(this.kc,Be,xe);this.Ne=(new Date).getTime();this.Oe=this.Ne;var Zc=this;this.addOnLoad(function(){Zc.Oe=(new Date).getTime()});if(this.ze){this.addOnLoad(function(){Zc.ye=true;Zc.getMboxes().each(function(uc){uc.ue();uc.setFetcher(new mboxAjaxFetcher);uc.finalize()});TNT.a.nestedMboxes=[]});if(this.Ae){this.limitTraffic(b.trafficLevelPercentage,
b.trafficDuration);this.Pe();this.Qe=new mboxSignaler(this)}else if(!b.isProduction)if(this.isAdmin())if(!this.isEnabled())alert("mbox disabled, probably due to timeout\n"+"Reset your cookies to re-enable\n(this message will only appear in administrative mode)");else alert("It looks like your browser will not allow "+b.companyName+" to set its administrative cookie. To allow setting the"+" cookie please lower the privacy settings of your browser.\n"+"(this message will only appear in administrative mode)")}};
mboxFactory.prototype.forcePCId=function(pd){if(!TNT.a.b.clientTntIdSupport)return;if(this.Le.forceId(pd))this.Ke.forceId(mboxGenerateId())};mboxFactory.prototype.forceSessionId=function(pd){if(!TNT.a.b.clientSessionIdSupport)return;this.Ke.forceId(pd)};mboxFactory.prototype.isEnabled=function(){return this.Ae};mboxFactory.prototype.getDisableReason=function(){return this.nd.getCookie(TNT.a.mb.ib)};mboxFactory.prototype.isSupported=function(){return this.ze};mboxFactory.prototype.disable=function(Tc,
Re){if(typeof Tc=="undefined")Tc=60*60;if(typeof Re=="undefined")Re="unspecified";if(!this.isAdmin()){this.Ae=false;this.nd.setCookie(TNT.a.mb.ib,Re,Tc)}};mboxFactory.prototype.enable=function(){this.Ae=true;this.nd.deleteCookie(TNT.a.mb.ib)};mboxFactory.prototype.isAdmin=function(){return document.location.href.indexOf(TNT.a.hb.kb)!=-1};mboxFactory.prototype.limitTraffic=function(Se,Tc){if(TNT.a.b.trafficLevelPercentage!=100){if(Se==100)return;var Te=true;if(parseInt(this.nd.getCookie(TNT.a.mb.nb))!=
Se)Te=Math.random()*100<=Se;this.nd.setCookie(TNT.a.mb.nb,Se,Tc);if(!Te)this.disable(60*60,"limited by traffic")}};mboxFactory.prototype.addOnLoad=function(Ue){if(this.isDomLoaded())Ue();else{var Ve=false;var We=function(){if(Ve)return;Ve=true;Ue()};this.Xe.push(We);if(this.isDomLoaded()&&!Ve)We()}};mboxFactory.prototype.getEllapsedTime=function(){return this.Oe-this.Ne};mboxFactory.prototype.getEllapsedTimeUntil=function(fb){return fb-this.Ne};mboxFactory.prototype.getMboxes=function(){return this.tc};
mboxFactory.prototype.get=function(cb,db){return this.tc.get(cb).getById(db||0)};mboxFactory.prototype.update=function(cb,Tb){var we=TNT.a,I=we.I;if(!this.isEnabled())return;var Zc=this;if(!this.isDomLoaded()){this.addOnLoad(function(){Zc.update(cb,Tb)});return}if(this.tc.get(cb).length()===0)throw"Mbox "+cb+" is not defined";this.tc.get(cb).each(function(uc){var kc=uc.getUrlBuilder();kc.addParameter(I.J,mboxGenerateId());Zc.Ye(kc,cb);Zc.Ze(kc);Zc._e(kc,cb);uc.load(Tb)})};mboxFactory.prototype.setVisitorIdParameters=
function(kc,cb){this.Ye(kc,cb)};mboxFactory.prototype.create=function(cb,Tb,af){var uc=this.bf(cb,Tb,af);if(uc)this.Ye(uc.getUrlBuilder(),cb);return uc};mboxFactory.prototype.cf=function(cb,Tb,af){return this.bf(cb,Tb,af)};mboxFactory.prototype.bf=function(cb,Tb,af){if(!this.isSupported())return null;var df=new Date;var fb=df.getTime()-df.getTimezoneOffset()*TNT.a.rb.vb;var kc=this.kc.clone();kc.addParameter(TNT.a.I.P,this.tc.length()+1);kc.addParameter(TNT.a.I.fb,fb);kc.addParameters(Tb);this.Ze(kc);
this._e(kc,cb);var db,Qd,uc;if(af)Qd=new mboxLocatorNode(af);else{if(this.ye)throw"The page has already been loaded, can't write marker";Qd=new mboxLocatorDefault(this.Cc(cb))}try{db=this.tc.get(cb).length();uc=new mbox(cb,db,kc,Qd,this.ef(cb),this);if(this.Ae)uc.setFetcher(this.ye?new mboxAjaxFetcher:new mboxStandardFetcher);var Zc=this;uc.setOnError(function(ae,g){uc.setMessage(ae);uc.activate();if(!uc.isActivated()){Zc.disable(TNT.a.b.mboxFactoryDisabledTimeout,ae);window.location.reload(false)}});
this.tc.add(uc)}catch(ff){this.disable();throw'Failed creating mbox "'+cb+'", the error was: '+ff;}return uc};mboxFactory.prototype.Ze=function(kc){var S=this.Le.getId();if(S)kc.addParameter(TNT.a.I.S,S)};mboxFactory.prototype.Ye=function(kc,cb){var we=TNT.a,gf=we.b.imsOrgId,Sb=we.b.clientCode,hf=we.I.O,O=we.jf(gf,Sb,cb);if(O)kc.addParameter(hf,O)};mboxFactory.prototype._e=function(kc,cb){var kf=!TNT.isAutoCreateGlobalMbox()&&TNT.getGlobalMboxName()===cb;if(kf)kc.addParameters(TNT.getTargetPageParameters())};
mboxFactory.prototype.getCookieManager=function(){return this.nd};mboxFactory.prototype.getPageId=function(){return this.De};mboxFactory.prototype.getPCId=function(){return this.Le};mboxFactory.prototype.getSessionId=function(){return this.Ke};mboxFactory.prototype.getSignaler=function(){return this.Qe};mboxFactory.prototype.getUrlBuilder=function(){return this.kc};mboxFactory.prototype.lf=function(cb){return this.ve+"-"+cb+"-"+this.tc.get(cb).length()};mboxFactory.prototype.Cc=function(cb){return TNT.a.rb.xb+
this.lf(cb)};mboxFactory.prototype.ef=function(cb){return TNT.a.rb.ub+this.lf(cb)};mboxFactory.prototype.Me=function(kc,Be,xe){kc.addParameter(TNT.a.I.Q,document.location.hostname);kc.addParameter(TNT.a.I.J,this.De);kc.addParameter(TNT.a.I.T,this.Ee);kc.addParameter(TNT.a.I.U,this.Fe);kc.addParameter(TNT.a.I.V,this.Ge);kc.addParameter(TNT.a.I.W,this.He);kc.addParameter(TNT.a.I.X,this.Je);kc.addParameter(TNT.a.I.Y,this.Ie);kc.addParameter(TNT.a.hb.jb,this.Ke.getId());if(!Be)kc.addParameter(TNT.a.I.R,
this.ve);this.Ze(kc);if(TNT.a.b.crossDomainEnabled)kc.addParameter(TNT.a.I.Z,TNT.a.b.crossDomain);var I=TNT.getClientMboxExtraParameters();if(I)kc.addParameters(I.split("\x26"));kc.setUrlProcessAction(function(_){if(TNT.a.b.passPageParameters){_+="\x26";_+=TNT.a.I._;_+="\x3d"+encodeURIComponent(document.location);var ab=encodeURIComponent(document.referrer);if(_.length+ab.length<2E3){_+="\x26";_+=TNT.a.I.ab;_+="\x3d"+ab}}_+="\x26";_+=TNT.a.I.bb;_+="\x3d"+xe;return _})};mboxFactory.prototype.Pe=function(){document.write("\x3cstyle\x3e."+
TNT.a.rb.wb+" { visibility:hidden; }\x3c/style\x3e")};mboxFactory.prototype.isDomLoaded=function(){return this.ye};mboxFactory.prototype.Ce=function(){if(this.Xe)return;this.Xe=[];var Zc=this;(function(){var mf=document.addEventListener?"DOMContentLoaded":"onreadystatechange";var nf=false;var of=function(){if(nf)return;nf=true;for(var i=0;i<Zc.Xe.length;++i)Zc.Xe[i]()};if(document.addEventListener){document.addEventListener(mf,function(){document.removeEventListener(mf,arguments.callee,false);of()},
false);window.addEventListener("load",function(){document.removeEventListener("load",arguments.callee,false);of()},false)}else if(document.attachEvent)if(self!==self.top)document.attachEvent(mf,function(){if(document.readyState==="complete"){document.detachEvent(mf,arguments.callee);of()}});else{var pf=function(){try{document.documentElement.doScroll("left");of()}catch(qf){setTimeout(pf,13)}};pf()}if(document.readyState==="complete")of()})()};mboxScPluginFetcher=function(Sb,rf){this.Sb=Sb;this.rf=
rf};mboxScPluginFetcher.prototype={constructor:mboxScPluginFetcher,getType:function(){return"ajax"},fetch:function(kc){kc.setServerType(this.getType());var lc=document.getElementsByTagName("head")[0],mc=document.createElement("script");mc.src=this.sf(kc);lc.appendChild(mc)},cancel:function(){},sf:function(kc){kc.setBasePath("/m2/"+this.Sb+"/sc/standard");this.tf(kc);var uf=TNT.a.I.gb;var vf=TNT.a.rb.gb;kc.addParameter(uf,vf);return kc.buildUrl()},tf:function(kc){var wf=["dynamicVariablePrefix","visitorID",
"vmk","ppu","charSet","visitorNamespace","cookieDomainPeriods","cookieLifetime","pageName","currencyCode","variableProvider","channel","server","pageType","transactionID","purchaseID","campaign","state","zip","events","products","linkName","linkType","resolution","colorDepth","javascriptVersion","javaEnabled","cookiesEnabled","browserWidth","browserHeight","connectionType","homepage","pe","pev1","pev2","pev3","visitorSampling","visitorSamplingGroup","dynamicAccountSelection","dynamicAccountList",
"dynamicAccountMatch","trackDownloadLinks","trackExternalLinks","trackInlineStats","linkLeaveQueryString","linkDownloadFileTypes","linkExternalFilters","linkInternalFilters","linkTrackVars","linkTrackEvents","linkNames","lnk","eo"];for(var Wb=0;Wb<wf.length;Wb++)this.xf(wf[Wb],kc);for(Wb=1;Wb<=75;Wb++){this.xf("prop"+Wb,kc);this.xf("eVar"+Wb,kc);this.xf("hier"+Wb,kc)}},xf:function(j,kc){var Bb=TNT.a.Bb,Fb=this.rf[j];if(Bb.Hb(Fb)||Bb.Lb(Fb))return;kc.addParameter(j,Fb)}};(function(Cb){function yf(wc,
rf){if(!rf)return null;var zf=TNT.a.b.siteCatalystPluginName,Sb=TNT.a.b.clientCode,Bb=TNT.a.Bb;rf["m_"+zf]=function(rf){var Af="_t",Cf="m_i",Df=rf[Cf](zf);Df.Ae=true;Df.Sb=Sb;Df[Af]=function(){if(!this.isEnabled())return;var uc=this.bf(),be=new mboxScPluginFetcher(this.Sb,this.s);if(uc){uc.setFetcher(be);uc.load()}};Df.isEnabled=function(){return this.Ae&&wc.isEnabled()};Df.bf=function(){var cb=this.Ef(),Jc=document.createElement("div");if(!Bb.Eb(document.body))document.body.appendChild(Jc);return wc.create(cb,
[],Jc)};Df.Ef=function(){var Ff=this.s.events&&this.s.events.indexOf("purchase")!=-1;return"SiteCatalyst: "+(Ff?"purchase":"event")}};return rf.loadModule(zf)}Cb.yf=yf})(TNT.a);(function(Cb){function Gf(Hf,ld,Tc,nd){if(Hf.targetJSLoaded)return;nd.setCookie(ld,true,Tc);window.location.reload()}function If(b,mb,nd){var Jf="_AT",Lf=50,ld=mb.pb,Tc=b.experienceManagerDisabledTimeout,Od=b.experienceManagerTimeout,_=b.experienceManagerPluginUrl,Mf=function(Nf){},Of=function(Nf){setTimeout(function(){window[Jf].applyWhenReady(Nf)},
Lf)};if(Jf in window)return;window[Jf]={};if(nd.getCookie(ld)!=="true"){document.write("\x3cscr"+'ipt src\x3d"'+_+'"\x3e\x3c/sc'+"ript\x3e");window[Jf].applyWhenReady=Of;setTimeout(function(){Gf(window[Jf],ld,Tc,nd)},Od)}else window[Jf].applyWhenReady=Mf}Cb.If=If})(TNT.a);(function(Cb,Bb,I,q){var Pf=new RegExp("\\|MCMID\\|"),Qf=false,Rf=[],Sf=[],Tf=[];function Uf(Vf){var Wf,Xf=function(qc){return"vst."+qc};if(!Bb.Ib(Vf.getCustomerIDs))return[];Wf=Vf.getCustomerIDs();if(!Bb.Lb(Wf))return[];return Cb.Yf(Wf,
[],Xf)}function Zf(Vf,_f,qc){var ag;if(!Bb.Ib(Vf[_f]))return;ag=q.Kd();Vf[_f](function(Fb){ag({key:qc,value:Fb})},true)}function bg(Vf,_f,qc){var Fb;if(!Bb.Ib(Vf[_f]))return;Fb=Vf[_f]();if(!Bb.Hb(Fb))Rf.push({key:qc,value:Fb})}function cg(Vf,dg){dg(Vf,"getMarketingCloudVisitorID",I.K);dg(Vf,"getAudienceManagerBlob",I.M);dg(Vf,"getAnalyticsVisitorID",I.N);dg(Vf,"getAudienceManagerLocationHint",I.L)}function eg(Vf){cg(Vf,Zf)}function fg(Vf){cg(Vf,bg)}function gg(Dc){Bb.Mb(Dc,function(Nb){Rf.push(Nb[0])})}
function hg(ig){return!Bb.Hb(ig.value)}function jg(ig,kc){if(!hg(ig))return;kc.addParameter(ig.key,ig.value)}function kg(kc){Bb.Mb(Rf,function(ig){jg(ig,kc)})}function lg(wc,ig){var uc=ig.mbox;if(!uc)return;switch(ig.type){case "created":uc.setFetcher(new mboxAjaxFetcher);uc.load();break;case "defined":wc.update(uc.getName(),ig.params);break}}function mg(wc,ng){q.Ld(function(){Qf=false;gg([].slice.call(arguments));kg(wc.getUrlBuilder());Bb.Mb(Sf,function(ig){kg(ig.mbox.getUrlBuilder());lg(wc,ig)});
setTimeout(og,ng)})}function pg(gf){var Vf;if(Bb.Hb(gf)||Bb.Eb(window.Visitor)||!Bb.Ib(window.Visitor.getInstance))return null;Vf=window.Visitor.getInstance(gf);if(Bb.Eb(Vf)||Bb.Gb(Vf)||!Vf.isAllowed())return null;return Vf}function qg(Vf){var rg=Vf.cookieRead(Vf.cookieName);if(Bb.Hb(rg))return true;return!Pf.test(rg)}function sg(wc,b){var gf=b.imsOrgId,tg=b.visitorApiTimeout,ng=b.visitorApiPageDisplayTimeout,kc=wc.getUrlBuilder(),Vf;if(!wc.isEnabled())return;Vf=pg(gf);if(Bb.Gb(Vf)||Bb.Eb(Vf.cookieName)||
!Bb.Ib(Vf.cookieRead))return;kc.addParameters(Uf(Vf));if(qg(Vf)){Qf=true;if(!Bb.Eb(Vf.loadTimeout))Vf.loadTimeout=tg;ug();vg();eg(Vf);mg(wc,ng)}else{Qf=false;fg(Vf);kg(kc)}}function wg(){return Qf}function xg(ig){switch(ig.type){case "created":Sf.push(ig);break;case "defined":Tf.push(ig);break}}function yg(cb){var Pb=Tf.length,Qb=-1;while(++Qb<Pb)if(Tf[Qb].mbox.getName()===cb)return true;return false}function zg(wc,cb,I){var Ag=Rf.length>0,Bg=[],Pb=Tf.length,Qb=-1,kc,ig;while(++Qb<Pb){ig=Tf[Qb];kc=
ig.mbox.getUrlBuilder();if(ig.mbox.getName()!==cb){Bg.push(ig);continue}if(!Ag){ig.params=I;Sf.push(ig);continue}kc.addParameters(I);kg(kc);lg(wc,ig)}Tf=Bg}function jf(gf,Sb,cb){var Vf=pg(gf);if(Bb.Gb(Vf)||!Bb.Ib(Vf.getSupplementalDataID))return"";return Vf.getSupplementalDataID("mbox:"+Sb+":"+cb)}function vg(){document.documentElement.style.display="none";document.documentElement.style.visibility="hidden"}function og(){document.documentElement.style.display="block";document.documentElement.style.visibility=
"visible"}function Cg(){if(window.addEventListener)window.addEventListener("error",function Dg(){og();window.removeEventListener("error",Dg)})}function Eg(){if(window.attachEvent)window.attachEvent("onerror",function Fg(){og();window.detachEvent("onerror",Fg)})}function ug(){Cg();Eg()}Cb.pg=pg;Cb.sg=sg;Cb.wg=wg;Cb.xg=xg;Cb.yg=yg;Cb.zg=zg;Cb.jf=jf})(TNT.a,TNT.a.Bb,TNT.a.I,TNT.a.q);(function(Cb,a,Bb,b,I,rb){function Gg(){return b.globalMboxName}function Hg(){return b.globalMboxLocationDomId}function Ig(){return b.globalMboxAutoCreate}
function Jg(){return b.parametersFunction()}function Kg(){var Gc=1,Lg=document.getElementsByTagName("script"),Hc=Lg[Lg.length-1];while(Hc){if(Hc.nodeType===Gc&&Hc.className===rb.wb)return Hc;Hc=Hc.previousSibling}return null}function Mg(wc,cb,I){var we=TNT.a,af,uc;if(we.wg()){af=Kg();uc=wc.create(cb,I,af);we.xg({mbox:uc,type:"created"});return uc}else uc=wc.create(cb,I);if(uc&&wc.isEnabled())uc.load();return uc}function Ng(wc,af,cb,I){var we=TNT.a,uc=wc.cf(cb,I,af);if(we.wg())we.xg({mbox:uc,type:"defined"});
return uc}function Og(wc,cb,I){var we=TNT.a;if(we.yg(cb)){we.zg(wc,cb,I);return}wc.update(cb,I)}function Pg(nd,j){return nd.getCookie(j)}function Qg(nd,j,Fb,Tc){nd.setCookie(j,Fb,Tc)}function Rg(Sg){var sc=[];var Tg=/([^&=]+)=([^&]*)/g;var Ug=decodeURIComponent;var td=Tg.exec(Sg);while(td){sc.push([Ug(td[1]),Ug(td[2])].join("\x3d"));td=Tg.exec(Sg)}return sc}function Yf(Vg,pc,Xf){var sc=[];for(var qc in Vg){if(!Vg.hasOwnProperty(qc))continue;var Fb=Vg[qc];if(Bb.Lb(Fb)){pc.push(qc);sc=sc.concat(Yf(Fb,
pc,Xf));pc.pop()}else if(pc.length>0)sc.push([Xf(pc.concat(qc).join(".")),Fb].join("\x3d"));else sc.push([Xf(qc),Fb].join("\x3d"))}return sc}function Wg(){var Xg=window.targetPageParams,Xf=function(qc){return qc};if(!Bb.Ib(Xg))return[];var sc=null;try{sc=Xg()}catch(Yg){}if(Bb.Gb(sc))return[];if(Bb.Jb(sc))return sc;if(Bb.Kb(sc)&&!Bb.Hb(sc))return Rg(sc);if(Bb.Lb(sc))return Yf(sc,[],Xf);return[]}function Zg(wc){var _g=Gg(),ah=Hg(),bh=Wg(),ch,dh,eh;if(!ah){ah="mbox-"+_g+"-"+mboxGenerateId();ch=document.createElement("div");
ch.className="mboxDefault";ch.id=ah;ch.style.visibility="hidden";ch.style.display="none";dh=setInterval(function(){if(document.body){clearInterval(dh);document.body.insertBefore(ch,document.body.firstChild)}},b.bodyPollingTimeout)}eh=wc.create(_g,bh,ah);if(TNT.a.wg()){TNT.a.xg({mbox:eh,params:[],type:"created"});return}if(eh&&wc.isEnabled()){if(!wc.isDomLoaded())eh.setFetcher(new a.nc);eh.load()}}function fh(wc,cb,Tb){if(!wc.isEnabled())return;var df=new Date,gh=df.getTimezoneOffset()*rb.vb,kc=wc.getUrlBuilder().clone();
kc.setBasePath("/m2/"+b.clientCode+"/viztarget");kc.addParameter(I.cb,cb);kc.addParameter(I.db,0);kc.addParameter(I.P,wc.getMboxes().length()+1);kc.addParameter(I.fb,df.getTime()-gh);kc.addParameter(I.J,mboxGenerateId());kc.addParameter(I.eb,wc.isDomLoaded());if(Tb&&Tb.length>0)kc.addParameters(Tb);wc.Ze(kc);wc._e(kc,cb);wc.Ye(kc,cb);return kc.buildUrl()}function hh(){return new mboxMap}function ih(jh,Sb,ve){return new mboxFactory(jh,Sb,ve)}a.Mg=Mg;a.Ng=Ng;a.Og=Og;a.fh=fh;a.Pg=Pg;a.Qg=Qg;a.Zg=Zg;
a.hh=hh;a.ih=ih;a.Yf=Yf;Cb.getGlobalMboxName=Gg;Cb.getGlobalMboxLocation=Hg;Cb.isAutoCreateGlobalMbox=Ig;Cb.getClientMboxExtraParameters=Jg;Cb.getTargetPageParameters=Wg})(TNT,TNT.a,TNT.a.Bb,TNT.a.b,TNT.a.I,TNT.a.rb);(function(Cb){function kh(nd,b,lh,mh){var nh=60*60,oh=mboxGetPageParameter(lh,true)||nd.getCookie(mh);if(!oh)return;setTimeout(function(){if(typeof window.mboxDebugLoaded==="undefined")alert("Could not load the remote debug.\nPlease check your connection to "+b.companyName+" servers")},
nh);var fc=[];fc.push(b.adminUrl,"/mbox/mbox_debug.jsp","?");fc.push("mboxServerHost","\x3d",b.serverHost,"\x26");fc.push("clientCode","\x3d",b.clientCode);document.write("\x3c"+"scr"+'ipt src\x3d"'+fc.join("")+'"\x3e\x3c'+"/scr"+"ipt\x3e")}function ph(b,qh){var Bb=Cb.Bb,rh,sh,Fb;if(Bb.Eb(b)||Bb.Gb(b)||!Bb.Lb(b))return qh;for(var qc in b){rh=b.hasOwnProperty(qc)&&qh.hasOwnProperty(qc);Fb=b[qc];sh=!Bb.Eb(Fb)&&!Bb.Gb(Fb);if(rh&&sh)qh[qc]=Fb}return qh}function th(wc,nd){TNT.createGlobalMbox=function(){Cb.Zg(wc)};
window.mboxCreate=function(cb){var I=[].slice.call(arguments,1);return Cb.Mg(wc,cb,I)};window.mboxDefine=function(af,cb){var I=[].slice.call(arguments,2);return Cb.Ng(wc,af,cb,I)};window.mboxUpdate=function(cb){var I=[].slice.call(arguments,1);Cb.Og(wc,cb,I)};window.mboxVizTargetUrl=function(cb){var I=[].slice.call(arguments,1);return Cb.fh(wc,cb,I)};window.mboxSetCookie=function(j,Fb,Tc){return Cb.Qg(nd,j,Fb,Tc)};window.mboxGetCookie=function(j){return Cb.Pg(nd,j)};if(typeof Cb.yf!=="undefined")window.mboxLoadSCPlugin=
function(rf){return Cb.yf(wc,rf)}}function uh(){if(typeof window.mboxVersion!=="undefined")return;Cb.b=ph(window.targetGlobalSettings,Cb.b);var b=Cb.b,xe=b.mboxVersion,jh=b.serverHost,Sb=b.clientCode,sb=Cb.rb.sb,lh=Cb.hb.lb,mh=Cb.mb.lb,vh=Cb.mb.qb,wc,nd;window.mboxFactories=Cb.hh();window.mboxFactoryDefault=wc=Cb.ih(jh,Sb,sb);window.mboxVersion=xe;nd=wc.getCookieManager();th(wc,nd);kh(nd,b,lh,mh);Cb.cc=function(wh){var Rb;if(!b.overrideMboxEdgeServer)return wh;Rb=nd.getCookie(vh);return Rb===null?
wh:Rb}}Cb.uh=uh})(TNT.a);TNT.a.uh();TNT.a.sg(window.mboxFactoryDefault,TNT.a.b);TNT.a.If(TNT.a.b,TNT.a.mb,window.mboxFactoryDefault.getCookieManager());var monthsPersistent=12;function adReadCookie(name){var nameEQ=name+"\x3d";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null}function adSetCookie(name,value,hours){var expires=!hours?"":function(){var date=
new Date;date.setTime(date.getTime()+hours*60*60*1E3);return"; expires\x3d"+date.toGMTString()}();document.cookie=name+"\x3d"+value+expires+"; path\x3d/; domain\x3d"+mboxCookiePageDomain()}var updateProfile=function(xh){if(typeof mboxFactoryDefault=="undefined")return false;if(xh.length>0){var oldCookie=(adReadCookie("mboxPers")||"").decodeCookieValue();var F=new MboxSmartListList(oldCookie);F.i("profile").n(xh,"profile._");F.i("mboxparams").n(xh,"_");var newCookie=F.B();adSetCookie("mboxPers",newCookie.encodeCookieValue(),
yh)}},xCr=mboxCreate,mboxCreate=function(){updateProfile(Array.prototype.slice.call(arguments,1));xCr.apply({},Array.prototype.slice.call(arguments,0))},xUp=mboxUpdate,mboxUpdate=function(){updateProfile(Array.prototype.slice.call(arguments,1));xUp.apply({},Array.prototype.slice.call(arguments,0))},yh=monthsPersistent*30*24;if(location.search.length>0)updateProfile(unescape(location.search.substr(1)).replace(/mbxp\./gi,"profile.").split("\x26"));if(TNT.isAutoCreateGlobalMbox())TNT.createGlobalMbox();
if(typeof TNT!="undefined")window.TNT=TNT||{};if(typeof mboxCopyright!="undefined")window.mboxCopyright=mboxCopyright||"error";if(typeof mboxVersion!="undefined")window.mboxVersion=mboxVersion||"error";if(typeof mboxFactories!="undefined")window.mboxFactories=mboxFactories||{};if(typeof mboxFactoryDefault!="undefined")window.mboxFactoryDefault=mboxFactoryDefault||{};if(typeof mboxVizTargetUrl!="undefined")window.mboxVizTargetUrl=mboxVizTargetUrl||function(){};if(typeof mboxLoadSCPlugin!="undefined")window.mboxLoadSCPlugin=
mboxLoadSCPlugin||function(){}}catch(n){window.TNT={},window.mboxError=n,window.mboxCopyright="error",window.mboxFactories={},window.mboxFactoryDefault={},window.mboxVizTargetUrl=function(){},mboxCreate=function(){},mboxDefine=function(){},mboxUpdate=function(){},mboxLoadSCPlugin=function(){}}if(document.URL.indexOf("tdcanadatrust.com/products-services/banking/index-banking.jsp")>-1){_AT=_AT||{};_AT.config={numAttemptsToPreventFlicker:30,showElementsOnDomReady:false}}}},2776059,[1944519],382555,[383955]);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("tdcanadatrust.com")>-1)if(document.URL.indexOf("/m/")>-1);else{window.isDivIdExists=function(divId){var isDivIdExists=false;if(divId!=null)isDivIdExists=true;return isDivIdExists};window.trackSavingPageVisited=function(){var storageKey="numOfSavingsVisits";var storageValue=retriveFromSessionStorage(storageKey);var numOfPageVisits=getNumberOfPageVisited(storageValue);
saveToSessionStorage(storageKey,numOfPageVisits)};window.trackChequingPageVisited=function(){var storageKey="numOfChequingVisits";var storageValue=retriveFromSessionStorage(storageKey);var numOfPageVisits=getNumberOfPageVisited(storageValue);saveToSessionStorage(storageKey,numOfPageVisits)};window.trackCreditCardPageVisited=function(){var storageKey="numOfCreditCardVisits";var storageValue=retriveFromSessionStorage(storageKey);var numOfPageVisits=getNumberOfPageVisited(storageValue);saveToSessionStorage(storageKey,
numOfPageVisits)};window.getNumberOfPageVisited=function(storageValue){var numOfPageVisits=-1;if(storageValue!=null||storageValue!="undefined"||storageValue!="")numOfPageVisits=Number(storageValue)+1;else numOfPageVisits=1;return numOfPageVisits};window.trackFilterModified=function(){var numOfFilterModified;var storageValue=retriveFromSessionStorage("numOfFilMod");if(storageValue!=null||storageValue!="undefined"||storageValue!="")numOfFilterModified=Number(storageValue)+1;else numOfFilterModified=
1;saveToSessionStorage("numOfFilMod",numOfFilterModified)};window.customerAbondonOSO=function(){saveToSessionStorage("strCustAbnOSO",1)};window.trackViewMoreAccount=function(){saveToSessionStorage("strViewMorAcc",1)};window.isNumOfTabsCustClickApplicable=function(){var indexDIV=document.getElementById("TabsCustClick");return isDivIdExists(indexDIV)};window.trackNumOfTabsCustClick=function(){if(isNumOfTabsCustClickApplicable()){var noOfTabsClick;var storageValue=retriveFromSessionStorage("numOfTabsCustClick");
if(storageValue!=null||storageValue!="undefined"||storageValue!="")noOfTabsClick=Number(storageValue)+1;else noOfTabsClick=1;saveToSessionStorage("numOfTabsCustClick",noOfTabsClick)}};window.trackCustVisitsTFSA=function(){saveToSessionStorage("strCustVisitsTFSA",1)};window.trackCustClickTFSA=function(){saveToSessionStorage("strCustClickTFSA",1)};window.trackPreAuthorizedTabs=function(){saveToSessionStorage("strPreAuthorizedTabs",1)};window.trackNumOfErrors=function(){var noOfError;var storageValue=
retriveFromSessionStorage("numOfErrors");if(storageValue!=null||storageValue!="undefined"||storageValue!="")noOfError=Number(storageValue)+1;else noOfError=1;saveToSessionStorage("numOfErrors",noOfError)};window.resetNumOfErrors=function(){saveToSessionStorage("numOfErrors",0)};window.trackIdleTimeOnPage=function(numberSecondsCustIdle){saveToSessionStorage("numCustIdleInSec",numberSecondsCustIdle)};window.startClock=function(){seconds++;trackIdleTimeOnPage(seconds)};window.resetClock=function(){seconds=
-1;clearTimeout(clock)};console.log("tdlc")}},747247,[747244],271086,[271085]);
Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;if(document.URL.indexOf("tdcanadatrust.com")>-1)if(document.URL.indexOf("/m/")>-1);else{if(document.URL.indexOf("www.tdcanadatrust.com")>-1||document.URL.indexOf("www.stg.")>-1)var EG_ACT_ID="EG98836525";else var EG_ACT_ID="EG76476623";(function(d){var eg=d.createElement("script"),seg=d.getElementsByTagName("script")[0];eg.type="text/javascript";eg.async=true;eg.src="//analytics.analytics-egain.com/onetag/"+
EG_ACT_ID;seg.parentNode.insertBefore(eg,seg);console.log("ot")})(document)}},747286,271084);
Bootstrapper.bindDependencyImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;function getCookie(cname){var name=cname+"\x3d";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)}return""}var gdprList=["portfolio-managers.td.com","private-bankers.td.com","advisors.td.com","financialplanners.td.com","mms.tdcanadatrust.com",
"academienumerique.td.com","cartesfaq.td.com","digitalacademy.td.com"];for(var i=0;i<gdprList.length;i++)if(window.location.href.indexOf(gdprList[i])>-1)if(getCookie("GDPR")=="true"){window.MutationObserver=window.MutationObserver||function(w){function v(a){this.i=[];this.m=a}function I(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,v._period)})()}function p(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,
attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==w&&a[c]!==w&&(b[c]=a[c]);return b}function J(a,b){var c=C(a,b);return function(d){var f=d.length,n;b.a&&3===a.nodeType&&a.nodeValue!==c.a&&d.push(new p({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&A(d,a,c.b,b.f);if(b.c||b.g)n=K(d,a,c,b);if(n||d.length!==f)c=C(a,b)}}function L(a,b){return b.value}function M(a,b){return"style"!==b.name?b.value:a.style.cssText}function A(a,b,c,d){for(var f={},n=b.attributes,k,g,x=n.length;x--;)k=
n[x],g=k.name,d&&d[g]===w||(D(b,k)!==c[g]&&a.push(p({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(p({target:b,type:"attributes",attributeName:g,oldValue:c[g]}))}function K(a,b,c,d){function f(b,c,f,k,y){var g=b.length-1;y=-~((g-y)/2);for(var h,l,e;e=b.pop();)h=f[e.j],l=k[e.l],d.c&&y&&Math.abs(e.j-e.l)>=g&&(a.push(p({type:"childList",target:c,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),
y--),d.b&&l.b&&A(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(p({type:"characterData",target:h,oldValue:l.a})),d.g&&n(h,l)}function n(b,c){for(var g=b.childNodes,q=c.c,x=g.length,v=q?q.length:0,h,l,e,m,t,z=0,u=0,r=0;u<x||r<v;)m=g[u],t=(e=q[r])&&e.node,m===t?(d.b&&e.b&&A(a,m,e.b,d.f),d.a&&e.a!==w&&m.nodeValue!==e.a&&a.push(p({type:"characterData",target:m,oldValue:e.a})),l&&f(l,b,g,q,z),d.g&&(m.childNodes.length||e.c&&e.c.length)&&n(m,e),u++,r++):(k=!0,h||(h={},l=[]),m&&(h[e=E(m)]||
(h[e]=!0,-1===(e=F(q,m,r,"node"))?d.c&&(a.push(p({type:"childList",target:b,addedNodes:[m],nextSibling:m.nextSibling,previousSibling:m.previousSibling})),z++):l.push({j:u,l:e})),u++),t&&t!==g[u]&&(h[e=E(t)]||(h[e]=!0,-1===(e=F(g,t,u))?d.c&&(a.push(p({type:"childList",target:c.node,removedNodes:[t],nextSibling:q[r+1],previousSibling:q[r-1]})),z--):l.push({j:e,l:r})),r++));l&&f(l,b,g,q,z)}var k;n(b,c);return k}function C(a,b){var c=!0;return function f(a){var k={node:a};!b.a||3!==a.nodeType&&8!==a.nodeType?
(b.b&&c&&1===a.nodeType&&(k.b=G(a.attributes,function(c,f){if(!b.f||b.f[f.name])c[f.name]=D(a,f);return c})),c&&(b.c||b.a||b.b&&b.g)&&(k.c=N(a.childNodes,f)),c=b.g):k.a=a.nodeValue;return k}(a)}function E(a){try{return a.id||(a.mo_id=a.mo_id||H++)}catch(b){try{return a.nodeValue}catch(c){return H++}}}function N(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=b(a[d],d,a);return c}function G(a,b){for(var c={},d=0;d<a.length;d++)c=b(c,a[d],d,a);return c}function F(a,b,c,d){for(;c<a.length;c++)if((d?a[c][d]:
a[c])===b)return c;return-1}v._period=30;v.prototype={observe:function(a,b){for(var c={b:!!(b.attributes||b.attributeFilter||b.attributeOldValue),c:!!b.childList,g:!!b.subtree,a:!(!b.characterData&&!b.characterDataOldValue)},d=this.i,f=0;f<d.length;f++)d[f].s===a&&d.splice(f,1);b.attributeFilter&&(c.f=G(b.attributeFilter,function(a,b){a[b]=!0;return a}));d.push({s:a,o:J(a,c)});this.h||I(this)},takeRecords:function(){for(var a=[],b=this.i,c=0;c<b.length;c++)b[c].o(a);return a},disconnect:function(){this.i=
[];clearTimeout(this.h);this.h=null}};var B=document.createElement("i");B.style.top=0;var D=(B="null"!=B.attributes.style.value)?L:M,H=1;return v}(void 0);var LZString=function(){var f=String.fromCharCode;var keyStrBase64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";var keyStrUriSafe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$";var baseReverseDic={};function getBaseValue(alphabet,character){if(!baseReverseDic[alphabet]){baseReverseDic[alphabet]={};
for(var i=0;i<alphabet.length;i++)baseReverseDic[alphabet][alphabet.charAt(i)]=i}return baseReverseDic[alphabet][character]}var LZString={compressToBase64:function(input){if(input==null)return"";var res=LZString._compress(input,6,function(a){return keyStrBase64.charAt(a)});switch(res.length%4){default:case 0:return res;case 1:return res+"\x3d\x3d\x3d";case 2:return res+"\x3d\x3d";case 3:return res+"\x3d"}},decompressFromBase64:function(input){if(input==null)return"";if(input=="")return null;return LZString._decompress(input.length,
32,function(index){return getBaseValue(keyStrBase64,input.charAt(index))})},compressToUTF16:function(input){if(input==null)return"";return LZString._compress(input,15,function(a){return f(a+32)})+" "},decompressFromUTF16:function(compressed){if(compressed==null)return"";if(compressed=="")return null;return LZString._decompress(compressed.length,16384,function(index){return compressed.charCodeAt(index)-32})},compressToUint8Array:function(uncompressed){var compressed=LZString.compress(uncompressed);
var buf=new Uint8Array(compressed.length*2);for(var i=0,TotalLen=compressed.length;i<TotalLen;i++){var current_value=compressed.charCodeAt(i);buf[i*2]=current_value>>>8;buf[i*2+1]=current_value%256}return buf},decompressFromUint8Array:function(compressed){if(compressed===null||compressed===undefined)return LZString.decompress(compressed);else{var buf=new Array(compressed.length/2);for(var i=0,TotalLen=buf.length;i<TotalLen;i++)buf[i]=compressed[i*2]*256+compressed[i*2+1];var result=[];buf.forEach(function(c){result.push(f(c))});
return LZString.decompress(result.join(""))}},compressToEncodedURIComponent:function(input){if(input==null)return"";return LZString._compress(input,6,function(a){return keyStrUriSafe.charAt(a)})},decompressFromEncodedURIComponent:function(input){if(input==null)return"";if(input=="")return null;input=input.replace(/ /g,"+");return LZString._decompress(input.length,32,function(index){return getBaseValue(keyStrUriSafe,input.charAt(index))})},compress:function(uncompressed){return LZString._compress(uncompressed,
16,function(a){return f(a)})},_compress:function(uncompressed,bitsPerChar,getCharFromInt){if(uncompressed==null)return"";var i,value,context_dictionary={},context_dictionaryToCreate={},context_c="",context_wc="",context_w="",context_enlargeIn=2,context_dictSize=3,context_numBits=2,context_data=[],context_data_val=0,context_data_position=0,ii;for(ii=0;ii<uncompressed.length;ii+=1){context_c=uncompressed.charAt(ii);if(!Object.prototype.hasOwnProperty.call(context_dictionary,context_c)){context_dictionary[context_c]=
context_dictSize++;context_dictionaryToCreate[context_c]=true}context_wc=context_w+context_c;if(Object.prototype.hasOwnProperty.call(context_dictionary,context_wc))context_w=context_wc;else{if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=
0}else context_data_position++}value=context_w.charCodeAt(0);for(i=0;i<8;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=value>>1}}else{value=1;for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));
context_data_val=0}else context_data_position++;value=0}value=context_w.charCodeAt(0);for(i=0;i<16;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=value>>1}}context_enlargeIn--;if(context_enlargeIn==0){context_enlargeIn=Math.pow(2,context_numBits);context_numBits++}delete context_dictionaryToCreate[context_w]}else{value=context_dictionary[context_w];
for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=value>>1}}context_enlargeIn--;if(context_enlargeIn==0){context_enlargeIn=Math.pow(2,context_numBits);context_numBits++}context_dictionary[context_wc]=context_dictSize++;context_w=String(context_c)}}if(context_w!==""){if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,
context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++}value=context_w.charCodeAt(0);for(i=0;i<8;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=
0}else context_data_position++;value=value>>1}}else{value=1;for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=0}value=context_w.charCodeAt(0);for(i=0;i<16;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));
context_data_val=0}else context_data_position++;value=value>>1}}context_enlargeIn--;if(context_enlargeIn==0){context_enlargeIn=Math.pow(2,context_numBits);context_numBits++}delete context_dictionaryToCreate[context_w]}else{value=context_dictionary[context_w];for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=
value>>1}}context_enlargeIn--;if(context_enlargeIn==0){context_enlargeIn=Math.pow(2,context_numBits);context_numBits++}}value=2;for(i=0;i<context_numBits;i++){context_data_val=context_data_val<<1|value&1;if(context_data_position==bitsPerChar-1){context_data_position=0;context_data.push(getCharFromInt(context_data_val));context_data_val=0}else context_data_position++;value=value>>1}while(true){context_data_val=context_data_val<<1;if(context_data_position==bitsPerChar-1){context_data.push(getCharFromInt(context_data_val));
break}else context_data_position++}return context_data.join("")},decompress:function(compressed){if(compressed==null)return"";if(compressed=="")return null;return LZString._decompress(compressed.length,32768,function(index){return compressed.charCodeAt(index)})},_decompress:function(length,resetValue,getNextValue){var dictionary=[],next,enlargeIn=4,dictSize=4,numBits=3,entry="",result=[],i,w,bits,resb,maxpower,power,c,data={val:getNextValue(0),position:resetValue,index:1};for(i=0;i<3;i+=1)dictionary[i]=
i;bits=0;maxpower=Math.pow(2,2);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}switch(next=bits){case 0:bits=0;maxpower=Math.pow(2,8);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}c=f(bits);break;case 1:bits=
0;maxpower=Math.pow(2,16);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}c=f(bits);break;case 2:return""}dictionary[3]=c;w=c;result.push(c);while(true){if(data.index>length)return"";bits=0;maxpower=Math.pow(2,numBits);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=
(resb>0?1:0)*power;power<<=1}switch(c=bits){case 0:bits=0;maxpower=Math.pow(2,8);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}dictionary[dictSize++]=f(bits);c=dictSize-1;enlargeIn--;break;case 1:bits=0;maxpower=Math.pow(2,16);power=1;while(power!=maxpower){resb=data.val&data.position;data.position>>=1;if(data.position==0){data.position=resetValue;data.val=
getNextValue(data.index++)}bits|=(resb>0?1:0)*power;power<<=1}dictionary[dictSize++]=f(bits);c=dictSize-1;enlargeIn--;break;case 2:return result.join("")}if(enlargeIn==0){enlargeIn=Math.pow(2,numBits);numBits++}if(dictionary[c])entry=dictionary[c];else if(c===dictSize)entry=w+w.charAt(0);else return null;result.push(entry);dictionary[dictSize++]=w+entry.charAt(0);enlargeIn--;w=entry;if(enlargeIn==0){enlargeIn=Math.pow(2,numBits);numBits++}}}};return LZString}();if(typeof define==="function"&&define.amd)define(function(){return LZString});
else if(typeof module!=="undefined"&&module!=null)module.exports=LZString;var polyfill;if(!window.addEventListener)(function(WindowPrototype,DocumentPrototype,ElementPrototype,addEventListener,removeEventListener,dispatchEvent,registry){WindowPrototype[addEventListener]=DocumentPrototype[addEventListener]=ElementPrototype[addEventListener]=function(type,listener){var target=this;registry.unshift([target,type,listener,function(event){event.currentTarget=target;event.preventDefault=function(){event.returnValue=
false};event.stopPropagation=function(){event.cancelBubble=true};event.target=event.srcElement||target;listener.call(target,event)}]);this.attachEvent("on"+type,registry[0][3])};WindowPrototype[removeEventListener]=DocumentPrototype[removeEventListener]=ElementPrototype[removeEventListener]=function(type,listener){for(var index=0,register;register=registry[index];++index)if(register[0]==this&&register[1]==type&&register[2]==listener)return this.detachEvent("on"+type,registry.splice(index,1)[0][3])};
WindowPrototype[dispatchEvent]=DocumentPrototype[dispatchEvent]=ElementPrototype[dispatchEvent]=function(eventObject){return this.fireEvent("on"+eventObject.type,eventObject)}})(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]);if(!document.getElementsByClassName)document.getElementsByClassName=function(search){var d=document,elements,pattern,i,results=[];if(d.querySelectorAll)return d.querySelectorAll("."+search);if(d.evaluate){pattern=
".//*[contains(concat(' ', @class, ' '), ' "+search+" ')]";elements=d.evaluate(pattern,d,null,0,null);while(i=elements.iterateNext())results.push(i)}else{elements=d.getElementsByTagName("*");pattern=new RegExp("(^|\\s)"+search+"(\\s|$)");for(i=0;i<elements.length;i++)if(pattern.test(elements[i].className))results.push(elements[i])}return results};if(!window.getComputedStyle)window.getComputedStyle=function(el,pseudo){this.el=el;this.getPropertyValue=function(prop){var re=/(\-([a-z]){1})/g;if(prop==
"float")prop="styleFloat";if(re.test(prop))prop=prop.replace(re,function(){return arguments[2].toUpperCase()});return el.currentStyle[prop]?el.currentStyle[prop]:null};return this};(function(window,document){var html=document.documentElement;var define=function(object,property,getter){if(typeof object[property]==="undefined")Object.defineProperty(object,property,{get:getter})};define(window,"innerWidth",function(){return html.clientWidth});define(window,"innerHeight",function(){return html.clientHeight});
define(window,"scrollX",function(){return window.pageXOffset||html.scrollLeft});define(window,"scrollY",function(){return window.pageYOffset||html.scrollTop});define(document,"width",function(){var htmlMax,documentMax;if(document.body)documentMax=Math.max(document.body.scrollWidth,document.body.offsetWidth,document.body.clientWidth);if(html)htmlMax=Math.max(html.scrollWidth,html.offsetWidth,html.clientWidth);var width=Math.max(documentMax,htmlMax);return width!=width?undefined:width});define(document,
"height",function(){var htmlMax,documentMax;if(document.body)documentMax=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.body.clientHeight);if(html)htmlMax=Math.max(html.scrollHeight,html.offsetHeight,html.clientHeight);var height=Math.max(documentMax,htmlMax);return height!=height?undefined:height});return define})(window,document);if(!Object.keys)Object.keys=function(){var hasOwnProperty=Object.prototype.hasOwnProperty,hasDontEnumBug=!{toString:null}.propertyIsEnumerable("toString"),
dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;return function(obj){if(typeof obj!=="function"&&(typeof obj!=="object"||obj===null))throw new TypeError("Object.keys called on non-object");var result=[],prop,i;for(prop in obj)if(hasOwnProperty.call(obj,prop))result.push(prop);if(hasDontEnumBug)for(i=0;i<dontEnumsLength;i++)if(hasOwnProperty.call(obj,dontEnums[i]))result.push(dontEnums[i]);return result}}();
if(!Object.prototype.watch)Object.defineProperty(Object.prototype,"watch",{enumerable:false,configurable:true,writable:false,value:function(prop,handler){var old=this[prop];var cur=old;var getter=function(){return cur};var setter=function(val){old=cur;cur=handler.call(this,prop,old,val);return cur};if(delete this[prop])Object.defineProperty(this,prop,{get:getter,set:setter,enumerable:true,configurable:true})}});if(!Array.prototype.forEach)Array.prototype.forEach=function(callback,thisArg){var T,k;
if(this===null)throw new TypeError(" this is null or not defined");var O=Object(this);var len=O.length>>>0;if(typeof callback!=="function")throw new TypeError(callback+" is not a function");if(arguments.length>1)T=thisArg;k=0;while(k<len){var kValue;if(k in O){kValue=O[k];callback.call(T,kValue,k,O)}k++}};var privacyStart;var gatewayConfig=function(){var events=["load","abort","error"];var elementMethods=["appendChild","insertBefore","replaceChild","removeChild"];if(document.insertAdjacentElement||
window.Element&&Element.prototype.insertAdjacentElement||window.HTMLElement&&HTMLElement.prototype.insertAdjacentElement)elementMethods.push("insertAdjacentElement");var excList=new RegExp("nodeName|scopeName|tagName|"+"fileSize|outerHTML|start|contentEditable|href|nameProp|outerText|innerText|innerHTML");var elementTypes=["Anchor","Area","Body","Button","Canvas","Div","Form","Frame","Head","Html","IFrame","Input","Label","LI","Link","Map","OList","Option","Paragraph","Span","Table","TableCell","TableCol",
"TableRow","TableSection","UList","Unknown"];var eventHandlers=["abort","error","KeyDown","KeyPress","KeyUp","load"];var forwardMethods=["cloneNode","attachEvent"];var getters=["ElementsByClassName","ClientRects","BoundingClientRect","Attribute","ElementsByTagName","ElementsByTagNameNS","AttributeNS","UserData","AttributeNode","AttributeNodeNS","Height","Width","Style","Opacity","Dimensions","OffsetParent","ElementsBySelector","InlineOpacity","Styles"];var unbound={};return{events:events,elementMethods:elementMethods,
excList:excList,elementTypes:elementTypes,eventHandlers:eventHandlers,forwardMethods:forwardMethods,getters:getters,unbound:unbound}}();var utilities=function(){return{addStyleElement:function(cssStyleDef){var head=document.head||document.getElementsByTagName("head")[0];var styleTag=document.createElement("style");styleTag.type="text/css";if(styleTag.styleSheet)styleTag.styleSheet.cssText=cssStyleDef;else styleTag.appendChild(document.createTextNode(cssStyleDef));head.appendChild(styleTag)},arrayToRegex:function(arr){if(Array.isArray(arr)){if(arr&&
arr.length>0&&arr.join)return new RegExp(arr.join("|"));return new RegExp("a^")}},attachEvents:function(object,fn,timeStamp){if(object.addEventListener)utilities.each(gatewayConfig.events,function(event){object.addEventListener(event,fn(timeStamp,event),false)});else if(object.attachEvent)utilities.each(gatewayConfig.events,function(event){object.attachEvent("on"+event,fn(timeStamp,event))})},bind:function(fn,context,args){args=Array.prototype.slice.call(arguments);fn=args.shift();context=args.shift();
return function(){return fn.apply(context,args.concat(Array.prototype.slice.call(arguments)))}},browserSupportsMutationObserver:function(){var returnVal;var prefixes=["WebKit","Moz","O","Ms",""];for(var i=0;i<prefixes.length;i++)if(prefixes[i]+"MutationObserver"in window)returnVal=true;return returnVal},couldNotBind:function(key){gatewayConfig.unbound[key]=true},createEventHandler:function(timeStamp,status){return function(){gateway.resourceComplete(this,timeStamp,status)}},deleteCookie:function(clientName,
cookieKey){clientName=clientName.toUpperCase();var cookieString=clientName+"_ENSIGHTEN_PRIVACY_"+utilities.parseCookieSuffix(cookieKey);var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=cookies[i];var eqPos=cookie.indexOf("\x3d");var name=eqPos>-1?cookie.substr(0,eqPos):cookie;if(name.trim()===cookieString.trim())document.cookie=name+"\x3d; path\x3d/; expires\x3dThu, 01 Jan 1970 00:00:00 GMT"}},domReady:function(callback){var ready=false;var detach=function(){if(document.addEventListener){document.removeEventListener("DOMContentLoaded",
completed);window.removeEventListener("load",completed)}else{document.detachEvent("onreadystatechange",completed);window.detachEvent("onload",completed)}};var completed=function(){if(!ready&&(document.addEventListener||event.type==="load"||document.readyState==="complete")){ready=true;detach();callback()}};if(document.readyState==="complete")callback();else if(document.addEventListener){document.addEventListener("DOMContentLoaded",completed);window.addEventListener("load",completed)}else{document.attachEvent("onreadystatechange",
completed);window.attachEvent("onload",completed);var top=false;try{top=window.frameElement===null&&document.documentElement}catch(e){}if(top&&top.doScroll)(function scrollCheck(){if(ready)return;try{top.doScroll("left")}catch(e){return setTimeout(scrollCheck,50)}ready=true;detach();callback()})()}},each:function(list,fn,context){if(list===undefined||!("length"in list))list={length:0};for(var i=0;i<list.length;i++)fn.call(context,list[i],i,list)},getBrowserLocale:function(){var locale=window.navigator.userLanguage||
window.navigator.language;if(locale){locale=locale.split("-");if(locale[0]&&locale[1])locale=locale[0]+"-"+locale[1].toUpperCase();else locale=locale[0]}else locale="en";return locale},getFunctionString:function(fn){if(!fn||typeof fn!=="function"&&typeof fn!=="object")return false;if(fn.toString!==undefined)return fn.toString();return fn+""},getUrlParamVal:function(key){var hash,queryStringObject={};var hashes=window.location.href.slice(window.location.href.indexOf("?")+1).split("\x26");for(var i=
0;i<hashes.length;i++){hash=hashes[i].split("\x3d");queryStringObject[hash[0]]=hash[1]}var returnVal="";if(queryStringObject[key])returnVal=queryStringObject[key];return returnVal},handleReference:function(arg){var reference=arg?arg.__reference:false;var tagName;if(reference)tagName=reference.tagName.toUpperCase();if(reference&&(tagName==="SCRIPT"||tagName==="IFRAME"||tagName==="IMAGE"||tagName==="IMG")){for(var property in reference)if(Object.prototype.hasOwnProperty.call(reference,property)&&typeof arg[property]===
"string")if(!gatewayConfig.excList.test(property)&&(arg[property]||reference[property]&&!arg[property]))if(reference[property]!==arg[property]&&arg[property]!==reference.__histLog[property])try{reference[property]=arg[property]}catch(e){try{if(reference.tagName&&reference.tagName.toUpperCase()==="SCRIPT"&&property==="text")reference.text=arg["text"];else if(reference.tagName&&reference.tagName.toUpperCase()==="SCRIPT"&&property==="innerHTML")reference.innerHTML=arg["innerHTML"];else reference.setAttribute(property,
arg[property])}catch(ex){}}tagName=null;return reference}return arg},decodeUriComponent:function(str){var decodedUri=str;try{if(typeof str==="string")decodedUri=decodeURIComponent(str)}catch(e){console.warn("URI: "+str+". Could not decoded properly. Original string was returned")}return decodedUri},isIE8OrLower:function(){return document.all&&!document.getSelection},isIE:false||!!document.documentMode,isNative:function(fn){var re=new RegExp("function\\s+.+?\\(\\s*\\)"+"\\s*{\\s*\\[native code\\]\\s*}"),
re2=new RegExp("function\\s+.+?\\"+"(\\s*\\)\\s*{\\s*\\/\\*\\s*"+"source code not available\\s*\\*\\/\\s*}"),fnStr=utilities.getFunctionString(fn);var retValue=re.test(fnStr)||re2.test(fnStr);re=re2=fnStr=null;return retValue},map:function(list,fn,context){if(list===undefined||!("length"in list))list={length:0};for(var i=0;i<list.length;i++)list[i]=fn.call(context,list[i],i,list)},noop:function(){},overrideHelper:function(object,fnName){var objectNameString=object+"";if(!object||!object[fnName]||
object+""==="[Interface prototype object]")return false;var method=object[fnName];var proxiedMethod=function(){var args=Array.prototype.slice.call(arguments);var node=args[0];if(typeof node==="string")node=args[1];var tagName=this.tagName;if(tagName===undefined||tagName===null)tagName="";else tagName=tagName.toUpperCase();var argTagName=node.tagName;if(argTagName===undefined||argTagName===null)argTagName="";else argTagName=argTagName.toUpperCase();if(tagName!=="SCRIPT"&&tagName!=="IMG"&&tagName!==
"IMAGE"&&tagName!=="IFRAME"&&argTagName!=="SCRIPT"&&argTagName!=="IMG"&&argTagName!=="IMAGE"&&argTagName!=="IFRAME"){if(this!==object)if(fnName==="appendChild"&&utilities.isIE8OrLower())if(this.canHaveChildren===true&&this.canHaveHTML!==true&&tagName==="SELECT"){args[0].parentNode.removeChild(args[0]);this.options.add(new Option(args[0].text,args[0].value));args[0]=this.lastChild;return this.lastChild}else{var origInnerHTML=this.innerHTML;this.innerHTML=this.innerHTML+args[0].outerHTML;try{args[0].parentNode.removeChild(args[0])}catch(e){}if(this.innerHTML===
origInnerHTML&&args[0].outerHTML!=="")throw"Could not set innerHTML on"+this+"in overrideHelper";args[0]=this.lastChild;return args[0]}return Function.prototype.apply.call(method,this,args)}else{node=utilities.processElement(fnName,node);if(node)return Function.prototype.apply.call(method,this,args)}};var nodeName="";if(objectNameString!=="[xpconnect wrapped native prototype]"&&objectNameString!=="[object XPC_WN_ModsAllowed_NoCall_Proto_JSClass]")if(window.DocumentFragment&&window.DocumentFragment.prototype&&
object===window.DocumentFragment.prototype)nodeName="";else if(window.Element&&window.Element.prototype&&object===window.Element.prototype)nodeName="";else nodeName=object.nodeName||"";nodeName=nodeName.toUpperCase();if(nodeName.toUpperCase()==="EMBED")try{object[fnName]=proxiedMethod}catch(e){}else object[fnName]=proxiedMethod},processElement:function(source,elementNode){var processed=elementNode.tagName;if(typeof processed==="undefined"||processed===null||elementNode===null||elementNode.__gateway)return elementNode;
var timeStamp=+new Date,request=new Request;request.id=timeStamp;request.source=source;elementNode.__gateway=timeStamp;var tagName=request.type=elementNode.tagName.toLowerCase();if(tagName==="iframe"||tagName==="script"||tagName==="img"){request.destination=elementNode.src?elementNode.src:"";if(!gateway.onBefore(request,elementNode)){elementNode.src=utilities.getBlockedSrcString(tagName,request);gateway.onBlock(request,elementNode)}else utilities.attachEvents(elementNode,utilities.createEventHandler,
timeStamp)}utilities.each(elementNode.children,utilities.bind(utilities.processElement,this,source));processed=timeStamp=request=tagName=null;return elementNode},getBlockedSrcString:function(tagName,request){if(gateway.dataGovernanceManager.shouldMaskData(request))return gateway.dataGovernanceManager.getMaskedDataString(request.destination);else if(gateway.dataGovernanceManager.shouldRedactData(request))return gateway.dataGovernanceManager.getRedactedDataString(request.destination);else if(tagName===
"img")return"";else return"//javascript:;"},processHTML:function(source,html){var containsSrc=/src\s*=/i.test(html);if(!containsSrc){containsSrc=null;return html}var srcs=html.match(/src\s*=\s*(.+?)(\s|$|>)/ig);if(srcs){utilities.map(srcs,function(src){var replacedString=src.replace(/\s*src\s*=\s*('|")?(.*?)('|")?(\s|$|>)/i,"$2");return replacedString});utilities.each(srcs,function(src){var timeStamp=+new Date,request=new Request;request.id=timeStamp;request.source=source;request.destination=src;
var node={};if(!gateway.onBefore(request,node)){if(gateway.dataGovernanceManager.shouldMaskData(request))html=html.replace(src,gateway.dataGovernanceManager.getMaskedDataString(request.destination));else html=html.replace(src,"//javascript:;");gateway.onBlock(request,node)}})}containsSrc=srcs=null;return html},cookieNameToCookieType:function(clientName,cookieName){return cookieName.replace(clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_","")}}}();var writeLnObserver=function(){var writeln=document.writeln;
document.writeln=function(html){html=utilities.processHTML("writeln",html);return Function.prototype.call.call(writeln,document,html)};return!utilities.isNative(document.writeln)};var writeObserver=function(){var write=document.write;document.write=function(html,cb){html=utilities.processHTML("write",html);if(cb)return cb(html);return Function.prototype.call.call(write,document,html)};return!utilities.isNative(document.write)};var elementObserver=function(){function observeElementHelper(){utilities.each(gatewayConfig.elementTypes,
function(type){if(window["HTML"+type+"Element"]&&window["HTML"+type+"Element"].prototype)utilities.each(gatewayConfig.elementMethods,function(method){utilities.overrideHelper(window["HTML"+type+"Element"].prototype,method)});else utilities.couldNotBind("HTML"+type+"Element")})}if(window.DocumentFragment&&window.DocumentFragment.prototype&&window.DocumentFragment.prototype.appendChild)utilities.each(gatewayConfig.elementMethods,utilities.bind(utilities.overrideHelper,null,window.DocumentFragment.prototype));
else utilities.couldNotBind("DocumentFramgment");if(window.Element&&window.Element.prototype&&window.Element.prototype.appendChild)utilities.each(gatewayConfig.elementMethods,utilities.bind(utilities.overrideHelper,null,window.Element.prototype));else utilities.couldNotBind("Element");if(utilities.isNative(document.createElement("div").appendChild)){var div=document.createElement("div");var proto=div;var escape=0;while(!Object.prototype.hasOwnProperty.call(proto,"appendChild")){proto=Object.getPrototypeOf(proto);
if(escape++>5){utilities.couldNotBind("div.appendChild");break}}utilities.each(gatewayConfig.elementMethods,utilities.bind(utilities.overrideHelper,null,proto));div=proto=escape=null}if(utilities.isNative(document.createElement("div").appendChild))observeElementHelper();return};var MutationObserverFactory=function(){ensClientConfig.ensCreateElement=document.createElement;var ensMutationObserver=new MutationObserver(function(mutations){for(var index=0;index<mutations.length;index++){var mutation=mutations[index];
if(mutation.type=="attributes")utilities.processElement("mutationObserverA",mutation.target);if(mutation.type=="childList"){var mutationLength=mutation.addedNodes.length;for(var i=0;i<mutationLength;i++){var item;if(Object.prototype.toString.call(mutation.addedNodes)==="[object Array]")item=mutation.addedNodes[i];else item=mutation.addedNodes.item(i);utilities.processElement("mutationObserverCL",item)}}}});var watchTheDOM=function(){var docBody=document;var innerHTMLObservCfg={attributes:true,childList:true,
subtree:true,characterData:false,attributeFilter:["src"]};ensMutationObserver.observe(docBody,innerHTMLObservCfg);var oldSetAttribute=HTMLIFrameElement.prototype.setAttribute;HTMLIFrameElement.prototype.setAttribute=function(name,value){var parsedSrc;if(name=="src"||name=="ng-src"){var timeStamp=+new Date;var request=new Request;request.id=timeStamp;request.source="HTMLIFRAME_SETATTRIBUTE";request.destination=value;var elementNode=this;request.type=elementNode.tagName.toLowerCase();var parsedSrc=
value;if(!gateway.onBefore(request,elementNode)){parsedSrc=utilities.getBlockedSrcString("iframe",request);this[name]=parsedSrc;if(this.parentNode&&parsedSrc==="//javascript:;")this.parentNode.removeChild(this);gateway.onBlock(request,elementNode);return oldSetAttribute.call(this,name,parsedSrc)}else utilities.attachEvents(elementNode,utilities.createEventHandler,timeStamp)}return oldSetAttribute.call(this,name,parsedSrc||value)}};document.createElement=function(tagName){var element=Function.prototype.apply.call(ensClientConfig.ensCreateElement,
document,arguments);if(tagName.match(/img|image|iframe|script/i)){var config={attributes:true,childList:false,characterData:false,attributeFilter:["src"]};ensMutationObserver.observe(element,config)}return element};window.Image=function(w,h){var img=document.createElement("img");if(utilities.isIE)img.watch("src",function(id,old,cur){var timeStamp=+new Date,request=new Request;request.id=timeStamp;request.source="Watcher";request.destination=cur;var elementNode=this;request.type=elementNode.tagName.toLowerCase();
var parsedSrc=cur;if(!gateway.onBefore(request,elementNode)){parsedSrc=utilities.getBlockedSrcString("img",request);gateway.onBlock(request,elementNode)}else utilities.attachEvents(elementNode,utilities.createEventHandler,timeStamp);return parsedSrc});if(typeof w!="undefined")img.setAttribute("width",w);if(typeof h!="undefined")img.setAttribute("height",h);return img};var init=function(){watchTheDOM()}()};var Reporter=function(){var that;function getReportHeader(){return{version:"1.0.0",gateway:that.gatewayVersion,
clientId:that.clientId,publishPath:that.publishPath,instanceId:that.instanceId,packet:that.beaconCounter,mode:that.gatewayMode,cookies:that.privacyCookies}}function generateRawReportString(resources){var report=getReportHeader();report.requests=resources;return JSON.stringify(report)}function generateReportString(resources){var reportString=generateRawReportString(resources);var stat={};stat.rawLength=reportString.length;reportString=LZString.compressToEncodedURIComponent(reportString);stat.compressedLength=
reportString.length;that.stats.push(stat);return reportString}function doReport(){var overCapacityResources=[],beacons=[];if(this.enabled===false||this.unreportedResources.length===0)return false;while(this.unreportedResources.length>0){var reportString=generateReportString(this.unreportedResources);if(reportString.length+50<this.options.maxUrlSize){beacons.push(beacon.call(this,reportString));this.reportedResources=this.reportedResources.concat(this.unreportedResources);this.unreportedResources=
overCapacityResources;overCapacityResources=[];if(this.stats.length>0)this.stats[this.stats.length-1].written=true}else overCapacityResources.push(this.unreportedResources.pop())}return beacons}function beacon(data){var Img=this.imageReference;var beaconRootUrl="//"+this.nexusDomain+"/privacy/v1/b/1.gif";var beacon=new Img;var encodedBeaconURL=beaconRootUrl+"?"+"n\x3d"+this.beaconCounter++ +"\x26c\x3d"+this.clientId+"\x26i\x3d"+this.instanceId;if(this.publishPath)encodedBeaconURL+="\x26p\x3d"+encodeURIComponent(this.publishPath);
encodedBeaconURL+="\x26d\x3d"+data;beacon.src=encodedBeaconURL;return encodedBeaconURL}function startTimer(){var self=this;if(!this.enabled)return false;doReport.call(this);return setTimeout(function(){startTimer.call(self)},this.options.reportInterval)}function Reporter(imageReference,clientId,publishPath,usesWhitelist,gatewayVersion,reportingEnabled,options,nexusDomain){this.instanceId=((1+Math.random())*268435456|0).toString(36);this.imageReference=imageReference;this.nexusDomain=nexusDomain;this.unreportedResources=
[];this.reportedResources=[];this.beaconCounter=0;this.enabled=reportingEnabled===false?false:true;this.clientId=clientId;this.publishPath=publishPath;this.gatewayMode=usesWhitelist?"whitelist":"blacklist";this.privacyCookies=[];this.gatewayVersion=gatewayVersion;this.stats=[];if(options)this.setOptions(options);startTimer.call(this);that=this}Reporter.prototype={options:{maxUrlSize:32E3,reportInterval:2500},addResource:function(resource){if(this.enabled)this.unreportedResources.push(resource)},setCookies:function(cookies){this.privacyCookies=
cookies},setOptions:function(options){for(var p in options)if(options.hasOwnProperty(p))this.options[p]=options[p]},_generateRawReportString:generateRawReportString,_generateReportString:generateReportString,_doReport:doReport,_beacon:beacon,_startTimer:startTimer};return Reporter}();function CookieManager(clientName,customGetter,customSetter){this.deleteAllCookies=function(){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=cookies[i];var eqPos=cookie.indexOf("\x3d");
var name=eqPos>-1?cookie.substr(0,eqPos):cookie;document.cookie=name+"\x3d; path\x3d/; expires\x3dThu, 01 Jan 1970 00:00:00 GMT; domain\x3d"+this.getCookieDomain()}};this.deleteCookie=function(cookieType){clientName=clientName.toUpperCase();var cookieString=clientName+"_ENSIGHTEN_PRIVACY_"+this._parseCookieSuffix(cookieType);var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=cookies[i];var eqPos=cookie.indexOf("\x3d");var name=eqPos>-1?cookie.substr(0,eqPos):cookie;
if(name.trim()===cookieString.trim())document.cookie=name+"\x3d; path\x3d/; expires\x3dThu, 01 Jan 1970 00:00:00 GMT; domain\x3d"+this.getCookieDomain()}};this.getCookie=function(key){if(customGetter!==undefined)return customGetter(key);return this.defaultGetCookie(key)};this.defaultGetCookie=function(key){var cookieName=this._parseCookieSuffix(key);var match=document.cookie.match(new RegExp(cookieName+"\x3d([^;]+)"));if(match)return match[1];else{var legacyMatch=document.cookie.match(new RegExp(cookieName+
"\x3d([^;]+)"));if(legacyMatch)return legacyMatch[1]}};this.getCookiesFromTypes=function(cookieTypes){var cookies={};for(var i=0;i<cookieTypes.length;i++){var cookieName=cookieTypes[i],cookieValue=this.getCookie(cookieName);if(cookieValue!=="undefinded"&&cookieValue!==null)cookies[clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_"+this._parseCookieSuffix(cookieName)]=cookieValue}return cookies};this.setCookie=function(cookieType,value){if(customSetter!==undefined)return customSetter(cookieType,value);
return this.defaultSetCookie(cookieType,value)};this.defaultSetCookie=function(cookieType,value){var prefix=clientName.toUpperCase()+"_ENSIGHTEN_PRIVACY_";var suffix=this._parseCookieSuffix(cookieType);document.cookie=prefix+suffix+"\x3d"+value+"; path\x3d/; domain\x3d"+this.cookieDomain+"; expires\x3d"+(new Date(+new Date+1E3*60*60*24*365)).toUTCString()};this.setCookieDomain=function(newCookieDomain){this.cookieDomain=newCookieDomain};this.getCookieDomain=function(){return this.cookieDomain};this._parseCookieSuffix=
function(cookieType){return cookieType.replace(/ /g,"_")};this.calculateCookieDomain=function(domain){var host=domain||document.location.hostname;var re=new RegExp(".ac.uk|.co.uk|.gov.uk|.ltd.uk|.me.uk|.mod.uk|.net.uk|.nhs.uk|.org.uk|.plc.uk|.sch.uk");var isIP=/^(([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;var domainIsIpAddress=isIP.test(host);if(host!=="localhost"&&!domainIsIpAddress){var hostHasTwoPartSuffix=re.test(host);host=host.split(".");
var finalHostString;if(hostHasTwoPartSuffix)finalHostString=host.slice(host.length-3,host.length);else finalHostString=host.slice(host.length-2,host.length);finalHostString=finalHostString.join(".");return finalHostString}else return host};this.cookieDomain=this.calculateCookieDomain(window.location.hostname)}var EnvironmentManager=function(document,environmentConfigs,defaultEnvName,clientName,cookieManager){var activeEnvironment=null,environmentChangeCallbacks=[],environmentsCount=environmentConfigs.length,
clearEnvironment=function(clientName){cookieManager.deleteCookie("LOCALE");setEnvironment()},environmentExists=function(locale){return getEnvironmentByLocale(locale)!==null},evalCondition=function(condition){var conditionValue;conditionIsSatisfied=false;switch(condition.type){case "host":conditionValue=document.location.hostname;break;case "url":conditionValue=document.URL;break;case "cookie":conditionValue=getCookie(condition.key);break;case "jsVar":conditionValue=typeof window[condition.key]!==
"undefined"?window[condition.key]:undefined;break;default:console.warn("Error evaluating environment target")}switch(condition.operator){case "equals":conditionIsSatisfied=evaluateEquals(conditionValue,condition);break;case "contains":conditionIsSatisfied=evaluateContains(conditionValue,condition);break;case "exists":conditionIsSatisfied=evaluateExists(conditionValue,condition);break;case "regexp":conditionIsSatisfied=evaluateRegExp(conditionValue,condition);break;default:console.warn("Error evaluating comparator for environment")}if(condition.shouldBePositive===
false)if(conditionIsSatisfied===true)conditionIsSatisfied=false;else conditionIsSatisfied=true;if(conditionIsSatisfied===true&&condition._and)conditionIsSatisfied=evalCondition(condition._and);if(conditionIsSatisfied===false&&condition._or)conditionIsSatisfied=evalCondition(condition._or);return conditionIsSatisfied},evaluateContains=function(conditionType,condition){if(conditionType)return conditionType.indexOf(condition.value)!==-1;else return false},evaluateEquals=function(conditionType,condition){return conditionType==
condition.value},evaluateExists=function(conditionType){var objectExists=false;if(conditionType)objectExists=true;return objectExists},evaluateRegExp=function(conditionType,condition){return conditionType===undefined||conditionType===""?false:(new RegExp(conditionType)).test(condition.value)},fireEnvironmentChangeCallbacks=function(){var callbacksCount=environmentChangeCallbacks.length;for(var i=0;i<callbacksCount;i++)if(typeof environmentChangeCallbacks[i]==="function")environmentChangeCallbacks[i](activeEnvironment)},
getActiveEnvironment=function(){return activeEnvironment},getActiveLocale=function(){return activeEnvironment.languageCode},getAvailableLocales=function(){var availableLocales=[];for(var i=0;i<environmentsCount;i++)availableLocales.push(environmentConfigs[i].languageCode);return availableLocales},getCookie=function(key){var match=document.cookie.match(new RegExp(key+"\x3d([^;]+)"));if(match)return match[1]},getDefaultEnvironment=function(){var environment=null;for(var i=0;i<environmentConfigs.length;i++)if(defaultEnvName&&
environmentConfigs[i].name==defaultEnvName){environment=environmentConfigs[i];break}return environment},getEnvironmentByConditions=function(){var locale=utilities.getBrowserLocale();for(var i=0;i<environmentsCount;i++)if(hasConditions(environmentConfigs[i])){if(evalCondition(environmentConfigs[i].condition))return environmentConfigs[i]}else if(localeMatches(environmentConfigs[i],locale))return environmentConfigs[i];return null},hasConditions=function(environment){return environment.condition&&environment.condition.type&&
environment.condition.operator},getEnvironmentByLocale=function(locale){var environment=null;for(var i=0;i<environmentsCount;i++)if(localeMatches(environmentConfigs[i],locale))environment=environmentConfigs[i];return environment},localeMatches=function(environment,locale){if(environment)if(environment.languageCode===locale)return true;else{var trimmedLocale=locale.split("-");var language=trimmedLocale[0];if(environment.languageCode===language)return true}return false},getEnvironmentByLocaleCookie=
function(){var environment=null;var cookieVal=this.cookieManager.getCookie("LOCALE");if(cookieVal)environment=getEnvironmentByLocale(cookieVal);return environment},initializeActiveEnvironment=function(){var environment=null;environment=getEnvironmentByLocaleCookie();if(!environment)environment=getEnvironmentByConditions();if(!environment)environment=getDefaultEnvironment();if(environment&&environment.translation){environment.translation.save=environment.translation.save||"SAVE";environment.translation.cancel=
environment.translation.cancel||"CANCEL";environment.translation.close=environment.translation.close||"CLOSE"}activeEnvironment=environment},registerEnvironmentChangeCallback=function(callback){environmentChangeCallbacks.push(callback)},setEnvironment=function(locale){if(environmentExists(locale)){var oldCookies=cookieManager.getCookiesFromTypes(["LOCALE"]);cookieManager.setCookie("LOCALE",locale);var newCookies=cookieManager.getCookiesFromTypes(["LOCALE"]);consentReporter.sendReport(oldCookies,newCookies);
activeEnvironment=getEnvironmentByLocale(locale);fireEnvironmentChangeCallbacks(activeEnvironment)}else if(!locale){initializeActiveEnvironment();activeEnvironment=getActiveEnvironment();fireEnvironmentChangeCallbacks(activeEnvironment)}},init=function(){initializeActiveEnvironment()}();return{environmentExists:environmentExists,clearEnvironment:clearEnvironment,getActiveEnvironment:getActiveEnvironment,getActiveLocale:getActiveLocale,getAvailableLocales:getAvailableLocales,registerEnvironmentChangeCallback:registerEnvironmentChangeCallback,
evalCondition:evalCondition,setEnvironment:setEnvironment}};var DataGovernanceManager=function(dataMonitoring,data){var blockURLParamsRegex=function(){return utilities.arrayToRegex(data.blockURLParamsRegex)}();var dataMonitoringAllowedDomainsRegex=function(){return utilities.arrayToRegex(data.domainsAllowed)}();function allowRequest(request,hostName){var dataMonitoringCheckPasses=true;var url=request.destination;if(dataMonitoring){dataMonitoringCheckPasses=false;var decodedURLString=utilities.decodeUriComponent(url);
dataMonitoringCheckPasses=!blockURLParamsRegex.test(decodedURLString);if(dataMonitoringCheckPasses===false)dataMonitoringCheckPasses=dataMonitoringAllowedDomainsRegex.test(hostName);if(!dataMonitoringCheckPasses)request.addReason("DATA_MONITORING")}return dataMonitoringCheckPasses}function editQueryString(queryString,replacementStringChars){var replacementString=replacementStringChars||"~~~~~~~~~~~~~~~~~~~~";if(replacementStringChars==="")replacementString="";var newStringVal=utilities.decodeUriComponent(queryString);
if(newStringVal!==""&&blockURLParamsRegex.test&&blockURLParamsRegex.test(newStringVal)){newStringVal=newStringVal.replace(blockURLParamsRegex,replacementString);newStringVal=editQueryString(newStringVal,replacementString)}return newStringVal}function getMaskedDataString(dataMonitoringString){var newStringVal=editQueryString(dataMonitoringString,"~~~~~~~~~~");return newStringVal}function getRedactedDataString(dataMonitoringString){var newStringVal=editQueryString(dataMonitoringString,"");return newStringVal}
function shouldMaskData(request){var shouldMask=false;if(data.mode==="mask"&&request.numReasons()===1&&request.hasReason("DATA_MONITORING"))shouldMask=true;return shouldMask}function shouldRedactData(request){var shouldMask=false;if(data.mode==="redact"&&request.numReasons()===1&&request.hasReason("DATA_MONITORING"))shouldMask=true;return shouldMask}return{allowRequest:allowRequest,getMaskedDataString:getMaskedDataString,getRedactedDataString:getRedactedDataString,shouldMaskData:shouldMaskData,shouldRedactData:shouldRedactData}};
var BusinessRulesManager=function(gatewayData){var init=function(){setStaticVals()},shouldGetEnterpriseModal=false,shouldGetPrivacyModal=false,setShouldGetEnterpriseModal=function(){shouldGetEnterpriseModal=gatewayData.libraryPackage==="enterprise"},setShouldGetPrivacyModal=function(){shouldGetPrivacyModal=gatewayData.libraryPackage&&gatewayData.libraryPackage==="privacy"},setStaticVals=function(){setShouldGetEnterpriseModal();setShouldGetPrivacyModal()};init();return{shouldGetEnterpriseModal:shouldGetEnterpriseModal,
shouldGetPrivacyModal:shouldGetPrivacyModal}};var PathFilterManager=function(activeList,shouldAddCategoryToList){var shouldAddCategoryToList=shouldAddCategoryToList,tagsWithFiltersRegEx,tagsWithAllowPaths=[],tagsWithBlockPaths=[];var allowRequest=function(domain,path,targetListCheckPasses){var allowRequest=targetListCheckPasses;if(tagsWithFiltersRegEx.test(domain)){if(path==="")return allowRequest;for(var tagsWithAllowPathsCount=0;tagsWithAllowPathsCount<tagsWithAllowPaths.length;tagsWithAllowPathsCount++){var allowPathRegEx=
new RegExp(tagsWithAllowPaths[tagsWithAllowPathsCount]["tag"]);if(allowPathRegEx.test(domain)){var allowReg=[];allowReg=allowReg.concat(tagsWithAllowPaths[tagsWithAllowPathsCount]["paths"]);allowReg=utilities.arrayToRegex(allowReg);if(allowReg.test(path)){allowRequest=true;return allowRequest}else allowRequest=false}}for(var tagsWithBlockPathsCount=0;tagsWithBlockPathsCount<tagsWithBlockPaths.length;tagsWithBlockPathsCount++){var domainRegEx=new RegExp(tagsWithBlockPaths[tagsWithBlockPathsCount]["tag"]);
if(domainRegEx.test(domain)){var blockReg=[];blockReg=blockReg.concat(tagsWithBlockPaths[tagsWithBlockPathsCount]["paths"]);blockReg=utilities.arrayToRegex(blockReg);if(blockReg.test(path)){allowRequest=false;return allowRequest}else allowRequest=true}}}return allowRequest},buildPathFilterList=function(){var tagsWithFilters=[];var filteredCategoryList=[];for(var category in activeList){filteredCategoryList.push(activeList[category]);if(shouldAddCategoryToList(category))for(var categoryCount=0;categoryCount<
activeList[category].length;categoryCount++)if(activeList[category][categoryCount]["filter"]){tagsWithFilters.push(activeList[category][categoryCount]["tag"]);if(activeList[category][categoryCount]["filter"]==="blockPaths")tagsWithBlockPaths.push({tag:activeList[category][categoryCount]["tag"],paths:activeList[category][categoryCount]["paths"]});else if(activeList[category][categoryCount]["filter"]==="allowPaths")tagsWithAllowPaths.push({tag:activeList[category][categoryCount]["tag"],paths:activeList[category][categoryCount]["paths"]})}}tagsWithFiltersRegEx=
utilities.arrayToRegex(tagsWithFilters)},update=function(){buildPathFilterList()},init=function(){buildPathFilterList()};init();return{allowRequest:allowRequest,update:update}};var ListManager=function(environment,gatewayData,defaultCategory,cookieManager){var activeList,environment=environment,listRegex,pathFilterManager=null,usesPathFilter=false,usesWhiteList=true;var init=function(){setUsesWhitelist();setList();buildListRegex(environment)},buildListRegex=function(){var list=getList(),reg=[];var listUsesObject=
false;for(var cat in list)if(list[cat][0]&&typeof list[cat][0]==="object")listUsesObject=true;var addToList=function(listVals){if(listUsesObject)reg=reg.concat(getObjectsVals(list[listVals],"tag"));else reg=reg.concat(list[listVals])};for(var category in list)if(shouldAddToListRegex(category))addToList(category);listRegex=utilities.arrayToRegex(reg)},shouldAddToListRegex=function(category){var shouldAddToListRegex=false;if(category==defaultCategory){shouldAddToListRegex=true;return shouldAddToListRegex}if(usesWhiteList)if(this.cookieManager.getCookie(category)==
"1")shouldAddToListRegex=true;else{if(this.cookieManager.getCookie(category)!=="0"&&environmentOptsValEquals(category,1))shouldAddToListRegex=true}else if(this.cookieManager.getCookie(category)=="0")shouldAddToListRegex=true;else if(this.cookieManager.getCookie(category)!=="1"&&environmentOptsValEquals(category,0))shouldAddToListRegex=true;return shouldAddToListRegex},environmentOptsValEquals=function(opt,val){return environment&&environment.optVals[opt]==val},getObjectsVals=function(arrayOfObjects,
key){var arrayOfObjectVals=[];for(var i=0;i<arrayOfObjects.length;i++){var val=arrayOfObjects[i][key];arrayOfObjectVals.push(val);if(arrayOfObjects["filter"])usesPathFilter=true}if(usesPathFilter)pathFilterManager=new PathFilterManager(getList(),shouldAddToListRegex);return arrayOfObjectVals},getList=function(){return activeList},getListRegex=function(){return listRegex},getCategoryTranslations=function(category){if(environment.translation&&environment.translation.purposes)for(var i=0;i<category.length;i++){var translatedPurposes=
[];for(var j=0;j<category[i].purpose.length;j++)translatedPurposes.push(environment.translation.purposes[category[i].purpose[j]]);category[i].purpose=translatedPurposes}return category},getTranslatedList=function(){var fullList=getList(),translatedList=fullList;for(var category in fullList)if(category!=="default")translatedList[category]=getCategoryTranslations(fullList[category]);return translatedList},getUsesWhitelist=function(){return usesWhiteList},setUsesWhitelist=function(){if(environment&&
environment.hasOwnProperty("usesWhitelist"))usesWhiteList=environment.usesWhitelist;else if(gatewayData.featureToggles.hasOwnProperty("usesWhitelist"))usesWhiteList=gatewayData.featureToggles.usesWhitelist;else usesWhiteList=true},setList=function(){activeList=usesWhiteList===true?gatewayData.whitelist||{}:gatewayData.blacklist||{};if(!activeList.hasOwnProperty(defaultCategory)&&usesWhiteList===true)activeList[defaultCategory]=[];var listUsesObject=false;for(var cat in activeList)if(activeList[cat][0]&&
typeof activeList[cat][0]==="object")listUsesObject=true;if(listUsesObject&&usesWhiteList){activeList[defaultCategory].push({tag:location.hostname});activeList[defaultCategory].push({tag:"ensighten.com"})}else if(usesWhiteList){activeList[defaultCategory].push(location.hostname);activeList[defaultCategory].push("ensighten.com")}},allowRequest=function(hostName,pathName,targetListCheckPasses){var listRegEx=getListRegex();var targetListCheckPasses=false;if(getUsesWhitelist()===false){if(listRegEx.test&&
!listRegEx.test(hostName))targetListCheckPasses=true}else if(listRegEx.test&&listRegEx.test(hostName))targetListCheckPasses=true;if(pathFilterManager)targetListCheckPasses=pathFilterManager.allowRequest(hostName,pathName,targetListCheckPasses,listRegEx);return targetListCheckPasses},updateListValues=function(){buildListRegex(environment);pathFilterManager.update()},updateEnvironment=function(newEnv){environment=newEnv;buildListRegex(newEnv);pathFilterManager.update()};init();return{getList:getList,
getListRegex:getListRegex,getTranslatedList:getTranslatedList,getUsesWhitelist:getUsesWhitelist,allowRequest:allowRequest,updateEnvironment:updateEnvironment,updateListValues:updateListValues}};var Banner=function(clientName,translation,cookieModal,cookieManager){var e=document.createElement("div");var bannerCopy=translation.notificationBannerContent;var bannerViewed=function(){var oldCookies=cookieManager.getCookiesFromTypes(["BANNER_VIEWED"]);cookieManager.setCookie("BANNER_VIEWED","1");var newCookies=
cookieManager.getCookiesFromTypes(["BANNER_VIEWED"]);consentReporter.sendReport(oldCookies,newCookies)};var checkCopyForLinks=function(){bannerCopy=bannerCopy.replace(/{{/i,"\x3cspan id\x3d'ensModalLink' class\x3d'ensModalLink'\x3e");bannerCopy=bannerCopy.replace(/}}/i,"\x3c/span\x3e")};var closeEnsBanner=function(){bannerViewed();var banner=document.getElementById("ensNotifyBanner");banner.style.display="none"};var ensBannerShowModal=function(){closeEnsBanner();if(cookieModal.openModal)cookieModal.openModal()};
var openBannerCheck=function(){var ensBannerHasBeenViewed=cookieManager.getCookie("BANNER_VIEWED");if(!ensBannerHasBeenViewed)openEnsBanner()};var openEnsBanner=function(){var banner=document.getElementById("ensNotifyBanner");banner.style.display="block";var parentWidth=window.innerWidth/2;var elementWidth=parseInt(window.getComputedStyle(banner).width)/2;banner.style.left=parentWidth-elementWidth+"px"};var styleString=""+".ensNotifyBanner{"+"background-color: #191B23;"+"color: #EDEDED;"+"opacity: 0.8;"+
"width:60%;"+"border-radius: 10px;"+"padding:20px;"+"font-family: Roboto, 'Helvetica Neue', Helvetica, Arial;"+"position: fixed;"+"bottom:50px;"+"display: none;"+"z-index: 9999;"+"}"+".ensButtons{"+"clear: both;"+"margin-top: 15px;"+"float: right;"+"}"+".ensButtons .button{"+"display: inline-block;"+"position: relative;"+"width: 120px;"+"height: 32px;"+"line-height: 32px;"+"border-radius: 2px;"+"font-size: 0.9em;"+"background-color: #fff;"+"color: #646464;"+"margin-left: 20px;"+"text-align: center;"+
"}"+".ensButtons .button{"+"cursor: pointer;"+"}"+".ensButtons .button.grey {"+"background-color: #eee;"+"}"+".ensButtons .button.blue {"+"background-color: #4285f4;"+"color: #fff;"+"}"+".ensButtons .button.raised {"+"transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);"+"transition-delay: 0.2s;"+"box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);"+"}"+".ensButtons .button.raised:active {"+"box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);"+"transition-delay: 0s;"+"}"+".ensClear{"+" clear:both;"+"}"+".ensModalLink{"+
"  cursor: pointer;"+" text-decoration: underline;"+"}"+".ensModalLink:hover{"+"  color: #4285f4;"+"}";var setBannerCopy=function(copy){bannerCopy=copy;checkCopyForLinks()};var setBannerMarkup=function(translation){bannerMarkup="\x3cdiv id\x3d'ensNotifyBanner' class\x3d'ensNotifyBanner'\x3e"+"\x3cdiv\x3e"+bannerCopy+"\x3c/div\x3e"+"\x3cdiv class\x3d'ensButtons'\x3e"+"\x3cdiv id\x3d'ensCloseBanner' class\x3d'button raised blue'\x3e"+translation.close+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3cdiv class\x3d'ensClear'\x3e\x3c/div\x3e"+
"\x3c/div\x3e"};var getBannerMarkup=function(){return bannerMarkup};var update=function(env){var banner=document.getElementById("ensNotifyBanner");var modal=document.getElementById("ensModalWrapper");bannerDisplayStyle=banner.style.display;modalDisplayStyle=modal.style.display;setBannerCopy(env.translation.notificationBannerContent);setBannerMarkup(env.translation);e.innerHTML=bannerMarkup;if(bannerDisplayStyle==="block")openEnsBanner();if(modalDisplayStyle==="block")ensBannerShowModal();var openModalLink=
document.getElementsByClassName("ensModalLink");var closeBannerButton=document.getElementById("ensCloseBanner");for(var i=0;i<openModalLink.length;i++)openModalLink[i].addEventListener("click",ensBannerShowModal);closeBannerButton.addEventListener("click",closeEnsBanner)};var init=function(){checkCopyForLinks();setBannerMarkup(translation);e.innerHTML=bannerMarkup;var injectBanner=function(){setTimeout(function(){document.body.insertBefore(e,document.body.lastChild);utilities.addStyleElement(styleString);
var openModalLink=document.getElementsByClassName("ensModalLink");var closeBannerButton=document.getElementById("ensCloseBanner");for(var i=0;i<openModalLink.length;i++)openModalLink[i].addEventListener("click",ensBannerShowModal);closeBannerButton.addEventListener("click",closeEnsBanner);openBannerCheck()},100)};utilities.domReady(injectBanner)}();var testObject={bannerViewed:bannerViewed,ensBannerShowModal:ensBannerShowModal};return{closeEnsBanner:closeEnsBanner,openEnsBanner:openEnsBanner,update:update}};
var ConsentModal=function(gatewayData,environment,tagPurposes,cookieManager,updateLists,consentReporter){var styleString=""+".ensCenter{"+"text-align: center;"+"}"+"#ensModalWrapper{"+"border: 1px solid #333;"+"position: fixed;"+"max-width: 60%;"+"border: 1px solid #000;"+"display: block;"+"box-shadow: 5px 5px 5px grey;"+"background-color:#fff;"+"padding: 20px 0;"+"z-index: 9999;"+"}"+".ensModal {"+"font-family: Roboto, 'Helvetica Neue', Helvetica, Arial;"+"min-width: 400px;"+"max-width: 400px;"+
"}"+".ensModal input[type\x3d'checkbox'] {"+"display: none;"+"}"+".ensModal input[type\x3d'checkbox']:checked ~ .toggle {"+"background: #fff;"+"left: 36px;"+"transition: .5s;"+"}"+".ensModal input[type\x3d'checkbox']:checked ~ .switch {"+"background: #43A047;"+"transition: .5s;"+"}"+".ensModal .switch {"+"display: block;"+"width: 50px;"+"height: 15px;"+"background: #939393;"+"border-radius: 10px;"+"position: absolute;"+"top: 0;"+"transition: .5s;"+"}"+".ensModal .toggle {"+"height: 17px;"+"width: 17px;"+
"border-radius: 50%;"+"background: white;"+"position: absolute;"+"top: -2px;"+"left: -2px;"+"box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);"+"transition: .5s;"+"}"+".ensModal .card {"+"display: inline-block;"+"margin: 9px;"+"margin: 5px;"+"width: 50px;"+"height: 20px;"+"text-align: center;"+"position: relative;"+"float:right;"+"}"+".ensModal{"+"font-size: 18px;"+"color: #333;"+"padding: 20px 20px 0px 20px;"+"}"+".ensToggleRow{"+"margin-bottom: 10px;"+"}"+".ensToggleLabel{"+"margin-right: 5px;"+"}"+".ensButtons{"+
"clear: both;"+"margin-top: 15px;"+"float: right;"+"}"+".ensButtons .button{"+"display: inline-block;"+"position: relative;"+"width: 120px;"+"height: 32px;"+"line-height: 32px;"+"border-radius: 2px;"+"font-size: 0.9em;"+"background-color: #fff;"+"color: #646464;"+"margin-left: 20px;"+"}"+".ensButtons .button.grey {"+"background-color: #eee;"+"}"+".ensButtons .button.blue {"+"background-color: #4285f4;"+"color: #fff;"+"}"+".ensButtons .button.raised {"+"transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);"+
"transition-delay: 0.2s;"+"box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);"+"}"+".ensButtons .button.raised:active {"+"box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);"+"transition-delay: 0s;"+"}"+".ensModal .ensTitle {"+"margin:5px;"+"width:95%;"+"color: #74736F;"+"position: absolute;"+"top:-5px;"+"left:-5px;"+"padding-left:5%;"+"padding-top:13px;"+"padding-bottom: 3px;"+"text-align: center;"+"}"+".ensModal .consentDescription {"+"color:#333;"+"font-size: 14px;"+"}"+".ensModal hr {"+"color: #C5C5C5"+"}"+
".ensModal .description {"+"max-width:600px;"+"font-size: 12px;"+"marin-top:15px;"+"clear: both;"+"}"+".mdl-shadow--2dp {"+"box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);"+"}"+".mdl-data-table {"+"position: relative;"+"border: 1px solid rgba(0,0,0,.12);"+"border-collapse: collapse;"+"white-space: nowrap;"+"font-size: 13px;"+"background-color: #fff;"+"}"+".mdl-data-table thead {"+"padding-bottom: 3px;"+"}"+"tr{"+"display: table-row;"+"vertical-align: inherit;"+
"border-color: inherit;"+"}"+".mdl-data-table td:first-of-type, .mdl-data-table th:first-of-type {"+"padding-left: 24px;"+"}"+".mdl-data-table__cell--non-numeric.mdl-data-table__cell--non-numeric {"+"text-align: left;"+"}"+"tbody {"+"display: table-row-group;"+"vertical-align: middle;"+"border-color: inherit;"+"}"+".mdl-data-table tbody tr {"+"position: relative;"+"height: 48px;"+"transition-duration: .28s;"+"transition-timing-function: cubic-bezier(.4,0,.2,1);"+"transition-property: background-color;"+
"}"+".mdl-data-table td:first-of-type, .mdl-data-table th:first-of-type {"+"padding-left: 24px;"+"}"+".mdl-data-table td, .mdl-data-table td .mdl-data-table__select {"+"vertical-align: middle;"+"}"+".mdl-data-table td {"+"position: relative;"+"height: 48px;"+"border-top: 1px solid rgba(0,0,0,.12);"+"border-bottom: 1px solid rgba(0,0,0,.12);"+"padding: 12px 18px;"+"box-sizing: border-box;"+"}"+".mdl-data-table th {"+"position: relative;"+"vertical-align: bottom;"+"text-overflow: ellipsis;"+"font-weight: 700;"+
"line-height: 24px;"+"letter-spacing: 0;"+"height: 48px;"+"font-size: 12px;"+"color: rgba(0,0,0,.54);"+"padding-bottom: 8px;"+"box-sizing: border-box;"+"}"+".mdl-data-table th {"+"padding: 0 18px 12px 18px;"+"text-align: right;"+"}"+".mdl-navigation__link {"+"color: #424242;"+"margin: 0;"+"font-size: 14px;"+"font-weight: 400;"+"line-height: 24px;"+"letter-spacing: 0;"+"opacity: .87;"+"}";ensShowMore=function(){var showMoreLink=document.getElementById("ensShowMoreLink");var tagsTable=document.getElementById("ensTagsTable");
if(showMoreLink.innerText==="Show More"){showMoreLink.innerText="Show Less";tagsTable.style.display="block"}else{showMoreLink.innerText="Show More";tagsTable.style.display="none"}};var that=this;this.environment=environment;this.cookieVals=[];this.allowAll=function(){var clientName=gatewayData.info.name,oldCookies=cookieManager.getCookiesFromTypes(gatewayData.cookieTypes);for(var i=0;i<gatewayData.cookieTypes.length;i++)cookieManager.setCookie(gatewayData.cookieTypes[i],1);var newCookies=cookieManager.getCookiesFromTypes(gatewayData.cookieTypes);
consentReporter.sendReport(oldCookies,newCookies)};this.closeModal=function(){that.divElement.style.display="none"};this.denyAll=function(){var clientName=gatewayData.info.name,oldCookies=cookieManager.getCookiesFromTypes(gatewayData.cookieTypes);for(var i=0;i<gatewayData.cookieTypes.length;i++)cookieManager.setCookie(gatewayData.cookieTypes[i],0);var newCookies=cookieManager.getCookiesFromTypes(clientName,gatewayData.cookieTypes);consentReporter.sendReport(oldCookies,newCookies)};this.divElement=
document.createElement("div");this.getInnerModalString=function(){return""};this.init=function(){that.divElement.innerHTML=that.getModalHtmlString();utilities.domReady(that.injectModal)};this.injectModal=function(){utilities.addStyleElement(styleString);document.body.insertBefore(that.divElement,document.body.lastChild);that.setHTMLBindings();that.openModalCheck()};this.modalViewed=function(){var clientName=gatewayData.info.name,oldCookies=cookieManager.getCookiesFromTypes(["MODAL_VIEWED"]);var topLevelDomain=
document.location.hostname;cookieManager.setCookie("MODAL_VIEWED","1");var newCookies=cookieManager.getCookiesFromTypes(["MODAL_VIEWED"]);consentReporter.sendReport(oldCookies,newCookies)};this.openModal=function(){that.divElement.style.display="block";var parentWidth=window.innerWidth/2;var parentHeight=window.innerHeight/2;var modalObject=parseInt(window.getComputedStyle(that.divElement));var elementWidth=parseInt(window.getComputedStyle(that.divElement).width)/2;var elementHeight=parseInt(window.getComputedStyle(that.divElement).height)/
2;if(utilities.isIE8OrLower()){that.divElement.style.left="100px";that.divElement.style.top="100px"}else{that.divElement.style.left=parentWidth-elementWidth+"px";that.divElement.style.top=parentHeight-elementHeight+"px"}};this.openModalCheck=function(){var ensModalHasBeenViewed=cookieManager.getCookie("MODAL_VIEWED");if(!ensModalHasBeenViewed)that.openModal()};this.getModalHtmlString=function(){var modalHtmlString="\x3cdiv class\x3d'ensModal'\x3e"+"\x3cdiv class\x3d'ensTitle'\x3e"+that.environment.translation["consentTitle"]+
"\x3c/div\x3e"+"\x3cdiv class\x3d'consentDescription'\x3e"+that.environment.translation["consentDescription"]+"\x3c/div\x3e"+"\x3cdiv\x3e\x3c/div\x3e"+"\x3cbr\x3e"+"\x3cdiv style\x3d'float:right;'\x3e\x3ca class\x3d'mdl-navigation__link closed' onclick\x3d'ensShowMore()' id\x3d'ensShowMoreLink' href\x3d'#' style\x3d'text-decoration: underline;'\x3eShow More\x3c/a\x3e\x3c/div\x3e"+"\x3cdiv\x3e\x3cbr\x3e\x3cbr\x3e\x3c/div\x3e"+"\x3cdiv style\x3d'max-height:300px; overflow-y: scroll; max-width: 100%'\x3e"+
"\x3ctable id\x3d'ensTagsTable' class\x3d'mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp' style\x3d'display:none;'\x3e"+"\x3ctr\x3e\x3cth class\x3d'mdl-data-table__cell--non-numeric'\x3eTag\x3c/th\x3e\x3cth class\x3d'mdl-data-table__cell--non-numeric'\x3ePurposes\x3c/th\x3e\x3c/tr\x3e";for(var cat in tagPurposes)if(cat!=="default")for(var i=0;i<tagPurposes[cat].length;i++)modalHtmlString+="\x3ctr\x3e\x3ctd  class\x3d'mdl-data-table__cell--non-numeric'\x3e"+tagPurposes[cat][i].displayName+
"\x3c/td\x3e\x3ctd  class\x3d'mdl-data-table__cell--non-numeric'\x3e"+tagPurposes[cat][i].purpose.join(", ")+"\x3c/td\x3e\x3c/tr\x3e";modalHtmlString+="\x3c/table\x3e"+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3cdiv style\x3d'padding:0 20px;'\x3e"+that.getInnerModalString()+"\x3c/div\x3e"+"\x3cdiv style\x3d'clear:both; font-size:8px; text-align: center; padding-top:20px;'\x3e\x3ca href\x3d'https://www.ensighten.com/products/enterprise-tag-management/privacy/' target\x3d'_blank' style\x3d'text-decoration: none; color: #424242;'\x3eGDPR Compliance - Powered By Ensighten\x3c/a\x3e\x3c/div\x3e";
return modalHtmlString};this.setHTMLBindings=function(){};this.update=function(environment){that.environment=environment;that.divElement.innerHTML=that.getModalHtmlString()};this.divElement.id="ensModalWrapper";return this};var ConsentWidget=function(environment){var that=this;this.widgetString="";this.styleString=""+".consentWidget {"+"border-radius: 2px;"+"font-size:10px;"+"position: fixed;"+"bottom: 0px;"+"right: 5%;"+"cursor: default;"+"background-color: #323232;"+"z-index: 3;"+"display: block;"+
" font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;"+"}"+".consentWidget__text {"+"padding: 14px 12px;"+"vertical-align: middle;"+"color: #fff;"+"float: left;"+"}";this.divElement=document.createElement("div");this.divElement.id="ensConsentWidget";this.divElement.className="consentWidget";this.init=function(){that.setWidgetString(environment);that.divElement.innerHTML=that.getWidgetString();utilities.domReady(that.injectWidget)};this.update=function(environment){that.setWidgetString(environment);
that.divElement.innerHTML=that.getWidgetString()};this.setWidgetString=function(environment){that.widgetString="\x3cdiv class\x3d'consentWidget__text' id\x3d'consentWidget__text'\x3e"+environment.translation["consentWidgetCopy"]+"\x3c/div\x3e"};this.getWidgetString=function(){return that.widgetString};this.injectWidget=function(){setTimeout(function(){utilities.addStyleElement(that.styleString);document.body.insertBefore(that.divElement,document.body.lastChild);that.setHTMLBindings()},100)};this.setHTMLBindings=
function(){document.getElementById("ensConsentWidget").addEventListener("click",updateConsent);function updateConsent(){if(Bootstrapper.gateway.openModal)Bootstrapper.gateway.openModal()}};this.init();return this};var NoTogglesConsentModal=function(gatewayData,environment,tagPurposes,cookieManager,updateLists,consentReporter){var modal=new ConsentModal(gatewayData,environment,tagPurposes,cookieManager,[],consentReporter);modal.getInnerModalString=function(){return"\x3cdiv class\x3d'ensButtons'\x3e"+
"\x3cdiv  id\x3d'ensDeny'  class\x3d'button raised grey'\x3e"+"\x3cdiv class\x3d'ensCenter'\x3e"+environment.translation.deny+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3cdiv id\x3d'ensAllow' class\x3d'button raised blue'\x3e"+"\x3cdiv class\x3d'ensCenter' fit\x3e"+environment.translation.allow+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"};modal.setHTMLBindings=function(){var allowButton=document.getElementById("ensAllow");
var denyButton=document.getElementById("ensDeny");if(utilities.isIE8OrLower()){allowButton.attachEvent("onclick",function(){modal.allowAll();modal.modalViewed();updateLists()});denyButton.attachEvent("onclick",function(){modal.denyAll();modal.modalViewed();updateLists()})}else{allowButton.addEventListener("click",function(){modal.allowAll();modal.closeModal();modal.modalViewed();updateLists()});denyButton.addEventListener("click",function(){modal.denyAll();modal.closeModal();modal.modalViewed();updateLists()})}};
modal.init();return modal};var CookieModal=function(cookieTypes,defaultEnvOptVals,clientName,translation,showTrustedDomains,cookieManager,updateLists,consentReporter){var e=document.createElement("div");e.id="ensModalWrapper";var cookieVals=[];var modalHtmlString="";var getCurrentCookieVal=function(key){var checkBox=document.getElementById(key+"Slide");var retVal=0;if(checkBox.checked)retVal=1;return retVal};var init=function(){setModalHtmlString(defaultEnvOptVals,translation);e.innerHTML=getModalHtmlString();
var injectModal=function(){setTimeout(function(){utilities.addStyleElement(styleString);document.body.insertBefore(e,document.body.lastChild);var saveButton=document.getElementById("ensSave");if(utilities.isIE8OrLower())saveButton.attachEvent("onclick",function(){saveNewCookieValues();updateLists()});else saveButton.addEventListener("click",function(){saveNewCookieValues();updateLists()})},100)};utilities.domReady(injectModal)};var saveNewCookieValues=function(){var oldCookies=cookieManager.getCookiesFromTypes(cookieTypes);
for(var i=0;i<cookieTypes.length;i++)cookieManager.setCookie(cookieTypes[i],getCurrentCookieVal(cookieTypes[i]));var newCookies=cookieManager.getCookiesFromTypes(cookieTypes);consentReporter.sendReport(oldCookies,newCookies);closeModal()};var cookieTypesCount=cookieTypes.length;var openModal=function(){e.style.display="block";var parentWidth=window.innerWidth/2;var parentHeight=window.innerHeight/2;var modalObject=parseInt(window.getComputedStyle(e));var elementWidth=parseInt(window.getComputedStyle(e).width)/
2;var elementHeight=parseInt(window.getComputedStyle(e).height)/2;if(utilities.isIE8OrLower()){e.style.left="100px";e.style.top="100px"}else{e.style.left=parentWidth-elementWidth+"px";e.style.top=parentHeight-elementHeight+"px"}};var closeModal=function(){e.style.display="none"};var shouldOptBeChecked=function(defaultVal,cookieKey){var shouldBeChecked="";var localCookieVal=cookieManager.getCookie(cookieKey);if(defaultVal==1||localCookieVal=="1")shouldBeChecked=" checked ";if(!localCookieVal&&defaultVal!=
1||localCookieVal=="0"&&defaultVal==1)shouldBeChecked="";return shouldBeChecked};var styleString=""+".ensCenter{"+"text-align: center;"+"}"+"#ensModalWrapper{"+"border: 1px solid #333;"+"position: fixed;"+"max-width: 80%;"+"border: 1px solid #000;"+"display: none;"+"box-shadow: 5px 5px 5px grey;"+"background-color:#fff;"+"padding: 20px 0;"+"z-index: 9999;"+"}"+".ensModal {"+"font-family: Roboto, 'Helvetica Neue', Helvetica, Arial;"+"}"+".ensModal input[type\x3d'checkbox'] {"+"display: none;"+"}"+
".ensModal input[type\x3d'checkbox']:checked ~ .toggle {"+"background: #fff;"+"left: 36px;"+"transition: .5s;"+"}"+".ensModal input[type\x3d'checkbox']:checked ~ .switch {"+"background: #43A047;"+"transition: .5s;"+"}"+".ensModal .switch {"+"display: block;"+"width: 50px;"+"height: 15px;"+"background: #939393;"+"border-radius: 10px;"+"position: absolute;"+"top: 0;"+"transition: .5s;"+"}"+".ensModal .toggle {"+"height: 17px;"+"width: 17px;"+"border-radius: 50%;"+"background: white;"+"position: absolute;"+
"top: -2px;"+"left: -2px;"+"box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);"+"transition: .5s;"+"}"+".ensModal .card {"+"display: inline-block;"+"margin: 9px;"+"margin: 5px;"+"width: 50px;"+"height: 20px;"+"text-align: center;"+"position: relative;"+"float:right;"+"}"+".ensModal{"+"font-size: 18px;"+"color: #333;"+"padding: 20px;"+"}"+".ensToggleRow{"+"margin-bottom: 10px;"+"}"+".ensToggleLabel{"+"margin-right: 5px;"+"}"+".ensButtons{"+"clear: both;"+"margin-top: 15px;"+"float: right;"+"}"+".ensButtons .button{"+
"display: inline-block;"+"position: relative;"+"width: 120px;"+"height: 32px;"+"line-height: 32px;"+"border-radius: 2px;"+"font-size: 0.9em;"+"background-color: #fff;"+"color: #646464;"+"margin-left: 20px;"+"}"+".ensButtons .button.grey {"+"background-color: #eee;"+"}"+".ensButtons .button.blue {"+"background-color: #4285f4;"+"color: #fff;"+"}"+".ensButtons .button.raised {"+"transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);"+"transition-delay: 0.2s;"+"box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);"+
"}"+".ensButtons .button.raised:active {"+"box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);"+"transition-delay: 0s;"+"}"+".ensModal .ensTitle {"+"margin:5px;"+"width:95%;"+"color: #74736F;"+"position: absolute;"+"top:-5px;"+"left:-5px;"+"padding-left:5%;"+"padding-top:13px;"+"padding-bottom: 3px;"+"text-align: center;"+"}"+".ensModal .consentDescription {"+"color:#333;"+"font-size: 14px;"+"}"+".ensModal hr {"+"color: #C5C5C5"+"}"+".ensModal .description {"+"max-width:600px;"+"font-size: 12px;"+"marin-top:15px;"+
"clear: both;"+"}";var getModalHtmlString=function(){return modalHtmlString};var setModalHtmlString=function(optVals,translation){modalHtmlString=""+"\x3cdiv class\x3d'ensModal'\x3e"+"\x3cdiv class\x3d'ensTitle'\x3e"+translation["consentTitle"]+"\x3c/div\x3e"+"\x3cdiv class\x3d'consentDescription'\x3e"+translation["consentDescription"]+"\x3c/div\x3e"+"\x3chr\x3e";for(var propertyName in defaultEnvOptVals)cookieVals.push(defaultEnvOptVals[propertyName]);for(var prop in translation.cookies)if(showTrustedDomains===
true&&prop==="default")if(utilities.isIE8OrLower())modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensToggleRow' style\x3d'opacity: .5;'\x3e"+"\x3clabel class\x3d'ensToggleLabel'\x3e"+translation.cookies[prop]["title"]+"\x3cdiv class\x3d'card'\x3e"+"\x3cinput style\x3d'display:block;' class\x3d'ensCheckbox' type\x3d'checkbox' name\x3d'check'  disabled\x3d'disabled'  checked\x3d'checked'/\x3e"+"\x3c/div\x3e"+"\x3c/label\x3e"+"\x3cdiv class\x3d'description'\x3e"+translation.cookies[prop]["description"]+
"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3chr\x3e";else modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensToggleRow' style\x3d'opacity: .5;'\x3e"+"\x3clabel class\x3d'ensToggleLabel'\x3e"+translation.cookies[prop]["title"]+"\x3cdiv class\x3d'card'\x3e"+"\x3cinput class\x3d'ensCheckbox' type\x3d'checkbox' name\x3d'check'  disabled\x3d'disabled'  checked\x3d'checked'/\x3e"+"\x3cspan class\x3d'switch'\x3e\x3c/span\x3e\x3cspan class\x3d'toggle'\x3e\x3c/span\x3e"+"\x3c/div\x3e"+"\x3c/label\x3e"+"\x3cdiv class\x3d'description'\x3e"+
translation.cookies[prop]["description"]+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3chr\x3e";else if(utilities.isIE8OrLower())modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensToggleRow'\x3e"+"\x3clabel for\x3d'"+prop+"Slide' class\x3d'ensToggleLabel'\x3e"+translation.cookies[prop]["title"]+"\x3c/label\x3e"+"\x3cdiv class\x3d'card'\x3e"+"\x3cinput  style\x3d'display:block;' "+"type\x3d'checkbox' id\x3d'"+prop+"Slide' "+"name\x3d'"+prop+"Slide' "+shouldOptBeChecked(optVals[prop],prop)+"/\x3e"+"\x3c/div\x3e"+
"\x3cdiv class\x3d'description'\x3e"+translation.cookies[prop]["description"]+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3chr\x3e";else modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensToggleRow'\x3e"+"\x3clabel for\x3d'"+prop+"Slide' class\x3d'ensToggleLabel'\x3e"+translation.cookies[prop]["title"]+"\x3cdiv class\x3d'card'\x3e"+"\x3cinput class\x3d'ensCheckbox' "+"type\x3d'checkbox' id\x3d'"+prop+"Slide' "+"name\x3d'"+prop+"Slide' "+shouldOptBeChecked(optVals[prop],prop)+"/\x3e"+"\x3cspan class\x3d'switch'\x3e\x3c/span\x3e\x3cspan class\x3d'toggle'\x3e\x3c/span\x3e"+
"\x3c/div\x3e"+"\x3c/label\x3e"+"\x3cdiv class\x3d'description'\x3e"+translation.cookies[prop]["description"]+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3chr\x3e";modalHtmlString=modalHtmlString+"\x3cdiv class\x3d'ensButtons'\x3e"+"\x3cdiv onclick\x3d'gateway.cookieModal.closeModal();' class\x3d'button raised grey'\x3e"+"\x3cdiv class\x3d'ensCenter'\x3e"+translation.cancel+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3cdiv id\x3d'ensSave' class\x3d'button raised blue'\x3e"+
"\x3cdiv class\x3d'ensCenter' fit\x3e"+translation.save+"\x3c/div\x3e"+"\x3cpaper-ripple fit\x3e\x3c/paper-ripple\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"+"\x3c/div\x3e"};var update=function(env){setModalHtmlString(env.optVals,env.translation);var modalString=getModalHtmlString();e.innerHTML=modalString;var saveButton=document.getElementById("ensSave");if(utilities.isIE8OrLower())saveButton.attachEvent("onclick",function(){saveNewCookieValues();updateLists()});else saveButton.addEventListener("click",function(){saveNewCookieValues();
updateLists()})};init();return{closeModal:closeModal,openModal:openModal,update:update}};function ConsentReporter(imageReference,environmentName,modalType,defaultOptions,clientId,clientName,publishPath,mode,cookiesTypes,gatewayVersion,enableReporting,options,nexusDomain,customReporter){var beaconCounter=0,version="1.0.0",nexusURL="//"+nexusDomain+"/privacy/v1/c/1.gif",instanceId=((1+Math.random())*268435456|0).toString(36);this.sendReport=function(oldCookies,newCookies){if(!enableReporting)return;
var beaconRootUrl=nexusURL;var beacon=imageReference;var encodedBeaconURL=beaconRootUrl+"?"+"n\x3d"+beaconCounter++ +"\x26c\x3d"+clientId+"\x26i\x3d"+instanceId;if(this.publishPath)encodedBeaconURL+="\x26p\x3d"+encodeURIComponent(this.publishPath);var settings={"modal":modalType,"environment":environmentName,"defaults":defaultOptions};var rawBody=this.buildBody(oldCookies,newCookies,settings);var encodedBody=this.generateReportString(rawBody);encodedBeaconURL+="\x26d\x3d"+encodedBody;beacon.src=encodedBeaconURL;
if(typeof customReporter=="function")this._executeCustomReporter(oldCookies,newCookies);return encodedBeaconURL};this.generateReportString=function(resources){var reportString=JSON.stringify(resources);return LZString.compressToEncodedURIComponent(reportString)};this.buildBody=function(oldCookies,newCookies,settings){var body={version:version,gateway:gatewayVersion,clientId:clientId,clientName:clientName,publishPath:publishPath,mode:mode,cookies:cookieManager.getCookiesFromTypes(cookiesTypes.concat(["MODAL_VIEWED",
"LOCALE","BANNER_VIEWED"])),dt:Date.now(),settings:settings};body.events=this.buildEvents(oldCookies,newCookies);return body};this.buildEvents=function(previousCookies,newCookies){var events=[];for(var cookieName in newCookies)if(previousCookies.hasOwnProperty(cookieName)){if(newCookies[cookieName]!==previousCookies[cookieName]){var event=this._buildEvent(cookieName,newCookies[cookieName]);events.push(event)}}else{var event=this._buildEvent(cookieName,newCookies[cookieName]);events.push(event)}return events};
this._buildEvent=function(cookieName,value){var event={"event":"cookieChanged","dt":Date.now()};event[utilities.cookieNameToCookieType(clientName,cookieName)]=value;return event};this._executeCustomReporter=function(oldCookies,newCookies){var events=this.buildEvents(oldCookies,newCookies);for(var index=0;index<events.length;index++){var event=events[index];var cookieName=Object.keys(event)[2];customReporter(cookieName,event[cookieName])}}}var ConsentUIManager=function(gatewayData,environment,businessRulesManager,
listManager,cookieManager,consentReporter){var consentModal=null;var init=function(){if(businessRulesManager.shouldGetPrivacyModal){var translatedPurposeList=listManager.getTranslatedList();consentModal=new NoTogglesConsentModal(gatewayData,environment,translatedPurposeList,cookieManager,listManager.updateListValues,consentReporter)}else if(businessRulesManager.shouldGetEnterpriseModal)consentModal=new CookieModal(gatewayData.cookieTypes,environment.optVals,gatewayData.info.name,environment.translation,
gatewayData.featureToggles.showTrustedDomains,cookieManager,listManager.updateListValues,consentReporter);else consentModal=new CookieModal(gatewayData.cookieTypes,environment.optVals,gatewayData.info.name,environment.translation,gatewayData.featureToggles.showTrustedDomains,cookieManager,listManager.updateListValues,consentReporter)},getConsentModal=function(){return consentModal};init();return{getConsentModal:getConsentModal}};var Gateway=function(gatewayData){var banner,dataGovernanceManager,businessRulesManager,
consentWidget,consentUIManager,environment,environmentManager,cookieDomain,cookieTypes=[],defaultCategory="default",gatewayHasEnvironment,listManager,log=gatewayData.privacyLog=[],modal={},options,pathFilterManager=null,showTrustedDomains=gatewayData.featureToggles.showTrustedDomains||false,reporter;gatewayData.dataMonitoring=gatewayData.dataMonitoring||{};gatewayData.dataMonitoring.blockURLParamsRegex=gatewayData.dataMonitoring.blockURLParamsRegex||[];gatewayData.dataMonitoring.mode=gatewayData.dataMonitoring.mode||
"block";gatewayData.featureToggles.enableDataMonitoring=gatewayData.featureToggles.enableDataMonitoring||false;gatewayData.dataMonitoring.domainsAllowed=gatewayData.dataMonitoring.domainsAllowed||[];modal.openModal=function(){if(gatewayHasEnvironment===false)throw new Error("Ensighten API Error: No gateway environment found, the modal cannot work without it.");else throw 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.");
};var history={before:{},complete:{}};var closeBanner=function(){try{banner.closeEnsBanner()}catch(err){throw new Error("Ensighten API error:  Your banner is not initialized in your client config "+err);}};options={clientName:gatewayData.info.name,enableFiltering:gatewayData.featureToggles.enableFiltering};function resetEnvironment(){utilities.deleteCookie(gatewayData.info.name,"LOCALE");environmentManager.setEnvironment();setEnvironment(environmentManager.getActiveEnvironment())}function allowRequest(req,
testLocation){var locationProtocol=testLocation||window.location.protocol;var url=req.destination,shouldAllowRequest=true,hostName=parseURLHost(url),pathName=parseURLPath(url),protocol=parseURLProtocol(url);var SSLCheckPasses=true;if(gatewayData.featureToggles.requireSSL===true){SSLCheckPasses=false;if(locationProtocol==="https:"&&protocol==="https:"||locationProtocol==="http:")SSLCheckPasses=true;if(!SSLCheckPasses)req.addReason("SSL")}var targetListCheckPasses=true;if(gatewayData.featureToggles.enableFiltering&&
gatewayHasEnvironment===true){targetListCheckPasses=false;targetListCheckPasses=listManager.allowRequest(hostName,pathName,targetListCheckPasses);if(!targetListCheckPasses)req.addReason("List")}var dataMonitoringCheckPasses=dataGovernanceManager.allowRequest(req,hostName);if(targetListCheckPasses===false||SSLCheckPasses===false||dataMonitoringCheckPasses===false)shouldAllowRequest=false;return shouldAllowRequest}function updateEnvironment(env){setEnvironment(env);if(gatewayData.featureToggles.enableConsentModal)modal.update(env);
if(gatewayData.featureToggles.enablePrivacyNotice)banner.update(env);if(gatewayData.featureToggles.consentWidget&&gatewayData.featureToggles.enableConsentModal)consentWidget.update(env);listManager.updateEnvironment(env)}function getLog(){if(window.JSON){for(var id in history.complete)log.push({resource:history.complete[id].request});if(console&&console.dir)console.dir(log);alert(JSON.stringify(log))}}function historyGarbageCollector(){for(var id in history.before){if(!history.before.hasOwnProperty(id))continue;
var timeStamp=+new Date;if(history.before[id].request!==undefined&&timeStamp-history.before[id].request.start>5E3){resourceComplete(history.before.nodeRef,id,"timeout");delete history.before[id]}}}function onBlock(request,node){var status="blocked";if(dataGovernanceManager.shouldMaskData(request))status="masked";if(dataGovernanceManager.shouldRedactData(request))status="redact";request.end=+new Date;request.status=status;history.complete[request.id]=new HistoryEntry(request,node);resourceComplete(node,
request.id,status);delete history.before[request.id]}function modalDomCleanup(){if(gatewayData.featureToggles.enableConsentModal){var domElement=document.getElementById("ensModalWrapper");domElement.parentElement.removeChild(domElement)}}function setOpenModal(clientDefinedOverrideFunction){modal.openModal=clientDefinedOverrideFunction;modalDomCleanup()}function openBanner(){try{banner.openEnsBanner()}catch(err){if(gatewayHasEnvironment===false)throw new Error("Ensighten API Error: No gateway environment found, the banner cannot work without it."+
err);else throw new Error("Ensighten API error:  Your banner is not initialzed in your client config "+err);}}function openModal(){try{modal.openModal()}catch(err){if(gatewayHasEnvironment===false)throw new Error("Ensighten API Error: No gateway environment found, the modal cannot work without it."+err);else throw new Error("Ensighten API error:  Your modal is not initialzed in your client config "+err);}}function onBefore(req,node){if(!node.__reference)history.before[req.id]=new HistoryEntry(req,
node);return allowRequest(req)}function createAnchorElement(url){if(url.indexOf("javascript:")!==-1)url=window.location;var a=Function.prototype.apply.call(gatewayData.ensCreateElement,document,["a"]);a.href=url;return a}function parseURLPath(url){var a=createAnchorElement(url);return a.pathname}function parseURLHost(url){var a=createAnchorElement(url);var hostname=a.hostname;if(hostname===""||hostname===undefined||hostname===null)hostname=location.hostname;return hostname}function parseURLProtocol(url){var a=
createAnchorElement(url);return a.protocol}function resourceComplete(node,id,status){id=id||node.__gateway;var before=history.before[id];if(!before)return false;var request=before.request;request.end=+new Date;request.status=status;history.complete[id]=new HistoryEntry(request,node);ensLogger.consoleLog("resourceComplete: ",status,": ",request);reporter.addResource(request);delete history.before[id]}function setEnvironment(env){environment=env}function getVersion(){return ensGatewayVersion.version}
var consentCookies={getCookie:function(cookieType){return cookieManager.getCookie(cookieType)},setCookie:function(cookieType,value){var clientName=gatewayData.info.name;var oldCookies=cookieManager.getCookiesFromTypes([cookieType]);cookieManager.setCookie(cookieType,value);var newCookies=cookieManager.getCookiesFromTypes([cookieType]);if(consentReporter!==null)consentReporter.sendReport(oldCookies,newCookies);if(gatewayData.featureToggles.enableConsentModal)modal.update(environment)},getCookieTypes:function(){return cookieTypes},
calculateCookieDomain:function(domain){return cookieManager.calculateCookieDomain(domain)},setCookieDomain:function(newCookieDomain){cookieManager.setCookieDomain(newCookieDomain)},getCookieDomain:function(){return cookieManager.getCookieDomain()}};var init=function(){cookieManager=new CookieManager(gatewayData.info.name,gatewayData.getCookie,gatewayData.setCookie);businessRulesManager=new BusinessRulesManager(gatewayData);environmentManager=new EnvironmentManager(document,gatewayData.environmentConfigs,
gatewayData.defaultEnv,gatewayData.info.name,cookieManager);setEnvironment(environmentManager.getActiveEnvironment());environmentManager.registerEnvironmentChangeCallback(updateEnvironment);listManager=new ListManager(environment,gatewayData,defaultCategory,cookieManager);environmentManager.registerEnvironmentChangeCallback(listManager.updateListValues);dataGovernanceManager=new DataGovernanceManager(gatewayData.featureToggles.enableDataMonitoring,gatewayData.dataMonitoring);if(environment){gatewayHasEnvironment=
true;consentReporter=new ConsentReporter(new window.Image,environment.name,gatewayData.libraryPackage,environment.optVals,gatewayData.info.clientId,gatewayData.info.name,gatewayData.info.publishPath,listManager.getUsesWhitelist()?"whitelist":"blacklist",gatewayData.cookieTypes,getVersion(),gatewayData.featureToggles.enableReporting,options,gatewayData.info.nexus||"nexus.ensighten.com",gatewayData.onConsent);cookieTypes=gatewayData.cookieTypes||function(){var result=[];for(var key in whitelist)if(key!==
defaultCategory)result.push(key);return result}();if(gatewayData.featureToggles.enableConsentModal){consentUIManager=new ConsentUIManager(gatewayData,environment,businessRulesManager,listManager,cookieManager,consentReporter);modal=consentUIManager.getConsentModal()}if(gatewayData.featureToggles.enablePrivacyNotice)banner=new Banner(gatewayData.info.name,environment.translation,modal,cookieManager);if(gatewayData.featureToggles.consentWidget&&gatewayData.featureToggles.enableConsentModal)consentWidget=
new ConsentWidget(environment)}else gatewayHasEnvironment=false;var options=null;reporter=new Reporter(window.Image,gatewayData.info.clientId,gatewayData.info.publishPath,listManager.getUsesWhitelist(),getVersion(),gatewayData.featureToggles.enableReporting,options,gatewayData.info.nexus||"nexus.ensighten.com");reporter.setCookies(getPrivacyCookies());log.push({location:window.location.href||null});log.push({cookie:document.cookie||null});if(!options)options={enableFiltering:false,enableObserving:true};
new MutationObserverFactory;elementObserver();writeObserver();writeLnObserver();setInterval(historyGarbageCollector,250);gatewayConfig.unbound.script=document.all&&!document.addEventListener}();function getPrivacyCookies(){var cookies={};function cookieHelper(key){var cookieVal=consentCookies.getCookie(key);if(cookieVal!==undefined)cookies[key]=cookieVal}var types=consentCookies.getCookieTypes();for(var i=0;i<types.length;i++)cookieHelper(types[i]);cookieHelper("MODAL_VIEWED");cookieHelper("BANNER_VIEWED");
cookieHelper("LOCALE");return cookies}testElements={allowRequest:allowRequest,parseURLPath:parseURLPath,parseURLHost:parseURLHost};return{cookieModal:modal,consentCookies:consentCookies,closeBanner:closeBanner,dataGovernanceManager:dataGovernanceManager,environment:environment,environmentManager:environmentManager,getLog:getLog,getVersion:getVersion,history:history,historyGarbageCollector:historyGarbageCollector,modal:modal,onBefore:onBefore,onBlock:onBlock,openBanner:openBanner,openModal:openModal,
options:options,reporter:reporter,resourceComplete:resourceComplete,resetEnvironment:resetEnvironment,setOpenModal:setOpenModal,updatePreferences:listManager.updateListValues,testElements:testElements}};var HistoryEntry=function(){function HistoryEntry(request,node){this.request=request;this.nodeRef=node}return HistoryEntry}();var Request=function(){function Request(destination){this.destination=destination||"";this.type=null;this.start=+new Date;this.end=-1;this.source=null;this.status=null;this.reasons=
[]}Request.prototype.addReason=function(reason){this.reasons.push(reason)};Request.prototype.hasReason=function(reason){if(this.reasons.length>0)return(new RegExp(this.reasons.join("|"))).test(reason);return false};Request.prototype.numReasons=function(){return this.reasons.length};return Request}();ensLogger=function(){var consoleLoggingEnabled=false,checkForConsoleLoggingParam=function(){var hash,queryStringObject={};var hashes=window.location.href.slice(window.location.href.indexOf("?")+1).split("\x26");
for(var i=0;i<hashes.length;i++){hash=hashes[i].split("\x3d");queryStringObject[hash[0]]=hash[1]}if(queryStringObject["ensLogger"]&&queryStringObject["ensLogger"]==="true")enableConsoleLogging()},disableConsoleLogging=function(){setConsoleLoggingState(false)},enableConsoleLogging=function(){setConsoleLoggingState(true)},getConsoleLoggingState=function(){return consoleLoggingEnabled},init=function(){checkForConsoleLoggingParam()},consoleLog=function(){if(consoleLoggingEnabled&&window.console)console.log(arguments)},
setConsoleLoggingState=function(state){consoleLoggingEnabled=state};init();return{disableConsoleLogging:disableConsoleLogging,enableConsoleLogging:enableConsoleLogging,getConsoleLoggingState:getConsoleLoggingState,consoleLog:consoleLog}}();var ensGatewayVersion=ensGatewayVersion||{};ensGatewayVersion["version"]="2.1.160";if(document.elementFromPoint){ensBrowserSupported=true;if(typeof Bootstrapper==="undefined")Bootstrapper={};gateway=new Gateway(ensClientConfig);Bootstrapper.gateway={closeBanner:gateway.closeBanner,
environment:gateway.environment,environmentExists:gateway.environmentManager.environmentExists,getActiveEnvironment:gateway.environmentManager.getActiveEnvironment,getActiveLocale:gateway.environmentManager.getActiveLocale,getAvailableLocales:gateway.environmentManager.getAvailableLocales,getCookie:gateway.consentCookies.getCookie,getCookieTypes:gateway.consentCookies.getCookieTypes,getVersion:gateway.getVersion,openBanner:gateway.openBanner,openModal:gateway.openModal,registerEnvironmentChangeCallback:gateway.environmentManager.registerEnvironmentChangeCallback,
resetEnvironment:gateway.resetEnvironment,setCookie:gateway.consentCookies.setCookie,setCookieDomain:gateway.consentCookies.setCookieDomain,setEnvironment:gateway.environmentManager.setEnvironment,setOpenModal:gateway.setOpenModal,updatePreferences:gateway.updatePreferences}}else ensBrowserSupported=false;if(!ensBrowserSupported&&ensClientConfig.browserNotSupportedURL&&ensClientConfig.browserNotSupportedURL!=="")window.location=ensClientConfig.browserNotSupportedURL;var privacyEnd}},2619243,[2619245],
545250,[545249]);Bootstrapper.getServerComponent(Bootstrapper.getExtraParams ? Bootstrapper.getExtraParams() : undefined);}})();