1"use strict";(self.webpackChunkDfsCard=self.webpackChunkDfsCard||[]).push([[8133],{8133:(Jt,X,S)=>{S.r(X),S.d(X,{ABTestingPlatform:()=>O,APP_COMPONENT_REGISTRY:()=>Re,AdobeTargetOfferService:()=>Me,AdobeTargetResolverService:()=>Pe,AdobeTargetService:()=>ee,AnalyticsInterface:()=>T,AnalyticsService:()=>xe,AppOwner:()=>U,AppRoutesToken:()=>Ot,BreCmsConfigService:()=>K,BreCmsSdkService:()=>ue,COMPONENT_REGISTRY:()=>Le,CmsComponentMappingsService:()=>D,CmsConfigToken:()=>j,CmsRouteDataResolverService:()=>pe,CmsSdkService:()=>ne,ComponentMappingsToken:()=>le,ComponentModuleResolverService:()=>Fe,ComponentObserverService:()=>Tt,ComponentTestService:()=>q,ContentInsightsService:()=>ke,ContentServiceProviderToken:()=>xt,CustomErrorHandler:()=>Ft,DomainToken:()=>kt,DynamicDataHandler:()=>$t,DynamicDataTag:()=>Ge,DynamicTagTypes:()=>me,EnterpriseCoreModule:()=>ct,EnvironmentService:()=>ie,EventName:()=>re,ExperimentationArticleFolder:()=>bt,ExperimentationConfig:()=>ye,ExperimentationFolder:()=>Mt,ExperimentationInterface:()=>A,ExperimentationVendors:()=>F,GaService:()=>Oe,GeographicalDataService:()=>Ae,GrvMapService:()=>It,GtagActionEnum:()=>He,GtagEventActionEnum:()=>Qe,GtagEventCategoryEnum:()=>qe,GtagEventLabelEnum:()=>Je,GtagEventNameEnum:()=>Ke,InternalLinkService:()=>w,IsProductionDomain:()=>Te,LinkUtilityService:()=>Dt,LobName:()=>B,LocalStorageService:()=>se,MaskingService:()=>Bt,MemoryCache:()=>k,NewRelicService:()=>_,OfferType:()=>E,OneTagAppId:()=>te,OneTagService:()=>je,OptimizelyService:()=>Ze,PERSONALIZATION_META_PREFIX:()=>Ve,PageDataService:()=>At,PageViewHistoryService:()=>ze,PageViewPersonalizationService:()=>V,Personalization:()=>x,PersonalizationStrategyService:()=>H,QUERY_PARAM_EXTENDER:()=>Lt,QueryParamStorageService:()=>Et,QueryParams:()=>Xe,ResponsiveSizes:()=>M,RouteDataResolverService:()=>Ne,ScEventName:()=>we,SharedCmsConfigService:()=>L,SharedCmsIntegrationModule:()=>Ct,SharedCmsSdkService:()=>R,TimeOfDay:()=>C,TimeOfDayPersonalizationService:()=>N,TrailingSlashUrlSerializer:()=>$e,UIAction:()=>Ie,VideoHelperService:()=>Rt,ViewportPersonalizationService:()=>W,WcmSdkService:()=>Ut,constructComponent:()=>Ee,containsDynamicData:()=>J,experimentationServiceFactory:()=>Nt,findComponentByName:()=>ae,getComponentAlternates:()=>oe,getComponentList:()=>z,getCtaText:()=>yt,getFormattedArticleTime:()=>Pt,nestedObject:()=>jt,parseMetaData:()=>wt,setComponentInputs:()=>Vt,siteCmsRegExp:()=>G,substitute:()=>et});var u=S(954),h=S(9204),p=S(5615),_e={};for(const t in p)["default","ABTestingPlatform","APP_COMPONENT_REGISTRY","AdobeTargetOfferService","AdobeTargetResolverService","AdobeTargetService","AnalyticsInterface","AnalyticsService","AppOwner","AppRoutesToken","BreCmsConfigService","BreCmsSdkService","COMPONENT_REGISTRY","CmsComponentMappingsService","CmsConfigToken","CmsRouteDataResolverService","CmsSdkService","ComponentMappingsToken","ComponentModuleResolverService","ComponentObserverService","ComponentTestService","ContentInsightsService","ContentServiceProviderToken","CustomErrorHandler","DomainToken","DynamicDataHandler","DynamicDataTag","DynamicTagTypes","EnterpriseCoreModule","EnvironmentService","EventName","ExperimentationArticleFolder","ExperimentationConfig","ExperimentationFolder","ExperimentationInterface","ExperimentationVendors","GaService","GeographicalDataService","GrvMapService","GtagActionEnum","GtagEventActionEnum","GtagEventCategoryEnum","GtagEventLabelEnum","GtagEventNameEnum","InternalLinkService","IsProductionDomain","LinkUtilityService","LobName","LocalStorageService","MaskingService","MemoryCache","NewRelicService","OfferType","OneTagAppId","OneTagService","OptimizelyService","PERSONALIZATION_META_PREFIX","PageDataService","PageViewHistoryService","PageViewPersonalizationService","Personalization","PersonalizationStrategyService","QUERY_PARAM_EXTENDER","QueryParamStorageService","QueryParams","ResponsiveSizes","RouteDataResolverService","ScEventName","SharedCmsConfigService","SharedCmsIntegrationModule","SharedCmsSdkService","TimeOfDay","TimeOfDayPersonalizationService","TrailingSlashUrlSerializer","UIAction","Video
1HelperService","ViewportPersonalizationService","WcmSdkService","constructComponent","containsDynamicData","experimentationServiceFactory","findComponentByName","getComponentAlternates","getComponentList","getCtaText","getFormattedArticleTime","nestedObject","parseMetaData","setComponentInputs","siteCmsRegExp","substitute"].indexOf(t)<0&&(_e[t]=()=>p[t]);S.d(X,_e);var a=S(3370),y=S(7336),Z=S(5501),g=S(7320),f=S(8707),b=S(4413),tt=S(5892),Ce=S(7854);const rt={bank:"bank","cap-one-tech":"enterprise",commercial:"commercial","content-only":"enterprise",homepage:"enterprise","learn-grow":"enterprise",military:"enterprise",card:"card","money-and-life":"money-and-life",privacy:"privacy",software:"software",acquisition:"acquisition","dfs-card-smarts":"dfs-card-smarts",travel:"travel","personal-loans":"personal-loans","dfs-personal-loans":"dfs-personal-loans","dfs-enterprise":"enterprise"};var E=function(t){return t.componentLevelTest="componentLevelTest",t.cardSiteRoute="cardSiteRoute",t.pageLevelTest="pageLevelTest",t.featureLevelTest="featureLevelTest",t.sequoia="sequoia",t}(E||{});let A=(()=>{var t;class o{}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),Pe=(()=>{var t;class o{constructor(e,r){this.experimentationService=e,this.router=r}resolve(e,r){var i=this;return(0,h.A)(function*(){return i.router.events.pipe((0,Z.first)(n=>n instanceof y.NavigationEnd)).subscribe(()=>i.experimentationService.getAndApplyOffers(r.url))})()}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(A),a.\u0275\u0275inject(y.Router))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();const ye=new a.InjectionToken("experimentationConfig");let T=(()=>{var t;class o{}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();var we=function(t){return t.clickTracking="clickTracking",t.trackAnalytics="trackAnalytics",t.initMarketing="initMarketing",t}(we||{}),O=function(t){return t.AdobeTarget="Target",t.Optimizely="Optimizely",t}(O||{});const j=new a.InjectionToken("cmsConfigToken");class k{constructor(o=null){this.cacheLimit=o,this.storage=new Map}isCacheValid(o){return null==o||(new Date).getTime()<=o}get(o){const c=this.storage.get(o);if(c&&this.storage.has(o)&&this.isCacheValid(c.expiration))return c.value;this.delete(o)}has(o){const c=this.storage.get(o);return!!(c&&this.storage.has(o)&&this.isCacheValid(c.expiration))||(this.delete(o),!1)}set(o,c){this.storage.set(o,{expiration:this.cacheLimit?(new Date).getTime()+this.cacheLimit:null,value:c})}delete(o){this.storage.delete(o)}}const it=["credit-cards","small-business/credit-cards","bank","commercial","military","auto-financing","small-business-bank","tech","learn-grow","cars","page-not-found","privacy","homepage","software","about","digital","updates","shopping","accessibility","trade-credit","power-of-attorney","partnerships","coders","lounges","help-center","capital-one-cup","examples","investor","dfs-card-smarts","travel","personal-loans","estates","dfs-enterprise"];let _=(()=>{var t;class o{constructor(e,r){this.platformId=e,this.document=r,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.isServer=(0,g.isPlatformServer)(this.platformId),this.scriptTag=this.document.createElement("script"),this.initialInteraction={save:()=>this.initialInteraction,setName:()=>this.initialInteraction},this.newRelic={setCustomAttribute:()=>{},setPageViewName:()=>{},noticeError:()=>{},interaction:()=>this.initialInteraction,addPageAction:()=>{}},this.isBrowser&&window.newrelic&&(this.newRelic=window.newrelic),this.insertScriptTag()}setCustomAttribute(e,r){if(this.isBrowser)this.newRelic.setCustomAttribute(e,r);else if(this.isServer){const i=this.sanitize(e);let n=r;"string"==typeof r&&(n=this.sanitize(r));const s=this.scriptTag.innerHTML;this.scriptTag.innerHTML="".concat(s.substring(0,s.length-5),'nr.setCustomAttribute("').concat(i,'", "').concat(n,'");\n})();')}}setPageViewName(e,r){this.newRelic.setPageViewName(e,r)}noticeError(e,r){this.newRelic.noticeError(e,r)}addPageAction(e,r){this.newRelic.addPageAction(e,r)}insertScriptTag(){if(!this.isServer)return;this.scriptTag.setAttribute("type","text/javascript"),this.scriptTag.setAttribute("id","new-relic-updates"),this.scriptTag.innerHTML="(function(){ var nr = window.newrelic; if (nr == undefined || nr.setCustomAttribute == undefined) { return; }\n})();";const e=this.document.getElementById("new-relic-init");e&&e.insertAdjacentElement("afterend",this.scriptTag)}save(e){const r=this.newRelic.interaction();return e&&r.setName(e),r.save()}sanitize(e){return e.replace(/\"/g,""").replace(/\''/g,"'").replace(/'/g,"'").replace(/"/g,""")}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(a.DOCUMENT))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();const G=/^(\/site\/)(?!_cmsinternal\/)/;let w=(()=>{var t;class o{constructor(e,r,i,n){this.document=e,this.cmsConfig=r,this.httpClient=i,this.newrelic=n,this.headCache=new k,this.cmsInternalRegExp=/^site\/_cmsinternal\//}fileExists(e){if(this.headCache.has(e))return this.headCache.get(e);const r=new Promise(i=>{this.httpClient.head(e,{observe:"response"}).toPromise().then(s=>{i(200===(null==s?void 0:s.status))}).catch(s=>{404!==s.status&&this.newrelic.noticeError(s),i(!1)}).finally(()=>{this.headCache.delete(e)})});return this.headCache.set(e,r),r}removeHomepageChannelFromUrl(e){const r=this.extractRelativePath(e);return this.formatPath(r).startsWith("site/homepage")?e.replace("homepage/",""):e}extractHashFragment(e){return e.split(/[#]/)[0]}extractHashFragmentAndQueryParams(e){return e.split(/[?#]/)[0]}hasMatchingHost(e){return!this.isValidUrl(e)||e.includes(this.document.location.host)}extractRelativePath(e=""){if(this.isValidUrl(e)){const r=e.split(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);
1r[4]===this.document.location.host&&(e=[r[5],r[6],r[8]].filter(Boolean).join(""))}return e}isValidUrl(e){return/^(https?:\/\/)|([a-z\d]\.)+[a-z]{2,}/i.test(e)}stripLeadingAndTrailingSlash(e){return e.replace(/^\/|\/$/g,"")}convertUrlToPathToJson(e){let r=this.formatPath(e),i="";const n=-1===r.indexOf("/");this.cmsInternalRegExp.test(r)&&(i="_cmsinternal/",r=r.replace(this.cmsInternalRegExp,""));const s=this.removePreviewSuffix(r.split("/")[0]),l=n?"root":r.split("/").splice(1).join("/");return this.cmsConfig.useCache?"/assets/shell/page_models/".concat(s,"/resourceapi/").concat(l,".json"):"".concat(this.cmsConfig.live.scheme,"://").concat(this.cmsConfig.live.hostname,":").concat(this.cmsConfig.live.port,"/site/").concat(i).concat(s,"/resourceapi/").concat(l)}formatPath(e){const r=this.extractHashFragmentAndQueryParams(e);return this.stripLeadingAndTrailingSlash(r)}removeInternalPrefix(e){const r=this.extractRelativePath(e);return G.test(r)?r.substring(5):e}removePreviewSuffix(e){const r=this.cmsConfig.live.previewSuffix;if(void 0!==r&&0===r.length)return e;const i=this.extractRelativePath(e);return i.startsWith("/"+this.cmsConfig.live.channelPath)?i.replace(r,""):e}isException(e){const r=this.extractRelativePath(e),i=this.removeInternalPrefix(r),n=this.formatPath(i);return it.some(s=>n.startsWith(s))}isInternalLink(e){var r=this;return(0,h.A)(function*(){if(e&&r.hasMatchingHost(e)){const i=r.extractRelativePath(e);if(r.isException(i))return!1;if(G.test(i))return!0;const n=r.convertUrlToPathToJson(i);if(yield r.fileExists(n))return!0}return!1})()}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(j),a.\u0275\u0275inject(b.HttpClient),a.\u0275\u0275inject(_))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),Me=(()=>{var t;class o{constructor(e){this.newrelic=e}getComponentOffers(e){return this.getJsonOffers(e).content.filter(i=>Object.keys(i).includes(E.componentLevelTest)).flatMap(i=>{var n;return null!==(n=i.componentLevelTest)&&void 0!==n&&n.components?this.transformComponents(i.componentLevelTest.components,i.componentLevelTest.meta?i.componentLevelTest.meta:""):i.componentLevelTest?i.componentLevelTest:void 0})}transformComponents(e,r){return Array.isArray(e)?e.map(i=>({meta:r,name:i.name,variant:i.variant})):(this.newrelic.noticeError("Invalid AB test components: ".concat(JSON.stringify(e))),[])}getPageTests(e){const r=this.getJsonOffers(e);return this.parsePageOffers(r)||this.parseCardPageOffers(r)||this.parseOldPageOffers(r)}parseOldPageOffers(e){var r;const i=e.content.find(n=>{var s;return null===(s=n.sequoia)||void 0===s?void 0:s.page});return(null==i||null===(r=i.sequoia)||void 0===r?void 0:r.page)||null}parsePageOffers(e){const r=e.content.find(i=>i.pageLevelTest);return(null==r?void 0:r.pageLevelTest)||null}parseCardPageOffers(e){const r=e.content.find(i=>i.cardSiteRoute);return(null==r?void 0:r.cardSiteRoute)||null}getFeatureLevelTest(e){return this.getJsonOffers(e).content.filter(i=>Object.keys(i).includes(E.featureLevelTest)).flatMap(i=>i.featureLevelTest)}getJsonOffers(e){const r=e.find(i=>"setJson"===i.action);return this.parseJsonOffers(r)}getAllJsonOffers(e){return e.filter(r=>"setJson"===r.action).map(r=>this.parseJsonOffers(r))}parseJsonOffers(e){const r=Object.assign({content:[]},e);return Array.isArray(r.content)||(r.content=[]),r}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(_))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();const be="target-global-mbox",De={loading:!1,offers:null};let ee=(()=>{var t;class o{get adobeTarget(){return this.isBrowser&&this.enableTests()&&window.adobe?adobe.target:null}constructor(e,r,i,n,s){this.platformId=e,this.document=r,this.newrelic=i,this.offerService=n,this.expConfig=s,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.testData=this.isBrowser?(0,f.fromEvent)(this.document,"siteTestDataReady").pipe((0,Z.map)(l=>l.detail.siteTestData)):f.NEVER,this.pageUrl="",this.pageOffers=new Promise(()=>{}),this.analyticsServ=(0,a.inject)(T),this.isBrowser&&!this.enableTests()&&console.log("Adobe Target disabled for localhost. Add query string \"at_preview_token\" to enable. In chrome dev c
1onsole location.search += 'at_preview_token'"),this.prerenderExpConfig(),this.analyticsServ.activeABTestingPlatform=O.AdobeTarget}getAndApplyOffers(e){var r=this;return(0,h.A)(function*(){const i=yield r.getPageOffers(e);r.isBrowser&&r.document.querySelector&&r.document.querySelectorAll(".exp-min-height").forEach(n=>{n.classList.remove("exp-min-height")}),null!==i&&null!==r.adobeTarget&&(r.adobeTarget.applyOffer({mbox:be,offer:i}),r.clearGlobalData())})()}checkForInvalidTests(e){var r=this;return(0,h.A)(function*(){const i=yield r.getPageOffers(e);if(!i)return;const n=i.map(d=>JSON.parse(JSON.stringify(d))),s=[];r.offerService.getAllJsonOffers(n).forEach(d=>{d.content.forEach((v={})=>{const m=r.removeValidTests(v);Object.keys(m).length&&s.push(m)})}),s.length&&r.newrelic.noticeError("Contains Invalid AB Test: ".concat(JSON.stringify(s)))})()}removeValidTests(e){var r,i,n,s;return(Array.isArray(null==e?void 0:e.componentLevelTest)||Array.isArray(null==e||null===(r=e.componentLevelTest)||void 0===r?void 0:r.components))&&delete e.componentLevelTest,null!=e&&null!==(i=e.sequoia)&&void 0!==i&&i.page&&delete e.sequoia,null!=e&&null!==(n=e.pageLevelTest)&&void 0!==n&&n.page&&delete e.pageLevelTest,null!=e&&null!==(s=e.cardSiteRoute)&&void 0!==s&&s.route&&delete e.cardSiteRoute,e}getTestUrl(e){var r=this;return(0,h.A)(function*(){const i=yield r.getPageOffers(e),n=w.prototype.extractHashFragmentAndQueryParams(e),s=i?r.offerService.getPageTests(i):{};return s&&(s.page||s.route||s[n])||e})()}getComponentTests(e){var r=this;return(0,h.A)(function*(){const i=yield r.getPageOffers(e);if(!i)return[];const n=r.offerService.getComponentOffers(i),s=new Set;return Array.isArray(n)?n.filter(l=>null!=l&&l.name?!s.has(l.name)&&(s.add(l.name),!0):(r.newrelic.noticeError("Component test is missing name: ".concat(JSON.stringify(l))),!1)):[]})()}getPageOffers(e){return this.pageUrl!==e&&(this.pageUrl=e,this.pageOffers=this.getOffers()),this.pageOffers}getOffers(){return this.adobeTarget?new Promise((e,r)=>{const i=window._sequoia&&window._sequoia.target?window._sequoia.target:De;i.loading?(window.addEventListener("targetResolved",()=>{e(i.offers)}),window.addEventListener("targetRejected",()=>{e(null)})):i.offers?e(i.offers):this.fetchOffers(l=>{e(l)},(l,d)=>{this.newrelic.noticeError("Adobe Target GetOffer failed on ".concat(l," error: ").concat(d)),e(null)})}):(this.newrelic.noticeError("Adobe Target SDK not loaded"),Promise.resolve(null))}fetchOffers(e,r){const i={mbox:be,success:e,timeout:2e3,error:r};this.expConfig&&(i.params=this.expConfig),this.adobeTarget.getOffer(i)}prerenderExpConfig(){if(!this.isBrowser&&this.expConfig){const r=this.document.querySelector("#adobe-target-init"),i=this.document.createElement("script");var e;i.id="adobe-target-config",i.text=" function targetPageParams() {\n return ".concat(JSON.stringify(this.expConfig),";\n }\n "),r&&(null===(e=r.previousSibling)||void 0===e||e.after(i))}}clearGlobalData(){window._sequoia.target=De}enableTests(){const e=this.document.location;return"localhost"!==e.hostname||"localhost"===e.hostname&&e.search.indexOf("at_preview_token")>0}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(_),a.\u0275\u0275inject(Me),a.\u0275\u0275inject(ye,8))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();const U=new a.InjectionToken("appOwnerToken"),B=new a.InjectionToken("LobName"),te=new a.InjectionToken("oneTagAppId");let je=(()=>{var t;class o{constructor(e,r){this.platformId=e,this.appId=r,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.updateAppId(r)}canUpdateAppId(e){return this.isBrowser&&e&&window.oneTagConfig}updateAppId(e){this.canUpdateAppId(e)&&(window.oneTagConfig.app_id=e)}publishEvent(e,r){try{this.isBrowser&&window.oneTag.track(e,r)}catch(i){console.error("Error publishing to OneTag: "+i)}}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(te,8))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();var re=function(t){return t.view="view",t.link="link",t}(re||{}
1),Ie=function(t){return t.click="click",t.linkClick="link_click",t.navigationClick="navigation_click",t.toggleClick="toggle_click",t.change="change",t.focus="focus",t.tooltip="tooltip",t}(Ie||{});let nt=(()=>{var t;class o{constructor(e,r=""){this.document=e,this.appOwner=r,this._areLevelsWithDefaultsSet=!1,this._pageLevels={page_level_1:"",page_level_2:"",page_level_3:"",page_level_4:"",page_level_5:""},this._pageLevelsWithDefaults={page_level_1:"",page_level_2:"",page_level_3:"",page_level_4:"",page_level_5:""}}get defaultPageLevels(){const e=this.strippedPathname.split("/");return{page_level_1:this.appOwner||"enterprise",page_level_2:e[0]||"",page_level_3:this.isArticle?"article":"composed",page_level_4:e.length>1?e[e.length-1]:"",page_level_5:""}}get pageLevels(){return this._pageLevels}set pageLevels(e){e.page_level_1?(this._pageLevels.page_level_1=e.page_level_1,this._pageLevels.page_level_2=e.page_level_2,this._pageLevels.page_level_3=e.page_level_3,this._pageLevels.page_level_4=e.page_level_4,this._pageLevels.page_level_5=e.page_level_5):(this._pageLevels.page_level_1=e.level1,this._pageLevels.page_level_2=e.level2,this._pageLevels.page_level_3=e.level3,this._pageLevels.page_level_4=e.level4,this._pageLevels.page_level_5=e.level5)}get areLevelsWithDefaultsSet(){return this._areLevelsWithDefaultsSet}set areLevelsWithDefaultsSet(e){this._areLevelsWithDefaultsSet=e}get pageLevelsWithDefaults(){return this._pageLevelsWithDefaults}set pageLevelsWithDefaults(e){this.areLevelsWithDefaultsSet=!0,e.page_level_1?(this._pageLevelsWithDefaults.page_level_1=e.page_level_1,this._pageLevelsWithDefaults.page_level_2=e.page_level_2,this._pageLevelsWithDefaults.page_level_3=e.page_level_3,this._pageLevelsWithDefaults.page_level_4=e.page_level_4,this._pageLevelsWithDefaults.page_level_5=e.page_level_5):(this._pageLevelsWithDefaults.page_level_1=e.level1,this._pageLevelsWithDefaults.page_level_2=e.level2,this._pageLevelsWithDefaults.page_level_3=e.level3,this._pageLevelsWithDefaults.page_level_4=e.level4,this._pageLevelsWithDefaults.page_level_5=e.level5)}getPageLevelsConcat(e){return Object.entries(e).filter(([i,n])=>(i.includes("page_level")||i.includes("level"))&&""!==n).map(([,i])=>i).join(":")}get strippedPathname(){return this.document.location.pathname.replace(/^\/|\/$/g,"")}get isArticle(){var e,r;return"article"===(null!==(e=null===(r=this.component)||void 0===r||null===(r=r.routeData)||void 0===r?void 0:r.name)&&void 0!==e?e:null)}get component(){return this._component}set component(e){this._component=e}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(U,8))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),Ae=(()=>{var t;class o{constructor(e){var r,i;this.platformId=e,this.isBrowser=(0,g.isPlatformBrowser)(e),this.geoVars=this.isBrowser&&null!==(r=null===(i=window)||void 0===i||null===(i=i.c1GeoVars)||void 0===i?void 0:i.geoInfo)&&void 0!==r?r:{}}get countryCode(){var e,r;return(null!==(e=null===(r=this.geoVars)||void 0===r?void 0:r.country_code)&&void 0!==e?e:"us").toLowerCase()}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();var M=function(t){return t[t.ExtraSmall=368]="ExtraSmall",t[t.Small=599]="Small",t[t.Medium=767]="Medium",t[t.MediumLarge=1024]="MediumLarge",t[t.Large=1199]="Large",t[t.ExtraLarge=1919]="ExtraLarge",t[t.LargeDisplay=9999]="LargeDisplay",t}(M||{});const ot={environment:"prod"},Te=new a.InjectionToken("IsProductionDomain");let ie=(()=>{var t;class o{constructor(e,r,i,n,s){this.document=e,this.http=r,this.platformId=i,this.nodeIsProduction=n,this.isProductionDomain=s,this.environment={environment:""}}getEnvironment(){return this.environment}load(){var e=this;return(0,h.A)(function*(){if(e.isProduction())return e.environment=ot,Promise.resolve();const r=(0,g.isPlatformServer)(e.platformId)||-1===window.location.hostname.indexOf("chariotwcmspa")?"/":"";try{const i=e.http.get("".concat(r,"assets/shell/environments/environment.qa.json")),n=yield(0,f.lastValueFrom)(i);e.environment=n}catch(i){}})()}isProduction(){return(0,g.isPlatformServer)(this.platformId)?this.nodeIsProduction:this.isProductionDomain}getAppVersionId(){return this.document.body.getAttribute("data-build-sha")}getCoreVersion(){return this.document.body.getAttribute("data-core")}getTimestamp(){return this.document.body.getAttribute("data-build-ts")}getCurrentDomain(){const{hostname:e}=this.document.location,[r,i]=e.split(".").reverse();return"".concat(i,".").concat(r)}isLocal(){const{hostname:r}=this.document.location;return/localhost/.test(r)}isPreview(){const{hostname:r}=this.document.location;return/\.cloud(dqt)?\.capitalone\.com$/.test(r)}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(b.HttpClient),a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject("nodeIsProduction",8),a.\u0275\u0275inject(Te))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),Oe=(()=>{var t;class o{constructor(e,r,i){this.platformId=e,this.document=r,this.environmentService=i,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId)}getGaData(){let e={};return this.isBrowser&&(e={salesforce_marketing_cloud_id:this.getSfmcId(),cms_and_site_version:this.getCommitSha(),responsive_breakpoint:this.document.documentElement.clientWidth,domain_user_device_id:this.getCookie("C1_UDID")}),e}getSfmcId(){if(this.document.URL){const e=new URL(this.document.URL).searchParams.get("sfmc_id");if(e)return e}}getCommitSha(){return this.environmentService.getAppVersionId()||void 0}getViewportSize(){const e=this.document.documentElement.clientWidth;return e<=M.ExtraSmall?"extra small":e<=M.Small?"small":e<=M.Medium?"medium":e<=M.MediumLarge?"medium large":e<=M.Large?"large":e<=M.ExtraLarge?"extra large":"large display"}getCookie(e){const i=this.document.cookie.split("; ").find(n=>n.startsWith("".concat(e,"=")));if(i)return i.split("=")[1]}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(ie))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),ke=(()=>{var t;class o{constructor(e,r){this.pageModelService=e,this.nrService=r}get insights(){const e=[],r=[];
1return[...new Set(this.extractInsights())].forEach(n=>{const s=n.split(",");e.push(s[0]),r.push(s[1])}),{contentId:this.contentId,contentMetadataId:e.join(","),contentMetadataName:r.join(",")}}get contentId(){try{var e,r,i;const n=this.pageModelService.getPageModel(),s=null===(e=n.page)||void 0===e||null===(e=e.components)||void 0===e?void 0:e.find(P=>"Page Content"===P.label),l=null===(r=n.page)||void 0===r||null===(r=r.components)||void 0===r?void 0:r.find(P=>"main"===P.name),d=null==l||null===(i=l.components)||void 0===i?void 0:i.find(P=>"Article Detail"===P.label);return this.pageModelService.getContentViaReference((s||d).models.document.$ref).id}catch(n){return this.nrService.noticeError("Content Insights: Unable to get content ID",n),""}}extractInsights(){var e;let r=[];const i=null===(e=this.pageModelService.getPageModel())||void 0===e?void 0:e.content;return i&&Object.values(i).forEach(n=>{var s;null!==(s=n.keys)&&void 0!==s&&s.length&&(r=r.concat(n.keys))}),r}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(p.PageModelService),a.\u0275\u0275inject(_))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),xe=(()=>{var t;class o{constructor(e,r,i,n,s="",l,d,v){this.platformId=e,this.document=r,this.geoVarsService=i,this.gaService=n,this.appOwner=s,this.appId=l,this.lobName=d,this.contentInsightsService=v,this.activeABTestingPlatform=O.AdobeTarget,this.pageLevelsService=(0,a.inject)(nt),this.oneTagService=(0,a.inject)(je),this.oneTagService.updateAppId(l),this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this._activeComponentTests={components:null,recipe:null}}get component(){return this.pageLevelsService.component}set component(e){this.pageLevelsService.component=e}get activeComponentTests(){return this._activeComponentTests}set activeComponentTests(e){this._activeComponentTests=e}get pageLevels(){return this.pageLevelsService.pageLevels}set pageLevels(e){this.pageLevelsService.pageLevels=e}get areLevelsWithDefaultsSet(){return this.pageLevelsService.areLevelsWithDefaultsSet}get pageLevelsWithDefaults(){return this.pageLevelsService.pageLevelsWithDefaults}set pageLevelsWithDefaults(e){this.pageLevelsService.pageLevelsWithDefaults=e}getPageLevelsConcat(e){return this.pageLevelsService.getPageLevelsConcat(e)}get gaData(){return this.gaService.getGaData()}getPageViewDataObj(e,r,i){return this.pageLevelsWithDefaults=this.getPageLevelsWithDefaults(r),(0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)({event_name:"page_view",page_language:(null==r?void 0:r.language)||"english",site_country:this.geoVarsService.countryCode,propensity_score_upmarket:this.propensityScore,twenty_group:this.twentyGroup,twenty_five_group:this.twentyFiveGroup,page_title:this.getPageLevelsConcat(this.pageLevelsWithDefaults)},this.pageLevelsWithDefaults),this.getDeviceType(e)),this.aBTestData),this.gaData),i)}publishPageViewEvent(e,r,i){const n=this.getPageViewDataObj(e,r,i);return this.publishEvent(re.view,n)}publishEvent(e,r){r=Object.assign({},r,{lob_identifier:this.getLobName}),this.oneTagService.publishEvent(e,r)}publishTrackedEvent(e,r){if(this.areLevelsWithDefaultsSet){const n=this.getPageLevelsConcat(this.pageLevelsWithDefaults);r.page_title=n}const i=this.getPageLevelsConcat(this.pageLevels);i&&(r.full_clickstream_path="".concat(i,":").concat(r.full_clickstream_path)),this.publishEvent(e,r)}getMetadataFields(e,r=null){var i;return this.pageLevels=e,{levelFields:(0,u.A)((0,u.A)({},this.pageLevels),{},{language:null!==(i=null==e?void 0:e.language)&&void 0!==i?i:"english"}),contextFields:this.getContextData(r)}}getPageLevelsWithDefaults(e){const r=this.pageLevelsService.defaultPageLevels;return e.level1?{level1:e.level1||r.page_level_1,level2:e.level2||r.page_level_2,level3:e.level3||r.page_level_3,level4:e.level4||r.page_level_4,level5:e.level5||r.page_level_5}:{level1:e.page_level_1||r.page_level_1,level2:e.page_level_2||r.page_level_2,level3:e.page_level_3||r.page_level_3,level4:e.page_level_4||r.page_level_4,level5:e.page_level_5||r.page_level_5}}getDeviceType(e){let r={};return e&&e.deviceInfo&&""!==e.deviceInfo.type&&(r={device_type:e.deviceInfo.type}),r}get aBTestData(){const e={ab_testing:[this.siteTestData]},r=this.generateABTestData();var i;return r&&(null===(i=e.ab_testing)||void 0===i||i.push(r)),e}generateABTestData(){const{components:e,recipe:r}=this._activeComponentTests,i=e||[];if(0===i.length)return null;const n=[],s=[];
1return i.forEach(l=>{null!=l&&l.variant&&n.push(l.variant),null!=l&&l.name&&s.push(l.name)}),{ab_testing_platform:this.activeABTestingPlatform,ab_testing_id:n.join("|"),ab_testing_name:s.join("|"),ab_testing_component_level_test:r||""}}get siteTestData(){const e=[],r=[],i=[],n=[];return this.isBrowser&&window.siteTestData&&window.siteTestData.forEach(({campaign:s,campaignId:l,experience:d,experienceId:v})=>{e.push(l),r.push(s),i.push("".concat(l,":").concat(v)),n.push("".concat(s,":").concat(l,":").concat(d,":").concat(v))}),{ab_testing_id:e.join("|"),ab_testing_name:r.join("|"),ab_testing_adobe_tnt:i.join("|"),ab_testing_akamai_test:n.join("|"),ab_testing_platform:this.activeABTestingPlatform}}get getLobName(){var e;return this.lobName||(null===(e=this.pageLevels)||void 0===e?void 0:e.page_level_1)||this.appOwner||void 0}getContextData(e){return null===e?e:{page_metadata_strategy_abstracted_code:this.getMetaInfo("strategy",e.metadata),page_metadata_intent_abstracted_code:this.getMetaInfo("intent",e.metadata),page_metadata_category_abstracted_code:this.buildCompositeFields("primaryCategory","secondaryCategory",e.metadata),page_metadata_topic_abstracted_code:this.buildCompositeFields("primaryTopics","secondaryTopics",e.metadata),page_metadata_content_type_abstracted_code:this.getMetaInfo("contentType",e.metadata),page_metadata_audience_abstracted_code:this.getMetaInfo("audience",e.metadata),page_metadata_producer_abstracted_code:this.getMetaInfo("producer",e.metadata),page_metadata_product_abstracted_code:this.getMetaInfo("product",e.metadata),page_metadata_author:e.author?"true":"N/A",page_metadata_keyword:e.metaKeywords?"true":"N/A",page_metadata_use_keyword:e.keywordDriven?"true":"N/A"}}buildCompositeFields(e,r,i){let n=this.getMetaInfo(e,i);return""!==this.getMetaInfo(r,i)&&(n+="|"+this.getMetaInfo(r,i)),n}getMetaInfo(e,r){let i="";return r.forEach((n,s,l)=>{n.key===e&&null!==n.value&&n.value.forEach(v=>{i+=v.code+"|"}),i=this.removeStringEndPipe(i)}),i}removeStringEndPipe(e){for(let r=e.length-1;r>=0&&"|"===e.slice(-1);r--)e=e.substring(0,e.length-1);return e}get twentyGroup(){var e;if(!this.isBrowser)return;const r=window.siteTestData;return null==r||null===(e=r[0])||void 0===e||null===(e=e.profile)||void 0===e?void 0:e.TwentyGroup}get twentyFiveGroup(){var e;if(!this.isBrowser)return;const r=window.siteTestData;return null==r||null===(e=r[0])||void 0===e||null===(e=e.profile)||void 0===e?void 0:e.TwentyFiveGroup}get propensityScore(){var e;if(!this.isBrowser)return;const r=window.siteTestData;return null==r||null===(e=r[0])||void 0===e||null===(e=e.details)||void 0===e?void 0:e.VIP_ntile_bucket}videoPlayerStateChange(e){}videoPlayerNavigateAway(e){}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(Ae),a.\u0275\u0275inject(Oe),a.\u0275\u0275inject(U,8),a.\u0275\u0275inject(te,8),a.\u0275\u0275inject(B,8),a.\u0275\u0275inject(ke,8))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),D=(()=>{var t;class o{constructor(){this._componentMappings={},this._sharedComponentMappings={}}getSharedComponentMappings(){return this._sharedComponentMappings}getComponentMappings(){return(0,u.A)((0,u.A)({},this._componentMappings),this._sharedComponentMappings)}setComponentMappings(e){Object.entries(e).forEach(([r,i])=>{this.isSharedComponent(i)?this._sharedComponentMappings[r]=i:this._componentMappings[r]=i})}getMappedComponent(e){return this.getComponentMappings()[e]}getMappedSharedComponent(e){return this.getSharedComponentMappings()[e]}isSharedComponent(e){return e.\u0275cmp.selectors[0][0].startsWith("shared")}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),ne=(()=>{var t;class o{constructor(e,r,i,n,s,l,d,v){this.initializeSdkService=e,this.apiUrlsService=r,this.requestContextService=i,this.componentMappingsService=n,this.pageModelService=s,this.internalLinkService=l,this.document=d,this.platformId=v,this.contentCache=new k,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId)}fetchRouteData(e,r,i,n){let s;const l=e;if(n){r.live=r.live||{},e=this.internalLinkService.extractHashFragmentAndQueryParams(e);const d=null!=r&&r.useRootPath?"/":"/".concat(r.live.channelPath,"/");e="/"===e||e===d?"/root.json":e.replace(d,"/").replace(/\/$/,"")+".json",s={live:{scheme:this.document.location.protocol.replace(":",""),hostname:this.document.location.hostname,port:parseInt(this.document.location.port)||443,channelPath:r.live.channelPath,contextPath:r.live.contextPath},useRootPath:null==r?void 0:r.useRootPath}}else s=r;if(this.apiUrlsService.setApiUrls(s),this.requestContextService.parseUrlPath(e),this.componentMappingsService.setComponentMappings(i),this.initializeSdkService.initialize({initializePageModel:!1,initializeRouterEvents:!1}),n&&this.contentCache.has(l)){const d=this.contentCache.get(l);return this.pageModelService.setPageModel(d),Promise.resolve((0,p.getComponentConfiguration)("",d))}return this.pageModelService.fetchPageModel().toPromise().then(d=>(d=this.updateAssetsPaths(n,this.apiUrlsService.getApiUrls(),d),d=this.removePreviewPaths(n,this.apiUrlsService.getApiUrls(),d),this.contentCache.set(l,d),this.pageModelService.setPageModel(d),this.isBrowser&&clearTimeout(window.entShellTimeout),(0,p.getComponentConfiguration)("",d)))}updateAssetsPaths(e,r,i){if(this.isBrowser&&!e&&this.document.location.origin!==r.live.baseUrl&&i){let s=JSON.stringify(i);return s=s.replace(/("|')\/site\/binaries\//gi,"$1".concat(r.live.baseUrl,"/site/binaries/")),JSON.parse(s)}return i}removePreviewPaths(e,r,i){const{baseUrl:n,previewSuffix:s}=r.live;if(this.isBrowser&&!e&&this.document.location.origin!==n&&i&&s&&s.length){const d=new RegExp("(\"|')/site/([a-z-]+)".concat(s,"/"),"ig");let v=JSON.stringify(i);return v=v.replace(d,m=>m.replace(s,"")),JSON.parse(v)}return i}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(p.InitializeSdkService),a.\u0275\u0275inject(p.ApiUrlsService),a.\u0275\u0275inject(p.RequestContextService),a.\u0275\u0275inject(D),a.\u0275\u0275inject(p.PageModelService),a.\u0275\u0275inject(w),a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(a.PLATFORM_ID))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();const Le=new a.InjectionToken("component-registry"),Re=new a.InjectionToken("app-component-registry");let Fe=(()=>{var t;class o{constructor(e,r,i,n,s){this.pageModelService=e,this.breMappingsService=r,this.newRelic=i,this.sharedCompModulePaths=n,this.appCompModulePaths=s,this.componentModulePaths=void 0!==s?(0,u.A)((0,u.A)({},n),s):n}resolve(){var e=this;return(0,h.A)(function*(){const r=yield(0,f.firstValueFrom)(e.pageModelService.pageModelSubject.pipe((0,f.filter)(n=>null==n?void 0:n.page)));if(null==r||!r.page)return[];const i=e.getPageComponentList(r.page);return Promise.all(i.map(n=>{var s;const l=(null===(s=n._meta.paramsInfo)||void 0===s?void 0:s.layout)||"default";return e.loadModule(n.label,l)}))})()}loadModule(e,r){var i=this;return(0,h.A)(function*(){if(e in i.componentModulePaths)try{const n=yield i.componentModulePaths[e].importModule(r);if(n.componentMapping){const s=n.componentMapping[e];i.registerComponent({[e]:s})}else if(n.\u0275cmp){const s=n;i.registerComponent({["".concat(e,": ").concat(r)]:s})}else i.registerComponentLegacy(n)}catch(n){i.newRelic.noticeError("Component module load failed",n)}})()}getPageComponentList(e){return((null==e?void 0:e.components)||[]).reduce((r,{components:i})=>r.concat(i||[]),[])}registerComponent(e){this.breMappingsService.setComponentMappings(Object.assign({},this.breMappingsService.getComponentMappings(),e))}registerComponentLegacy(e){const r=(0,a.createNgModule)(e),i=this.breMappingsService.getComponentMappings();return this.breMappingsService.setComponentMappings((0,u.A)((0,u.A)({},i),null==r?void 0:r.instance.constructor.\u0275inj.providers.filter(n=>{var s;return"componentMappings"===(null==n||null===(s=n.provide)||void 0===s?void 0:s._desc)})[0].useValue)),r}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(p.PageModelService),a.\u0275\u0275inject(D),a.\u0275\u0275inject(_),a.\u0275\u0275inject(Le),a.\u0275\u0275inject(Re,8))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();function z(t){var o,c,e;null!==(o=t)&&void 0!==o&&o.page&&(t=null===(e=t)||void 0===e?void 0:e.page);const i=((null===(c=t)||void 0===c?void 0:c.components)||[]).find(s=>"CONTAINER_COMPONENT"===s.type&&"Main Container"===s.label);return(null==i?void 0:i.components)||[]}function oe(t){var o,c;return null!==(o=null==t||null===(c=t.models)||void 0===c?void 0:c.alternates)&&void 0!==o?o:[]}function ae(t,o){return t.find(c=>c.name===o)}function Ee(t,o,c){const e={models:(0,u.A)({},Ue(c,o)),_meta:{params:o,paramsInfo:(0,u.A)((0,u.A)({},st(o)),{},{variantID:o.variantId})}};return Object.assign({},t,e)}function st(t){return Object.entries(t).reduce((o,[c,e])=>{if("off"===e)o[c]=!1;else if("on"===e)o[c]=!0;else{if("document"===c)return o;o[c]=e}return o},{})}function Ue(t,o){return Object.entries(o).reduce((c,[e,r])=>(c[e]=["document","contentList","list","featuredArticle"].includes(e)?(0,u.A)((0,u.A)({},r),Ue(t,Be(t,r))):"documents"===e&&r?r.reduce((i,n)=>(i.push((0,u.A)((0,u.A)({},n),Be(t,n))),i),[]):r,c),{})}function Be(t,o){return o.$ref.split("/").reduce((c,e)=>e?null==c?void 0:c[e]:t,t)}let se=(()=>{var t;class o{constructor(e,r){if(this.platformId=e,this.newRelic=r,this.cacheDuration=864e5,this.storagePrefix="enterprise",(0,g.isPlatformBrowser)(this.platformId))try{this.storage=window.localStorage}catch(i){}}createCache(e,r){if(!this.storage)return;const i=Date.now(),n=i+this.cacheDuration,s="".concat(this.storagePrefix,".").concat(e),l=this.generateCacheObj(r,i,i,n);this.storage.setItem(s,JSON.stringify(l))}cacheExists(e){var r;const i="".concat(this.storagePrefix,".").concat(e);return!(null===(r=this.storage)||void 0===r||!r.getItem(i))}cacheIsValid(e){var r;const i="".concat(this.storagePrefix,".").concat(e),n=null===(r=this.storage)||void 0===r?void 0:r.getItem(i);return!(!n||"string"!=typeof n)&&JSON.parse(n).expires>Date.now()}getExistingCache(e){var r;const i="".concat(this.storagePrefix,".").concat(e),n=null===(r=this.storage)||void 0===r?void 0:r.getItem(i);try{return n?JSON.parse(n):null}catch(s){return this.newRelic.noticeError("Unable to parse JSON string: ".concat(n)),console.warn(s),null}}updateCache(e,r,i){if(!this.storage)return;const n=Date.now(),s=n+this.cacheDuration;if(this.cacheExists(e)){const l=this.getExistingCache(e),d="".concat(this.storagePrefix,".").concat(e),v=this.generateCacheObj(r,i?n:l.created,n,i?s:l.expires);this.storage.setItem(d,JSON.stringify(v))}else this.createCache(e,r)}deleteExpired(e){if(!this.storage)return;const r=Date.now(),i="".concat(this.storagePrefix,".").concat(e),n=this.getExistingCache(e);n&&n.expires<=r&&this.storage.removeItem(i)}generateCacheObj(e,r,i,n){return{created:r,accessed:i,expires:n,value:e}}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(_))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),ze=(()=>{var t;class o{constructor(e,r,i){this.localStorageService=e,this.platformId=r,this.document=i,this.storageKey="page_view_history",this.durationDays=30}get pageViewHistory(){var e;const r=null===(e=this.localStorageService.getExistingCache(this.storageKey))||void 0===e?void 0:e.value,i=r?JSON.parse(r):{};return this.removeExpiredPageViews(i)}set pageViewHistory(e){const r=this.removeExpiredPageViews(e);this.localStorageService.updateCache(this.storageKey,JSON.stringify(r),!0)}trackRoute(){if((0,g.isPlatformServer)(this.platformId))return;const{pathname:e,search:r}=this.document.location;this.pageViewHistory=(0,u.A)((0,u.A)({},this.pageViewHistory),{},{[e+r]:Date.now()})}getPageViews(e){const r=e&&e>=0?this.filterPageViewsByWindow(this.pageViewHistory,e):this.pageViewHistory;return Object.entries(r).sort(([,i],[,n])=>n-i).map(([i])=>i)}removeExpiredPageViews(e){return this.filterPageViewsByWindow(e,this.durationDays)}filterPageViewsByWindow(e,r){const i=1e3*r*60*60*24,n=Date.now();return Object.entries(e).reduce((s,[l,d])=>(n-d<i&&(s[l]=d),s),{})}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(se),a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(a.DOCUMENT))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),V=(()=>{var t;class o{constructor(e){this.pageViewHistoryService=e,this.pageViewHistoryWindow=14}getPersonalization(e){const r=this.formatRoutes(this.pageViewHistoryService.getPageViews(this.pageViewHistoryWindow)),i=e.reduce((n,s)=>(0,u.A)((0,u.A)({},n),{},{[s.characteristicValue]:s}),{});for(const n of r){const s=i[n];if(s)return s}}formatRoutes(e){return e.map(r=>r.toLowerCase().replace(/[^a-z0-9]/g,""))}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(ze))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();var x=function(t){return t.PageViews="pageviews",t.TimeOfDay="time",t.Viewportsize="viewportsize",t}(x||{}),C=function(t){return t.EarlyMorning="earlymorning",t.Morning="morning",t.Midday="midday",t.EarlyAfternoon="earlyafternoon",t.LateAfternoon="lateafternoon",t.EarlyEvening="earlyevening",t.LateEvening="lateevening",t.Night="night",t}(C||{});let N=(()=>{var t;class o{get timeOfDay(){const e=(new Date).getHours();return e>=7&&e<9?C.EarlyMorning:e>=9&&e<11?C.Morning:e>=11&&e<13?C.Midday:e>=13&&e<15?C.EarlyAfternoon:e>=15&&e<17?C.LateAfternoon:e>=17&&e<19?C.EarlyEvening:e>=19&&e<21?C.LateEvening:C.Night}getPersonalization(e){const r=this.timeOfDay;return e.find(i=>i.characteristicValue===r)}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();var $=function(t){return t.Mobile="mobile",t.Tablet="tablet",t.Desktop="desktop",t}($||{}),ce=function(t){return t.small="(max-width: 599px)",t.smallMedium="(max-width: 767px)",t.medium="(min-width: 600px) and (max-width: 1023px)",t.large="(min-width: 1024px)",t}(ce||{});let W=(()=>{var t;class o{constructor(e){this.breakpointObserver=e}getDeviceSize(){return this.breakpointObserver.isMatched(ce.large)?$.Desktop:this.breakpointObserver.isMatched(ce.medium)?$.Tablet:$.Mobile}getPersonalization(e){const r=this.getDeviceSize();return e.find(i=>i.characteristicValue===r)}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(tt.B))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),H=(()=>{var t;class o{constructor(){this.platformId=(0,a.inject)(a.PLATFORM_ID),this.pageViewPersonalizationStrategy=(0,a.inject)(V),this.timeOfDayPersonalizationStrategy=(0,a.inject)(N),this.viewportPersonalizationStrategy=(0,a.inject)(W)}getPersonalization(e){if(!(0,g.isPlatformServer)(this.platformId)&&e.length)return e.find(r=>{if(r.characteristicName)switch(r.characteristicName){case x.PageViews:return this.pageViewPersonalizationStrategy.getPersonalization([r]);case x.TimeOfDay:return this.timeOfDayPersonalizationStrategy.getPersonalization([r]);case x.Viewportsize:return this.viewportPersonalizationStrategy.getPersonalization([r]);default:return}})}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();const Ve="ssc:";let q=(()=>{var t;class o{constructor(e,r,i,n,s){this.requestContextService=e,this.pageModelService=r,this.newrelic=i,this.analyticsService=n,this.personalizationStrategyService=s,this.activeTests=null,this._recipe=null}get recipe(){return this._recipe}set recipe(e){this.newrelic.setCustomAttribute("componentTests",e||""),this._recipe=e}resetState(){this.recipe=null,this.activeTests=null}setState(e){this.recipe=this.generateComponentRecipe(e),this.activeTests=e,this.analyticsService.activeComponentTests={components:this.activeTests,recipe:this.recipe}}executeComponentLevelTests(e,r){if(this.resetState(),this.requestContextService.isPreviewRequest())return e;const i=z(e),n=this.getValidTests(i,r);return this.setState(n),this.applyComponentTests(e,n)
1}getValidTests(e,r){const i=this.getExperimentationTests(e,r);if(i.length>0)return i;const n=this.getPersonalizationTests(e);return n.length>0?n:[]}getExperimentationTests(e,r){return(null==r?void 0:r.length)>0?this.filterInvalidTests(e,r):[]}getPersonalizationTests(e){return e.reduce((r,i)=>{const n=oe(i),s=this.personalizationStrategyService.getPersonalization(n);return s?[...r,{name:i.name,variant:s.characteristicValue,meta:Ve.concat(s.characteristicName)}]:r},[])}applyComponentTests(e,r){const i=z(e);return r.filter(n=>!this.isControl(n)).forEach(n=>{const d=Ee(ae(i,n.name),this.findAlternate(i,n.name,n.variant),this.pageModelService.getPageModel());z(e)[this.getIndex(i,n.name)]=d}),e}getIndex(e,r){return e.findIndex(i=>i.name===r)}filterInvalidTests(e,r){return r.reduce((i,n)=>this.isControl(n)||this.findAlternate(e,n.name,n.variant)?[...i,n]:i,[])}isControl(e){return"control"===e.variant}findAlternate(e,r,i){return oe(ae(e,r)).find(l=>l.characteristicValue===i)}generateComponentRecipe(e){return e.map(r=>"".concat(r.meta,"%").concat(r.name,"%").concat(r.variant)).join("|")}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(p.RequestContextService),a.\u0275\u0275inject(p.PageModelService),a.\u0275\u0275inject(_),a.\u0275\u0275inject(T),a.\u0275\u0275inject(H))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();const le=new a.InjectionToken("componentMappings");let Ne=(()=>{var t;class o{constructor(e,r,i,n,s,l,d,v,m){this.cmsSdkService=e,this.cookieService=r,this.experimentationService=i,this.cmsConfig=n,this.componentMappings=s,this.router=l,this.componentTestService=d,this.newrelic=v,this.document=m}resolve(e,r){var i=this;return(0,h.A)(function*(){const n=e.params["content-channel"]||e.parent&&e.parent.params["content-channel"];i.cmsConfig.live&&n&&(i.cmsConfig.live.channelPath=n+(i.cmsConfig.useCache?"":i.cmsConfig.live.previewSuffix)),i.cmsConfig.preview&&n&&(i.cmsConfig.preview.channelPath=n+(i.cmsConfig.useCache?"":i.cmsConfig.preview.previewSuffix));let s=yield i.experimentationService.getTestUrl(r.url);const l=yield i.experimentationService.getComponentTests(r.url);s=i.removeChannelForPreview(s,i.cmsConfig);const d=Object.assign({},...i.componentMappings),v=yield i.cmsSdkService.fetchRouteData(s,i.cmsConfig,d,!!i.cmsConfig.useCache).catch(m=>{console.error("Failed to fetch route data",m),i.newrelic.noticeError(m),i.router.navigateByUrl("/page-not-found/")});return i.sendMetadataToNR(r,s),i.experimentationService.checkForInvalidTests(r.url),i.componentTestService.executeComponentLevelTests(v,l)})()}sendMetadataToNR(e,r){const i=this.cookieService.get("C1_CCID");this.newrelic.setPageViewName(e.url,this.document.location.origin),this.newrelic.setCustomAttribute("channel",this.cmsConfig.live?this.cmsConfig.live.channelPath:""),this.newrelic.setCustomAttribute("variantUrl",r),i&&this.newrelic.setCustomAttribute("C1_CCID",i)}removeChannelForPreview(e,r){if(e&&r.live&&r.live.channelPath&&r.live.previewSuffix){const i="/"+r.live.channelPath.replace(r.live.previewSuffix,"")+"/";e.startsWith(i)&&!r.useRootPath&&(e=e.substring(i.length-1))}return e}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(ne),a.\u0275\u0275inject(Ce.O),a.\u0275\u0275inject(A),a.\u0275\u0275inject(j),a.\u0275\u0275inject(le),a.\u0275\u0275inject(y.Router),a.\u0275\u0275inject(q),a.\u0275\u0275inject(_),a.\u0275\u0275inject(a.DOCUMENT))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),$e=(()=>{var t;class o extends y.DefaultUrlSerializer{serialize(e){const r=super.serialize(e),i=r.indexOf("?")>-1?"?":"#",n=r.split(i);return n[0]&&!n[0].endsWith("/")&&(n[0]+="/"),n.join(i)}}return(t=o).\u0275fac=(()=>{let c;return function(r){return(c||(c=a.\u0275\u0275getInheritedFactory(t)))(r||t)}})(),t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),ct=(()=>{var t;class o{static forRoot(){return{ngModule:o,providers:[w,H,V,N,W,{provide:y.UrlSerializer,useClass:$e},(0,a.provideAppInitializer)(()=>function at(t){return()=>t.load()}((0,a.inject)(ie))())]}}static forLOB(e){return{ngModule:o,providers:[ne,w,q,{provide:T,useClass:xe},{provide:A,useClass:ee},{provide:B,useValue:e},{provide:U,useValue:rt[e]||"enterprise"},Ne,Pe,Fe,H,V,N,W,D]}}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=a.\u0275\u0275defineInjector({}),o})(),K=(()=>{var t;class o{constructor(e,r,i){this.internalLinkService=e,this.originalCmsConfig=r,this.document=i,this.config=Object.assign({},this.originalCmsConfig,{routeUrl:"",cacheKey:""})}updateCmsConfig(e,r){return this.config.routeUrl=r,this.setContentOnlyChannelPath(e),this.removeChannelNameForPreview(),this.cacheUpdates(),this.config.contentManagementEnvironment&&(this.config.contentManagementIndex="wcm-init"),this.config}get channelPath(){var e;return(null===(e=this.config.live)||void 0===e?void 0:e.channelPath)||""}get urlToFetch(){return this.config.cacheKey}get routeUrl(){return this.config.routeUrl||""}get cmsConfig(){return this.config}updateChannelPath(e){if(!e)return;const{live:r,preview:i}=this.config;r&&(r.channelPath=this.getChannelPath(e,r.previewSuffix)),i&&(i.channelPath=this.getChannelPath(e,i.previewSuffix)),this.config=Object.assign({},this.config,{live:r,preview:i})}setContentOnlyChannelPath(e){this.updateChannelPath(e.params["content-channel"]||e.parent&&e.parent.params["content-channel"])}getChannelPath(e,r){return e.concat(this.config.useCache?"":r)}removeChannelNameForPreview(){const{routeUrl:e,live:r,useRootPath:i}=this.config;if(!e||null==r||!r.channelPath||null==r||!r.previewSuffix)return;const n="/".concat(r.channelPath.replace(r.previewSuffix,""),"/");e.startsWith(n)&&!i&&(this.config.routeUrl=e.substring(n.length-1))}cacheUpdates(){this.setCacheKey(),this.config=Object.assign({},this.config,{routeUrl:this.cleanedRouteUrl}),this.config.useCache&&(this.updateRouteUrlForCache(),this.updateEnvironmentApiUrlsForCache())}get cleanedRouteUrl(){return this.config.useCache?this.internalLinkService.extractHashFragmentAndQueryParams(this.config.routeUrl):this.internalLinkService.extractHashFragment(this.config.routeUrl)}setCacheKey(){this.config=Object.assign({},this.config,{cacheKey:this.config.routeUrl})}updateRouteUrlForCache(){let{routeUrl:e}=this.config;const{useRootPath:r,live:i}=this.config,n=r?"/":"/".concat(null==i?void 0:i.channelPath,"/");e=e===n||"/"===e?"/root.json":e.replace(n,"/").replace(/\/$/,"")+".json",this.config=Object.assign({},this.config,{routeUrl:e})}updateEnvironmentApiUrlsForCache(){let{live:e}=this.config;e=Object.assign({},e,{scheme:this.document.location.protocol.replace(":",""),hostname:this.document.location.hostname,port:parseInt(this.document.location.port)||443}),this.config=Object.assign({},this.config,{live:e})}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(w),a.\u0275\u0275inject(j),a.\u0275\u0275inject(a.DOCUMENT))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),L=(()=>{var t;class o{}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),lt=(()=>{var t;class o extends K{constructor(e,r,i){super(e,r,i)}updateChannelPath(){}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(w),a.\u0275\u0275inject(j),a.\u0275\u0275inject(a.DOCUMENT))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),dt=(()=>{var t;class o extends K{constructor(e,r,i){super(e,r,i)}updateCmsConfig(e,r){const i=super.updateCmsConfig(e,r);return i.contentManagementIndex="",i.resolveReferences=!0,i}updateChannelPath(){}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(w),a.\u0275\u0275inject(j),a.\u0275\u0275inject(a.DOCUMENT))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),de=(()=>{var t;class o{constructor(e){this.http=e}fetchPageModelFromCache({channelPath:e,routeUrl:r}){const i="assets/shell/page_models/".concat(e,"/resourceapi"),n="/".concat(i,"/").concat(r);return this.http.get(n)}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(b.HttpClient))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),ue=(()=>{var t;class o{constructor(e,r,i,n,s,l,d,v){this.apiUrlsService=e,this.requestContextService=r,this.componentMappingsService=i,this.initializeSdkService=n,this.pageModelService=s,this.imageUrlService=l,this.platformId=d,this.document=v,this.contentCache=new k,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId)}get isPlatformBrowser(){return this.isBrowser}fetchRouteData(e,r){var i=this;return(0,h.A)(function*(){let n;return i.cmsSetup(e,r),e.useCache&&i.contentCache.has(e.cacheKey)?n=i.contentCache.get(e.cacheKey):(n=yield i.getPageModelFromCms(e),i.contentCache.set(e.cacheKey,n)),i.pageModelService.setPageModel(n),i.isBrowser&&clearTimeout(window.entShellTimeout),(0,p.getComponentConfiguration)("",n)})()}cmsSetup(e,r){const i=e.routeUrl,n=Object.assign({},...r);this.apiUrlsService.setApiUrls(e),this.requestContextService.parseUrlPath(i),this.componentMappingsService.setComponentMappings(n),this.initializeSdkService.initialize({initializePageModel:!1,initializeRouterEvents:!1})}getPageModelFromCms(e){var r=this;return(0,h.A)(function*(){let i=yield r.fetchPageModel(e);const n=r.getApiUrls(e);return r.isBrowser&&!e.useCache&&r.isBrowser&&r.document.location.origin!==n.live.baseUrl&&(i=function ut(t,o){if(!t.useCache&&o){var c;let e=JSON.stringify(o);return e=e.replace(/("|')\/site\/binaries\//gi,"$1".concat(null===(c=t.live)||void 0===c?void 0:c.baseUrl,"/site/binaries/")),JSON.parse(e)}return o}(n,i),i=function vt(t,o){const{previewSuffix:c}=t.live;if(o&&!t.useCache&&(null==c?void 0:c.length)){const r=new RegExp("(\"|')/site/([a-z-]+)".concat(c,"/"),"ig");let i=JSON.stringify(o);return i=i.replace(r,n=>n.replace(c,"")),JSON.parse(i)}return o}(n,i)),i})()}fetchPageModel(e){var r=this;return(0,h.A)(function*(){return e.useCache&&(r.pageModelService.httpGetOptions=(0,u.A)((0,u.A)({},r.pageModelService.httpGetOptions),{},{withCredentials:!1})),yield r.pageModelService.fetchPageModel().toPromise()})()}getPageModel(){return this.pageModelService.getPageModel()}getContentViaReference(e){return this.pageModelService.getContentViaReference(e)}getPageModelSubject(){return this.pageModelService.getPageModelSubject()}getImageUrl(e,r){return this.imageUrlService.getImageUrl({$ref:e},r)}getComponentConfiguration(e,r){return(0,p.getComponentConfiguration)(e,r)}isPreviewRequest(){return this.requestContextService.isPreviewRequest()}getApiUrls(e){const r=this.apiUrlsService.getApiUrls();return Object.assign({},e,r)}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(p.ApiUrlsService),a.\u0275\u0275inject(p.RequestContextService),a.\u0275\u0275inject(D),a.\u0275\u0275inject(p.InitializeSdkService),a.\u0275\u0275inject(p.PageModelService),a.\u0275\u0275inject(p.ImageUrlService),a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(a.DOCUMENT))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();function ve(t){const{contentManagementIndex:o}=t;return"wcm"===o||"wcm-init"===o?function ht(t){const{live:o,useRootPath:c,routeUrl:e}=t,[r]=e.split("?"),i=c?"/":"/".concat(null==o?void 0:o.channelPath,"/");return r===i||"/"===e||"/"===r?"root":e.replace(i,"/").split("?")[0].slice(1).replace(/\/$/,"")}(t):function pt(t){const{routeUrl:o}=t,c=o.split("/");return c.pop(),c.join("/")}(t)}let he=(()=>{var t;class o{constructor(e){this.http=e}fetchPageModelFromApi(e){var r=this;return(0,h.A)(function*(){const i=r.getRequestUrl(e),n=r.getHeaders(e),s=r.getRequestParam
1s(e);return yield(0,f.lastValueFrom)(r.http.get(i,{headers:n,params:s}))})()}getRequestUrl(e){const r="content-hub/enterprise/content-management/documents",{contentHubHost:i,usePreviewProxy:n}=e;return n?"https://".concat(i,"/").concat(r):"/".concat(r)}getHeaders(e){var r;const i=e.contentManagementEnvironment||"",n=e.contentManagementIndex||"",l=(e.live.channelPath||"").replace((null===(r=e.live)||void 0===r?void 0:r.previewSuffix)||"","");return new b.HttpHeaders({"Accept-Encoding":"application/zip","Content-Management-Domain":l,"Content-Management-Environment":i,"Content-Type":"application/json;v=7","Content-Management-Index":n,"Content-Management-Cache":"bypass",Accept:"application/json;v=7"})}getRequestParams(e){const r=ve(e),i=function ft(t){var o;const[c,e]=(null==t||null===(o=t.routeUrl)||void 0===o?void 0:o.split("?"))||[],r=(null==e?void 0:e.split("&"))||[];if(null!=r&&r.length){var i;const n=r.findIndex(d=>null==d?void 0:d.includes("experimentPath")),[s,l]=n>-1&&(null===(i=r[n])||void 0===i?void 0:i.split("="))||[];if(l)return l}return""}(e);let n=(new b.HttpParams).appendAll({documentPath:r,resolveReferences:!0});return i&&(n=n.set("experimentPath",i)),n}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(b.HttpClient))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),gt=(()=>{var t;class o extends ue{constructor(e,r,i,n,s,l,d,v,m,P){super(e,r,i,n,s,l,d,v),this.contentHubFetchService=m,this.assetsFolderFetchService=P}fetchPageModel(e){var r=()=>super.fetchPageModel,i=this;return(0,h.A)(function*(){var n;if(i.isPreviewRequest()||!i.isPlatformBrowser||!e.contentManagementEnvironment)return yield r().call(i,e);const s=null===(n=e.live)||void 0===n?void 0:n.channelPath;return null!=e&&e.routeUrl&&s?e.useCache?yield i.fetchFromAssetsFolder(e):yield i.fetchFromApi(e):Promise.reject("Config values are missing: routeUrl: ".concat(null==e?void 0:e.routeUrl,", channelPath: ").concat(s))})()}fetchFromApi(e){var r=this;return(0,h.A)(function*(){const i=yield r.contentHubFetchService.fetchPageModelFromApi(e);return r.convertContentHubResponse(i)})()}fetchFromAssetsFolder(e){var r=this;return(0,h.A)(function*(){var i;const n=ve(e),s=(null===(i=e.live)||void 0===i?void 0:i.channelPath)||"";return yield r.assetsFolderFetchService.fetchPageModelFromCache({channelPath:s,routeUrl:n}).pipe((0,Z.map)(l=>r.convertContentHubResponse(l))).toPromise()})()}convertContentHubResponse(e){let r=e;var i;return null!=e&&e.documents&&(r=null==e||null===(i=e.documents)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.documentStructure)||void 0===i||null===(i=i.documentStructurePayload)||void 0===i||null===(i=i.bloomreachContent)||void 0===i?void 0:i.content),r}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(p.ApiUrlsService),a.\u0275\u0275inject(p.RequestContextService),a.\u0275\u0275inject(D),a.\u0275\u0275inject(p.InitializeSdkService),a.\u0275\u0275inject(p.PageModelService),a.\u0275\u0275inject(p.ImageUrlService),a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(he),a.\u0275\u0275inject(de))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),R=(()=>{var t;class o{}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),mt=(()=>{var t;class o{constructor(e,r,i,n){this.assetsFolderFetchService=e,this.componentMappingsService=r,this.platformId=i,this.contentHubFetchService=n,this.contentCache=new k,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.pageModel={},this.pageModelSubject=new f.BehaviorSubject(this.pageModel)}get isPlatformBrowser(){return this.isBrowser}fetchRouteData(e,r){var i=this;return(0,h.A)(function*(){const n=Object.assign({},...r);if(i.componentMappingsService.setComponentMappings(n),e.useCache&&i.contentCache.has(e.cacheKey))return i.contentCache.get(e.cacheKey);if(e.useCache)return yield i.fetchFromAssetsFolder(e);const s=yield i.contentHubFetchService.fetchPageModelFromApi(e),l=i.convertContentHubResponse(s);return i.contentCache.set(e.cacheKey,l),i.pageModel=l,i.pageModelSubject.next(l),l})()}getPageModel(){return this.pageModel}getPageModelSubject(){return this.pageModelSubject}convertContentHubResponse(e){let r=e;var i;return null!=e&&e.documents&&(r=null==e||null===(i=e.documents)||void 0===i?void 0:i[0]),r}fetchFromAssetsFolder(e){var r=this;return(0,h.A)(function*(){var i;const n=ve(e),s=(null===(i=e.live)||void 0===i?void 0:i.channelPath)||"";return yield(0,f.firstValueFrom)(r.assetsFolderFetchService.fetchPageModelFromCache({channelPath:s,routeUrl:n}))})()}getContentViaReference(e){throw new Error("getContentViaReference method not implemented for ecm page models.")}getImageUrl(e,r){throw new Error("getImageUrl method not implemented for ecm page models.")}getComponentConfiguration(e,r){throw new Error("getComponentConfiguration method not implemented for ecm page models.")}isPreviewRequest(){throw new Error("isPreviewRequest method not implemented for ecm page models.")}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(de),a.\u0275\u0275inject(D),a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(he))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),pe=(()=>{var t;class o{constructor(e,r,i,n,s,l,d,v,m){this.cookieService=e,this.experimentationService=r,this.sharedCmsSdkService=i,this.sharedCmsConfigService=n,this.router=s,this.componentTestService=l,this.newrelic=d,this.componentMappings=v,this.document=m}resolve(e,r){var i=this;return(0,h.A)(function*(){const n=yield i.experimentationService.getTestUrl(r.url),s=yield i.experimentationService.getComponentTests(r.url),l=i.sharedCmsConfigService.updateCmsConfig(e,n),d=yield i.fetchRouteData(l);return i.sendMetadataToNR(r),i.componentTestService.executeComponentLevelTests(d,s)})()}fetchRouteData(e){var r=this;return(0,h.A)(function*(){try{return yield r.sharedCmsSdkService.fetchRouteData(e,r.componentMappings)}catch(n){var i;if(console.error("Failed to fetch route data",n),null!=n&&null!==(i=n.url)&&void 0!==i&&i.includes("page-not-found"))return;r.router.navigateByUrl("/page-not-found/")}})()}sendMetadataToNR(e){const r=this.cookieService.get("C1_CCID");this.newrelic.setPageViewName(e.url,this.document.location.origin),this.newrelic.setCustomAttribute("channel",this.sharedCmsConfigService.channelPath),this.newrelic.setCustomAttribute("variantUrl",this.sharedCmsConfigService.urlToFetch),r&&this.newrelic.setCustomAttribute("C1_CCID",r),this.experimentationService.checkForInvalidTests(e.url)}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(Ce.O),a.\u0275\u0275inject(A),a.\u0275\u0275inject(R),a.\u0275\u0275inject(L),a.\u0275\u0275inject(y.Router),a.\u0275\u0275inject(q),a.\u0275\u0275inject(_),a.\u0275\u0275inject(le),a.\u0275\u0275inject(a.DOCUMENT))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();const fe=[{provide:R,useClass:ue},{provide:L,useClass:K}],ge=[...fe,pe],We=[{provide:R,useClass:gt},he,de,pe],St=[...We,{provide:L,useClass:lt}],_t=[...We,{provide:L,useClass:dt},{provide:R,useClass:mt}];let Ct=(()=>{var t;class o{static forRoot(){return{ngModule:o,providers:ge}}static forRouteData(e,r=!1){return{ngModule:o,providers:ge}}static forCmsMethod(e="bre"){let r;switch(e){case"bre-content-hub":r=St;break;case"ecm-content-hub":r=_t;break;default:r=ge}return{ngModule:o,providers:r}}static getCmsProviders(e="bre"){let r;return r=fe,r}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=a.\u0275\u0275defineInjector({imports:[g.CommonModule,y.RouterModule,p.BloomreachExperienceNgSdkModule]}),o})();const Pt=(t,o)=>{const c={article:"min read",video:"min video",audio:"min listen"};
1return t&&o&&c[o]&&o?"".concat(t," ").concat(c[o]):t||""},yt=t=>null!=t&&{article:"Read More",audio:"Listen Now",video:"Watch Now"}[t]||"Read More";var He=function(t){return t.PageView="page_view",t.Conversion="conversion",t.ConversionIntent="conversion_intent",t.DownloadClick="download_click",t.NavigationClick="navigation_click",t.CtaClick="cta_click",t.ApplicationStart="application_start",t.ApplicationStepView="application_step_view",t.ApplicationSubmitAttempt="application_submit_attempt",t.ApplicationSubmitFailure="application_submit_failure",t.ApplicationSubmitComplete="application_submit_complete",t.EmailLink="email_link",t.PhoneLink="phone_link",t.SocialLink="social_link",t.ExternalLink="external_link",t.SiteSearch="site_search",t.RegistrationAttempt="registration_attempt",t.RegistrationFailure="registration_failure",t.RegistrationComplete="registration_complete",t.LoginAttempt="login_attempt",t.LoginFail="login_fail",t.LoginComplete="login_complete",t.SocialShare="social_share",t.AppStoreLinkClick="app_store_link_click",t.Error404="404_error",t.FormStart="form_start",t.FormComplete="form_complete",t.SendAdditionalData="send_additonal_data",t}(He||{}),qe=function(t){return t.Download="download",t.Navigation="navigation",t.ConversionIntent="conversion intent",t.Application="application",t.ExternalLink="external link",t.SiteSearch="site search",t.Registration="registration",t.Login="login",t.Error="error",t.Form="form",t.Cta="cta",t.SendAdditionalData="send additional data",t}(qe||{}),Ke=function(t){return t.Conversion="GA Event - Conversion Intent",t.ConversionIntent="conversion_GA Event - Conversion Intent",t.DownloadClick="GA Event - Download Click",t.NavigationClick="GA Event - Navigation Click",t.CtaClick="GA Event - CTA Click",t.ApplicationSubmit="GA Event - Application Submit",t.EmailLink="GA Event - External Email Link Click",t.PhoneLink="GA Event - External Phone Link Click",t.SocialLink="GA Event - External Social Link Click",t.ExternalLink="GA Event - External General Link Click",t.SiteSearch="GA Event - Site Search",t.Registration="GA Event - Registration",t.Login="GA Event - Login",t.SocialShare="GA Event - Social Share Link",t.AppStoreLinkClick="GA Event - App Store Link Click",t.Error404="GA Event - 404 Error Page View",t.Form="GA Event - Forms",t.SendAdditionalData="GA Event - Send Additional Data",t}(Ke||{}),Qe=function(t){return t.ApplicationStart="start",t.ApplicationAttempt="submit attempt",t.ApplicationComplete="submit complete",t.EmailLink="email link",t.PhoneLink="phone link",t.SocialLink="social link",t.GeneralLink="general link",t.RegistrationAttempt="attempt",t.RegistrationComplete="complete",t.LoginAttempt="login_attempt",t.LoginComplete="login_complete",t.SocialShare="social share intent",t.AppStoreLink="app store link",t.FormStart="form_start",t.FormComplete="form_complete",t.Error404="error 404",t.CaptureGaCid="capture ga cid",t}(Qe||{}),Je=function(t){return t.Registration="username registration",t.Login="username login",t}(Je||{});const wt=t=>{const o={};return Array.isArray(t)&&t.forEach(({key:c,value:e}={})=>{if(Array.isArray(e)){const{name:r}=e[0];o[c]=r}}),o},Mt="/tests/",bt="/article-tests/";var F=function(t){return t.AdobeTarget="target",t.Optimizely="optimizely",t}(F||{});let Dt=(()=>{var t;class o{constructor(){}getTopicLabel(e){if(!e)return"";const r=e.split("/");let i=r[r.length-2].replace(/-/g," ").toLowerCase()||"";return-1!==["tech innovation","privacy security"].indexOf(i)&&(i=i.replace(" "," & ")),i}getTopicUrl(e){if(!e)return e;const r=e.split("/");return"".concat(r.length<4?r.join("/"):r.slice(0,-1).join("/"),"/")}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();function jt(t,o,c=null){return o.reduce((e,r)=>e&&e[r]?e[r]:c,t)}var Q=function(t){return t.left="grv-row--sm-start",t.center="grv-row--sm-center",t.right="grv-row--sm-end",t}(Q||{});let It=(()=>{var t;class o{getGrvAlignmentClass(e){return e&&Q.hasOwnProperty(e)?this.getGravityAlignmentClass(e):Q.left}getGravityAlignmentClass(e){return Q[e]}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();const Ye={};let At=(()=>{var t;
1class o{constructor(){this.pageComponents$=new f.BehaviorSubject([])}setValue(e,r){Ye[e]=r}getValue(e){return Ye[e]}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),Tt=(()=>{var t;class o{constructor(){this.actionAlertSource=new f.Subject,this.topicPageFilterState=new f.BehaviorSubject(!1),this.filterArrayObserver=new f.BehaviorSubject([]),this.blogFiltersObserver=new f.BehaviorSubject({topics:[],technologies:[],disciplines:[],count:0}),this.articlesCountObserver=new f.BehaviorSubject(0),this.isBlogFilterObserver=new f.BehaviorSubject(!1),this.actionAlert$=this.actionAlertSource.asObservable(),this.topicPageFilterState$=this.topicPageFilterState.asObservable(),this.filterArray$=this.filterArrayObserver.asObservable(),this.blogFilters$=this.blogFiltersObserver.asObservable(),this.matchedArticlesCount$=this.articlesCountObserver.asObservable(),this.isBlogFilter$=this.isBlogFilterObserver.asObservable()}sendAlert(e){this.actionAlertSource.next(e)}toggleTopicPageFilterClass(){!1===this.topicPageFilterState.getValue()?this.topicPageFilterState.next(!0):this.topicPageFilterState.next(!1)}filterArraySend(e){this.filterArrayObserver.next(e)}setActiveFilters(e){this.blogFiltersObserver.next(e)}setMatchedArticlesCount(e){this.articlesCountObserver.next(e)}sendIsBlogFilter(e){this.isBlogFilterObserver.next(e)}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();const Xe=new a.InjectionToken("queryParams"),Ot=new a.InjectionToken("appRoutesToken"),kt=new a.InjectionToken("domainToken"),xt=new a.InjectionToken("contentServiceProviderToken"),Lt=new a.InjectionToken("Query Param Extender");let Rt=(()=>{var t;class o{constructor(e){this.platformId=e,this.videoComponentRefs=[],this._isScriptInjected=!1,this.isServer=(0,g.isPlatformServer)(this.platformId),this.windowYouTubeProperty="YT"}get isScriptInjected(){return this._isScriptInjected}set isScriptInjected(e){this._isScriptInjected=e}static getVideoReference(e,r){return r.reduce((i,n)=>null==i?void 0:i[n],e)}static extractVideoId(e){const i=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return-1!==e.indexOf("http")&&null!==i&&i.length?i[2]:e}static onPlayerStateChange(e,r,i){r.playerEvents=e,r.videoTime=e.target.getCurrentTime(),r.videoLength=e.target.getDuration(),i.videoPlayerStateChange(r)}static unloadHandler(e,r,i,n){r.playerEvents=window["player-".concat(i)],r.videoTime=window["player-".concat(i)].getCurrentTime(),r.videoLength=window["player-".concat(i)].getDuration(),n.videoPlayerNavigateAway(r)}static getPlayerConfig(e){return e.isBrowser&&e.videoId?{height:"100%",width:"100%",videoId:e.videoId,playerVars:{rel:0,controls:2,enablejsapi:1},host:"https://www.youtube-nocookie.com",events:{onStateChange:e.onPlayerStateChange.bind(e),onReady:e.onPlayerReady.bind(e)}}:null}addComponentRef(e){this.videoComponentRefs.push(e)}insertIframes(){if(!this.isServer){if(window[this.windowYouTubeProperty])return void this.createYouTubePlayer();window.onYouTubeIframeAPIReady=()=>{this.createYouTubePlayer()}}}setYouTubeSDK(){this.isScriptInjected=!0;const e=window.document,r=e.createElement("script");r.type="text/javascript",r.src="//www.youtube.com/iframe_api",e.head.appendChild(r)}videoSetup(e,r,i){e&&r&&!this.isScriptInjected&&this.setYouTubeSDK(),r&&this.addComponentRef(i),this.insertIframes()}createYouTubePlayer(){this.isServer||this.videoComponentRefs.forEach(e=>{const r=o.getPlayerConfig(e);r&&(window["player-".concat(r.videoId)]=new window.YT.Player(r.videoId,r))})}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),Ft=(()=>{var t;class o extends a.ErrorHandler{constructor(e){super(),this.newRelic=e}handleError(e){this.newRelic.noticeError(this.getErrorMessage(e),(0,u.A)({},e)),console.warn(e)}getErrorMessage(e){if("object"==typeof e&&null!==e){const r=["rejection","message"],i=Object.keys(e).find(n=>r.includes(n));return i?e[i]:e}return e}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(_))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),Et=(()=>{var t;class o{constructor(e,r,i,n){this.activeRoute=e,this.cacheStorage=r,this.lobName=i,this.persistedQueryParams=n,this.parameterMapKey="parameterMap",r.storagePrefix=this.lobName}initializeLocalStorage(){this.cacheStorage.deleteExpired(this.parameterMapKey),this.storeQueryParams()}getQueryParams(){return this.storeQueryParams(),this.getCachedParams()}getQueryParamString(){return this.generateQueryParamString(this.getQueryParams())}getSpecificQueryParam(e,r=""){return this.getQueryParams()[e]||r}
1removeKeysFromCache(e){if(this.cacheStorage.cacheExists(this.parameterMapKey)){const r=this.getCachedParams(),i=Object.entries(r).reduce((n,[s,l])=>(e.includes(s)||(n[s]=l),n),{});this.cacheStorage.createCache(this.parameterMapKey,i)}}getCachedParams(){var e;const r=null===(e=this.cacheStorage.getExistingCache(this.parameterMapKey))||void 0===e?void 0:e.value;return r?this.getPersistedQueryParams(r):{}}storeQueryParams(){const e=this.getPersistedQueryParams(this.activeRoute.snapshot.queryParams);if(this.shouldPersistQueryParams(e)){const r=this.getCachedParams(),i=(0,u.A)((0,u.A)({},r),e);this.cacheStorage.updateCache(this.parameterMapKey,i,!0)}}getPersistedQueryParams(e){return Object.keys(e).filter(r=>this.persistedQueryParams.includes(r)).reduce((r,i)=>(r[i]=e[i],r),{})}shouldPersistQueryParams(e){return 0!==Object.keys(e).length}generateQueryParamString(e){const r=new b.HttpParams({fromObject:e});return r.keys().length?"?".concat(r.toString()):""}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(y.ActivatedRoute),a.\u0275\u0275inject(se),a.\u0275\u0275inject(B),a.\u0275\u0275inject(Xe))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})(),Ut=(()=>{var t;class o{constructor(e,r,i,n){this.pageModelService=e,this.imageUrlService=r,this.requestContextService=i,this.apiUrlsService=n}getDocContentViaRef(e,r){var i,n;const s=r||(null==e?void 0:e.$ref)||(null==e||null===(i=e.models)||void 0===i||null===(i=i.document)||void 0===i?void 0:i.$ref)||(null==e||null===(n=e.models)||void 0===n||null===(n=n.content)||void 0===n?void 0:n.$ref);return this.pageModelService.getContentViaReference(s)}getImageUrlByPath(e){var r,i;if(!e||e.match("^https?://"))return e;const n=this.requestContextService.isPreviewRequest(),s=this.apiUrlsService.getApiUrls(),l=n?null===(r=s.preview)||void 0===r?void 0:r.baseUrl:null===(i=s.live)||void 0===i?void 0:i.baseUrl;return"".concat(l).concat(e)}getImageUrl(e,r){if(!e)return"";const i=this.imageUrlService.getImageUrl(e)||"",n=this.imageUrlService.getImageUrl(e,r),s=!i.includes(".gif")&&this.imageUrlService.getImageUrl(e,"rdesktop");return r?n:s||i}getPageModelData(){return this.pageModelService.pageModel}getPageModelSubject(){return this.pageModelService.pageModelSubject}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(p.PageModelService),a.\u0275\u0275inject(p.ImageUrlService),a.\u0275\u0275inject(p.RequestContextService),a.\u0275\u0275inject(p.ApiUrlsService))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})(),Bt=(()=>{var t;class o{constructor(){}mask(e,r){let i="";const s=(0,u.A)((0,u.A)({},{npi:"mask",injection:"sanitize"}),r),l=I=>I.replace(/\d/g,"x").replace(Se,"x".repeat(I.length)),d=I=>I.replace(/\d/g,"").replace(Se,""),Se=/(<|<)[^>]*?(>|>)/g,Ht={npi:[/[2-6]\d{3}.?\d{4}.?\d{4}.?\d{4}/g,/[2-6]\d{3}.?\d{6}.?\d{5}/g,/\d{9,14}/g],injection:[Se]};for(const[I,Y]of Object.entries(s)){if("ignore"===Y)continue;const qt="mask"===Y?l:d;i=Ht[I].reduce((Kt,Qt)=>Kt.replace(Qt,qt),i||e)}return i||""}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),o})();const zt={pageTest:null,componentTests:[]};let Ze=(()=>{var t;class o{constructor(e,r,i,n){var s=this;this.platformId=e,this.document=r,this.newRelicService=i,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.winRef=this.isBrowser?window:null,this._optimizelyRef=new f.Subject,this.optimizelyRef$=this._optimizelyRef.asObservable(),this._globalOptimizelyRef=void 0,this._isInitialized=!1,this.optimizely=(0,h.A)(function*(){return yield s.initializeOptimizely(),s._globalOptimizelyRef}),this.isBrowser&&!this.enableTests()&&console.log('Optimizely disabled for localhost. Add query string "optimizely_token" to enable.'),n.activeABTestingPlatform=O.Optimizely}initializeOptimizely(){var e=this;return(0,h.A)(function*(){var r;if(!e._isInitialized){if(e._isInitialized=!0,!0===(null===(r=e.winRef)||void 0===r||null===(r=r._sequoia)||void 0===r||null===(r=r.optimizely)||void 0===r?void 0:r.loading)&&e.isBrowser)(0,f.fromEvent)(e.winRef,"optimizelyResolved",{once:!0}).subscribe(()=>{(0,f.timer)(0).subscribe(()=>{var s;e._optimizelyRef.next(null===(s=e.winRef)||void 0===s?void 0:s.optimizely)})});else{var i,n;if("function"==typeof(null===(i=e.winRef)||void 0===i||null===(i=i.optimizely)||void 0===i?void 0:i.get)||!e.isBrowser||(null===(n=e.winRef)||void 0===n||null===(n=n._sequoia)||void 0===n?void 0:n.experimentationVendor)!==F.Optimizely)return(0,f.timer)(0).subscribe(()=>{var s;return e._optimizelyRef.next(null===(s=e.winRef)||void 0===s?void 0:s.optimizely)}),void(e._globalOptimizelyRef=yield(0,f.firstValueFrom)(e.optimizelyRef$));e.isBrowser&&(0,f.fromEvent)(e.winRef,"experimentationVendorResolved",{once:!0}).subscribe(()=>{(0,f.timer)(0).subscribe(()=>{var s;return e._optimizelyRef.next(null===(s=e.winRef)||void 0===s?void 0:s.optimizely)})})}e._globalOptimizelyRef=yield(0,f.firstValueFrom)(e.optimizelyRef$.pipe((0,f.timeout)({first:2e3}),(0,f.catchError)(()=>
1(e.newRelicService.noticeError("Optimizely not loaded"),console.log("Optimizely not loaded"),(0,f.of)(void 0)))))}})()}enableTests(){const e=this.document.location;return"localhost"!==e.hostname||"localhost"===e.hostname&&e.search.indexOf("optimizely_token")>0}getAndApplyOffers(e){var r=this;return(0,h.A)(function*(){if(yield r.getOffers(),r.isBrowser){var i;null===(i=r.document)||void 0===i||i.querySelectorAll(".exp-min-height").forEach(s=>{s.classList.remove("exp-min-height")});const n=yield r.siteTestData();n.length>0&&n.forEach(s=>{r.newRelicService.addPageAction("webExperimentApplied",(0,u.A)((0,u.A)({},s),{},{experimentationVendor:F.Optimizely}))})}})()}getTestUrl(e){var r=this;return(0,h.A)(function*(){const i=yield r.getOffers();return null!=i&&i.pageTest?i.pageTest:e})()}getComponentTests(e){var r=this;return(0,h.A)(function*(){const i=yield r.getOffers();return null!=i&&i.componentTests?i.componentTests:[]})()}checkForInvalidTests(e){return(0,h.A)(function*(){})()}siteTestData(){var e=this;return(0,h.A)(function*(){var r;const i=yield e.optimizely(),n=null==i||null===(r=i.get("state"))||void 0===r?void 0:r.getCampaignStates({isActive:!0}),s=[];return e.isBrowser&&n&&Object.entries(n).forEach(([l,d,v])=>{d&&s.push({campaignId:d.experiment.id,campaign:d.experiment.name,experience:d.isInCampaignHoldback?"Holdback_experience":d.variation.name,experienceId:d.isInCampaignHoldback?"Holdback_variant":d.variation.id})}),s})()}getOffers(){var e=this;return(0,h.A)(function*(){if(!e.isBrowser||!e.enableTests())return null;const r=yield e.siteTestData();return new Promise((i,n)=>{var s;const l=(null===(s=window)||void 0===s||null===(s=s._sequoia)||void 0===s?void 0:s.optimizely)||zt;window.siteTestData=r,i({pageTest:l.pageTest||null,componentTests:l.componentTests||[]})})})()}}return(t=o).\u0275fac=function(e){return new(e||t)(a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(a.DOCUMENT),a.\u0275\u0275inject(_),a.\u0275\u0275inject(T))},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})();function Vt(t,o){Object.entries(o).forEach(([c,e])=>{t.setInput(c,e);const r=t.instance;if("function"!=typeof r[c])try{r[c]=e}catch(i){}})}const Nt=()=>{var t;return(null===(t=globalThis._sequoia)||void 0===t?void 0:t.experimentationVendor)===F.Optimizely?(0,a.inject)(Ze):(0,a.inject)(ee)};var me=function(t){return t.approvedProduct="approvedProduct",t.approvedProducts="approvedProducts",t.approvedOffer="approvedOffer",t.autoRefi="auto_refi",t.contract="contract",t.contractWithBrandName="contract-with-brand-name",t.contractWithFootnote="contract-with-footnote",t.contractWithFootnoteAndDynamicBrand="contract-with-footnote-and-dynamic-brand",t.counterOfferApprovedProductWithAdjustedSuffix="counter-offer-approved-product-with-adjusted-suffix",t.counterOfferApprovedProductWithSuffix="counter-offer-approved-product-with-suffix",t.counterOfferDeclinedProductWithSuffix="counter-offer-declined-product-with-suffix",t.credit="credit",t.creditOffer="credit-offer",t.creditOffersFootnote="credit-offers-footnote",t.creditOffersFootnoteSnippet="credit-offers-footnote-snippet",t.date="date",t.dynamicField="dynamicField",t.dynamicFootnote="dynamic-footnote",t.footnote="footnote",t.form="form",t.location="location",t.modal="modal",t.modalLink="modal-link",t.offers="offers",t.product="product",t.rates="rates",t.scroll="scroll",t.tooltip="tooltip",t.referrals="referrals",t.dynamicProductSnippet="dynamicProductSnippet",t.ltoText="lto-text",t.offerAcceptProduct="offerAcceptProduct",t.approvedDisclosuresFootnote="approvedDisclosuresFootnote",t.rateAndFeeModalLink="rate-and-fee-modal-link",t}(me||{});class Ge{constructor(o){this.source="";const[c,e,...r]=o.split(":");this.validateTag(c,e),this.source=o,this.tagType=c,this.value=e,this.extras=r}validateTag(o,c){o&&c?Object.values(me).includes(o)||console.error('Tag type "'.concat(o,'" not recognized. Please only use supported tag types')):console.error("Invalid dynamic data format: tagType:".concat(o," value:").concat(c,". Are you prefixing your dynamic data snippet with the correct tag type? (e.g. ${modal:/your-route/})"))}}function et(t,o){return(t||"").replace(/[$@]{(.*?)}/g,(c,e)=>o(new Ge(e)))}function J(t){return!!t&&/[$@]{(.*?)}/.test(t)}let $t=(()=>{var t;class o{dataSourceForSnippet$(e){return this.dataSource$()}getSubstitutionResult(e,r,i){return e||"${".concat(r.source,"}")}updateInnerHtml(e,r){e.nativeElement.innerHTML=J(r)?"":r}updateInputValue(e,r){e.nativeElement.value=J(r)?"":r}updateAlt(e,r){e.nativeElement.alt=J(r)?"":r}transformSnippet(e,r){return et(e,i=>this.substituteValue(i,r))}}return(t=o).\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),o})()}}]); 2//# sourceMappingURL=8133.568a55678eea1cdb.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.