PageSourceSearch

https://www.kippsdesanto.com/assets/shell/378.7bf10dd44dd4a88d.js

js kippsdesanto.com collected 2026-10-06 18:06:09 UTC 54,580 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkenterprise_web_shell_extra_sites=self.webpackChunkenterprise_web_shell_extra_sites||[]).push([[378],{4378:(fe,x,v)=>{v.r(x),v.d(x,{AdobeTargetOfferService:()=>re,AdobeTargetResolverService:()=>ee,AdobeTargetService:()=>se,AnalyticsInterface:()=>Y,AnalyticsService:()=>H,AppOwner:()=>O,ArticleGridUtilityService:()=>we,CmsConfigToken:()=>_,CmsSdkService:()=>F,ComponentMappingsToken:()=>Z,ComponentObserverService:()=>De,ComponentTestService:()=>A,ContentInsightsService:()=>Q,CustomErrorHandler:()=>Me,DynamicDataHandler:()=>Re,DynamicDataTag:()=>he,DynamicTagTypes:()=>q,EnterpriseCoreModule:()=>ve,EnvironmentService:()=>K,EventName:()=>W,ExperimentationArticleFolder:()=>Ie,ExperimentationConfig:()=>te,ExperimentationFolder:()=>be,ExperimentationInterface:()=>k,GaService:()=>J,GeographicalDataService:()=>$,GrvMapService:()=>_e,GtagActionEnum:()=>M,GtagEventActionEnum:()=>U,GtagEventCategoryEnum:()=>B,GtagEventLabelEnum:()=>z,GtagEventNameEnum:()=>N,InternalLinkService:()=>I,IsProductionDomain:()=>Oe,LinkUtilityService:()=>Pe,LobName:()=>L,LocalStorageService:()=>le,MemoryCache:()=>C,NewRelicService:()=>m,OfferType:()=>j,OneTagAnalyticsService:()=>ke,OneTagAppId:()=>ce,PageDataService:()=>xe,QueryParamStorageService:()=>je,QueryParams:()=>ae,ResponsiveSizes:()=>P,RouteDataResolverService:()=>G,ScEventName:()=>V,TrailingSlashUrlSerializer:()=>X,UIAction:()=>de,VideoHelperService:()=>Ae,containsDynamicData:()=>ue,getCtaText:()=>ye,getFormattedArticleTime:()=>Se,nestedObject:()=>Te,parseMetaData:()=>Ce,siteCmsRegExp:()=>p,substitute:()=>Le});var b=v(467),g=v(7238),D={};for(const r in g)["default","AdobeTargetOfferService","AdobeTargetResolverService","AdobeTargetService","AnalyticsInterface","AnalyticsService","AppOwner","ArticleGridUtilityService","CmsConfigToken","CmsSdkService","ComponentMappingsToken","ComponentObserverService","ComponentTestService","ContentInsightsService","CustomErrorHandler","DynamicDataHandler","DynamicDataTag","DynamicTagTypes","EnterpriseCoreModule","EnvironmentService","EventName","ExperimentationArticleFolder","ExperimentationConfig","ExperimentationFolder","ExperimentationInterface","GaService","GeographicalDataService","GrvMapService","GtagActionEnum","GtagEventActionEnum","GtagEventCategoryEnum","GtagEventLabelEnum","GtagEventNameEnum","InternalLinkService","IsProductionDomain","LinkUtilityService","LobName","LocalStorageService","MemoryCache","NewRelicService","OfferType","OneTagAnalyticsService","OneTagAppId","PageDataService","QueryParamStorageService","QueryParams","ResponsiveSizes","RouteDataResolverService","ScEventName","TrailingSlashUrlSerializer","UIAction","VideoHelperService","containsDynamicData","getCtaText","getFormattedArticleTime","nestedObject","parseMetaData","siteCmsRegExp","substitute"].indexOf(r)<0&&(D[r]=()=>g[r]);v.d(x,D);var s=v(2387),T=v(6688),l=v(1121),h=v(8615),w=v(6525),y=v(8567),f=v(8515);class C{cacheLimit;storage=new Map;constructor(d=null){this.cacheLimit=d}isCacheValid(d){return null==d||(new Date).getTime()<=d}get(d){const e=this.storage.get(d);if(e&&this.storage.has(d)&&this.isCacheValid(e.expiration))return e.value;this.delete(d)}has(d){const e=this.storage.get(d);return!!(e&&this.storage.has(d)&&this.isCacheValid(e.expiration))||(this.delete(d),!1)}set(d,e){this.storage.set(d,{expiration:this.cacheLimit?(new Date).getTime()+this.cacheLimit:null,value:e})}delete(d){this.storage.delete(d)}}const _=new s.InjectionToken("cmsConfigToken"),E=["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","diversity","updates","shopping","environment","accessibility","trade-credit","power-of-attorney","partnerships","coders","lounges","help-center","capital-one-cup","examples","investor","tripletree","kippsdesanto"];let m=(()=>{class r{platformId;document;isBrowser;isServer;scriptTag;initialInteraction={save:()=>this.initialInteraction,setName:()=>this.initialInteraction};newRelic={setCustomAttribute:()=>{},setPageViewName:()=>{},noticeError:()=>{},interaction:()=>this.initialInteraction,addPageAction:()=>{}};constructor(e,t){this.platformId=e,this.document=t,this.isBrowser=(0,l.isPlatformBrowser)(this.platformId),this.isServer=(0,l.isPlatformServer)(this.platformId),this.scriptTag=this.document.createElement("script"),this.isBrowser&&window.newrelic&&(this.newRelic=window.newrelic),this.insertScriptTag()}setCustomAttribute(e,t){if(this.isBrowser)this.newRelic.setCustomAttribute(e,t);else if(this.isServer){const i=this.sanitize(e);let n=t;"string"==typeof t&&(n=this.sanitize(t));const o=this.scriptTag.innerHTML;this.scriptTag.innerHTML=`${o.substring(0,o.length-5)}nr.setCustomAttribute("${i}", "${n}");\n})();`}}setPageViewName(e,t){this.newRelic.setPageViewName(e,t)}noticeError(e,t){this.newRelic.noticeError(e,t)}addPageAction(e,t){this.newRelic.addPageAction(e,t)}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 t=this.newRelic.interaction();return e&&t.setName(e),t.save()}sanitize(e){return e.replace(/\"/g,"&#34;").replace(/\''/g,"&#39;").replace(/'/g,"&#39;").replace(/"/g,"&#34;")}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(s.PLATFORM_ID),s.\u0275\u0275inject(l.DOCUMENT))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const p=/^(\/site\/)(?!_cmsinternal\/)/;let I=(()=>{class r{document;cmsConfig;httpClient;newrelic;headCache=new C;cmsInternalRegExp=/^site\/_cmsinternal\//;constructor(e,t,i,n){this.document=e,this.cmsConfig=t,this.httpClient=i,this.newrelic=n}fileExists(e){if(this.headCache.has(e))return this.headCache.get(e);const t=new Promise(i=>{this.httpClient.head(e,{observe:"response"}).toPromise().then(o=>{i(200===o?.status)}).catch(o=>{404!==o.status&&this.newrelic.noticeError(o),i(!1)}).finally(()=>{this.headCache.delete(e)})});return this.headCache.set(e,t),t}removeHomepageChannelFromUrl(e){const t=this.extractRelativePath(e);return this.formatPath(t).startsWith("site/homepage")?e.replace("homepage/",""):e}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 t=e.split(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);
1t[4]===this.document.location.host&&(e=[t[5],t[6],t[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 t=this.formatPath(e),i="";const n=-1===t.indexOf("/");this.cmsInternalRegExp.test(t)&&(i="_cmsinternal/",t=t.replace(this.cmsInternalRegExp,""));const o=this.removePreviewSuffix(t.split("/")[0]),a=n?"root":t.split("/").splice(1).join("/");return this.cmsConfig.useCache?`/assets/shell/page_models/${o}/resourceapi/${a}.json`:`${this.cmsConfig.live.scheme}://${this.cmsConfig.live.hostname}:${this.cmsConfig.live.port}/site/${i}${o}/resourceapi/${a}`}formatPath(e){const t=this.extractHashFragmentAndQueryParams(e);return this.stripLeadingAndTrailingSlash(t)}removeInternalPrefix(e){const t=this.extractRelativePath(e);return p.test(t)?t.substring(5):e}removePreviewSuffix(e){const t=this.cmsConfig.live.previewSuffix;if(void 0!==t&&0===t.length)return e;const i=this.extractRelativePath(e);return i.startsWith("/"+this.cmsConfig.live.channelPath)?i.replace(t,""):e}isException(e){const t=this.extractRelativePath(e),i=this.removeInternalPrefix(t),n=this.formatPath(i);return E.some(o=>n.startsWith(o))}isInternalLink(e){var t=this;return(0,b.A)(function*(){if(e&&t.hasMatchingHost(e)){const i=t.extractRelativePath(e);if(t.isException(i))return!1;if(p.test(i))return!0;const n=t.convertUrlToPathToJson(i);if(yield t.fileExists(n))return!0}return!1})()}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(l.DOCUMENT),s.\u0275\u0275inject(_),s.\u0275\u0275inject(h.HttpClient),s.\u0275\u0275inject(m))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})(),F=(()=>{class r{initializeSdkService;apiUrlsService;requestContextService;componentMappingsService;pageModelService;internalLinkService;document;platformId;contentCache=new C;isBrowser;constructor(e,t,i,n,o,a,c,u){this.initializeSdkService=e,this.apiUrlsService=t,this.requestContextService=i,this.componentMappingsService=n,this.pageModelService=o,this.internalLinkService=a,this.document=c,this.platformId=u,this.isBrowser=(0,l.isPlatformBrowser)(this.platformId)}fetchRouteData(e,t,i,n){let o;const a=e;if(n){t.live=t.live||{},e=this.internalLinkService.extractHashFragmentAndQueryParams(e);const c=t?.useRootPath?"/":`/${t.live.channelPath}/`;e="/"===e||e===c?"/root.json":e.replace(c,"/").replace(/\/$/,"")+".json",o={live:{scheme:this.document.location.protocol.replace(":",""),hostname:this.document.location.hostname,port:parseInt(this.document.location.port)||443,channelPath:t.live.channelPath,contextPath:t.live.contextPath},useRootPath:t?.useRootPath}}else o=t;if(this.apiUrlsService.setApiUrls(o),this.requestContextService.parseUrlPath(e),this.componentMappingsService.setComponentMappings(i),this.initializeSdkService.initialize({initializePageModel:!1,initializeRouterEvents:!1}),n&&this.contentCache.has(a)){const c=this.contentCache.get(a);return this.pageModelService.setPageModel(c),Promise.resolve((0,g.getComponentConfiguration)("",c))}return this.pageModelService.fetchPageModel().toPromise().then(c=>(c=this.updateAssetsPaths(n,this.apiUrlsService.getApiUrls(),c),c=this.removePreviewPaths(n,this.apiUrlsService.getApiUrls(),c),this.contentCache.set(a,c),this.pageModelService.setPageModel(c),this.isBrowser&&clearTimeout(window.entShellTimeout),(0,g.getComponentConfiguration)("",c)))}updateAssetsPaths(e,t,i){if(this.isBrowser&&!e&&this.document.location.origin!==t.live.baseUrl&&i){let o=JSON.stringify(i);return o=o.replace(/("|')\/site\/binaries\//gi,`$1${t.live.baseUrl}/site/binaries/`),JSON.parse(o)}return i}removePreviewPaths(e,t,i){const{baseUrl:n,previewSuffix:o}=t.live;if(this.isBrowser&&!e&&this.document.location.origin!==n&&i&&o&&o.length){const c=new RegExp(`("|')/site/([a-z-]+)${o}/`,"ig");let u=JSON.stringify(i);return u=u.replace(c,S=>S.replace(o,"")),JSON.parse(u)}return i}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(g.InitializeSdkService),s.\u0275\u0275inject(g.ApiUrlsService),s.\u0275\u0275inject(g.RequestContextService),s.\u0275\u0275inject(g.ComponentMappingsService),s.\u0275\u0275inject(g.PageModelService),s.\u0275\u0275inject(I),s.\u0275\u0275inject(l.DOCUMENT),s.\u0275\u0275inject(s.PLATFORM_ID))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const O=new s.InjectionToken("appOwnerToken");let $=(()=>{class r{platformId;isBrowser;geoVars;constructor(e){this.platformId=e,this.isBrowser=(0,l.isPlatformBrowser)(e),this.geoVars=this.isBrowser?window?.c1GeoVars?.geoInfo??{}:{}}get countryCode(){return(this.geoVars?.country_code??"us").toLowerCase()}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(s.PLATFORM_ID))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),A=(()=>{class r{requestContextService;pageModelService;newrelic;_recipe=null;componentTests=null;activeTests=null;constructor(e,t,i){this.requestContextService=e,this.pageModelService=t,this.newrelic=i}set recipe(e){this.newrelic.setCustomAttribute("componentTests",e||""),this._recipe=e}get recipe(){return this._recipe}getActiveTests(){if(!this.activeTests?.length)return null;const e=[],t=[];
1return this.activeTests.forEach(i=>{i?.variant&&e.push(i.variant),i?.name&&t.push(i.name)}),{ab_testing_platform:"Target",ab_testing_id:e.join("|"),ab_testing_name:t.join("|"),ab_testing_component_level_test:this.recipe||""}}executeComponentLevelTests(e,t){if(this.recipe="",this.activeTests=null,this.componentLevelTestAvailable(t)){const i=this.filterInvalidTests(this.getComponentList(e),t);return this.componentTests=t,this.activeTests=i,this.recipe=this.generateComponentRecipe(i),this.applyComponentTests(e,i)}return e}applyComponentTests(e,t){const i=this.getComponentList(e);return t.filter(n=>!this.isControl(n)).forEach(n=>{const o=this.findComponentByName(i,n.name),a=this.findAlternate(i,n.name,n.variant),c=this.constructComponent(o,a);this.getComponentList(e)[this.getIndex(i,n.name)]=c}),e}getIndex(e,t){return e.findIndex(i=>i.name===t)}getComponentList(e){const n=(e?.components||[]).find(o=>"CONTAINER_COMPONENT"===o.type)?.components||[];return n.length||console.warn("Page model components not found"),n}filterInvalidTests(e,t){return t.reduce((i,n)=>this.isControl(n)||this.findAlternate(e,n.name,n.variant)?[...i,n]:i,[])}isControl(e){return"control"===e.variant}findAlternate(e,t,i){return(this.findComponentByName(e,t)?.models?.alternates??[]).find(a=>a.characteristicValue===i)}findComponentByName(e,t){return e.find(i=>i.name===t)}componentLevelTestAvailable(e){return e&&e.length>0&&!this.requestContextService.isPreviewRequest()}findComponentTest(e,t){return e.find(i=>i.name===t)}constructComponent(e,t){const i={models:{...this.updateContentRefs(t)},_meta:{params:t,paramsInfo:{...this.updateParamsInfo(t),variantID:t.variantId}}};return Object.assign({},e,i)}generateComponentRecipe(e){return e.map(t=>`${t.meta}%${t.name}%${t.variant}`).join("|")}updateParamsInfo(e){return Object.entries(e).reduce((t,[i,n])=>{if("off"===n)t[i]=!1;else if("on"===n)t[i]=!0;else{if("document"===i)return t;t[i]=n}return t},{})}updateContentRefs(e){return Object.entries(e).reduce((t,[i,n])=>(t[i]=["document","contentList","list","featuredArticle"].includes(i)?{...n,...this.updateContentRefs(this.pageModelService.getContentViaReference(n.$ref))}:"documents"===i&&n?n.reduce((o,a)=>(o.push({...a,...this.pageModelService.getContentViaReference(a.$ref)}),o),[]):n,t),{})}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(g.RequestContextService),s.\u0275\u0275inject(g.PageModelService),s.\u0275\u0275inject(m))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var M=function(r){return r.PageView="page_view",r.Conversion="conversion",r.ConversionIntent="conversion_intent",r.DownloadClick="download_click",r.NavigationClick="navigation_click",r.CtaClick="cta_click",r.ApplicationStart="application_start",r.ApplicationStepView="application_step_view",r.ApplicationSubmitAttempt="application_submit_attempt",r.ApplicationSubmitFailure="application_submit_failure",r.ApplicationSubmitComplete="application_submit_complete",r.EmailLink="email_link",r.PhoneLink="social_link",r.SocialLink="social_link",r.ExternalLink="external_link",r.SiteSearch="site_search",r.RegistrationAttempt="registration_attempt",r.RegistrationFailure="registration_failure",r.RegistrationComplete="registration_complete",r.LoginAttempt="login_attempt",r.LoginFail="login_fail",r.LoginComplete="login_complete",r.SocialShare="social_share",r.AppStoreLinkClick="app_store_link_click",r.Error404="404_error",r.FormStart="form_start",r.FormComplete="form_complete",r.SendAdditionalData="send_additonal_data",r}(M||{}),B=function(r){return r.Download="download",r.Navigation="navigation",r.ConversionIntent="conversion intent",r.Application="application",r.ExternalLink="external link",r.SiteSearch="site search",r.Registration="registration",r.Login="login",r.Error="error",r.Form="form",r.Cta="cta",r.SendAdditionalData="send additional data",r}(B||{}),N=function(r){return r.Conversion="GA Event - Conversion Intent",r.ConversionIntent="conversion_GA Event - Conversion Intent",r.DownloadClick="GA Event - Download Click",r.NavigationClick="GA Event - Navigation Click",r.CtaClick="GA Event - CTA Click",r.ApplicationSubmit="GA Event - Application Submit",r.EmailLink="GA Event - External Email Link Click",r.PhoneLink="GA Event - External Phone Link Click",r.SocialLink="GA Event - External Social Link Click",r.ExternalLink="GA Event - External General Link Click",r.SiteSearch="GA Event - Site Search",r.Registration="GA Event - Registration",r.Login="GA Event - Login",r.SocialShare="GA Event - Social Share Link",r.AppStoreLinkClick="GA Event - Conversion Intent",r.Error404="GA Event - 404 Error Page View",r.Form="GA Event - Forms",r.SendAdditionalData="GA Event - Send Additional Data",r}(N||{}),U=function(r){return r.ApplicationStart="start",r.ApplicationAttempt="submit attempt",r.ApplicationComplete="submit c
1omplete",r.EmailLink="email link",r.PhoneLink="phone link",r.SocialLink="social link",r.GeneralLink="general link",r.RegistrationAttempt="attempt",r.RegistrationComplete="complete",r.LoginAttempt="attempt",r.LoginComplete="complete",r.SocialShare="social share intent",r.AppStoreLink="app store link",r.FormStart="start",r.FormComplete="complete",r.Error404="error 404",r.CaptureGaCid="capture ga cid",r}(U||{}),z=function(r){return r.Registration="username registration",r.Login="username login",r}(z||{}),P=function(r){return r[r.ExtraSmall=368]="ExtraSmall",r[r.Small=599]="Small",r[r.Medium=767]="Medium",r[r.MediumLarge=1024]="MediumLarge",r[r.Large=1199]="Large",r[r.ExtraLarge=1919]="ExtraLarge",r[r.LargeDisplay=9999]="LargeDisplay",r}(P||{});let Y=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})();var V=function(r){return r.clickTracking="clickTracking",r.trackAnalytics="trackAnalytics",r.initMarketing="initMarketing",r}(V||{});const pe={environment:"prod"};function ge(r){return()=>r.load()}let K=(()=>{class r{document;http;platformId;nodeIsProduction;environment={environment:""};constructor(e,t,i,n){this.document=e,this.http=t,this.platformId=i,this.nodeIsProduction=n}getEnvironment(){return this.environment}load(){if(this.isProduction())return this.environment=pe,Promise.resolve();const e=(0,l.isPlatformServer)(this.platformId)||-1===window.location.hostname.indexOf("chariotwcmspa")?"/":"";return this.http.get(`${e}assets/shell/environments/environment.qa.json`).toPromise().then(t=>{t&&(this.environment=t)})}isProduction(){return(0,l.isPlatformServer)(this.platformId)?this.nodeIsProduction:/www[\w\d]*\.capitalone\.com/i.test(this.document.location.hostname)}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")}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(l.DOCUMENT),s.\u0275\u0275inject(h.HttpClient),s.\u0275\u0275inject(s.PLATFORM_ID),s.\u0275\u0275inject("nodeIsProduction",8))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),J=(()=>{class r{platformId;document;environmentService;isBrowser;constructor(e,t,i){this.platformId=e,this.document=t,this.environmentService=i,this.isBrowser=(0,l.isPlatformBrowser)(this.platformId)}addPageViewData(e){if(this.isBrowser){const t=e.gtag||{},i=Date.now();t.action=M.PageView,t.domain_userid=this.getCookie("C1_UDID")||void 0,t.full_referrer=this.document.referrer,t.full_url=this.document.location.toString(),t.ga_client_id=this.getGaId()||void 0,t.language=e.taxonomy.language,t.responsive_breakpoint=this.getViewportSize(),t.sfmc_id=this.getSfmcId(),t.site_version=this.getCommitSha(),t.user_agent_string=navigator.userAgent,t.user_timezone_timestamp=new Date(i).toString(),t.user_timezone_offset=this.getOffset(new Date(i)),t.keyMasterId=this.getCookie("KM_2")||void 0,e.gtag=t,void 0===t.ga_client_id&&this.pollForGaId()}return e}getGaId(){const e=this.getCookie("_ga");if(e)return e.split(".").slice(2).join(".")}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<=P.ExtraSmall?"extra small":e<=P.Small?"small":e<=P.Medium?"medium":e<=P.MediumLarge?"medium large":e<=P.Large?"large":e<=P.ExtraLarge?"extra large":"large display"}getOffset(e){const t=e.getTimezoneOffset()/60;return(t>0?"-":"+")+t.toFixed(0).toString()}getCookie(e){const i=this.document.cookie.split("; ").find(n=>n.startsWith(`${e}=`));if(i)return i.split("=")[1]}pollForGaId(){let i=0;const n=setInterval(()=>{if(i>=20)return void clearInterval(n);i++;const o=this.getGaId();return o?(clearInterval(n),void window.publisherFW.publishEvent(V.trackAnalytics,{gtag:{action:M.SendAdditionalData,event_category:B.SendAdditionalData,event_name:N.SendAdditionalData,event_action:U.C
1aptureGaCid,non_interaction:!0,ga_client_id:o,event_label:o}})):void 0},500)}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(s.PLATFORM_ID),s.\u0275\u0275inject(l.DOCUMENT),s.\u0275\u0275inject(K))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Q=(()=>{class r{pageModelService;nrService;constructor(e,t){this.pageModelService=e,this.nrService=t}get insights(){const e=[],t=[];return[...new Set(this.extractInsights())].forEach(n=>{const o=n.split(",");e.push(o[0]),t.push(o[1])}),{contentId:this.contentId,contentMetadataId:e.join(","),contentMetadataName:t.join(",")}}get contentId(){try{const e=this.pageModelService.getPageModel(),t=e.page?.components?.find(c=>"Page Content"===c.label),n=e.page?.components?.find(c=>"main"===c.name)?.components?.find(c=>"Article Detail"===c.label);return this.pageModelService.getContentViaReference((t||n).models.document.$ref).id}catch(e){return this.nrService.noticeError("Content Insights: Unable to get content ID",e),""}}extractInsights(){let e=[];const t=this.pageModelService.getPageModel()?.content;return t&&Object.values(t).forEach(i=>{i.keys?.length&&(e=e.concat(i.keys))}),e}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(g.PageModelService),s.\u0275\u0275inject(m))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),H=(()=>{class r{platformId;geoVarsService;comTestService;gaService;appOwner;contentInsightsService;isBrowser;_component;pageLevelFields;constructor(e,t,i,n,o="",a){this.platformId=e,this.geoVarsService=t,this.comTestService=i,this.gaService=n,this.appOwner=o,this.contentInsightsService=a,this.isBrowser=(0,l.isPlatformBrowser)(this.platformId)}get component(){return this._component}set component(e){this._component=e}createMetadata(e,t,i){let n=this.taxonomyAndContext(e,t,i);return n=this.gaService.addPageViewData(n),this.publishMetadata("trackAnalytics",n)}createTaxonomyObj(e){return{...this.getLevelFields(e),country:this.geoVarsService.countryCode,language:e&&e.language?e.language:"english",system:"portal_compass"}}getLevelFields(e){const t=this.strippedPathname.split("/"),i={level1:this.appOwner||"enterprise",level2:t[0]||"",level3:this.isArticle?"article":"composed",level4:"",level5:""};return t.length>1&&(i.level4=t[t.length-1]),(e=Object.assign({},e)).level1=e.level1||i.level1,e.level2=e.level2||i.level2,e.level3=e.level3||i.level3,e.level4=e.level4||i.level4,e.level5=e.level5||i.level5,e}get strippedPathname(){return this.isBrowser?window.location.pathname.replace(/^\/|\/$/g,""):""}get isArticle(){return"article"===(this.component?.routeData?.name??null)}taxonomyAndContext(e,t,i){let n="";e&&""!==e.deviceInfo.type&&(n=e.deviceInfo.type);const a={taxonomy:this.createTaxonomyObj(t),deviceType:n};this.comTestService.recipe&&(a.componentLevelTest=this.comTestService.recipe),null!==i&&(a.spContexts=[{schema:"iglu:com.capitalone.snowplow/page_metadata/jsonschema/1-0-0",data:i}]);const c=this.parseKmInfo();return a.akamaiTest=this.getAdobeTestData(),a.altCustId=this.getAltCustId(c),a.kmInfo=this.getKmInfo(c),this.addContentInsights(a),this.addTwentyGroup(a),a}parseKmInfo(){let e;if(this.isBrowser)try{e=window.localStorage.kmInfo}catch{}return e?JSON.parse(e):{}}getKmInfo(e){return(e?.info??[]).join("_")}getAltCustId(e){return e?.umk??""}getAdobeTestData(){return window.siteTestData?window.siteTestData.reduce((t,i)=>(t.push(i.campaign+":"+i.campaignId+":"+i.experience+":"+i.experienceId),t),[]).join("|"):""}publishMetadata(e,t){try{return this.isBrowser&&window.publisherFW.publishEvent(e,t),{error:"metadata",detail:{name:e,eventData:t}}}catch(i){return{error:"Error publishing to siteCatalyst ",detail:i}}}publishClickTrackingData(e,t){try{if(this.isBrowser){const i=Object.values(this.pageLevelFields).filter(n=>""!==n).join(":");t.name=`${i}:${t.name}`,window.publisherFW.publishEvent(e,t)}}catch{}}getMetadataFields(e,t=null){return this.pageLevelFields={level1:e?.level1??"",level2:e?.level2??"",level3:e?.level3??"",level4:e?.level4??"",level5:e?.level5??""},{levelFields:{...this.pageLevelFields,language:e?.language??"english"},contextFields:this.getContextData(t)}}getContextData(e){return null===e?e:{strategyAbstractedCode:this.getMetaInfo("strategy",e.metadata),intentAbstractedCode:this.getMetaInfo("intent",e.metadata),categoryAbstractedCode:this.buildCompositeFields("primaryCategory","secondaryCategory",e.metadata),topicAbstractedCode:this.buildCompositeFields("primaryTopics","secondaryTopics",e.metadata),contentTypeAbstractedCode:this.getMetaInfo("contentType",e.metadata),audienceAbstractedCode:this.getMetaInfo("audience",e.metadata),producerAbstractedCode:this.getMetaInfo("producer",e.metadata),productAbstractedCode:this.getMetaInfo("product",e.metadata),author:e.author?"true":"N/A",keyword:e.metaKeywords?"true":"N/A",useKeyword:e.keywordDriven?"true":"N/A"}}buildCompositeFields(e,t,i){let n=this.getMetaInfo(e,i);return""!==this.getMetaInfo(t,i)&&(n+="|"+this.getMetaInfo(t,i)),n}getMetaInfo(e,t){let i="";return t.forEach((n,o,a)=>{n.key===e&&null!==n.value&&n.value.forEach(u=>{i+=u.code+"|"}),i=this.removeStringEndPipe(i)}),i}removeStringEndPipe(e){for(let t=e.length-1;t>=0&&"|"===e.slice(-1);t--)e=e.substring(0,e.length-1);return e}addContentInsights(e){const t=this.contentInsightsService?.insights;if(t?.contentMetadataId.length){const i={schema:"iglu:com.capitalone.snowplow/ui_features/jsonschema/1-0-3",data:t};e.spContexts?.length?e.spContexts.push(i):e.spContexts=[i]}}get twentyGroup(){return this.isBrowser?window.siteTestData?.[0]?.profile?.TwentyGroup:void 0}
1addTwentyGroup(e){e.TwentyGroup=this.twentyGroup}videoPlayerStateChange(e){}videoPlayerNavigateAway(e){}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(s.PLATFORM_ID),s.\u0275\u0275inject($),s.\u0275\u0275inject(A),s.\u0275\u0275inject(J),s.\u0275\u0275inject(O,8),s.\u0275\u0275inject(Q,8))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})(),X=(()=>{class r extends T.DefaultUrlSerializer{serialize(e){const t=super.serialize(e),i=t.indexOf("?")>-1?"?":"#",n=t.split(i);return n[0]&&!n[0].endsWith("/")&&(n[0]+="/"),n.join(i)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=s.\u0275\u0275getInheritedFactory(r)))(i||r)}})();static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})();const Z=new s.InjectionToken("componentMappings");var j=function(r){return r.componentLevelTest="componentLevelTest",r.cardSiteRoute="cardSiteRoute",r.pageLevelTest="pageLevelTest",r.featureLevelTest="featureLevelTest",r.sequoia="sequoia",r}(j||{});let k=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})(),G=(()=>{class r{cmsSdkService;cookieService;experimentationService;cmsConfig;componentMappings;router;componentTestService;newrelic;document;constructor(e,t,i,n,o,a,c,u,S){this.cmsSdkService=e,this.cookieService=t,this.experimentationService=i,this.cmsConfig=n,this.componentMappings=o,this.router=a,this.componentTestService=c,this.newrelic=u,this.document=S}resolve(e,t){var i=this;return(0,b.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 o=yield i.experimentationService.getTestUrl(t.url);const a=yield i.experimentationService.getComponentTests(t.url);o=i.removeChannelForPreview(o,i.cmsConfig);const c=Object.assign({},...i.componentMappings),u=yield i.cmsSdkService.fetchRouteData(o,i.cmsConfig,c,!!i.cmsConfig.useCache).catch(S=>{console.error("Failed to fetch route data",S),i.newrelic.noticeError(S),i.router.navigateByUrl("/page-not-found/")});return i.sendMetadataToNR(t,o),i.experimentationService.checkForInvalidTests(t.url),i.componentTestService.executeComponentLevelTests(u,a)})()}sendMetadataToNR(e,t){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",t),i&&this.newrelic.setCustomAttribute("C1_CCID",i)}removeChannelForPreview(e,t){if(e&&t.live&&t.live.channelPath&&t.live.previewSuffix){const i="/"+t.live.channelPath.replace(t.live.previewSuffix,"")+"/";e.startsWith(i)&&!t.useRootPath&&(e=e.substring(i.length-1))}return e}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(F),s.\u0275\u0275inject(w.O),s.\u0275\u0275inject(k),s.\u0275\u0275inject(_),s.\u0275\u0275inject(Z),s.\u0275\u0275inject(T.Router),s.\u0275\u0275inject(A),s.\u0275\u0275inject(m),s.\u0275\u0275inject(l.DOCUMENT))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})(),ee=(()=>{class r{experimentationService;router;constructor(e,t){this.experimentationService=e,this.router=t}resolve(e,t){var i=this;return(0,b.A)(function*(){return i.router.events.pipe((0,y.first)(n=>n instanceof T.NavigationEnd)).subscribe(()=>i.experimentationService.getAndApplyOffers(t.url))})()}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(k),s.\u0275\u0275inject(T.Router))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})();const L=new s.InjectionToken("LobName"),me={bank:"bank","cap-one-tech":"enterprise",commercial:"commercial","content-only":"enterprise",homepage:"enterprise","learn-grow":"enterprise",military:"enterprise",card:"card",privacy:"privacy",software:"software",acquisition:"acquisition",tripletree:"tripletree",kippsdesanto:"kippsdesanto"},te=new s.InjectionToken("experimentationConfig");let re=(()=>{class r{newrelic;constructor(e){this.newrelic=e}getComponentOffers(e){return this.getJsonOffers(e).content.filter(i=>Object.keys(i).includes(j.componentLevelTest)).flatMap(i=>i.componentLevelTest?.components?this.transformComponents(i.componentLevelTest.components,i.componentLevelTest.meta?i.componentLevelTest.meta:""):i.componentLevelTest?i.componentLevelTest:void 0)}transformComponents(e,t){return Array.isArray(e)?e.map(i=>({meta:t,name:i.name,variant:i.variant}
1)):(this.newrelic.noticeError(`Invalid AB test components: ${JSON.stringify(e)}`),[])}getPageTests(e){const t=this.getJsonOffers(e);return this.parsePageOffers(t)||this.parseCardPageOffers(t)||this.parseOldPageOffers(t)}parseOldPageOffers(e){return e.content.find(i=>i.sequoia?.page)?.sequoia?.page||null}parsePageOffers(e){return e.content.find(i=>i.pageLevelTest)?.pageLevelTest||null}parseCardPageOffers(e){return e.content.find(i=>i.cardSiteRoute)?.cardSiteRoute||null}getFeatureLevelTest(e){return this.getJsonOffers(e).content.filter(i=>Object.keys(i).includes(j.featureLevelTest)).flatMap(i=>i.featureLevelTest)}getJsonOffers(e){const t=e.find(i=>"setJson"===i.action);return this.parseJsonOffers(t)}getAllJsonOffers(e){return e.filter(t=>"setJson"===t.action).map(t=>this.parseJsonOffers(t))}parseJsonOffers(e){const t=Object.assign({content:[]},e);return Array.isArray(t.content)||(t.content=[]),t}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(m))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const ie="target-global-mbox",ne={loading:!1,offers:null};let se=(()=>{class r{platformId;document;newrelic;offerService;expConfig;isBrowser;testData;adobeTarget=null;pageUrl="";pageOffers=new Promise(()=>{});constructor(e,t,i,n,o){this.platformId=e,this.document=t,this.newrelic=i,this.offerService=n,this.expConfig=o,this.isBrowser=(0,l.isPlatformBrowser)(this.platformId),this.testData=this.isBrowser?(0,f.fromEvent)(this.document,"siteTestDataReady").pipe((0,y.map)(a=>a.detail.siteTestData)):f.NEVER,this.adobeTarget=this.isBrowser&&this.enableTests()&&window.adobe?adobe.target:null,this.isBrowser&&!this.enableTests()&&console.log("Adobe Target disabled for localhost. Add query string \"at_preview_token\" to enable. In chrome dev console location.search += 'at_preview_token'"),this.prerenderExpConfig()}getAndApplyOffers(e){var t=this;return(0,b.A)(function*(){const i=yield t.getPageOffers(e);t.isBrowser&&t.document.querySelector&&t.document.querySelectorAll(".exp-min-height").forEach(n=>{n.classList.remove("exp-min-height")}),null!==i&&null!==t.adobeTarget&&(t.adobeTarget.applyOffer({mbox:ie,offer:i}),t.clearGlobalData())})()}checkForInvalidTests(e){var t=this;return(0,b.A)(function*(){const i=yield t.getPageOffers(e);if(!i)return;const n=i.map(c=>JSON.parse(JSON.stringify(c))),o=[];t.offerService.getAllJsonOffers(n).forEach(c=>{c.content.forEach((u={})=>{const S=t.removeValidTests(u);Object.keys(S).length&&o.push(S)})}),o.length&&t.newrelic.noticeError(`Contains Invalid AB Test: ${JSON.stringify(o)}`)})()}removeValidTests(e){return(Array.isArray(e?.componentLevelTest)||Array.isArray(e?.componentLevelTest?.components))&&delete e.componentLevelTest,e?.sequoia?.page&&delete e.sequoia,e?.pageLevelTest?.page&&delete e.pageLevelTest,e?.cardSiteRoute?.route&&delete e.cardSiteRoute,e}getTestUrl(e){var t=this;return(0,b.A)(function*(){const i=yield t.getPageOffers(e),n=I.prototype.extractHashFragmentAndQueryParams(e),o=i?t.offerService.getPageTests(i):{};return o&&(o.page||o.route||o[n])||e})()}getComponentTests(e){var t=this;return(0,b.A)(function*(){const i=yield t.getPageOffers(e);if(!i)return[];const n=t.offerService.getComponentOffers(i),o=new Set;return Array.isArray(n)?n.filter(a=>a?.name?!o.has(a.name)&&(o.add(a.name),!0):(t.newrelic.noticeError(`Component test is missing name: ${JSON.stringify(a)}`),!1)):[]})()}getPageOffers(e){return this.pageUrl!==e&&(this.pageUrl=e,this.pageOffers=this.getOffers()),this.pageOffers}getOffers(){return this.adobeTarget?new Promise((e,t)=>{const i=window._sequoia&&window._sequoia.target?window._sequoia.target:ne;i.loading?(window.addEventListener("targetResolved",()=>{e(i.offers)}),window.addEventListener("targetRejected",()=>{e(null)})):i.offers?e(i.offers):this.fetchOffers(a=>{e(a)},(a,c)=>{this.newrelic.noticeError(`Adobe Target GetOffer failed on ${a} error: ${c}`),e(null)})}):(this.newrelic.noticeError("Adobe Target SDK not loaded"),Promise.resolve(null))}fetchOffers(e,t){const i={mbox:ie,success:e,timeout:2e3,error:t};this.expConfig&&(i.params=this.expConfig),this.adobeTarget.getOffer(i)}prerenderExpConfig(){if(!this.isBrowser&&this.expConfig){const e=this.document.querySelector("#adobe-target-init"),t=this.document.createElement("script");t.id="adobe-target-config",t.text=` function targetPageParams() {\n        return ${JSON.stringify(this.expConfig)}
1;\n      }\n    `,e&&e.previousSibling?.after(t)}}clearGlobalData(){window._sequoia.target=ne}enableTests(){const e=this.document.location;return"localhost"!==e.hostname||"localhost"===e.hostname&&e.search.indexOf("at_preview_token")>0}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(s.PLATFORM_ID),s.\u0275\u0275inject(l.DOCUMENT),s.\u0275\u0275inject(m),s.\u0275\u0275inject(re),s.\u0275\u0275inject(te,8))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})(),ve=(()=>{class r{static forRoot(){return{ngModule:r,providers:[I,{provide:T.UrlSerializer,useClass:X},{provide:s.APP_INITIALIZER,useFactory:ge,deps:[K],multi:!0}]}}static forLOB(e){return{ngModule:r,providers:[F,I,{provide:Y,useClass:H},{provide:k,useClass:se},{provide:L,useValue:e},{provide:O,useValue:me[e]||"enterprise"},G,ee]}}static \u0275fac=function(t){return new(t||r)};static \u0275mod=s.\u0275\u0275defineNgModule({type:r});static \u0275inj=s.\u0275\u0275defineInjector({})}return r})(),we=(()=>{class r{originalTileArray;newTileArray;topicArray;tileArrayLength=10;constructor(){}getFilteredTiles(e){return this.filterArray(e,this.getOriginalTileArray())}getTopicArray(){return this.topicArray}setTopicArray(e){this.topicArray=e}getOriginalTileArray(){return this.originalTileArray}setOriginalTileArray(e){this.originalTileArray=e}filterArray(e,t){return this.newTileArray=[],t.forEach(i=>{e.forEach(n=>{i.primaryTopics.forEach(o=>{o===n&&(this.newTileArray.indexOf(i)>-1||this.newTileArray.push(i))})})}),this.newTileArray}getNewTileSet(e,t,i){this.tileArrayLength=Math.min(e.length,10);for(let n=this.tileArrayLength-1;n>=0;n--)if(t[e[n].hippoIdentifier]){const o=e[n];e.splice(n,1),e.length<9?e.push(o):e.splice(i?10:14,0,o)}return e}static \u0275fac=function(t){return new(t||r)};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const Se=(r,d)=>{const e={article:"min read",video:"min video",audio:"min listen"};return r&&d&&e[d]&&d?`${r} ${e[d]}`:r||""},ye=r=>null!=r&&{article:"Read More",audio:"Listen Now",video:"Watch Now"}[r]||"Read More",Ce=r=>{const d={};return Array.isArray(r)&&r.forEach(({key:e,value:t}={})=>
1{if(Array.isArray(t)){const{name:i}=t[0];d[e]=i}}),d},be="/tests/",Ie="/article-tests/";let Pe=(()=>{class r{constructor(){}getTopicLabel(e){if(!e)return"";const t=e.split("/");let i=t[t.length-2].replace(/-/g," ").toLowerCase()||"";return-1!==["tech innovation","privacy security"].indexOf(i)&&(i=i.replace(" "," & ")),i}getTopicUrl(e){if(!e)return e;const t=e.split("/");return t.length<4?`${t.join("/")}/`:`${t.slice(0,-1).join("/")}/`}static \u0275fac=function(t){return new(t||r)};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Te(r,d,e=null){return d.reduce((t,i)=>t&&t[i]?t[i]:e,r)}var R=function(r){return r.left="grv-row--sm-start",r.center="grv-row--sm-center",r.right="grv-row--sm-end",r}(R||{});let _e=(()=>{class r{getGrvAlignmentClass(e){return e&&R.hasOwnProperty(e)?this.getGravityAlignmentClass(e):R.left}getGravityAlignmentClass(e){return R[e]}static \u0275fac=function(t){return new(t||r)};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const oe={};let xe=(()=>{class r{constructor(){}setValue(e,t){oe[e]=t}getValue(e){return oe[e]}static \u0275fac=function(t){return new(t||r)};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),De=(()=>{class r{actionAlertSource=new f.Subject;topicPageFilterState=new f.BehaviorSubject(!1);filterArrayObserver=new f.BehaviorSubject([]);searchResultsObserver=new f.BehaviorSubject(null);searchInputObserver=new f.BehaviorSubject(null);searchResultsTotalObserver=new f.BehaviorSubject(null);searchCurrentIndexObserver=new f.BehaviorSubject(null);isSiteSearchObserver=new f.BehaviorSubject(!1);setSearchTermObserver=new f.BehaviorSubject(null);actionAlert$=this.actionAlertSource.asObservable();topicPageFilterState$=this.topicPageFilterState.asObservable();filterArray$=this.filterArrayObserver.asObservable();searchResults$=this.searchResultsObserver.asObservable();searchInput$=this.searchInputObserver.asObservable();searchResultsTotal$=this.searchResultsTotalObserver.asObservable();searchCurrentIndex$=this.searchCurrentIndexObserver.asObservable();isSiteSearch$=this.isSiteSearchObserver.asObservable();setSearchTerm$=this.setSearchTermObserver.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)}sendSearchResults(e){this.searchResultsObserver.next(e)}sendSearchInput(e){this.searchInputObserver.next(e)}setSearchTerm(e){this.setSearchTermObserver.next(e)}sendSearchResultsTotal(e){this.searchResultsTotalObserver.next(e)}sendSearchResultsCurrentIndex(e){this.searchCurrentIndexObserver.next(e)}sendIsSiteSearch(e){this.isSiteSearchObserver.next(e)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const ae=new s.InjectionToken("queryParams"),ce=new s.InjectionToken("oneTagAppId"),Oe=new s.InjectionToken("IsProductionDomain");let Ae=(()=>{class r{platformId;videoComponentRefs=[];_isScriptInjected=!1;isServer;constructor(e){this.platformId=e,this.isServer=(0,l.isPlatformServer)(this.platformId)}addComponentRef(e){this.videoComponentRefs.push(e)}get isScriptInjected(){return this._isScriptInjected}set isScriptInjected(e){this._isScriptInjected=e}insertIframes(){if(!this.isServer){if(window.yt)return void this.createYouTubePlayer();window.onYouTubeIframeAPIReady=()=>{this.createYouTubePlayer()}}}createYouTubePlayer(){this.isServer||this.videoComponentRefs.forEach(e=>{const t=e.getPlayerConfig();t&&(window[`player-${t.videoId}`]=new window.YT.Player(t.videoId,t))})}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(s.PLATFORM_ID))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Me=(()=>{class r extends s.ErrorHandler{newRelic;constructor(e){super(),this.newRelic=e}handleError(e){this.newRelic.noticeError(this.getErrorMessage(e),{...e}),console.warn(e)}getErrorMessage(e){if("object"==typeof e&&null!==e){const t=["rejection","message"],i=Object.keys(e).find(n=>t.includes(n));return i?e[i]:e}return e}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(m))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),le=(()=>{class r{platformId;newRelic;cacheDuration=864e5;storage;storagePrefix="enterprise";constructor(e,t){if(this.platformId=e,this.newRelic=t,(0,l.isPlatformBrowser)(this.platformId))try{this.storage=window.localStorage}catch{}}createCache(e,t){if(!this.storage)return;const i=Date.now(),o=`${this.storagePrefix}.${e}`,a=this.generateCacheObj(t,i,i,i+this.cacheDuration);this.storage.setItem(o,JSON.stringify(a))}cacheExists(e){const t=`${this.storagePrefix}.${e}`;return!!this.storage?.getItem(t)}getExistingCache(e){const t=`${this.storagePrefix}.${e}`,i=this.storage?.getItem(t);try{return i?JSON.parse(i):null}catch(n){return this.newRelic.noticeError(`Unable to parse JSON string: ${i}`),console.warn(n),null}}updateCache(e,t,i){if(!this.storage)return;const n=Date.now(),o=n+this.cacheDuration;if(this.cacheExists(e)){const a=this.getExistingCache(e),c=`${this.storagePrefix}.${e}`,u=this.generateCacheObj(t,i?n:a.created,n,i?o:a.expires);this.storage.setItem(c,JSON.stringify(u))}else this.createCache(e,t)}deleteExpired(e){if(!this.storage)return;const t=Date.now(),i=`${this.storagePrefix}.${e}`,n=this.getExistingCache(e);n&&n.expires<=t&&this.storage.removeItem(i)}generateCacheObj(e,t,i,n){return{created:t,accessed:i,expires:n,value:e}}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(s.PLATFORM_ID),s.\u0275\u0275inject(m))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),je=(()=>{class r{activeRoute;cacheStorage;lobName;persistedQueryParams;parameterMapKey="parameterMap";constructor(e,t,i,n){this.activeRoute=e,this.cacheStorage=t,this.lobName=i,this.persistedQueryParams=n,t.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,t=""){return this.getQueryParams()[e]||t}
1removeKeysFromCache(e){if(this.cacheStorage.cacheExists(this.parameterMapKey)){const t=this.getCachedParams(),i=Object.entries(t).reduce((n,[o,a])=>(e.includes(o)||(n[o]=a),n),{});this.cacheStorage.createCache(this.parameterMapKey,i)}}getCachedParams(){const e=this.cacheStorage.getExistingCache(this.parameterMapKey)?.value;return e?this.getPersistedQueryParams(e):{}}storeQueryParams(){const e=this.getPersistedQueryParams(this.activeRoute.snapshot.queryParams);if(this.shouldPersistQueryParams(e)){const i={...this.getCachedParams(),...e};this.cacheStorage.updateCache(this.parameterMapKey,i,!0)}}getPersistedQueryParams(e){return Object.keys(e).filter(t=>this.persistedQueryParams.includes(t)).reduce((t,i)=>(t[i]=e[i],t),{})}shouldPersistQueryParams(e){return 0!==Object.keys(e).length}generateQueryParamString(e){const t=new h.HttpParams({fromObject:e});return t.keys().length?`?${t.toString()}`:""}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(T.ActivatedRoute),s.\u0275\u0275inject(le),s.\u0275\u0275inject(L),s.\u0275\u0275inject(ae))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})();var W=function(r){return r.view="view",r.link="link",r}(W||{}),de=function(r){return r.click="click",r.linkClick="link_click",r.navigationClick="navigation_click",r.change="change",r.focus="focus",r}(de||{});let ke=(()=>{class r extends H{platformId;document;geoVarsService;comTestService;gaService;appOwner;appId;lobName;contentInsightsService;defaultPageLevels;constructor(e,t,i,n,o,a,c,u,S){super(e,i,n,o,a,S),this.platformId=e,this.document=t,this.geoVarsService=i,this.comTestService=n,this.gaService=o,this.appOwner=a,this.appId=c,this.lobName=u,this.contentInsightsService=S,this.updateAppId(c)}canUpdateAppId(e){return this.isBrowser&&e&&window.oneTagConfig}updateAppId(e){this.canUpdateAppId(e)&&(window.oneTagConfig.app_id=e)}getPageViewDataObj(e,t,i){return this.defaultPageLevels=this.extractLevels(t),{event_name:"page_view",page_language:t?.language||"english",site_country:this.geoVarsService.countryCode,twenty_group:super.twentyGroup,page_title:this.getPageLevelConcat(this.defaultPageLevels),...this.getPageLevels(this.defaultPageLevels),...this.getDeviceType(e),...this.aBTestData,...this.gaData,...i}}createMetadata(e,t,i){this.defaultPageLevels=this.extractLevels(t);const n={event_name:"page_view",page_language:t?.language||"english",site_country:this.geoVarsService.countryCode,twenty_group:super.twentyGroup,page_title:this.getPageLevelConcat(this.defaultPageLevels),...this.getPageLevels(this.defaultPageLevels),...this.getDeviceType(e),...this.aBTestData,...this.gaData,...i};return this.publishEvent(W.view,n)}getDeviceType(e){let t={};return e&&""!==e.deviceInfo.type&&(t={device_type:e.deviceInfo.type}),t}get gaData(){let e={};return this.isBrowser&&(e={salesforce_marketing_cloud_id:this.gaService.getSfmcId(),cms_and_site_version:this.gaService.getCommitSha(),responsive_breakpoint:this.document.documentElement.clientWidth,domain_user_device_id:this.gaService.getCookie("C1_UDID")}),e}extractLevels(e){const{level1:t,level2:i,level3:n,level4:o,level5:a}=super.getLevelFields(e);return{level1:t,level2:i,level3:n,level4:o,level5:a}}getPageLevels(e){return{page_level_1:e.level1,page_level_2:e.level2,page_level_3:e.level3,page_level_4:e.level4,page_level_5:e.level5}}get aBTestData(){const e={ab_testing:[this.siteTestData]},t=this.comTestService.getActiveTests();return t&&e.ab_testing?.push(t),e}get siteTestData(){const e=[],t=[],i=[],n=[];return this.isBrowser&&window.siteTestData&&window.siteTestData.forEach(({campaign:o,campaignId:a,experience:c,experienceId:u})=>{e.push(a),t.push(o),i.push(`${a}:${u}`),n.push(`${o}:${a}:${c}:${u}`)}),{ab_testing_id:e.join("|"),ab_testing_name:t.join("|"),ab_testing_adobe_tnt:i.join("|"),ab_testing_akamai_test:n.join("|"),ab_testing_platform:"Target"}}get getlobName(){return this.lobName||this.pageLevelFields?.level1||this.appOwner||void 0}publishEvent(e,t){try{return this.isBrowser&&(t=Object.assign({},t,{lob_identifier:this.getlobName}
1),window.oneTag.track(e,t)),{error:"metadata",detail:{name:e,eventData:t}}}catch(i){return{error:"Error publishing to OneTag ",detail:i}}}getContextData(e){return null===e?e:{page_metadata_strategy_abstracted_code:super.getMetaInfo("strategy",e.metadata),page_metadata_intent_abstracted_code:super.getMetaInfo("intent",e.metadata),page_metadata_category_abstracted_code:super.buildCompositeFields("primaryCategory","secondaryCategory",e.metadata),page_metadata_topic_abstracted_code:super.buildCompositeFields("primaryTopics","secondaryTopics",e.metadata),page_metadata_content_type_abstracted_code:super.getMetaInfo("contentType",e.metadata),page_metadata_audience_abstracted_code:super.getMetaInfo("audience",e.metadata),page_metadata_producer_abstracted_code:super.getMetaInfo("producer",e.metadata),page_metadata_product_abstracted_code:super.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"}}getPageLevelConcat(e){const{level1:t,level2:i,level3:n,level4:o,level5:a}=e||{};return Object.values({level1:t,level2:i,level3:n,level4:o,level5:a}).filter(u=>u).join(":")}publishClickTrackingData(e,t){try{if(this.isBrowser){const i=this.getPageLevelConcat(this.defaultPageLevels);i&&(t.page_title=i);const n=Object.values(this.pageLevelFields).filter(o=>""!==o).join(":");t.full_clickstream_path=`${n}:${t.full_clickstream_path}`,this.publishEvent(e,t)}}catch{}}get isProd(){return!!this.isBrowser&&/www[\w\d]*\.capitalone\.com/i.test(window.location.hostname)}static \u0275fac=function(t){return new(t||r)(s.\u0275\u0275inject(s.PLATFORM_ID),s.\u0275\u0275inject(l.DOCUMENT),s.\u0275\u0275inject($),s.\u0275\u0275inject(A),s.\u0275\u0275inject(J),s.\u0275\u0275inject(O,8),s.\u0275\u0275inject(ce,8),s.\u0275\u0275inject(L,8),s.\u0275\u0275inject(Q,8))};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})();var q=function(r){return r.product="product",r.modal="modal",r.footnote="footnote",r.form="form",r.credit="credit",r.scroll="scroll",r.autoRefi="auto_refi",r.rates="rates",r.creditOffer="credit-offer",r.modalLink="modal-link",r.creditOffersFootnote="credit-offers-footnote",r.location="location",r.date="date",r.tooltip="tooltip",r.offers="offers",r}(q||{});class he{source="";tagType;value;extras;constructor(d){const[e,t,...i]=d.split(":");this.validateTag(e,t),this.source=d,this.tagType=e,this.value=t,this.extras=i}validateTag(d,e){d&&e?Object.values(q).includes(d)||console.error(`Tag type "${d}" not recognized.  Please only use supported tag types`):console.error(`Invalid dynamic data format: tagType:${d} value:${e}.  Are you prefixing your dynamic data snippet with the correct tag type? (e.g. \${modal:/your-route/})`)}}function Le(r,d){return(r||"").replace(/[$@]{(.*?)}/g,(e,t)=>d(new he(t)))}function ue(r){return!!r&&/[$@]{(.*?)}/.test(r)}let Re=(()=>{class r{getSubstitutionResult(e,t,i){return e||`\${${t.source}}`}updateInnerHtml(e,t){e.nativeElement.innerHTML=ue(t)?"":t}static \u0275fac=function(t){return new(t||r)};static \u0275prov=s.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}return r})()},6525:(fe,x,v)=>{v.d(x,{O:()=>D});var b=v(1121),g=v(2387);let D=(()=>{class s{constructor(l,h){this.document=l,this.platformId=h,this.documentIsAccessible=(0,b.isPlatformBrowser)(this.platformId)}static getCookieRegExp(l){const h=l.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+h+"|;\\s*"+h+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(l){try{return decodeURIComponent(l)}catch{return l}}check(l){return!!this.documentIsAccessible&&(l=encodeURIComponent(l),s.getCookieRegExp(l).test(this.document.cookie))}get(l){if(this.check(l)){l=encodeURIComponent(l);const w=s.getCookieRegExp(l).exec(this.document.cookie);return w?.[1]?s.safeDecodeURIComponent(w[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const l={},h=this.document;return h.cookie&&""!==h.cookie&&h.cookie.split(";").forEach(w=>{const[y,f]=w.split("=");l[s.safeDecodeURIComponent(y.replace(/^ /,""))]=s.safeDecodeURIComponent(f)}),l}set(l,h,w,y,f,C,_,E){if(!this.documentIsAccessible)return;if("number"==typeof w||w instanceof Date||y||f||C||_)return void this.set(l,h,{expires:w,path:y,domain:f,secure:C,sameSite:_||"Lax",partitioned:E});let m=encodeURIComponent(l)+"="+encodeURIComponent(h)+";";const p=w||{};p.expires&&(m+="number"==typeof p.expires?"expires="+new Date((new Date).getTime()+1e3*p.expires*60*60*24).toUTCString()+";":"expires="+p.expires.toUTCString()+";"),p.path&&(m+="path="+p.path+";"),p.domain&&(m+="domain="+p.domain+";"),!1===p.secure&&"None"===p.sameSite&&(p.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${l} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),p.secure&&(m+="secure;"),p.sameSite||(p.sameSite="Lax"),m+="sameSite="+p.sameSite+";",p.partitioned&&(m+="Partitioned;"),this.document.cookie=m}delete(l,h,w,y,f="Lax"){this.documentIsAccessible&&this.set(l,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:h,domain:w,secure:y,sameSite:f})}deleteAll(l,h,w,y="Lax"){if(!this.documentIsAccessible)return;const f=this.getAll();for(const C in f)f.hasOwnProperty(C)&&this.delete(C,l,h,w,y)}static{this.\u0275fac=function(h){return new(h||s)(g.\u0275\u0275inject(g.DOCUMENT),g.\u0275\u0275inject(g.PLATFORM_ID))}}static{this.\u0275prov=g.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()}}]);

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.