// For license information, see `https://assets.adobedtm.com/95c3e405673d/5ac36e280641/launch-3754400f6e8a.js`. window._satellite=window._satellite||{},window._satellite.container={buildInfo:{minified:!0,buildDate:"2024-10-14T09:17:40Z",turbineBuildDate:"2024-08-22T17:32:44Z",turbineVersion:"28.0.0"},environment:{id:"ENf7633065419245f3ba13271bbfec5cc9",stage:"production"},dataElements:{"CC.FirstStepName":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e=_satellite.cookie.get("aocs");return"undefined"!=typeof trackObject&&"App On Click Start"==trackObject.action&&(_satellite.cookie.set("aocs",_satellite.getVar("CC.digitalData.application.application.name:trackObject.action:digitalData.application.step"),0),e=_satellite.cookie.get("aocs")),"undefined"!=typeof trackObject&&"App Completed"==trackObject.action&&_satellite.cookie.remove("aocs"),void 0===digitalData.application.application.name||""===digitalData.application.application.name?"":e}}},"digitalData.user.jobType":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.jobType"}},"CC.TimeBetWeenPageVisitAndComplet":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e;if("undefined"!=typeof trackObject&&"App Page Visit"==trackObject.action&&_satellite.cookie.set("TTC",(new Date).getTime(),0),"undefined"!=typeof trackObject&&"App Completed"==trackObject.action){var t=_satellite.cookie.get("TTC");null!=t&&""!=t&&(resultMs=(new Date).getTime()-t,e=resultMs/1e3,_satellite.cookie.remove("TTC"))}return e}}},"digitalData.application.state":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.state"}},"digitalData.page.pageActivity.search.onSiteSearchTerm":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.search.onSiteSearchTerm"}},"CC.Merch_Category1":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){for(var e="",t=[{id:"amount:",value:_satellite.getVar("digitalData.products.attributes.amount"),event:"event91"},{id:"payment amount:",value:_satellite.getVar("digitalData.products.attributes.paymentAmount"),event:"event92"},{id:"number of payments:",value:_satellite.getVar("digitalData.products.attributes.numberOfPayments")},{id:"payment date:",value:_satellite.getVar("digitalData.products.attributes.paymentDate")},{id:"payment type:",value:_satellite.getVar("digitalData.products.attributes.paymentType")},{id:"service charge:",value:_satellite.getVar("digitalData.products.attributes.serviceCharge")},{id:"currency:",value:_satellite.getVar("digitalData.products.attributes.currency")},{id:"numberOfHolders:",value:_satellite.getVar("digitalData.products.attributes.numberOfHolders")},{id:"tin:",value:_satellite.getVar("digitalData.products.attributes.interestRate.tin")},{id:"tae:",value:_satellite.getVar("digitalData.products.attributes.interestRate.tae")},{id:"rate:",value:_satellite.getVar("digitalData.products.attributes.interestRate.rate")},{id:"term:",value:_satellite.getVar("digitalData.products.attributes.term")},{id:"earnings:",value:_satellite.getVar("digitalData.products.attributes.earnings")},{id:"expenses:",value:_satellite.getVar("digitalData.products.attributes.expenses")}],n=0;ni;i++)void 0!==digitalData.products.attributes[i].productName&&""!=digitalData.products.attributes[i].productName&&(e+=digitalData.products.attributes[i].productName+",");return e=e.slice(0,-1)}}},"CC.SCROLL.MyArrayDataSelect:digitalData.page.pageInfo.pageName":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e=["publica:personas:home","publica:personas:home 1","publica:personas:home 2","publica:personas:home 3","publica:personas:home 4"].find((function(e){return""==digitalData.page.pageInfo.pageName?"NO pagename":e==digitalData.page.pageInfo.pageName}));return _satellite.logger.log("[Custom Action][Scroll Complete] "+e),e}}},"CC.pathname":{defaultValue:"",forceLowerCase:!0,cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){return document.location.pathname}}},"digitalData.page.pageInfo.level6":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.level6"}},"CC.digitalData.page.pageActivity.video.player:digitalData.page.pageActivity.video.duration:digitalData.page.pageActivity.video.quality":{defaultValue:'""',forceLowerCase:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="";return""==_satellite.getVar("digitalData.page.pageActivity.video.player")&&""==_satellite.getVar("digitalData.page.pageActivity.video.duration")&&""==_satellite.getVar("digitalData.page.pageActivity.video.quality")||(e=_satellite.getVar("digitalData.page.pageActivity.video.player")+":"+_satellite.getVar("digitalData.page.pageActivity.video.duration")+":"+_satellite.getVar("digitalData.page.pageActivity.video.quality")),e}}},"digitalData.products.attributes[i].amount":{modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="";for(i=0;digitalData.products.attributes.length>i;i++)void 0!==digitalData.products.attributes[i].amount&&""!=digitalData.products.attributes[i].amount&&(e+=digitalData.products.attributes[i].amount+",");return e=e.slice(0,-1)}}},"digitalData.page.pageInfo.businessUnit":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.businessUnit"}},"digitalData.news.country":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.country"}},"CC.TimeBetWeenLogInAndComplet":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e;if("undefined"!=typeof trackObject&&"Login"==trackObject.action&&_satellite.cookie.set("TTCL",(new Date).getTime(),0),"undefined"!=typeof trackObject&&"App Completed"==trackObject.action){var t=_satellite.cookie.get("TTCL");null!=t&&""!=t&&(resultMs=(new Date).getTime()-t,e=resultMs/1e3)}return e}}},"digitalData.news.profile.value":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.profile.value"}},"window.facebookElementEvent":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"window.facebookElementEvent"}},"CC.digitalDataTemplate":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){return{versionDL:"20180718_4.0",pageInstanceID:"",page:{pageInfo:{pageName:"",pageIntent:"",pageSegment:"",sysEnv:"",version:"",channel:"",language:"",geoRegion:"",level1:"",level2:"",level3:"",level4:"",level5:"",level6:"",level7:"",level8:"",level9:"",level10:"",area:"",server:window.location.hostname,businessUnit:"",siteAppName:"",projectName:"",errorPage:""},pageActivity:{search:{onSiteSearchResults:"",onSiteSearchTerm:"",onSiteSearchEnterTerm:""},link:{name:"",url:"",ext:"",aux1:"",aux2:"",aux3:""},video:{nameOfVideoDisplayed:""},audio:{nameOfPodcastDisplayed:""},loginType:""}},optimization:{attributes:[{idOptimization:"",experience:"",place:"",type:"",executor:"",audience:""}],event:{eventName:"",optimizationEvent:""}},internalCampaign:{attributes:[{location:"",campaignFormat:"",collectiveCode:"",campaignName:"",product:"",productCode:"",quantity:""}],event:{eventInfo:{eventName:"",siteActionName:""}}},user:{device:{userAgent:"",mobile:"",root:""},userState:"",profileID:"",userID:"",prospectID:"",segment:{global:"",profile:""},gender:"",country:"",state:"",age:"",civilStatus:"",educationLevel:"",jobType:""},application:{transactionID:"",application:{type:"",name:""},fulfillmentModel:"",typology:"",programTypeHired:"",offer:"",operationNumber:"",process:"",step:"",interactionLevel:"",isQualifiedVisits:"",state:"",errorType:"",earnings:"",expenses:"",customFields:"",globalApplication:""},news:{id:"",originalTitle:"",title:"",type:"",originalPublishDate:"",modifiedDate:"",country:"",category:"",signature:"",author:"",countryAuthor:"",relatedId:"",relatedOriginalTitle:"",relatedPosition:"",product:"",channel:"",profile:{lifeCycle:"",value:"",behaviour:""},read:{estimate:"",real:""}},products:{attributes:[{primaryCategory:"",productSubtype:"",productName:"",productCode:"",quantity:"",amount:"",paymentAmount:"",numberOfPayments:"",paymentDate:"",paymentType:"",serviceCharge:"",currency:"",numberOfHolders:"",interestRate:{tin:"",tae:"",rate:""},term:"",group:"",state:""}],productPortfolio:[{productName:"",balance:"",currency:"",productCode:""}]}}}}},"digitalData.user.device.root":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.device.root"}},"digitalData.user.profileID":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.profileID"}},"digitalData.application.vehicle.amount":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.vehicle.amount"}},"digitalData.page.pageInfo.siteAppName":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.siteAppName"}},"digitalData.products.attributes[i].primaryCategory":{modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="";for(i=0;digitalData.products.attributes.length>i;i++)void 0!==digitalData.products.attributes[i].primaryCategory&&""!=digitalData.products.attributes[i].primaryCategory&&(e+=digitalData.products.attributes[i].primaryCategory+",");return e=e.slice(0,-1)}}},"digitalData.news.signature":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.signature"}},"CC.ADOBETARGET.MyArrayDataSelect:window.location.href":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){for(var e=["https://test-stage.cmsbbva.com/?QA2=true","https://test-stage.cmsbbva.com/OperacionCBTFServlet?proceso=tdcempresa_pr&operacion=tdce_disposicion_op&accion=consultaCamp&Id_campania=0610CAM3579700001&sCveCanal=BNET","URL 3","URL 4"],t=!1,n=window.location.href,a=(n.split("?")[1],0);a-1?"true":(isIframesProcessed=!0,"false")}catch(e){return"true"}}}},"CC.digitalData.application.application.name:trackObject.action:digitalData.application.step":{defaultValue:'""',storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="";return""==_satellite.getVar("digitalData.application.application.type")&&""==_satellite.getVar("digitalData.application.step")||(e=_satellite.getVar("digitalData.application.application.name")+":"+trackObject.action.toLowerCase()+":"+_satellite.getVar("digitalData.application.step")),e}}},"digitalData.news.category":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.category"}},"CC.ProcessExitAndDownloadLinks":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="";if(1==ExitDownloadLinkHandler)if(ExitDownloadLinkHandler=!1,"External Link"==trackObject.action){var t="External Link";s.linkType="o",-1!=filename.indexOf("mailto:")&&(filename="mail"),e=t.toLowerCase()+";"+filename}else"Download Link"==trackObject.action&&(t="Download Link",s.linkType="o",e=t.toLowerCase()+";"+filename);else"External Link"==trackObject.action||"Download Link"==trackObject.action?void 0!==digitalData.page.pageActivity.link.url&&""!=digitalData.page.pageActivity.link.url&&(e=trackObject.action.toLowerCase()+";"+digitalData.page.pageActivity.link.url):"Interaction Link"==trackObject.action?e=trackObject.action.toLowerCase()+";"+digitalData.application.interactionLevel:"Internal Link"==trackObject.action&&(e=trackObject.action.toLowerCase()+";"+digitalData.page.pageActivity.link.name);return e}}},"digitalData.application.vehicle.type":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.vehicle.type"}},"digitalData.news.originalPublishDate":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.originalPublishDate"}},"digitalData.page.pageInfo.version":{defaultValue:"",cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.version"}},"digitalData.page.pageActivity.audio.nameOfPodcastDisplayed":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.audio.nameOfPodcastDisplayed"}},"digitalData.products.attributes[i].productSubtype":{modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="";for(i=0;digitalData.products.attributes.length>i;i++)void 0!==digitalData.products.attributes[i].productSubtype&&""!=digitalData.products.attributes[i].productSubtype&&(e+=digitalData.products.attributes[i].productSubtype+",");return e=e.slice(0,-1)}}},"digitalData.news.originalTitle":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.originalTitle"}},"digitalData.page.pageInfo.level1":{defaultValue:"",forceLowerCase:!0,cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.level1"}},"CC.digitalData.news.profile.lifeCycle,digitalData.news.profile.value,digitalData.news.profile.behaviour":{defaultValue:"",forceLowerCase:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="";return""==_satellite.getVar("digitalData.news.profile.lifeCycle")&&""==_satellite.getVar("digitalData.news.profile.value")&&""==_satellite.getVar("digitalData.news.profile.behaviour")||(e=_satellite.getVar("digitalData.news.profile.lifeCycle")+":"+_satellite.getVar("digitalData.news.profile.value")+":"+_satellite.getVar("digitalData.news.profile.behaviour")),e}}},"digitalData.news.channel":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.channel"}},"CC.date.eVar4":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e=new Date,t=(e.getTimezoneOffset(),e.getSeconds());t<10&&(t="0"+t);var n=e.getMinutes();n<10&&(n="0"+n);var a=e.getHours();a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var i=e.getMonth()+1;return i<10&&(i="0"+i),e.getFullYear()+"-"+i+"-"+r+"|"+r+"|"+i+"|"}}},"digitalData.user.segment.global":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.segment.global"}},"digitalData.page.pageInfo.level9":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.level9"}},"digitalData.application.vehicle.status":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.vehicle.status"}},"digitalData.application.transactionID":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.transactionID"}},"CC.digitalData.page.pageInfo.level7":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){if(""!=digitalData.page.pageInfo.level7)return digitalData.page.pageInfo.level1+":"+digitalData.page.pageInfo.level2+":"+digitalData.page.pageInfo.level3+":"+digitalData.page.pageInfo.level4+":"+digitalData.page.pageInfo.level5+":"+digitalData.page.pageInfo.level6+":"+digitalData.page.pageInfo.level7}}},"digitalData.application.typology":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.typology"}},"CC.ARRAY.digitalData.optimization.attributes":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="",t=_satellite.getVar("digitalData.optimization.attributes");if(null!=t&&t.length>0&&""!=t[0].idOptimization){for(x=0;xi;i++)void 0!==digitalData.products.attributes[i].productCode&&""!=digitalData.products.attributes[i].productCode&&(e+=digitalData.products.attributes[i].productCode+",");return e=e.slice(0,-1)}}},"digitalData.news.profile.behaviour":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.profile.behaviour"}},"CC.digitalData.page.pageInfo.level6":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){if(""!=digitalData.page.pageInfo.level6)return digitalData.page.pageInfo.level1+":"+digitalData.page.pageInfo.level2+":"+digitalData.page.pageInfo.level3+":"+digitalData.page.pageInfo.level4+":"+digitalData.page.pageInfo.level5+":"+digitalData.page.pageInfo.level6}}},"digitalData.page.pageActivity.video.player":{defaultValue:"",forceLowerCase:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.video.player"}},"digitalData.news.id":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.id"}},"digitalData.page.pageInfo.sysEnv":{defaultValue:"",forceLowerCase:!0,cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.sysEnv"}},"digitalData.application.vehicle.year":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.vehicle.year"}},"CC.digitalData.page.pageInfo.level8":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){if(""!=digitalData.page.pageInfo.level8)return digitalData.page.pageInfo.level1+":"+digitalData.page.pageInfo.level2+":"+digitalData.page.pageInfo.level3+":"+digitalData.page.pageInfo.level4+":"+digitalData.page.pageInfo.level5+":"+digitalData.page.pageInfo.level6+":"+digitalData.page.pageInfo.level7+":"+digitalData.page.pageInfo.level8}}},"CC.ARRAY.digitalData.internalCampaign.attributes":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="",t=_satellite.getVar("digitalData.internalCampaign.attributes");if(null!=t&&t.length>0&&""!=t[0].location){for(x=0;xi;i++)void 0!==digitalData.products.attributes[i].primaryCategory&&""!=digitalData.products.attributes[i].primaryCategory&&(e+=digitalData.products.attributes[i].primaryCategory+":");return e.substring("0",e.length-1)}}},"digitalData.application.offer":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.offer"}},"digitalData.optimization.event.eventName":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.optimization.event.eventName"}},"digitalData.news.profile.lifeCycle":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.profile.lifeCycle"}},"page.pageActivity.search.originalPage":{defaultValue:"",forceLowerCase:!0,cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.search.originalPage"}},"digitalData.page.pageActivity.video.url":{defaultValue:"",forceLowerCase:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.video.url"}},"digitalData.user.userID":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.userID"}},"digitalData.page.pageInfo.projectName":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.projectName"}},"CC.digitalData.page.pageInfo.level1":{defaultValue:"",forceLowerCase:!0,cleanText:!0,modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){if(""!=digitalData.page.pageInfo.level1)return digitalData.page.pageInfo.level1}}},"digitalData.news.title":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.title"}},"digitalData.page.pageActivity.video.id":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.video.id"}},"digitalData.internalCampaign.event.eventInfo.eventName":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.internalCampaign.event.eventInfo.eventName"}},"digitalData.internalCampaign.event.eventInfo.siteActionName":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.internalCampaign.event.eventInfo.siteActionName"}},"digitalData.optimization.attributes":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.optimization.attributes"}},"digitalData.application.operationNumber":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.operationNumber"}},"digitalData.application.step":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.step"}},"window.trackObject.action":{defaultValue:"",storageDuration:"pageview", modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"window.trackObject.action"}},"CC.digitalData.page.pageInfo.level9":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){if(""!=digitalData.page.pageInfo.level9)return digitalData.page.pageInfo.level1+":"+digitalData.page.pageInfo.level2+":"+digitalData.page.pageInfo.level3+":"+digitalData.page.pageInfo.level4+":"+digitalData.page.pageInfo.level5+":"+digitalData.page.pageInfo.level6+":"+digitalData.page.pageInfo.level7+":"+digitalData.page.pageInfo.level8+":"+digitalData.page.pageInfo.level9}}},"digitalData.news.type":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.type"}},"digitalData.application.fulfillmentModel":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.fulfillmentModel"}},"digitalData.application.process":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.process"}},"digitalData.application.programTypeHired":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.programTypeHired"}},"CC.digitalData.page.pageInfo.level10":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){if(""!=digitalData.page.pageInfo.level10)return digitalData.page.pageInfo.level1+":"+digitalData.page.pageInfo.level2+":"+digitalData.page.pageInfo.level3+":"+digitalData.page.pageInfo.level4+":"+digitalData.page.pageInfo.level5+":"+digitalData.page.pageInfo.level6+":"+digitalData.page.pageInfo.level7+":"+digitalData.page.pageInfo.level8+":"+digitalData.page.pageInfo.level9+":"+digitalData.page.pageInfo.level10}}},"CC.JsonPostMesagge":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e={referrer:document.referrer,sessionID:void 0!==_satellite.cookie.get("sessionID")?_satellite.cookie.get("sessionID"):"undefined",aocs:void 0!==_satellite.cookie.get("aocs")?_satellite.cookie.get("aocs"):"undefined",TTC:void 0!==_satellite.cookie.get("TTC")?_satellite.cookie.get("TTC"):"undefined",TTCL:void 0!==_satellite.cookie.get("TTCL")?_satellite.cookie.get("TTCL"):"undefined"};return JSON.stringify(e)}}},"CC.digitalData.application.application.type:digitalData.application.application.name":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){return 0==_satellite.getVar("digitalData.application.application.type").length||0==_satellite.getVar("digitalData.application.application.name").length?"":_satellite.getVar("digitalData.application.application.type")+":"+_satellite.getVar("digitalData.application.application.name")}}},"CC.digitalData.page.pageInfo.level5":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){if(""!=digitalData.page.pageInfo.level5)return digitalData.page.pageInfo.level1+":"+digitalData.page.pageInfo.level2+":"+digitalData.page.pageInfo.level3+":"+digitalData.page.pageInfo.level4+":"+digitalData.page.pageInfo.level5}}},"digitalData.user.civilStatus":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.civilStatus"}},"window.location.href":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"window.location.href"}},"digitalData.page.pageInfo.level10":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.level10"}},"digitalData.user.userState":{defaultValue:"",forceLowerCase:!0,cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.userState"}},"digitalData.application.expenses":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.expenses"}},"CC.ARRAY.urlsIframesValidos":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){return["asda.es","/glosario.content.html","https://extranetperu.grupobbva.pe/tarjetas/","https://extranetperu.grupobbva.pe/cuentas"]}}},"CC.digitalData.page.pageInfo.channel:digitalData.page.pageInfo.sysEnv:digitalData.pageInstanceID":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e="";return""==_satellite.getVar("digitalData.page.pageInfo.channel")&&""==_satellite.getVar("digitalData.page.pageInfo.sysEnv")&&""==_satellite.getVar("digitalData.pageInstanceID")||(e=_satellite.getVar("digitalData.page.pageInfo.channel")+":"+_satellite.getVar("digitalData.page.pageInfo.sysEnv")+":"+_satellite.getVar("digitalData.pageInstanceID")),e}}},"digitalData.page.pageInfo.level3":{defaultValue:"",forceLowerCase:!0,cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.level3"}},"digitalData.page.pageActivity.video.nameOfVideoDisplayed":{defaultValue:"",forceLowerCase:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.video.nameOfVideoDisplayed"}},"digitalData.page.pageInfo.level5":{defaultValue:"",forceLowerCase:!0,cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.level5"}},"digitalData.news.relatedPosition":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.relatedPosition"}},"digitalData.internalCampaign.attributes":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.internalCampaign.attributes"}},"digitalData.news.author":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.news.author"}},"CC.pageIntentPrevPage":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){var e=_satellite.cookie.get("gpv_pageIntent");return 1==s.getVisitStart("s_visit")?"":e}}},"digitalData.application.application.type":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.application.application.type"}},"digitalData.optimization.event.optimizationEvent":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.optimization.event.optimizationEvent"}},"CC.digitalData.application.application exist":{defaultValue:"",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){return void 0===digitalData.application.application.name||""===digitalData.application.application.name}}},"digitalData.user.educationLevel":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.educationLevel"}},"digitalData.page.pageActivity.audio.id":{defaultValue:"",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.audio.id"}},"digitalData.page.pageInfo.channel":{defaultValue:"",forceLowerCase:!0,cleanText:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageInfo.channel"}},"digitalData.user.gender":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.user.gender"}},"digitalData.page.pageActivity.video.quality":{defaultValue:"",forceLowerCase:!0,storageDuration:"pageview",modulePath:"core/src/lib/dataElements/javascriptVariable.js",settings:{path:"digitalData.page.pageActivity.video.quality"}},"CC.FACEBOOK.MyArrayDataSelect:digitalData.page.pageInfo.pageName":{defaultValue:"",storageDuration:"pageview",modulePath:"core/src/lib/dataElements/customCode.js",settings:{source:function(){if("rechazado"==digitalData.application.state)var e=[];else e=[];for(i=0;i0&&""!=t[0].location){for(x=0;xr)return 1;if(r>a)return-1}return 0}function s(e,t){if(e===t)return 0;var n=e.toString().split("."),a=t.toString().split(".");return r(n.concat(a))?(i(n,a),o(n,a)):NaN}function u(e){return e===Object(e)&&0===Object.keys(e).length}function l(e){return"function"==typeof e||e instanceof Array&&e.length}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};this.log=ce("log",e,t),this.warn=ce("warn",e,t),this.error=ce("error",e,t)}function d(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cookieName,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cookies;if(!e||!t)return{get:ke,set:ke,remove:ke};var n={remove:function(){t.remove(e)},get:function(){var n=t.get(e),a={};try{a=JSON.parse(n)}catch(n){a={}}return a},set:function(a,r){r=r||{};var i=n.get(),o=Object.assign(i,a);t.set(e,JSON.stringify(o),{domain:r.optInCookieDomain||"",cookieLifetime:r.optInStorageExpiry||3419e4,secure:r.secure,sameSite:r.sameSite,expires:!0})}};return n}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 f(){function e(e,t){var n=ve(e);return n.length?n.every((function(e){return!!t[e]})):he(t)}function t(){I(T),x(te.COMPLETE),y(m.status,m.permissions),s&&h.set(m.permissions,{optInCookieDomain:u,optInStorageExpiry:l,secure:p,sameSite:f}),b.execute(Oe)}function n(e){return function(n,a){if(!me(n))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return x(te.CHANGED),Object.assign(T,ye(ve(n),e)),a||t(),m}}var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=a.doesOptInApply,i=a.previousPermissions,o=a.preOptInApprovals,s=a.isOptInStorageEnabled,u=a.optInCookieDomain,l=a.optInStorageExpiry,c=a.isIabContext,p=a.secureCookie,f=a.sameSiteCookie,g=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cookies,v=Te(i);xe(v,"Invalid `previousPermissions`!"),xe(o,"Invalid `preOptInApprovals`!");var h=d({cookieName:"adobeujs-optin"},{cookies:g}),m=this,y=ee(m),b=se(),E=De(v),D=De(o),C=s?h.get():{},w={},S=function(e,t){return Ce(e)||t&&Ce(t)?te.COMPLETE:te.PENDING}(E,C),k=function(e,t,n){var a=ye(oe,!r);return r?Object.assign({},a,e,t,n):a}(D,E,C),T=be(k),x=function(e){return S=e},I=function(e){return k=e};m.deny=n(!1),m.approve=n(!0),m.denyAll=m.deny.bind(m,oe),m.approveAll=m.approve.bind(m,oe),m.isApproved=function(t){return e(t,m.permissions)},m.isPreApproved=function(t){return e(t,D)},m.fetchPermissions=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?m.on(te.COMPLETE,e):ke;return!r||r&&m.isComplete||o?e(m.permissions):t||b.add(Oe,(function(){return e(m.permissions)})),n},m.complete=function(){m.status===te.CHANGED&&t()},m.registerPlugin=function(e){if(!e||!e.name||"function"!=typeof e.onRegister)throw new Error(je);w[e.name]||(w[e.name]=e,e.onRegister.call(e,m))},m.execute=_e(w),m.memoizeContent=function(e){Se(e)&&h.set(e,{optInCookieDomain:u,optInStorageExpiry:l,secure:p,sameSite:f})},m.getMemoizedContent=function(e){var t=h.get();if(t)return t[e]},Object.defineProperties(m,{permissions:{get:function(){return k}},status:{get:function(){return S}},Categories:{get:function(){return ne}},doesOptInApply:{get:function(){return!!r}},isPending:{get:function(){return m.status===te.PENDING}},isComplete:{get:function(){return m.status===te.COMPLETE}},__plugins:{get:function(){return Object.keys(w)}},isIabContext:{get:function(){return c}}})}function g(e,t){function n(){r=null,e.call(e,new p("The call took longer than you wanted!"))}function a(){r&&(clearTimeout(r),e.apply(e,arguments))}if(void 0===t)return e;var r=setTimeout(n,t);return a}function v(){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,a,r,i){var o=Math.random()+"",s={__tcfapiCall:{command:e,parameter:i,version:a,callId:o}};n[o]=r,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 a=t.__tcfapiReturn;"function"==typeof n[a.callId]&&(n[a.callId](a.returnValue,a.success),delete n[a.callId])}}),!1),window.__tcfapi}fe.error("__tcfapi not found")}else fe.error("__tcfapi not found")}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=!0===e.vendor.consents[t],r=n.every((function(t){return!0===e.purpose.consents[t]}));return a&&r}function m(){var e=this;e.name="iabPlugin",e.version="0.0.2";var t,n=se(),a={transparencyAndConsentData:null},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a[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,r=e.timeout;if(a.transparencyAndConsentData)return t(null,h(a.transparencyAndConsentData,ae[n],re[n]));var o=g((function(e,a){t(e,h(a,ae[n],re[n]))}),r);i({category:n,callback:o})},e.onRegister=function(n){t=n;var a=Object.keys(ae),r=function(e,t){!e&&t&&(a.forEach((function(e){var a=h(t,ae[e],re[e]);n[a?"approve":"deny"](e,!0)})),n.complete())};e.fetchConsentData({callback:r})};var i=function(e){var i=e.callback;if(a.transparencyAndConsentData)return i(null,a.transparencyAndConsentData);n.add("FETCH_CONSENT_DATA",i),o((function(e,i){if(i){var o=be(e),s=t.getMemoizedContent("iabConsentHash"),u=pe(o.tcString).toString(32);o.consentString=e.tcString,o.hasConsentChangedSinceLastCmpPull=s!==u,r("transparencyAndConsentData",o),t.memoizeContent({iabConsentHash:u})}n.execute("FETCH_CONSENT_DATA",[null,a.transparencyAndConsentData])}))},o=function(e){var t=Ae(ae),n=v();"function"==typeof n&&n("getTCData",2,e,t)}}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 t,n,a=1;a=0||t.indexOf("Trident/")>=0&&t.indexOf("Windows NT 6")>=0};n.getIeVersion=function(){return document.documentMode?document.documentMode:a()?7:null},n.isFirefox=function(e){return!!/Firefox\/([0-9\.]+)(?:\s|$)/.test(e||window.navigator.userAgent)},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 a=parseInt(e.d_ottl,10);return isNaN(a)&&(a=7200),{optOut:t,d_ottl:a}},n.normalizeBoolean=function(e){var t=e;return"true"===e?t=!0:"false"===e&&(t=!1),t}})),O=(_.isObjectEmpty,_.isValueEmpty,_.getIeVersion,_.isFirefox,_.encodeAndBuildRequest,_.isObject,_.defineGlobalNamespace,_.pluck,_.parseOptOut,_.normalizeBoolean,n),j=D.MESSAGES,P={0:"prefix",1:"orgID",2:"state"},V=function(e,t){this.parse=function(e){try{var t={};return e.data.split("|").forEach((function(e,n){void 0!==e&&(t[P[n]]=2!==n?e:JSON.parse(e))})),t}catch(e){}},this.isInvalid=function(n){var a=this.parse(n);if(!a||Object.keys(a).length<2)return!0;var r=e!==a.orgID,i=!t||n.origin!==t,o=-1===Object.keys(j).indexOf(a.prefix);return r||i||o},this.send=function(n,a,r){var i=a+"|"+e;r&&r===Object(r)&&(i+="|"+JSON.stringify(r));try{n.postMessage(i,t)}catch(e){}}},N=D.MESSAGES,M=function(e,t,n,a){function r(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(!h.isInvalid(e)){v=!1;var t=h.parse(e);f.setStateAndPublish(t.state)}}function s(e){!v&&g&&(v=!0,h.send(a,e))}function u(){r(new w(n._generateID)),f.getMarketingCloudVisitorID(),f.callbackRegistry.executeAll(f.state,!0),y.removeEventListener("message",l)}function l(e){if(!h.isInvalid(e)){var t=h.parse(e);v=!1,y.clearTimeout(f._handshakeTimeout),y.removeEventListener("message",l),r(new x(f)),y.addEventListener("message",o),f.setStateAndPublish(t.state),f.callbackRegistry.hasCallbacks()&&s(N.GETSTATE)}}function c(){g&&postMessage?(y.addEventListener("message",l),s(N.HANDSHAKE),f._handshakeTimeout=setTimeout(u,250)):u()}function d(){y.s_c_in||(y.s_c_il=[],y.s_c_in=0),f._c="Visitor",f._il=y.s_c_il,f._in=y.s_c_in,f._il[f._in]=f,y.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 v=!1,h=new V(e,g);f.callbackRegistry=O(),f.init=function(){d(),p(),r(new A(f)),c()},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},L=D.MESSAGES,R=D.ALL_APIS,H=D.ASYNC_API_MAP,F=D.FIELDGROUP_TO_FIELD,q=function(e,t){function n(){var t={};return Object.keys(R).forEach((function(n){var a=R[n],r=e[a]();_.isValueEmpty(r)||(t[n]=r)})),t}function a(){var t=[];return e._loading&&Object.keys(e._loading).forEach((function(n){if(e._loading[n]){var a=F[n];t.push(a)}})),t.length?t:null}function r(t){return function n(){var r=a();if(r){var i=H[r[0]];e[i](n,!0)}else t()}}function i(e,a){var r=n();t.send(e,a,r)}function o(e){u(e),i(e,L.HANDSHAKE)}function s(e){r((function(){i(e,L.PARENTSTATE)}))()}function u(n){function a(a){r.call(e,a),t.send(n,L.PARENTSTATE,{CUSTOMERIDS:e.getCustomerIDs()})}var r=e.setCustomerIDs;e.setCustomerIDs=a}return function(e){t.isInvalid(e)||(t.parse(e).prefix===L.HANDSHAKE?o:s)(e.source)}},U=function(e,t){function n(e){return function(n){a[e]=n,++r===i&&t(a)}}var a={},r=0,i=Object.keys(e).length;Object.keys(e).forEach((function(t){var a=e[t];if(a.fn){var r=a.args||[];r.unshift(n(t)),a.fn.apply(a.context||null,r)}}))},B={get:function(e){e=encodeURIComponent(e);var t=(";"+document.cookie).split(" ").join(";"),n=t.indexOf(";"+e+"="),a=n<0?n:t.indexOf(";",n+1);return n<0?"":decodeURIComponent(t.substring(n+2+e.length,a<0?t.length:a))},set:function(e,t,n){var r=a(n,"cookieLifetime"),i=a(n,"expires"),o=a(n,"domain"),s=a(n,"secure"),u=a(n,"sameSite"),l=s?"Secure":"",c=u?"SameSite="+u+";":"";if(i&&"SESSION"!==r&&"NONE"!==r){var d=""!==t?parseInt(r||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"!==r?(document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+"; path=/;"+(i?" expires="+i.toGMTString()+";":"")+(o?" domain="+o+";":"")+c+l,this.get(e)===t):0},remove:function(e,t){var n=a(t,"domain");n=n?" domain="+n+";":"";var r=a(t,"secure"),i=a(t,"sameSite"),o=r?"Secure":"",s=i?"SameSite="+i+";":"";document.cookie=encodeURIComponent(e)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+n+s+o}},Y=function(e,t){!e&&y.location&&(e=y.location.hostname);var n,a=e.split("."),r=t||{};for(n=a.length-2;n>=0;n--)if(r.domain=a.slice(n).join("."),B.set("TEST_AMCV_COOKIE_WRITE","cookie",r))return B.remove("TEST_AMCV_COOKIE_WRITE",r),r.domain;return""},W={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=!!y.postMessage,G={postMessage:function(e,t,n){var a=1;t&&(z?n.postMessage(e,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(n.location=t.replace(/#.*$/,"")+"#"+ +new Date+a+++"&"+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)}),y.addEventListener?y[e?"addEventListener":"removeEventListener"]("message",n):y[e?"attachEvent":"detachEvent"]("onmessage",n))}catch(e){}}},$=function(e){var t,n,a="0123456789",r="",i="",o=8,s=10,u=10,l=(""+Date.now()).substr(-6).split("").reverse("").join("");if(1==e){for(a+="ABCDEF",t=0;16>t;t++)n=Math.floor(Math.random()*o),4>t&&l[t]t;t++)n=Math.floor(Math.random()*s),6>t&&l[t]n||2n||20&&(t=!1)),{corsType:e,corsCookiesEnabled:t}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new y[this.corsMetadata.corsType]},fireCORS:function(t,n){function a(e){var n;try{if((n=JSON.parse(e))!==Object(n))return void r.handleCORSError(t,null,"Response is not JSON")}catch(e){return void r.handleCORSError(t,e,"Error parsing response as JSON")}try{for(var a=t.callback,i=y,o=0;o=i&&(e.splice(r,1),r--);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,a,r,i,o){var s=this;if(t){if("img"===n.tag){var u,l,c,d,p=n.url,f=e.loadSSL?"https:":"http:";for(u=0,l=p.length;uX.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function e(){t.startedAttachingIframe||(n.body?t.attachIframe():setTimeout(e,30))}var t=this;e()}}},K={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(K)},getConfigs:function(){return K},normalizeConfig:function(e,t){return K[e]&&"boolean"===K[e].type?"function"!=typeof t?t:t():t}},ee=function(e){var t={};return e.on=function(e,n,a){if(!n||"function"!=typeof n)throw new Error("[ON] Callback should be a function.");t.hasOwnProperty(e)||(t[e]=[]);var r=t[e].push({callback:n,context:a})-1;return function(){t[e].splice(r,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"},ae=(t(b={},ne.AAM,565),t(b,ne.ECID,565),b),re=(t(E={},ne.AAM,[1,10]),t(E,ne.ECID,[1,10]),E),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 a=e.callbacks[t].push(n)-1;return function(){e.callbacks[t].splice(a,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 a=e.callbacks[t].shift();"function"==typeof a?a.apply(null,n):a instanceof Array&&a[1].apply(a[0],n)}delete e.callbacks[t]}catch(e){}}},e.executeAll=function(t,n){(n||t&&!u(t))&&Object.keys(e.callbacks).forEach((function(n){var a=void 0!==t[n]?t[n]:"";e.execute(n,a)}),e)},e.hasCallbacks=function(){return Boolean(Object.keys(e.callbacks).length)},e},ue=function(){},le=function(e){var t=window.console;return!!t&&"function"==typeof t[e]},ce=function(e,t,n){return n()?function(){if(le(e)){for(var n=arguments.length,a=new Array(n),r=0;r>>1:n>>>1;e.push(n)}return function(t,n){t=unescape(encodeURIComponent(t)),n||(n=0),n^=-1;for(var a=0;a>>8^e[r]}return(n^=-1)>>>0}}(),fe=new de("[ADOBE OPT-IN]"),ge=function(t,n){return e(t)===n},ve=function(e,t){return e instanceof Array?e:ge(e,"string")?[e]:t||[]},he=function(e){var t=Object.keys(e);return!!t.length&&t.every((function(t){return!0===e[t]}))},me=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!e||Ee(e))&&ve(e).every((function(e){return oe.indexOf(e)>-1||t&&ie.indexOf(e)>-1}))},ye=function(e,t){return e.reduce((function(e,n){return e[n]=t,e}),{})},be=function(e){return JSON.parse(JSON.stringify(e))},Ee=function(e){return"[object Array]"===Object.prototype.toString.call(e)&&!e.length},De=function(e){if(Se(e))return e;try{return JSON.parse(e)}catch(e){return{}}},Ce=function(e){return void 0===e||(Se(e)?me(Object.keys(e),!0):we(e))},we=function(e){try{var t=JSON.parse(e);return!!e&&ge(e,"string")&&me(Object.keys(t),!0)}catch(e){return!1}},Se=function(e){return null!==e&&ge(e,"object")&&!1===Array.isArray(e)},ke=function(){},Te=function(e){return ge(e,"function")?e():e},xe=function(e,t){Ce(e)||fe.error("".concat(t))},Ie=function(e){return Object.keys(e).map((function(t){return e[t]}))},Ae=function(e){return Ie(e).filter((function(e,t,n){return n.indexOf(e)===t}))},_e=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.command,a=t.params,r=void 0===a?{}:a,i=t.callback,o=void 0===i?ke:i;if(!n||-1===n.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var s=n.split("."),u=e[s[0]],l=s[1];if(!u||"function"!=typeof u[l])throw new Error("Make sure the plugin and API name exist.");var c=Object.assign(r,{callback:o});u[l].call(u,c)}catch(e){fe.error("[execute] Something went wrong: "+e.message)}}};p.prototype=Object.create(Error.prototype),p.prototype.constructor=p;var Oe="fetchPermissions",je="[OptIn#registerPlugin] Plugin is invalid.";f.Categories=ne,f.TimeoutError=p;var Pe=Object.freeze({OptIn:f,IabPlugin:m}),Ve=function(e,t){e.publishDestinations=function(n){var a=arguments[1],r=arguments[2];try{r="function"==typeof r?r:n.callback}catch(e){r=function(){}}var i=t;if(i.readyToAttachIframePreliminary()){if("string"==typeof n){if(!n.length)return void r({error:"subdomain is not a populated string."});if(!(a instanceof Array&&a.length))return void r({error:"messages is not a populated array."});var o=!1;if(a.forEach((function(e){"string"==typeof e&&e.length&&(i.addMessage(e),o=!0)})),!o)return void r({error:"None of the messages are populated strings."})}else{if(!_.isObject(n))return void r({error:"Invalid parameters passed."});var s=n;if("string"!=typeof(n=s.subdomain)||!n.length)return void r({error:"config.subdomain is not a populated string."});var u=s.urlDestinations;if(!(u instanceof Array&&u.length))return void r({error:"config.urlDestinations is not a populated array."});var l=[];u.forEach((function(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?(r({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){r({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(e.message||"no result")})})),i.attachIframe()):r({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):i.iframeLoadedCallbacks.push((function(e){r({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(e.message||"no result")})}))}else r({error:"The destination publishing iframe is disabled in the Visitor library."})}},Ne=function e(t){function n(e,t){return e>>>t|e<<32-t}for(var a,r,i=Math.pow,o=i(2,32),s="",u=[],l=8*t.length,c=e.h=e.h||[],d=e.k=e.k||[],p=d.length,f={},g=2;p<64;g++)if(!f[g]){for(a=0;a<313;a+=g)f[a]=g;c[p]=i(g,.5)*o|0,d[p++]=i(g,1/3)*o|0}for(t+="\x80";t.length%64-56;)t+="\0";for(a=0;a>8)return;u[a>>2]|=r<<(3-a)%4*8}for(u[u.length]=l/o|0,u[u.length]=l,r=0;r>>3)+v[a-7]+(n(y,17)^n(y,19)^y>>>10)|0);(c=[D+((n(b,2)^n(b,13)^n(b,22))+(b&c[1]^b&c[2]^c[1]&c[2]))|0].concat(c))[4]=c[4]+D|0}for(a=0;a<8;a++)c[a]=c[a]+h[a]|0}for(a=0;a<8;a++)for(r=3;r+1;r--){var C=c[a]>>8*r&255;s+=(C<16?0:"")+C.toString(16)}return s},Me=function(e,t){return"SHA-256"!==t&&"SHA256"!==t&&"sha256"!==t&&"sha-256"!==t||(e=Ne(e)),e},Le=function(e){return String(e).trim().toLowerCase()},Re=Pe.OptIn;_.defineGlobalNamespace(),window.adobe.OptInCategories=Re.Categories;var He=function(t,n,a){function r(){b._customerIDsHashChanged=!1}function i(e){var t=e;return function(e){var n=e||T.location.href;try{var a=b._extractParamFromUri(n,t);if(a)return te.parsePipeDelimetedKeyValues(a)}catch(e){}}}function o(e){function t(e,t,n){e&&e.match(X.VALID_VISITOR_ID_REGEX)&&(n===j&&(k=!0),t(e))}t(e[j],b.setMarketingCloudVisitorID,j),b._setFieldExpire(R,-1),t(e[M],b.setAnalyticsVisitorID)}function s(e){e=e||{},b._supplementalDataIDCurrent=e.supplementalDataIDCurrent||"",b._supplementalDataIDCurrentConsumed=e.supplementalDataIDCurrentConsumed||{},b._supplementalDataIDLast=e.supplementalDataIDLast||"",b._supplementalDataIDLastConsumed=e.supplementalDataIDLastConsumed||{}}function u(e){function t(e,t,n){return(n=n?n+="|":n)+(e+"=")+encodeURIComponent(t)}function n(e,n){var a=n[0],r=n[1];return null!=r&&r!==H&&(e=t(a,r,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(b.idSyncDisableSyncs||b.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 c(){return!(!b.configs.doesOptInApply||E.optIn.isComplete&&d())}function d(){return b.configs.doesOptInApply&&b.configs.isIabContext?E.optIn.isApproved(E.optIn.Categories.ECID)&&S:E.optIn.isApproved(E.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]:"",a=b[t];b[t]=function(e){return d()&&b.isAllowed()?a.apply(b,arguments):("function"==typeof e&&b._callCallback(e,[n]),n)}}))}function f(){var e=b._getAudienceManagerURLData(),t=e.url;return b._loadData(O,t,null,e)}function g(e,t){if(S=!0,e)throw new Error("[IAB plugin] : "+e);t&&t.gdprApplies&&(C=t.consentString,w=t.hasConsentChangedSinceLastCmpPull?1:0),f(),m()}function v(e,t){if(S=!0,e)throw new Error("[IAB plugin] : "+e);t.gdprApplies&&(C=t.consentString,w=t.hasConsentChangedSinceLastCmpPull?1:0),b.init(),m()}function h(){E.optIn.isComplete&&(E.optIn.isApproved(E.optIn.Categories.ECID)?b.configs.isIabContext?E.optIn.execute({command:"iabPlugin.fetchConsentData",callback:v}):(b.init(),m()):b.configs.isIabContext?E.optIn.execute({command:"iabPlugin.fetchConsentData",callback:g}):(p(),m()))}function m(){E.optIn.off("complete",h)}if(!a||a.split("").reverse().join("")!==t)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var b=this,E=window.adobe,C="",w=0,S=!1,k=!1;b.version="5.5.0";var T=y,x=T.Visitor;x.version=b.version,x.AuthState=D.AUTH_STATE,x.OptOut=D.OPT_OUT,T.s_c_in||(T.s_c_il=[],T.s_c_in=0),b._c="Visitor",b._il=T.s_c_il,b._in=T.s_c_in,b._il[b._in]=b,T.s_c_in++,b._instanceType="regular",b._log={requests:[]},b.marketingCloudOrgID=t,b.cookieName="AMCV_"+t,b.sessionCookieName="AMCVS_"+t;var I={};n&&n.secureCookie&&n.sameSiteCookie&&(I={sameSite:n.sameSiteCookie,secure:n.secureCookie}),b.cookieDomain=b.useLocalStorage?"":Y(null,I),b.loadSSL=!0,b.loadTimeout=3e4,b.CORSErrors=[],b.marketingCloudServer=b.audienceManagerServer="dpm.demdex.net",b.sdidParamExpiry=30;var A=null,O="MC",j="MCMID",P="MCIDTS",N="A",M="MCAID",L="AAM",R="MCAAMB",H="NONE",F=function(e){return!Object.prototype[e]},z=Q(b);b.FIELDS=D.FIELDS,b.cookieRead=function(e){return b.useLocalStorage?e===b.sessionCookieName?sessionStorage.getItem(e):localStorage.getItem(e):B.get(e)},b.cookieWrite=function(e,t,n){var a=""+t;if(b.useLocalStorage)return e===b.sessionCookieName?sessionStorage.setItem(e,a):localStorage.setItem(e,a);var r=b.cookieLifetime?(""+b.cookieLifetime).toUpperCase():"",i={expires:n,domain:b.cookieDomain,cookieLifetime:r};return b.configs&&b.configs.secureCookie&&"https:"===location.protocol&&(i.secure=!0),b.configs&&b.configs.sameSiteCookie&&"https:"===location.protocol&&(i.sameSite=D.SAME_SITE_VALUES[b.configs.sameSiteCookie.toUpperCase()]||"Lax"),B.set(e,a,i)},b.removeCookie=function(e){if(b.useLocalStorage)return e===b.sessionCookieName?sessionStorage.removeItem(e):localStorage.removeItem(e);var t={domain:b.cookieDomain};return b.configs&&b.configs.secureCookie&&"https:"===location.protocol&&(t.secure=!0),b.configs&&b.configs.sameSiteCookie&&"https:"===location.protocol&&(t.sameSite=D.SAME_SITE_VALUES[b.configs.sameSiteCookie.toUpperCase()]||"Lax"),B.remove(e,t)},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,t){b.marketingCloudServer&&b.marketingCloudServer.indexOf(".demdex.net")<0&&(b._use1stPartyMarketingCloudServer=!0);var n=b._getAudienceManagerURLData("_setMarketingCloudFields"),a=n.url;return b._getRemoteField(j,a,e,t,n)};var K=function(e,t){var n={};b.getMarketingCloudVisitorID((function(){t.forEach((function(e){n[e]=b._getField(e,!0)})),-1!==t.indexOf("MCOPTOUT")?b.isOptedOut((function(t){n.MCOPTOUT=t,e(n)}),null,!0):e(n)}),!0)};b.getVisitorValues=function(e,t){var n={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}},a=t&&t.length?_.pluck(n,t):n;t&&-1===t.indexOf("MCAID")?K(e,t):U(a,e)},b._currentCustomerIDs={},b._customerIDsHashChanged=!1,b._newCustomerIDsHash="",b.setCustomerIDs=function(t,n){if(!b.isOptedOut()&&t){if(!_.isObject(t)||_.isObjectEmpty(t))return!1;var a,i,o,s;for(a in b._readVisitor(),t)if(F(a)&&(b._currentCustomerIDs.dataSources=b._currentCustomerIDs.dataSources||{},n=(i=t[a]).hasOwnProperty("hashType")?i.hashType:n,i))if("object"===e(i)){var u={};if(i.id){if(n){if(!(s=Me(Le(i.id),n)))return;i.id=s,u.hashType=n}u.id=i.id}null!=i.authState&&(u.authState=i.authState),b._currentCustomerIDs.dataSources[a]=u}else if(n){if(!(s=Me(Le(i),n)))return;b._currentCustomerIDs.dataSources[a]={id:s,hashType:n}}else b._currentCustomerIDs.dataSources[a]={id:i};var l=b.getCustomerIDs(!0),c=b._getField("MCCIDH"),d="";for(o in c||(c=0),l){var p=l[o];if(!_.isObjectEmpty(p))for(a in p)F(a)&&(d+=(d?"|":"")+a+"|"+((i=p[a]).id?i.id:"")+(i.authState?i.authState:""))}b._newCustomerIDsHash=String(b._hash(d)),b._newCustomerIDsHash!==c&&(b._customerIDsHashChanged=!0,b._mapCustomerIDs(r))}},b.syncIdentity=function(t,n){if(!b.isOptedOut()&&t){if(!_.isObject(t)||_.isObjectEmpty(t))return!1;var a,i,o,s,u;for(a in b._readVisitor(),t)if(F(a)&&(b._currentCustomerIDs.nameSpaces=b._currentCustomerIDs.nameSpaces||{},n=(i=t[a]).hasOwnProperty("hashType")?i.hashType:n,i&&"object"===e(i))){var l={};if(i.id){if(n){if(!(o=Me(Le(i.id),n)))return;i.id=o,l.hashType=n}l.id=i.id}null!=i.authState&&(l.authState=i.authState),i.dataSource&&(b._currentCustomerIDs.dataSources=b._currentCustomerIDs.dataSources||{},s=i.dataSource,b._currentCustomerIDs.dataSources[s]=l),b._currentCustomerIDs.nameSpaces[a]=l}var c=b.getCustomerIDs(!0),d=b._getField("MCCIDH"),p="";for(u in d||(d="0"),c){var f=c[u];if(!_.isObjectEmpty(f))for(a in f)F(a)&&(p+=(p?"|":"")+a+"|"+((i=f[a]).id?i.id:"")+(i.authState?i.authState:""))}b._newCustomerIDsHash=String(b._hash(p)),b._newCustomerIDsHash!==d&&(b._customerIDsHashChanged=!0,b._mapCustomerIDs(r))}},b.getCustomerIDs=function(e){b._readVisitor();var t,n,a={dataSources:{},nameSpaces:{}},r=b._currentCustomerIDs.dataSources;for(t in r)F(t)&&(n=r[t]).id&&(a.dataSources[t]||(a.dataSources[t]={}),a.dataSources[t].id=n.id,null!=n.authState?a.dataSources[t].authState=n.authState:a.dataSources[t].authState=x.AuthState.UNKNOWN,n.hashType&&(a.dataSources[t].hashType=n.hashType));var i=b._currentCustomerIDs.nameSpaces;for(t in i)F(t)&&(n=i[t]).id&&(a.nameSpaces[t]||(a.nameSpaces[t]={}),a.nameSpaces[t].id=n.id,null!=n.authState?a.nameSpaces[t].authState=n.authState:a.nameSpaces[t].authState=x.AuthState.UNKNOWN,n.hashType&&(a.nameSpaces[t].hashType=n.hashType));return e?a:a.dataSources},b.setAnalyticsVisitorID=function(e){b._setAnalyticsFields(e)},b.getAnalyticsVisitorID=function(e,t,n){if(!te.isTrackingServerPopulated()&&!n)return b._callCallback(e,[""]),"";var a="";if(n||(a=b.getMarketingCloudVisitorID((function(){b.getAnalyticsVisitorID(e,!0)}))),a||n){var r=n?b.marketingCloudServer:b.trackingServer,i="";b.loadSSL&&(n?b.marketingCloudServerSecure&&(r=b.marketingCloudServerSecure):b.trackingServerSecure&&(r=b.trackingServerSecure));var o={};if(r){var s="http"+(b.loadSSL?"s":"")+"://"+r+"/id",u=b.configs.cookieLifetime,l="d_visid_ver="+b.version+"&mcorgid="+encodeURIComponent(b.marketingCloudOrgID)+(a?"&mid="+encodeURIComponent(a):"")+(u?"&cl="+encodeURIComponent(u):"")+(b.idSyncDisable3rdPartySyncing||b.disableThirdPartyCookies?"&d_coppa=true":""),c=["s_c_il",b._in,"_set"+(n?"MarketingCloud":"Analytics")+"Fields"];i=s+"?"+l+"&callback=s_c_il%5B"+b._in+"%5D._set"+(n?"MarketingCloud":"Analytics")+"Fields",o.corsUrl=s+"?"+l,o.callback=c}return o.url=i,b._getRemoteField(n?j:M,i,e,t,o)}return""},b.getAudienceManagerLocationHint=function(e,t){if(b.getMarketingCloudVisitorID((function(){b.getAudienceManagerLocationHint(e,!0)}))){var n=b._getField(M);if(!n&&te.isTrackingServerPopulated()&&(n=b.getAnalyticsVisitorID((function(){b.getAudienceManagerLocationHint(e,!0)}))),n||!te.isTrackingServerPopulated()){var a=b._getAudienceManagerURLData(),r=a.url;return b._getRemoteField("MCAAMLH",r,e,t,a)}}return""},b.getLocationHint=b.getAudienceManagerLocationHint,b.getAudienceManagerBlob=function(e,t){if(b.getMarketingCloudVisitorID((function(){b.getAudienceManagerBlob(e,!0)}))){var n=b._getField(M);if(!n&&te.isTrackingServerPopulated()&&(n=b.getAnalyticsVisitorID((function(){b.getAudienceManagerBlob(e,!0)}))),n||!te.isTrackingServerPopulated()){var a=b._getAudienceManagerURLData(),r=a.url;return b._customerIDsHashChanged&&b._setFieldExpire(R,-1),b._getRemoteField(R,r,e,t,a)}}return""},b._supplementalDataIDCurrent="",b._supplementalDataIDCurrentConsumed={},b._supplementalDataIDLast="",b._supplementalDataIDLastConsumed={},b.getSupplementalDataID=function(e,t){b._supplementalDataIDCurrent||t||(b._supplementalDataIDCurrent=b._generateID(1));var n=b._supplementalDataIDCurrent;return b._supplementalDataIDLast&&!b._supplementalDataIDLastConsumed[e]?(n=b._supplementalDataIDLast,b._supplementalDataIDLastConsumed[e]=!0):n&&(b._supplementalDataIDCurrentConsumed[e]&&(b._supplementalDataIDLast=b._supplementalDataIDCurrent,b._supplementalDataIDLastConsumed=b._supplementalDataIDCurrentConsumed,b._supplementalDataIDCurrent=n=t?"":b._generateID(1),b._supplementalDataIDCurrentConsumed={}),n&&(b._supplementalDataIDCurrentConsumed[e]=!0)),n};var Z=!1;b._liberatedOptOut=null,b.getOptOut=function(e,t){var n=b._getAudienceManagerURLData("_setMarketingCloudFields"),a=n.url;if(d())return b._getRemoteField("MCOPTOUT",a,e,t,n);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 r="liberatedGetOptOut";return n.corsUrl=n.corsUrl.replace(/\.demdex\.net\/id\?/,".demdex.net/optOutStatus?"),n.callback=[r],y[r]=function(e){if(e===Object(e)){var t,n,a=_.parseOptOut(e,t,H);t=a.optOut,n=1e3*a.d_ottl,b._liberatedOptOut=t,setTimeout((function(){b._liberatedOptOut=null}),n)}b._callAllCallbacks("liberatedOptOut",[t]),Z=!1},z.fireCORS(n),null},b.isOptedOut=function(e,t,n){t||(t=x.OptOut.GLOBAL);var a=b.getOptOut((function(n){var a=n===x.OptOut.GLOBAL||n.indexOf(t)>=0;b._callCallback(e,[a])}),n);return a?a===x.OptOut.GLOBAL||a.indexOf(t)>=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 t,n=0;if(e)for(t=0;t0;)b._callCallback(n.shift(),t)}},b._addQuerystringParam=function(e,t,n,a){var r=encodeURIComponent(t)+"="+encodeURIComponent(n),i=te.parseHash(e),o=te.hashlessUrl(e);if(-1===o.indexOf("?"))return o+"?"+r+i;var s=o.split("?"),u=s[0]+"?",l=s[1];return u+te.addQueryParamAtLocation(l,r,a)+i},b._extractParamFromUri=function(e,t){var n=new RegExp("[\\?&#]"+t+"=([^&#]*)").exec(e);if(n&&n.length)return decodeURIComponent(n[1])},b._parseAdobeMcFromUrl=i(X.ADOBE_MC),b._parseAdobeMcSdidFromUrl=i(X.ADOBE_MC_SDID),b._attemptToPopulateSdidFromUrl=function(e){var n=b._parseAdobeMcSdidFromUrl(e),a=1e9;n&&n.TS&&(a=te.getTimestampInSeconds()-n.TS),n&&n.SDID&&n.MCORGID===t&&aX.ADOBE_MC_TTL_IN_MIN||e.MCORGID!==t)return;o(e)}},b._mergeServerState=function(e){if(e)try{if((e=function(e){return te.isObject(e)?e:JSON.parse(e)}(e))[b.marketingCloudOrgID]){var t=e[b.marketingCloudOrgID];!function(e){te.isObject(e)&&b.setCustomerIDs(e)}(t.customerIDs),s(t.sdid)}}catch(e){throw new Error("`serverState` has an invalid format.")}},b._timeout=null,b._loadData=function(e,t,n,a){t=b._addQuerystringParam(t,"d_fieldgroup",e,1),a.url=b._addQuerystringParam(a.url,"d_fieldgroup",e,1),a.corsUrl=b._addQuerystringParam(a.corsUrl,"d_fieldgroup",e,1),re.fieldGroupObj[e]=!0,a===Object(a)&&a.corsUrl&&"XMLHttpRequest"===z.corsMetadata.corsType&&z.fireCORS(a,n,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,t,n,a,r,i,o=b._getSettingsDigest(),s=!1,u=b.cookieRead(b.cookieName),l=new Date;if(u||k||b.discardTrackingServerECID||(u=b.cookieRead(X.FIRST_PARTY_SERVER_COOKIE)),null==b._fields&&(b._fields={}),u&&"T"!==u)for((u=u.split("|"))[0].match(/^[\-0-9]+$/)&&(parseInt(u[0],10)!==o&&(s=!0),u.shift()),u.length%2==1&&u.pop(),e=0;e1?(r=parseInt(t[1],10),i=t[1].indexOf("s")>0):(r=0,i=!1),s&&("MCCIDH"===n&&(a=""), r>0&&(r=l.getTime()/1e3-60)),n&&a&&(b._setField(n,a,1),r>0&&(b._fields["expire"+n]=r+(i?"s":""),(l.getTime()>=1e3*r||i&&!b.cookieRead(b.sessionCookieName))&&(b._fieldsExpired||(b._fieldsExpired={}),b._fieldsExpired[n]=!0)));!b._getField(M)&&te.isTrackingServerPopulated()&&(u=b.cookieRead("s_vi"))&&(u=u.split("|")).length>1&&u[0].indexOf("v1")>=0&&((e=(a=u[1]).indexOf("["))>=0&&(a=a.substring(0,e)),a&&a.match(X.VALID_VISITOR_ID_REGEX)&&b._setField(M,a))}},b._appendVersionTo=function(e){var t="vVersion|"+b.version,n=e?b._getCookieVersion(e):null;return n?W.areVersionsDifferent(n,b.version)&&(e=e.replace(X.VERSION_REGEX,t)):e+=(e?"|":"")+t,e},b._writeVisitor=function(){var e,t,n=b._getSettingsDigest();for(e in b._fields)F(e)&&b._fields[e]&&"expire"!==e.substring(0,6)&&(t=b._fields[e],n+=(n?"|":"")+e+(b._fields["expire"+e]?"-"+b._fields["expire"+e]:"")+"|"+t);n=b._appendVersionTo(n),b.cookieWrite(b.cookieName,n,1)},b._getField=function(e,t){return null==b._fields||!t&&b._fieldsExpired&&b._fieldsExpired[e]?null:b._fields[e]},b._setField=function(e,t,n){null==b._fields&&(b._fields={}),b._fields[e]=t,n||b._writeVisitor()},b._getFieldList=function(e,t){var n=b._getField(e,t);return n?n.split("*"):null},b._setFieldList=function(e,t,n){b._setField(e,t?t.join("*"):"",n)},b._getFieldMap=function(e,t){var n=b._getFieldList(e,t);if(n){var a,r={};for(a=0;a0?e.substr(t):""},hashlessUrl:function(e){var t=e.indexOf("#");return t>0?e.substr(0,t):e},addQueryParamAtLocation:function(e,t,n){var a=e.split("&");return n=null!=n?n:a.length,a.splice(n,0,t),a.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(e,t,n){return e===M&&(t||(t=b.trackingServer),n||(n=b.trackingServerSecure),!("string"!=typeof(a=b.loadSSL?n:t)||!a.length)&&a.indexOf("2o7.net")<0&&a.indexOf("omtrdc.net")<0);var a},isObject:function(e){return Boolean(e&&e===Object(e))},removeCookie:function(e){B.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,t){var n=t.split("=");return e[n[0]]=decodeURIComponent(n[1]),e}),{})},generateRandomString:function(e){e=e||5;for(var t="",n="abcdefghijklmnopqrstuvwxyz0123456789";e--;)t+=n[Math.floor(Math.random()*n.length)];return t},normalizeBoolean:function(e){return"true"===e||"false"!==e&&e},parseBoolean:function(e){return"true"===e||"false"!==e&&null},replaceMethodsWithFunction:function(e,t){for(var n in e)e.hasOwnProperty(n)&&"function"==typeof e[n]&&(e[n]=t);return e}};b._helpers=te;var ne=J(b,x);b._destinationPublishing=ne,b.timeoutMetricsLog=[];var ae,re={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(e,t){switch(e){case O:!1===t?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=t;break;case N:!1===t?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=t;break;case L:!1===t?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=t}}};b.isClientSideMarketingCloudVisitorID=function(){return re.isClientSideMarketingCloudVisitorID},b.MCIDCallTimedOut=function(){return re.MCIDCallTimedOut},b.AnalyticsIDCallTimedOut=function(){return re.AnalyticsIDCallTimedOut},b.AAMIDCallTimedOut=function(){return re.AAMIDCallTimedOut},b.idSyncGetOnPageSyncInfo=function(){return b._readVisitor(),b._getField("MCSYNCSOP")},b.idSyncByURL=function(e){if(!b.isOptedOut()){var t=l(e||{});if(t.error)return t.error;var n,a,r=e.url,i=encodeURIComponent,o=ne;return r=r.replace(/^https:/,"").replace(/^http:/,""),n=_.encodeAndBuildRequest(["",e.dpid,e.dpuuid||""],","),a=["ibs",i(e.dpid),"img",i(r),t.ttl,"",n],o.addMessage(a.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"},Ve(b,ne),b._getCookieVersion=function(e){e=e||b.cookieRead(b.cookieName);var t=X.VERSION_REGEX.exec(e);return t&&t.length>1?t[1]:null},b._resetAmcvCookie=function(e){var t=b._getCookieVersion();t&&!W.isLessThan(t,e)||b.removeCookie(b.cookieName)},b.setAsCoopSafe=function(){A=!0},b.setAsCoopUnsafe=function(){A=!1},function(){if(b.configs=Object.create(null),te.isObject(n))for(var e in n)F(e)&&(b[e]=n[e],b.configs[e]=n[e])}(),p(),b.init=function(){c()&&(E.optIn.fetchPermissions(h,!0),!E.optIn.isApproved(E.optIn.Categories.ECID))||ae||(ae=!0,function(){if(te.isObject(n)){b.idSyncContainerID=b.idSyncContainerID||0,A="boolean"==typeof b.isCoopSafe?b.isCoopSafe:te.parseBoolean(b.isCoopSafe),b.resetBeforeVersion&&b._resetAmcvCookie(b.resetBeforeVersion),b._attemptToPopulateIdsFromUrl(),b._attemptToPopulateSdidFromUrl(),b._readVisitor();var e=b._getField(P),t=Math.ceil((new Date).getTime()/X.MILLIS_PER_DAY);b.idSyncDisableSyncs||b.disableIdSyncs||!ne.canMakeSyncIDCall(e,t)||(b._setFieldExpire(R,-1),b._setField(P,t)),b.getMarketingCloudVisitorID(),b.getAudienceManagerLocationHint(),b.getAudienceManagerBlob(),b._mergeServerState(b.serverState)}else b._attemptToPopulateIdsFromUrl(),b._attemptToPopulateSdidFromUrl()}(),function(){if(!b.idSyncDisableSyncs&&!b.disableIdSyncs){ne.checkDPIframeSrc();var e=function(){var e=ne;e.readyToAttachIframe()&&e.attachIframe()};T.addEventListener("load",(function(){x.windowLoaded=!0,e()}));try{G.receiveMessage((function(e){ne.receiveMessage(e.data)}),ne.iframeHost)}catch(e){}}}(),b.whitelistIframeDomains&&X.POST_MESSAGE_ENABLED&&(b.whitelistIframeDomains=b.whitelistIframeDomains instanceof Array?b.whitelistIframeDomains:[b.whitelistIframeDomains],b.whitelistIframeDomains.forEach((function(e){var n=new V(t,e),a=q(b,n);G.receiveMessage(a,e)}))))}};He.config=Z,y.Visitor=He;var Fe=He,qe=function(e){if(_.isObject(e))return Object.keys(e).filter((function(t){return""!==e[t]&&Z.getConfigs()[t]})).reduce((function(t,n){var a=Z.normalizeConfig(n,e[n]),r=_.normalizeBoolean(a);return t[n]=r,t}),Object.create(null))},Ue=Pe.OptIn,Be=Pe.IabPlugin;Fe.getInstance=function(e,t){if(!e)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");e.indexOf("@")<0&&(e+="@AdobeOrg");var n=function(){var t=y.s_c_il;if(t)for(var n=0;nn?NaN:Math.floor(Math.random()*(n-t+1))+t}}},"core/src/lib/conditions/valueComparison.js":{name:"value-comparison",displayName:"Value Comparison",script:function(e,t,n){"use strict";var a=n("../helpers/stringAndNumberUtils").isString,r=n("../helpers/stringAndNumberUtils").isNumber,i=n("../helpers/stringAndNumberUtils").castToStringIfNumber,o=n("../helpers/stringAndNumberUtils").castToNumberIfString,s=function(e,t){return t&&a(e)?e.toLowerCase():e},u=function(e){return function(t,n,r){return t=i(t),n=i(n),a(t)&&a(n)&&e(t,n,r)}},l=function(e){return function(t,n){return t=o(t),n=o(n),r(t)&&r(n)&&e(t,n)}},c=function(e){return function(t,n,a){return e(s(t,a),s(n,a))}},d={equals:c((function(e,t){return e==t})),doesNotEqual:function(){return!d.equals.apply(null,arguments)},contains:u(c((function(e,t){return-1!==e.indexOf(t)}))),doesNotContain:function(){return!d.contains.apply(null,arguments)},startsWith:u(c((function(e,t){return 0===e.indexOf(t)}))),doesNotStartWith:function(){return!d.startsWith.apply(null,arguments)},endsWith:u(c((function(e,t){return e.substring(e.length-t.length,e.length)===t}))),doesNotEndWith:function(){return!d.endsWith.apply(null,arguments)},matchesRegex:u((function(e,t,n){return new RegExp(t,n?"i":"").test(e)})),doesNotMatchRegex:function(){return!d.matchesRegex.apply(null,arguments)},lessThan:l((function(e,t){return et})),greaterThanOrEqual:l((function(e,t){return e>=t})),isTrue:function(e){return!0===e},isTruthy:function(e){return Boolean(e)},isFalse:function(e){return!1===e},isFalsy:function(e){return!e}};e.exports=function(e){return d[e.comparison.operator](e.leftOperand,e.rightOperand,Boolean(e.comparison.caseInsensitive))}}},"core/src/lib/events/libraryLoaded.js":{name:"library-loaded",displayName:"Library Loaded (Page Top)",script:function(e,t,n){"use strict";var a=n("./helpers/pageLifecycleEvents");e.exports=function(e,t){a.registerLibraryLoadedTrigger(t)}}},"core/src/lib/actions/customCode.js":{name:"custom-code",displayName:"Custom Code",script:function(e,t,n,a){"use strict";var r,i,o,s,u=n("@adobe/reactor-document"),l=n("@adobe/reactor-promise"),c=n("./helpers/decorateCode"),d=n("./helpers/loadCodeSequentially"),p=n("../../../node_modules/postscribe/dist/postscribe"),f=n("./helpers/unescapeHtmlCode"),g=n("../helpers/findPageScript").getTurbine,v=(i=function(e){p(u.body,e,{beforeWriteToken:function(e){var t=e.tagName&&e.tagName.toLowerCase();return r&&"script"===t&&(e.attrs.nonce=r),"script"!==t&&"style"!==t||(Object.keys(e.attrs||{}).forEach((function(t){e.attrs[t]=f(e.attrs[t])})),e.src&&(e.src=f(e.src))),e},error:function(e){a.logger.error(e.msg)}})},o=[],s=function(){if(u.body)for(;o.length;)i(o.shift());else setTimeout(s,20)},function(e){o.push(e),s()}),h=function(){if(u.currentScript)return u.currentScript.async;var e=g();return!e||e.async}();e.exports=function(e,t){var n;r=a.getExtensionSettings().cspNonce;var i={settings:e,event:t},o=i.settings.source;if(o)return i.settings.isExternal?d(o).then((function(e){return e?(n=c(i,e),v(n.code),n.promise):l.resolve()})):(n=c(i,o),h||"loading"!==u.readyState?v(n.code):u.write&&!1===a.propertySettings.ruleComponentSequencingEnabled?u.write(n.code):v(n.code),n.promise)}}},"core/src/lib/events/customCode.js":{name:"custom-code",displayName:"Custom Code",script:function(e){"use strict";e.exports=function(e,t){e.source(t)}}},"core/src/lib/events/domReady.js":{name:"dom-ready",displayName:"DOM Ready",script:function(e,t,n){"use strict";var a=n("./helpers/pageLifecycleEvents");e.exports=function(e,t){a.registerDomReadyTrigger(t)}}},"core/src/lib/events/directCall.js":{name:"direct-call",displayName:"Direct Call",script:function(e,t,n,a){"use strict";var r={};window._satellite=window._satellite||{},window._satellite.track=function(e,t){e=e.trim();var n=r[e];if(n){var i={identifier:e,detail:t};n.forEach((function(e){e(i)}));var o=['Rules using the direct call event type with identifier "'+e+'" have been triggered'+(t?" with additional detail:":".")];t&&o.push(t),a.logger.log.apply(a.logger,o)}else a.logger.log('"'+e+'" does not match any direct call identifiers.')},e.exports=function(e,t){var n=r[e.identifier];n||(n=r[e.identifier]=[]),n.push(t)}}},"core/src/lib/events/windowLoaded.js":{name:"window-loaded",displayName:"Window Loaded",script:function(e,t,n){"use strict";var a=n("./helpers/pageLifecycleEvents");e.exports=function(e,t){a.registerWindowLoadedTrigger(t)}}},"core/src/lib/conditions/customCode.js":{name:"custom-code",displayName:"Custom Code",script:function(e){"use strict";e.exports=function(e,t){return e.source.call(t.element,t,t.target)}}},"core/src/lib/helpers/getObjectProperty.js":{script:function(e){"use strict";e.exports=function(e,t){for(var n=t.split("."),a=e,r=0,i=n.length;r2&&void 0!==arguments[2]?arguments[2]:null,a=p+t;c.existy(n)&&""!==n?e.setAttribute(a,n):e.removeAttribute(a)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.root=t,this.options=n,this.doc=t.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new l.default("",{autoFix:n.autoFix}),this.actuals=[t],this.proxyHistory="",this.proxyRoot=this.doc.createElement(t.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 t=this.writeQueue.shift();c.isFunction(t)?this._callFunction(t):this._writeImpl(t)}},e.prototype._callFunction=function(e){var t={type:"function",value:e.name||e.toString()};this._onScriptStart(t),e.call(this.win,this.doc),this._onScriptDone(t)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var t=void 0,n=void 0,a=void 0,r=[];(t=this.parser.readToken())&&!(n=c.isScript(t))&&!(a=c.isStyle(t));)(t=this.options.beforeWriteToken(t))&&r.push(t);r.length>0&&this._writeStaticTokens(r),n&&this._handleScriptToken(t),a&&this._handleStyleToken(t)},e.prototype._writeStaticTokens=function(e){var t=this._buildChunk(e);return t.actual?(t.html=this.proxyHistory+t.actual,this.proxyHistory+=t.proxy,this.proxyRoot.innerHTML=t.html,d&&(t.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),d&&(t.actualInnerHTML=this.root.innerHTML),t):null},e.prototype._buildChunk=function(e){for(var t=this.actuals.length,n=[],a=[],r=[],i=e.length,o=0;o)/," "+p+"id="+l+" $1")),s.attrs.id!==g&&s.attrs.id!==f&&r.push("atomicTag"===s.type?"":"<"+s.tagName+" "+p+"proxyof="+l+(s.unary?" />":">"))}}else a.push(u),r.push("endTag"===s.type?u:"")}return{tokens:e,raw:n.join(""),actual:a.join(""),proxy:r.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,t=[this.proxyRoot];c.existy(e=t.shift());){var n=1===e.nodeType;if(!n||!o(e,"proxyof")){n&&(this.actuals[o(e,"id")]=e,s(e,"id"));var a=e.parentNode&&o(e.parentNode,"proxyof");a&&this.actuals[a].appendChild(e)}t.unshift.apply(t,c.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var t=this,n=this.parser.clear();n&&this.writeQueue.unshift(n),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(){t._onScriptDone(e)})))},e.prototype._handleStyleToken=function(e){var t=this.parser.clear();t&&this.writeQueue.unshift(t),e.type=e.attrs.type||e.attrs.TYPE||"text/css",(e=this.options.beforeWriteToken(e))&&this._writeStyleToken(e),t&&this.write()},e.prototype._writeStyleToken=function(e){var t=this._buildStyle(e);this._insertCursor(t,f),e.content&&(t.styleSheet&&!t.sheet?t.styleSheet.cssText=e.content:t.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var t=this.doc.createElement(e.tagName);return t.setAttribute("type",e.type),c.eachKey(e.attrs,(function(e,n){t.setAttribute(e,n)})),t},e.prototype._insertCursor=function(e,t){this._writeImpl('');var n=this.doc.getElementById(t);n&&n.parentNode.replaceChild(e,n)},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,t){var n=this._buildScript(e),a=this._shouldRelease(n),r=this.options.afterAsync;e.src&&(n.src=e.src,this._scriptLoadHandler(n,a?r:function(){t(),r()}));try{this._insertCursor(n,g),n.src&&!a||t()}catch(e){this.options.error(e),t()}},e.prototype._buildScript=function(e){var t=this.doc.createElement(e.tagName);return c.eachKey(e.attrs,(function(e,n){t.setAttribute(e,n)})),e.content&&(t.text=e.content),t},e.prototype._scriptLoadHandler=function(e,t){function n(){e=e.onload=e.onreadystatechange=e.onerror=null}function a(){n(),null!=t&&t(),t=null}function r(e){n(),o(e),null!=t&&t(),t=null}function i(e,t){var n=e["on"+t];null!=n&&(e["_on"+t]=n)}var o=this.options.error;i(e,"load"),i(e,"error"),u(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){r({msg:"onload handler failed "+t+" @ "+e.src})}a()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){return void r({msg:"onerror handler failed "+t+" @ "+e.src})}r({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&a()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();t.default=v},function(e){var t;t=function(){return function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var r=a(n(1));e.exports=r.default},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=r(n(2)),s=r(n(3)),u=a(n(6)),l=n(5),c={comment:/^") ;if(t>=0)return new l.CommentToken(e.substr(4,t-1),t+3)}function r(e){var t=e.indexOf("<");return new l.CharsToken(t>=0?t:e.length)}function i(e){var t,n,a;if(-1!==e.indexOf(">")){var r=e.match(c.startTag);if(r){var i=(t={},n={},a=r[2],r[2].replace(c.attr,(function(e,r){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",n[arguments[5]]=!0):t[r]=arguments[2]||arguments[3]||arguments[4]||c.fillAttr.test(r)&&r||"":t[r]="",a=a.replace(e,"")})),{v:new l.StartTagToken(r[1],r[0].length,t,n,!!r[3],a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))});if("object"===(void 0===i?"undefined":u(i)))return i.v}}}function o(e){var t=i(e);if(t){var n=e.slice(t.length);if(n.match(new RegExp("","i"))){var a=n.match(new RegExp("([\\s\\S]*?)","i"));if(a)return new l.AtomicTagToken(t.tagName,a[0].length+t.length,t.attrs,t.booleanAttrs,a[1])}}}function s(e){var t=e.match(c.endTag);if(t)return new l.EndTagToken(t[1],t[0].length)}t.__esModule=!0;var u="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};t.comment=a,t.chars=r,t.startTag=i,t.atomicTag=o,t.endTag=s;var l=n(4),c={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,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.EndTagToken=t.AtomicTagToken=t.StartTagToken=t.TagToken=t.CharsToken=t.CommentToken=t.Token=void 0;var r=n(5),i=(t.Token=function e(t,n){a(this,e),this.type=t,this.length=n,this.text=""},t.CommentToken=function(){function e(t,n){a(this,e),this.type="comment",this.length=n||(t?t.length:0),this.text="",this.content=t}return e.prototype.toString=function(){return"