// For license information, see `https://lightning.cnn.com/launch/7be62238e4c3/97fa00444124/launch-2878c87af5e3.js`. window._satellite=window._satellite||{},window._satellite.container={buildInfo:{minified:!0,buildDate:"2024-03-29T16:29:48Z",turbineBuildDate:"2023-02-22T20:37:26Z",turbineVersion:"27.5.0"},environment:{id:"EN3e844b55c4454a57a423dd7b1405d5b7",stage:"production"},dataElements:{RSID:{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e=window.location.hostname,n=window.location.pathname,t={cnn:["cnn-adbp-domestic"],cnnamp:["cnn-adbp-domestic"],cnndev:["cnn-adbp-domestic-dev"],cnnintl:["cnn-adbp-domestic"],cnnintldev:["cnn-adbp-domestic-dev"],cnnesp:["cnn-adbp-esp"],cnnespdev:["cnn-adbp-esp-dev"],ireport:["cnn-adbp-domestic,cnnireport-adbp"],ireportdev:["cnn-adbp-domestic-dev,cnnireport-adbp-dev"],offsite:["cnn-adbp-offsite-domestic"],nativead:["cnn-adbp-domestic-nativead"],nativeaddev:["cnn-adbp-domestic-nativead-dev"],epu:["cnn-adbp-epu"]},r=["jcmsdev8.cnn.com","jcmsref.cnn.com","cnnpreview.cnn.com","ref.cnn.com","preview.cnn.com","dev.cnn.com","video.next.cnn.com","enable.next.cnn.com","stage.next.cnn.com","stage3.next.cnn.com","ref.next.cnn.com","terra.next.cnn.com","politics.next.cnn.com","edition.politics.next.cnn.com","sweet.next.cnn.com","cnnpreview.turner.com","stage.cnngo.com","travel.cnngo.com","dev.cnnv2.com","ref.cnnv2.com","stellar.cnn.com","qai.cnn.com","cnn.staging.perfectmarket.com","cnn.staging2.perfectmarket.com","beta-cronkite.cnnlabs.com","dev-facts-first.cnnlabs.com","darwin-dev.hope.ui","style.staging.cnn.io","dev-audioplayer-cnn.s3.amazonaws.com"],i=["training-es.stellar.cnn.com","espanol.stellar.cnn.com"],a="prod"==(((window.CNN||{}).omniture||{}).rs_flag||"")?t.cnn[0]:t.cnndev[0];if(-1!=e.indexOf("ireport.cnn.com")?a=t.ireport[0]:-1!=e.indexOf("ireportqa.cnn.com")?a=t.ireportdev[0]:-1!=n.indexOf("cnn-underscored")?a=-1!=e.indexOf("edition")?"edition.cnn.com"==e?t.cnnintl[0]:t.cnnintldev[0]:"www.cnn.com"==e||"us.cnn.com"==e?t.cnn[0]:t.cnndev[0]:-1!=e.indexOf("sponsorcontent.cnn.com")?a=t.nativead[0]:r.includes(e)?a=t.cnndev[0]:i.includes(e)?a=t.cnnespdev[0]:-1!=e.indexOf("cnnespanol.cnn.com")?a=t.cnnesp[0]:null!==e.match(/^(www|us|edition).cnn.com/)&&(a=t.cnn[0]),-1!==e.indexOf("fave.api.cnn.io")||-1!==e.indexOf("fave-api.cnn.com")){a=t.cnn[0];var o=window.self!==window.top?document.referrer:document.URL;void 0!==o&&-1!=o.indexOf("edition.cnn.com")&&(a=t.cnnintl[0]),-1!=n.indexOf("/v1/fav")?-1!=window.location.search.indexOf("?video=live/vr1")||(a=t.offsite[0]):-1!=n.indexOf("/v1/synacor")||-1!=n.indexOf("/v1/iluminar")?a=t.offsite[0]:-1!=n.indexOf("/v1/epu")?a=t.epu[0]:-1==n.indexOf("/v1/amp")&&-1==n.indexOf("/v1/cnneamp")&&-1==n.indexOf("/v1/fbia")||(a=t.cnnamp[0])}return window.CNNIntlVideo&&(a=t.cnnintl[0]),window.CNNOffSitePartner&&(a=t.offsite[0]),a}}}},extensions:{"adobe-analytics":{displayName:"Adobe Analytics",hostedLibFilesBaseUrl:"https://lightning.cnn.com/launch/7be62238e4c3/97fa00444124/09c6454f9df7/hostedLibFiles/EPbde2f7ca14e540399dcc1f8208860b7b/",settings:{orgId:"7FF852E2556756057F000101@AdobeOrg",libraryCode:{type:"custom",source:"https://lightning.cnn.com/launch/7be62238e4c3/97fa00444124/09c6454f9df7/EX1d194815a3a24f70a72344c972c1a2fa-libraryCode_source.min.js",trackerVariableName:"s"},trackerProperties:{currencyCode:"USD",trackInlineStats:!0,trackDownloadLinks:!0,trackExternalLinks:!0,linkDownloadFileTypes:["doc","docx","eps","jpg","png","svg","xls","ppt","pptx","pdf","xlsx","tab","csv","zip","txt","vsd","vxd","xml","js","css","rar","exe","wma","mov","avi","wmv","mp3","wav","m4v"]}},modules:{"adobe-analytics/src/lib/actions/setVariables.js":{name:"set-variables",displayName:"Set Variables",script:function(e,n,t,r){"use strict";var i=t("../sharedModules/getTracker"),a=t("../helpers/applyTrackerVariables");e.exports=function(e,n){return i().then((function(t){r.logger.info("Set variables on the tracker."),a(t,e.trackerProperties),e.customSetup&&e.customSetup.source&&e.customSetup.source.call(n.element,n,t)}),(function(e){r.logger.error("Cannot set variables: "+e)}))}}},"adobe-analytics/src/lib/sharedModules/getTracker.js":{script:function(e,n,t,r){"use strict";var i,a=t("@adobe/reactor-cookie"),o=t("@adobe/reactor-promise"),s=t("@adobe/reactor-window"),c=t("../helpers/settingsHelper"),l=t("../helpers/augmenters"),u=t("../helpers/applyTrackerVariables"),d=t("../helpers/loadLibrary"),p=t("../helpers/generateVersion")(r.buildInfo.turbineBuildDate),m="beforeSettings",f=r.getSharedModule("adobe-mcid","mcid-instance"),g=function(e){return!e||"true"===a.get(e)},v=function(e){return o.all(l.map((function(n){var t;try{t=n(e)}catch(e){setTimeout((function(){throw e}))}return o.resolve(t)}))).then((function(){return e}))},h=function(e){return f&&(r.logger.info("Setting MCID instance on the tracker."),e.visitor=f),e},y=function(e){return r.logger.info('Setting version on tracker: "'+p+'".'),void 0!==e.tagContainerMarker?e.tagContainerMarker=p:"string"==typeof e.version&&e.version.substring(e.version.length-5)!=="-"+p&&(e.version+="-"+p),e},b=function(e,n,t){return n.loadPhase===m&&n.source&&(r.logger.info("Calling custom script before settings."),n.source.call(s,t)),u(t,e||{}),n.loadPhase!==m&&n.source&&(r.logger.info("Calling custom script after settings."),n.source.call(s,t)),t},w=function(e,n){return c.isAudienceManagementEnabled(e)&&(n.loadModule("AudienceManagement"),r.logger.info("Initializing AudienceManagement module"),n.AudienceManagement.setup(e.moduleProperties.audienceManager.config)),n},_=(i=r.getExtensionSettings(),g(i.trackingCookieName)?d(i).then(v).then(h).then(y).then(b.bind(null,i.trackerProperties,i.customSetup||{})).then(w.bind(null,i)):o.reject("EU compliance was not acknowledged by the user."));e.exports=function(){return _}},name:"get-tracker",shared:!0},"adobe-analytics/src/lib/sharedModules/augmentTracker.js":{name:"augment-tracker",shared:!0,script:function(e,n,t){"use strict";var r=t("../helpers/augmenters");e.exports=function(e){r.push(e)}}},"adobe-analytics/src/lib/helpers/applyTrackerVariables.js":{script:function(e,n,t,r){"use strict";var i=t("@adobe/reactor-query-string"),a=t("@adobe/reactor-window"),o=/eVar([0-9]+)/,s=/prop([0-9]+)/,c=new RegExp("^(eVar[0-9]+)|(prop[0-9]+)|(hier[0-9]+)|campaign|purchaseID|channel|server|state|zip|pageType$"),l=function(e,n,t){return t.indexOf(e)===n},u=function(e,n,t){var r=Object.keys(n).filter(c.test.bind(c));return t&&r.push("events"),(r=r.concat((e.linkTrackVars||"").split(","))).filter((function(e,n){return"None"!==e&&e&&l(e,n,r)})).join(",")},d=function(e,n){var t=n.map((function(e){return e.name}));return(t=t.concat((e.linkTrackEvents||"").split(","))).filter((function(e,n){return"None"!==e&&l(e,n,t)})).join(",")},p=function(e,n,t){e[n]=t[n].join(",")},m=function(e,n,t){var r=t.dynamicVariablePrefix||"D=";t[n].forEach((function(n){var t;if("value"===n.type)t=n.value;else{var i=o.exec(n.value);if(i)t=r+"v"+i[1];else{var a=s.exec(n.value);a&&(t=r+"c"+a[1])}}e[n.name]=t}))},f={linkDownloadFileTypes:p,linkExternalFilters:p,linkInternalFilters:p,hierarchies:function(e,n,t){t[n].forEach((function(n){e[n.name]=n.sections.join(n.delimiter)}))},props:m,eVars:m,campaign:function(e,n,t){if("queryParam"===t[n].type){var r=i.parse(a.location.search);e[n]=r[t[n].value]}else e[n]=t[n].value},events:function(e,n,t){var r=t[n].map((function(e){var n=e.name;return e.id&&(n=[n,e.id].join(":")),e.value&&(n=[n,e.value].join("=")),n}));e[n]=r.join(",")}};e.exports=function(e,n){var t={};n=n||{},Object.keys(n).forEach((function(e){var r=f[e],i=n[e];r?r(t,e,n):t[e]=i})),t.events&&e.events&&e.events.length>0&&(t.events=e.events+","+t.events);var i=n&&n.events&&n.events.length>0,a=u(e,t,i);a&&(t.linkTrackVars=a);var o=d(e,n.events||[]);o&&(t.linkTrackEvents=o),r.logger.info('Applying the following properties on tracker: "'+JSON.stringify(t)+'".'),Object.keys(t).forEach((function(n){e[n]=t[n]}))}}},"adobe-analytics/src/lib/helpers/settingsHelper.js":{script:function(e,n,t,r){"use strict";var i=t("@adobe/reactor-window"),a={LIB_TYPES:{MANAGED:"managed",PREINSTALLED:"preinstalled",REMOTE:"remote",CUSTOM:"custom"},MANAGED_LIB_PATHS:{APP_MEASUREMENT:"AppMeasurement.js",ACTIVITY_MAP:"AppMeasurement_Module_ActivityMap.js",AUDIENCE_MANAGEMENT:"AppMeasurement_Module_AudienceManagement.js"},getReportSuites:function(e){var n=e.production;return e[r.buildInfo.environment]&&(n=e[r.buildInfo.environment]),n.join(",")},isActivityMapEnabled:function(e){return!(e.libraryCode&&!e.libraryCode.useActivityMap&&!1===e.libraryCode.useActivityMap)},isAudienceManagementEnabled:function(e){var n=!1;return e&&e.moduleProperties&&e.moduleProperties.audienceManager&&e.moduleProperties.audienceManager.config&&i&&i._satellite&&i._satellite.company&&i._satellite.company.orgId&&(n=!0),n}};e.exports=a}},"adobe-analytics/src/lib/helpers/augmenters.js":{script:function(e){"use strict";e.exports=[]}},"adobe-analytics/src/lib/helpers/loadLibrary.js":{script:function(e,n,t,r){"use strict";var i=t("@adobe/reactor-load-script"),a=t("@adobe/reactor-window"),o=t("@adobe/reactor-promise"),s=t("./settingsHelper"),c=t("./pollHelper"),l=function(e,n){if(!a.s_gi)throw new Error("Unable to create AppMeasurement tracker, `s_gi` function not found."+a.AppMeasurement);r.logger.info('Creating AppMeasurement tracker with these report suites: "'+n+'"');var t=a.s_gi(n);return e.libraryCode.scopeTrackerGlobally&&(r.logger.info("Setting the tracker as window.s"),a.s=t),t},u=function(e){var n=[];switch(e.libraryCode.type){case s.LIB_TYPES.MANAGED:n.push(r.getHostedLibFileUrl(s.MANAGED_LIB_PATHS.APP_MEASUREMENT)),s.isActivityMapEnabled(e)&&n.push(r.getHostedLibFileUrl(s.MANAGED_LIB_PATHS.ACTIVITY_MAP));break;case s.LIB_TYPES.CUSTOM:n.push(e.libraryCode.source);break;case s.LIB_TYPES.REMOTE:n.push("https:"===a.location.protocol?e.libraryCode.httpsUrl:e.libraryCode.httpUrl)}if(s.isAudienceManagementEnabled(e)){var t={namespace:a._satellite.company.orgId};e.moduleProperties.audienceManager.config.visitorService=t,n.push(r.getHostedLibFileUrl(s.MANAGED_LIB_PATHS.AUDIENCE_MANAGEMENT))}return n},d=function(e){return o.all(u(e).map((function(e){return r.logger.info("Loading script: "+e),i(e)})))},p=function(e,n){if(e.libraryCode.accounts)if(n.sa){var t=s.getReportSuites(e.libraryCode.accounts);r.logger.info('Setting the following report suites on the tracker: "'+t+'"'),n.sa(t)}else r.logger.warn("Cannot set report suites on tracker. `sa` method not available.");return n},m=function(e){if(a[e])return r.logger.info('Found tracker located at: "'+e+'".'),a[e];throw new Error('Cannot find the global variable name: "'+e+'".')};e.exports=function(e){var n=d(e);switch(e.libraryCode.type){case s.LIB_TYPES.MANAGED:var t=s.getReportSuites(e.libraryCode.accounts);return n.then(l.bind(null,e,t));case s.LIB_TYPES.PREINSTALLED:return n.then(c.poll.bind(null,a,e.libraryCode.trackerVariableName)).then(p.bind(null,e));case s.LIB_TYPES.CUSTOM:case s.LIB_TYPES.REMOTE:return n.then(m.bind(null,e.libraryCode.trackerVariableName)).then(p.bind(null,e));default:throw new Error("Cannot load library. Type not supported.")}}}},"adobe-analytics/src/lib/helpers/generateVersion.js":{script:function(e){"use strict";var n=8,t=function(e){return e.getUTCDate().toString(36)},r=function(e){return e.substr(e.length-1)},i=function(e){return Math.floor(e.getUTCHours()/n)},a=function(e){var n=(e.getUTCMonth()+1+12*i(e)).toString(36);return r(n)},o=function(e){return(e.getUTCFullYear()-2010).toString(36)};e.exports=function(e){var n=new Date(e);if(isNaN(n))throw new Error("Invalid date provided");return("L"+o(n)+a(n)+t(n)).toUpperCase()}}},"adobe-analytics/src/lib/helpers/pollHelper.js":{script:function(e,n,t,r){"use strict";var i=t("@adobe/reactor-promise"),a=40,o=250,s=function(e,n,t){r.logger.info('Found property located at: "'+n+'"].'),e(t)},c=function(e,n){return new i((function(t,r){if(e[n])return s(t,n,e[n]);var i=1,c=setInterval((function(){e[n]&&(s(t,n,e[n]),clearInterval(c)),i>=a&&(clearInterval(c),r(new Error('Bailing out. Cannot find the variable name: "'+n+'"].'))),i++}),o)}))};e.exports={poll:function(e,n){return r.logger.info('Waiting for the property to become accessible at: "'+n+'"].'),c(e,n)}}}}}},"adobe-mcid":{displayName:"Experience Cloud ID Service",hostedLibFilesBaseUrl:"https://lightning.cnn.com/launch/7be62238e4c3/97fa00444124/09c6454f9df7/hostedLibFiles/EPf0412a5c65e5429ab0e5ed8ba2256510/",settings:{orgId:"7FF852E2556756057F000101@AdobeOrg",variables:[{name:"trackingServer",value:"metrics.cnn.com"},{name:"trackingServerSecure",value:"smetrics.cnn.com"}],doesOptInApply:!0,isOptInStorageEnabled:!1},modules:{"adobe-mcid/src/lib/sharedModules/mcidInstance.js":{script:function(e,n,t,r){"use strict";var i=t("@adobe/reactor-document"),a=t("../codeLibrary/VisitorAPI"),o=t("../../view/utils/timeUnits"),s=function(e){return e.reduce((function(e,n){var t=/^(true|false)$/i.test(n.value)?JSON.parse(n.value):n.value;return e[n.name]=t,e}),{})},c=function(e){var n=r.getExtensionSettings();if("string"!=typeof n.orgId)throw new TypeError("Org ID is not a string.");var t=s(n.variables||[]),i=n.doesOptInApply;i&&("boolean"==typeof i?t.doesOptInApply=i:n.optInCallback&&(t.doesOptInApply=n.optInCallback));var a=n.isOptInStorageEnabled;a&&(t.isOptInStorageEnabled=a);var c=n.optInCookieDomain;c&&(t.optInCookieDomain=c);var l=n.optInStorageExpiry;if(l){var u=n.timeUnit;if(u&&o[u]){var d=l*o[u];t.optInStorageExpiry=d}}else!0===a&&(t.optInStorageExpiry=33696e3);var p=n.previousPermissions;p&&(t.previousPermissions=p);var m=n.preOptInApprovals;if(m)t.preOptInApprovals=m;else{var f=n.preOptInApprovalInput;f&&(t.preOptInApprovals=f)}var g=n.isIabContext;g&&(t.isIabContext=g);var v=e.getInstance(n.orgId,t);return r.logger.info('Created instance using orgId: "'+n.orgId+'"'),r.logger.info("Set variables: "+JSON.stringify(t)),v.getMarketingCloudVisitorID((function(e){r.logger.info("Obtained Marketing Cloud Visitor Id: "+e)}),!0),v},l=function(e){return(r.getExtensionSettings().pathExclusions||[]).some((function(n){return n.valueIsRegex?new RegExp(n.value,"i").test(e):n.value===e}))},u=null;_satellite.getVisitorId=function(){return u},l(i.location.pathname)?r.logger.warn("MCID library not loaded. One of the path exclusions matches the current path."):u=c(a),e.exports=u},name:"mcid-instance",shared:!0},"adobe-mcid/src/lib/codeLibrary/VisitorAPI.js":{script:function(e){e.exports=(function(){"use strict";function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function n(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t(){return{callbacks:{},add:function(e,n){this.callbacks[e]=this.callbacks[e]||[];var t=this.callbacks[e].push(n)-1,r=this;return function(){r.callbacks[e].splice(t,1)}},execute:function(e,n){if(this.callbacks[e]){n=(n=void 0===n?[]:n)instanceof Array?n:[n];try{for(;this.callbacks[e].length;){var t=this.callbacks[e].shift();"function"==typeof t?t.apply(null,n):t instanceof Array&&t[1].apply(t[0],n)}delete this.callbacks[e]}catch(e){}}},executeAll:function(e,n){(n||e&&!D.isObjectEmpty(e))&&Object.keys(this.callbacks).forEach((function(n){var t=void 0!==e[n]?e[n]:"";this.execute(n,t)}),this)},hasCallbacks:function(){return Boolean(Object.keys(this.callbacks).length)}}}function r(e,n,t){var r=null==e?void 0:e[n];return void 0===r?t:r}function i(e){for(var n=/^\d+$/,t=0,r=e.length;ti)return 1;if(i>r)return-1}return 0}function s(e,n){if(e===n)return 0;var t=e.toString().split("."),r=n.toString().split(".");return i(t.concat(r))?(a(t,r),o(t,r)):NaN}function c(e){return e===Object(e)&&0===Object.keys(e).length}function l(e){return"function"==typeof e||e instanceof Array&&e.length}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};this.log=ue("log",e,n),this.warn=ue("warn",e,n),this.error=ue("error",e,n)}function d(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cookieName,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cookies;if(!e||!n)return{get:Te,set:Te,remove:Te};var t={remove:function(){n.remove(e)},get:function(){var t=n.get(e),r={};try{r=JSON.parse(t)}catch(t){r={}}return r},set:function(r,i){i=i||{};var a=t.get(),o=Object.assign(a,r);n.set(e,JSON.stringify(o),{domain:i.optInCookieDomain||"",cookieLifetime:i.optInStorageExpiry||3419e4,expires:!0})}};return t}function p(e){this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}function m(){function e(e,n){var t=ge(e);return t.length?t.every((function(e){return!!n[e]})):ve(n)}function n(){I(N),T(ne.COMPLETE),v(g.status,g.permissions),s&&f.set(g.permissions,{optInCookieDomain:c,optInStorageExpiry:l}),h.execute(Ae)}function t(e){return function(t,r){if(!he(t))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return T(ne.CHANGED),Object.assign(N,ye(ge(t),e)),r||n(),g}}var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.doesOptInApply,a=r.previousPermissions,o=r.preOptInApprovals,s=r.isOptInStorageEnabled,c=r.optInCookieDomain,l=r.optInStorageExpiry,u=r.isIabContext,p=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cookies,m=Ie(a);ke(m,"Invalid `previousPermissions`!"),ke(o,"Invalid `preOptInApprovals`!");var f=d({cookieName:"adobeujs-optin"},{cookies:p}),g=this,v=ee(g),h=se(),y=_e(m),b=_e(o),w=s?f.get():{},_={},C=function(e,n){return Ce(e)||n&&Ce(n)?ne.COMPLETE:ne.PENDING}(y,w),S=function(e,n,t){var r=ye(oe,!i);return i?Object.assign({},r,e,n,t):r}(b,y,w),N=be(S),T=function(e){return C=e},I=function(e){return S=e};g.deny=t(!1),g.approve=t(!0),g.denyAll=g.deny.bind(g,oe),g.approveAll=g.approve.bind(g,oe),g.isApproved=function(n){return e(n,g.permissions)},g.isPreApproved=function(n){return e(n,b)},g.fetchPermissions=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n?g.on(ne.COMPLETE,e):Te;return!i||i&&g.isComplete||o?e(g.permissions):n||h.add(Ae,(function(){return e(g.permissions)})),t},g.complete=function(){g.status===ne.CHANGED&&n()},g.registerPlugin=function(e){if(!e||!e.name||"function"!=typeof e.onRegister)throw new Error(Ee);_[e.name]||(_[e.name]=e,e.onRegister.call(e,g))},g.execute=De(_),g.memoizeContent=function(e){Ne(e)&&f.set(e,{optInCookieDomain:c,optInStorageExpiry:l})},g.getMemoizedContent=function(e){var n=f.get();if(n)return n[e]},Object.defineProperties(g,{permissions:{get:function(){return S}},status:{get:function(){return C}},Categories:{get:function(){return te}},doesOptInApply:{get:function(){return!!i}},isPending:{get:function(){return g.status===ne.PENDING}},isComplete:{get:function(){return g.status===ne.COMPLETE}},__plugins:{get:function(){return Object.keys(_)}},isIabContext:{get:function(){return u}}})}function f(e,n){function t(){i=null,e.call(e,new p("The call took longer than you wanted!"))}function r(){i&&(clearTimeout(i),e.apply(e,arguments))}if(void 0===n)return e;var i=setTimeout(t,n);return r}function g(){if(window.__tcfapi)return window.__tcfapi;var e=window;if(e!==window.top){for(var n;!n;){e=e.parent;try{e.frames.__tcfapiLocator&&(n=e)}catch(e){}if(e===window.top)break}if(n){var t={};return window.__tcfapi=function(e,r,i,a){var o=Math.random()+"",s={__tcfapiCall:{command:e,parameter:a,version:r,callId:o}};t[o]=i,n.postMessage(s,"*")},window.addEventListener("message",(function(e){var n=e.data;if("string"==typeof n)try{n=JSON.parse(e.data)}catch(e){}if(n.__tcfapiReturn){var r=n.__tcfapiReturn;"function"==typeof t[r.callId]&&(t[r.callId](r.returnValue,r.success),delete t[r.callId])}}),!1),window.__tcfapi}me.error("__tcfapi not found")}else me.error("__tcfapi not found")}function v(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=!0===e.vendor.consents[n],i=t.every((function(n){return!0===e.purpose.consents[n]}));return r&&i}function h(){var e=this;e.name="iabPlugin",e.version="0.0.2";var n,t=se(),r={transparencyAndConsentData:null},i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r[e]=n};e.fetchConsentData=function(e){var n=f(e.callback,e.timeout);a({callback:n})},e.isApproved=function(e){var n=e.callback,t=e.category,i=e.timeout;if(r.transparencyAndConsentData)return n(null,v(r.transparencyAndConsentData,re[t],ie[t]));var o=f((function(e,r){n(e,v(r,re[t],ie[t]))}),i);a({category:t,callback:o})},e.onRegister=function(t){n=t;var r=Object.keys(re),i=function(e,n){!e&&n&&(r.forEach((function(e){var r=v(n,re[e],ie[e]);t[r?"approve":"deny"](e,!0)})),t.complete())};e.fetchConsentData({callback:i})};var a=function(e){var a=e.callback;if(r.transparencyAndConsentData)return a(null,r.transparencyAndConsentData);t.add("FETCH_CONSENT_DATA",a),o((function(e,a){if(a){var o=be(e),s=n.getMemoizedContent("iabConsentHash"),c=pe(o.tcString).toString(32);o.consentString=e.tcString,o.hasConsentChangedSinceLastCmpPull=s!==c,i("transparencyAndConsentData",o),n.memoizeContent({iabConsentHash:c})}t.execute("FETCH_CONSENT_DATA",[null,r.transparencyAndConsentData])}))},o=function(e){var n=Oe(re),t=g();"function"==typeof t&&t("getTCData",2,e,n)}}var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Object.assign=Object.assign||function(e){for(var n,t,r=1;r=0||n.indexOf("Trident/")>=0&&n.indexOf("Windows NT 6")>=0};t.getIeVersion=function(){return document.documentMode?document.documentMode:r()?7:null},t.encodeAndBuildRequest=function(e,n){return e.map(encodeURIComponent).join(n)},t.isObject=function(n){return null!==n&&"object"===e(n)&&!1===Array.isArray(n)},t.defineGlobalNamespace=function(){return window.adobe=t.isObject(window.adobe)?window.adobe:{},window.adobe},t.pluck=function(e,n){return n.reduce((function(n,t){return e[t]&&(n[t]=e[t]),n}),Object.create(null))},t.parseOptOut=function(e,n,t){n||(n=t,e.d_optout&&e.d_optout instanceof Array&&(n=e.d_optout.join(",")));var r=parseInt(e.d_ottl,10);return isNaN(r)&&(r=7200),{optOut:n,d_ottl:r}},t.normalizeBoolean=function(e){var n=e;return"true"===e?n=!0:"false"===e&&(n=!1),n}})),A=(D.isObjectEmpty,D.isValueEmpty,D.getIeVersion,D.encodeAndBuildRequest,D.isObject,D.defineGlobalNamespace,D.pluck,D.parseOptOut,D.normalizeBoolean,t),E=_.MESSAGES,x={0:"prefix",1:"orgID",2:"state"},L=function(e,n){this.parse=function(e){try{var n={};return e.data.split("|").forEach((function(e,t){void 0!==e&&(n[x[t]]=2!==t?e:JSON.parse(e))})),n}catch(e){}},this.isInvalid=function(t){var r=this.parse(t);if(!r||Object.keys(r).length<2)return!0;var i=e!==r.orgID,a=!n||t.origin!==n,o=-1===Object.keys(E).indexOf(r.prefix);return i||a||o},this.send=function(t,r,i){var a=r+"|"+e;i&&i===Object(i)&&(a+="|"+JSON.stringify(i));try{t.postMessage(a,n)}catch(e){}}},M=_.MESSAGES,j=function(e,n,t,r){function i(e){Object.assign(m,e)}function a(e){Object.assign(m.state,e),Object.assign(m.state.ALLFIELDS,e),m.callbackRegistry.executeAll(m.state)}function o(e){if(!v.isInvalid(e)){g=!1;var n=v.parse(e);m.setStateAndPublish(n.state)}}function s(e){!g&&f&&(g=!0,v.send(r,e))}function c(){i(new S(t._generateID)),m.getMarketingCloudVisitorID(),m.callbackRegistry.executeAll(m.state,!0),y.removeEventListener("message",l)}function l(e){if(!v.isInvalid(e)){var n=v.parse(e);g=!1,y.clearTimeout(m._handshakeTimeout),y.removeEventListener("message",l),i(new k(m)),y.addEventListener("message",o),m.setStateAndPublish(n.state),m.callbackRegistry.hasCallbacks()&&s(M.GETSTATE)}}function u(){f&&postMessage?(y.addEventListener("message",l),s(M.HANDSHAKE),m._handshakeTimeout=setTimeout(c,250)):c()}function d(){y.s_c_in||(y.s_c_il=[],y.s_c_in=0),m._c="Visitor",m._il=y.s_c_il,m._in=y.s_c_in,m._il[m._in]=m,y.s_c_in++}function p(){function e(e){0!==e.indexOf("_")&&"function"==typeof t[e]&&(m[e]=function(){})}Object.keys(t).forEach(e),m.getSupplementalDataID=t.getSupplementalDataID,m.isAllowed=function(){return!0}}var m=this,f=n.whitelistParentDomain;m.state={ALLFIELDS:{}},m.version=t.version,m.marketingCloudOrgID=e,m.cookieDomain=t.cookieDomain||"",m._instanceType="child";var g=!1,v=new L(e,f);m.callbackRegistry=A(),m.init=function(){d(),p(),i(new O(m)),u()},m.findField=function(e,n){if(void 0!==m.state[e])return n(m.state[e]),m.state[e]},m.messageParent=s,m.setStateAndPublish=a},U=_.MESSAGES,V=_.ALL_APIS,R=_.ASYNC_API_MAP,F=_.FIELDGROUP_TO_FIELD,B=function(e,n){function t(){var n={};return Object.keys(V).forEach((function(t){var r=V[t],i=e[r]();D.isValueEmpty(i)||(n[t]=i)})),n}function r(){var n=[];return e._loading&&Object.keys(e._loading).forEach((function(t){if(e._loading[t]){var r=F[t];n.push(r)}})),n.length?n:null}function i(n){return function t(){var i=r();if(i){var a=R[i[0]];e[a](t,!0)}else n()}}function a(e,r){var i=t();n.send(e,r,i)}function o(e){c(e),a(e,U.HANDSHAKE)}function s(e){i((function(){a(e,U.PARENTSTATE)}))()}function c(t){function r(r){i.call(e,r),n.send(t,U.PARENTSTATE,{CUSTOMERIDS:e.getCustomerIDs()})}var i=e.setCustomerIDs;e.setCustomerIDs=r}return function(e){n.isInvalid(e)||(n.parse(e).prefix===U.HANDSHAKE?o:s)(e.source)}},H=function(e,n){function t(e){return function(t){r[e]=t,++i===a&&n(r)}}var r={},i=0,a=Object.keys(e).length;Object.keys(e).forEach((function(n){var r=e[n];if(r.fn){var i=r.args||[];i.unshift(t(n)),r.fn.apply(r.context||null,i)}}))},G={get:function(e){e=encodeURIComponent(e);var n=(";"+document.cookie).split(" ").join(";"),t=n.indexOf(";"+e+"="),r=t<0?t:n.indexOf(";",t+1);return t<0?"":decodeURIComponent(n.substring(t+2+e.length,r<0?n.length:r))},set:function(e,n,t){var i=r(t,"cookieLifetime"),a=r(t,"expires"),o=r(t,"domain"),s=r(t,"secure"),c=r(t,"sameSite"),l=s?"Secure":"",u=c?"SameSite="+c+";":"";if(a&&"SESSION"!==i&&"NONE"!==i){var d=""!==n?parseInt(i||0,10):-60;if(d)(a=new Date).setTime(a.getTime()+1e3*d);else if(1===a){var p=(a=new Date).getYear();a.setYear(p+2+(p<1900?1900:0))}}else a=0;return e&&"NONE"!==i?(document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+"; path=/;"+(a?" expires="+a.toGMTString()+";":"")+(o?" domain="+o+";":"")+u+l,this.get(e)===n):0},remove:function(e,n){var t=r(n,"domain");t=t?" domain="+t+";":"";var i=r(n,"secure"),a=r(n,"sameSite"),o=i?"Secure":"",s=a?"SameSite="+a+";":"";document.cookie=encodeURIComponent(e)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+t+s+o}},q=function(e,n){!e&&y.location&&(e=y.location.hostname);var t,r=e.split("."),i=n||{};for(t=r.length-2;t>=0;t--)if(i.domain=r.slice(t).join("."),G.set("test","cookie",i))return G.remove("test",i),i.domain;return""},z={compare:s,isLessThan:function(e,n){return s(e,n)<0},areVersionsDifferent:function(e,n){return 0!==s(e,n)},isGreaterThan:function(e,n){return s(e,n)>0},isEqual:function(e,n){return 0===s(e,n)}},W=!!y.postMessage,Y={postMessage:function(e,n,t){var r=1;n&&(W?t.postMessage(e,n.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):n&&(t.location=n.replace(/#.*$/,"")+"#"+ +new Date+r+++"&"+e))},receiveMessage:function(e,n){var t;try{W&&(e&&(t=function(t){if("string"==typeof n&&t.origin!==n||"[object Function]"===Object.prototype.toString.call(n)&&!1===n(t.origin))return!1;e(t)}),y.addEventListener?y[e?"addEventListener":"removeEventListener"]("message",t):y[e?"attachEvent":"detachEvent"]("onmessage",t))}catch(e){}}},$=function(e){var n,t,r="0123456789",i="",a="",o=8,s=10,c=10;if(1==e){for(r+="ABCDEF",n=0;16>n;n++)t=Math.floor(Math.random()*o),i+=r.substring(t,t+1),t=Math.floor(Math.random()*o),a+=r.substring(t,t+1),o=16;return i+"-"+a}for(n=0;19>n;n++)t=Math.floor(Math.random()*s),i+=r.substring(t,t+1),0===n&&9==t?s=3:((1==n||2==n)&&10!=s&&2>t||2t||20&&(n=!1)),{corsType:e,corsCookiesEnabled:n}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new y[this.corsMetadata.corsType]},fireCORS:function(n,t){function r(e){var t;try{if((t=JSON.parse(e))!==Object(t))return void i.handleCORSError(n,null,"Response is not JSON")}catch(e){return void i.handleCORSError(n,e,"Error parsing response as JSON")}try{for(var r=n.callback,a=y,o=0;o=a&&(e.splice(i,1),i--);return{dataPresent:o,dataValid:s}},manageSyncsSize:function(e){if(e.join("*").length>this.MAX_SYNCS_LENGTH)for(e.sort((function(e,n){return parseInt(e.split("-")[1],10)-parseInt(n.split("-")[1],10)}));e.join("*").length>this.MAX_SYNCS_LENGTH;)e.shift()},fireSync:function(n,t,r,i,a,o){var s=this;if(n){if("img"===t.tag){var c,l,u,d,p=t.url,m=e.loadSSL?"https:":"http:";for(c=0,l=p.length;cQ.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function e(){n.startedAttachingIframe||(t.body?n.attachIframe():setTimeout(e,30))}var n=this;e()}}},X={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{type:"boolean"},disableThirdPartyCalls:{type:"boolean"},discardTrackingServerECID:{type:"boolean"},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{type:"boolean"},idSyncContainerID:{},idSyncDisable3rdPartySyncing:{type:"boolean"},disableThirdPartyCookies:{type:"boolean"},idSyncDisableSyncs:{type:"boolean"},disableIdSyncs:{type:"boolean"},idSyncIDCallResult:{},idSyncSSLUseAkamai:{type:"boolean"},isCoopSafe:{type:"boolean"},isIabContext:{type:"boolean"},isOptInStorageEnabled:{type:"boolean"},loadSSL:{type:"boolean"},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{type:"boolean"},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{type:"boolean"},sameSiteCookie:{},takeTimeoutMetrics:{},trackingServer:{},trackingServerSecure:{},useLocalStorage:{type:"boolean"},whitelistIframeDomains:{},whitelistParentDomain:{}},Z={getConfigNames:function(){return Object.keys(X)},getConfigs:function(){return X},normalizeConfig:function(e,n){return X[e]&&"boolean"===X[e].type?"function"!=typeof n?n:n():n}},ee=function(e){var n={};return e.on=function(e,t,r){if(!t||"function"!=typeof t)throw new Error("[ON] Callback should be a function.");n.hasOwnProperty(e)||(n[e]=[]);var i=n[e].push({callback:t,context:r})-1;return function(){n[e].splice(i,1),n[e].length||delete n[e]}},e.off=function(e,t){n.hasOwnProperty(e)&&(n[e]=n[e].filter((function(e){if(e.callback!==t)return e})))},e.publish=function(e){if(n.hasOwnProperty(e)){var t=[].slice.call(arguments,1);n[e].slice(0).forEach((function(e){e.callback.apply(e.context,t)}))}},e.publish},ne={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},te={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",MEDIA_ANALYTICS:"mediaaa"},re=(n(b={},te.AAM,565),n(b,te.ECID,565),b),ie=(n(w={},te.AAM,[1,10]),n(w,te.ECID,[1,10]),w),ae=["videoaa","iabConsentHash"],oe=function(e){return Object.keys(e).map((function(n){return e[n]}))}(te),se=function(){var e={};return e.callbacks=Object.create(null),e.add=function(n,t){if(!l(t))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");e.callbacks[n]=e.callbacks[n]||[];var r=e.callbacks[n].push(t)-1;return function(){e.callbacks[n].splice(r,1)}},e.execute=function(n,t){if(e.callbacks[n]){t=(t=void 0===t?[]:t)instanceof Array?t:[t];try{for(;e.callbacks[n].length;){var r=e.callbacks[n].shift();"function"==typeof r?r.apply(null,t):r instanceof Array&&r[1].apply(r[0],t)}delete e.callbacks[n]}catch(e){}}},e.executeAll=function(n,t){(t||n&&!c(n))&&Object.keys(e.callbacks).forEach((function(t){var r=void 0!==n[t]?n[t]:"";e.execute(t,r)}),e)},e.hasCallbacks=function(){return Boolean(Object.keys(e.callbacks).length)},e},ce=function(){},le=function(e){var n=window.console;return!!n&&"function"==typeof n[e]},ue=function(e,n,t){return t()?function(){if(le(e)){for(var t=arguments.length,r=new Array(t),i=0;i>>1:t>>>1;e.push(t)}return function(n,t){n=unescape(encodeURIComponent(n)),t||(t=0),t^=-1;for(var r=0;r>>8^e[i]}return(t^=-1)>>>0}}(),me=new de("[ADOBE OPT-IN]"),fe=function(n,t){return e(n)===t},ge=function(e,n){return e instanceof Array?e:fe(e,"string")?[e]:n||[]},ve=function(e){var n=Object.keys(e);return!!n.length&&n.every((function(n){return!0===e[n]}))},he=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!e||we(e))&&ge(e).every((function(e){return oe.indexOf(e)>-1||n&&ae.indexOf(e)>-1}))},ye=function(e,n){return e.reduce((function(e,t){return e[t]=n,e}),{})},be=function(e){return JSON.parse(JSON.stringify(e))},we=function(e){return"[object Array]"===Object.prototype.toString.call(e)&&!e.length},_e=function(e){if(Ne(e))return e;try{return JSON.parse(e)}catch(e){return{}}},Ce=function(e){return void 0===e||(Ne(e)?he(Object.keys(e),!0):Se(e))},Se=function(e){try{var n=JSON.parse(e);return!!e&&fe(e,"string")&&he(Object.keys(n),!0)}catch(e){return!1}},Ne=function(e){return null!==e&&fe(e,"object")&&!1===Array.isArray(e)},Te=function(){},Ie=function(e){return fe(e,"function")?e():e},ke=function(e,n){Ce(e)||me.error("".concat(n))},Pe=function(e){return Object.keys(e).map((function(n){return e[n]}))},Oe=function(e){return Pe(e).filter((function(e,n,t){return t.indexOf(e)===n}))},De=function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.command,r=n.params,i=void 0===r?{}:r,a=n.callback,o=void 0===a?Te:a;if(!t||-1===t.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var s=t.split("."),c=e[s[0]],l=s[1];if(!c||"function"!=typeof c[l])throw new Error("Make sure the plugin and API name exist.");var u=Object.assign(i,{callback:o});c[l].call(c,u)}catch(e){me.error("[execute] Something went wrong: "+e.message)}}};p.prototype=Object.create(Error.prototype),p.prototype.constructor=p;var Ae="fetchPermissions",Ee="[OptIn#registerPlugin] Plugin is invalid.";m.Categories=te,m.TimeoutError=p;var xe=Object.freeze({OptIn:m,IabPlugin:h}),Le=function(e,n){e.publishDestinations=function(t){var r=arguments[1],i=arguments[2];try{i="function"==typeof i?i:t.callback}catch(e){i=function(){}}var a=n;if(a.readyToAttachIframePreliminary()){if("string"==typeof t){if(!t.length)return void i({error:"subdomain is not a populated string."});if(!(r instanceof Array&&r.length))return void i({error:"messages is not a populated array."});var o=!1;if(r.forEach((function(e){"string"==typeof e&&e.length&&(a.addMessage(e),o=!0)})),!o)return void i({error:"None of the messages are populated strings."})}else{if(!D.isObject(t))return void i({error:"Invalid parameters passed."});var s=t;if("string"!=typeof(t=s.subdomain)||!t.length)return void i({error:"config.subdomain is not a populated string."});var c=s.urlDestinations;if(!(c instanceof Array&&c.length))return void i({error:"config.urlDestinations is not a populated array."});var l=[];c.forEach((function(e){D.isObject(e)&&(e.hideReferrer?e.message&&a.addMessage(e.message):l.push(e))})),function e(){l.length&&setTimeout((function(){var n=new Image,t=l.shift();n.src=t.url,a.onPageDestinationsFired.push(t),e()}),100)}()}a.iframe?(i({message:"The destination publishing iframe is already attached and loaded."}),a.requestToProcess()):!e.subdomain&&e._getField("MCMID")?(a.subdomain=t,a.doAttachIframe=!0,a.url=a.getUrl(),a.readyToAttachIframe()?(a.iframeLoadedCallbacks.push((function(e){i({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(e.message||"no result")})})),a.attachIframe()):i({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):a.iframeLoadedCallbacks.push((function(e){i({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(e.message||"no result")})}))}else i({error:"The destination publishing iframe is disabled in the Visitor library."})}},Me=function e(n){function t(e,n){return e>>>n|e<<32-n}for(var r,i,a=Math.pow,o=a(2,32),s="",c=[],l=8*n.length,u=e.h=e.h||[],d=e.k=e.k||[],p=d.length,m={},f=2;p<64;f++)if(!m[f]){for(r=0;r<313;r+=f)m[r]=f;u[p]=a(f,.5)*o|0,d[p++]=a(f,1/3)*o|0}for(n+="\x80";n.length%64-56;)n+="\0";for(r=0;r>8)return;c[r>>2]|=i<<(3-r)%4*8}for(c[c.length]=l/o|0,c[c.length]=l,i=0;i>>3)+g[r-7]+(t(y,17)^t(y,19)^y>>>10)|0);(u=[_+((t(b,2)^t(b,13)^t(b,22))+(b&u[1]^b&u[2]^u[1]&u[2]))|0].concat(u))[4]=u[4]+_|0}for(r=0;r<8;r++)u[r]=u[r]+v[r]|0}for(r=0;r<8;r++)for(i=3;i+1;i--){var C=u[r]>>8*i&255;s+=(C<16?0:"")+C.toString(16)}return s},je=function(e,n){return"SHA-256"!==n&&"SHA256"!==n&&"sha256"!==n&&"sha-256"!==n||(e=Me(e)),e},Ue=function(e){return String(e).trim().toLowerCase()},Ve=xe.OptIn;D.defineGlobalNamespace(),window.adobe.OptInCategories=Ve.Categories;var Re=function(n,t,r){function i(){b._customerIDsHashChanged=!1}function a(e){var n=e;return function(e){var t=e||I.location.href;try{var r=b._extractParamFromUri(t,n);if(r)return ne.parsePipeDelimetedKeyValues(r)}catch(e){}}}function o(e){function n(e,n,t){e&&e.match(Q.VALID_VISITOR_ID_REGEX)&&(t===E&&(T=!0),n(e))}n(e[E],b.setMarketingCloudVisitorID,E),b._setFieldExpire(V,-1),n(e[j],b.setAnalyticsVisitorID)}function s(e){e=e||{},b._supplementalDataIDCurrent=e.supplementalDataIDCurrent||"",b._supplementalDataIDCurrentConsumed=e.supplementalDataIDCurrentConsumed||{},b._supplementalDataIDLast=e.supplementalDataIDLast||"",b._supplementalDataIDLastConsumed=e.supplementalDataIDLastConsumed||{}}function c(e){function n(e,n,t){return(t=t?t+="|":t)+(e+"=")+encodeURIComponent(n)}function t(e,t){var r=t[0],i=t[1];return null!=i&&i!==R&&(e=n(r,i,e)),e}return function(e){return(e=e?e+="|":e)+"TS="+ne.getTimestampInSeconds()}(e.reduce(t,""))}function l(e){var n=e.minutesToLive,t="";return(b.idSyncDisableSyncs||b.disableIdSyncs)&&(t=t||"Error: id syncs have been disabled"),"string"==typeof e.dpid&&e.dpid.length||(t=t||"Error: config.dpid is empty"),"string"==typeof e.url&&e.url.length||(t=t||"Error: config.url is empty"),void 0===n?n=20160:(n=parseInt(n,10),(isNaN(n)||n<=0)&&(t=t||"Error: config.minutesToLive needs to be a positive number")),{error:t,ttl:n}}function u(){return!(!b.configs.doesOptInApply||w.optIn.isComplete&&d())}function d(){return b.configs.doesOptInApply&&b.configs.isIabContext?w.optIn.isApproved(w.optIn.Categories.ECID)&&N:w.optIn.isApproved(w.optIn.Categories.ECID)}function p(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["syncIdentity",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach((function(e){var n=e[0],t=2===e.length?e[1]:"",r=b[n];b[n]=function(e){return d()&&b.isAllowed()?r.apply(b,arguments):("function"==typeof e&&b._callCallback(e,[t]),t)}}))}function m(){var e=b._getAudienceManagerURLData(),n=e.url;return b._loadData(A,n,null,e)}function f(e,n){if(N=!0,e)throw new Error("[IAB plugin] : "+e);n&&n.gdprApplies&&(C=n.consentString,S=n.hasConsentChangedSinceLastCmpPull?1:0),m(),h()}function g(e,n){if(N=!0,e)throw new Error("[IAB plugin] : "+e);n.gdprApplies&&(C=n.consentString,S=n.hasConsentChangedSinceLastCmpPull?1:0),b.init(),h()}function v(){w.optIn.isComplete&&(w.optIn.isApproved(w.optIn.Categories.ECID)?b.configs.isIabContext?w.optIn.execute({command:"iabPlugin.fetchConsentData",callback:g}):(b.init(),h()):b.configs.isIabContext?w.optIn.execute({command:"iabPlugin.fetchConsentData",callback:f}):(p(),h()))}function h(){w.optIn.off("complete",v)}if(!r||r.split("").reverse().join("")!==n)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var b=this,w=window.adobe,C="",S=0,N=!1,T=!1;b.version="5.2.0";var I=y,k=I.Visitor;k.version=b.version,k.AuthState=_.AUTH_STATE,k.OptOut=_.OPT_OUT,I.s_c_in||(I.s_c_il=[],I.s_c_in=0),b._c="Visitor",b._il=I.s_c_il,b._in=I.s_c_in,b._il[b._in]=b,I.s_c_in++,b._instanceType="regular",b._log={requests:[]},b.marketingCloudOrgID=n,b.cookieName="AMCV_"+n,b.sessionCookieName="AMCVS_"+n;var P={};t&&t.secureCookie&&t.sameSiteCookie&&(P={sameSite:t.sameSiteCookie,secure:t.secureCookie}),b.cookieDomain=b.useLocalStorage?"":q(null,P),b.loadSSL=!0,b.loadTimeout=3e4,b.CORSErrors=[],b.marketingCloudServer=b.audienceManagerServer="dpm.demdex.net",b.sdidParamExpiry=30;var O=null,A="MC",E="MCMID",x="MCIDTS",M="A",j="MCAID",U="AAM",V="MCAAMB",R="NONE",F=function(e){return!Object.prototype[e]},W=J(b);b.FIELDS=_.FIELDS,b.cookieRead=function(e){return b.useLocalStorage?e===b.sessionCookieName?sessionStorage.getItem(e):localStorage.getItem(e):G.get(e)},b.cookieWrite=function(e,n,t){var r=""+n;if(b.useLocalStorage)return e===b.sessionCookieName?sessionStorage.setItem(e,r):localStorage.setItem(e,r);var i=b.cookieLifetime?(""+b.cookieLifetime).toUpperCase():"",a={expires:t,domain:b.cookieDomain,cookieLifetime:i};return b.configs&&b.configs.secureCookie&&"https:"===location.protocol&&(a.secure=!0),b.configs&&b.configs.sameSiteCookie&&"https:"===location.protocol&&(a.sameSite=_.SAME_SITE_VALUES[b.configs.sameSiteCookie.toUpperCase()]||"Lax"),G.set(e,r,a)},b.removeCookie=function(e){if(b.useLocalStorage)return e===b.sessionCookieName?sessionStorage.removeItem(e):localStorage.removeItem(e);var n={domain:b.cookieDomain};return b.configs&&b.configs.secureCookie&&"https:"===location.protocol&&(n.secure=!0),b.configs&&b.configs.sameSiteCookie&&"https:"===location.protocol&&(n.sameSite=_.SAME_SITE_VALUES[b.configs.sameSiteCookie.toUpperCase()]||"Lax"),G.remove(e,n)},b.resetState=function(e){e?b._mergeServerState(e):s()},b._isAllowedDone=!1,b._isAllowedFlag=!1,b.isAllowed=function(){return b._isAllowedDone||(b._isAllowedDone=!0,(b.cookieRead(b.cookieName)||b.cookieWrite(b.cookieName,"T",1))&&(b._isAllowedFlag=!0)),"T"===b.cookieRead(b.cookieName)&&b.removeCookie(b.cookieName),b._isAllowedFlag},b.setMarketingCloudVisitorID=function(e){b._setMarketingCloudFields(e)},b._use1stPartyMarketingCloudServer=!1,b.getMarketingCloudVisitorID=function(e,n){b.marketingCloudServer&&b.marketingCloudServer.indexOf(".demdex.net")<0&&(b._use1stPartyMarketingCloudServer=!0);var t=b._getAudienceManagerURLData("_setMarketingCloudFields"),r=t.url;return b._getRemoteField(E,r,e,n,t)};var X=function(e,n){var t={};b.getMarketingCloudVisitorID((function(){n.forEach((function(e){t[e]=b._getField(e,!0)})),-1!==n.indexOf("MCOPTOUT")?b.isOptedOut((function(n){t.MCOPTOUT=n,e(t)}),null,!0):e(t)}),!0)};b.getVisitorValues=function(e,n){var t={MCMID:{fn:b.getMarketingCloudVisitorID,args:[!0],context:b},MCOPTOUT:{fn:b.isOptedOut,args:[void 0,!0],context:b},MCAID:{fn:b.getAnalyticsVisitorID,args:[!0],context:b},MCAAMLH:{fn:b.getAudienceManagerLocationHint,args:[!0],context:b},MCAAMB:{fn:b.getAudienceManagerBlob,args:[!0],context:b}},r=n&&n.length?D.pluck(t,n):t;n&&-1===n.indexOf("MCAID")?X(e,n):H(r,e)},b._currentCustomerIDs={},b._customerIDsHashChanged=!1,b._newCustomerIDsHash="",b.setCustomerIDs=function(n,t){if(!b.isOptedOut()&&n){if(!D.isObject(n)||D.isObjectEmpty(n))return!1;var r,a,o,s;for(r in b._readVisitor(),n)if(F(r)&&(b._currentCustomerIDs.dataSources=b._currentCustomerIDs.dataSources||{},t=(a=n[r]).hasOwnProperty("hashType")?a.hashType:t,a))if("object"===e(a)){var c={};if(a.id){if(t){if(!(s=je(Ue(a.id),t)))return;a.id=s,c.hashType=t}c.id=a.id}null!=a.authState&&(c.authState=a.authState),b._currentCustomerIDs.dataSources[r]=c}else if(t){if(!(s=je(Ue(a),t)))return;b._currentCustomerIDs.dataSources[r]={id:s,hashType:t}}else b._currentCustomerIDs.dataSources[r]={id:a};var l=b.getCustomerIDs(!0),u=b._getField("MCCIDH"),d="";for(o in u||(u=0),l){var p=l[o];if(!D.isObjectEmpty(p))for(r in p)F(r)&&(d+=(d?"|":"")+r+"|"+((a=p[r]).id?a.id:"")+(a.authState?a.authState:""))}b._newCustomerIDsHash=String(b._hash(d)),b._newCustomerIDsHash!==u&&(b._customerIDsHashChanged=!0,b._mapCustomerIDs(i))}},b.syncIdentity=function(n,t){if(!b.isOptedOut()&&n){if(!D.isObject(n)||D.isObjectEmpty(n))return!1;var r,a,o,s,c;for(r in b._readVisitor(),n)if(F(r)&&(b._currentCustomerIDs.nameSpaces=b._currentCustomerIDs.nameSpaces||{},t=(a=n[r]).hasOwnProperty("hashType")?a.hashType:t,a&&"object"===e(a))){var l={};if(a.id){if(t){if(!(o=je(Ue(a.id),t)))return;a.id=o,l.hashType=t}l.id=a.id}null!=a.authState&&(l.authState=a.authState),a.dataSource&&(b._currentCustomerIDs.dataSources=b._currentCustomerIDs.dataSources||{},s=a.dataSource,b._currentCustomerIDs.dataSources[s]=l),b._currentCustomerIDs.nameSpaces[r]=l}var u=b.getCustomerIDs(!0),d=b._getField("MCCIDH"),p="";for(c in d||(d="0"),u){var m=u[c];if(!D.isObjectEmpty(m))for(r in m)F(r)&&(p+=(p?"|":"")+r+"|"+((a=m[r]).id?a.id:"")+(a.authState?a.authState:""))}b._newCustomerIDsHash=String(b._hash(p)),b._newCustomerIDsHash!==d&&(b._customerIDsHashChanged=!0,b._mapCustomerIDs(i))}},b.getCustomerIDs=function(e){b._readVisitor();var n,t,r={dataSources:{},nameSpaces:{}},i=b._currentCustomerIDs.dataSources;for(n in i)F(n)&&(t=i[n]).id&&(r.dataSources[n]||(r.dataSources[n]={}),r.dataSources[n].id=t.id,null!=t.authState?r.dataSources[n].authState=t.authState:r.dataSources[n].authState=k.AuthState.UNKNOWN,t.hashType&&(r.dataSources[n].hashType=t.hashType));var a=b._currentCustomerIDs.nameSpaces;for(n in a)F(n)&&(t=a[n]).id&&(r.nameSpaces[n]||(r.nameSpaces[n]={}),r.nameSpaces[n].id=t.id,null!=t.authState?r.nameSpaces[n].authState=t.authState:r.nameSpaces[n].authState=k.AuthState.UNKNOWN,t.hashType&&(r.nameSpaces[n].hashType=t.hashType));return e?r:r.dataSources},b.setAnalyticsVisitorID=function(e){b._setAnalyticsFields(e)},b.getAnalyticsVisitorID=function(e,n,t){if(!ne.isTrackingServerPopulated()&&!t)return b._callCallback(e,[""]),"";var r="";if(t||(r=b.getMarketingCloudVisitorID((function(){b.getAnalyticsVisitorID(e,!0)}))),r||t){var i=t?b.marketingCloudServer:b.trackingServer,a="";b.loadSSL&&(t?b.marketingCloudServerSecure&&(i=b.marketingCloudServerSecure):b.trackingServerSecure&&(i=b.trackingServerSecure));var o={};if(i){var s="http"+(b.loadSSL?"s":"")+"://"+i+"/id",c="d_visid_ver="+b.version+"&mcorgid="+encodeURIComponent(b.marketingCloudOrgID)+(r?"&mid="+encodeURIComponent(r):"")+(b.idSyncDisable3rdPartySyncing||b.disableThirdPartyCookies?"&d_coppa=true":""),l=["s_c_il",b._in,"_set"+(t?"MarketingCloud":"Analytics")+"Fields"];a=s+"?"+c+"&callback=s_c_il%5B"+b._in+"%5D._set"+(t?"MarketingCloud":"Analytics")+"Fields",o.corsUrl=s+"?"+c,o.callback=l}return o.url=a,b._getRemoteField(t?E:j,a,e,n,o)}return""},b.getAudienceManagerLocationHint=function(e,n){if(b.getMarketingCloudVisitorID((function(){b.getAudienceManagerLocationHint(e,!0)}))){var t=b._getField(j);if(!t&&ne.isTrackingServerPopulated()&&(t=b.getAnalyticsVisitorID((function(){b.getAudienceManagerLocationHint(e,!0)}))),t||!ne.isTrackingServerPopulated()){var r=b._getAudienceManagerURLData(),i=r.url;return b._getRemoteField("MCAAMLH",i,e,n,r)}}return""},b.getLocationHint=b.getAudienceManagerLocationHint,b.getAudienceManagerBlob=function(e,n){if(b.getMarketingCloudVisitorID((function(){b.getAudienceManagerBlob(e,!0)}))){var t=b._getField(j);if(!t&&ne.isTrackingServerPopulated()&&(t=b.getAnalyticsVisitorID((function(){b.getAudienceManagerBlob(e,!0)}))),t||!ne.isTrackingServerPopulated()){var r=b._getAudienceManagerURLData(),i=r.url;return b._customerIDsHashChanged&&b._setFieldExpire(V,-1),b._getRemoteField(V,i,e,n,r)}}return""},b._supplementalDataIDCurrent="",b._supplementalDataIDCurrentConsumed={},b._supplementalDataIDLast="",b._supplementalDataIDLastConsumed={},b.getSupplementalDataID=function(e,n){b._supplementalDataIDCurrent||n||(b._supplementalDataIDCurrent=b._generateID(1));var t=b._supplementalDataIDCurrent;return b._supplementalDataIDLast&&!b._supplementalDataIDLastConsumed[e]?(t=b._supplementalDataIDLast,b._supplementalDataIDLastConsumed[e]=!0):t&&(b._supplementalDataIDCurrentConsumed[e]&&(b._supplementalDataIDLast=b._supplementalDataIDCurrent,b._supplementalDataIDLastConsumed=b._supplementalDataIDCurrentConsumed,b._supplementalDataIDCurrent=t=n?"":b._generateID(1),b._supplementalDataIDCurrentConsumed={}),t&&(b._supplementalDataIDCurrentConsumed[e]=!0)),t};var Z=!1;b._liberatedOptOut=null,b.getOptOut=function(e,n){var t=b._getAudienceManagerURLData("_setMarketingCloudFields"),r=t.url;if(d())return b._getRemoteField("MCOPTOUT",r,e,n,t);if(b._registerCallback("liberatedOptOut",e),null!==b._liberatedOptOut)return b._callAllCallbacks("liberatedOptOut",[b._liberatedOptOut]),Z=!1,b._liberatedOptOut;if(Z)return null;Z=!0;var i="liberatedGetOptOut";return t.corsUrl=t.corsUrl.replace(/\.demdex\.net\/id\?/,".demdex.net/optOutStatus?"),t.callback=[i],y[i]=function(e){if(e===Object(e)){var n,t,r=D.parseOptOut(e,n,R);n=r.optOut,t=1e3*r.d_ottl,b._liberatedOptOut=n,setTimeout((function(){b._liberatedOptOut=null}),t)}b._callAllCallbacks("liberatedOptOut",[n]),Z=!1},W.fireCORS(t),null},b.isOptedOut=function(e,n,t){n||(n=k.OptOut.GLOBAL);var r=b.getOptOut((function(t){var r=t===k.OptOut.GLOBAL||t.indexOf(n)>=0;b._callCallback(e,[r])}),t);return r?r===k.OptOut.GLOBAL||r.indexOf(n)>=0:null};var ee={subscribed:!1,callbacks:[]};b.onReceiveEcid=function(e){if(d())return b.getMarketingCloudVisitorID(e,!0);ee.subscribed=!0,e&&"function"==typeof e&&ee.callbacks.push(e)},b._fields=null,b._fieldsExpired=null,b._hash=function(e){var n,t=0;if(e)for(n=0;n0;)b._callCallback(t.shift(),n)}},b._addQuerystringParam=function(e,n,t,r){var i=encodeURIComponent(n)+"="+encodeURIComponent(t),a=ne.parseHash(e),o=ne.hashlessUrl(e);if(-1===o.indexOf("?"))return o+"?"+i+a;var s=o.split("?"),c=s[0]+"?",l=s[1];return c+ne.addQueryParamAtLocation(l,i,r)+a},b._extractParamFromUri=function(e,n){var t=new RegExp("[\\?&#]"+n+"=([^&#]*)").exec(e);if(t&&t.length)return decodeURIComponent(t[1])},b._parseAdobeMcFromUrl=a(Q.ADOBE_MC),b._parseAdobeMcSdidFromUrl=a(Q.ADOBE_MC_SDID),b._attemptToPopulateSdidFromUrl=function(e){var t=b._parseAdobeMcSdidFromUrl(e),r=1e9;t&&t.TS&&(r=ne.getTimestampInSeconds()-t.TS),t&&t.SDID&&t.MCORGID===n&&rQ.ADOBE_MC_TTL_IN_MIN||e.MCORGID!==n)return;o(e)}},b._mergeServerState=function(e){if(e)try{if((e=function(e){return ne.isObject(e)?e:JSON.parse(e)}(e))[b.marketingCloudOrgID]){var n=e[b.marketingCloudOrgID];!function(e){ne.isObject(e)&&b.setCustomerIDs(e)}(n.customerIDs),s(n.sdid)}}catch(e){throw new Error("`serverState` has an invalid format.")}},b._timeout=null,b._loadData=function(e,n,t,r){n=b._addQuerystringParam(n,"d_fieldgroup",e,1),r.url=b._addQuerystringParam(r.url,"d_fieldgroup",e,1),r.corsUrl=b._addQuerystringParam(r.corsUrl,"d_fieldgroup",e,1),ie.fieldGroupObj[e]=!0,r===Object(r)&&r.corsUrl&&"XMLHttpRequest"===W.corsMetadata.corsType&&W.fireCORS(r,t,e)},b._clearTimeout=function(e){null!=b._timeout&&b._timeout[e]&&(clearTimeout(b._timeout[e]),b._timeout[e]=0)},b._settingsDigest=0,b._getSettingsDigest=function(){if(!b._settingsDigest){var e=b.version;b.audienceManagerServer&&(e+="|"+b.audienceManagerServer),b.audienceManagerServerSecure&&(e+="|"+b.audienceManagerServerSecure),b._settingsDigest=b._hash(e)}return b._settingsDigest},b._readVisitorDone=!1,b._readVisitor=function(){if(!b._readVisitorDone){b._readVisitorDone=!0;var e,n,t,r,i,a,o=b._getSettingsDigest(),s=!1,c=b.cookieRead(b.cookieName),l=new Date;if(c||T||b.discardTrackingServerECID||(c=b.cookieRead(Q.FIRST_PARTY_SERVER_COOKIE)),null==b._fields&&(b._fields={}),c&&"T"!==c)for((c=c.split("|"))[0].match(/^[\-0-9]+$/)&&(parseInt(c[0],10)!==o&&(s=!0),c.shift()),c.length%2==1&&c.pop(),e=0;e1?(i=parseInt(n[1],10),a=n[1].indexOf("s")>0):(i=0,a=!1),s&&("MCCIDH"===t&&(r=""),i>0&&(i=l.getTime()/1e3-60)),t&&r&&(b._setField(t,r,1),i>0&&(b._fields["expire"+t]=i+(a?"s":""),(l.getTime()>=1e3*i||a&&!b.cookieRead(b.sessionCookieName))&&(b._fieldsExpired||(b._fieldsExpired={}),b._fieldsExpired[t]=!0)));!b._getField(j)&&ne.isTrackingServerPopulated()&&(c=b.cookieRead("s_vi"))&&(c=c.split("|")).length>1&&c[0].indexOf("v1")>=0&&((e=(r=c[1]).indexOf("["))>=0&&(r=r.substring(0,e)),r&&r.match(Q.VALID_VISITOR_ID_REGEX)&&b._setField(j,r))}},b._appendVersionTo=function(e){ var n="vVersion|"+b.version,t=e?b._getCookieVersion(e):null;return t?z.areVersionsDifferent(t,b.version)&&(e=e.replace(Q.VERSION_REGEX,n)):e+=(e?"|":"")+n,e},b._writeVisitor=function(){var e,n,t=b._getSettingsDigest();for(e in b._fields)F(e)&&b._fields[e]&&"expire"!==e.substring(0,6)&&(n=b._fields[e],t+=(t?"|":"")+e+(b._fields["expire"+e]?"-"+b._fields["expire"+e]:"")+"|"+n);t=b._appendVersionTo(t),b.cookieWrite(b.cookieName,t,1)},b._getField=function(e,n){return null==b._fields||!n&&b._fieldsExpired&&b._fieldsExpired[e]?null:b._fields[e]},b._setField=function(e,n,t){null==b._fields&&(b._fields={}),b._fields[e]=n,t||b._writeVisitor()},b._getFieldList=function(e,n){var t=b._getField(e,n);return t?t.split("*"):null},b._setFieldList=function(e,n,t){b._setField(e,n?n.join("*"):"",t)},b._getFieldMap=function(e,n){var t=b._getFieldList(e,n);if(t){var r,i={};for(r=0;r0?e.substr(n):""},hashlessUrl:function(e){var n=e.indexOf("#");return n>0?e.substr(0,n):e},addQueryParamAtLocation:function(e,n,t){var r=e.split("&");return t=null!=t?t:r.length,r.splice(t,0,n),r.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(e,n,t){return e===j&&(n||(n=b.trackingServer),t||(t=b.trackingServerSecure),!("string"!=typeof(r=b.loadSSL?t:n)||!r.length)&&r.indexOf("2o7.net")<0&&r.indexOf("omtrdc.net")<0);var r},isObject:function(e){return Boolean(e&&e===Object(e))},removeCookie:function(e){G.remove(e,{domain:b.cookieDomain})},isTrackingServerPopulated:function(){return!!b.trackingServer||!!b.trackingServerSecure},getTimestampInSeconds:function(){return Math.round((new Date).getTime()/1e3)},parsePipeDelimetedKeyValues:function(e){return e.split("|").reduce((function(e,n){var t=n.split("=");return e[t[0]]=decodeURIComponent(t[1]),e}),{})},generateRandomString:function(e){e=e||5;for(var n="",t="abcdefghijklmnopqrstuvwxyz0123456789";e--;)n+=t[Math.floor(Math.random()*t.length)];return n},normalizeBoolean:function(e){return"true"===e||"false"!==e&&e},parseBoolean:function(e){return"true"===e||"false"!==e&&null},replaceMethodsWithFunction:function(e,n){for(var t in e)e.hasOwnProperty(t)&&"function"==typeof e[t]&&(e[t]=n);return e}};b._helpers=ne;var te=K(b,k);b._destinationPublishing=te,b.timeoutMetricsLog=[];var re,ie={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(e,n){switch(e){case A:!1===n?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=n;break;case M:!1===n?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=n;break;case U:!1===n?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=n}}};b.isClientSideMarketingCloudVisitorID=function(){return ie.isClientSideMarketingCloudVisitorID},b.MCIDCallTimedOut=function(){return ie.MCIDCallTimedOut},b.AnalyticsIDCallTimedOut=function(){return ie.AnalyticsIDCallTimedOut},b.AAMIDCallTimedOut=function(){return ie.AAMIDCallTimedOut},b.idSyncGetOnPageSyncInfo=function(){return b._readVisitor(),b._getField("MCSYNCSOP")},b.idSyncByURL=function(e){if(!b.isOptedOut()){var n=l(e||{});if(n.error)return n.error;var t,r,i=e.url,a=encodeURIComponent,o=te;return i=i.replace(/^https:/,"").replace(/^http:/,""),t=D.encodeAndBuildRequest(["",e.dpid,e.dpuuid||""],","),r=["ibs",a(e.dpid),"img",a(i),n.ttl,"",t],o.addMessage(r.join("|")),o.requestToProcess(),"Successfully queued"}},b.idSyncByDataSource=function(e){if(!b.isOptedOut())return e===Object(e)&&"string"==typeof e.dpuuid&&e.dpuuid.length?(e.url="//dpm.demdex.net/ibs:dpid="+e.dpid+"&dpuuid="+e.dpuuid,b.idSyncByURL(e)):"Error: config or config.dpuuid is empty"},Le(b,te),b._getCookieVersion=function(e){e=e||b.cookieRead(b.cookieName);var n=Q.VERSION_REGEX.exec(e);return n&&n.length>1?n[1]:null},b._resetAmcvCookie=function(e){var n=b._getCookieVersion();n&&!z.isLessThan(n,e)||b.removeCookie(b.cookieName)},b.setAsCoopSafe=function(){O=!0},b.setAsCoopUnsafe=function(){O=!1},function(){if(b.configs=Object.create(null),ne.isObject(t))for(var e in t)F(e)&&(b[e]=t[e],b.configs[e]=t[e])}(),p(),b.init=function(){u()&&(w.optIn.fetchPermissions(v,!0),!w.optIn.isApproved(w.optIn.Categories.ECID))||re||(re=!0,function(){if(ne.isObject(t)){b.idSyncContainerID=b.idSyncContainerID||0,O="boolean"==typeof b.isCoopSafe?b.isCoopSafe:ne.parseBoolean(b.isCoopSafe),b.resetBeforeVersion&&b._resetAmcvCookie(b.resetBeforeVersion),b._attemptToPopulateIdsFromUrl(),b._attemptToPopulateSdidFromUrl(),b._readVisitor();var e=b._getField(x),n=Math.ceil((new Date).getTime()/Q.MILLIS_PER_DAY);b.idSyncDisableSyncs||b.disableIdSyncs||!te.canMakeSyncIDCall(e,n)||(b._setFieldExpire(V,-1),b._setField(x,n)),b.getMarketingCloudVisitorID(),b.getAudienceManagerLocationHint(),b.getAudienceManagerBlob(),b._mergeServerState(b.serverState)}else b._attemptToPopulateIdsFromUrl(),b._attemptToPopulateSdidFromUrl()}(),function(){if(!b.idSyncDisableSyncs&&!b.disableIdSyncs){te.checkDPIframeSrc();var e=function(){var e=te;e.readyToAttachIframe()&&e.attachIframe()};I.addEventListener("load",(function(){k.windowLoaded=!0,e()}));try{Y.receiveMessage((function(e){te.receiveMessage(e.data)}),te.iframeHost)}catch(e){}}}(),b.whitelistIframeDomains&&Q.POST_MESSAGE_ENABLED&&(b.whitelistIframeDomains=b.whitelistIframeDomains instanceof Array?b.whitelistIframeDomains:[b.whitelistIframeDomains],b.whitelistIframeDomains.forEach((function(e){var t=new L(n,e),r=B(b,t);Y.receiveMessage(r,e)}))))}};Re.config=Z,y.Visitor=Re;var Fe=Re,Be=function(e){if(D.isObject(e))return Object.keys(e).filter((function(n){return""!==e[n]&&Z.getConfigs()[n]})).reduce((function(n,t){var r=Z.normalizeConfig(t,e[t]),i=D.normalizeBoolean(r);return n[t]=i,n}),Object.create(null))},He=xe.OptIn,Ge=xe.IabPlugin;Fe.getInstance=function(e,n){if(!e)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");e.indexOf("@")<0&&(e+="@AdobeOrg");var t=function(){var n=y.s_c_il;if(n)for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:null,r=p+n;u.existy(t)&&""!==t?e.setAttribute(r,t):e.removeAttribute(r)}n.__esModule=!0;var c=Object.assign||function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.root=n,this.options=t,this.doc=n.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new l.default("",{autoFix:t.autoFix}),this.actuals=[n],this.proxyHistory="",this.proxyRoot=this.doc.createElement(n.nodeName),this.scriptStack=[],this.writeQueue=[],s(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var n=this.writeQueue.shift();u.isFunction(n)?this._callFunction(n):this._writeImpl(n)}},e.prototype._callFunction=function(e){var n={type:"function",value:e.name||e.toString()};this._onScriptStart(n),e.call(this.win,this.doc),this._onScriptDone(n)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var n=void 0,t=void 0,r=void 0,i=[];(n=this.parser.readToken())&&!(t=u.isScript(n))&&!(r=u.isStyle(n));)(n=this.options.beforeWriteToken(n))&&i.push(n);i.length>0&&this._writeStaticTokens(i),t&&this._handleScriptToken(n),r&&this._handleStyleToken(n)},e.prototype._writeStaticTokens=function(e){var n=this._buildChunk(e);return n.actual?(n.html=this.proxyHistory+n.actual,this.proxyHistory+=n.proxy,this.proxyRoot.innerHTML=n.html,d&&(n.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),d&&(n.actualInnerHTML=this.root.innerHTML),n):null},e.prototype._buildChunk=function(e){for(var n=this.actuals.length,t=[],r=[],i=[],a=e.length,o=0;o)/," "+p+"id="+l+" $1")),s.attrs.id!==f&&s.attrs.id!==m&&i.push("atomicTag"===s.type?"":"<"+s.tagName+" "+p+"proxyof="+l+(s.unary?" />":">"))}}else r.push(c),i.push("endTag"===s.type?c:"")}return{tokens:e,raw:t.join(""),actual:r.join(""),proxy:i.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,n=[this.proxyRoot];u.existy(e=n.shift());){var t=1===e.nodeType;if(!t||!o(e,"proxyof")){t&&(this.actuals[o(e,"id")]=e,s(e,"id"));var r=e.parentNode&&o(e.parentNode,"proxyof");r&&this.actuals[r].appendChild(e)}n.unshift.apply(n,u.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var n=this,t=this.parser.clear();t&&this.writeQueue.unshift(t),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,(function(){n._onScriptDone(e)})))},e.prototype._handleStyleToken=function(e){var n=this.parser.clear();n&&this.writeQueue.unshift(n),e.type=e.attrs.type||e.attrs.TYPE||"text/css",(e=this.options.beforeWriteToken(e))&&this._writeStyleToken(e),n&&this.write()},e.prototype._writeStyleToken=function(e){var n=this._buildStyle(e);this._insertCursor(n,m),e.content&&(n.styleSheet&&!n.sheet?n.styleSheet.cssText=e.content:n.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var n=this.doc.createElement(e.tagName);return n.setAttribute("type",e.type),u.eachKey(e.attrs,(function(e,t){n.setAttribute(e,t)})),n},e.prototype._insertCursor=function(e,n){this._writeImpl('');var t=this.doc.getElementById(n);t&&t.parentNode.replaceChild(e,t)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){e===this.scriptStack[0]?(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)):this.options.error({msg:"Bad script nesting or script finished twice"})},e.prototype._writeScriptToken=function(e,n){var t=this._buildScript(e),r=this._shouldRelease(t),i=this.options.afterAsync;e.src&&(t.src=e.src,this._scriptLoadHandler(t,r?i:function(){n(),i()}));try{this._insertCursor(t,f),t.src&&!r||n()}catch(e){this.options.error(e),n()}},e.prototype._buildScript=function(e){var n=this.doc.createElement(e.tagName);return u.eachKey(e.attrs,(function(e,t){n.setAttribute(e,t)})),e.content&&(n.text=e.content),n},e.prototype._scriptLoadHandler=function(e,n){function t(){e=e.onload=e.onreadystatechange=e.onerror=null}function r(){t(),null!=n&&n(),n=null}function i(e){t(),o(e),null!=n&&n(),n=null}function a(e,n){var t=e["on"+n];null!=t&&(e["_on"+n]=t)}var o=this.options.error;a(e,"load"),a(e,"error"),c(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(n){i({msg:"onload handler failed "+n+" @ "+e.src})}r()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(n){return void i({msg:"onerror handler failed "+n+" @ "+e.src})}i({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&r()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();n.default=g},function(e){var n;n=function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=r(t(1));e.exports=i.default},function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=i(t(2)),s=i(t(3)),c=r(t(6)),l=t(5),u={comment:/^");if(n>=0)return new l.CommentToken(e.substr(4,n-1),n+3)}function i(e){var n=e.indexOf("<");return new l.CharsToken(n>=0?n:e.length)}function a(e){var n,t,r;if(-1!==e.indexOf(">")){var i=e.match(u.startTag);if(i){var a=(n={},t={},r=i[2],i[2].replace(u.attr,(function(e,i){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(n[arguments[5]]="",t[arguments[5]]=!0):n[i]=arguments[2]||arguments[3]||arguments[4]||u.fillAttr.test(i)&&i||"":n[i]="",r=r.replace(e,"")})),{v:new l.StartTagToken(i[1],i[0].length,n,t,!!i[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))});if("object"===(void 0===a?"undefined":c(a)))return a.v}}}function o(e){var n=a(e);if(n){var t=e.slice(n.length);if(t.match(new RegExp("","i"))){var r=t.match(new RegExp("([\\s\\S]*?)","i"));if(r)return new l.AtomicTagToken(n.tagName,r[0].length+n.length,n.attrs,n.booleanAttrs,r[1])}}}function s(e){var n=e.match(u.endTag);if(n)return new l.EndTagToken(n[1],n[0].length)}n.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.comment=r,n.chars=i,n.startTag=a,n.atomicTag=o,n.endTag=s;var l=t(4),u={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0,n.EndTagToken=n.AtomicTagToken=n.StartTagToken=n.TagToken=n.CharsToken=n.CommentToken=n.Token=void 0;var i=t(5),a=(n.Token=function e(n,t){r(this,e),this.type=n,this.length=t,this.text=""},n.CommentToken=function(){function e(n,t){r(this,e),this.type="comment",this.length=t||(n?n.length:0),this.text="",this.content=n}return e.prototype.toString=function(){return"