srrc-95.html 29 KB

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html><head>
  3. <script src="srrc-95_data/jquery.min.js"></script><script src="page-script.js" id="bw-fido2-page-script"></script>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  6. <title>Impel | 360° WalkArounds®</title>
  7. <style>
  8. html,body,iframe{margin:0;border:0;padding:0;display:block;position:relative;}
  9. html,body{width:100%;height:100%;overflow:visible;}
  10. iframe{width:1px;height:1px;min-width:100%;min-height:100%;}
  11. </style>
  12. <script src="srrc-95_data/ana.min.js"></script></head>
  13. <body>
  14. <iframe frameborder="0" allowfullscreen="" allowtransparency="" scrolling="no"></iframe>
  15. <script>
  16. function parse_args(e,t){var a=decodeURIComponent(e.href),i=a.slice(a.indexOf("#"))||e.hash;return i=i.split("&")[0],t=t||{},$.each(i.split(/[#!]|%23/),function(e,a){if(a){var i,n,r;i=a.split("="),n=decodeURIComponent(i[0]).toLowerCase().replace(/[\-_]/g,""),r=i.length<2||decodeURIComponent(i[1]),t[n]=r}}),t}function run_logic(){function e(e){l.location=e,o&&(l.frameElement.style.backgroundColor="#"+o)}function t(t){function a(){return!!document.cookie.match(new RegExp("(^| )SCOptout=([^;]+)"))}function i(e){return!!e.split("&")[0].split(/[#!]|%23/).includes("impelOptout")}function r(){return!!a()||(!!i(window.location.hash)||(!!navigator.globalPrivacyControl||!(!STS.internal_tracking_optout&&!STS.settings_optout)))}e(t&&t.region?n+hash+"!region="+t.region:n+hash),STS.page_type="API";var o=function(e){return $.parseJSON(e)},c=function(e){function t(e){switch(typeof e){case"number":case"boolean":return""+e;case"undefined":return"null";case"object":if(null===e)return"null";if(e.hasOwnProperty("length")){for(var n=[],r=0;r<e.length;++r)n.push(t(e[r]));return"["+n.join(",")+"]"}var n=[];for(var o in e)e.hasOwnProperty(o)&&void 0!==e[o]&&n.push(t(o)+":"+t(e[o]));return"{"+n.join(",")+"}";case"string":return'"'+(a.test(e)?e.replace(a,function(e){var t=i[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}):e)+'"';default:return t(""+e)}}var a=/[\\\"\u0000-\u001f\u007f-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return c=t,t(e)},_=function(e){var t,a,i,n,r,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",c="",_="",l=0;do{t=e.charCodeAt(l++),a=e.charCodeAt(l++),c=e.charCodeAt(l++),i=t>>2,n=(3&t)<<4|a>>4,r=(15&a)<<2|c>>6,_=63&c,isNaN(a)?r=_=64:isNaN(c)&&(_=64),s=s+o.charAt(i)+o.charAt(n)+o.charAt(r)+o.charAt(_),t=a=c="",i=n=r=_=""}while(l<e.length);return s},l=r();STS.checkOptout=function(){return r()||l},STS.optout=function(){l=!0},function(){function e(e){"webpagedata"===e.event&&e.data&&e.data.shid&&e.data.cid?(w.shopper_id=e.data.shid,w.shopper_source=e.data.cid,q.push(e)):"vehicle"==e.event&&q.push(e),z&&v(),X()}function t(){if(h&&(w.features[h].dur+=Y.stop("wa_feature")),y&&(w.ft_features[y].dur+=Y.stop("ft_feature"),w.ft_features[y].dur_autoplay_paused+=Y.stop("ft_autoplay"),w.ft_total_duration+=Y.stop("view_ft")),g&&S&&("carousel_click"===S?w.carousel_clicks[g].dur+=Y.stop("closeup"):w.features[g].dur+=Y.stop("closeup")),"walkaround"===k&&(w.view_time_spin+=Y.stop("walkaround")),b&&(w.view_clicks_and_times[b].dur+=Y.stop("wa_view")),N){var e=Y.stop("feature_redesign");w.feature_views_and_times[N].dur+=e,w.total_feature_time+=e}if(I){var t=Y.stop("photo");w.photo_views_and_times[I].dur+=t,w.total_photo_time+=t}if(P){var a=Y.stop("video");w.video_views_and_times[P].dur+=a,w.total_video_time+=a}if(A){var i=Y.stop("carousel_category");w.category_clicks_and_times[A].dur+=i}}function a(){if(!L||J){var e=1===$("iframe").length?$("iframe"):$('iframe[name*="sts"]');e.length&&e[0].contentWindow.postMessage("ga_time_events:"+JSON.stringify(w),"*")}}function i(e){var t=STS.ga_client_id?STS.ga_client_id:null,a=STS.send_asc_formatted_events||STS.ga_asc_vinifier?window.asc_datalayer:null,i={ga_client_id:t,ga_asc_datalayer:a},n=JSON.stringify(i);e.contentWindow.postMessage("STS:GAInit:::"+n,"*")}function n(e){STS.ga_client_id?i(e):window.gtag&&STS.ga4_measurement_id?gtag("get",STS.ga4_measurement_id,"client_id",function(t){t&&(STS.ga_client_id=t,i(e))}):i(e)}function r(){var e=document.querySelectorAll("iframe"),t=1===e.length?e[0]:document.querySelector('iframe[name*="sts"]');t&&n(t)}function l(){var e=document.querySelector('iframe[name="impel-feature-highlights"]');e&&n(e)}function p(e){var t=e.data;"string"==typeof t&&("STS:GAInit:Spin"===t&&Z<2?(++Z,r()):"STS:GAInit:FH"===t&&ee<2&&(++ee,l()),2===Z&&2===ee&&window.removeEventListener("message",p))}function f(e){var t,a,i=STS.page_type?STS.page_type:STS.analytics2.page_type;s&&(t=s.id,a=s.group),ImpelAna.configure({optout:STS.checkOptout(),transmit:[{type:"aws",service:"firehose",dest:"delivery_stream_name",aws_region:"eu-west-1",data:{delivery_stream_name:"datalake-suite-ingest-prod-static-delivery-stream"},auth:{type:"cognito",key:"identity_pool_id",data:{identity_pool_id:"eu-west-1:bd26e474-2a29-4529-bbb8-6f21b9aec324"}}}],schema_version:"3",page_type:i,spin:e.spin,exp_id:t,exp_group:a}),U=!0}function v(){if(q.length)for(;q.length>0;){var e=q.shift();e.event&&e.data&&Object.keys(e.data).length&&ImpelAna.meta(e.event,e.data)}}var w,m,g,S,h,y,k,T,b,O,I,P,A,x,C,E=!1,j=!1,N=null,R=null,D=!1,M={eu:"eu-west-1",us:"us-east-1"},q=[],z=!1,U=!1,W=0,L=!0==!!STS.args.teststatic,J=STS.args.devanalytics||STS.args.testanalytics;STS.postParent=function(e){try{postMessage.call(opener||parent,e,"*")}catch(t){(window.opener||window.parent).postMessage(e,"*")}};var F=function(e){if(STS.args.postanalytics){try{new URL(STS.args.postanalytics)}catch(e){return}STS.postParent("sts-post-analytics:"+JSON.stringify({event:e}),STS.args.postanalytics)}};STS.Analytics2={},STS.Analytics2.lead=function(e){if("spincar"===e||!STS.page_type||"vdp"===STS.page_type){e=e?e+"_lead":"lead",C="lead";try{if(w[e])return;w[e]=!0,X(E)}catch(e){try{console.log("content/sales-links/sales-links.js:52\ncontent/sales-links/sales-links-logic.js:67\nanalytics/analytics2.js:83\n",function(){try{return(new Error).stack+"\n"}catch(e){}}(),"problem recording lead",e.message,e.stack)}catch(e){}}}},STS.Analytics2.srp_click=function(e,t,a){STS.analytics2.vin=e,STS.analytics2.spin=t,STS.analytics2.page_type="srp",STS.addWidgetToImpelAna(),$(window).on("message.sts_vehicle_data",sts_vehicle_data_message_handler);var i=new MutationObserver(function(){$(a).length||(i.disconnect(),B(),k=null)});i.observe($(a).parent()[0],{childList:!0})},STS.Analytics2.is_popout_only=function(){j=!0,k=null,Y.stop("walkaround"),w.num_views_spin=0},STS.Analytics2.popout_button_click=function(){Y.start("walkaround"),k="walkaround",++w.num_views_spin,F("view_360_popout")},STS.Analytics2.popout_view_closed=function(){t(),a(),Y.resetAll(),k=null};var X=STS.Analytics2.SendNow=function(e){if(!(L&&!J||STS.checkOptout()))try{if(!w.client_id||!w.prid)return;if(/\btruecar.com$/.test(window.location.hostname))return void console.log("Impel analytics suppressed for TRUECar.");if(/\b.+\.kijiji\.ca$/.test(window.location.hostname))return void console.log("Impel analytics suppressed for Kijiji.");if(/\bused-uk.kia.com$/.test(window.location.hostname))return void console.log("Impel analytics suppressed for used-uk.kia.com.");if((w.vin||"").length>100||/[^\x00-\x7F]|\n/g.test(w.vin||"")){w.vin=w.vin.replace(/[^\x00-\x7F]|\n/g,"");var t=w.vin.substring(0,100)+"...",a="Long VIN "+t+" on page "+location.href;return console.log(a),void H(a,!0,!0)}if(w.duration=x?1*new Date-x:null,STS.args.testanalytics||STS.args.devanalytics){var i=!1;try{i=window.self!==window.top}catch(e){i=!0}i&&(parent.postMessage(w,"http://sts-static-testenv.s3.amazonaws.com"),parent.postMessage(w,"http://mythicalmotors.testenv.impel.io/"))}H(w,!e,!1)}catch(e){try{console.log("content/sales-links/sales-links.js:52\ncontent/sales-links/sales-links-logic.js:67\nanalytics/analytics2.js:190\n",function(){try{return(new Error).stack+"\n"}catch(e){}}(),"problem sending analytics",e.message,e.stack)}catch(e){}}},B=STS.Analytics2.reinitialize=function(){x=x?1*new Date:STS.load_start,w&&X(),w=STS.analytics2={v:3,carousel_clicks:{},client_id:null,prid:null,lead:!1,spincar_lead:!1,num_clicks_vdp:0,num_clicks_spin:0,num_clicks_360:0,num_clicks_feature:0,duration:0,spin_latency:null,vin:null,s3_folder:null,url:null,spin:null,missing_script_integration:null,features:{},canonical_hostname:STS.canonical_hostname,device:function(){var e=navigator.userAgent.match(/Android|iPhone|iPad|iPod|Windows Phone|Mac OS X|Windows NT/);return e||(e=navigator.userAgent.match(/Linux/)),e?e[0]:"Other"}(),misc:null,page_type:null,customer_id:null,ft_back_button_features:null,ft_closed_locations:null,ft_features:{},ft_video_features:{},ft_menu_clicks:null,ft_paused_features:null,ft_preferences:null,ft_skipped_features:null,ft_total_duration:0,is_ft_autoplay_enabled:null,num_clicks_ft:0,num_views_feature_tour:0,num_views_video_tour:null,num_views_still_image:null,num_views_spin:0,view_time_video_tour:null,view_time_spin:0,carfax_link_clicked:!1,num_clicks_hotspots:0,view_clicks_and_times:{},category_clicks_and_times:{},feature_category_clicks:{},feature_views_and_times:{},total_feature_clicks:0,total_feature_time:0,fi_views_and_times:{},total_fi_clicks:0,total_fi_time:0,photo_views_and_times:{},total_photo_clicks:0,total_photo_time:0,video_category_clicks:{},video_views_and_times:{},total_video_clicks:0,total_video_time:0,num_clicks_cta:0,num_clicks_cta_interstitial:0};var e=setInterval(function(){document.body&&(clearInterval(e),m=document.createElement("iframe"),m.id=m.name="sts-analytics2-iframe",m.style.visibility="hidden",m.style.border="none",m.style.zIndex=-1e14,m.style.position="absolute",m.style.left=m.style.top="-1000px",m.style.width=m.style.height="1px",m.src="",document.body.appendChild(m),setTimeout(function(){m.src="https:"+d+"ana2/client_id.html?_=d7eaac77279bf3"},0))},50)},G=0,H=function(e,t,a){var i=M[STS.region];if(!i)return void(G<5?(setTimeout(function(){H(e,t,a)},1e3),G++):console.log("Error: Invalid region or region not ready. Analytics not sent."));e=c(e);var n="Action=SendMessage&MessageBody="+encodeURIComponent(_(e))+"&Version=2012-11-05",r="prod_analytics",o="505055843994";(STS.args.testanalytics||STS.args.devanalytics)&&(o="901863237878"),STS.args.devanalytics?r="dev_"+STS.args.devanalytics+"_analytics":STS.args.testanalytics&&(r=STS.args.testanalytics+"_analytics"),a&&(r+="_error"),r+=STS.region&&"us"!==STS.region?"_"+STS.region:"";var s="https://sqs."+i+".amazonaws.com/"+o+"/"+r;if(window.XDomainRequest){var l=new Image;l.src=s+"?"+n,l.onload=l.onerror=function(){l=void 0}}else navigator.sendBeacon&&navigator.sendBeacon(s,new Blob([n],{type:"application/x-www-form-urlencoded"}))},V=function(){STS.postParent("sts-sa-ana:"+JSON.stringify({category:"click",event:{t:"vdp",a:C,g:"vdp"}})),C&&(C=void 0)};$(function(){$("body").click(function(){D=!0,w.num_clicks_vdp++,V()})});var K=function(e,t){return w[e]||(w[e]=t),w[e]},Q=function(e,t){var a=K(e,[]);-1===a.indexOf(t)&&a.push(t)},Y=function(){function e(e){i[e]=1*new Date}function t(e){if(!i[e])return 0;var t=1*new Date-i[e];return i[e]=null,t}function a(){i={}}var i={};return{start:e,stop:t,resetAll:a}}();STS.configureImpelAna=function(e){var t=setInterval(function(){if(!z&&W<=5)return void W++;clearInterval(t),z&&(f(e||{}),v())},50*(1+W))},STS.addWidgetToImpelAna=function(){if(z&&U)ImpelAna.addWidget(STS.spin_exists||STS.analytics2.spin);else var e=0,t=setInterval(function(){if((!z||!U)&&e<=5)return void e++;clearInterval(t),z&&U&&ImpelAna.addWidget(STS.spin_exists||STS.analytics2.spin)},50*(1+e))},$(window).on("message",function(e){var t=e.originalEvent.data;if("string"==typeof t){var a,i;if(0===t.indexOf("sts_client_id_prid:")){var n=o(t.substring(19));w.client_id=n.client_id;w.prid=n.prid+":"+function(e,t){return Array(1+t).slice((""+e).length).join("0")+e}(u(STS.canonical_hostname),10),-1!==window.location.href.indexOf("spins.impel.io")&&document.referrer?w.url=document.referrer:w.url=window.location.href,X(),m.parentNode.removeChild(m)}if(0===t.indexOf("sts-gs-ana:")){D=!0;var r=o(t.substring(11));if(r.hasOwnProperty("spin_click")&&++w.num_clicks_spin,r.hasOwnProperty("action_click")&&(K("action_click",{})[r.action_click]=!0),r.hasOwnProperty("feature_tour_click")&&++w.num_clicks_ft,r.hasOwnProperty("previous_feature")&&Q("ft_back_button_features",r.previous_feature),r.hasOwnProperty("skipped_feature")&&Q("ft_skipped_features",r.skipped_feature),r.hasOwnProperty("clicked_feature_from_menu")&&Q("ft_menu_clicks",r.clicked_feature_from_menu),r.hasOwnProperty("misc")&&(w.misc||(w.misc=r.misc)),r.hasOwnProperty("close_video")&&y&&(w.ft_video_features[y].dur+=Y.stop("ft_video")),r.hasOwnProperty("is_ft_autoplay_enabled")&&(w.is_ft_autoplay_enabled=r.is_ft_autoplay_enabled),r.hasOwnProperty("autoplay_start")&&(T&&(w.ft_features[y].dur_autoplay_paused+=Y.stop("ft_autoplay")),T=!1),r.hasOwnProperty("autoplay_pause")&&(Q("ft_paused_features",r.autoplay_pause),T=!0,Y.start("ft_autoplay")),r.hasOwnProperty("preferences")&&(Array.isArray(r.preferences)?w.ft_preferences=r.preferences:Q("ft_preferences",r.preferences)),r.hasOwnProperty("opened_feature_tour")&&(k="feature-tour",Y.start("view_ft"),++w.num_views_feature_tour),r.hasOwnProperty("video_tour_click")&&("walkaround"===k?w.view_time_spin+=Y.stop("walkaround"):"photo"===k&&g&&(w.carousel_clicks[g].dur+=Y.stop("closeup")),k="video",w.num_views_video_tour?++w.num_views_video_tour:w.num_views_video_tour=1),r.hasOwnProperty("video_tour_duration")&&(k="walkaround",++w.num_views_spin,Y.start("walkaround"),w.view_time_video_tour?w.view_time_video_tour+=r.video_tour_duration:w.view_time_video_tour=r.video_tour_duration),r.hasOwnProperty("current_product")&&("walkaround"===r.current_product&&"walkaround"!==k&&(++w.num_views_spin,Y.start("walkaround")),"photo"===r.current_product&&"photo"!==k&&++w.num_views_still_image,"walkaround"!==r.current_product&&"walkaround"===k&&(w.view_time_spin+=Y.stop("walkaround")),k=r.current_product),r.hasOwnProperty("play_video_click")&&(w.ft_video_features[y]||(w.ft_video_features[y]={dur:0,views:0}),Y.start("ft_video"),++w.ft_video_features[y].views),r.hasOwnProperty("feature")){if(h&&(w.features[h].dur+=Y.stop("wa_feature")),Y.start("wa_feature"),!(h=r.feature))return;w.features[h]||(w.features[h]={dur:0,clicks:0}),++w.num_clicks_feature,++w.features[h].clicks}if(r.hasOwnProperty("tour_close_location")&&(k="walkaround",++w.num_views_spin,Q("ft_closed_locations",r.tour_close_location),w.ft_total_duration+=Y.stop("view_ft"),y&&(w.ft_video_features[y]&&(w.ft_video_features[y].dur+=Y.stop("ft_video")),w.ft_features[y]&&(w.ft_features[y].dur+=Y.stop("ft_feature")),T&&(w.ft_features[y].dur_autoplay_paused+=Y.stop("ft_autoplay")))),r.hasOwnProperty("client_id_prid")){var s=window.location.href.match(/spins.impel.io/g),c=s?document.querySelector("iframe"):document.querySelector('iframe[name*="sts"]'),_=s?"":STS.get_analytics_link();c.contentWindow.postMessage("client_id_prid:"+w.client_id+","+w.prid+","+_,"*"),c&&c.contentWindow.postMessage("client_id_prid:"+w.client_id+","+w.prid+","+_,"*")}if(r.hasOwnProperty("view_feature")){if(w.ft_features[r.view_feature]||(w.ft_features[r.view_feature]={category:null,dur:0,views:0,dur_autoplay_paused:0}),y){var l=Y.stop("ft_feature");w.ft_features[y].dur+=l,w.total_feature_time+=l,T&&(w.ft_features[y].dur_autoplay_paused+=Y.stop("ft_autoplay"))}if(Y.start("ft_feature"),T&&Y.start("ft_autoplay"),!(y=r.view_feature))return;w.ft_features[y].category=r.view_category,++w.ft_features[y].views,++w.total_feature_clicks}if(r.hasOwnProperty("ft_menu_opened")&&(y&&(w.ft_features[y].dur+=Y.stop("ft_feature"),T&&(w.ft_features[y].dur_autoplay_paused+=Y.stop("ft_autoplay"))),y=null),r.hasOwnProperty("closeup")){if(i=function(){return"hotspot_click"===S?"features":"carousel_clicks"},g&&S&&(w[i()][g].dur+=Y.stop("closeup")),Y.start("closeup"),g=r.closeup,S=r.mode,!g||!S)return;a=function(e){w[e][g]||(w[e][g]={dur:0,clicks:0}),++w[e][g].clicks},k="features"===i()?"walkaround":"photo",a(i()),++w.num_clicks_feature}if(r.hasOwnProperty("carfax_link_clicked")&&(w.carfax_link_clicked=!0),r.hasOwnProperty("hotspot_toggle_click")&&F(r.hotspot_toggle_click?"view_hotspots":"hide_hotspots"),r.hasOwnProperty("wa_view_clicked")){if(!r.wa_view_clicked||r.wa_view_clicked===b)return;"i"===r.wa_view_clicked||"pano_0"===r.wa_view_clicked?F("view_interior"):"ec"===r.wa_view_clicked&&F("view_exterior"),w.view_clicks_and_times[r.wa_view_clicked]||(w.view_clicks_and_times[r.wa_view_clicked]={dur:0,views:0}),b&&w.view_clicks_and_times.hasOwnProperty(b)&&(w.view_clicks_and_times[b].dur+=Y.stop("wa_view")),Y.start("wa_view"),b=r.wa_view_clicked,++w.view_clicks_and_times[b].views}if(r.hasOwnProperty("feature_clicked")){var d=r.feature_clicked,p=r.feature_category,f=r.feature_key,v=r.opened_from;if(d===N)return;if(null!==d&&(w.feature_views_and_times[d]||(w.feature_views_and_times[d]={category:p,key:f,drawer_views:0,dur:0,non_drawer_views:0})),N){var x=Y.stop("feature_redesign");w.feature_views_and_times[N].dur+=x,w.total_feature_time+=x}null!==d?(Y.start("feature_redesign"),N=d,++w.total_feature_clicks,"hotspot"===v&&++w.num_clicks_hotspots,"drawer"===v?++w.feature_views_and_times[d].drawer_views:++w.feature_views_and_times[d].non_drawer_views):N=null}if(r.hasOwnProperty("fi_product_clicked")){var C=r.fi_product_clicked;if(C===O)return;if(O){var E=Y.stop("financeInsurance");w.fi_views_and_times[O].dur+=E,w.total_fi_time+=E}null!==C?(w.fi_views_and_times[C]||(w.fi_views_and_times[C]={drawer_views:0,dur:0,non_drawer_views:0}),Y.start("financeInsurance"),O=C,++w.total_fi_clicks,"drawer"===r.opened_from?++w.fi_views_and_times[C].drawer_views:++w.fi_views_and_times[C].non_drawer_views):O=null}if(r.hasOwnProperty("photo_clicked")){var j=r.photo_clicked,$=r.opened_from;if(j===I)return;if(null!==j&&(w.photo_views_and_times[j]||(w.photo_views_and_times[j]={drawer_views:0,drawer_dur:0,non_drawer_dur:0,non_drawer_views:0,name:r.name})),I){var M=Y.stop("photo");"drawer"===R||"photoViewer"===R?w.photo_views_and_times[I].drawer_dur+=M:w.photo_views_and_times.hasOwnProperty(I)?w.photo_views_and_times[I].non_drawer_dur+=M:w.photo_views_and_times[I]={drawer_views:0,drawer_dur:0,non_drawer_dur:M,non_drawer_views:0,name:r.name},w.total_photo_time+=M}null!==j?(Y.start("photo"),I=j,++w.total_photo_clicks,"hotspot"===$&&++w.num_clicks_hotspots,"drawer"===$||"photoViewer"===$?(++w.photo_views_and_times[j].drawer_views,"drawer"!==R&&++w.num_views_still_image,R="drawer"):(++w.photo_views_and_times[j].non_drawer_views,R="non_drawer")):(I=null,R=null)}if(r.hasOwnProperty("video_clicked")){var q=r.video_clicked;if(q===I)return;if(null!==q&&(w.video_views_and_times[q]||(w.video_views_and_times[q]={dur:0,views:0})),P){var U=Y.stop("video");w.video_views_and_times[P].dur+=U,w.total_video_time+=U}null!==q?(Y.start("video"),P=q,++w.total_video_clicks,++w.video_views_and_times[q].views):P=null}if(r.hasOwnProperty("feature_category_card_clicked")&&(w.feature_category_clicks[r.feature_category_card_clicked]||(w.feature_category_clicks[r.feature_category_card_clicked]=0),++w.feature_category_clicks[r.feature_category_card_clicked]),r.hasOwnProperty("video_category_card_clicked")&&(w.video_category_clicks[r.video_category_card_clicked]||(w.video_category_clicks[r.video_category_card_clicked]=0),++w.video_category_clicks[r.video_category_card_clicked]),r.hasOwnProperty("carousel_category_changed")){var W=r.carousel_category_changed;if(W===A)return;if(null!==W&&(w.category_clicks_and_times[W]||(w.category_clicks_and_times[W]={dur:0,clicks:0})),A){var L=Y.stop("carousel_category");w.category_clicks_and_times[A].dur+=L}null!==W?(Y.start("carousel_category"),A=W,++w.category_clicks_and_times[W].clicks):A=null}r.hasOwnProperty("num_clicks_cta")&&++w.num_clicks_cta,r.hasOwnProperty("num_clicks_cta_interstitial")&&++w.num_clicks_cta_interstitial,r.hasOwnProperty("wa_360_click")&&++w.num_clicks_360}if(0===t.indexOf("sts-sa-ana:")&&z){var J=o(t.substring(11));try{ImpelAna.emit(J.category,J.event)}catch(e){}}}}),window.addEventListener("message",function(t){if("string"==typeof t.data)if(/^STS:JSON::/.test(t.data))try{var a=o(t.data.substring(10));e(a)}catch(e){return}else if(/^sts_vehicle_data:/.test(t.data))try{setTimeout(function(){var a=JSON.parse(/:(.*)$/.exec(t.data)[1]);e({event:"vehicle",data:{s3:a.s3_folder,vid:a.vin}})},1e3)}catch(e){return}}),$(window).on("beforeunload",function(){E=!0,t(),X(!0),a()});var Z=0,ee=0;window.addEventListener("message",p);var te=1e4,ae=1*new Date;setInterval(function(){D&&(te=1e4,D=!1),ae+te>1*new Date||(te*=1.5,ae=1*new Date,X())},1e3),function(){var e=document.createElement("script");document.head.appendChild(e),e.onload=function(){z=!0};var t="https://";STS.args.teststatic?(t+="cdn.impel.io/static-test/",t+=STS.args.teststatic):t+="cdn.impel.io/spincar-static",t+="/releases/analytics/ImpelAna%400.0.10/ana.min.js",e.src=t}(),B()}()}function a(){e(n+hash)}function i(e,t){var a=decodeURIComponent(e.href),i=a.slice(a.indexOf("#"))||e.hash;return i=i.split("&")[0],t=t||{},$.each(i.split(/[#!]|%23/),function(e,a){if(a){var i,n,r;i=a.split("="),n=decodeURIComponent(i[0]).toLowerCase().replace(/[\-_]/g,""),r=i.length<2||decodeURIComponent(i[1]),t[n]=r}}),t}STS.load_start=1*new Date;var n="",r=i(window.location,{}),o=r.background,s=!1;STS.browser=STS.browser||{},STS.browser.IE=function(){return window.document.documentMode||0}(),STS.browser=STS.browser||{},STS.browser.ios=function(){return!!/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Apple/.test(navigator.vendor)}(),STS.browser.mobile=function(e){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera),n=STATIC_TEST?CDN_PREFIX+STATIC_TEST+"20190909/#":CDN_PREFIX+STATIC_PROD+"20190909/"+CACHE_STRING,n+="!customer="+customer_and_vin[0]+"!vin="+customer_and_vin[1];var c=document.referrer;if(c){var _=document.createElement("a");_.href=c,STS.canonical_hostname=_.hostname.toLowerCase().replace(/^(www\.)+/,""),-1!==c.indexOf("cargurus.com")&&(hash+="!cargurus_vdp")}else STS.canonical_hostname="spins.impel.io",hash+="!show_old";"https://impel.io"===c.split("/").slice(0,3).join("/")&&(hash+="!ftmarketingpreview"),r.enablewidescreenview?n=n.replace(/!hideExpandBtn/gi,""):hash+="!hideExpandBtn";var l=window.frames[0];onmessage=function(e){opener&&opener.postMessage(e.data,"*")};var d=CDN_PREFIX+(STATIC_TEST||STATIC_PROD);STS.STATIC_PREFIX=d,function(){var e,t=["disableautospin","disabledrawer","disablescrolltozoom","econly","enablesmallcursor","hidecarousel","hideexpandbtn","hidefeaturetour","hidehotspots","hidedamagetags","hidedamage","hidepowerbyspincar","showpowerbyspincar","hidepowerbyimpel","hidezoom","showpowerbyimpel","hidelivevideo","lang","stscolor","specialfeaturecolor","useinnerwidth","hidecta","enterprisetheme"];try{e=JSON.parse(sessionStorage.getItem("STS.args"))}catch(e){}var a=STS.args=e||{testremoteenv:!1,teststatic:!1,testvinifier:!1,testanalytics:!1,devvinifier:!1,devanalytics:!1,debugspin:!1,testexperiment:!1};i(window.location,a),STS.args.UI={};for(var n in STS.args)t.indexOf(n)>-1&&("disabledrawer"===n&&!0===STS.args[n]&&(STS.args.UI.hidecarousel=!0),STS.args.UI[n]=STS.args[n],delete STS.args[n]);if(a.testall&&$.each(["teststatic","testvinifier","testanalytics"],function(e,t){a[t]=a[t]||a.testall}),a.saveargs)try{sessionStorage.setItem("STS.args",JSON.stringify(a))}catch(e){}}();var u=function(e){for(var t=5381,a=e.length;a;)t=33*t^e.charCodeAt(--a);return t>>>0};!function(){var e=function(e,t,a,i,n){n=n||{},t.max_age=t.max_age||1/0;var r="",o="",s="",c=e.split("/"),_=-1!==e.indexOf("regioner"),l=-1!==e.indexOf("spin");if(_)s=STS.args.testregioner?"//cdn.testenv.impel.io/static-test/"+STS.args.testregioner:"//cdn.impel.io/spincar-static",o=c[c.length-1],r=[s,"fallback","regioner",o].join("/")+".json";else{if(!l)return void console.error("Unsupported URL::read_cache::url:",e);s=STS.args.testvinifier?"//cdn.testenv.impel.io/static-test/"+STS.args.testvinifier:"//cdn.impel.io/spincar-static",o=c[c.length-2];r=[s,"fallback","vinifier",o,c[c.length-1].split("?")[0]].join("/")+".json"}var d=new XMLHttpRequest;d.open("GET",r,!0),d.onreadystatechange=function(){4===d.readyState&&(200===d.status?a(d.status,d.responseText):i())},d.onerror=function(){console.error("Network error::read_cache::url:",e)},d.send()};STS.read_cached_url=function(t,a,i){var n,r=a.success,o=a.error,s=!1,c=!1,_=!1,l=!1,d=function(e,t){s||(s=!0,e&&e(t))},u=function(){c=!0,_?d(o):n&&d(r,n)},p=function(){c?u():setTimeout(u,2500)};if($.ajax({dataType:"json",url:t,success:function(e){l=!0,d(r,e)},error:function(){u()}}),!STS.args.automatichotspots||!STS.args.devvinifier){setTimeout(function(){l||i&&i.dev&&!i.dev_cache||e(t,a,function(e,t){e<200||299<e?_=!0:n=JSON.parse(t),p()},function(){_=!0,p()},i)},500)}}}(),function(){var e=function(){return STS.args.regionerbaseurl?STS.args.regionerbaseurl:STS.args.testregioner?"https://"+STS.args.testregioner+"-regioner.testenv.impel.io/":STS.args.devregioner?"string"==typeof STS.args.devregioner?"http://192.168.0."+STS.args.devregioner+":8779/":"http://localhost:8779/":"https://regioner.impel.io/"},t=!1;STS.regioner=function(a,i,n){t||(t=!0,STS.read_cached_url(e()+a,{success:function(e){STS.region=e.region,STS.region||console.log('Error: Invalid S3 folder "'+a+'", cannot find its region.'),i&&i(e)},error:function(){console.log("Error: Neither regioner nor cache is available, cannot find region."),n&&n()}},{dev:STS.args.devregioner,dev_cache:STS.args.devregioner&&STS.args.devregionercache}))}}(),STS.regioner(customer_and_vin[0],t,a),$(window).on("message",function(e){if(e=e.originalEvent,/^sts_vehicle_data:/.test(e.data)){var t=STS.vehicle_data=JSON.parse(/:(.*)$/.exec(e.data)[1]);STS.analytics2.s3_folder=t.s3_folder,STS.analytics2.vin=t.vin,STS.analytics2.page_type="API"}else"sts_spin_exists"===e.data?(STS.analytics2.spin=!0,STS.configureImpelAna({spin:!0})):"sts_no_spin_exists"===e.data&&(STS.analytics2.spin=!1,STS.configureImpelAna({spin:!1}));"string"!=typeof e.data||0!==e.data.indexOf("STS:fi-from-spin::")&&0!==e.data.indexOf("STS:FullBrowser")||window===window.parent?"string"==typeof e.data&&0===e.data.indexOf("STS:fi-to-spin::")&&l.postMessage(e.data,"*"):window.parent.postMessage(e.data,"*")})}var vr_mode_workaround=function(e){if(e&&e.contentWindow&&!STS.vr_mode_workaround_active){var t=0;window.addEventListener("deviceorientation",function(a){1*new Date-t<20||(t=1*new Date,e.contentWindow&&e.contentWindow.postMessage({type:"deviceorientation",alpha:a.alpha,beta:a.beta,gamma:a.gamma,orientation:screen.orientation?screen.orientation.angle:window.orientation},"*"))});var a=0;addEventListener("message",function(t){t=t.data,t.hasOwnProperty("type")&&"deviceorientation"===t.type&&(1*new Date-a<20||(a=1*new Date,e.contentWindow&&e.contentWindow.postMessage({type:"deviceorientation",alpha:t.alpha,beta:t.beta,gamma:t.gamma,orientation:t.orientation},"*")))},!0),STS.vr_mode_workaround_active=!0}},CDN_PREFIX="//cdn.impel.io/",STATIC_PROD="spincar-static/",CACHE_STRING="?_=d7eaac77279bf3#",STATIC_TEST="",STS=STS||{};vr_mode_workaround(document.getElementsByTagName("iframe")[0]);var customer_and_vin=window.location.pathname.match(/[^/]+/g),qs=function(){var e=location.search,t=e.substr(1),a={};return t.split("&").forEach(function(e){var t=e.split("=");a[t[0]]=decodeURIComponent(t[1])}),a}();qs.cid&&qs.vid&&(customer_and_vin=[qs.cid,qs.vid]);var args={},hash="";if(parse_args(window.location,args),$.each(args,function(e,t){hash||(hash="#"),"teststatic"===e?STATIC_TEST="static-test/"+t+"/":hash+="!"+e+"="+t}),STATIC_TEST){var test_script_url=CDN_PREFIX+STATIC_TEST+"sales-links/sales-links-logic.js";$.getScript(test_script_url,function(){run_logic()})}else run_logic();
  17. </script>
  18. </body></html>