vendor: 9,868 bytes, line 1
1var Te,v,sr,ur,F,xt,_r,fr,dr,lt,qe,Ye,hr,le={},pr=[],_n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,fe=Array.isArray;function V(e,t){for(var r in t)e[r]=t[r];return e}function at(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ae(e,t,r){var n,o,i,l={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?Te.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return $e(e,l,n,o,null)}function $e(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++sr,__i:-1,__u:0};return o==null&&v.vnode!=null&&v.vnode(i),i}function z(e){return e.children}function P(e,t){this.props=e,this.context=t}function Q(e,t){if(t==null)return e.__?Q(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Q(e):null}function vr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return vr(e)}}function Ke(e){(!e.__d&&(e.__d=!0)&&F.push(e)&&!Se.__r++||xt!=v.debounceRendering)&&((xt=v.debounceRendering)||_r)(Se)}function Se(){for(var e,t,r,n,o,i,l,a=1;F.length;)F.length>a&&F.sort(fr),e=F.shift(),a=F.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],l=[],t.__P&&((r=V({},n)).__v=n.__v+1,v.vnode&&v.vnode(r),ct(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o??Q(n),!!(32&n.__u),l),r.__v=n.__v,r.__.__k[r.__i]=r,gr(i,r,l),n.__e=n.__=null,r.__e!=o&&vr(r)));Se.__r=0}function mr(e,t,r,n,o,i,l,a,c,u,f){var s,p,h,w,C,x,b,d=n&&n.__k||pr,m=t.length;for(c=fn(r,t,d,c,m),s=0;s<m;s++)(h=r.__k[s])!=null&&(p=h.__i==-1?le:d[h.__i]||le,h.__i=s,x=ct(e,h,p,o,i,l,a,c,u,f),w=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&st(p.ref,null,h),f.push(h.ref,h.__c||w,h)),C==null&&w!=null&&(C=w),(b=!!(4&h.__u))||p.__k===h.__k?c=br(h,c,e,b):typeof h.type=="function"&&x!==void 0?c=x:w&&(c=w.nextSibling),h.__u&=-7);return r.__e=C,c}function fn(e,t,r,n,o){var i,l,a,c,u,f=r.length,s=f,p=0;for(e.__k=new Array(o),i=0;i<o;i++)(l=t[i])!=null&&typeof l!="boolean"&&typeof l!="function"?(c=i+p,(l=e.__k[i]=typeof l=="string"||typeof l=="number"||typeof l=="bigint"||l.constructor==String?$e(null,l,null,null,null):fe(l)?$e(z,{children:l},null,null,null):l.constructor==null&&l.__b>0?$e(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,a=null,(u=l.__i=dn(l,r,c,s))!=-1&&(s--,(a=r[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(o>f?p--:o<f&&p++),typeof l.type!="function"&&(l.__u|=4)):u!=c&&(u==c-1?p--:u==c+1?p++:(u>c?p--:p++,l.__u|=4))):e.__k[i]=null;if(s)for(i=0;i<f;i++)(a=r[i])!=null&&!(2&a.__u)&&(a.__e==n&&(n=Q(a)),yr(a,a));return n}function br(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=br(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=Q(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Oe(e,t){return t=t||[],e==null||typeof e=="boolean"||(fe(e)?e.some(function(r){Oe(r,t)}):t.push(e)),t}function dn(e,t,r,n){var o,i,l,a=e.key,c=e.type,u=t[r],f=u!=null&&(2&u.__u)==0;if(u===null&&e.key==null||f&&a==u.key&&c==u.type)return r;if(n>(f?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((u=t[l=o>=0?o--:i++])!=null&&!(2&u.__u)&&a==u.key&&c==u.type)return l}return-1}function $t(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||_n.test(t)?r:r+"px"}function be(e,t,r,n,o){var i,l;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||$t(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||$t(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(dr,"$1")),l=t.toLowerCase(),t=l in e||t=="onFocusOut"||t=="onFocusIn"?l.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=lt,e.addEventListener(t,i?Ye:qe,i)):e.removeEventListener(t,i?Ye:qe,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Et(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=lt++;else if(t.t<r.u)return;return r(v.event?v.event(t):t)}}}function ct(e,t,r,n,o,i,l,a,c,u){var f,s,p,h,w,C,x,b,d,m,$,O,D,te,me,re,ze,A=t.type;if(t.constructor!=null)return null;128&r.__u&&(c=!!(32&r.__u),i=[a=t.__e=r.__e]),(f=v.__b)&&f(t);e:if(typeof A=="function")try{if(b=t.props,d="prototype"in A&&A.prototype.render,m=(f=A.contextType)&&n[f.__c],$=f?m?m.props.value:f.__:n,r.__c?x=(s=t.__c=r.__c).__=s.__E:(d?t.__c=s=new A(b,$):(t.__c=s=new P(b,$),s.constructor=A,s.render=pn),m&&m.sub(s),s.props=b,s.state||(s.state={}),s.context=$,s.__n=n,p=s.__d=!0,s.__h=[],s._sb=[]),d&&s.__s==null&&(s.__s=s.state),d&&A.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=V({},s.__s)),V(s.__s,A.getDerivedStateFromProps(b,s.__s))),h=s.props,w=s.state,s.__v=t,p)d&&A.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),d&&s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(d&&A.getDerivedStateFromProps==null&&b!==h&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(b,$),!s.__e&&s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(b,s.__s,$)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(s.props=b,s.state=s.__s,s.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(q){q&&(q.__=t)}),O=0;O<s._sb.length;O++)s.__h.push(s._sb[O]);s._sb=[],s.__h.length&&l.push(s);break e}s.componentWillUpdate!=null&&s.componentWillUpdate(b,s.__s,$),d&&s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(h,w,C)})}if(s.context=$,s.props=b,s.__P=e,s.__e=!1,D=v.__r,te=0,d){for(s.state=s.__s,s.__d=!1,D&&D(t),f=s.render(s.props,s.state,s.context),me=0;me<s._sb.length;me++)s.__h.push(s._sb[me]);s._sb=[]}else do s.__d=!1,D&&D(t),f=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++te<25);s.state=s.__s,s.getChildContext!=null&&(n=V(V({},n),s.getChildContext())),d&&!p&&s.getSnapshotBeforeUpdate!=null&&(C=s.getSnapshotBeforeUpdate(h,w)),re=f,f!=null&&f.type===z&&f.key==null&&(re=wr(f.props.children)),a=mr(e,fe(re)?re:[re],t,r,n,o,i,l,a,c,u),s.base=t.__e,t.__u&=-161,s.__h.length&&l.push(s),x&&(s.__E=s.__=null)}catch(q){if(t.__v=null,c||i!=null)if(q.then){for(t.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else{for(ze=i.length;ze--;)at(i[ze]);Ze(t)}else t.__e=r.__e,t.__k=r.__k,q.then||Ze(t);v.__e(q,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=hn(r.__e,t,r,n,o,i,l,c,u);return(f=v.diffed)&&f(t),128&t.__u?void 0:a}function Ze(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Ze)}function gr(e,t,r){for(var n=0;n<r.length;n++)st(r[n],r[++n],r[++n]);v.__c&&v.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){v.__e(i,o.__v)}})}function wr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:fe(e)?e.map(wr):V({},e)}function hn(e,t,r,n,o,i,l,a,c){var u,f,s,p,h,w,C,x=r.props,b=t.props,d=t.type;if(d=="svg"?o="http://www.w3.org/2000/svg":d=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!d&&(d?h.localName==d:h.nodeType==3)){e=h,i[u]=null;break}}if(e==null){if(d==null)return document.createTextNode(b);e=document.createElementNS(o,d,b.is&&b),a&&(v.__m&&v.__m(t,i),a=!1),i=null}if(d==null)x===b||a&&e.data==b||(e.data=b);else{if(i=i&&Te.call(e.childNodes),x=r.props||le,!a&&i!=null)for(x={},u=0;u<e.attributes.length;u++)x[(h=e.attributes[u]).name]=h.value;for(u in x)if(h=x[u],u!="children"){if(u=="dangerouslySetInnerHTML")s=h;else if(!(u in b)){if(u=="value"&&"defaultValue"in b||u=="checked"&&"defaultChecked"in b)continue;be(e,u,null,h,o)}}for(u in b)h=b[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?w=h:u=="checked"?C=h:a&&typeof h!="function"||x[u]===h||be(e,u,h,x[u],o);if(f)a||s&&(f.__html==s.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(s&&(e.innerHTML=""),mr(t.type=="template"?e.content:e,fe(p)?p:[p],t,r,n,d=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:r.__k&&Q(r,0),a,c),i!=null)for(u=i.length;u--;)at(i[u]);a||(u="value",d=="progress"&&w==null?e.removeAttribute("value"):w!=null&&(w!==e[u]||d=="progress"&&!w||d=="option"&&w!=x[u])&&be(e,u,w,x[u],o),u="checked",C!=null&&C!=e[u]&&be(e,u,C,x[u],o))}return e}function st(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){v.__e(o,r)}}function yr(e,t,r){var n,o;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||st(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){v.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&yr(n[o],t,r||typeof e.type!="function");r||at(e.__e),e.__c=e.__=e.__e=void 0}function pn(e,t,r){return this.constructor(e,r)}function Qe(e,t,r){var n,o,i,l;t==document&&(t=document.documentElement),v.__&&v.__(e,t),o=(n=!1)?null:t.__k,i=[],l=[],ct(t,e=t.__k=ae(z,null,[e]),o||le,le,t.namespaceURI,o?null:t.firstChild?Te.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,l),gr(i,e,l)}function vn(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEac
1h(function(l){l.__e=!0,Ke(l)})},this.sub=function(i){n.add(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),l&&l.call(i)}}),r.children}return t.__c="__cC"+hr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}Te=pr.slice,v={__e:function(e,t,r,n){for(var o,i,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),l=o.__d),l)return o.__E=o}catch(a){e=a}throw e}},sr=0,ur=function(e){return e!=null&&e.constructor==null},P.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=V({},this.state),typeof e=="function"&&(e=e(V({},r),this.props)),e&&V(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ke(this))},P.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ke(this))},P.prototype.render=z,F=[],_r=typeof Promise=="function"?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,fr=function(e,t){return e.__v.__b-t.__v.__b},Se.__r=0,dr=/(PointerCapture)$|Capture$/i,lt=0,qe=Et(!1),Ye=Et(!0),hr=0;var mn=0;function _(e,t,r,n,o,i){t||(t={});var l,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?l=t[a]:c[a]=t[a];var u={type:e,props:c,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--mn,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(l=e.defaultProps))for(a in l)c[a]===void 0&&(c[a]=l[a]);return v.vnode&&v.vnode(u),u}var Xe="rvm__subject",ge=[],oe={},bn=e=>{let t=Object.keys(e);if(Object.keys(oe).length!==t.length)return!0;for(let r=0;r<t.length;r++){let n=t[r];if(!(n in oe)||oe[n]!==e[n])return!0}return!1},gn={emit({action:e,data:t,emitSource:r}){if(e==="raw")if(bn(t))oe=t;else return;ge.forEach(({subjectAction:n,callback:o})=>{n===e&&o({data:t,emitSource:r})})},subscribe(e,t,r){return ge.push({subjectAction:e,callback:t}),e==="raw"?t({data:oe,emitSource:r}):e==="failed_vins"&&t({data:[],emitSource:r}),{unsubscribe:()=>{ge=ge.filter(n=>n.callback!==t)}}}},Je=function(){try{return window}catch{return{}}}(),kt,ut=(kt=Je[Xe])!=null?kt:gn;(function(){Je[Xe]||(Je[Xe]=ut)})();var wn=Object.defineProperty,yn=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,Lt=(e,t,r)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t)=>{for(var r in t||(t={}))$n.call(t,r)&&Lt(e,r,t[r]);if(Ct)for(var r of Ct(t))En.call(t,r)&&Lt(e,r,t[r]);return e},Nt=(e,t)=>yn(e,xn(t)),Ve=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{a(r.next(c))}catch(u){o(u)}},l=c=>{try{a(r.throw(c))}catch(u){o(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,l);a((r=r.apply(e,t)).next())}),kn={helix:"https://helix.carfax.com"},xr={helix:"https://helix-staging.carfax.com"},Cn={helix:"https://helix-development.carfax.com"},Ln=Y({},xr),$r=e=>Object.freeze({local:Ln,development:Cn,staging:xr,production:kn}[e]),Er=()=>{let e=t=>{try{return window.location.origin.indexOf(t)>-1}catch{return!1}};switch(!0){case e("localhost"):return"local";case e("alpha"):case e("development"):case e("pop-dev"):return"development";case e("beta"):case e("staging"):case e("www-qa"):case e("www-dev"):case e("pop-qa"):case e("stencils-webserver.s3.amazonaws.com"):case e("stencils.carfax.net"):return"staging";default:return"production"}},Nn=(e,t,r)=>Ve(null,null,function*(){let n=Er(),o;try{o=yield fetch(`${$r(n).helix}/follows/consumers/${t}/vehicles/${r}/follow`,{method:"POST",headers:{Authorization:`Bearer ${e}`}})}catch(i){throw new Error(`Network error following vehicle: ${i instanceof Error?i.message:String(i)}`)}if(!o.ok)throw new Error(`Failed to follow vehicle: ${o.status} ${o.statusText}`);return o}),Sn=(e,t,r)=>Ve(null,null,function*(){let n=Er(),o;try{o=yield fetch(`${$r(n).helix}/follows/consumers/${t}/vehicles/${r}/follow`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}})}catch(i){throw new Error(`Network error unfollowing vehicle: ${i instanceof Error?i.message:String(i)}`)}if(!o.ok)throw new Error(`Failed to unfollow vehicle: ${o.status} ${o.statusText}`);return o}),On=(e,t,r,n)=>Ve(null,null,function*(){return n===kr.FOLLOW?Nn(e,t,r):Sn(e,t,r)}),In="UCG_SUBJECT",et="ucg__subject",Ie={UPDATE:"update",VEHICLE_FOLLOW_UPDATE:"vehicle_follow_update"},kr={FOLLOW:"follow",UNFOLLOW:"unfollow"},Ee=[],K={},An=(e,t,r)=>{Ee.forEach(({subjectActions:n,callback:o})=>{n.includes(t)&&o({data:e,emitSource:r})})},Rn=e=>{let{data:t,emitSource:r}=e;K=Y(Y({},K),t),An(t,Ie.UPDATE,r)},Pn=e=>Ve(null,null,function*(){let{data:t,emitSource:r}=e,{accessToken:n,consumerId:o,vehicle:i,hideSpotlightOrTooltip:l,onSuccess:a,onError:c}=t;try{yield On(n,o,i.id,t.intent);let u=Array.isArray(K.followed)?K.followed:[],f=t.intent===kr.FOLLOW?[Nt(Y({},i),{following:!0}),...u]:u.filter(s=>s.id!==i.id);Cr.emit({action:Ie.UPDATE,data:Y(Nt(Y({},K),{followed:f}),l&&{hideSpotlightOrTooltip:l}),emitSource:r}),a==null||a()}catch(u){c==null||c(u instanceof Error?u:new Error(String(u)))}}),Cr={emit(e){switch(e.action){case Ie.VEHICLE_FOLLOW_UPDATE:Pn(e);break;case Ie.UPDATE:Rn(e);break}},subscribe(e,t){return Ee.push({subjectActions:e,callback:t}),t({data:K,emitSource:In}),{unsubscribe:()=>{Ee=Ee.filter(r=>r.callback!=t)}}}},tt=function(){try{return window}
vendor: 7,912 bytes, line 1
1catch{return{}}}(),St,_t=(St=tt[et])!=null?St:Cr;(function(){tt[et]||(tt[et]=_t)})();var j,y,Be,Ot,ce=0,Lr=[],k=v,It=k.__b,At=k.__r,Rt=k.diffed,Pt=k.__c,Dt=k.unmount,Tt=k.__;function de(e,t){k.__h&&k.__h(y,e,ce||t),ce=0;var r=y.__H||(y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function H(e){return ce=1,Dn(Sr,e)}function Dn(e,t,r){var n=de(j++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Sr(void 0,t),function(a){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,a);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.__f)){var o=function(a,c,u){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,c,u);var s=n.__c.props!==a;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(s=!0)}}),i&&i.call(this,a,c,u)||s};y.__f=!0;var i=y.shouldComponentUpdate,l=y.componentWillUpdate;y.componentWillUpdate=function(a,c,u){if(this.__e){var f=i;i=void 0,o(a,c,u),i=f}l&&l.call(this,a,c,u)},y.shouldComponentUpdate=o}return n.__N||n.__}function se(e,t){var r=de(j++,3);!k.__s&&Nr(r.__H,t)&&(r.__=e,r.u=t,y.__H.__h.push(r))}function he(e){return ce=5,pe(function(){return{current:e}},[])}function pe(e,t){var r=de(j++,7);return Nr(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ae(e,t){return ce=8,pe(function(){return e},t)}function Tn(e){var t=y.context[e.__c],r=de(j++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(y)),t.props.value):e.__}function Vn(){var e=de(j++,11);if(!e.__){for(var t=y.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Un(){for(var e;e=Lr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ke),e.__H.__h.forEach(rt),e.__H.__h=[]}catch(t){e.__H.__h=[],k.__e(t,e.__v)}}k.__b=function(e){y=null,It&&It(e)},k.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Tt&&Tt(e,t)},k.__r=function(e){At&&At(e),j=0;var t=(y=e.__c).__H;t&&(Be===y?(t.__h=[],y.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ke),t.__h.forEach(rt),t.__h=[],j=0)),Be=y},k.diffed=function(e){Rt&&Rt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Lr.push(t)!==1&&Ot===k.requestAnimationFrame||((Ot=k.requestAnimationFrame)||Wn)(Un)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Be=y=null},k.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ke),r.__h=r.__h.filter(function(n){return!n.__||rt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],k.__e(n,r.__v)}}),Pt&&Pt(e,t)},k.unmount=function(e){Dt&&Dt(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ke(n)}catch(o){t=o}}),r.__H=void 0,t&&k.__e(t,r.__v))};var Vt=typeof requestAnimationFrame=="function";function Wn(e){var t,r=function(){clearTimeout(n),Vt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Vt&&(t=requestAnimationFrame(r))}function ke(e){var t=y,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),y=t}function rt(e){var t=y;e.__c=e.__(),y=t}function Nr(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Sr(e,t){return typeof t=="function"?t(e):t}function Or(e,t){for(var r in t)e[r]=t[r];return e}function Ut(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Wt(e,t){this.props=e,this.context=t}(Wt.prototype=new P).isPureReactComponent=!0,Wt.prototype.shouldComponentUpdate=function(e,t){return Ut(this.props,e)||Ut(this.state,t)};var zt=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),zt&&zt(e)};var zn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function W(e){function t(r){var n=Or({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=zn,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Bn=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Bn(e,t,r,n)};var Bt=v.unmount;function Ir(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Or({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ir(n,t,r)})),e}function Ar(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ar(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Fe(){this.__u=0,this.o=null,this.__b=null}function Rr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function we(){this.i=null,this.l=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Bt&&Bt(e)},(Fe.prototype=new P).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Rr(n.__v),i=!1,l=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=l;var a=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ar(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(l,l)},Fe.prototype.componentWillUnmount=function(){this.o=[]},Fe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ir(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&ae(z,null,e.fallback);return o&&(o.__u&=-33),[ae(z,null,t.__a?null:e.children),o]};var Ft=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Fn(e){return this.getChildContext=function(){return e.context},e.children}function Hn(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){Qe(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}Qe(ae(Fn,{context:t.context},e.__v),t.v)}function Pr(e,t){var r=ae(Hn,{__v:e,h:t});return r.containerInfo=t,r}(we.prototype=new P).__a=function(e){var t=this,r=Rr(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),Ft(t,e,n)):o()};r?r(i):i()}},we.prototype.render=function(e){this.i=null,this.l=new Map;var t=Oe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},we.prototype.componentDidUpdate=we.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Ft(e,r,t)})};var Mn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,jn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Gn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,qn=/[A-Z0-9]/g,Yn=typeof document<"u",Kn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};P.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(P.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ht=v.event;function Zn(){}function Qn(){return this.cancelBubble}function Xn(){return this.defaultPrevented}v.event=function(e){return Ht&&(e=Ht(e)),e.persist=Zn,e.isPropagationStopped=Qn,e.isDefaultPrevented=Xn,e.nativeEvent=e};
1var Jn={enumerable:!1,configurable:!0,get:function(){return this.class}},Mt=v.vnode;v.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var l in r){var a=r[l];if(!(l==="value"&&"defaultValue"in r&&a==null||Yn&&l==="children"&&n==="noscript"||l==="class"||l==="className")){var c=l.toLowerCase();l==="defaultValue"&&"value"in r&&r.value==null?l="value":l==="download"&&a===!0?a="":c==="translate"&&a==="no"?a=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?l="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Kn(r.type)?c==="onfocus"?l="onfocusin":c==="onblur"?l="onfocusout":Gn.test(l)&&(l=c):c=l="oninput":i&&jn.test(l)?l=l.replace(qn,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&o[l=c]&&(l="oninputCapture"),o[l]=a}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Oe(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Oe(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Jn)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Mn,Mt&&Mt(e)};var jt=v.__r;v.__r=function(e){jt&&jt(e),e.__c};var Gt=v.diffed;v.diffed=function(e){Gt&&Gt(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value)};const ft=({append:e=[],base:t,modifiers:r=[],omitBaseClass:n})=>e.reduce((o,i)=>(i&&(o+=" "+i),o),r.reduce((o,i)=>(i&&(o+=" "+t+"__"+i),o),n?"":t)),eo=({className:e,hasBorder:t,padding:r,...n},o)=>({...n,className:ft({base:"cfx-card",append:[e],modifiers:[t?"border":"shadow",o,o,r]})}),to=e=>_("div",{...eo(e)}),ro=({className:e,...t})=>_("strong",{...t,className:"cfx-card_header"+(e?" "+e:"")}),no=({className:e,...t})=>_("div",{...t,className:"cfx-card_body"+(e?" "+e:"")}),Dr="16px",oo=({type:e,...t},r)=>{switch(e){case"path":return io(t,r);case"rect":return lo(t,r);case"circle":return ao(t,r);case"polygon":return co(t,r)}},io=(e,t)=>_("path",{...e},t),lo=(e,t)=>_("rect",{...e},t),ao=(e,t)=>_("circle",{...e},t),co=(e,t)=>_("polygon",{...e},t),so=W(({children:e,geometries:t,height:r,role:n="img",size:o=Dr,viewBox:i="0 0 24 24",width:l,...a},c)=>{const u=t==null?void 0:t.some(f=>f.stroke||f.strokeLinecap||f.strokeLinejoin||f.strokeWidth);return _("svg",{...a,fill:u?"none":"currentColor",stroke:u?"currentColor":void 0,height:r||o,preserveAspectRatio:"xMidYMid meet",ref:c,role:n,viewBox:i,width:l||o,children:[e,t&&_("g",{children:t.map((f,s)=>oo(f,`${a.id}-geo-${s}`))})]})}),Ue=W(({className:e,name:t,size:r=Dr,title:n,viewBox:o="0 0 24 24",...i},l)=>{const a=n?Vn():"";return _(so,{...i,"aria-labelledby":a,className:`cfx-icon cfx-icon__${t}${e?" "+e:""}`,height:r,ref:l,viewBox:o,width:r,children:n&&_("title",{id:a,children:n})})}),uo=[{type:"path",d:"m14 18-6-6 6-6 1.41 1.41L10.83 12l4.58 4.59Z"}],_o=W((e,t)=>_(Ue,{...e,geometries:uo,name:"chevronLeft",ref:t,viewBox:"0 0 24 24"})),fo=[{type:"path",d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}],Tr=W((e,t)=>_(Ue,{...e,geometries:fo,name:"chevronRight",ref:t,viewBox:"0 0 24 24"})),ho=[{type:"path",d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.27 2 8.5 2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.41 22 8.5c0 3.77-3.4 6.86-8.55 11.53z"}],po=W((e,t)=>_(Ue,{...e,geometries:ho,name:"heart",ref:t,viewBox:"0 0 24 24"})),vo=[{type:"path",d:"m12.1 18.55-.1.1-.11-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04 1 3.57 2.36h1.86C13.46 6 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05M16.5 3c-1.74 0-3.41.81-4.5 2.08C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.41 2 8.5c0 3.77 3.4 6.86 8.55 11.53L12 21.35l1.45-1.32C18.6 15.36 22 12.27 22 8.5 22 5.41 19.58 3 16.5 3"}],mo=W((e,t)=>_(Ue,{...e,geometries:vo,name:"heartOutline",ref:t,viewBox:"0 0 24 24"})),bo="recently-viewed",qt="cfx__rvm__portals",Yt="recently-viewed-portal-ready",M={RECENTLY_VIEWED:"Recently Viewed",SHOP_NOW:"Shop Now",FOLLOW:"Follow",UNFOLLOW:"Unfollow",REQUEST_QUOTE:"Request Quote",CALL_FOR_PRICE:"Call for Price",DOT:"â"},go={RECENTLY_VIEWED_LISTING_IMAGE:"Recently Viewed Listing Image"},Vr={RIGHT_CHEVRON:"Right Chevron Icon",VEHICLE_DISPLAY_PAGE:"Vehicle Display Page"}
1,wo="https://static.carfax.com/uclassets/images/srp-noimage.webp?format=webp",yo=30,xo=20,$o={carfax:"https://www.carfax.com",helix:"https://helix.carfax.com"},Ur={carfax:"https://beta.carfax.com",helix:"https://helix-staging.carfax.com"},Eo={carfax:"https://alpha.carfax.com",helix:"https://helix-development.carfax.com"},ko={...Ur},We=e=>Object.freeze({local:ko,development:Eo,staging:Ur,production:$o}[e]),ue=()=>{switch(!0){case I("localhost"):return"local";case I("alpha"):case I("development"):case I("pop-dev"):return"development";case I("beta"):case I("staging"):case I("www-qa"):case I("www-dev"):case I("pop-qa"):case I("stencils-webserver.s3.amazonaws.com"):case I("stencils.carfax.net"):return"staging";default:return"production"}},I=e=>{try{return window.location.origin.indexOf(e)>-1}catch{return!1}};var Co=Symbol.for("preact-signals");function dt(){if(Z>1)Z--;else{for(var e,t=!1;ie!==void 0;){var r=ie;for(ie=void 0,nt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Br(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(nt=0,Z--,t)throw e}}var g=void 0;function Wr(e){var t=g;g=void 0;try{return e()}finally{g=t}}var ie=void 0,Z=0,nt=0,Re=0;function zr(e){if(g!==void 0){var t=e.n;if(t===void 0||t.t!==g)return t={i:0,S:e,p:g.s,n:void 0,t:g,e:void 0,x:void 0,r:t},g.s!==void 0&&(g.s.n=t),g.s=t,e.n=t,32&g.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=g.s,t.n=void 0,g.s.n=t,g.s=t),t}}function L(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}L.prototype.brand=Co;L.prototype.h=function(){return!0};L.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Wr(function(){var n;(n=t.W)==null||n.call(t)}))};L.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Wr(function(){var o;(o=t.Z)==null||o.call(t)}))}};L.prototype.subscribe=function(e){var t=this;return pt(function(){var r=t.value,n=g;g=void 0;try{e(r)}finally{g=n}},{name:"sub"})};L.prototype.valueOf=function(){return this.value};L.prototype.toString=function(){return this.value+""};L.prototype.toJSON=function(){return this.value};L.prototype.peek=function(){var e=g;g=void 0;try{return this.value}finally{g=e}};Object.defineProperty(L.prototype,"value",{get:function(){var e=zr(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(nt>100)throw new Error("Cycle detected");this.v=e,this.i++,Re++,Z++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{dt()}}}});function ve(e,t){return new L(e,t)}function Br(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Fr(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Hr(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function G(e,t){L.call(this,void 0),this.x=e,this.s=void 0,this.g=Re-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}G.prototype=new L;G.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Re))return!0;if(this.g=Re,this.f|=1,this.i>0&&!Br(this))return this.f&=-2,!0;var e=g;try{Fr(this),g=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return g=e,Hr(this),this.f&=-2,!0};G.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}L.prototype.S.call(this,e)};G.prototype.U=function(e){if(this.t!==void 0&&(L.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};G.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(G.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=zr(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Lo(e,t){return new G(e,t)}function Mr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Z++;var r=g;g=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,ht(e),n}finally{g=r,dt()}}}function ht(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Mr(e)}function No(e){if(g!==this)throw new Error("Out-of-order effect");Hr(this),g=e,this.f&=-2,8&this.f&&ht(this),dt()}function J(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}J.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};J.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Mr(this),Fr(this),Z++;var e=g;return g=this,No.bind(this,e)};J.prototype.N=function(){2&this.f||(this.f|=2,this.o=ie,ie=this)};J.prototype.d=function(){this.f|=8,1&this.f||ht(this)};J.prototype.dispose=function(){this.d()};function pt(e,t){var r=new J(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var He;function ee(e,t){v[e]=t.bind(null,v[e]||function(){})}function Pe(e){He&&He(),He=e&&e.S()}function jr(e){var t=this,r=e.data,n=Oo(r);n.value=r;var o=pe(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var l,a=t.__$u.S(),c=o.value;a(),ur(c)||((l=t.base)==null?void 0:l.nodeType)!==3?(t.__$f|=1,t.setState({})):t.base.data=c},Lo(function(){var l=n.value.value;return l===0?0:l===!0?"":l||""})},[]);return o.value}jr.displayName="_st";Object.defineProperties(L.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:jr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ee("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof L&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});ee("__r",function(e,t){Pe();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return pt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),Pe(r),e(t)});ee("__e",function(e,t,r,n){Pe(),e(t,r,n)});ee("diffed",function(e,t){Pe();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var l in i){var a=i[l];a!==void 0&&!(l in n)&&(a.d(),i[l]=void 0)}else r.U=i={};for(var c in n){var u=i[c],f=n[c];u===void 0?(u=So(r,c,f,o),i[c]=u):u.o(f,o)}}}e(t)});function So(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=ve(r);return{o:function(l,a){i.value=l,n=a},d:pt(function(){var l=i.value.value;n[t]!==l&&(n[t]=l,o?e[t]=l:l?e.setAttribute(t,l):e.removeAttribute(t))})}}ee("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var l=t.__c;if(l){var a=l.__$u;a&&(l.__$u=void 0,a.d())}}e(t)});ee("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});P.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;
1if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(n||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var l in this.props)if(!(l in e))return!0;return!1};function Oo(e){return pe(function(){return ve(e)},[])}const X={UNINITIALIZED:"Uninitialized",INITIAL_LOADING_ERROR:"Initial Loading Error"},N=ve(X.UNINITIALIZED),Io=e=>e.value!==X.UNINITIALIZED&&e.value!==X.INITIAL_LOADING_ERROR,_e=ve([]),ot=ve([]),Ao=(e,t)=>{const r=Tn(e);if(r===void 0)throw Error(`use${t} must be used in a ${t} provider`);return r},vt=(e=[])=>{let t=he();const[r,n]=H(!1),o=()=>{clearTimeout(t.current),n(!1)};return se(()=>{r&&o()},e),{start:(i,l)=>{o(),t.current=setTimeout(()=>{i(),n(!1)},l),n(!0)},isActive:r,cancel:o}},Gr=vn({}),mt=()=>Ao(Gr,"HorizontalScrollContext"),Ro=({className:e,scrollableInnerRef:t,...r})=>{const{elementRef:n,controls:o,setScrollableInnerRef:i}=mt(),l=Ae(a=>{n.current=a,t!=null&&t.current&&i(t)},[]);return _("div",{...r,className:`horizontal-scroll_content horizontal-scroll_content__${o}${e?` ${e}`:""}`,ref:l})},Po=({theme:e})=>{const t=he(!0),[{left:r,top:n},o]=H({left:0,top:0}),i=vt();return{Ripple:_("div",{"aria-hidden":!0,className:`ripple ripple__${e}${r!==0&&n!==0?" ripple__active":""}`,style:{top:n,left:r}}),rippleContainerClass:"ripple-container",setRippleCoordinatesMouseDown:function(l){if(!i.isActive){const a=l.target.getBoundingClientRect(),c=a.width/2,u=a.height/2;o({left:l.clientX-a.left-c,top:l.clientY-a.top-u}),i.start(()=>{t.current&&o({left:0,top:0})},500)}}}},Kt=({children:e})=>e&&_("span",{className:"button_icon",children:e}),Do=(e,t,r)=>_(z,{children:[_(Kt,{children:t}),e,_(Kt,{children:r})]}),To={Ripple:void 0,rippleContainerClass:"",setRippleCoordinatesMouseDown:void 0},qr=e=>["blue-outline","pink-outline","green-outline","red-outline","white","black-flat","blue-flat","green-flat","red-flat"].indexOf(e)>-1?"dark":"light",Vo=({append:e,disabled:t,omitBaseClass:r,size:n,theme:o})=>{let i="standard";return o!=null&&o.includes("outline")?i="outline":o!=null&&o.includes("flat")&&(i="flat"),ft({base:"button",append:e,modifiers:[n,o,i,t&&"disabled"],omitBaseClass:r})},Yr=W(({children:e,className:t,iconLeft:r,iconRight:n,isDefaultClassOmitted:o,onClick:i,rippleTheme:l,size:a,tabIndex:c=0,theme:u,type:f="button",waitTimeout:s=625,...p},h)=>{const w=p.disabled||p["aria-disabled"],{Ripple:C,setRippleCoordinatesMouseDown:x,rippleContainerClass:b}=l?Po({theme:l}):To,d=vt();return _("button",{...p,className:Vo({append:[t,b],disabled:w,omitBaseClass:o,size:a,theme:u}),onClick:function(m){d.isActive?m.preventDefault():w?m.stopPropagation():i&&(i(m),d.start(()=>{},s))},onMouseDown:x,ref:h,tabIndex:c,type:f,children:[!w&&C,Do(e,r,n)]})}),Kr=W(({size:e="large",...t},r)=>_(Yr,{...t,ref:r,rippleTheme:qr(t.theme),size:e})),Zt="white",Zr=W(({children:e,className:t,size:r="large",positioning:n,...o},i)=>{const l=a=>_(Yr,{...o,className:"button-floating"+(a||"")+(t?" "+t:""),ref:i,rippleTheme:qr(Zt),size:r,theme:Zt,children:o.iconLeft?_("span",{className:"button-floating_text",children:e}):e});return n?Pr(l(" button-floating__fab button-floating__"+n),document.body):l()}),Uo=1,Wo=15,De="compact",Qr={"aria-hidden":!0,size:24},Qt={left:-1,right:1},Xr=(e,t,r)=>({className:ft({base:"horizontal-scroll_button",modifiers:[e,t&&"show",r,r!=="compact"?"floating":""]}),size:"small",waitTimeout:15}),Xt=e=>{const{borderLeftWidth:t,borderRightWidth:r,marginLeft:n,marginRight:o}=e;return ye(t)+ye(r)+ye(n)+ye(o)},ye=e=>e.includes("px")?Number(e.replace("px","")):e.includes("rem")?16*Number(e.replace("rem","")):0,Jr={nextButton:{en:"Scroll content right",fr:"Faire défiler le contenu vers la droite"},prevButton:{en:"Scroll content left",fr:"Faire défiler le contenu vers la gauche"}},zo=({"aria-label":e,onClick:t,theme:r="blue-flat",tabIndex:n=0,...o})=>{const{i18n:i,controls:l,scrollElementRight:a,showControlRight:c}=mt();return _(l===De?Kr:Zr,{...o,"aria-label":Jr.nextButton[i],onClick:()=>{t==null||t(),a()},tabIndex:c?n:-1,theme:r,title:e,...Xr("right",c,l),children:_(Tr,{...Qr})})},Bo=({"aria-label":e,onClick:t,theme:r="blue-flat",tabIndex:n=0,...o})=>{const{i18n:i,controls:l,scrollElementLeft:a,showControlLeft:c}=mt();return _(l===De?Kr:Zr,{...o,"aria-label":Jr.prevButton[i],"data-show":c||void 0,onClick:()=>{t==null||t(),a()},tabIndex:c?n:-1,theme:r,title:e,...Xr("left",c,l),children:_(_o,{...Qr})})},Fo=(e,t)=>{const[r,n]=H(),[o,i]=H(!1),[l,a]=H(!1),c=he(0),u=vt(),f=Ae(()=>u.start(()=>{if(e.current){const d=e.current,m=Math.ceil(d.scrollWidth-d.clientWidth);b()&&(c.current=Math.round(d.scrollLeft/d.clientWidth)),i(d.scrollLeft>0),a(d.scrollLeft<m-2)}}
1,Wo),[]),s=Ae(()=>{const d=e.current;if(d){let m=d.scrollLeft;const $=()=>{d.scrollLeft!==m?(m=d.scrollLeft,window.requestAnimationFrame($)):f()};window.requestAnimationFrame($)}},[]),p=d=>{d.key==="ArrowLeft"?(d.preventDefault(),h()):d.key==="ArrowRight"&&(d.preventDefault(),w())};se(()=>{var d,m;return f(),window==null||window.addEventListener("resize",f),(d=e==null?void 0:e.current)==null||d.addEventListener("keydown",p),(m=e==null?void 0:e.current)==null||m.addEventListener("scroll",s,{passive:!0}),()=>{var $,O;window==null||window.removeEventListener("resize",f),($=e==null?void 0:e.current)==null||$.removeEventListener("scroll",s),(O=e==null?void 0:e.current)==null||O.removeEventListener("keydown",p),u.cancel()}},[]);const h=()=>{const d=e.current.getBoundingClientRect().left;C({scrollDirection:Qt.left,initialValue:-e.current.clientWidth+t,scrollCondition:m=>m.left<=d+t})},w=()=>{const d=e.current.getBoundingClientRect().right;C({scrollDirection:Qt.right,initialValue:0-t,scrollCondition:m=>m.right<=d-t})},C=d=>{if(e.current){const m=(r==null?void 0:r.current)||e.current;let $=d.initialValue;if(b())$=x(d.scrollDirection,m.children[0]);else{for(let O=0;O<m.children.length;O++){const D=m.children[O],te=D.getBoundingClientRect();d.scrollCondition(te)&&($+=(D.clientWidth||te.width)+Xt(window.getComputedStyle(D)))}$-=Uo}e.current.scrollLeft=$}},x=(d,m)=>(c.current=c.current+d,(Xt(window.getComputedStyle(m))+m.clientWidth)*c.current-t),b=()=>{var m,$;const d=(r==null?void 0:r.current)||e.current;return((m=e.current)==null?void 0:m.offsetWidth)===(($=d==null?void 0:d.children[0])==null?void 0:$.offsetWidth)};return{scrollElementLeft:h,scrollElementRight:w,setScrollableInnerRef:n,showControlLeft:o,showControlRight:l}},Ho=({children:e,className:t,i18n:r="en",controls:n=De,...o})=>{const i=he(null),l=n===De?24:0,{scrollElementLeft:a,scrollElementRight:c,setScrollableInnerRef:u,showControlLeft:f,showControlRight:s}=Fo(i,l);return _("div",{...o,className:"horizontal-scroll"+(t?` ${t}`:""),children:_(Gr.Provider,{value:{controls:n,elementRef:i,i18n:r,scrollElementLeft:a,scrollElementRight:c,setScrollableInnerRef:u,showControlLeft:f,showControlRight:s},children:e})})},Mo=()=>_("div",{className:"afterWrap",children:_("div",{className:"errorContainer",children:[_("h4",{children:"Sorry, Something Went Wrong"}),_("p",{children:"Please try again later."})]})}),jo=({animated:e,className:t,height:r,style:n,variant:o,width:i,...l})=>_("div",{...l,className:"skeleton"+(t?` ${t}`:""),"data-animated":e||void 0,"data-variant":o,style:{height:r,width:i,...n}}),Go=({maxRows:e})=>{const t=Math.max(1,Math.floor(e));return _("div",{className:"recentlyViewedListSkeletonContainer","aria-label":"Loading recently viewed vehicles",children:_("ul",{className:"noDots",children:_(()=>Array.from({length:t}).map((n,o)=>_("li",{className:"loaderTile",children:_("div",{role:"presentation","aria-label":"skeleton",children:_(jo,{variant:"rounded",width:"100%",height:"50px",animated:!0})})},o)),{})})})},qo=(e,t)=>{const r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r},Yo={UCG:"universal_car_garage"},bt=(e,t)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`${Yo[t]}_link_clicked`,carfax_data:{track:{data_source:"website",...e}}})},Me={UCG:"Universal Car Garage"},Ko=e=>{var r;const t=new Set;for(const n of e)(r=n.shops.favorite)!=null&&r.compCode&&t.add(n.shops.favorite.compCode);return t.size},je=e=>e!==0?e:"zero",gt=e=>({link_name:`${Me[e]} - Recently Viewed List`,link_location:`${Me[e]} Main`,page_section:Me[e],car_care_garage_vehicle_count:je(ot.peek().length),car_care_favorite_shops_count:je(Ko(ot.peek())),car_listings_saved_cars_count:je(_e.peek().length)}),en=e=>({vehicle_mileage:e.mileage,vehicle_year:e.year,vehicle_make:e.make,vehicle_model:e.model,vehicle_vin:e.vin,vehicle_price:e.currentPrice,vehicle_type:e.vehicleCondition,vehicle_badge:e.badge}),Jt={key:"ddt",value:"ucg"},Zo="intp",tn=(e,t)=>{const r=new URL(e);return r.searchParams.append(t.key,t.value),r.href},Qo=e=>tn(e,{key:Jt.key,value:Jt.value}),Xo=(e,t)=>tn(e,{key:Zo,value:t}),Jo=()=>{const e=document.getElementById("carfax-header");return e&&e.getAttribute("data-app-name")||""},ei=e=>({MYX:{shopNow:()=>`lc_${e.toLowerCase()}_cc_shop_now`,listing:()=>`lc_${e.toLowerCase()}_cc_recently_viewed`}}),rn=(e,t,r)=>{const n=Jo(),o=ei(r);if(n&&n in o){const i=o[n][t]();return Xo(e,i)}return e};var ti=Object.defineProperty,ri=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,tr=(e,t,r)=>t in e?ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,li=(e,t)=>{for(var r in t||(t={}))oi.call(t,r)&&tr(e,r,t[r]);
1if(er)for(var r of er(t))ii.call(t,r)&&tr(e,r,t[r]);return e},ai=(e,t)=>ri(e,ni(t)),R=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{a(r.next(c))}catch(u){o(u)}},l=c=>{try{a(r.throw(c))}catch(u){o(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,l);a((r=r.apply(e,t)).next())}),ci=(e=50)=>new Promise(t=>setTimeout(t,e)),Ce=e=>R(void 0,[e],function*({condition:t,interval:r=50,timeout:n=1e3}){let o=Date.now()+n;do{if(t())return;yield ci(r)}while(Date.now()<o)}),si=1e3,Le=50,Ge=15e3,it="__cfx.auth-instance",rr="__cfx.auth-version",ui=(e=>(e.SIGNUP="signup",e.LOGIN="login",e.SILENT_AUTH="silentAuth",e.LEGACY_AUTH="legacyAuth",e.CCL_PASSIVE_AUTH="cclPassiveAuth",e.CCL_PASSIVE_SIGNUP="cclPassiveSignup",e.MAGIC_LINK_LOGIN="magicLinkLogin",e.MAGIC_LINK_SILENT_AUTH="magicLinkSilentAuth",e.UNKNOWN="unknown",e))(ui||{}),_i=(e=>(e.CONSUMERS="consumers",e.GOOGLE_ONE_TAP="google-one-tap",e.GOOGLE="google-oauth2",e.APPLE="apple",e.PROGRESSIVE="progressive",e.DEALERS="dealers",e.UNKNOWN="unknown",e))(_i||{}),nn={areAccountActionsReady:!1,isAuthorized:!1,isAuthorizing:!0,isLifecycleInProgress:!0,isLifecycleFinalAccountDataUpdate:!1,isSilentAuth:!1,isCclPassiveAuth:!1,isGoogleOneTapLogin:!1,isMagicLinkAuth:!1,sourceData:{},user:{identityClaims:{},idToken:"",accessToken:"",idNormalized:"",usingSocial:!1,idProvider:"unknown",email:"",id:"",authProvider:"unknown",authType:"unknown",extCountry:"",name:"",pictureUrl:"",exp:0}},E={currentAccountData:nn,defaultLoginOptions:{},defaultSignupOptions:{},defaultLogoutOptions:{},observers:[]},T={get currentAccountData(){return E.currentAccountData},setDefaultLoginOptions(e){E.defaultLoginOptions=e},setDefaultSignupOptions(e){E.defaultSignupOptions=e},setDefaultLogoutOptions(e){E.defaultLogoutOptions=e},emit({action:e,accountData:t,authOptions:r}){switch(e){case"signup":case"logout":E.currentAccountData=ai(li({},nn),{isAuthorized:!1,isAuthorizing:!1,isLifecycleInProgress:!1});break;default:t&&(E.currentAccountData=t)}E.observers.forEach(({subjectActions:n,callback:o})=>{(n.includes(e)||n.includes("*"))&&o(E.currentAccountData,e,r)})},cancelPopup(){T.emit({action:"pop-up-login-cancel"})},login(){return R(this,arguments,function*(e=E.defaultLoginOptions,t="login"){return new Promise(r=>R(this,null,function*(){yield nr();let n=[];n.push(T.subscribe(["pop-up-login-success"],()=>R(this,null,function*(){yield T.onAuthCompleted(),r("success"),n.forEach(o=>o())})).unsubscribe),n.push(T.subscribe(["pop-up-login-failure"],()=>{r("failure"),n.forEach(o=>o())}).unsubscribe),T.emit({action:t,authOptions:e})}))})},loginPassiveUser(e){return R(this,null,function*(){T.emit({action:"login-passive-user",authOptions:e})})},logout(){return R(this,arguments,function*(e=E.defaultLogoutOptions){yield nr(),T.emit({action:"logout",authOptions:e})})},onAuthCompleted(){return R(this,arguments,function*(e=Ge){return yield Ce({condition:()=>!E.currentAccountData.isAuthorizing,interval:Le,timeout:e}),E.currentAccountData})},onFinalLifecycleAccountDataUpdate(){return R(this,arguments,function*(e=Ge){return yield Ce({condition:()=>E.currentAccountData.isLifecycleFinalAccountDataUpdate,interval:Le,timeout:e}),E.currentAccountData})},onLifecycleCompleted(){return R(this,arguments,function*(e=Ge){return yield Ce({condition:()=>!E.currentAccountData.isLifecycleInProgress,interval:Le,timeout:e}),E.currentAccountData})},signup(){return R(this,arguments,function*(e=E.defaultSignupOptions){return T.login(e,"signup")})},subscribe(e,t){return E.observers.push({subjectActions:e,callback:t}),{unsubscribe:()=>{E.observers=E.observers.filter(r=>r.callback!=t)}}}},nr=()=>Ce({condition:()=>E.currentAccountData.areAccountActionsReady,interval:Le,timeout:si}),ne=function(){try{return window}catch{return{}}}(),or,Ne=(or=ne[it])!=null?or:T;(function(){var e,t,r;let n="@carfax-frontend/auth-subject",o=(e="3.0.0".split("."))==null?void 0:e[0],i=(r=(t=ne[rr])==null?void 0:t.split("."))==null?void 0:r[0];ne[it]?i!==o&&console.error(`${n} version ${o} does not agree with ${i}, please correct so that the same versions are being used`):(ne[it]=Ne,ne[rr]=o)})();const on=e=>{if(e.status>=400)throw new Error(`status ${e.status}`)},xe=()=>ue()!=="production",fi={info:e=>{xe()&&console.info("[INFO]",e)},warn:e=>{xe()&&console.warn("[WARN]",e)},error:e=>{xe()&&console.error("[ERROR]",e)},debug:e=>{xe()&&console.debug("[DEBUG]",e)}};var di=Object.defineProperty,hi=Object.defineProperties,pi=Object.getOwnPropertyDescriptors,ir=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,lr=(e,t,r)=>t in e?di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wt=(e,t)=>
1{for(var r in t||(t={}))vi.call(t,r)&&lr(e,r,t[r]);if(ir)for(var r of ir(t))mi.call(t,r)&&lr(e,r,t[r]);return e},bi=(e,t)=>hi(e,pi(t)),gi=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{a(r.next(c))}catch(u){o(u)}},l=c=>{try{a(r.throw(c))}catch(u){o(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,l);a((r=r.apply(e,t)).next())}),ln="cfx__nnr__parent",wi="cfx__nnr",an="cfx__nnr__iframe",ar="CONSUMING_APP_NAME_UNAVAILABLE",yi=()=>{let e=document.getElementById("carfax-header");return e&&e.getAttribute("data-app-name")||ar},cn={version:"1.0.3"},sn={newrelic:{licenseKey:"NRBR-591a1bd6fa3dcdd0f4f",applicationID:"1134543327",accountID:"761258",trustKey:"761258",agentID:"1134543327"},iframeSrc:`https://static.carfax.com/nnr/${cn.version}/nnrIframe.html`},yt={newrelic:{licenseKey:"NRBR-f972e6397d409bb438c",applicationID:"1134543326",accountID:"1609425",trustKey:sn.newrelic.trustKey,agentID:"1134543326"},iframeSrc:`https://staging-static.carfax.com/nnr/${cn.version}/nnrIframe.html`},xi=wt({},yt),$i=wt({},yt),Ei=e=>{let t={local:xi,dev:$i,staging:yt,production:sn}[e];if(!t)throw new Error(`Invalid environment level: ${e}`);return Object.freeze(t)},S=e=>{try{return document.location.ancestorOrigins[0]?document.location.ancestorOrigins[0].indexOf(e)>-1:window.location.origin.indexOf(e)>-1}catch(t){return console.log("Error from Newrelic originContainsString:",t),0}},ki=()=>{switch(!0){case S("localhost"):return"local";case S("alpha"):case S("development"):case S("pop-dev"):return"dev";case S("beta"):case S("staging"):case S("www-qa"):case S("www-dev"):case S("pop-qa"):case S("stencils-webserver.s3.amazonaws.com"):case S("stencils.carfax.net"):case S("staging.aws.carfax.io"):return"staging";default:return"production"}},Ci=()=>new Promise((e,t)=>{try{let r={width:"0",height:"0",display:"none",position:"absolute",bottom:"0",left:0},n=Ei(ki()).iframeSrc,o=document.createElement("iframe");o.src=n,Object.assign(o.style,r),o.id=an,o.setAttribute("aria-hidden","true"),o.setAttribute("title","NNR monitoring iframe"),document.body.appendChild(o),o.onload=()=>{window[ln]={isReady:!0,iframe:o},e()},o.onerror=()=>{t(new Error("Failed to load iframe"))}}catch(r){console.error("Error initializeNewRelicIframe:",r),t(new Error("Failed to initialize NNR iframe"))}}),Li=()=>document.querySelector(`#${an}`)?Promise.resolve():Ci(),Ni=e=>gi(null,null,function*(){var t;try{Li();let r=bi(wt({type:wi},e),{consumingApp:e.consumingApp||yi()}),n=window[ln];n&&(n.sentActions||(n.sentActions=[]),n.sentActions.push(r),(t=n.iframe)!=null&&t.contentWindow&&n.iframe.contentWindow.postMessage(r,"*"))}catch(r){console.warn("NNR iframe failed:",r)}}),U=(e=>(e.ENRICHED_VINS="Enriched recently viewed VINs",e.VEHICLE_FOLLOWED="Vehicle followed",e.VEHICLE_UNFOLLOWED="Vehicle unfollowed",e.ERROR_FETCHING_VEHICLE_DETAILS="Error fetching vehicle details",e.ERROR_FOLLOWING_VEHICLE="Error following vehicle",e.ERROR_UNFOLLOWING_VEHICLE="Error unfollowing vehicle",e.ERROR_EMITTING_FAILED_VINS="Error emitting VINs with status 404",e.RVM_VIEWED="Viewed",e))(U||{});const B=async({message:e,...t})=>{try{await Ni({message:`RVM - ${e}`,parentApp:"recently-viewed",...t})}catch(r){fi.error({message:"New Relic tracking failed",error:r})}},Si=async({accessToken:e,id:t},r,n)=>{let o;try{o=await fetch(`${We(r).helix}/follows/consumers/${t}/vehicles/${n}/follow`,{method:"POST",headers:{Authorization:`Bearer ${e}`}})}catch(i){const l=`Error following vehicle: ${n}`;throw B({message:U.ERROR_FOLLOWING_VEHICLE,vehicleId:n,error:i instanceof Error?i.message:String(i)}),new Error(l)}on(o),B({message:U.VEHICLE_FOLLOWED,vehicleId:n})},Oi=async({accessToken:e,id:t},r,n)=>{let o;try{o=await fetch(`${We(r).helix}/follows/consumers/${t}/vehicles/${n}/follow`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}})}catch(i){const l=`Error unfollowing vehicle: ${n}`;throw B({message:U.ERROR_UNFOLLOWING_VEHICLE,vehicleId:n,error:i instanceof Error?i.message:String(i)}),new Error(l)}on(o),B({message:U.VEHICLE_UNFOLLOWED,vehicleId:n})},Ii=({listing:e,isLoggedOut:t=!1,onLoggedOutFollowClick:r,consumingApp:n})=>{const[o,i]=H(!1),l=(s,p=!1)=>{_t.emit({action:"update",data:{followed:s,...p?{hideSpotlightOrTooltip:!0}:{}},emitSource:"recently-viewed"})},a=s=>{bt({...gt(n),link_name:s,...en(e)},n)},c=async()=>{try{a(`${n} - Recently Viewed Follow`),await Si(Ne.currentAccountData.user,ue(),e.id);const s=[e,..._e.value];l(s,!0)}catch(s){throw console.error("Error following listing:",s),s}},u=async()=>{try{a(`${n} - Unfollow Recently Viewed`),await Oi(Ne.currentAccountData.user,ue(),e.id);const s=_e.value.filter(p=>p.id!==e.id);l(s)}catch(s){throw console.error("Error unfollowing listing:",s),s}},f=async()=>
1{if(!o){if(t){r?r():Ne.login();return}i(!0);try{e.isFollowed?await u():await c()}catch(s){console.debug("Error updating follow: ",s)}finally{i(!1)}}};return _("div",{className:"favoriteButtonContainer",children:_("button",{"aria-label":`${e.isFollowed?M.UNFOLLOW:M.FOLLOW} ${e.year} ${e.make} ${e.model}`,className:"unfollowButton",onClick:f,disabled:o,"aria-disabled":o,children:e.isFollowed?_(po,{"aria-hidden":!0,className:"iconHeartFollowed",size:"22"}):_(mo,{"aria-hidden":!0,className:"iconHeartUnfollowed",size:"22"})})})};function cr(...e){return e.filter(Boolean).join(" ")}const Ai=({listing:e})=>{const t=Ae(()=>!e.currentPrice||e.currentPrice>99999,[e.currentPrice]);return _("div",{className:"info",children:[_("h5",{children:[e.year," ",e.make," ",e.model]}),_("div",{className:"infoWrap",children:[_("p",{className:"priceWrap",children:e.currentPrice?_("span",{className:cr("price",t()&&"isSmall"),children:["$",e.currentPrice.toLocaleString()]}):_("span",{className:cr("price","isSmall"),children:e.backfill?M.REQUEST_QUOTE:M.CALL_FOR_PRICE})}),_("span",{className:"dot",children:M.DOT}),_("p",{className:"milesWrap",children:[e.mileage?e.mileage.toLocaleString():"0"," mi"]})]})]})},Ri=({listing:e,totalCount:t,maxRows:r,isLoggedOut:n=!1,onLoggedOutFollowClick:o,consumingApp:i})=>{var l,a;return _("div",{className:"followsItem",children:_("div",{className:`cfxCard ${t<=r?"cfxCardFullWidth":""}`,"aria-hidden":"false",children:_("div",{className:"cfxCardBody",children:[_("a",{className:"clickableOverlay",onClick:()=>bt({...gt(i),link_name:`${i} - Recently Viewed List`,...en(e)},i),href:rn(e.vdpUrl,"listing",i),"aria-label":Vr.VEHICLE_DISPLAY_PAGE,target:"_blank"}),_("div",{className:"imageContainer",children:_("img",{src:((a=(l=e.images)==null?void 0:l.small)==null?void 0:a[0])||wo,alt:go.RECENTLY_VIEWED_LISTING_IMAGE,loading:"lazy"})}),_(Ai,{listing:e}),_(Ii,{listing:e,isLoggedOut:n,onLoggedOutFollowClick:o,consumingApp:i})]})})})},Pi=({listings:e,totalCount:t,maxRows:r,isLoggedOut:n,onLoggedOutFollowClick:o,consumingApp:i})=>_("div",{className:"recentlyViewedItemGroupWrapper"+(t<=r?" smallCount":""),children:e.map(l=>_(Ri,{listing:l,totalCount:t,maxRows:r,isLoggedOut:n,onLoggedOutFollowClick:o,consumingApp:i},l.id))}),Di=({maxRows:e,isLoggedOut:t=!1,onLoggedOutFollowClick:r,consumingApp:n})=>{if(N.value===X.INITIAL_LOADING_ERROR)return _(Mo,{});if(N.value===X.UNINITIALIZED){const l=pe(()=>Math.max(1,Math.min(12,Math.floor(e))),[e]);return _(Go,{maxRows:l})}const o=Array.isArray(N.value)?qo(N.value,e):[],i=Array.isArray(N.value)?N.value.length:0;return _("div",{className:"recentlyViewedListContainer",children:_("div",{className:"recentlyViewedList",children:_(Ho,{controls:"floating-inset",children:[_(Bo,{}),_(Ro,{children:o.map((l,a)=>_(Pi,{listings:l,totalCount:i,maxRows:e,isLoggedOut:t,onLoggedOutFollowClick:r,consumingApp:n},a))}),_(zo,{})]},N.value.length)})})},un=()=>{const e=_e.value.map(r=>r.vin).filter(r=>!!r);if(!Array.isArray(N.value))return;const t=new Set(e);N.value=N.value.map(r=>r!=null&&r.vin?{...r,isFollowed:t.has(r.vin)}:r)},Ti=({maxRows:e,isLoggedOut:t=!1,consumingApp:r,onLoggedOutFollowClick:n,id:o})=>{const i=N.value.length,l=Io(N)&&i>0,a=rn(`${We(ue()).carfax}/cars-for-sale`,"shopNow",r);return se(()=>{i>0&&B({message:U.RVM_VIEWED});const c=_t.subscribe(["update"],({data:u})=>{u.followed&&(_e.value=Array.isArray(u==null?void 0:u.followed)?u.followed:[],un()),u.owned&&(ot.value=Array.isArray(u==null?void 0:u.owned)?u.owned:[])});return()=>c.unsubscribe()},[]),i>0&&_("div",{className:"recentlyViewedContainer",children:_(to,{className:"recentlyViewedCard",children:[_(ro,{className:"header",children:[_("h4",{children:[M.RECENTLY_VIEWED,l&&` (${i})`]}),_("a",{className:"headerLink",href:a,onClick:()=>bt({...gt(r),link_name:`${r} - Recently Viewed Shop Now`},r),tabIndex:0,children:[M.SHOP_NOW,"Â ",_(Tr,{role:"img","aria-label":Vr.RIGHT_CHEVRON,"aria-hidden":!0})]})]}),_(no,{children:_(Di,{maxRows:e,isLoggedOut:t,onLoggedOutFollowClick:n,consumingApp:r})})]})})},Vi=({maxRows:e=4,isLoggedOut:t=!1,consumingApp:r="UCG",onLoggedOutFollowClick:n,id:o})=>_(Ti,{maxRows:e,isLoggedOut:t,onLoggedOutFollowClick:n,consumingApp:r,id:o}),Ui=async(e,t,r={})=>{const{totalAttempts:o=3,statusesToRetry:i=[]}=r;i.push(500,503);for(let l=1;l<=o;l++){try{const c=await fetch(e,t);
1if(l===o||!i.includes(c.status))return c}catch(c){if(l===o)throw c}const a=Math.pow(2,l-1)*250;await new Promise(c=>setTimeout(c,a))}throw new Error("Unexpected state")},Wi=async e=>{try{const t=await Ui(Qo(`${We(ue()).helix}/search/v2/vehicles/${e}`),{method:"GET"});if(t.status===200)return await t.json();if(t.status===404)return{vin:e,status:404}}catch(t){B({message:U.ERROR_FETCHING_VEHICLE_DETAILS,vin:e,error:t instanceof Error?t.message:String(t)}),console.error("Error fetching vehicle details: ",t)}return null},zi=async e=>{if(e.length!==0)try{ut.emit({action:"failed_vins",data:e,emitSource:"recently-viewed"})}catch(t){console.error("Error emitting failed VINs to rvmSubject:",t),await B({message:U.ERROR_EMITTING_FAILED_VINS,parentApp:bo})}},Bi=async(e={})=>{if(Object.keys(e).length===0){N.value=[];return}const t=Fi(e),r=t.slice(0,yo).map(({vin:n})=>Wi(n));try{const n=await Promise.allSettled(r),o=[],i=[],l=[];let a=0;for(const c of n)c.status==="fulfilled"&&c.value!==null?c.value.status===404?i.push(c.value.vin):c.value.listingStatus==="SOLD"?l.push(c.value.vin):o.push(c.value):a++;B({message:U.ENRICHED_VINS,totalVins:t.length,enrichedVins:o.length,vinsWithStatus404:i.length,vinsWithListingStatusSold:l.length,failedVins:a,vinsWithStatus404List:i,vinsWithListingStatusSoldList:l}),(i.length>0||l.length>0)&&zi([...i,...l]),N.value=o.slice(0,xo),un(),o.length===0&&(N.value=X.INITIAL_LOADING_ERROR)}catch(n){console.error("Error enriching recently viewed data: ",n)}},Fi=e=>{const t=Object.entries(e).map(([r,n])=>({vin:r,timestamp:Number(n)}));return t.sort((r,n)=>n.timestamp-r.timestamp),t},Hi=".button-floating.button__small,.cfx-card__shadow{box-shadow:0 2px 2px #00000024,0 3px 1px #0000001f,0 1px 5px #0003}.button-floating.button__medium{box-shadow:0 4px 5px #00000024,0 1px 10px #0000001f,0 2px 4px #0003}.button-floating.button__large,.cfx-card__clickable.cfx-card__shadow:hover{box-shadow:0 8px 10px #00000024,0 3px 14px #0000001f,0 5px 5px #0003}.button,.cfx-card_body{font-size:16px;line-height:24px}.cfx-card_header{font-size:18px;line-height:24px}.cfx-card{background-color:#fff;border-radius:4px}.cfx-card__border{border:1px solid #e0e0e0}.cfx-card__16{padding:16px}.cfx-card__24{padding:24px}.cfx-card__32{padding:32px}.cfx-card_header{display:block;margin-bottom:8px}.cfx-card_body{display:block}.cfx-card__button{text-align:left}.cfx-card__link{display:inline-block}.cfx-card__link>.cfx-card_header{color:#005cb2}.cfx-card__link:hover{color:#212121;text-decoration:none}.cfx-card__link:hover>.cfx-card_header{color:#005cb2;text-decoration:underline}.cfx-card__link:hover>.cfx-card_header+.cfx-card_body{text-decoration:none}.cfx-card__link:hover>.cfx-card_body{text-decoration:underline}.cfx-card__clickable{color:#212121;cursor:pointer}.cfx-card__clickable.cfx-card__border:hover{border-color:#929292}.skeleton{background-color:#bdbdbd}.skeleton[data-variant=circle]{border-radius:50%}.skeleton[data-variant=rounded]{border-radius:4px}.skeleton[data-animated]{background:linear-gradient(90deg,#bdbdbd,#e0e0e0 45%,#e0e0e0 55%,#bdbdbd);background-size:300% 300%;animation:gradient 5s ease infinite}.skeleton_text{gap:8px}.skeleton_scaffold{display:flex;width:100%}.skeleton_scaffold[data-column]{flex-direction:column}@keyframes gradient{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.ripple{background-position:50%;background-repeat:no-repeat;bottom:0;display:block;height:100%;left:0;opacity:.4;pointer-events:none;position:absolute;right:0;top:0;transform:scale(0);transition:0s;width:100%}.ripple__light{background-image:radial-gradient(circle,#ffffff 15%,transparent 10.01%)}.ripple__dark{background-image:radial-gradient(circle,#212121 15%,transparent 10.01%)}.ripple__active{opacity:0;transform:scale(7);
1transition-delay:.05s;transition:transform .5s,opacity 1s}.ripple-container{-webkit-tap-highlight-color:transparent;overflow:hidden;position:relative;transition-duration:.25s;transition-property:background-color,border-color,color;transition-timing-function:ease-in}.button{align-content:center;align-items:center;border-radius:4px;border:none;cursor:pointer;display:flex;font-weight:700;gap:4px;height:48px;justify-content:center;min-width:16px;padding:12px 24px;text-align:center;width:auto}.button__large{height:48px;padding:12px 24px}.button__medium{height:40px;padding:8px 20px}.button__small{height:32px;padding:4px 16px}.button__compact{display:inline-flex;height:24px;padding:0}.button__blue{background-color:#005cb2;color:#fff}.button__blue:hover{background-color:#004789}.button__green{background-color:#005005;color:#fff}.button__green:hover{background-color:#003d04}.button.button__disabled.button__flat,.button.button__disabled.button__standard,.button.button__disabled.button__outline{border:none;color:#929292;cursor:not-allowed;text-decoration:none}.button.button__disabled.button__standard,.button.button__disabled.button__outline{background-color:#e0e0e0}.button .cfx-icon{height:24px;width:24px}.button.button-link{display:inline-flex}.button__compact .cfx-icon{height:16px;width:16px}.button__blue:hover,.button__green:hover{color:#fff}.button__white{background-color:#fff;color:#005cb2}.button__white:focus{outline-color:#fff}.button__white:hover{background-color:#e7f1fb;color:#005cb2}.button__red{background-color:#d32f2f;color:#fff}.button__red:hover{background-color:#b12525;color:#fff}.button__pink{background-color:#d81b60;color:#fff}.button__pink:hover{background-color:#b51751;color:#fff}.button__black{background-color:#212121;color:#fff}.button__black:hover{background-color:#494949;color:#fff}.button__outline{background-color:#fff;border-style:solid;border-width:2px;line-height:20px}.button__pink-outline{border-color:#d81b60;color:#d81b60}.button__pink-outline:hover{color:#d81b60}.button__green-flat,.button__green-outline{color:#005005}.button__green-flat:hover,.button__green-outline:hover{color:#003d04}.button__green-outline{border-color:#005005}.button__blue-flat,.button__blue-outline,.button__blue-flat:hover,.button__blue-outline:hover{color:#005cb2}.button__blue-outline{border-color:#005cb2}.button__black-flat,.button__black-flat:hover{color:#212121}.button__red-flat,.button__red-outline,.button__red-flat:hover,.button__red-outline:hover{color:#d32f2f}.button__red-outline{border-color:#d32f2f}.button__white-flat,.button__white-outline{color:#fff}.button__white-flat:focus,.button__white-outline:focus{outline-color:#fff}.button__white-flat:hover,.button__white-outline:hover{color:#fff}.button__white-outline{background-color:transparent;border-color:#fff}.button:hover{text-decoration:underline}.button.button__disabled.button__flat,.button.button__disabled.button__flat:hover{background-color:transparent}.button_icon{display:flex}.button-floating.button{border-radius:48px}.button-floating.button:focus{outline-color:#005cb2;outline-width:2px}.button-floating.button__small{min-width:32px;padding-left:4px;padding-right:4px}.button-floating.button__medium{min-width:40px;padding-left:8px;padding-right:8px}.button-floating.button__large{min-width:48px;padding-left:12px;padding-right:12px}.button-floating__bottom-right{bottom:40px;right:40px}.button-floating__bottom-right-mobile{bottom:16px;right:16px}.button.button-floating__fab{position:fixed;z-index:498}.button-floating_text{margin-right:8px}.horizontal-scroll{display:flex;position:relative;width:100%}.horizontal-scroll_button{opacity:0;padding:0;position:absolute;z-index:-1}.horizontal-scroll_button.button__blue-flat{background-color:#fff}.horizontal-scroll_button__right{right:0}.horizontal-scroll_button__left{left:0}.horizontal-scroll_button__floating{top:calc(50% - 16px)}.horizontal-scroll_button__floating-edge.horizontal-scroll_button__right{right:-16px}.horizontal-scroll_button__floating-edge.horizontal-scroll_button__left{left:-16px}.horizontal-scroll_button__floating-inset.horizontal-scroll_button__right{right:8px}.horizontal-scroll_button__floating-inset.horizontal-scroll_button__left{left:8px}.horizontal-scroll_button__compact{border-radius:0;flex-shrink:0;height:100%;top:0;width:24px}.horizontal-scroll_button__show{opacity:1;z-index:1}.horizontal-scroll_content{display:flex;flex-wrap:nowrap;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;width:100%}.horizontal-scroll_content__floating-edge{margin:0}.horizontal-scroll_content::-webkit-scrollbar{width:0;height:0}.horizontal-scroll_content>*{flex-shrink:0}.recentlyViewedCard{padding:1rem 0}.recentlyViewedCard .header{display:flex;margin-inline:1rem;justify-content:space-between}.recentlyViewedCard .header h4{font-size:1rem;margin:0;color:#212121}.recentlyViewedCard .header .headerLink{font-size:1rem;color:#005cb2;font-weight:700;text-decoration:none;display:flex;align-items:center;cursor:pointer}.recentlyViewedCard .header .headerLink:hover{text-decoration:underline}.followsItem{list-style-type:none;margin:0 .25rem .5rem}.followsItem button{background:none;border:none}.followsItem:last-child{margin-bottom:0}.followsItem .cfxCard{border:1px solid #e0e0e0;padding:.5rem;position:relative;background-color:#fff;border-radius:4px;display:flex;box-shadow:none;width:265px}.followsItem .cfxCard.cfxCardFullWidth{width:96.5%}.followsItem .cfxCard .cfxCardBody{display:flex;position:relative;align-items:center;width:100%}.followsItem .cfxCard .cfxCardBody .clickableOverlay{top:0;right:0;bottom:0;left:0;margin:0;position:absolute}.followsItem .cfxCard .cfxCardBody .imageContainer{position:relative}.followsItem .cfxCard .cfxCardBody .imageContainer img{border-radius:.25rem;display:block;height:45px;width:75px;object-fit:cover}.favoriteButtonContainer{width:22px;position:absolute;top:10px;right:0}
1.favoriteButtonContainer .unfollowButton{cursor:pointer;z-index:1;position:relative;padding:0}.favoriteButtonContainer .unfollowButton .iconHeartFollowed{fill:#b51751;transition:all .35s;transform:none}.favoriteButtonContainer .unfollowButton .iconHeartFollowed:hover{transform:scale(1.1)}.favoriteButtonContainer .unfollowButton .iconHeartUnfollowed{fill:#616161;transition:all .35s;transform:none}.favoriteButtonContainer .unfollowButton .iconHeartUnfollowed:hover{transform:scale(1.1)}.favoriteButtonContainer .unfollowButton:disabled .iconHeartFollowed{fill:#bdbdbd}.favoriteButtonContainer .unfollowButton:disabled .iconHeartUnfollowed{fill:#bdbdbd}.info{display:flex;flex-direction:column;line-height:1.5rem;padding-left:.5rem;font-size:14px;overflow:hidden}.info h5{color:#005cb2;margin:0;overflow:hidden;font-size:1em;text-overflow:ellipsis;white-space:nowrap;padding-right:1.5rem;line-height:1.5em}.info .infoWrap{display:flex;font-size:14px}.info .infoWrap .milesWrap{color:#616161;margin:0}.info .infoWrap .priceWrap{line-height:1rem;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.info .infoWrap .priceWrap .badgeWrap{display:inline;margin-right:.25rem}.info .infoWrap .priceWrap .price{color:#212121;font-weight:700;font-size:14px;line-height:1.5rem}.info .infoWrap .priceWrap .price.isSmall{font-size:13px}.info .infoWrap .dot{margin:0 .25rem;font-size:.375rem}.recentlyViewedListContainer{overflow-y:auto;scrollbar-width:none}.recentlyViewedListContainer:hover{scrollbar-width:auto}.recentlyViewedItemGroupWrapper.smallCount{width:90%}.recentlyViewedItemGroupWrapper:first-child{padding-left:.75rem}.recentlyViewedItemGroupWrapper:last-child{padding-right:.75rem}.afterWrap{margin:0 1rem}.errorContainer{border:solid 1px #e0e0e0;border-radius:4px;text-align:center;padding:1.5rem .5rem;width:293px}.errorContainer h4{font-weight:700;color:#212121;font-size:1rem;line-height:1.5rem;margin:0;padding-bottom:.25rem}.errorContainer p{font-size:14px;line-height:1.5rem;color:#616161;margin:0}.recentlyViewedListSkeletonContainer{max-height:500px;overflow-y:auto;margin:0px 1rem}.recentlyViewedListSkeletonContainer .noDots{list-style:none;margin:0;padding:0}.recentlyViewedListSkeletonContainer .loaderTile{margin-bottom:.5rem}.recentlyViewedListSkeletonContainer .loaderTile:last-child{margin-bottom:0}",Mi=()=>{const[e,t]=H([]),r=he(null),n=()=>window[qt]?window[qt].slice():[],o=()=>{const a=document.createElement("style");return a.textContent=Hi,a},i=()=>t(n()),l=(a,c,u=4,f=!1,s,p)=>{let h=null;if(a.shadowRoot)h=a.shadowRoot.querySelector(".cfx__rvm__root");else{const w=a.attachShadow({mode:"open"});h=document.createElement("div"),h.className="cfx__rvm__root";const C=o();w.appendChild(C),w.appendChild(h)}return h&&Pr(_(Vi,{maxRows:u,isLoggedOut:f,onLoggedOutFollowClick:p,consumingApp:s,id:c},c),h)};return se(()=>(t(n()),window.addEventListener(Yt,i),()=>{window.removeEventListener(Yt,i)}),[]),se(()=>{if(e.length===0)return;const a=ut.subscribe("raw",({data:c})=>{c&&typeof c=="object"&&!Array.isArray(c)&&r.current!==c&&(r.current=c,Bi(c))});return()=>{a.unsubscribe()}},[e.length]),_(z,{children:e.map(({node:a,maxRows:c,isLoggedOut:u,consumingApp:f,onLoggedOutFollowClick:s,id:p})=>l(a,p,c,u||!1,f,s))})},ji=()=>{const e=document.createElement("div");e.style.display="none",e.style.height="0",e.style.width="0",e.style.position="absolute",e.style.left="0px",e.style.bottom="0px",e.className="cfx__rvm__portal",document.body.appendChild(e),Qe(_(Mi,{}),e)};ji();
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.