!function(e,s){"use strict";var o;e=e&&e.hasOwnProperty("default")?e.default:e;function t(t,e){var n=e.type,a=e.center,r=e.zoom,i=e.zooming,p=e.dragging,l=e.controls,m=e.markers,g=e.styler_invert_lightness,c=e.styler_hue,u=e.styler_saturation,d=e.styler_lightness,h=e.styler_gamma,y=e.popup_max_width;(o=o||new s.Promise(function(e){google.load("maps","3",{other_params:"key="+window.$google_maps,callback:e})})).then(function(){var e=new google.maps.LatLng(a.lat,a.lng),s=new google.maps.Map(t,{zoom:Number(r),center:e,mapTypeId:google.maps.MapTypeId[n.toUpperCase()],disableDefaultUI:!l,gestureHandling:p||i?"auto":"none"});m&&m.forEach(function(e){var o=e.lat,t=e.lng,n=e.content,a=e.show_popup,r=new google.maps.Marker({map:s,position:new google.maps.LatLng(o,t)});if(n){var i=new google.maps.InfoWindow({content:n,maxWidth:y?parseInt(y,10):300});google.maps.event.addListener(r,"click",function(){return i.open(s,r)}),a&&i.open(s,r)}});var o=new google.maps.StyledMapType([{featureType:"all",elementType:"all",stylers:[{invert_lightness:g},{hue:c},{saturation:u},{saturation:u},{lightness:d},{gamma:h}]},{featureType:"poi",stylers:[{visibility:"off"}]}],{name:"Styled"});s.mapTypes.set("styled_map",o),"ROADMAP"===n.toUpperCase()&&s.setMapTypeId("styled_map")})}function n(e,o){var t,n;(t=o.baseUrl,n=t+"/leaflet.css",s.$('link[href="'+n+'"]')?s.Promise.resolve():new s.Promise(function(e){return s.once(s.append(document.head,'<link href="'+n+'" rel="stylesheet">'),"load",e)})).then(function(){return function(e,o){var t=o.type,n=o.center,a=o.zoom,r=o.zooming,i=o.dragging,s=o.controls,p=o.markers,l=o.popup_max_width,m=o.baseUrl;L.Icon.Default.imagePath=m+"/images/";var g=L.map(e,{zoom:a,center:n,dragging:i,zoomControl:s,touchZoom:r,scrollWheelZoom:r,doubleClickZoom:r,imagePath:"foo"});"satellite"===t?L.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",{attribution:'&copy; <a href="https://www.esri.com">Esri</a> | DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community'}).addTo(g):L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a>'}).addTo(g);p&&p.forEach(function(e){var o=e.lat,t=e.lng,n=e.content,a=e.show_popup,r=L.marker({lat:o,lng:t}).addTo(g);if(n){var i=L.popup({maxWidth:l?parseInt(l,10):300}).setContent(n);r.bindPopup(i),a&&r.openPopup()}})}(e,o)})}e.component("map",{props:{map:Object},connected:function(){var t=this;requestAnimationFrame(function(){t.map.lazyload?new s.IntersectionObserver(function(e,o){e.some(function(e){return e.isIntersecting})&&(t.load(),o.disconnect())},{rootMargin:window.innerHeight/2+"px 0px"}).observe(t.$el):t.load()})},methods:{load:function(){window.L?n(this.$el,this.map):window.google&&window.$google_maps&&t(this.$el,this.map)}}})}(UIkit,UIkit.util);