}function g(e,t){function n(){a=null,e.call(e,new p("The call took longer than you wanted!"))}function r(){a&&(clearTimeout(a),e.apply(e,arguments))}if(void 0===t)return e;var a=setTimeout(n,t);return r}function m(){if(window.__tcfapi)return window.__tcfapi;var e=window;if(e!==window.top){for(var t;!t;){e=e.parent;try{e.frames.__tcfapiLocator&&(t=e)}catch(e){}if(e===window.top)break}if(t){var n={};return window.__tcfapi=function(e,r,a,i){
var o=Math.random()+"",s={__tcfapiCall:{command:e,parameter:i,version:r,callId:o}};n[o]=a,t.postMessage(s,"*")},window.addEventListener("message",(function(e){var t=e.data;if("string"==typeof t)try{t=JSON.parse(e.data)}catch(e){}if(t.__tcfapiReturn){var r=t.__tcfapiReturn;"function"==typeof n[r.callId]&&(n[r.callId](r.returnValue,r.success),delete n[r.callId])}}),!1),window.__tcfapi}fe.error("__tcfapi not found")}else fe.error("__tcfapi not found")}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=!0===e.vendor.consents[t],a=n.every((function(t){return!0===e.purpose.consents[t]}));return r&&a}function h(){var e=this;e.name="iabPlugin",e.version="0.0.2";var t,n=se(),r={transparencyAndConsentData:null},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r[e]=t};e.fetchConsentData=function(e){var t=g(e.callback,e.timeout);i({callback:t})},e.isApproved=function(e){var t=e.callback,n=e.category,a=e.timeout;if(r.transparencyAndConsentData)return t(null,v(r.transparencyAndConsentData,re[n],ae[n]));var o=g((function(e,r){t(e,v(r,re[n],ae[n]))}),a);i({category:n,callback:o})},e.onRegister=function(n){t=n;var r=Object.keys(re),a=function(e,t){!e&&t&&(r.forEach((function(e){var r=v(t,re[e],ae[e]);n[r?"approve":"deny"](e,!0)})),n.complete())};e.fetchConsentData({callback:a})};var i=function(e){var i=e.callback;if(r.transparencyAndConsentData)return i(null,r.transparencyAndConsentData);n.add("FETCH_CONSENT_DATA",i),o((function(e,i){if(i){var o=ye(e),s=t.getMemoizedContent("iabConsentHash"),c=pe(o.tcString).toString(32);o.consentString=e.tcString,o.hasConsentChangedSinceLastCmpPull=s!==c,a("transparencyAndConsentData",o),t.memoizeContent({iabConsentHash:c})}n.execute("FETCH_CONSENT_DATA",[null,r.transparencyAndConsentData])}))},o=function(e){var t=De(re),n=m();"function"==typeof n&&n("getTCData",2,e,t)}}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Object.assign=Object.assign||function(e){for(var t,n,r=1;r<arguments.length;++r)for(t in n=arguments[r])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e};var y,_,w={MESSAGES:{HANDSHAKE:"HANDSHAKE",GETSTATE:"GETSTATE",PARENTSTATE:"PARENTSTATE"},STATE_KEYS_MAP:{MCMID:"MCMID",MCAID:"MCAID",MCAAMB:"MCAAMB",MCAAMLH:"MCAAMLH",MCOPTOUT:"MCOPTOUT",CUSTOMERIDS:"CUSTOMERIDS"},ASYNC_API_MAP:{MCMID:"getMarketingCloudVisitorID",MCAID:"getAnalyticsVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",ALLFIELDS:"getVisitorValues"},SYNC_API_MAP:{CUSTOMERIDS:"getCustomerIDs"},ALL_APIS:{MCMID:"getMarketingCloudVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",MCAID:"getAnalyticsVisitorID",CUSTOMERIDS:"getCustomerIDs",ALLFIELDS:"getVisitorValues"},FIELDGROUP_TO_FIELD:{MC:"MCMID",A:"MCAID",AAM:"MCAAMB"},FIELDS:{MCMID:"MCMID",MCOPTOUT:"MCOPTOUT",MCAID:"MCAID",MCAAMLH:"MCAAMLH",MCAAMB:"MCAAMB"},AUTH_STATE:{UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2},OPT_OUT:{GLOBAL:"global"},SAME_SITE_VALUES:{LAX:"Lax",STRICT:"Strict",NONE:"None"}},P=w.STATE_KEYS_MAP,S=function(e){function t(){}function n(t,n){var r=this;return function(){var a=e(0,t),i={};return i[t]=a,r.setStateAndPublish(i),n(a),a}}this.getMarketingCloudVisitorID=function(e){e=e||t;var r=this.findField(P.MCMID,e),a=n.call(this,P.MCMID,e);return void 0!==r?r:a()},this.getVisitorValues=function(e){this.getMarketingCloudVisitorID((function(t){e({MCMID:t})}))}},C=w.MESSAGES,V=w.ASYNC_API_MAP,k=w.SYNC_API_MAP,T=function(){function e(){}function t(e,t){var n=this;return function(){return n.callbackRegistry.add(e,t),n.messageParent(C.GETSTATE),""}}function n(n){this[V[n]]=function(r){r=r||e;var a=this.findField(n,r),i=t.call(this,n,r);return void 0!==a?a:i()}}function r(t){this[k[t]]=function(){return this.findField(t,e)||{}}}Object.keys(V).forEach(n,this),Object.keys(k).forEach(r,this)},I=w.ASYNC_API_MAP,D=function(){Object.keys(I).forEach((function(e){this[I[e]]=function(t){this.callbackRegistry.add(e,t)}}),this)},E=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(t,n){n.isObjectEmpty=function(e){return e===Object(e)&&0===Object.keys(e).length},n.isValueEmpty=function(e){return""===e||n.isObjectEmpty(e)};var r=function(){var e=navigator.appName,t=navigator.userAgent;return"Microsoft Internet Explorer"===e||t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0&&t.indexOf("Windows NT 6")>=0};n.getIeVersion=function(){return document.documentMode?document.documentMode:r()?7:null},n.encodeAndBuildRequest=function(e,t){return e.map(encodeURIComponent).join(t)},n.isObject=function(t){return null!==t&&"object"===e(t)&&!1===Array.isArray(t)},n.defineGlobalNamespace=function(){return window.adobe=n.isObject(window.adobe)?window.adobe:{},window.adobe},n.pluck=function(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),Object.create(null))},n.parseOptOut=function(e,t,n){t||(t=n,e.d_optout&&e.d_optout instanceof Array&&(t=e.d_optout.join(",")));var r=parseInt(e.d_ottl,10);return isNaN(r)&&(r=7200),{optOut:t,d_ottl:r}},n.normalizeBoolean=function(e){var t=e;return"true"===e?t=!0:"false"===e&&(t=!1),t}})),x=(E.isObjectEmpty,E.isValueEmpty,E.getIeVersion,E.encodeAndBuildRequest,E.isObject,E.defineGlobalNamespace,E.pluck,E.parseOptOut,E.normalizeBoolean,n),j=w.MESSAGES,A={0:"prefix",1:"orgID",2:"state"},O=function(e,t){this.parse=function(e){try{var t={};return e.data.split("|").forEach((function(e,n){void 0!==e&&(t[A[n]]=2!==n?e:JSON.parse(e))})),t}catch(e){}},this.isInvalid=function(n){var r=this.parse(n);if(!r||Object.keys(r).length<2)return!0;var a=e!==r.orgID,i=!t||n.origin!==t,o=-1===Object.keys(j).indexOf(r.prefix);return a||i||o},this.send=function(n,r,a){var i=r+"|"+e;a&&a===Object(a)&&(i+="|"+JSON.stringify(a));try{n.postMessage(i,t)}catch(e){}}},L=w.MESSAGES,N=function(e,t,n,r){function a(e){Object.assign(f,e)}function i(e){Object.assign(f.state,e),Object.assign(f.state.ALLFIELDS,e),f.callbackRegistry.executeAll(f.state)}function o(e){if(!v.isInvalid(e)){m=!1;var t=v.parse(e);f.setStateAndPublish(t.state)}}function s(e){!m&&g&&(m=!0,v.send(r,e))}function c(){a(new S(n._generateID)),f.getMarketingCloudVisitorID(),f.callbackRegistry.executeAll(f.state,!0),b.removeEventListener("message",l)}function l(e){if(!v.isInvalid(e)){var t=v.parse(e);m=!1,b.clearTimeout(f._handshakeTimeout),b.removeEventListener("message",l),a(new T(f)),b.addEventListener("message",o),f.setStateAndPublish(t.state),f.callbackRegistry.hasCallbacks()&&s(L.GETSTATE)}}function u(){g&&postMessage?(b.addEventListener("message",l),s(L.HANDSHAKE),f._handshakeTimeout=setTimeout(c,250)):c()}function d(){b.s_c_in||(b.s_c_il=[],b.s_c_in=0),f._c="Visitor",f._il=b.s_c_il,f._in=b.s_c_in,f._il[f._in]=f,b.s_c_in++}function p(){function e(e){0!==e.indexOf("_")&&"function"==typeof n[e]&&(f[e]=function(){})}Object.keys(n).forEach(e),f.getSupplementalDataID=n.getSupplementalDataID,f.isAllowed=function(){return!0}}var f=this,g=t.whitelistParentDomain;f.state={ALLFIELDS:{}},f.version=n.version,f.marketingCloudOrgID=e,f.cookieDomain=n.cookieDomain||"",f._instanceType="child";var m=!1,v=new O(e,g);f.callbackRegistry=x(),f.init=function(){d(),p(),a(new D(f)),u()},f.findField=function(e,t){if(void 0!==f.state[e])return t(f.state[e]),f.state[e]},f.messageParent=s,f.setStateAndPublish=i},M=w.MESSAGES,R=w.ALL_APIS,F=w.ASYNC_API_MAP,U=w.FIELDGROUP_TO_FIELD,B=function(e,t){function n(){var t={};return Object.keys(R).forEach((function(n){var r=R[n],a=e[r]();E.isValueEmpty(a)||(t[n]=a)})),t}function r(){var t=[];return e._loading&&Object.keys(e._loading).forEach((function(n){if(e._loading[n]){var r=U[n];t.push(r)}})),t.length?t:null}function a(t){return function n(){var a=r();if(a){var i=F[a[0]];e[i](n,!0)}else t()}}function i(e,r){var a=n();t.send(e,r,a)}function o(e){c(e),i(e,M.HANDSHAKE)}function s(e){a((function(){i(e,M.PARENTSTATE)}))()}function c(n){function r(r){a.call(e,r),t.send(n,M.PARENTSTATE,{CUSTOMERIDS:e.getCustomerIDs()})}var a=e.setCustomerIDs;e.setCustomerIDs=r}return function(e){t.isInvalid(e)||(t.parse(e).prefix===M.HANDSHAKE?o:s)(e.source)}},H=function(e,t){function n(e){return function(n){r[e]=n,++a===i&&t(r)}}var r={},a=0,i=Object.keys(e).length;Object.keys(e).forEach((function(t){var r=e[t];if(r.fn){var a=r.args||[];a.unshift(n(t)),r.fn.apply(r.context||null,a)}}))},q={get:function(e){e=encodeURIComponent(e);var t=(";"+document.cookie).split(" ").join(";"),n=t.indexOf(";"+e+"="),r=n<0?n:t.indexOf(";",n+1);return n<0?"":decodeURIComponent(t.substring(n+2+e.length,r<0?t.length:r))},set:function(e,t,n){var a=r(n,"cookieLifetime"),i=r(n,"expires"),o=r(n,"domain"),s=r(n,"secure"),c=r(n,"sameSite"),l=s?"Secure":"",u=c?"SameSite="+c+";":"";if(i&&"SESSION"!==a&&"NONE"!==a){var d=""!==t?parseInt(a||0,10):-60;if(d)(i=new Date).setTime(i.getTime()+1e3*d);else if(1===i){var p=(i=new Date).getYear();i.setYear(p+2+(p<1900?1900:0))}}else i=0;return e&&"NONE"!==a?(document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+"; path=/;"+(i?" expires="+i.toGMTString()+";":"")+(o?" domain="+o+";":"")+u+l,this.get(e)===t):0},remove:function(e,t){var n=r(t,"domain");n=n?" domain="+n+";":"";var a=r(t,"secure"),i=r(t,"sameSite"),o=a?"Secure":"",s=i?"SameSite="+i+";":"";document.cookie=encodeURIComponent(e)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+n+s+o}},W=function(e,t){!e&&b.location&&(e=b.location.hostname);var n,r=e.split("."),a=t||{};for(n=r.length-2;n>=0;n--)if(a.domain=r.slice(n).join("."),q.set("test","cookie",a))return q.remove("test",a),a.domain;return""},G={compare:s,isLessThan:function(e,t){return s(e,t)<0},areVersionsDifferent:function(e,t){return 0!==s(e,t)},isGreaterThan:function(e,t){return s(e,t)>0},isEqual:function(e,t){return 0===s(e,t)}},z=!!b.postMessage,Q={postMessage:function(e,t,n){var r=1;t&&(z?n.postMessage(e,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(n.location=t.replace(/#.*$/,"")+"#"+ +new Date+r+++"&"+e))},receiveMessage:function(e,t){var n;try{z&&(e&&(n=function(n){if("string"==typeof t&&n.origin!==t||"[object Function]"===Object.prototype.toString.call(t)&&!1===t(n.origin))return!1;e(n)}),b.addEventListener?b[e?"addEventListener":"removeEventListener"]("message",n):b[e?"attachEvent":"detachEvent"]("onmessage",n))}catch(e){}}},$=function(e){var t,n,r="0123456789",a="",i="",o=8,s=10,c=10;if(1==e){for(r+="ABCDEF",t=0;16>t;t++)n=Math.floor(Math.random()*o),a+=r.substring(n,n+1),n=Math.floor(Math.random()*o),i+=r.substring(n,n+1),o=16;return a+"-"+i}for(t=0;19>t;t++)n=Math.floor(Math.random()*s),a+=r.substring(n,n+1),0===t&&9==n?s=3:((1==t||2==t)&&10!=s&&2>n||2<t)&&(s=10),n=Math.floor(Math.random()*c),i+=r.substring(n,n+1),0===t&&9==n?c=3:((1==t||2==t)&&10!=c&&2>n||2<t)&&(c=10);return a+i},Y=function(e){return{corsMetadata:function(){var e="none",t=!0;return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?e="XMLHttpRequest":"undefined"!=typeof XDomainRequest&&XDomainRequest===Object(XDomainRequest)&&(t=!1),Object.prototype.toString.call(b.HTMLElement).indexOf("Constructor")>0&&(t=!1)),{corsType:e,corsCookiesEnabled:t}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new b[this.corsMetadata.corsType]},fireCORS:function(t,n){function r(e){var n;try{if((n=JSON.parse(e))!==Object(n))return void a.handleCORSError(t,null,"Response is not JSON")}catch(e){return void a.handleCORSError(t,e,"Error parsing response as JSON")}try{for(var r=t.callback,i=b,o=0;o<r.length;o++)i=i[r[o]];i(n)}catch(e){a.handleCORSError(t,e,"Error forming callback function")}}var a=this;n&&(t.loadErrorHandler=n);try{var i=this.getCORSInstance();i.open("get",t.corsUrl+"&ts="+(new Date).getTime(),!0),"XMLHttpRequest"===this.corsMetadata.corsType&&(i.withCredentials=!0,i.timeout=e.loadTimeout,i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){4===this.readyState&&200===this.status&&r(this.responseText)}),i.onerror=function(e){a.handleCORSError(t,e,"onerror")},i.ontimeout=function(e){a.handleCORSError(t,e,"ontimeout")},i.send(),e._log.requests.push(t.corsUrl)}catch(e){this.handleCORSError(t,e,"try-catch")}},handleCORSError:function(t,n,r){e.CORSErrors.push({corsData:t,error:n,description:r}),t.loadErrorHandler&&("ontimeout"===r?t.loadErrorHandler(!0):t.loadErrorHandler(!1))}}},J={POST_MESSAGE_ENABLED:!!b.postMessage,DAYS_BETWEEN_SYNC_ID_CALLS:1,MILLIS_PER_DAY:864e5,ADOBE_MC:"adobe_mc",ADOBE_MC_SDID:"adobe_mc_sdid",VALID_VISITOR_ID_REGEX:/^[0-9a-fA-F\-]+$/,ADOBE_MC_TTL_IN_MIN:5,VERSION_REGEX:/vVersion\|((\d+\.)?(\d+\.)?(\*|\d+))(?=$|\|)/,FIRST_PARTY_SERVER_COOKIE:"s_ecid"},K=function(e,t){var n=b.document;return{THROTTLE_START:3e4,MAX_SYNCS_LENGTH:649,throttleTimerSet:!1,id:null,onPagePixels:[],iframeHost:null,getIframeHost:function(e){if("string"==typeof e){var t=e.split("/");return t[0]+"//"+t[2]}},subdomain:null,url:null,getUrl:function(){var t,r="http://fast.",a="?d_nsid="+e.idSyncContainerID+"#"+encodeURIComponent(n.location.origin);return this.subdomain||(this.subdomain="nosubdomainreturned"),e.loadSSL&&(r=e.idSyncSSLUseAkamai?"https://fast.":"https://"),t=r+this.subdomain+".demdex.net/dest5.html"+a,this.iframeHost=this.getIframeHost(t),this.id="destination_publishing_iframe_"+this.subdomain+"_"+e.idSyncContainerID,t},checkDPIframeSrc:function(){var t="?d_nsid="+e.idSyncContainerID+"#"+encodeURIComponent(n.location.href);"string"==typeof e.dpIframeSrc&&e.dpIframeSrc.length&&(this.id="destination_publishing_iframe_"+(e._subdomain||this.subdomain||(new Date).getTime())+"_"+e.idSyncContainerID,this.iframeHost=this.getIframeHost(e.dpIframeSrc),this.url=e.dpIframeSrc+t)},idCallNotProcesssed:null,doAttachIframe:!1,startedAttachingIframe:!1,iframeHasLoaded:null,iframeIdChanged:null,newIframeCreated:null,originalIframeHasLoadedAlready:null,iframeLoadedCallbacks:[],regionChanged:!1,timesRegionChanged:0,sendingMessages:!1,messages:[],messagesPosted:[],messagesReceived:[],messageSendingInterval:J.POST_MESSAGE_ENABLED?null:100,onPageDestinationsFired:[],jsonForComparison:[],jsonDuplicates:[],jsonWaiting:[],jsonProcessed:[],canSetThirdPartyCookies:!0,receivedThirdPartyCookiesNotification:!1,readyToAttachIframePreliminary:function(){return!(e.idSyncDisableSyncs||e.disableIdSyncs||e.idSyncDisable3rdPartySyncing||e.disableThirdPartyCookies||e.disableThirdPartyCalls)},readyToAttachIframe:function(){return this.readyToAttachIframePreliminary()&&(this.doAttachIframe||e._doAttachIframe)&&(this.subdomain&&"nosubdomainreturned"!==this.subdomain||e._subdomain)&&this.url&&!this.startedAttachingIframe},attachIframe:function(){function e(){(a=n.createElement("iframe")).sandbox="allow-scripts allow-same-origin",a.title="Adobe ID Syncing iFrame",a.id=r.id,a.name=r.id+"_name",a.style.cssText="display: none; width: 0; height: 0;",a.src=r.url,r.newIframeCreated=!0,t(),n.body.appendChild(a)}function t(e){a.addEventListener("load",(function(){a.className="aamIframeLoaded",r.iframeHasLoaded=!0,r.fireIframeLoadedCallbacks(e),r.requestToProcess()}))}this.startedAttachingIframe=!0;var r=this,a=n.getElementById(this.id);a?"IFRAME"!==a.nodeName?(this.id+="_2",this.iframeIdChanged=!0,e()):(this.newIframeCreated=!1,"aamIframeLoaded"!==a.className?(this.originalIframeHasLoadedAlready=!1,t("The destination publishing iframe already exists from a different library, but hadn't loaded yet.")):(this.originalIframeHasLoadedAlready=!0,this.iframeHasLoaded=!0,this.iframe=a,this.fireIframeLoadedCallbacks("The destination publishing iframe already exists from a different library, and had loaded alresady."),this.requestToProcess())):e(),this.iframe=a},fireIframeLoadedCallbacks:function(e){this.iframeLoadedCallbacks.forEach((function(t){"function"==typeof t&&t({message:e||"The destination publishing iframe was attached and loaded successfully."})})),this.iframeLoadedCallbacks=[]},requestToProcess:function(t){function n(){a.jsonForComparison.push(t),a.jsonWaiting.push(t),a.processSyncOnPage(t)}var r,a=this;if(t===Object(t)&&t.ibs)if(r=JSON.stringify(t.ibs||[]),this.jsonForComparison.length){var i,o,s,c=!1;for(i=0,o=this.jsonForComparison.length;i<o;i++)if(s=this.jsonForComparison[i],r===JSON.stringify(s.ibs||[])){c=!0;break}c?this.jsonDuplicates.push(t):n()}else n();if((this.receivedThirdPartyCookiesNotification||!J.POST_MESSAGE_ENABLED||this.iframeHasLoaded)&&this.jsonWaiting.length){var l=this.jsonWaiting.shift();this.process(l),this.requestToProcess()}e.idSyncDisableSyncs||e.disableIdSyncs||!this.iframeHasLoaded||!this.messages.length||this.sendingMessages||(this.throttleTimerSet||(this.throttleTimerSet=!0,setTimeout((function(){a.messageSendingInterval=J.POST_MESSAGE_ENABLED?null:150}),this.THROTTLE_START)),this.sendingMessages=!0,this.sendMessages())},getRegionAndCheckIfChanged:function(t,n){var r=e._getField("MCAAMLH"),a=t.d_region||t.dcs_region;return r?a&&(e._setFieldExpire("MCAAMLH",n),e._setField("MCAAMLH",a),parseInt(r,10)!==a&&(this.regionChanged=!0,this.timesRegionChanged++,e._setField("MCSYNCSOP",""),e._setField("MCSYNCS",""),r=a)):(r=a)&&(e._setFieldExpire("MCAAMLH",n),e._setField("MCAAMLH",r)),r||(r=""),r},processSyncOnPage:function(e){var t,n,r,a;if((t=e.ibs)&&t instanceof Array&&(n=t.length))for(r=0;r<n;r++)(a=t[r]).syncOnPage&&this.checkFirstPartyCookie(a,"","syncOnPage")},process:function(e){var t,n,r,a,i,o=encodeURIComponent,s=!1;if((t=e.ibs)&&t instanceof Array&&(n=t.length))for(s=!0,r=0;r<n;r++)a=t[r],i=[o("ibs"),o(a.id||""),o(a.tag||""),E.encodeAndBuildRequest(a.url||[],","),o(a.ttl||""),"","",a.fireURLSync?"true":"false"],a.syncOnPage||(this.canSetThirdPartyCookies?this.addMessage(i.join("|")):a.fireURLSync&&this.checkFirstPartyCookie(a,i.join("|")));s&&this.jsonProcessed.push(e)},checkFirstPartyCookie:function(t,n,r){var a="syncOnPage"===r,i=a?"MCSYNCSOP":"MCSYNCS";e._readVisitor();var o,s,c=e._getField(i),l=!1,u=!1,d=Math.ceil((new Date).getTime()/J.MILLIS_PER_DAY);c?(o=c.split("*"),l=(s=this.pruneSyncData(o,t.id,d)).dataPresent,u=s.dataValid,l&&u||this.fireSync(a,t,n,o,i,d)):(o=[],this.fireSync(a,t,n,o,i,d))},pruneSyncData:function(e,t,n){var r,a,i,o=!1,s=!1;for(a=0;a<e.length;a++)r=e[a],i=parseInt(r.split("-")[1],10),r.match("^"+t+"-")?(o=!0,n<i?s=!0:(e.splice(a,1),a--)):n>=i&&(e.splice(a,1),a--);return{dataPresent:o,dataValid:s}},manageSyncsSize:function(e){if(e.join("*").length>this.MAX_SYNCS_LENGTH)for(e.sort((function(e,t){return parseInt(e.split("-")[1],10)-parseInt(t.split("-")[1],10)}));e.join("*").length>this.MAX_SYNCS_LENGTH;)e.shift()},fireSync:function(t,n,r,a,i,o){var s=this;if(t){if("img"===n.tag){var c,l,u,d,p=n.url,f=e.loadSSL?"https:":"http:";for(c=0,l=p.length;c<l;c++){u=p[c],d=/^\/\//.test(u);var g=new Image;g.addEventListener("load",function(t,n,r,a){return function(){s.onPagePixels[t]=null,e._readVisitor();var o,c,l,u,d=e._getField(i),p=[];if(d)for(c=0,l=(o=d.split("*")).length;c<l;c++)(u=o[c]).match("^"+n.id+"-")||p.push(u);s.setSyncTrackingData(p,n,r,a)}}(this.onPagePixels.length,n,i,o)),g.src=(d?f:"")+u,this.onPagePixels.push(g)}}}else this.addMessage(r),this.setSyncTrackingData(a,n,i,o)},addMessage:function(t){var n=encodeURIComponent(e._enableErrorReporting?"---destpub-debug---":"---destpub---");this.messages.push((J.POST_MESSAGE_ENABLED?"":n)+t)},setSyncTrackingData:function(t,n,r,a){t.push(n.id+"-"+(a+Math.ceil(n.ttl/60/24))),this.manageSyncsSize(t),e._setField(r,t.join("*"))},sendMessages:function(){var e,t=this,n="",r=encodeURIComponent;this.regionChanged&&(n=r("---destpub-clear-dextp---"),this.regionChanged=!1),this.messages.length?J.POST_MESSAGE_ENABLED?(e=n+r("---destpub-combined---")+this.messages.join("%01"),this.postMessage(e),this.messages=[],this.sendingMessages=!1):(e=this.messages.shift(),this.postMessage(n+e),setTimeout((function(){t.sendMessages()}),this.messageSendingInterval)):this.sendingMessages=!1},postMessage:function(e){Q.postMessage(e,this.url,this.iframe.contentWindow),this.messagesPosted.push(e)},receiveMessage:function(e){var t,n=/^---destpub-to-parent---/;"string"==typeof e&&n.test(e)&&("canSetThirdPartyCookies"===(t=e.replace(n,"").split("|"))[0]&&(this.canSetThirdPartyCookies="true"===t[1],this.receivedThirdPartyCookiesNotification=!0,this.requestToProcess()),this.messagesReceived.push(e))},processIDCallData:function(r){(null==this.url||r.subdomain&&"nosubdomainreturned"===this.subdomain)&&("string"==typeof e._subdomain&&e._subdomain.length?this.subdomain=e._subdomain:this.subdomain=r.subdomain||"",this.url=this.getUrl()),r.ibs instanceof Array&&r.ibs.length&&(this.doAttachIframe=!0),this.readyToAttachIframe()&&(e.idSyncAttachIframeOnWindowLoad?(t.windowLoaded||"complete"===n.readyState||"loaded"===n.readyState)&&this.attachIframe():this.attachIframeASAP()),"function"==typeof e.idSyncIDCallResult?e.idSyncIDCallResult(r):this.requestToProcess(r),"function"==typeof e.idSyncAfterIDCallResult&&e.idSyncAfterIDCallResult(r)},canMakeSyncIDCall:function(t,n){return e._forceSyncIDCall||!t||n-t>J.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function e(){t.startedAttachingIframe||(n.body?t.attachIframe():setTimeout(e,30))}var t=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,t){return X[e]&&"boolean"===X[e].type?"function"!=typeof t?t:t():t}},ee=function(e){var t={};return e.on=function(e,n,r){if(!n||"function"!=typeof n)throw new Error("[ON] Callback should be a function.");t.hasOwnProperty(e)||(t[e]=[]);var a=t[e].push({callback:n,context:r})-1;return function(){t[e].splice(a,1),t[e].length||delete t[e]}},e.off=function(e,n){t.hasOwnProperty(e)&&(t[e]=t[e].filter((function(e){if(e.callback!==n)return e})))},e.publish=function(e){if(t.hasOwnProperty(e)){var n=[].slice.call(arguments,1);t[e].slice(0).forEach((function(e){e.callback.apply(e.context,n)}))}},e.publish},te={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},ne={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",MEDIA_ANALYTICS:"mediaaa"},re=(t(y={},ne.AAM,565),t(y,ne.ECID,565),y),ae=(t(_={},ne.AAM,[1,10]),t(_,ne.ECID,[1,10]),_),ie=["videoaa","iabConsentHash"],oe=function(e){return Object.keys(e).map((function(t){return e[t]}))}(ne),se=function(){var e={};return e.callbacks=Object.create(null),e.add=function(t,n){if(!l(n))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");e.callbacks[t]=e.callbacks[t]||[];var r=e.callbacks[t].push(n)-1;return function(){e.callbacks[t].splice(r,1)}},e.execute=function(t,n){if(e.callbacks[t]){n=(n=void 0===n?[]:n)instanceof Array?n:[n];try{for(;e.callbacks[t].length;){var r=e.callbacks[t].shift();"function"==typeof r?r.apply(null,n):r instanceof Array&&r[1].apply(r[0],n)}delete e.callbacks[t]}catch(e){}}},e.executeAll=function(t,n){(n||t&&!c(t))&&Object.keys(e.callbacks).forEach((function(n){var r=void 0!==t[n]?t[n]:"";e.execute(n,r)}),e)},e.hasCallbacks=function(){return Boolean(Object.keys(e.callbacks).length)},e},ce=function(){},le=function(e){var t=window.console;return!!t&&"function"==typeof t[e]},ue=function(e,t,n){return n()?function(){if(le(e)){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];console[e].apply(console,[t].concat(r))}}:ce},de=u,pe=function(){for(var e=[],t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e.push(n)}return function(t,n){t=unescape(encodeURIComponent(t)),n||(n=0),n^=-1;for(var r=0;r<t.length;r++){var a=255&(n^t.charCodeAt(r));n=n>>>8^e[a]}return(n^=-1)>>>0}}(),fe=new de("[ADOBE OPT-IN]"),ge=function(t,n){return e(t)===n},me=function(e,t){return e instanceof Array?e:ge(e,"string")?[e]:t||[]},ve=function(e){var t=Object.keys(e);return!!t.length&&t.every((function(t){return!0===e[t]}))},he=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!e||_e(e))&&me(e).every((function(e){return oe.indexOf(e)>-1||t&&ie.indexOf(e)>-1}))},be=function(e,t){return e.reduce((function(e,n){return e[n]=t,e}),{})},ye=function(e){return JSON.parse(JSON.stringify(e))},_e=function(e){return"[object Array]"===Object.prototype.toString.call(e)&&!e.length},we=function(e){if(Ce(e))return e;try{return JSON.parse(e)}catch(e){return{}}},Pe=function(e){return void 0===e||(Ce(e)?he(Object.keys(e),!0):Se(e))},Se=function(e){try{var t=JSON.parse(e);return!!e&&ge(e,"string")&&he(Object.keys(t),!0)}catch(e){return!1}},Ce=function(e){return null!==e&&ge(e,"object")&&!1===Array.isArray(e)},Ve=function(){},ke=function(e){return ge(e,"function")?e():e},Te=function(e,t){Pe(e)||fe.error("".concat(t))},Ie=function(e){return Object.keys(e).map((function(t){return e[t]}))},De=function(e){return Ie(e).filter((function(e,t,n){return n.indexOf(e)===t}))},Ee=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.command,r=t.params,a=void 0===r?{}:r,i=t.callback,o=void 0===i?Ve:i;if(!n||-1===n.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var s=n.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(a,{callback:o});c[l].call(c,u)}catch(e){fe.error("[execute] Something went wrong: "+e.message)}}};p.prototype=Object.create(Error.prototype),p.prototype.constructor=p;var xe="fetchPermissions",je="[OptIn#registerPlugin] Plugin is invalid.";f.Categories=ne,f.TimeoutError=p;var Ae=Object.freeze({OptIn:f,IabPlugin:h}),Oe=function(e,t){e.publishDestinations=function(n){var r=arguments[1],a=arguments[2];try{a="function"==typeof a?a:n.callback}catch(e){a=function(){}}var i=t;if(i.readyToAttachIframePreliminary()){if("string"==typeof n){if(!n.length)return void a({error:"subdomain is not a populated string."});if(!(r instanceof Array&&r.length))return void a({error:"messages is not a populated array."});var o=!1;if(r.forEach((function(e){"string"==typeof e&&e.length&&(i.addMessage(e),o=!0)})),!o)return void a({error:"None of the messages are populated strings."})}else{if(!E.isObject(n))return void a({error:"Invalid parameters passed."});var s=n;if("string"!=typeof(n=s.subdomain)||!n.length)return void a({error:"config.subdomain is not a populated string."});var c=s.urlDestinations;if(!(c instanceof Array&&c.length))return void a({error:"config.urlDestinations is not a populated array."});var l=[];c.forEach((function(e){E.isObject(e)&&(e.hideReferrer?e.message&&i.addMessage(e.message):l.push(e))})),function e(){l.length&&setTimeout((function(){var t=new Image,n=l.shift();t.src=n.url,i.onPageDestinationsFired.push(n),e()}),100)}()}i.iframe?(a({message:"The destination publishing iframe is already attached and loaded."}),i.requestToProcess()):!e.subdomain&&e._getField("MCMID")?(i.subdomain=n,i.doAttachIframe=!0,i.url=i.getUrl(),i.readyToAttachIframe()?(i.iframeLoadedCallbacks.push((function(e){a({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(e.message||"no result")})})),i.attachIframe()):a({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):i.iframeLoadedCallbacks.push((function(e){a({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(e.message||"no result")})}))}else a({error:"The destination publishing iframe is disabled in the Visitor library."})}},Le=function e(t){function n(e,t){return e>>>t|e<<32-t}for(var r,a,i=Math.pow,o=i(2,32),s="",c=[],l=8*t.length,u=e.h=e.h||[],d=e.k=e.k||[],p=d.length,f={},g=2;p<64;g++)if(!f[g]){for(r=0;r<313;r+=g)f[r]=g;u[p]=i(g,.5)*o|0,d[p++]=i(g,1/3)*o|0}for(t+="\x80";t.length%64-56;)t+="\0";for(r=0;r<t.length;r++){if((a=t.charCodeAt(r))>>8)return;c[r>>2]|=a<<(3-r)%4*8}for(c[c.length]=l/o|0,c[c.length]=l,a=0;a<c.length;){var m=c.slice(a,a+=16),v=u;for(u=u.slice(0,8),r=0;r<64;r++){var h=m[r-15],b=m[r-2],y=u[0],_=u[4],w=u[7]+(n(_,6)^n(_,11)^n(_,25))+(_&u[5]^~_&u[6])+d[r]+(m[r]=r<16?m[r]:m[r-16]+(n(h,7)^n(h,18)^h>>>3)+m[r-7]+(n(b,17)^n(b,19)^b>>>10)|0);(u=[w+((n(y,2)^n(y,13)^n(y,22))+(y&u[1]^y&u[2]^u[1]&u[2]))|0].concat(u))[4]=u[4]+w|0}for(r=0;r<8;r++)u[r]=u[r]+v[r]|0}for(r=0;r<8;r++)for(a=3;a+1;a--){var P=u[r]>>8*a&255;s+=(P<16?0:"")+P.toString(16)}return s},Ne=function(e,t){return"SHA-256"!==t&&"SHA256"!==t&&"sha256"!==t&&"sha-256"!==t||(e=Le(e)),e},Me=function(e){return String(e).trim().toLowerCase()},Re=Ae.OptIn;E.defineGlobalNamespace(),window.adobe.OptInCategories=Re.Categories;var Fe=function(t,n,r){function a(){y._customerIDsHashChanged=!1}function i(e){var t=e;return function(e){var n=e||k.location.href;try{var r=y._extractParamFromUri(n,t);if(r)return te.parsePipeDelimetedKeyValues(r)}catch(e){}}}function o(e){function t(e,t,n){e&&e.match(J.VALID_VISITOR_ID_REGEX)&&(n===j&&(V=!0),t(e))}t(e[j],y.setMarketingCloudVisitorID,j),y._setFieldExpire(R,-1),t(e[N],y.setAnalyticsVisitorID)}function s(e){e=e||{},y._supplementalDataIDCurrent=e.supplementalDataIDCurrent||"",y._supplementalDataIDCurrentConsumed=e.supplementalDataIDCurrentConsumed||{},y._supplementalDataIDLast=e.supplementalDataIDLast||"",y._supplementalDataIDLastConsumed=e.supplementalDataIDLastConsumed||{}}function c(e){function t(e,t,n){return(n=n?n+="|":n)+(e+"=")+encodeURIComponent(t)}function n(e,n){var r=n[0],a=n[1];return null!=a&&a!==F&&(e=t(r,a,e)),e}return function(e){return(e=e?e+="|":e)+"TS="+te.getTimestampInSeconds()}(e.reduce(n,""))}function l(e){var t=e.minutesToLive,n="";return(y.idSyncDisableSyncs||y.disableIdSyncs)&&(n=n||"Error: id syncs have been disabled"),"string"==typeof e.dpid&&e.dpid.length||(n=n||"Error: config.dpid is empty"),"string"==typeof e.url&&e.url.length||(n=n||"Error: config.url is empty"),void 0===t?t=20160:(t=parseInt(t,10),(isNaN(t)||t<=0)&&(n=n||"Error: config.minutesToLive needs to be a positive number")),{error:n,ttl:t}}function u(){return!(!y.configs.doesOptInApply||_.optIn.isComplete&&d())}function d(){return y.configs.doesOptInApply&&y.configs.isIabContext?_.optIn.isApproved(_.optIn.Categories.ECID)&&C:_.optIn.isApproved(_.optIn.Categories.ECID)}function p(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["syncIdentity",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach((function(e){var t=e[0],n=2===e.length?e[1]:"",r=y[t];y[t]=function(e){return d()&&y.isAllowed()?r.apply(y,arguments):("function"==typeof e&&y._callCallback(e,[n]),n)}}))}function f(){var e=y._getAudienceManagerURLData(),t=e.url;return y._loadData(x,t,null,e)}function g(e,t){if(C=!0,e)throw new Error("[IAB plugin] : "+e);t&&t.gdprApplies&&(P=t.consentString,S=t.hasConsentChangedSinceLastCmpPull?1:0),f(),h()}function m(e,t){if(C=!0,e)throw new Error("[IAB plugin] : "+e);t.gdprApplies&&(P=t.consentString,S=t.hasConsentChangedSinceLastCmpPull?1:0),y.init(),h()}function v(){_.optIn.isComplete&&(_.optIn.isApproved(_.optIn.Categories.ECID)?y.configs.isIabContext?_.optIn.execute({command:"iabPlugin.fetchConsentData",callback:m}):(y.init(),h()):y.configs.isIabContext?_.optIn.execute({command:"iabPlugin.fetchConsentData",callback:g}):(p(),h()))}function h(){_.optIn.off("complete",v)}if(!r||r.split("").reverse().join("")!==t)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var y=this,_=window.adobe,P="",S=0