1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29],{9029:function(e,t,s){s.d(t,{Z:function(){return d}});var o,i,n=s(9626),a=s(7828);console.warn=()=>{};let l={GB:{north:59.360249,south:49.906193,east:1.759,west:-8.623555},US:{north:49.388611,south:24.544245,east:-66.954811,west:-124.733253},ES:{north:43.748337,south:35.94685,east:3.039484,west:-9.392883},NL:{north:53.510403,south:50.803721,east:7.092053,west:3.314971}},r='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M32 0C19.1 0 7.4 7.8 2.4 19.8s-2.2 25.7 6.9 34.9L224 269.3 224 448l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-178.7L502.6 54.6c9.2-9.2 11.9-22.9 6.9-34.9S492.9 0 480 0L32 0zM173.3 128l-64-64 293.5 0-64 64-165.5 0z"/></svg>',c='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M0 24C0 10.7 10.7 0 24 0L69.5 0c22 0 41.5 12.8 50.6 32l411 0c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3l-288.5 0 5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5L488 336c13.3 0 24 10.7 24 24s-10.7 24-24 24l-288.3 0c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5L24 48C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"/></svg>';async function d(e){let t=(null===(f=window)||void 0===f?void 0:null===(v=f.navigator)||void 0===v?void 0:v.userAgent)&&(window.navigator.userAgent.includes("iPad")||window.navigator.userAgent.includes("iPhone"))?"apple":"google";if("undefined"==typeof google||void 0===google.maps||void 0===google.maps.geometry||void 0===google.maps.places){let e=new n.aN({id:"__googleMapsScriptId",apiKey:"AIzaSyBy9mu80MN_BbHdgmYV2lddoasQc7Ev4gM",libraries:["geometry","places"]});await e.load()}let s=e=>{let s=document.createElement("div");s.className="storeInfoClose",s.onclick=()=>{j&&j.setMap(null)},s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"/></svg>';let i=document.createElement("div");i.className="storeInfoContainer";let n=document.createElement("h3");n.className="storeInfoTitle";let a=("on"==e.type.toLowerCase()?r:c)+e.name;n.innerHTML=a;let l=document.createElement("div");l.className="storeInfo",l.append(s),l.append(n);let d="";d="apple"==t?"https://maps.apple.com/directions?destination=".concat(e.latitude,",").concat(e.longitude):"https://www.google.com/maps/dir/?api=1&destination=".concat(e.latitude,",").concat(e.longitude);let p="";o&&(p=A(o,new google.maps.LatLng({lng:parseFloat(e.longitude),lat:parseFloat(e.latitude)})).toFixed(2)+" miles away");let g=document.createElement("div");return g.innerHTML="\n <p>\n ".concat(e.address," \n </p>\n <div class='storeInfoLinks'>\n <a href=\"").concat(d,'" target="_blank" class="btn">Directions</a> ').concat(p?'<p style="margin:auto;margin-right:0;margin-bottom:0;">'.concat(p,"</p>"):"","\n </div> \n \n "),l.append(g),i.append(l),i},d=(e,t)=>e.filter(e=>t.contains(e.getPosition())),p=(e,t,s)=>{let o=t.fromLatLngToDivPixel(e.getNorthEast()),i=t.fromLatLngToDivPixel(e.getSouthWest
1());o.x+=s,o.y-=s,i.x-=s,i.y+=s;var n=new google.maps.LatLngBounds(e);return n.extend(t.fromDivPixelToLatLng(o)),n.extend(t.fromDivPixelToLatLng(i)),n};class g extends a.cQ{calculate(e){let{markers:t,map:s,mapCanvasProjection:o}=e,i=s.getZoom();this.state={zoom:i};let n=d(t,p(s.getBounds(),o,this.viewportPadding));return{clusters:i>=this.maxZoom?this.noop({markers:n,map:s,mapCanvasProjection:o}):this.cluster({markers:n,map:s,mapCanvasProjection:o})}}}class h extends a.XL{render(){let e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,a.zb.CLUSTERING_BEGIN,this);let{clusters:s,changed:o}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(o||void 0==o){this.clusters=s;let o=new a.qV(this.markers,this.clusters),i={};for(var t of(this.clusters.forEach(t=>{let s="".concat(t.position," ").concat(t.count);this.renderedMarkers[s]?i[s]=this.renderedMarkers[s]:(1===t.markers.length?t.marker=t.markers[0]:(t.marker=this.renderer.render(t,o),this.onClusterClick&&t.marker.addListener("click",s=>{google.maps.event.trigger(this,a.zb.CLUSTER_CLICK,t),this.onClusterClick(s,t,e)})),t.marker.setMap(e),i[s]=t.marker)}),Object.keys(this.renderedMarkers)))i[t]||(this.renderedMarkers[t].setMap(null),delete this.renderedMarkers[t]);this.renderedMarkers=i}google.maps.event.trigger(this,a.zb.CLUSTERING_END,this)}}constructor(...e){super(...e),this.renderedMarkers={}}}class m extends google.maps.Map{setPadding(e,t){this.paddingLeft=t,this.paddingTop=e}setFitTop(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,s=this.getDiv().clientHeight-this.paddingTop,o=s/2;this.offsetPixelsHeight=0,this.offsetPixelsWidth=0,o<e+t&&(e+t+30>s&&(t=e+30>s?0:s-e),this.offsetPixelsHeight=e-o+t)}calcOffset(e){let t,s,o,i=e.lat;e.lng;let n=0,a=0,l=this.getZoom();return this.offsetCenter&&this.currentZoom&&this.currentZoom!=l&&(t=Math.cos(i*Math.PI/180),o=(s=360/Math.pow(2,this.currentZoom+8))*t,a-=(this.offsetPixelsWidth-this.paddingLeft/2)*s,n-=(this.offsetPixelsHeight+this.paddingTop/2)*o),t=Math.cos(i*Math.PI/180),o=(s=360/Math.pow(2,l+8))*t,a+=(this.offsetPixelsWidth-this.paddingLeft/2)*s,n+=(this.offsetPixelsHeight+this.paddingTop/2)*o,this.offsetDegreesX=a,this.offsetDegreesY=n,{x:a,y:n}}setZoom(e){this.usedPadding||this.centerSet?super.setZoom(e):(super.setZoom(e),this.panTo()),this.usedPadding=!1,this.centerSet=!1,this.currentZoom=e}setCenter(e){this.centerSet=!0,super.setCenter(e)}getBounds(){return this.centerSet=!1,super.getBounds()}fitBounds(e,t){t={top:Math.ceil(this.paddingTop)+30,bottom:30,right:30,left:Math.ceil(this.paddingLeft)+30},this.usedPadding=!0,super.fitBounds(e,t)}panTo(e){if(e||(e=this.offsetCenter=this.center),e){if(this.paddingLeft||this.paddingTop||this.offsetPixelsWidth||this.offsetPixelsHeight){let t="function"==typeof e.lat?e.lat():e.lat,s="function"==typeof e.lng?e.lng():e.lng,{x:o,y:i}=this.calcOffset({lat:t,lng:s});super.panTo({lat:t+i,lng:s+o})}else super.panTo(e);this.offsetCenter=null}}constructor(...e){super(...e),this.offsetPixelsWidth=0,this.offsetPixelsHeight=0,this.offsetDegreesX=0,this.offsetDegreesY=0,this.paddingLeft=0,this.paddingTop=0,this.usedPadding=!1,this.centerSet=!1}}class u extends google.maps.OverlayView{setInfo(e,t){this.setMap(null),this.position=t.getPosition(),this.data=e,this.marker=t,this.setMap(this.theMap)}panTo(){if(this.div){let s=300,o=300;this.div.children.length&&this.div.children[0].clientHeight&&(s=this.div.children[0].clientHeight,o=this.div.children[0].clientWidth),this.theMap.setFitTop(s);var e=L.getBoundingClientRect(),t=this.div.getBoundingClientRect();let i=e.left+o/2+this.theMap.paddingLeft+20,n=e.right-o/2-60,a=e.top+s+Math.max(this.theMap.paddingTop+20,60),l=e.bottom-20;(t.x<i||t.x>n||t.y<a||t.y>l)&&this.theMap.panTo(this.position)}}onAdd(){this.div=document.createElement("div"),this.div.style.position="absolute",this.div.style.zIndex="9999999",this.div.addEventListener("dblclick",e=>e.stopPropagation()),this.div.addEventListener("contextmenu",e=>e.stopPropagation()),this.div.addEventListener("mousedown",e=>e.stopPropagation()),this.div.addEventListener("mouseup",e=>e.stopPropagation()),this.div.addEventListener("touchstart",e=>e.stopPropagation()),this.div.addEventListener("click",e=>e.stopPropagation()),this.div.append(s(this.data)),this.getPanes().floatPane.appendChild(this.div),this.marker&&(this.marker.setOpacity(0),this.marker.setClickable(!1)),setTimeout(this.panTo.bind(this),10)}draw(){let e=this.getProjection().fromLatLngToDivPixel(this.position);this.div&&(this.div.style.left=e.x+"px",this.div.style.top=e.y+"px")}onRemove(){this.marker&&(this.marker.setOpacity(1),this.marker.setClickable(!0)),this.div&&(this.div.parentNode.removeChild(this.div),delete this.div),this.theMap.setFitTop(0)}constructor(e){super(),this.theMap=e}}var v,f,y,w,L=document.getElementById("map");L.classList.add("storesMap");var M=new m(L,{zoom:5,mapTypeId:"roadmap",clickableIcons:!1,styles:[{featureType:"poi",stylers:[{visibility:"off"}]}],gestureHandling:"greedy",streetViewControl:!0,streetViewControlOptions:{position:google.maps.ControlPosition.RIGHT_BOTTOM},zoomControl:!1,zoomControlOptions:{position:google.maps.ControlPosition.BOTTOM_RIGHT},fullscreenControl:!0,fullscreenControlOptions:{position:google.maps.ControlPosition.LEFT_BOTTOM}
1,minZoom:5,maxZoom:17,scaleControl:!0,keyboardShortcuts:!1,cameraControl:!0,cameraControlOptions:{position:google.maps.ControlPosition.BOTTOM_CENTER},mapTypeControl:!1,tilt:0,rotateControl:!1,rotateControlOptions:{position:3}}),C=new google.maps.Marker({icon:{path:"M20,0c1.4,0,2.5,1.1,2.5,2.5v2.7c6.3,1,11.2,6,12.3,12.3h2.7c1.4,0,2.5,1.1,2.5,2.5s-1.1,2.5-2.5,2.5h-2.7 c-1,6.3-6,11.2-12.3,12.3v2.7c0,1.4-1.1,2.5-2.5,2.5s-2.5-1.1-2.5-2.5v-2.7c-6.3-1-11.2-6-12.3-12.3H2.5C1.1,22.5,0,21.4,0,20 s1.1-2.5,2.5-2.5h2.7c1-6.3,6-11.2,12.3-12.3V2.5C17.5,1.1,18.6,0,20,0z M10,20c0,5.5,4.5,10,10,10s10-4.5,10-10s-4.5-10-10-10 S10,14.5,10,20z M20,24.2c-2.3,0-4.2-1.9-4.2-4.2s1.9-4.2,4.2-4.2s4.2,1.9,4.2,4.2S22.3,24.2,20,24.2z",fillColor:"white",fillOpacity:.8,strokeWeight:1,strokeColor:"#000",strokeOpacity:.5,rotation:0,scale:.8,anchor:new google.maps.Point(20,20)},zIndex:999999,clickable:!1,map:M});let k=document.createElement("div"),T=function(e){let t=document.createElement("button");return t.style.backgroundImage="url('/images/locations/satellite.png')",t.style.backgroundSize="cover",t.style.width="40px",t.style.height="40px",t.style.margin="10px",t.style.borderRadius="2px",t.style.filter="brightness(1.1)",t.style.boxShadow="rgba(0, 0, 0, 0.3) 0px 1px 4px -1px",t.title="Show imagery with street names",t.type="button",t.addEventListener("mouseover",()=>{t.style.filter=""}),t.addEventListener("mouseout",()=>{t.style.filter="brightness(1.1)"}),t.addEventListener("click",()=>{"roadmap"==e.getMapTypeId()?(e.setMapTypeId("hybrid"),t.style.backgroundImage="url('/images/locations/default.png')",t.title="Show street map"):(e.setMapTypeId("roadmap"),t.style.backgroundImage="url('/images/locations/satellite.png')",t.title="Show imagery with street names")}),t}(M);k.appendChild(T),M.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(k);var x=document.createElement("div");x.className="storesMapControlParent";var P=document.createElement("div");P.className="storesMapControl";var b=document.createElement("div");b.className="storesMapControlSearch",x.append(P),P.append(b);var E=!1;let B=async()=>{E?(R.style.display="none",E=!1,Z.classList.remove("_active"),Q()):i&&o&&(R.style.display="block",E=!0,Z.classList.add("_active"),Q())};var S=!0,I=!0;let _=async e=>{let t=!1;"on"==e?S&&I?(S=!1,t=!0,O.classList.remove("_active")):S||(S=!0,t=!0,O.classList.add("_active")):"off"!=e||(S&&I?(I=!1,t=!0,z.classList.remove("_active")):I||(I=!0,t=!0,z.classList.add("_active"))),t&&(S&&!I?(O.style.cursor="not-allowed",z.style.cursor=void 0):I&&!S?(z.style.cursor="not-allowed",O.style.cursor=void 0):(O.style.cursor="pointer",z.style.cursor="pointer"),await Y(),o&&setTimeout(()=>G(o),100))};var N=document.createElement("div");N.className="storesMapControlSearchInput";var O=document.createElement("div");O.className="storesMapControlSearchFilterOn storesMapControlSearchButton".concat(S?" _active":""),O.innerHTML="".concat(r,'<div class="toolTip">Filter bars/restaurants</div>'),O.onclick=()=>_("on"),b.appendChild(O);var z=document.createElement("div");z.className="storesMapControlSearchFilterOff storesMapControlSearchButton".concat(I?" _active":""),z.innerHTML="".concat(c,'<div class="toolTip">Filter stores</div>'),z.onclick=()=>_("off"),b.appendChild(z);var H=document.createElement("input");H.spellcheck=!1,H.placeholder="Search for location",N.appendChild(H),b.appendChild(N);var D=document.createElement("div");D.className="storesMapControlSearchCrosshairs storesMapControlSearchButton",D.innerHTML="".concat('<?xml version="1.0" encoding="utf-8"?>\n<svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n x="0px" y="0px" viewBox="0 0 40 40" overflow="visible" xml:space="preserve">\n<path d="M20,0c1.4,0,2.5,1.1,2.5,2.5v2.7c6.3,1,11.2,6,12.3,12.3h2.7c1.4,0,2.5,1.1,2.5,2.5s-1.1,2.5-2.5,2.5h-2.7\n c-1,6.3-6,11.2-12.3,12.3v2.7c0,1.4-1.1,2.5-2.5,2.5s-2.5-1.1-2.5-2.5v-2.7c-6.3-1-11.2-6-12.3-12.3H2.5C1.1,22.5,0,21.4,0,20\n s1.1-2.5,2.5-2.5h2.7c1-6.3,6-11.2,12.3-12.3V2.5C17.5,1.1,18.6,0,20,0z M10,20c0,5.5,4.5,10,10,10s10-4.5,10-10s-4.5-10-10-10\n S10,14.5,10,20z M20,24.2c-2.3,0-4.2-1.9-4.2-4.2s1.9-4.2,4.2-4.2s4.2,1.9,4.2,4.2S22.3,24.2,20,24.2z"/>\n</svg>','<div class="toolTip"/>'),D.onclick=()=>J(!0),b.appendChild(D);var R=document.createElement("div");R.className="storesMapControlList",P.appendChild(R);var Z=document.createElement("div");Z.className="storesMapControlToggleList",Z.style.display="none",Z.onclick=()=>B(),P.appendChild(Z),x.style.visibility="hidden",L.appendChild(x),M.controls[google.maps.ControlPosition.TOP_LEFT].push(x),google.maps.event.addListenerOnce(M,"tilesloaded",function(){setTimeout(()=>{x.style.visibility&&(x.style.visibility=void 0)},1e3)});var F=new google.maps.places.Autocomplete(H,{fields:["geometry"],strictBounds:!0,types:["(regions)"],componentRestrictions:{country:"US"}});function A(e,t){var s=e.lat()*(Math.PI/180),o=t.lat()*(Math.PI/180),i=o-s,n=(t.lng()-e.lng())*(Math.PI/180);return 7917.6*Math.asin(Math.sqrt(Math.sin(i/2)*Math.sin(i/2)+Math.cos(s)*Math.cos(o)*Math.sin(n/2)*Math.sin(n/2)))}F.addListener("place_changed",async function(){var e,t;let s=await F.getPlace();if(null===(e=s.geometry)||void 0===e?void 0:e.location){let e=s.geometry.viewport;o=null===(t=s.geometry)||void 0===t?void 0:t.location;
1let n=e.getNorthEast(),a=e.getSouthWest(),l=e.getCenter(),r=new google.maps.LatLng({lat:n.lat(),lng:l.lng()}),c=new google.maps.LatLng({lat:a.lat(),lng:l.lng()}),d=new google.maps.LatLng({lat:l.lat(),lng:n.lng()}),p=new google.maps.LatLng({lat:l.lat(),lng:a.lng()}),g=google.maps.geometry.spherical.computeDistanceBetween(r,o),h=google.maps.geometry.spherical.computeDistanceBetween(d,o),m=google.maps.geometry.spherical.computeDistanceBetween(c,o),u=google.maps.geometry.spherical.computeDistanceBetween(p,o);4e3>Math.min(g,h,m,u)&&(e=$(o,Math.max(g,h,m,u,4e3))),i=e=ee(o,e),M.fitBounds(e),j&&j.setMap(null),C.setPosition(o),G(o,i)}}),H.addEventListener("keydown",e=>{let t=document.getElementsByClassName("pac-item").length,s=document.getElementsByClassName("pac-item-selected").length;t&&"Enter"===e.key&&(s||e.target.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowDown",code:"ArrowDown",keyCode:40})),e.target.blur())}),H.addEventListener("focus",e=>e.target.select());let V={},W=[],G=(e,t)=>{let s=[],n=M.getBounds();e||(e=o),t||(t=i||n),W.filter(e=>e.visible).forEach(o=>{if(t.contains(o.getPosition())){let t;e&&(t=A(e,o.getPosition()).toFixed(2)),s.push({distance:t,marker:o,...V[o.id]})}}),s.sort(function(e,t){return e.distance-t.distance}),R.innerHTML="",R.scrollTo(0,0),U(s)},U=e=>{let s=e.splice(0,50);s.length?(Z.style.display="flex",s.map(e=>{let s=document.createElement("div");if(s.className="storesMapControlListItem",e.error)s.innerHTML='<div class="storesMapControlListItemTitle"><h4>Error: location permission denied</h4></div><p>To use this feature please enable the location permissions</p>';else{let o=I&&S?"on"==e.type.toLowerCase()?r:c:"",i="";i="apple"==t?"https://maps.apple.com/directions?destination=".concat(e.latitude,",").concat(e.longitude):"https://www.google.com/maps/dir/?api=1&destination=".concat(e.latitude,",").concat(e.longitude),s.innerHTML='<div class="storesMapControlListItemTitle"><h4>'.concat(o).concat(e.name,"</h4></div><p>").concat(e.address,'</p><div class="storeInfoLinks"><a href="').concat(i,'" target="_blank" class="btn">Directions</a> <p style="margin:auto;margin-right:0;margin-bottom:0;">').concat(e.distance," miles away</p></div>"),s.onclick=()=>K(e.marker)}R.append(s)})):Z.style.display="none",setTimeout(Q,500)},j=new u(M),K=e=>{j&&j.setInfo(V[e.id],e)},q=async()=>{let t=await fetch("/api/locations/").then(e=>e.json()).then(function(e){return e});y=(null==e?void 0:e.retailer)==="costco"?t.filter(e=>e.name&&e.name.toLowerCase().includes("costco")):t},X=()=>{W.length=0,Object.keys(V).forEach(e=>delete V[e]),w&&w.clearMarkers()},Y=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(X(),y||await q(),y.filter(e=>S&&"on"==e.type.toLowerCase()||I&&"off"==e.type.toLowerCase()).map(s=>{if(!V[s.id]){let o=parseFloat(s.longitude),i=parseFloat(s.latitude);if(!t||o>t.west&&o<t.east&&i>t.south&&i<t.north){let t;let n=(s.name||"").toLowerCase(),a=(s.state||"").trim().toUpperCase(),l="US"===((null==e?void 0:e.country)||"").toUpperCase(),r="NV"===a||/,\s*NV\s*,?\s*\d{5}/i.test(s.address||"");t=l&&n.includes("costco wholesale")?"/images/locations/costco-pin.svg":l&&n.includes("total wine")?"/images/locations/totalwine-pin.svg":l&&(n.includes("smart & final")||n.includes("smart and final"))?"/images/locations/smart-final-pin.svg":l&&r?"/images/locations/raiders-pin.svg":"on"===s.type.toLowerCase()?l?"/images/locations/on-premise-pin.svg":"/images/locations/pin-on.svg":l?"/images/locations/off-premise-pin.svg":"/images/locations/pin-off.svg";let c=new google.maps.Marker({position:{lng:o,lat:i},icon:t,optimized:!0});c.set("id",s.id),c.addListener("click",()=>K(c)),V[s.id]=s,W.push(c)}}}),w)?w.addMarkers(W):w=new h({map:M,markers:W,algorithm:new g({maxZoom:11,gridSize:26,viewportPadding:240,maxDistance:1e3}),renderer:{render(e,t){let{count:s,position:o}=e;return new google.maps.Marker({position:o,optimized:!0,icon:s>100?"/images/locations/l.svg":s>10?"/images/locations/m.svg":"/images/locations/s.svg",label:{text:String(s),color:"white",fontSize:"14px"},zIndex:1e3+s})}},onClusterClick:(e,t,s)=>{let o=s.getZoom();j&&j.setMap(null),s.fitBounds(t.bounds),o>=s.getZoom()&&(s.setZoom(o+1),s.panTo(t.position))}})},Q=()=>{var e=L.getBoundingClientRect(),t=P.getBoundingClientRect();if(t&&e){let s=0,o=0;e.width-t.width<100?o=t.y-e.y+t.height:s=t.x+t.width,M.setPadding(o,s)}};addEventListener("resize",Q,{passive:!0}),M.addListener("click",function(e){j&&j.setMap(null)});let J=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3;if(navigator.geolocation){let n=!1;if(e||(n=await navigator.permissions.query({name:"geolocation"}).then(e=>"granted"==e.state)),e||n)try{let e=await new Promise((e,s)=>{navigator.geolocation.getCurrentPosition(e,s,{timeout:t})});if(e.coords){o=new google.maps.LatLng({lng:e.coords.longitude,lat:e.co
1ords.latitude}),C.setPosition(o),H.value="";let t=e.coords.accuracy||0;var s=$(o,Math.max(3220,t));return i=ee(o,s),M.fitBounds(i),G(o,i),D.classList.contains("_error")&&D.classList.remove("_error"),!0}}catch(e){3!=e.code&&(D.classList.add("_error","_hover"),setTimeout(()=>{D.classList.remove("_hover")},3e3))}}return!1},$=(e,t)=>{let s=1.414*t;var o=new google.maps.LatLngBounds,i=google.maps.geometry.spherical.computeOffset(e,s,45);o.extend(i);var n=google.maps.geometry.spherical.computeOffset(e,s,225);return o.extend(n),o},ee=(e,t)=>{var s=[],o=0;for(let n=0;n<W.length;n++){t.contains(W[n].position)&&o++;var i=google.maps.geometry.spherical.computeDistanceBetween(W[n].position,e);s[n]={distance:i,marker:W[n]}}if(o<3){var n=s.sort((e,t)=>e.distance-t.distance);let o=48e3,i=n.filter(e=>e.distance<o);if(i.length){let e=i[Math.min(i.length-1,2)];(null==e?void 0:e.distance)&&(o=(null==e?void 0:e.distance)*1.05)}t=$(e,o)}return t};if(await q(),await Y(),Q(),!await J(!1,2e3)){if(e){if(e.latitude&&e.longitude&&e.accuracyRadius){var et=1e3*Math.max(4,1.2*e.accuracyRadius);let t={lng:e.longitude,lat:e.latitude};var es=$(t,et);es=ee(t,es),M.fitBounds(es)}else if(e.country){if(!e.subdivision&&l[e.country])M.fitBounds(l[e.country]);else{let t=new google.maps.Geocoder,s={componentRestrictions:{country:e.country}};e.subdivision&&(s.componentRestrictions.administrativeArea=e.subdivision),t.geocode(s,function(e,t){if("OK"==t){var s;if(1==e.length?e[0].geometry.bounds:null===(s=e.find(e=>e.types.includes("administrative_area_level_1")))||void 0===s?void 0:s.geometry.bounds){M.fitBounds(e[0].geometry.bounds);return}}M.panTo({lat:35.4898068,lng:-101.9076059})})}}}else M.panTo({lat:35.4898068,lng:-101.9076059})}document.onfullscreenchange=function(e){let t=e.target;if(document.getElementsByClassName("pac-container").length>0){let e=document.getElementsByClassName("pac-container")[0];e.parentElement===t?document.getElementsByTagName("body")[0].appendChild(e):t.appendChild(e)}}}}}]);
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.