1var map,placeholder={es:"Ingresa ciudad, estado o código postal para encontrar una estación",en:"Enter City, State or ZIP to Find a Station"},findACopy={es:"Encuentra una Estación",en:"Find a Station"},cityStateCopy={es:"Ingresa ciudad, estado o código postal",en:"Enter City, State or ZIP"},inputLabelCopy={es:"Ubicación",en:"Location"},searchCopy={es:"Buscar",en:"Search"},filterCopy={es:"Mostrar Estaciones con",en:"Show Stations With"},filterAriaCopy={es:"Mostrar Estaciones con filtro",en:"Show Stations With Filters"},noCloseStores={es:"No hay estaciones en esta área. Sin embargo, las estaciones más cercanas a ti se enumeran a continuación.",en:"There are no stores in this area. However, stores closest to you are listed below."},noStores={es:"No hay estaciones en esta área.",en:"There are no stores in this area."},isMobile=!1;function initializeMap(){map=new google.maps.Map(document.getElementById("map_canvas"),{center:new google.maps.LatLng(40,-100),zoom:4,mapTypeId:google.maps.MapTypeId.ROADMAP});var e=document.getElementById("panel"),t=new DataSource,i=new storeLocator.View(map,t,{geolocation:!0,features:t.getFeatures(),updateOnPan:!1});i.createMarker=function(e){return new google.maps.Marker({position:e.getLocation(),icon:e.getDetails().icon,title:e.getDetails().title,visible:!0,labelContent:"$425K",labelAnchor:new google.maps.Point(22,0),labelClass:"labels",labelStyle:{opacity:.75}})},new storeLocator.Panel(e,{view:i}),i.clearMarkers(),google.maps.event.addListenerOnce(map,"center_changed",function(){i.refreshView(),i.createMarker=function(e){return new google.maps.Marker({position:e.getLocation(),icon:e.getDetails().icon,title:e.getDetails().title,visible:!0})},google.maps.event.addListener(map,"idle",function(){i.refreshView()})})}function generateRandomString(e){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",i="",a=0;a<e;a++){var o=Math.floor(Math.random()*t.length);i+=t.charAt(o)}return i}function DataSource(){jQuery.extend(this,new storeLocator.StaticDataFeed);var t=this,e=generateRandomString(10);jQuery.get("/img/findstation/MasterArcoStoreLocations.csv?v="+e,function(e){t.setStores(t.parse_(e))})}(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|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|phone)|xda|xiino/i.test(navigator.userAgent)||/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(navigator.userAgent.
1substr(0,4)))&&(isMobile=!0),(g=>{new Array;var e,h=!0,u=null,p=!1,m=Math,s="getLocation",q="trigger",a="removeListener",f="attr",v="find",o="addListener",b="maps",r="getMap",t="contains",c="push",w="addClass",y="click",S="length",n="prototype",l="getId",d="setMap",C="append",M="event";function L(e){return function(){return this[e]}}function I(e){var t=document.querySelector(".error-message");t.innerText="",t.classList.add("hidden"),e.removeAttribute("aria-describedby"),e.classList.remove("error"),e.removeAttribute("invalid")}function D(){}function E(e,t){this.b=e,this.a=t}function F(e){this.a=[],this.b={};for(var t,i=0;t=arguments[i];i++)this.add(t)}((window.storeLocator=D).Feature=E).prototype.getId=L("b"),E.prototype.getDisplayName=L("a"),E.prototype.toString=function(){return this.getDisplayName()},(e=(D.FeatureSet=F).prototype).toggle=function(e){this[t](e)?this.remove(e):this.add(e)},e.contains=function(e){return e[l]()in this.b},e.getById=function(e){return e in this.b?this.a[this.b[e]]:u},e.add=function(e){e&&(this.a[c](e),this.b[e[l]()]=this.a[S]-1)},e.remove=function(e){this[t](e)&&(this.a[this.b[e[l]()]]=u,delete this.b[e[l]()])},e.asList=function(){for(var e=[],t=0,i=this.a[S];t<i;t++){var a=this.a[t];a!==u&&e[c](a)}return e};var z=new F;function x(e,t){this.g=g(e),this.g[w]("storelocator-panel"),this.c=g.extend({locationSearch:h,locationSearchLabel:"Find a Station",featureFilter:h,directions:h,view:u},t),this.l=new google[b].DirectionsRenderer({draggable:h}),this.t=new google[b].DirectionsService;var a=this,e=(a.c.view&&a.set("view",a.c.view),a.e=g('<form class="storelocator-filter"/>'),a.g.append(a.e),'<div class="location-search"><h1 class="jslocator-search-heading">'+findACopy[language]+'</h1><label for="jslocator-search-input" class="jslocator-search-label">'+cityStateCopy[language]+'</label><div class="input-group material-input"><input class="form-control location-field" id="jslocator-search-input" name="jslocator-search-input" placeholder="'+placeholder[language]+'"><span class="input-group-btn"><button class="btn btn-primary" type="submit" name="submit" id="zip-submit" onclick="appendFLTag()">'+searchCopy[language]+'</button></span></div><small class="small-text">'+cityStateCopy[language]+'</small><small class="small-text error-message hidden" id="errorContainer"></small><div class="check-clear"></div></div>');if(a.c.locationSearch&&(a.i=g(e),a.e.append(a.i),void 0===google.maps.places&&a.e.submit(function(){a.searchPosition(g("input",a.i).val())}),a.e.submit(function(){return dataLayer.push({event:"locationSearchBegin"}),a.searchPosition(g("input",a.i).val()),p}),google.maps.event.addListener(a,"geocode",function(e){var t,i;a.s&&window.clearTimeout(a.s),e.geometry?(this.k=e.geometry.location,a.h&&A(a),(t=a.get("view")).highlight(u),i=t.getMap(),e.geometry.viewport?i.fitBounds(e.geometry.viewport):(i.setCenter(e.geometry.location),i.setZoom(13)),isMobile&&i.setZoom(11),t.refreshView(),_(a)):a.searchPosition(e.name)})),a.c.featureFilter){a.d=g('<fieldset id="feature-filter" class="feature-filter is-open"><legend><span class="sr-only">Find a station filters</span><button class="show-stations-with-button" data-showstationfilters aria-controls="show-station-filters" aria-expanded="true" aria-label="'+filterAriaCopy[language]+'">'+filterCopy[language]+'<img src="/img/findstation/stations-are-showing--arrow-up.png" class="stations-are-showing--arrow-up" alt="Expanded State"><img src="/img/findstation/stations-are-hidden--arrow-down.png" class="stations-are-hidden--arrow-down arrow-is-hidden" alt="Collapsed State"></button></legend><div class="show-station-filters" id="show-station-filters"></div></fieldset>');for(var i=a.d.find("#show-station-filters"),o=a.get("view").getFeatures().asList(),n=0,s=o.length;n<s;n++){var r=o[n],c=r.getDisplayName().replace(" ",""),l=r.getDisplayName(),d=g('<input class="checkbox-screen-reader-only searchfiltercbx" name="cb-'+c+'" id="cb-'+c+'" type="checkbox" aria-hidden="true" tabindex="-1" />');"CreditCards"!==c&&(d.data("feature",r),i.append(d),g('<label class="filters-checkbox-label searchfilter" id="cb-'+c+'label" for="cb-'+c+'" role="button" tabindex="0" aria-pressed="false" aria-label="'+l+' filter" />').text(l).appendTo(i))}a.e.append(a.d),a.d.on("change","input",function(){var e=g(this).data("feature"),t=a.get("featureFilter");t.toggle(e),a.set("featureFilter",t),a.get("view").refreshView(),g(this).next(".filters-checkbox-label").attr("aria-pressed",this.checked?"true":"false")});e=new URLSearchParams(document.location.search).get("renewablediesel");e&&1===parseInt(e,10)&&setTimeout(function(){document.querySelector("#cb-RenewableDiesel").click()},2e3)}a.b=g('<span aria-label="Search results" class="hidden" id="resultlist"></span><div class="store-list" id="store-list" role="list"></div>'),a.g.append(a.b),(e=document.querySelector("#jslocator-search-input"))&&I(e),g(".feature-filter .show-stations-with-button").on("click",function(e){e.preventDefault();e=g(this).closest("fieldset");e.toggleClass("closed"),e.toggleClass("is-open")}),g(".location-search a.clear").bind("click",function(e){e.preventDefault(),g(".location-search input").val("")}
1),g(".location-search a.submit").bind("click",function(e){dataLayer.push({event:"locationSearchBegin"}),e.preventDefault(),g(".storelocator-filter").submit()}),a.c.directions&&(a.a=g('<div class="directions-panel"><form><input class="directions-to"/><input type="submit" value="Find directions"/><a href="#" class="close-directions">Close</a></form><div class="rendered-directions"></div></div>'),a.a[v](".directions-to")[f]("readonly","readonly"),a.a.hide(),a.h=p,a.a[v]("form").submit(function(){return A(a),p}),a.a[v](".close-directions")[y](function(){a.hideDirections()}),a.g[C](a.a)),document.createEvent?((e=document.createEvent("Event")).initEvent("panelInitialized",!0,!1),window.dispatchEvent(e)):(e=new Event("panelInitialized"),window.dispatchEvent(e))}(D.Panel=x).prototype=new google.maps.MVCObject;var B=new google.maps.Geocoder;function _(e){var t=e.get("view");e.r&&google[b][M][a](e.r),e.r=google[b][M].addListenerOnce(t,"stores_changed",function(){e.set("stores",t.get("stores"))})}function A(i){var a;i.k&&i.m&&(a=i.a[v](".rendered-directions").empty(),i.t.route({origin:i.k,destination:i.m[s](),travelMode:google[b].DirectionsTravelMode.DRIVING},function(e,t){t==google[b].DirectionsStatus.OK&&((t=i.l).setPanel(a[0]),t[d](i.get("view")[r]()),t.setDirections(e))}))}function P(){this.b=[]}function R(e,t){for(i=0;i<t.length;i++)t[i].b.distance=t[i].distanceTo(e);t.sort(function(e,t){return e.b.distance-t.b.distance})}function j(e,t,i,a){this.f=e,this.d=t,this.a=i||z,this.b=a||{}}function T(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}(e=x[n]).searchPosition=function(e){var a=this,e={address:e,bounds:this.get("view").getMap().getBounds()};B.geocode(e,function(e,t){var i;t==google.maps.GeocoderStatus.OK&&google.maps.event.trigger(a,"geocode",e[0]),"ZERO_RESULTS"==t&&(e=document.querySelector(".location-search input"),t=document.querySelector(".results-polite-container"),i="No results found for your search: "+e.value+". Please try again.",t.innerText=i,t=e,e=i,(i=document.querySelector(".error-message")).innerText=e,i.classList.remove("hidden"),t.setAttribute("aria-describedby","errorContainer"),t.classList.add("error"),t.setAttribute("invalid","true"),t.focus())})},e.setView=function(e){this.set("view",e)},e.view_changed=function(){function e(){t.clearMarkers(),_(i)}var t=this.get("view"),i=(this.bindTo("selectedStore",t),this);this.o&&google.maps.event.removeListener(this.o),this.q&&google.maps.event.removeListener(this.q),this.p&&google.maps.event.removeListener(this.p),t.getMap(),this.o=google.maps.event.addListener(t,"load",e),this.q=google.maps.event.addListener(t.getMap(),"zoom_changed",e),this.p=google.maps.event.addListener(t.getMap(),"idle",function(){var e=t.getMap();i.j?e.getBounds().contains(i.j)||(i.j=e.getCenter(),_(i)):i.j=e.getCenter()}),e(),this.bindTo("featureFilter",t),this.f&&this.f.bindTo("bounds",t.getMap())},e.stores_changed=function(){var e,t=this.c.view.c;for(e in t)t[e].setIcon("/img/findstation/tag.png");if(this.get("stores")){var i=this.get("view"),i=i&&i.getMap().getBounds(),a=this.get("stores"),o=this.get("selectedStore");this.b.empty(),a[S]?i&&!i.contains(a[0].getLocation())&&this.b.append('<div class="no-stores">'+noCloseStores[language]+"</div>"):this.b.append('<div class="no-stores">'+d[language]+" </div>"),k=m.min(50,a.length);for(var n=0;n<k;n++){var s,r=a[n],c=r.getInfoPanelItem();!1!==c&&(c.store=r,o&&r.getId()==o.getId()&&g(c).addClass("highlighted").attr("aria-selected","true"),r=t[c.store.getId()],s=c.store.b.distance,g(".distance",g(c)).text(T(Math.round(10*s)/10)+" mi"),s<50)&&(r.setIcon("/img/findstation/markers/"+(n+1)+".png"),this.b.append(c))}g(".store-list .store").each(function(e){g(this).after("<hr />"),g(".index",g(this)).text(e+1).removeClass("dd"),8<e&&g(".index",g(this)).eq(0).addClass("dd")}),g(".store-list a.directions-link").bind("click",function(e){e.preventDefault();e=g(this).siblings(".address").html();g(this).attr("data-lat"),g(this).attr("data-lng");window.open("https://google.com/maps/?daddr="+encodeURIComponent("ARCO, "+e.replace(/<br>/g,", "))+"&saddr="+encodeURIComponent(g(".location-field").val())+"&directionsmode=driving","_blank")});I(document.querySelector(".location-search input"));var i=document.querySelectorAll(".store-list .store"),l=document.querySelector(".results-polite-container"),d=document.querySelector(".no-stores");l.innerText=(d?d.innerText:"")+" "+i.length+" Total results"}},e.selectedStore_changed=function(){g(".highlighted",this.b).removeClass("highlighted").attr("aria-selected","false");var e,t,i,a,o=this,n=this.get("selectedStore");n&&(this.m=n,this.b[v]("#store-"+n[l]())[w]("highlighted").attr("aria-selected","true"),this.c.directions&&this.a[v](".directions-to").val(n.getDetails().title),e=o.get("view").getInfoWindow().getContent(),t=g("<a/>").text("Directions")[f]("data-atype","directions")[w]("directions"),i=g("<a/>").text("Zoom here")[f]("data-atype","zoomhere")[w]("action")[w]("zoomhere"),a=g("<a/>").text("Street view")[f]("data-atype","streetview")[w]("action")[w]("streetview"),t[y](function(){var e=g(this).parent().children(".address").html();g(this).parent().children(".directions-link").attr("data-lat"),g(this).parent().children(".directions-link").attr("data-lng");return window.open("https://google.com/maps/?daddr="+encodeURIComponent("ARCO, "+e.replace(/<br>/g,", "))+"&saddr="+encodeURIComponent(g(".location-field").val())+"&directionsmode=driving","_blank"),p}),i[y](function(){o.get("view")[r]().setOptions({center:n[s](),zoom:16})}),a[y](function(){var e=o.get("view")[r]().getStreetView();e.setPosition(n[s]()),e.setVisible(h)}),g(e)[C](t)[C](i)[C](a))},e.hideDirections=function(){this.h=p,this.a.fadeOut(),this.d.fadeIn(),this.b.fadeIn(),this.l[d](u)},e.showDirections=function(){var e=this.get("selectedStore");this.d.fadeOut(),this.b.fadeOut(),this.a[v](".directions-to").val(e.getDetails().title),this.a.fadeIn(),A(this),this.h=h},e.featureFilter_changed=function(){_(this)}
1,(D.StaticDataFeed=P).prototype.setStores=function(e){this.b=e,this.a?this.a():delete this.a,document.createEvent?((e=document.createEvent("Event")).initEvent("datasourceReady",!0,!1),window.dispatchEvent(e)):(e=new Event("datasourceReady"),window.dispatchEvent(e))},P.prototype.getStoresByDistanceToPoint=function(e,t){return R(e,t),t},P.prototype.getStores=function(e,t,i){if(this.b.length){for(var a,o=[],n=0;a=this.b[n];n++)a.hasAllFeatures(t)&&o[c](a);R(e.getCenter(),o),i(o)}else{var s=this;this.a=function(){s.getStores(e,t,i)}}},(e=(D.Store=j)[n]).setMarker=function(e){this.e=e,google.maps.event.trigger(this,"marker_changed",e)},e.getMarker=L("e"),e.getId=L("f"),e.getLocation=L("d"),e.getFeatures=L("a"),e.hasFeature=function(e){return this.a[t](e)},e.hasAllFeatures=function(e){if(e)for(var t=0,i=(e=e.asList())[S];t<i;t++)if(!this.hasFeature(e[t]))return p;return h},e.getDetails=L("b"),e.ba=function(e){for(var t=Math.round(10*this.b.distance)/10,i=["index","title","address","distance","phone"],a=[],o=0,n=i[S];o<n;o++){var s=i[o],r="ampm"==s&&1==e.b[s]||"CreditCards"==s&&1==e.b[s]||"Diesel"==s&&1==e.b[s]||"RenewableDiesel"==s&&1==e.b[s]||"E85"==s&&1==e.b[s]?s:e.b[s];"distance"==s&&(r=T(t)+" mi"),"phone"==s&&(r='<a href="tel:'+e.b[s]+'">'+e.b[s]+"</a>"),e.b[s]&&(a[c]('<div class="'),a[c](s),a[c]('">'),a[c](r),a[c]("</div>"))}return a.join("")},e.getInfoWindowContent=function(){var e;return this.c||(!1!==this.ba(this)?((e=['<div class="storeinner">'])[c](this.ba(this)),e[c]((e=>{var t=[],i=e.b.address,a=e.d.lat(),o=e.d.lng();t[c]('<div class="features">');for(var n,e=e.a.asList(),s=0;n=e[s];s++)t[c]("<div>"),t[c](n.getDisplayName()),t[c]("</div>");return t[c]("</div>"),t[c]("<a href='#' class='directions-link' data-lat='"+a+"' data-lng='"+o+"'>Directions<span class='sr-only'> to "+i+"</span></a>"),t.join("")})(this)),e[c]("</div>"),this.c=e.join("")):this.c=!1),this.c},e.getInfoPanelContent=function(){return this.getInfoWindowContent()};var O={};function V(){}function N(e,t,i){{var a;this.g=e,this.f=t,this.b=g.extend({updateOnPan:h,geolocation:h,features:new F},i),(o=this).b.geolocation&&(a=o,window.navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(e){e=new google[b].LatLng(e.coords.latitude,e.coords.longitude),a[r]().setCenter(e),a[r]().setZoom(isMobile?13:11),google[b][M][q](a,"load")},void 0,{maximumAge:6e4,timeout:1e4}))}var o;o.c={},o.a=new google.maps.InfoWindow,e=o.getMap(),o.set("updateOnPan",o.b.updateOnPan),google.maps.event.addListener(o.a,"closeclick",function(){o.highlight(u)}),google.maps.event.addListener(e,"click",function(){o.highlight(u),o.a.close()}),google.maps.event.trigger(this,"load"),this.set("featureFilter",new F)}j.prototype.getInfoPanelItem=function(){var e,t=this[l]();return O[t]||(e=this.getInfoPanelContent(),O[t]=!1,e&&(O[t]=g('<div class="store" role="listitem" data-store-id="'+this[l]()+'" id="store-'+this[l]()+'">'+e+"</div>")[0])),O[t]},j.prototype.distanceTo=function(e){var t=this[s](),i=Math.PI*t.lat()/180,a=Math.PI*e.lat()/180,t=(Math.PI,t.lng(),Math.PI,e.lng(),t.lng()-e.lng()),e=Math.PI*t/180,t=Math.sin(i)*Math.sin(a)+Math.cos(i)*Math.cos(a)*Math.cos(e);return t=60*(t=180*(t=Math.acos(t))/Math.PI)*1.1515,t*=.8684},(D.DataFeed=V).prototype.getStores=function(){},(e=(D.View=N).prototype=new google.maps.MVCObject).updateOnPan_changed=function(){var e,t;this.e&&google[b][M][a](this.e),this.get("updateOnPan")&&this[r]()&&(t=(e=this)[r](),this.e=google[b][M][o](t,"idle",function(){e.refreshView()}))},e.addStoreToMap=function(e){var t=this.getMarker(e),i=(e.setMarker(t),this);t.n=google[b][M][o](t,"click",function(){i.highlight(e,p)}),t[r]()!=this[r]()&&t[d](this[r]())},e.createMarker=function(e){var e={position:e[s]()},t=this.b.markerIcon;return t&&(e.icon=t),new google[b].Marker(e)},e.getMarker=function(e){var t=this.c,i=e[l]();return t[i]||(t[i]=this.createMarker(e)),t[i]},e.getInfoWindow=function(e){return e&&this.a.setContent(g(e.getInfoWindowContent())[0]),this.a},e.getFeatures=function(){return this.b.features},e.getFeatureById=function(e){if(!this.d){this.d={};for(var t,i=0;t=this.b.features[i];i++)this.d[t[l]()]=t}return this.d[e]},e.featureFilter_changed=function(){google.maps.event.trigger(this,"featureFilter_changed",this.get("featureFilter")),this.get("stores")&&this.clearMarkers()},e.clearMarkers=function(){for(var e in g(".location-search input").removeClass("error"),this.c){this.c[e].setMap(null);e=this.c[e].n;e&&google.maps.event.removeListener(e)}},e.refreshView=function(){var o=this,e=this.getMap().getBounds();e&&this.f.getStores(e,this.get("featureFilter"),function(e){var t=o.get("stores");if(t)for(var i=0,a=t.length;i<a;i++)google.maps.event.removeListener(t[i].getMarker().n);o.set("stores",e)})},e.stores_changed=function(){for(var e,t=this.get("stores"),i=0;e=t[i];i++)this.addStoreToMap(e)},e.getMap=L("g"),e.highlight=function(e,t){var i=this.getInfoWindow(e);e?(i=this.getInfoWindow(e),e.getMarker()?i.open(this[r](),e.getMarker()):(i.setPosition(e.getLocation()),i.open(this.getMap())),this.getMap().getStreetView().getVisible()&&this.getMap().getStreetView().setPosition(e.getLocation())):i.close(),this.set("selectedStore",e)},e.selectedStore_changed=function(){google.maps.event.trigger(this,"selectedStore_changed",this.get("selectedStore"))}})(jQuery),DataSource.prototype.FEATURES_=new storeLocator.FeatureSet(new storeLocator.Feature("ampm-1","ampm"),new storeLocator.Feature("CreditCards-1","Credit Cards"),new storeLocator.Feature("Diesel-1","Diesel"),new storeLocator.Feature("RenewableDiesel-1","Renewable Diesel"),new storeLocator.Feature("E85-1","E85")),DataSource.prototype.getFeatures=function(){return this.FEATURES_},DataSource.prototype.parse_=function(e){for(var t=[],i=e.split("\n"),a=this.parseRow_(i[0].trim()),o=1;o<i.length;o++){var n,s,r,c,l,d,g,h,u,p=i[o];p&&0!==(p=p.trim()).length&&(p=this.toObject_(a,this.parseRow_(p)
1),(n=new storeLocator.FeatureSet).add(this.FEATURES_.getById("ampm-"+p.ampm)),n.add(this.FEATURES_.getById("CreditCards-"+p.CreditCards)),n.add(this.FEATURES_.getById("Diesel-"+p.Diesel)),n.add(this.FEATURES_.getById("RenewableDiesel-"+p.RenewableDiesel)),n.add(this.FEATURES_.getById("E85-"+p.E85)),this.join_([p.ListNumber,p.StoreNumber],""),g=this.join_([p.State,p.Zip]," "),g=this.join_([p.City,g],", "),s=new google.maps.LatLng(p.Lat,p.Lng),h=location.protocol+"//"+location.hostname+"/img/findstation/tag.png",u=p.ampm,r=p.CreditCards,c=p.Diesel,l=p.RenewableDiesel,d=p.E85,g={index:"0",title:this.join_([p.StoreName,p.StoreNumber]," #"),address:this.join_([p.Address.replace(",",","),g],"<br>"),phone:p.Phone,icon:h,ampm:u,CreditCards:r,Diesel:c,RenewableDiesel:l,E85:d,distance:"0",directions:"Directions"},void 0!==p.Country&&"MX"===p.Country&&(h=p.Address.replace(",",","),void 0!==p.AddressExtra&&p.AddressExtra&&(h+=", "+p.AddressExtra.replace(",",",")),h=(h=(h=h+("<br />C.P. "+p.Zip)+"<br />")+p.City+", ")+p.State,g.address=h=h+", "+" MEXICO"),u=new storeLocator.Store(p.ListNumber,s,n,g),t.push(u))}return t},DataSource.prototype.join_=function(e,t){for(var i=[],a=0,o=e.length;a<o;a++)e[a]&&i.push(e[a]);return i.join(t)},DataSource.prototype.parseRow_=function(e){return e=(e='"'==(e='"'==(e=e.trim()).charAt(0)?e.substring(1):e).charAt(e.length-1)?e.substring(0,e.length-1):e).split(",")},DataSource.prototype.toObject_=function(e,t){for(var i={},a=0,o=t.length;a<o;a++)i[e[a]]=t[a];return i}; 2//# sourceMappingURL=stationfinder.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.