@inlog/inlog-maps 5.0.2 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("InlogMaps",[],e):"object"==typeof exports?exports.InlogMaps=e():t.InlogMaps=e()}(this,function(){return function(t){function e(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var o={};return e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=42)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.latlng=t}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t[t.Click=0]="Click",t[t.ZoomChanged=1]="ZoomChanged"}(e.MapEventType||(e.MapEventType={}));!function(t){t[t.Click=0]="Click",t[t.RightClick=1]="RightClick",t[t.AfterDrag=2]="AfterDrag",t[t.MouseOver=3]="MouseOver",t[t.MouseOut=4]="MouseOut",t[t.BeforeDrag=5]="BeforeDrag"}(e.MarkerEventType||(e.MarkerEventType={}));!function(t){t[t.Click=0]="Click",t[t.CenterChanged=1]="CenterChanged",t[t.RadiusChanged=2]="RadiusChanged"}(e.CircleEventType||(e.CircleEventType={}));!function(t){t[t.SetAt=0]="SetAt",t[t.InsertAt=1]="InsertAt",t[t.RemoveAt=2]="RemoveAt",t[t.DragPolygon=3]="DragPolygon",t[t.Click=4]="Click"}(e.PolygonEventType||(e.PolygonEventType={}));!function(t){t[t.SetAt=0]="SetAt",t[t.InsertAt=1]="InsertAt",t[t.RemoveAt=2]="RemoveAt",t[t.DragPolyline=3]="DragPolyline"}(e.PolylineEventType||(e.PolylineEventType={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t[t.Google=0]="Google",t[t.Leaflet=1]="Leaflet"}(e.MapType||(e.MapType={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t[t.Dashed=0]="Dashed",t[t.Dotted=1]="Dotted",t[t.Arrow=2]="Arrow"}(e.PolylineType||(e.PolylineType={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o){this.clusterZoomOnClick=t,this.clusterMinSize=e,this.clusterMaxZoom=o}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a,l,s,p,c,u,g){this.path=t,this.addToMap=e,this.fitBounds=o,this.editable=n,this.draggable=i,this.color=r,this.weight=a,this.object=l,this.infowindows=s,this.navigateOptions=p,this.style=c,this.opacity=u,this.zIndex=g}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(2),i=o(41),r=function(){function t(){}return t.loadGoogleAPI=function(t){var e=document.createElement("script");e.type="text/javascript",e.setAttribute("data-google-inlogmaps","true"),e.src=i.urlBuilder({apiKey:t.apiKey,base:"https://maps.googleapis.com/maps/api/js",callback:"mapsAPILoadCallback",client:t.client,language:t.language,libraries:t.libraries||[]}),document.querySelector("script").hasAttribute("data-google-inlogmaps")||document.querySelector("head").appendChild(e)},t.loadLeafletAPI=function(t){var e=document.createElement("link");e.rel="stylesheet",e.href="https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.css",document.querySelector("head").appendChild(e);var o=document.createElement("script");o.type="text/javascript",o.src=i.urlBuilder({base:"https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.js",callback:"mapsAPILoadCallback"}),document.querySelector("head").appendChild(o)},t.prototype.loadApi=function(e,o){if(t.mapsApi)return Promise.resolve(t.mapsApi);t.windowRef=window||{api:null,mapsAPILoadCallback:null};var i=function(i,r){e===n.MapType.Google?t.loadGoogleAPI(o):t.loadLeafletAPI(o),e===n.MapType.Leaflet?setTimeout(function(){t.mapsApi=t.windowRef.L,i(t.mapsApi)},2e3):t.windowRef.mapsAPILoadCallback=function(){t.mapsApi=t.windowRef.google,i(t.mapsApi)},setTimeout(function(){t.windowRef.api||r(new Error("Loading took too long"))},5e3)};return new Promise(i)},t.windowRef=null,t.mapsApi=null,t}();e.MapsApiLoaderService=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(9);e.Map=n.default;var i=o(28);e.CircleAlterOptions=i.default;var r=o(29);e.CircleOptions=r.default;var a=o(0);e.EventReturn=a.default;var l=o(30);e.GeoJsonOptions=l.default;var s=o(31);e.CircleMarkerOptions=s.default;var p=o(32);e.CircleMarkerStyle=p.default;var c=o(33);e.MarkerAlterOptions=c.default;var u=o(34);e.MarkerIcon=u.default;var g=o(35);e.MarkerOptions=g.default;var h=o(36);e.OverlayOptions=h.default;var d=o(37);e.PolygonAlterOptions=d.default;var f=o(38);e.PolygonOptions=f.default;var y=o(39);e.NavigationOptions=y.default;var v=o(5);e.PolylineOptions=v.default;var m=o(40);e.PopupOptions=m.default;var P=o(4);e.MarkerClustererConfig=P.default;var k=o(1);e.MarkerEventType=k.MarkerEventType,e.CircleEventType=k.CircleEventType,e.PolygonEventType=k.PolygonEventType,e.PolylineEventType=k.PolylineEventType,e.MapEventType=k.MapEventType;var w=o(2);e.MapType=w.MapType;var M=o(3);e.PolylineType=M.PolylineType},function(t,e,o){function n(t,e){t.getMarkerClusterer().extend(n,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}function i(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinimumClusterSize(),this.averageCenter_=t.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new n(this,t.getStyles())}function r(t,e,o){this.extend(r,google.maps.OverlayView),e=e||[],o=o||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=o.gridSize||60,this.minClusterSize_=o.minimumClusterSize||2,this.maxZoom_=o.maxZoom||null,this.styles_=o.styles||[],this.title_=o.title||"",this.zoomOnClick_=!0,void 0!==o.zoomOnClick&&(this.zoomOnClick_=o.zoomOnClick),this.averageCenter_=!1,void 0!==o.averageCenter&&(this.averageCenter_=o.averageCenter),this.ignoreHidden_=!1,void 0!==o.ignoreHidden&&(this.ignoreHidden_=o.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==o.enableRetinaIcons&&(this.enableRetinaIcons_=o.enableRetinaIcons),this.imagePath_=o.imagePath||r.IMAGE_PATH,this.imageExtension_=o.imageExtension||r.IMAGE_EXTENSION,this.imageSizes_=o.imageSizes||r.IMAGE_SIZES,this.calculator_=o.calculator||r.CALCULATOR,this.batchSize_=o.batchSize||r.BATCH_SIZE,this.batchSizeIE_=o.batchSizeIE||r.BATCH_SIZE_IE,this.clusterClass_=o.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(e,!0),this.setMap(t)}n.prototype.onAdd=function(){var t,e,o=this,n=google.maps.version.split(".");n=parseInt(100*n[0],10)+parseInt(n[1],10),this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){e=t}),google.maps.event.addDomListener(this.div_,"mousedown",function(){t=!0,e=!1}),n>=332&&google.maps.event.addDomListener(this.div_,"touchstart",function(t){t.stopPropagation()}),google.maps.event.addDomListener(this.div_,"click",function(n){if(t=!1,!e){var i,r,a=o.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"click",o.cluster_),google.maps.event.trigger(a,"clusterclick",o.cluster_),a.getZoomOnClick()&&(r=a.getMaxZoom(),i=o.cluster_.getBounds(),a.getMap().fitBounds(i),setTimeout(function(){a.getMap().fitBounds(i),null!==r&&a.getMap().getZoom()>r&&a.getMap().setZoom(r+1)},100)),n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){var t=o.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseover",o.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){var t=o.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseout",o.cluster_)})},n.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px",this.div_.style.zIndex=google.maps.Marker.MAX_ZINDEX+1}},n.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},n.prototype.show=function(){if(this.div_){var t="",e=this.backgroundPosition_.split(" "),o=parseInt(e[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(e[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(i),t="<img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+o+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_?t+="width: "+this.width_+"px; height: "+this.height_+"px;":t+="clip: rect("+-1*n+"px, "+(-1*o+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*o+"px);",t+="'>",this.div_.innerHTML=t+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>",void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},n.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e);var o=this.styles_[e];this.url_=o.url,this.height_=o.height,this.width_=o.width,this.anchorText_=o.anchorText||[0,0],this.anchorIcon_=o.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=o.textColor||"black",this.textSize_=o.textSize||11,this.textDecoration_=o.textDecoration||"none",this.fontWeight_=o.fontWeight||"bold",this.fontStyle_=o.fontStyle||"normal",this.fontFamily_=o.fontFamily||"Arial,sans-serif",this.backgroundPosition_=o.backgroundPosition||"0 0"},n.prototype.setCenter=function(t){this.center_=t},n.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width_+"px; height: "+this.height_+"px;"),e.push("-webkit-user-select: none;"),e.push("-khtml-user-select: none;"),e.push("-moz-user-select: none;"),e.push("-o-user-select: none;"),e.push("user-select: none;"),e.join("")},n.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},i.prototype.getSize=function(){return this.markers_.length},i.prototype.getMarkers=function(){return this.markers_},i.prototype.getCenter=function(){return this.center_},i.prototype.getMap=function(){return this.map_},i.prototype.getMarkerClusterer=function(){return this.markerClusterer_},i.prototype.getBounds=function(){var t,e=new google.maps.LatLngBounds(this.center_,this.center_),o=this.getMarkers();for(t=0;t<o.length;t++)e.extend(o[t].getPosition());return e},i.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},i.prototype.addMarker=function(t){var e,o,n;if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var i=this.markers_.length+1,r=(this.center_.lat()*(i-1)+t.getPosition().lat())/i,a=(this.center_.lng()*(i-1)+t.getPosition().lng())/i;this.center_=new google.maps.LatLng(r,a),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();if(t.isAdded=!0,this.markers_.push(t),o=this.markers_.length,null!==(n=this.markerClusterer_.getMaxZoom())&&this.map_.getZoom()>n)t.getMap()!==this.map_&&t.setMap(this.map_);else if(o<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(o===this.minClusterSize_)for(e=0;e<o;e++)this.markers_[e].setMap(null);else t.setMap(null);return this.updateIcon_(),!0},i.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},i.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},i.prototype.updateIcon_=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)return void this.clusterIcon_.hide();if(t<this.minClusterSize_)return void this.clusterIcon_.hide();var o=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,o);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()},i.prototype.isMarkerAlreadyAdded_=function(t){var e;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},r.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){var t=this.getMap().getZoom(),e=this.getMap().minZoom||0,o=Math.min(this.getMap().maxZoom||100,this.getMap().mapTypes[this.getMap().getMapTypeId()].maxZoom);t=Math.min(Math.max(t,e),o),this.prevZoom_!=t&&(this.prevZoom_=t,this.resetViewport_(!1))}.bind(this)),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw_()})]},r.prototype.onRemove=function(){var t;for(t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},r.prototype.draw=function(){},r.prototype.setupStyles_=function(){var t,e;if(!(this.styles_.length>0))for(t=0;t<this.imageSizes_.length;t++)e=this.imageSizes_[t],this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:e,width:e})},r.prototype.fitMapToMarkers=function(){var t,e=this.getMarkers(),o=new google.maps.LatLngBounds;for(t=0;t<e.length;t++)!e[t].getVisible()&&this.getIgnoreHidden()||o.extend(e[t].getPosition());this.getMap().fitBounds(o)},r.prototype.getGridSize=function(){return this.gridSize_},r.prototype.setGridSize=function(t){this.gridSize_=t},r.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},r.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},r.prototype.getMaxZoom=function(){return this.maxZoom_},r.prototype.setMaxZoom=function(t){this.maxZoom_=t},r.prototype.getStyles=function(){return this.styles_},r.prototype.setStyles=function(t){this.styles_=t},r.prototype.getTitle=function(){return this.title_},r.prototype.setTitle=function(t){this.title_=t},r.prototype.getZoomOnClick=function(){return this.zoomOnClick_},r.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},r.prototype.getAverageCenter=function(){return this.averageCenter_},r.prototype.setAverageCenter=function(t){this.averageCenter_=t},r.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},r.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},r.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},r.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},r.prototype.getImageExtension=function(){return this.imageExtension_},r.prototype.setImageExtension=function(t){this.imageExtension_=t},r.prototype.getImagePath=function(){return this.imagePath_},r.prototype.setImagePath=function(t){this.imagePath_=t},r.prototype.getImageSizes=function(){return this.imageSizes_},r.prototype.setImageSizes=function(t){this.imageSizes_=t},r.prototype.getCalculator=function(){return this.calculator_},r.prototype.setCalculator=function(t){this.calculator_=t},r.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},r.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},r.prototype.getClusterClass=function(){return this.clusterClass_},r.prototype.setClusterClass=function(t){this.clusterClass_=t},r.prototype.getMarkers=function(){return this.markers_},r.prototype.getTotalMarkers=function(){return this.markers_.length},r.prototype.getClusters=function(){return this.clusters_},r.prototype.getTotalClusters=function(){return this.clusters_.length},r.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},r.prototype.addMarkers=function(t,e){var o;for(o in t)t.hasOwnProperty(o)&&this.pushMarkerTo_(t[o]);e||this.redraw_()},r.prototype.pushMarkerTo_=function(t){if(t.getDraggable()){var e=this;google.maps.event.addListener(t,"dragend",function(){e.ready_&&(this.isAdded=!1,e.repaint())})}t.isAdded=!1,this.markers_.push(t)},r.prototype.removeMarker=function(t,e){var o=this.removeMarker_(t);return!e&&o&&this.repaint(),o},r.prototype.removeMarkers=function(t,e){var o,n,i=!1;for(o=0;o<t.length;o++)n=this.removeMarker_(t[o]),i=i||n;return!e&&i&&this.repaint(),i},r.prototype.removeMarker_=function(t){var e,o=-1;if(this.markers_.indexOf)o=this.markers_.indexOf(t);else for(e=0;e<this.markers_.length;e++)if(t===this.markers_[e]){o=e;break}return-1!==o&&(t.setMap(null),this.markers_.splice(o,1),!0)},r.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},r.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){var e;for(e=0;e<t.length;e++)t[e].remove()},0)},r.prototype.getExtendedBounds=function(t){var e=this.getProjection(),o=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(o);i.x+=this.gridSize_,i.y-=this.gridSize_;var r=e.fromLatLngToDivPixel(n);r.x-=this.gridSize_,r.y+=this.gridSize_;var a=e.fromDivPixelToLatLng(i),l=e.fromDivPixelToLatLng(r);return t.extend(a),t.extend(l),t},r.prototype.redraw_=function(){this.createClusters_(0)},r.prototype.resetViewport_=function(t){var e,o;for(e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e<this.markers_.length;e++)o=this.markers_[e],o.isAdded=!1,t&&o.setMap(null)},r.prototype.distanceBetweenPoints_=function(t,e){var o=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=Math.sin(o/2)*Math.sin(o/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371},r.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},r.prototype.addToClosestCluster_=function(t){var e,o,n,r,a=4e4,l=null;for(e=0;e<this.clusters_.length;e++)n=this.clusters_[e],(r=n.getCenter())&&(o=this.distanceBetweenPoints_(r,t.getPosition()))<a&&(a=o,l=n);l&&l.isMarkerInClusterBounds(t)?l.addMarker(t):(n=new i(this),n.addMarker(t),this.clusters_.push(n))},r.prototype.createClusters_=function(t){var e,o,n,i=this;if(this.ready_){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));var r=this.getExtendedBounds(n),a=Math.min(t+this.batchSize_,this.markers_.length);for(e=t;e<a;e++)o=this.markers_[e],!o.isAdded&&this.isMarkerInBounds_(o,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&o.getVisible())&&this.addToClosestCluster_(o);a<this.markers_.length?this.timerRefStatic=setTimeout(function(){i.createClusters_(a)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},r.prototype.extend=function(t,e){return function(t){var e;for(e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},r.CALCULATOR=function(t,e){for(var o=0,n=t.length.toString(),i=n;0!==i;)i=parseInt(i/10,10),o++;return o=Math.min(o,e),{text:n,index:o,title:""}},r.BATCH_SIZE=2e3,r.BATCH_SIZE_IE=500,r.IMAGE_PATH="https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m",r.IMAGE_EXTENSION="png",r.IMAGE_SIZES=[53,56,66,78,90],t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(10),i=o(19),r=o(2),a=o(4),l=o(5),s=function(){function t(){this.markersList={},this.polygonsList={},this.circlesList={},this.polylinesList={},this.infoWindowList={},this.overlayList={},this.markerClusterer={}}return t.prototype.initialize=function(t,e,o){return void 0===o&&(o="inlog-map"),this.map=t===r.MapType.Google?new n.default:new i.default,this.map.initialize(t,e,o)},t.prototype.loadGEOJson=function(t,e,o){this.map.loadGEOJson(t,e,o)},t.prototype.drawMarker=function(t,e,o){var n=this.map.drawMarker(e,o);this.markersList[t]||(this.markersList[t]=[]),n.type="simple",this.markersList[t].push(n),e.addClusterer&&(this.markerClusterer[t]||this.addMarkerClusterer(t,new a.default(!0,1,10)),this.map.addMarkerOnClusterer(n,this.markerClusterer[t]))},t.prototype.drawCircleMarker=function(t,e,o){var n=this.map.drawCircleMarker(e,o);this.markersList[t]||(this.markersList[t]=[]),n.type="circle",this.markersList[t].push(n)},t.prototype.toggleMarkers=function(t,e,o){var n=this.getMarkers(e,o);n&&n.length&&this.map.toggleMarkers(n,t,this.markerClusterer[e])},t.prototype.removeMarkers=function(t,e){if(this.markersList[t]&&e){var o=this.getMarkers(t,e);this.map.toggleMarkers(o,!1,this.markerClusterer[t]),this.markersList[t]=this.markersList[t].filter(function(t){return!e(t.object)})}else this.markersList[t]&&this.map.toggleMarkers(this.markersList[t],!1,this.markerClusterer[t]),this.markersList[t]=[];0===this.markersList[t].length&&delete this.markersList[t]},t.prototype.removeAllMarkers=function(){for(var t in this.markersList)this.markersList.hasOwnProperty(t)&&this.removeMarkers(t)},t.prototype.alterMarkerOptions=function(t,e,o){var n=this.getMarkers(t,o);n&&n.length&&this.map.alterMarkerOptions(n,e)},t.prototype.alterMarkerPosition=function(t,e,o,n){var i=this.getMarkers(t,n);i&&i.length&&this.map.alterMarkerPosition(i,e,o)},t.prototype.fitBoundsMarkers=function(t,e,o){var n=this;void 0===o&&(o=!0);var i=this.getMarkers(t,e);o&&(i=i.filter(function(t){return n.map.isMarkerOnMap(t)})),i&&i.length&&this.map.fitBoundsPositions(i)},t.prototype.setCenterMarker=function(t,e){if(this.markersList[t]&&e){var o=this.markersList[t].find(function(t){return e(t.object)});this.map.setCenterMarker(o)}else this.markersList[t]&&this.markersList[t].length&&this.map.setCenterMarker(this.markersList[t][0])},t.prototype.markerExists=function(t,e){var o=this.getMarkers(t,e);return o&&o.length>0},t.prototype.countMarkers=function(t,e,o){var n=this;if(void 0===e&&(e=!0),this.markerClusterer[t])return this.map.countMarkersOnCluster(this.markerClusterer[t]);var i=this.getMarkers(t,o);return e&&(i=i.filter(function(t){return n.map.isMarkerOnMap(t)})),i.length},t.prototype.addMarkerEvent=function(t,e,o,n){var i=this.getMarkers(t,n);this.map.addMarkerEvent(i,e,o)},t.prototype.removeMarkerEvent=function(t,e,o){var n=this.getMarkers(t,o);this.map.removeMarkerEvent(n,e)},t.prototype.addMarkerClusterer=function(t,e){this.markerClusterer[t]=this.map.addMarkerClusterer(e)},t.prototype.alterMarkerClustererConfig=function(t,e){this.markerClusterer[t]&&this.map.alterMarkerClustererConfig(this.markerClusterer[t],e)},t.prototype.refreshClusterer=function(t){this.markerClusterer[t]&&this.map.refreshClusterer(this.markerClusterer[t])},t.prototype.clearMarkersClusterer=function(t){this.markerClusterer[t]&&this.map.clearMarkersClusterer(this.markerClusterer[t])},t.prototype.drawPolygon=function(t,e,o){var n=this.map.drawPolygon(e,o);this.polygonsList[t]||(this.polygonsList[t]=[]),this.polygonsList[t].push(n)},t.prototype.togglePolygons=function(t,e,o){var n=this.getPolygons(e,o);n&&n.length&&this.map.togglePolygons(n,t)},t.prototype.removePolygons=function(t,e){if(this.polygonsList[t]&&e){var o=this.getPolygons(t,e);this.map.togglePolygons(o,!1),this.polygonsList[t]=this.polygonsList[t].filter(function(t){return!e(t.object)})}else this.polygonsList[t]&&this.map.togglePolygons(this.polygonsList[t],!1),this.polygonsList[t]=[];0===this.polygonsList[t].length&&delete this.polygonsList[t]},t.prototype.removeAllPolygons=function(){for(var t in this.polygonsList)this.polygonsList.hasOwnProperty(t)&&this.removePolygons(t)},t.prototype.alterPolygonOptions=function(t,e,o){var n=this.getPolygons(t,o);n&&n.length&&this.map.alterPolygonOptions(n,e)},t.prototype.fitBoundsPolygons=function(t,e){var o=this,n=this.getPolygons(t,e).filter(function(t){return o.map.isPolygonOnMap(t)});n&&n.length&&this.map.fitBoundsPolygons(n)},t.prototype.setCenterPolygons=function(t,e){var o=this,n=this.getPolygons(t,e).filter(function(t){return o.map.isPolygonOnMap(t)});n&&n.length&&this.map.setCenterPolygons(n)},t.prototype.polygonExists=function(t,e){var o=this.getPolygons(t,e);return o&&o.length>0},t.prototype.getPolygonPath=function(t,e){var o=this.getPolygons(t,e);if(o&&o.length)return this.map.getPolygonPath(o[0])},t.prototype.addPolygonEvent=function(t,e,o,n){var i=this.getPolygons(t,n);this.map.addPolygonEvent(i,e,o)},t.prototype.removePolygonEvent=function(t,e,o){var n=this.getPolygons(t,o);this.map.removePolygonEvent(n,e)},t.prototype.drawCircle=function(t,e,o){var n=this.map.drawCircle(e,o);this.circlesList[t]||(this.circlesList[t]=[]),this.circlesList[t].push(n)},t.prototype.toggleCircles=function(t,e,o){var n=this.getCircles(e,o);n&&n.length&&this.map.toggleCircles(n,t)},t.prototype.removeCircles=function(t,e){if(this.circlesList[t]&&e){var o=this.getCircles(t,e);this.map.toggleCircles(o,!1),this.circlesList[t]=this.circlesList[t].filter(function(t){return!e(t.object)})}else this.circlesList[t]&&this.map.toggleCircles(this.circlesList[t],!1),this.circlesList[t]=[];0===this.circlesList[t].length&&delete this.circlesList[t]},t.prototype.removeAllCircles=function(){for(var t in this.circlesList)this.circlesList.hasOwnProperty(t)&&this.removeCircles(t)},t.prototype.alterCircleOptions=function(t,e,o){var n=this.getCircles(t,o);n&&n.length&&this.map.alterCircleOptions(n,e)},t.prototype.fitBoundsCircles=function(t,e){var o=this,n=this.getCircles(t,e).filter(function(t){return o.map.isCircleOnMap(t)});n&&n.length&&this.map.fitBoundsCircles(n)},t.prototype.circleExists=function(t,e){var o=this.getCircles(t,e);return o&&o.length>0},t.prototype.getCircleCenter=function(t,e){var o=this.getCircles(t,e);return o&&o.length?this.map.getCircleCenter(o[0]):null},t.prototype.getCircleRadius=function(t,e){var o=this.getCircles(t,e);return o&&o.length?this.map.getCircleRadius(o[0]):null},t.prototype.addCircleEvent=function(t,e,o,n){var i=this.getCircles(t,n);this.map.addCircleEvent(i,e,o)},t.prototype.removeCircleEvent=function(t,e,o){var n=this.getCircles(t,o);this.map.removeCircleEvent(n,e)},t.prototype.drawPolyline=function(t,e,o){var n=this.map.drawPolyline(e,o);this.polylinesList[t]||(this.polylinesList[t]=[]),this.polylinesList[t].push(n)},t.prototype.drawPolylineWithNavigation=function(t,e,o){var n=this.map.drawPolylineWithNavigation(e,o);this.polylinesList[t]||(this.polylinesList[t]=[]),this.polylinesList[t].push(n)},t.prototype.togglePolylines=function(t,e,o){var n=this.getPolylines(e,o);n&&n.length&&this.map.togglePolylines(n,t)},t.prototype.removePolylines=function(t,e){if(this.polylinesList[t]&&e){var o=this.getPolylines(t,e);this.map.togglePolylines(o,!1),this.polylinesList[t]=this.polylinesList[t].filter(function(t){return!e(t.object)})}else this.polylinesList[t]&&this.map.togglePolylines(this.polylinesList[t],!1),this.polylinesList[t]=[];0===this.polylinesList[t].length&&delete this.polylinesList[t]},t.prototype.removeAllPolylines=function(){for(var t in this.polylinesList)this.polylinesList.hasOwnProperty(t)&&this.removePolylines(t)},t.prototype.alterPolylineOptions=function(t,e,o){var n=this.getPolylines(t,o);n&&n.length&&this.map.alterPolylineOptions(n,e)},t.prototype.fitBoundsPolylines=function(t,e){var o=this,n=this.getPolylines(t,e).filter(function(t){return o.map.isPolylineOnMap(t)});n&&n.length&&this.map.fitBoundsPolylines(n)},t.prototype.polylineExists=function(t,e){var o=this.getPolylines(t,e);return o&&o.length>0},t.prototype.addPolylinePath=function(t,e,o){var n=this.getPolylines(t,o);if(n&&n.length)this.map.addPolylinePath(n,e);else{var i=new l.default;i.addToMap=!0,this.drawPolyline(t,i,null)}},t.prototype.getPolylinePath=function(t,e){var o=this.getPolylines(t,e);if(o&&o.length)return this.map.getPolylinePath(o[0])},t.prototype.removePolylineHighlight=function(){this.map.removePolylineHighlight()},t.prototype.addPolylineEvent=function(t,e,o,n){var i=this.getPolylines(t,n);this.map.addPolylineEvent(i,e,o)},t.prototype.removePolylineEvent=function(t,e,o){var n=this.getPolylines(t,o);this.map.removePolylineEvent(n,e)},t.prototype.setIndexPolylineHighlight=function(t,e,o){var n=this.getPolylines(t,o);n&&n.length&&this.map.setIndexPolylineHighlight(n[0],e)},t.prototype.getObjectPolyline=function(t,e){var o=this.getPolylines(t,e);return o&&o.length?this.map.getObjectPolyline(o[0]):null},t.prototype.getObjectPolylineHighlight=function(){return this.map.getObjectPolylineHighlight()},t.prototype.addPolylineHighlightEvent=function(t,e){this.map.addPolylineHighlightEvent(t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.map.getPolylineHighlightIndex()},t.prototype.drawPopup=function(t,e){var o=null;if(e.marker){o=this.getMarkers(e.marker,e.conditionMarker)[0]}var n;n=this.infoWindowList[t]?this.map.alterPopup(this.infoWindowList[t],e,o):this.map.drawPopup(e,o),this.infoWindowList[t]=n},t.prototype.alterPopup=function(t,e){var o,n=this.infoWindowList[t];e.marker&&(o=this.getMarkers(e.marker,e.conditionMarker)),n&&this.map.alterPopupContent(n,e,o?o[0]:null)},t.prototype.getObjectOpenPopup=function(t){return this.infoWindowList[t]?this.infoWindowList[t].object:null},t.prototype.closePopup=function(t){this.infoWindowList[t]&&this.map.closePopup(this.infoWindowList[t])},t.prototype.closeAllPopups=function(){for(var t in this.infoWindowList)this.infoWindowList.hasOwnProperty(t)&&this.closePopup(t)},t.prototype.resizeMap=function(){this.map.resizeMap()},t.prototype.addEventMap=function(t,e){this.map.addEventMap(t,e)},t.prototype.removeEventMap=function(t){this.map.removeEventMap(t)},t.prototype.getZoom=function(){return this.map.getZoom()},t.prototype.setZoom=function(t){this.map.setZoom(t)},t.prototype.getCenter=function(){return this.map.getCenter()},t.prototype.setCenter=function(t){this.map.setCenter(t)},t.prototype.pixelsToLatLng=function(t,e){return this.map.pixelsToLatLng(t,e)},t.prototype.fitBoundsElements=function(t,e){var o=this,n=this.getMarkers(t,e).filter(function(t){return o.map.isMarkerOnMap(t)}),i=this.getCircles(t,e).filter(function(t){return o.map.isCircleOnMap(t)}),r=this.getPolygons(t,e).filter(function(t){return o.map.isPolygonOnMap(t)}),a=this.getPolylines(t,e).filter(function(t){return o.map.isPolylineOnMap(t)});this.map.fitBoundsElements(n,i,r,a)},t.prototype.drawOverlay=function(t,e){var o=null;if(e.polygon){var n=this.getPolygons(e.polygon,e.conditionPolygon);n&&n.length&&(o=this.map.drawOverlay(e,n))}else o=this.map.drawOverlay(e);null!=o&&(this.overlayList[t]||(this.overlayList[t]=[]),this.overlayList[t].push(o))},t.prototype.toggleOverlay=function(t,e,o){var n=this.getOverlays(e,o);n&&n.length&&this.map.toggleOverlay(n,t)},t.prototype.removeOverlays=function(t,e){if(this.overlayList[t]&&e){var o=this.getOverlays(t,e);this.map.toggleOverlay(o,!1),this.overlayList[t]=this.overlayList[t].filter(function(t){return!e(t.object)})}else this.overlayList[t]&&this.map.toggleOverlay(this.overlayList[t],!1),this.overlayList[t]=[];0===this.overlayList[t].length&&delete this.overlayList[t]},t.prototype.removeAllOverlays=function(){for(var t in this.overlayList)this.overlayList.hasOwnProperty(t)&&this.removeOverlays(t)},t.prototype.getMarkers=function(t,e){var o=this.markersList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t.prototype.getPolygons=function(t,e){var o=this.polygonsList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t.prototype.getCircles=function(t,e){var o=this.circlesList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t.prototype.getPolylines=function(t,e){var o=this.polylinesList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t.prototype.getOverlays=function(t,e){var o=this.overlayList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t}();e.default=s},function(t,e,o){"use strict";var n=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function a(t){try{s(n.next(t))}catch(t){r(t)}}function l(t){try{s(n.throw(t))}catch(t){r(t)}}function s(t){t.done?i(t.value):new o(function(e){e(t.value)}).then(a,l)}s((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){function o(t){return function(e){return n([t,e])}}function n(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{i=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}var i,r,a,l,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return l={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l};Object.defineProperty(e,"__esModule",{value:!0});var r=o(6),a=o(11),l=o(12),s=o(13),p=o(14),c=o(15),u=o(16),g=o(17),h=o(18),d=function(){function t(){this.mapsApiLoader=new r.MapsApiLoaderService}return t.prototype.initialize=function(t,e,o){return n(this,void 0,void 0,function(){var n,r,d,f,y,v,m,P,k;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.mapsApiLoader.loadApi(t,e)];case 1:if(n=i.sent(),r=n,d={center:new r.maps.LatLng(-14,-54),fullscreenControl:!1,keyboardShortcuts:!1,mapTypeControl:!0,minZoom:4,rotateControl:!1,scaleControl:!1,streetViewControl:!1,zoom:4,zoomControl:!0},e.gestureHandling?d.gestureHandling="cooperative":d.gestureHandling="greedy",e.options)for(f in e.options)e.options.hasOwnProperty(f)&&(d[f]=e.options[f]);return y=[],e.mapTiles&&(v=[r.maps.MapTypeId.ROADMAP,r.maps.MapTypeId.SATELLITE],e.mapTiles.forEach(function(t){v.push(t.name);var e={getTileUrl:function(t,e){return"https://tile.openstreetmap.org/"+e+"/"+t.x+"/"+t.y+".png"},isPng:!0,maxZoom:19,minZoom:0,name:"OpenStreetMap",tileSize:new r.maps.Size(256,256)};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);var n=new r.maps.ImageMapType(e);y.push({id:t.name,tile:n})}),d.mapTypeControlOptions={mapTypeIds:v,style:r.maps.MapTypeControlStyle.HORIZONTAL_BAR}),m=new r.maps.Map(document.getElementById(o),d),this.googleMarkers=new p.default(m,r),this.googlePolygons=new u.default(m,r),this.googleCircles=new a.default(m,r),this.googlePopups=new h.default(m,r),this.googlePolylines=new g.default(m,r,this.googlePopups),this.googleMap=new s.default(m,r),this.googleOverlays=new c.default(m,r,this.googlePolygons),this.googleGeoJson=new l.default(m,r),y&&y.length&&y.forEach(function(t){m.mapTypes.set(t.id,t.tile)}),e.showTraffic&&(P=new r.maps.TrafficLayer,P.setMap(m)),[2,this];case 2:return k=i.sent(),[2,k];case 3:return[2]}})})},t.prototype.loadGEOJson=function(t,e,o){this.googleGeoJson.loadGEOJson(t,e,o)},t.prototype.drawMarker=function(t,e){return this.googleMarkers.drawMarker(t,e)},t.prototype.drawCircleMarker=function(t,e){return this.googleMarkers.drawCircleMarker(t,e)},t.prototype.toggleMarkers=function(t,e,o){this.googleMarkers.toggleMarkers(t,e,o)},t.prototype.alterMarkerOptions=function(t,e){this.googleMarkers.alterMarkerOptions(t,e)},t.prototype.alterMarkerPosition=function(t,e,o){this.googleMarkers.alterMarkerPosition(t,e,o)},t.prototype.fitBoundsPositions=function(t){this.googleMarkers.fitBoundsPositions(t)},t.prototype.isMarkerOnMap=function(t){return this.googleMarkers.isMarkerOnMap(t)},t.prototype.setCenterMarker=function(t){this.googleMarkers.setCenterMarker(t)},t.prototype.addMarkerEvent=function(t,e,o){this.googleMarkers.addMarkerEvent(t,e,o)},t.prototype.removeMarkerEvent=function(t,e){this.googleMarkers.removeMarkerEvent(t,e)},t.prototype.addMarkerClusterer=function(t){return this.googleMarkers.addMarkerClusterer(t)},t.prototype.alterMarkerClustererConfig=function(t,e){this.googleMarkers.alterMarkerClustererConfig(t,e)},t.prototype.refreshClusterer=function(t){this.googleMarkers.refreshClusterer(t)},t.prototype.addMarkerOnClusterer=function(t,e){this.googleMarkers.addMarkerOnClusterer(t,e)},t.prototype.removeMarkerFromClusterer=function(t,e){this.googleMarkers.removeMarkerFromClusterer(t,e)},t.prototype.clearMarkersClusterer=function(t){this.googleMarkers.clearMarkersClusterer(t)},t.prototype.countMarkersOnCluster=function(t){return this.googleMarkers.countMarkersOnCluster(t)},t.prototype.drawPolygon=function(t,e){return this.googlePolygons.drawPolygon(t,e)},t.prototype.togglePolygons=function(t,e){this.googlePolygons.togglePolygons(t,e)},t.prototype.alterPolygonOptions=function(t,e){this.googlePolygons.alterPolygonOptions(t,e)},t.prototype.fitBoundsPolygons=function(t){this.googlePolygons.fitBoundsPolygons(t)},t.prototype.setCenterPolygons=function(t){this.googlePolygons.setCenterPolygons(t)},t.prototype.isPolygonOnMap=function(t){return this.googlePolygons.isPolygonOnMap(t)},t.prototype.getPolygonPath=function(t){return this.googlePolygons.getPolygonPath(t)},t.prototype.addPolygonEvent=function(t,e,o){return this.googlePolygons.addPolygonEvent(t,e,o)},t.prototype.removePolygonEvent=function(t,e){this.googlePolygons.removePolygonEvent(t,e)},t.prototype.drawCircle=function(t,e){return this.googleCircles.drawCircle(t,e)},t.prototype.toggleCircles=function(t,e){this.googleCircles.toggleCircles(t,e)},t.prototype.alterCircleOptions=function(t,e){this.googleCircles.alterCircleOptions(t,e)},t.prototype.fitBoundsCircles=function(t){this.googleCircles.fitBoundsCircles(t)},t.prototype.isCircleOnMap=function(t){return this.googleCircles.isCircleOnMap(t)},t.prototype.getCircleCenter=function(t){return this.googleCircles.getCircleCenter(t)},t.prototype.getCircleRadius=function(t){return this.googleCircles.getCircleRadius(t)},t.prototype.addCircleEvent=function(t,e,o){this.googleCircles.addCircleEvent(t,e,o)},t.prototype.removeCircleEvent=function(t,e){this.googleCircles.removeCircleEvent(t,e)},t.prototype.drawPolyline=function(t,e){return this.googlePolylines.drawPolyline(t,e)},t.prototype.drawPolylineWithNavigation=function(t,e){return this.googlePolylines.drawPolylineWithNavigation(t,e)},t.prototype.togglePolylines=function(t,e){this.googlePolylines.togglePolylines(t,e)},t.prototype.alterPolylineOptions=function(t,e){this.googlePolylines.alterPolylineOptions(t,e)},t.prototype.fitBoundsPolylines=function(t){this.googlePolylines.fitBoundsPolylines(t)},t.prototype.isPolylineOnMap=function(t){return this.googlePolylines.isPolylineOnMap(t)},t.prototype.addPolylinePath=function(t,e){this.googlePolylines.addPolylinePath(t,e)},t.prototype.getPolylinePath=function(t){return this.googlePolylines.getPolylinePath(t)},t.prototype.removePolylineHighlight=function(){this.googlePolylines.removePolylineHighlight()},t.prototype.addPolylineEvent=function(t,e,o){this.googlePolylines.addPolylineEvent(t,e,o)},t.prototype.removePolylineEvent=function(t,e){this.googlePolylines.removePolylineEvent(t,e)},t.prototype.setIndexPolylineHighlight=function(t,e){this.googlePolylines.setIndexPolylineHighlight(t,e)},t.prototype.getObjectPolyline=function(t){return this.googlePolylines.getObjectPolyline(t)},t.prototype.getObjectPolylineHighlight=function(){return this.googlePolylines.getObjectPolylineHighlight()},t.prototype.addPolylineHighlightEvent=function(t,e){this.googlePolylines.addPolylineHighlightEvent(t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.googlePolylines.getPolylineHighlightIndex()},t.prototype.drawPopup=function(t,e){return this.googlePopups.drawPopup(t,e)},t.prototype.alterPopup=function(t,e,o){return this.googlePopups.alterPopup(t,e,o)},t.prototype.alterPopupContent=function(t,e,o){this.googlePopups.alterPopupContent(t,e,o)},t.prototype.closePopup=function(t){this.googlePopups.closePopup(t)},t.prototype.resizeMap=function(){this.googleMap.resizeMap()},t.prototype.addEventMap=function(t,e){this.googleMap.addEventMap(t,e)},t.prototype.removeEventMap=function(t){this.googleMap.removeEventMap(t)},t.prototype.getZoom=function(){return this.googleMap.getZoom()},t.prototype.setZoom=function(t){this.googleMap.setZoom(t)},t.prototype.getCenter=function(){return this.googleMap.getCenter()},t.prototype.setCenter=function(t){this.googleMap.setCenter(t)},t.prototype.pixelsToLatLng=function(t,e){return this.googleMap.pixelsToLatLng(t,e)},t.prototype.fitBoundsElements=function(t,e,o,n){this.googleMap.fitBoundsElements(t,e,o,n)},t.prototype.drawOverlay=function(t,e){return this.googleOverlays.drawOverlay(t,e)},t.prototype.toggleOverlay=function(t,e){this.googleOverlays.toggleOverlay(t,e)},t}();e.default=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.drawCircle=function(t,e){var o=this,n={lat:t.center[0],lng:t.center[1]},r={center:n,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,object:t.object,radius:t.radius,strokeColor:t.color,strokeOpacity:t.opacity,strokeWeight:t.weight,suppressUndo:!0},a=new this.google.maps.Circle(r);return e&&this.google.maps.event.addListener(a,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)}),t.addToMap&&a.setMap(o.map),t.fitBounds&&o.map.fitBounds(a.getBounds()),a},t.prototype.toggleCircles=function(t,e){var o=this;t.forEach(function(t){return t.setMap(e?o.map:null)})},t.prototype.alterCircleOptions=function(t,e){t.forEach(function(t){var o=e.center&&e.center.length>0?{lat:e.center[0],lng:e.center[1]}:t.getCenter(),n={center:o,fillColor:e.fillColor?e.fillColor:t.fillColor,fillOpacity:e.fillOpacity?e.fillOpacity:t.fillOpacity,radius:e.radius?e.radius:t.radius,strokeColor:e.color?e.color:t.strokeColor,strokeOpacity:e.opacity?e.opacity:t.strokeOpacity,strokeWeight:e.weight?e.weight:t.strokeWeight,editable:null!==e.editable&&void 0!==e.editable?e.editable:t.editable,draggable:null!==e.draggable&&void 0!==e.draggable?e.draggable:t.draggable};t.setOptions(n)})},t.prototype.fitBoundsCircles=function(t){this.map.fitBounds(this.getCirclesBounds(t))},t.prototype.isCircleOnMap=function(t){return!!t.map},t.prototype.getCircleCenter=function(t){var e=t.getCenter();return[e.lat(),e.lng()]},t.prototype.getCircleRadius=function(t){return t.getRadius()},t.prototype.addCircleEvent=function(t,e,o){var r=this;t.forEach(function(t){switch(e){case n.CircleEventType.Click:r.google.maps.event.addListener(t,"click",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.CircleEventType.CenterChanged:r.google.maps.event.addListener(t,"center_changed",function(){var e=new i.default([t.getCenter().lat(),t.getCenter().lng()]);o(e,t.object)});case n.CircleEventType.RadiusChanged:r.google.maps.event.addListener(t,"radius_changed",function(e){var n=new i.default([t.getCenter().lat(),t.getCenter().lng()]);o(n,t.object,t.getRadius())})}})},t.prototype.removeCircleEvent=function(t,e){var o=this;t.forEach(function(t){switch(e){case n.CircleEventType.Click:o.google.maps.event.clearListeners(t,"click");case n.CircleEventType.CenterChanged:o.google.maps.event.clearListeners(t,"center_changed");case n.CircleEventType.RadiusChanged:o.google.maps.event.clearListeners(t,"radius_changed")}})},t.prototype.getCirclesBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.forEach(function(t){return e.union(t.getBounds())}),e},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.loadGEOJson=function(t,e,o){var i=this;i.parseGeoJson(t,e).forEach(function(t){o&&t.addListener("click",function(t){var e=new n.default([t.latLng.lat(),t.latLng.lng()]);o(e)}),t.setMap(i.map)})},t.prototype.parseGeoJson=function(t,e){var o=this,n=[];if(Array.isArray(t.features))for(var i=0,r=t.features;i<r.length;i++){var a=r[i];n.push(o.parseGeoJsonToObject(a,e))}else n.push(o.parseGeoJsonToObject(t,e));return n},t.prototype.parseGeoJsonToObject=function(t,e){var o=t.geometry;switch(t.properties&&Object.assign(e,t.properties),o.type){case"Point":return e.position={lat:o.coordinates[1],lng:o.coordinates[0]},new this.google.maps.Marker(e);case"Polygon":return e.paths=[],o.coordinates.forEach(function(t){return e.paths.push(t.map(function(t){return{lat:t[1],lng:t[0]}}))}),new this.google.maps.Polygon(e);case"LineString":return e.path=o.coordinates.map(function(t){return{lat:t[1],lng:t[0]}}),new this.google.maps.Polyline(e);default:throw new Error("Forma de objeto desconhecida.")}},t}();e.default=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.resizeMap=function(){google.maps.event.trigger(this.map,"resize")},t.prototype.addEventMap=function(t,e){var o=this;switch(t){case n.MapEventType.Click:this.google.maps.event.addListener(o.map,"click",function(t){var o=new i.default([t.latLng.lat(),t.latLng.lng()]);e(o)});break;case n.MapEventType.ZoomChanged:o.map.addListener("zoom_changed",function(){var t=new i.default([o.map.getCenter().lat(),o.map.getCenter().lng()]);e(t)})}},t.prototype.removeEventMap=function(t){var e=this;switch(t){case n.MapEventType.Click:this.google.maps.event.clearListeners(e.map,"click");break;case n.MapEventType.ZoomChanged:this.google.maps.event.clearListeners(e.map,"zoom_changed")}},t.prototype.getZoom=function(){return this.map.getZoom()},t.prototype.setZoom=function(t){return this.map.setZoom(t)},t.prototype.getCenter=function(){var t=this.map.getCenter();return[t.lat(),t.lng()]},t.prototype.setCenter=function(t){this.map.setCenter(new google.maps.LatLng(t[0],t[1]))},t.prototype.pixelsToLatLng=function(t,e){var o=Math.pow(2,this.map.getZoom()),n=this.map.getProjection().fromLatLngToPoint(this.map.getCenter()),i=new google.maps.Point(t/o||0,e/o||0),r=new google.maps.Point(n.x-i.x,n.y+i.y),a=this.map.getProjection().fromPointToLatLng(r);return[a.lat(),a.lng()]},t.prototype.fitBoundsElements=function(t,e,o,n){var i=new google.maps.LatLngBounds;t&&t.length&&(t.forEach(function(t){return i.extend(t.getPosition())}),this.map.fitBounds(i)),e&&e.length&&(e.forEach(function(t){return i.union(t.getBounds())}),this.map.fitBounds(i)),o&&o.length&&(o.forEach(function(t){return t.getPaths().forEach(function(t){return t.getArray().forEach(function(t){return i.extend(t)})})}),this.map.fitBounds(i)),n&&n.length&&(n.forEach(function(t){return t.getPath().forEach(function(t){return i.extend(new google.maps.LatLng(t.lat(),t.lng()))})}),this.map.fitBounds(i))},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=o(8),a=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.drawMarker=function(t,e){var o={draggable:t.draggable,icon:null,object:t.object,position:{lat:t.latlng[0],lng:t.latlng[1]}};t.icon&&(o.icon={url:t.icon.url},t.icon.size&&(o.icon.size=new this.google.maps.Size(t.icon.size[0],t.icon.size[1])));var n=new this.google.maps.Marker(o);if(e&&this.google.maps.event.addListener(n,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)}),t.addToMap&&n.setMap(this.map),t.fitBounds){var r=new this.google.maps.LatLngBounds;r.extend(n.getPosition()),this.map.fitBounds(r)}return n},t.prototype.drawCircleMarker=function(t,e){var o=this,n={icon:{fillColor:t.style.fillColor,fillOpacity:t.style.fillOpacity,path:this.google.maps.SymbolPath.CIRCLE,scale:t.style.radius,strokeColor:t.style.color,strokeWeight:t.style.weight},object:t.object,position:{lat:t.latlng[0],lng:t.latlng[1]}},r=new this.google.maps.Marker(n);if(e&&this.google.maps.event.addListener(r,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)}),t.addToMap&&r.setMap(o.map),t.fitBounds){var a=new this.google.maps.LatLngBounds;a.extend(r.getPosition()),o.map.fitBounds(a)}return r},t.prototype.toggleMarkers=function(t,e,o){var n=this;t.forEach(function(t){t.setMap(e?n.map:null),o&&(e?n.addMarkerOnClusterer(t,o):n.removeMarkerFromClusterer(t,o))})},t.prototype.alterMarkerOptions=function(t,e){var o=this,n=null,i=null;e.latlng&&(i={lat:e.latlng[0],lng:e.latlng[1]}),e.icon&&(n=e.icon,e.icon.size&&(n.size=new this.google.maps.Size(e.icon.size[0],e.icon.size[1]))),t.forEach(function(t){e.style&&(n={fillColor:e.style.fillColor?e.style.fillColor:t.icon.fillColor,fillOpacity:e.style.fillOpacity?e.style.fillOpacity:t.icon.fillOpacity,path:o.google.maps.SymbolPath.CIRCLE,scale:e.style.radius?e.style.radius:t.icon.scale,strokeColor:e.style.color?e.style.color:t.icon.strokeColor,strokeWeight:e.style.weight?e.style.weight:t.icon.strokeWeight});var r=null;r=i&&n?{icon:n,position:i}:i?{position:i}:{icon:n},t.setOptions(r)})},t.prototype.alterMarkerPosition=function(t,e,o){var n=this,i={lat:e[0],lng:e[1]};t.forEach(function(t){o?n.moveTransitionMarker(i,t):t.setPosition(i)})},t.prototype.fitBoundsPositions=function(t){var e=new this.google.maps.LatLngBounds;t.map(function(t){return t.position}).forEach(function(t){return e.extend(t)}),this.map.fitBounds(e)},t.prototype.isMarkerOnMap=function(t){return!!t.map},t.prototype.setCenterMarker=function(t){this.map.setCenter(t.getPosition())},t.prototype.addMarkerEvent=function(t,e,o){var r=this;t.forEach(function(t){switch(e){case n.MarkerEventType.Click:r.google.maps.event.addListener(t,"click",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.RightClick:r.google.maps.event.addListener(t,"rightclick",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.AfterDrag:r.google.maps.event.addListener(t,"dragend",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.MouseOver:r.google.maps.event.addListener(t,"mouseover",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.MouseOut:r.google.maps.event.addListener(t,"mouseout",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.BeforeDrag:r.google.maps.event.addListener(t,"dragstart",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)})}})},t.prototype.removeMarkerEvent=function(t,e){var o=this;t.forEach(function(t){switch(e){case n.MarkerEventType.Click:o.google.maps.event.clearListeners(t,"click");break;case n.MarkerEventType.RightClick:o.google.maps.event.clearListeners(t,"rightclick");break;case n.MarkerEventType.AfterDrag:o.google.maps.event.clearListeners(t,"dragend");break;case n.MarkerEventType.MouseOver:o.google.maps.event.clearListeners(t,"mouseover");break;case n.MarkerEventType.MouseOut:o.google.maps.event.clearListeners(t,"mouseout");break;case n.MarkerEventType.BeforeDrag:o.google.maps.event.clearListeners(t,"dragstart")}})},t.prototype.addMarkerClusterer=function(t){return new r(this.map,[],{maxZoom:t.clusterMaxZoom,minimumClusterSize:t.clusterMinSize,zoomOnClick:t.clusterZoomOnClick})},t.prototype.alterMarkerClustererConfig=function(t,e){t.setZoomOnClick(e.clusterZoomOnClick),t.setMinimumClusterSize(e.clusterMinSize),t.setMaxZoom(e.clusterMaxZoom)},t.prototype.refreshClusterer=function(t){t.repaint()},t.prototype.addMarkerOnClusterer=function(t,e){-1===e.getMarkers().indexOf(t)&&e.addMarker(t,!0)},t.prototype.removeMarkerFromClusterer=function(t,e){e.removeMarker(t)},t.prototype.clearMarkersClusterer=function(t){t.clearMarkers()},t.prototype.countMarkersOnCluster=function(t){return t.getMarkers().length},t.prototype.moveTransitionMarker=function(t,e){var o={deltaLat:(t.lat-e.getPosition().lat())/5,deltaLng:(t.lng-e.getPosition().lng())/5,i:0,position:[e.getPosition().lat(),e.getPosition().lng()],lastPosition:t};this.moveMarker(e,o,5)},t.prototype.moveMarker=function(t,e,o){var n=this;e.position[0]+=e.deltaLat,e.position[1]+=e.deltaLng,t.setPosition(new google.maps.LatLng(e.position[0],e.position[1])),e.i<o?(e.i++,setTimeout(function(){return n.moveMarker(t,e,o)},20)):e.i===o&&setTimeout(function(){return t.setPosition(e.lastPosition)},20)},t}();e.default=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=function(){function t(t,e,o){function i(e,o,n,i,r){this.bounds_=e,this.div_=o,this.draggable=n,this.afterDragHandler=r,this.object=i,this.setMap(t)}this.map=null,this.google=null,this.OverlayGoogle=null,this.map=t,this.google=e,this.googlePolygons=o,i.prototype=new this.google.maps.OverlayView,i.prototype.onAdd=function(){var t=this,o=this.getPanes();o.overlayLayer.appendChild(this.div_),o.overlayMouseTarget.appendChild(this.div_),e.maps.event.addDomListener(this.div_,"click",function(){e.maps.event.trigger(this.div_,"click")}),this.draggable&&(e.maps.event.addDomListener(this.get("map").getDiv(),"mouseleave",function(){e.maps.event.trigger(this.div_,"mouseup")}),e.maps.event.addDomListener(this.div_,"mousedown",function(o){this.style.cursor="move",t.map.set("draggable",!1),t.set("origin",o),t.moveHandler=e.maps.event.addDomListener(t.get("map").getDiv(),"mousemove",function(o){var n=t.get("origin"),i=n.clientX-o.clientX,r=n.clientY-o.clientY,a=t.getProjection().fromLatLngToDivPixel(t.bounds_.getCenter()),l=t.getProjection().fromDivPixelToLatLng(new e.maps.Point(a.x-i,a.y-r));t.set("origin",o),t.bounds_=new e.maps.LatLngBounds,t.bounds_.extend(l),t.draw()})}),e.maps.event.addDomListener(this.div_,"mouseup",function(){if(t.map.set("draggable",!0),this.style.cursor="default",e.maps.event.removeListener(t.moveHandler),t.afterDragHandler){var o=t.bounds_.getCenter(),i=new n.default([o.lat(),o.lng()]);t.afterDragHandler(i,t.object)}}))},i.prototype.draw=function(){var t=this.getProjection(),e=t.fromLatLngToDivPixel(this.bounds_.getCenter()),o=this.div_;o.style.left=e.x+"px",o.style.top=e.y+"px"},i.prototype.onRemove=function(){this.div_.parentNode.removeChild(this.div_)},this.OverlayGoogle=i}return t.prototype.drawOverlay=function(t,e){var o=null;e&&e.length>0?o=this.googlePolygons.getPolygonsBounds(e):(o=new this.google.maps.LatLngBounds,o.extend(new this.google.maps.LatLng(t.position[0],t.position[1])));var n=new this.OverlayGoogle(o,t.divElement,t.draggable,t.object,t.afterEventDragHandler);return t.addToMap&&n.setMap(this.map),n.object=t.object,n},t.prototype.toggleOverlay=function(t,e){var o=this;t.forEach(function(t){return t.setMap(e?o.map:null)})},t}();e.default=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.drawPolygon=function(t,e){var o=this,n=this.getPathRecursiveArray(t.path);n=this.getPathPolylineArray(n);var r={draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,object:t.object,paths:n,strokeColor:t.color,strokeOpacity:t.opacity,strokeWeight:t.weight,suppressUndo:!0,zIndex:t.zIndex},a=new this.google.maps.Polygon(r);return e&&this.google.maps.event.addListener(a,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)}),t.addToMap&&a.setMap(o.map),t.fitBounds&&o.map.fitBounds(o.getPolygonBounds(a)),a},t.prototype.togglePolygons=function(t,e){var o=this;t.forEach(function(t){return t.setMap(e?o.map:null)})},t.prototype.alterPolygonOptions=function(t,e){var o={};t.forEach(function(t){if(o={editable:null!==e.editable&&void 0!==e.editable?e.editable:t.editable,fillColor:e.fillColor?e.fillColor:t.fillColor,fillOpacity:e.fillOpacity?e.fillOpacity:t.fillOpacity,strokeColor:e.color?e.color:t.strokeColor,strokeOpacity:e.opacity?e.opacity:t.strokeOpacity,strokeWeight:e.weight?e.weight:t.strokeWeight,draggable:null!==e.draggable&&void 0!==e.draggable?e.draggable:t.draggable},e.path){var n=[];e.path.forEach(function(t){return n.push({lat:t[0],lng:t[1]})}),t.setPath(n)}t.setOptions(o),e.object&&(t.object=e.object)})},t.prototype.fitBoundsPolygons=function(t){this.map.fitBounds(this.getPolygonsBounds(t))},t.prototype.setCenterPolygons=function(t){this.map.setCenter(this.getPolygonsBounds(t).getCenter())},t.prototype.isPolygonOnMap=function(t){return!!t.map},t.prototype.getPolygonPath=function(t){return t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})})},t.prototype.addPolygonEvent=function(t,e,o){var i=this;t.forEach(function(t){switch(e){case n.PolygonEventType.SetAt:i.addPolygonEventMove(t,o);break;case n.PolygonEventType.InsertAt:i.addPolygonEventInsertAt(t,o);break;case n.PolygonEventType.RemoveAt:i.addPolygonEventRemoveAt(t,o);break;case n.PolygonEventType.DragPolygon:i.addPolygonEventDragPolygon(t,o);break;case n.PolygonEventType.Click:i.addPolygonEventClick(t,o)}})},t.prototype.removePolygonEvent=function(t,e){var o=this;t.forEach(function(t){switch(e){case n.PolygonEventType.SetAt:o.google.maps.event.clearListeners(t.getPaths(),"set_at");break;case n.PolygonEventType.InsertAt:o.google.maps.event.clearListeners(t.getPaths(),"insert_at");break;case n.PolygonEventType.RemoveAt:o.google.maps.event.clearListeners(t.getPaths(),"remove_at");break;case n.PolygonEventType.DragPolygon:o.google.maps.event.clearListeners(t,"dragstart"),o.google.maps.event.clearListeners(t,"dragend");break;case n.PolygonEventType.Click:o.google.maps.event.clearListeners(t,"click")}})},t.prototype.getPolygonsBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.forEach(function(t){t.getPaths().getArray().forEach(function(t){return t.getArray().forEach(function(t){return e.extend(t)})})}),e},t.prototype.getPolygonBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.getPaths().getArray().forEach(function(t){return t.getArray().forEach(function(t){return e.extend(t)})}),e},t.prototype.addPolygonEventMove=function(t,e){for(var o=t.getPaths().getLength(),n=0;n<o;n++)this.addPolygonEventMoveAllPaths(t,t.getPaths().getAt(n),e)},t.prototype.addPolygonEventMoveAllPaths=function(t,e,o){this.google.maps.event.addListener(e,"set_at",function(n,r){if(!t.dragging){var a=e.getAt(n),l=new i.default([a.lat(),a.lng()]),s=new i.default([r.lat(),r.lng()]);o(l,s,t.object,n,t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})}))}})},t.prototype.addPolygonEventInsertAt=function(t,e){for(var o=t.getPaths().getLength(),n=0;n<o;n++)this.addPolygonEventInsertAtAllPaths(t,t.getPaths().getAt(n),e)},t.prototype.addPolygonEventInsertAtAllPaths=function(t,e,o){this.google.maps.event.addListener(e,"insert_at",function(n){var r=e.getAt(n),a=new i.default([r.lat(),r.lng()]),l=e.getAt(n-1),s=l?new i.default([l.lat(),l.lng()]):null;o(a,s,t.object,n,t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})}))})},t.prototype.addPolygonEventRemoveAt=function(t,e){for(var o=t.getPaths().getLength(),n=0;n<o;n++)this.addPolygonEventRemoveAtAllPaths(t,t.getPaths().getAt(n),e)},t.prototype.addPolygonEventRemoveAtAllPaths=function(t,e,o){this.google.maps.event.addListener(e,"remove_at",function(n){var r=new i.default([e.getAt(n).lat(),e.getAt(n).lng()]);o(r,t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})}),t.object)})},t.prototype.addPolygonEventDragPolygon=function(t,e){this.google.maps.event.addListener(t,"dragstart",function(e){t.dragging=!0}),this.google.maps.event.addListener(t,"dragend",function(o){t.dragging=!1,e(t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})}),t.object)})},t.prototype.addPolygonEventClick=function(t,e){this.google.maps.event.addListener(t,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)})},t.prototype.getPathRecursiveArray=function(t){var e=this;return Array.isArray(t)&&"number"!=typeof t[0]?t.map(function(t){return e.getPathRecursiveArray(t)}):{lat:t[0],lng:t[1]}},t.prototype.getPathPolylineArray=function(t){return"number"==typeof t[0].lat?t:"number"!=typeof t[0][0].lat?(t=t[0],this.getPathPolylineArray(t)):t},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(3),r=o(0),a=function(){function t(t,e,o){this.map=null,this.google=null,this.selectedPolyline=null,this.selectedPath=null,this.navigateInfoWindow=null,this.directionForward=!1,this.multiSelectionForward=!1,this.multiSelection=!1,this.map=t,this.google=e,this.googlePopups=o}return t.prototype.drawPolyline=function(t,e){var o=this,n={draggable:t.draggable,editable:t.editable,icons:null,infowindows:t.infowindows,object:t.object,path:null,strokeColor:t.color,strokeOpacity:t.opacity||1,strokeWeight:t.weight,suppressUndo:!0,zIndex:t.zIndex};if(null!==t.style)switch(t.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.strokeOpacity=0,n.icons=[{icon:{path:"M 0,-1 0,1",scale:2,strokeOpacity:1,strokeWeight:t.weight},offset:"0",repeat:"10px"}];break;case i.PolylineType.Arrow:n.icons=[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,scaledSize:new google.maps.Size(20,20),size:new google.maps.Size(20,20)},offset:"100%",repeat:"100px"},{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW},offset:"0%"},{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW},offset:"100%"}]}n.path=t.path?t.path.map(function(t){return{lat:t[0],lng:t[1]}}):[];var a=new this.google.maps.Polyline(n);return e&&this.google.maps.event.addListener(a,"click",function(t){var o=new r.default([t.latLng.lat(),t.latLng.lng()]);e(o,a.object)}),t.addToMap&&a.setMap(o.map),t.fitBounds&&o.map.fitBounds(o.getPolylineBounds(a)),a},t.prototype.drawPolylineWithNavigation=function(t,e){var o=this.drawPolyline(t,null);return o.navigationHandlerClick=e,this.navigationOptions=t.navigateOptions,this.navigateByPoint=!this.navigationOptions||this.navigationOptions.navigateByPoint,this.addNavigation(o),o},t.prototype.togglePolylines=function(t,e){var o=this;t.forEach(function(t){var n=o;t.setMap(e?n.map:null)})},t.prototype.alterPolylineOptions=function(t,e){t.forEach(function(t){var o={draggable:e.draggable?e.draggable:t.draggable,editable:e.editable?e.editable:t.editable,infowindows:e.infowindows?e.infowindows:t.infowindows,object:e.object?e.object:t.object,strokeColor:e.color?e.color:t.strokeColor,strokeOpacity:e.opacity?e.opacity:t.strokeOpacity,strokeWeight:e.weight?e.weight:t.strokeWeight,zIndex:e.zIndex?e.zIndex:t.zIndex};switch(e.path&&t.setPath(e.path.map(function(t){return new google.maps.LatLng(t[0],t[1])})),e.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:o.strokeOpacity=0,o.icons=[{icon:{path:"M 0,-1 0,1",scale:2,strokeOpacity:1},offset:"0",repeat:"10px"}];break;case i.PolylineType.Arrow:o.icons=[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,scaledSize:new google.maps.Size(20,20),size:new google.maps.Size(20,20)},offset:"90%",repeat:"20%"},{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW},offset:"0%"},{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW},offset:"100%"}];break;default:o.icons=null}t.setOptions(o)})},t.prototype.fitBoundsPolylines=function(t){var e=this;e.map.fitBounds(e.getPolylinesBounds(t))},t.prototype.isPolylineOnMap=function(t){return!!t.map},t.prototype.addPolylinePath=function(t,e){var o=this;t.forEach(function(t){var n=t.getPath();n.push(new o.google.maps.LatLng(e[0],e[1])),t.setPath(n)})},t.prototype.getPolylinePath=function(t){return t.getPath().getArray().map(function(t){return[t.lat(),t.lng()]})},t.prototype.removePolylineHighlight=function(){this.google.maps.event.clearListeners(document,"keyup"),this.google.maps.event.clearListeners(document,"keydown"),this.selectedPath&&(this.selectedPath.setMap(null),this.selectedPath=null),this.navigateInfoWindow&&this.navigateInfoWindow.close()},t.prototype.addPolylineEvent=function(t,e,o){var i=this;t.forEach(function(t){switch(e){case n.PolylineEventType.SetAt:i.addPolylineEventMove(t,o);break;case n.PolylineEventType.InsertAt:i.addPolylineEventInsertAt(t,o);break;case n.PolylineEventType.RemoveAt:i.addPolylineEventRemoveAt(t,o);break;case n.PolylineEventType.DragPolyline:i.addPolylineEventDragPolyline(t,o)}})},t.prototype.removePolylineEvent=function(t,e){var o=this;t.forEach(function(t){return o.google.maps.event.clearListeners(t,"click")}),t.forEach(function(t){switch(e){case n.PolylineEventType.SetAt:o.google.maps.event.clearListeners(t.getPath(),"set_at");break;case n.PolylineEventType.InsertAt:o.google.maps.event.clearListeners(t.getPath(),"insert_at");break;case n.PolylineEventType.RemoveAt:o.google.maps.event.clearListeners(t.getPath(),"remove_at");break;case n.PolylineEventType.DragPolyline:o.google.maps.event.clearListeners(t,"dragstart"),o.google.maps.event.clearListeners(t,"dragend")}})},t.prototype.setIndexPolylineHighlight=function(t,e){this.directionForward=!1,t.initialIdx=e,t.finalIdx=e+1,this.moveSelectedPath(t,this.navigationOptions),this.selectedPolyline=t,this.navigationOptions.navegateOnKeyPress?(this.google.maps.event.clearListeners(document,"keydown"),this.google.maps.event.addDomListener(document,"keydown",this.onKeyUp.bind(this))):(this.google.maps.event.clearListeners(document,"keyup"),this.google.maps.event.addDomListener(document,"keyup",this.onKeyUp.bind(this)))},t.prototype.getObjectPolyline=function(t){return t.object},t.prototype.getObjectPolylineHighlight=function(){return this.selectedPath?this.selectedPath.object:null},t.prototype.addPolylineHighlightEvent=function(t,e){this.selectedPath&&this.addPolylineEvent([this.selectedPath],t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.selectedPath?[this.selectedPath.initialIdx,this.selectedPath.finalIdx]:null},t.prototype.addNavigation=function(t){var e=this;this.google.maps.event.clearListeners(t,"click"),this.google.maps.event.addListener(t,"click",e.onClickPolyline.bind(e,t))},t.prototype.onClickPolyline=function(t,e){var o=this.checkIdx(t,e.latLng);if(t.initialIdx=o,t.finalIdx=o+1,this.moveSelectedPath(t,this.navigationOptions),this.selectedPolyline=t,this.navigationOptions.navegateOnKeyPress?(this.google.maps.event.clearListeners(document,"keydown"),this.google.maps.event.addDomListener(document,"keydown",this.onKeyUp.bind(this))):(this.google.maps.event.clearListeners(document,"keyup"),this.google.maps.event.addDomListener(document,"keyup",this.onKeyUp.bind(this))),t.navigationHandlerClick){var n=new r.default([e.latLng.lat(),e.latLng.lng()]);t.navigationHandlerClick(n,t.object)}},t.prototype.onKeyUp=function(t){var e=this;if(e.selectedPath)switch(t.which?t.which:t.keyCode){case 38:case 39:e.moveForwards(t.shiftKey);break;case 37:case 40:e.moveBackwards(t.shiftKey)}},t.prototype.moveForwards=function(t){var e=this,o=e.selectedPolyline;(!e.navigateByPoint||e.directionForward)&&o.finalIdx<o.getPath().getArray().length-1&&e.navigateForward(t,o),e.directionForward=!0,e.moveSelectedPath(o,null)},t.prototype.navigateForward=function(t,e){var o=this;t?(o.multiSelection=!0,o.multiSelectionForward&&e.finalIdx++,o.multiSelectionForward=!0):(e.finalIdx++,e.initialIdx=o.multiSelection?e.finalIdx-1:e.initialIdx+1,o.multiSelection=!1)},t.prototype.moveBackwards=function(t){var e=this,o=e.selectedPolyline;e.navigateByPoint&&e.directionForward||!(o.initialIdx>0)||e.navigateBackward(t,o),e.directionForward=!1,e.moveSelectedPath(o,null)},t.prototype.navigateBackward=function(t,e){var o=this;t?(o.multiSelection=!0,o.multiSelectionForward||e.initialIdx--,o.multiSelectionForward=!1):(e.initialIdx--,e.finalIdx=o.multiSelection?e.initialIdx+1:e.finalIdx-1,o.multiSelection=!1)},t.prototype.moveSelectedPath=function(t,e){var o=t.getPath().getArray().slice(t.initialIdx,t.finalIdx+1);if(this.selectedPath)this.selectedPath.setPath(o),this.selectedPath.object=t.object,this.updateSelectedPathListeners();else{var n={editable:e.editable,keyboardShortcuts:!1,map:this.map,object:t.object,path:o,strokeColor:e&&e.color||"#FF0000",strokeOpacity:e&&e.opacity||1,strokeWeight:e&&e.weight||10,zIndex:9999};if(null!==e.style)switch(e.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.strokeOpacity=0,n.icons=[{icon:{path:"M 0,-1 0,1",scale:2,strokeOpacity:1},offset:"0",repeat:"10px"}];break;case i.PolylineType.Arrow:n.icons=[{icon:{anchor:new google.maps.Point(0,2),fillColor:"#000",fillOpacity:.7,path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,scale:4,strokeColor:"#000",strokeWeight:5},offset:"100%"}]}this.selectedPath=new this.google.maps.Polyline(n)}this.selectedPath.initialIdx=t.initialIdx,this.selectedPath.finalIdx=t.finalIdx,this.drawPopupNavigation(t)},t.prototype.addPolylineEventMove=function(t,e){t.moveListener=function(o,n){if(!t.dragging){var i=t.getPath().getAt(o),a=new r.default([i.lat(),i.lng()]),l=new r.default([n.lat(),n.lng()]);e(a,l,t.object,o,t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])}))}},this.google.maps.event.addListener(t.getPath(),"set_at",t.moveListener)},t.prototype.addPolylineEventInsertAt=function(t,e){t.insertAtListener=function(o){var n=t.getPath(),i=n.getAt(o),a=new r.default([i.lat(),i.lng()]),l=n.getAt(o-1),s=l?new r.default([l.lat(),l.lng()]):null;e(a,s,t.object,o,t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])}))},this.google.maps.event.addListener(t.getPath(),"insert_at",t.insertAtListener)},t.prototype.addPolylineEventRemoveAt=function(t,e){t.removeAtListener=function(o){var n=new r.default([t.getPath().getAt(o).lat(),t.getPath().getAt(o).lng()]);e(n,t.object,t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])}))},this.google.maps.event.addListener(t.getPath(),"remove_at",t.removeAtListener)},t.prototype.addPolylineEventDragPolyline=function(t,e){t.dragPolylineListener=function(){t.dragging=!1;var o=t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])});e(o,t.object)},this.google.maps.event.addListener(t,"dragend",t.dragPolylineListener),this.google.maps.event.addListener(t,"dragstart",function(){return t.dragging=!0})},t.prototype.updateSelectedPathListeners=function(){this.selectedPath.moveListener&&(this.google.maps.event.clearListeners(this.selectedPath.getPath(),"set_at"),this.google.maps.event.addListener(this.selectedPath.getPath(),"set_at",this.selectedPath.moveListener)),this.selectedPath.insertAtListener&&(this.google.maps.event.clearListeners(this.selectedPath.getPath(),"insert_at"),this.google.maps.event.addListener(this.selectedPath.getPath(),"insert_at",this.selectedPath.insertAtListener)),this.selectedPath.removeAtListener&&(this.google.maps.event.clearListeners(this.selectedPath.getPath(),"remove_at"),this.google.maps.event.addListener(this.selectedPath.getPath(),"remove_at",this.selectedPath.removeAtListener))},t.prototype.drawPopupNavigation=function(t){var e=this,o=e.directionForward?t.finalIdx:t.initialIdx;e.navigateByPoint||(o=t.finalIdx>t.initialIdx?t.finalIdx:t.initialIdx);var n=t.infowindows?t.infowindows[o]:null;if(n){var i=t.getPath().getArray()[o];e.navigateInfoWindow?this.googlePopups.alterPopup(e.navigateInfoWindow,{content:n,latlng:[i.lat(),i.lng()]}):e.navigateInfoWindow=this.googlePopups.drawPopup({content:n,latlng:[i.lat(),i.lng()]})}},t.prototype.checkIdx=function(t,e){for(var o=this,n=t.getPath(),i=0,r=Number.MAX_VALUE,a=-1,l=0;l<n.length-1;l++)(i=o.distanceToLine(n.getAt(l),n.getAt(l+1),e))<r&&(r=i,a=l);return a},t.prototype.distanceToLine=function(t,e,o){var n=this,i=e.lng()-t.lng(),r=e.lat()-t.lat(),a=(o.lng()-t.lng())*i,l=i*i+r*r;if(a+=(o.lat()-t.lat())*r,l>0?a/=l:a=-1,a<0)return n.kmTo(o,t);if(a>1)return n.kmTo(o,e);var s=new this.google.maps.LatLng(t.lat()+a*r,t.lng()+a*i);return n.kmTo(o,s)},t.prototype.kmTo=function(t,e){var o=Math,n=o.PI/180,i=t.lat()*n,r=e.lat()*n,a=i-r,l=t.lng()*n-e.lng()*n;return 2*o.asin(o.sqrt(o.pow(o.sin(a/2),2)+o.cos(i)*o.cos(r)*o.pow(o.sin(l/2),2)))*6378.137*1e3},t.prototype.getPolylinesBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.forEach(function(t){t.getPath().getArray().forEach(function(t){return e.extend(t)})}),e},t.prototype.getPolylineBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.getPath().getArray().forEach(function(t){return e.extend(t)}),e},t}();e.default=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.drawPopup=function(t,e){var o=this,n=new this.google.maps.InfoWindow({content:t.content});return t.latlng&&n.setPosition({lat:t.latlng[0],lng:t.latlng[1]}),n.open(o.map,e||null),t.object&&(n.object=t.object),n},t.prototype.alterPopup=function(t,e,o){var n=this;return n.alterPopupContent(t,e,o),t.getMap()||t.open(n.map,o||null),e.object&&(t.object=e.object),t},t.prototype.alterPopupContent=function(t,e,o){e.content&&t.setContent(e.content),e.latlng?t.setPosition({lat:e.latlng[0],lng:e.latlng[1]}):o&&t.setPosition(o.getPosition()),e.object&&(t.object=e.object)},t.prototype.closePopup=function(t){t.close()},t}();e.default=n},function(t,e,o){"use strict";var n=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function a(t){try{s(n.next(t))}catch(t){r(t)}}function l(t){try{s(n.throw(t))}catch(t){r(t)}}function s(t){t.done?i(t.value):new o(function(e){e(t.value)}).then(a,l)}s((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){function o(t){return function(e){return n([t,e])}}function n(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{i=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}var i,r,a,l,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return l={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l};Object.defineProperty(e,"__esModule",{value:!0});var r=o(6),a=o(20),l=o(21),s=o(22),p=o(23),c=o(24),u=o(25),g=o(26),h=o(27),d=function(){function t(){this.mapsApiLoader=new r.MapsApiLoaderService}return t.prototype.initialize=function(t,e,o){return n(this,void 0,void 0,function(){var n,r,d,f,y,v,m,P,k,w;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.mapsApiLoader.loadApi(t,e)];case 1:return n=i.sent(),r=n,this.loadDependencies(e),[4,this.mapTimeout(1e3)];case 2:return i.sent(),d={center:new r.LatLng(-14,-54),editable:!0,keyboard:!1,maxZoom:e.wikimedia?18:19,minZoom:4,zoom:4,zoomControl:!1},e.gestureHandling&&(d.gestureHandling=!0),[4,this.mapTimeout(200)];case 3:return i.sent(),f=new r.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",d),y=new r.tileLayer("https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}{r}.png",{attribution:'<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia</a>'}),v="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",m=L.tileLayer(v,{attribution:"Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",maxZoom:18}),d.layers=[e.wikimedia?y:f],P=new r.Map(o,d),k={Map:e.wikimedia?y:f,Satellite:m},e.mapTiles&&e.mapTiles.length&&e.mapTiles.forEach(function(t){var e=new r.tileLayer(t.url,t.options);k[t.name]=e}),r.control.layers(k,null,{position:"topleft"}).addTo(P),r.control.zoom({position:"bottomright"}).addTo(P),this.leafletMarkers=new p.default(P,r),this.leafletPolygons=new u.default(P,r),this.leafletCircles=new a.default(P,r),this.leafletPopups=new h.default(P,r),this.leafletPolylines=new g.default(P,r,this.leafletPopups),this.leafletMap=new s.default(P,r),this.leafletOverlays=new c.default(P,r,this.leafletPolygons),this.leafletGeoJson=new l.default(P,r),[2,this];case 4:return w=i.sent(),console.error(w),[2,w];case 5:return[2]}})})},t.prototype.loadGEOJson=function(t,e,o){this.leafletGeoJson.loadGEOJson(t,e,o)},t.prototype.drawMarker=function(t,e){return this.leafletMarkers.drawMarker(t,e)},t.prototype.drawCircleMarker=function(t,e){return this.leafletMarkers.drawCircleMarker(t,e)},t.prototype.toggleMarkers=function(t,e,o){this.leafletMarkers.toggleMarkers(t,e,o)},t.prototype.alterMarkerOptions=function(t,e){this.leafletMarkers.alterMarkerOptions(t,e)},t.prototype.alterMarkerPosition=function(t,e,o){this.leafletMarkers.alterMarkerPosition(t,e,o)},t.prototype.fitBoundsPositions=function(t){this.leafletMarkers.fitBoundsPositions(t)},t.prototype.isMarkerOnMap=function(t){return this.leafletMarkers.isMarkerOnMap(t)},t.prototype.setCenterMarker=function(t){this.leafletMarkers.setCenterMarker(t)},t.prototype.addMarkerEvent=function(t,e,o){this.leafletMarkers.addMarkerEvent(t,e,o)},t.prototype.removeMarkerEvent=function(t,e){this.leafletMarkers.removeMarkerEvent(t,e)},t.prototype.addMarkerClusterer=function(t){return this.leafletMarkers.addMarkerClusterer(t)},t.prototype.alterMarkerClustererConfig=function(t,e){this.leafletMarkers.alterMarkerClustererConfig(t,e)},t.prototype.refreshClusterer=function(t){this.leafletMarkers.refreshClusterer(t)},t.prototype.addMarkerOnClusterer=function(t,e){this.leafletMarkers.addMarkerOnClusterer(t,e)},t.prototype.removeMarkerFromClusterer=function(t,e){this.leafletMarkers.removeMarkerFromClusterer(t,e)},t.prototype.clearMarkersClusterer=function(t){this.leafletMarkers.clearMarkersClusterer(t)},t.prototype.countMarkersOnCluster=function(t){return this.leafletMarkers.countMarkersOnCluster(t)},t.prototype.drawPolygon=function(t,e){return this.leafletPolygons.drawPolygon(t,e)},t.prototype.togglePolygons=function(t,e){this.leafletPolygons.togglePolygons(t,e)},t.prototype.alterPolygonOptions=function(t,e){this.leafletPolygons.alterPolygonOptions(t,e)},t.prototype.fitBoundsPolygons=function(t){this.leafletPolygons.fitBoundsPolygons(t)},t.prototype.setCenterPolygons=function(t){this.leafletPolygons.setCenterPolygons(t)},t.prototype.isPolygonOnMap=function(t){return this.leafletPolygons.isPolygonOnMap(t)},t.prototype.getPolygonPath=function(t){return this.leafletPolygons.getPolygonPath(t)},t.prototype.addPolygonEvent=function(t,e,o){this.leafletPolygons.addPolygonEvent(t,e,o)},t.prototype.removePolygonEvent=function(t,e){this.leafletPolygons.removePolygonEvent(t,e)},t.prototype.drawCircle=function(t,e){return this.leafletCircles.drawCircle(t,e)},t.prototype.toggleCircles=function(t,e){this.leafletCircles.toggleCircles(t,e)},t.prototype.alterCircleOptions=function(t,e){this.leafletCircles.alterCircleOptions(t,e)},t.prototype.fitBoundsCircles=function(t){this.leafletCircles.fitBoundsCircles(t)},t.prototype.isCircleOnMap=function(t){return this.leafletCircles.isCircleOnMap(t)},t.prototype.getCircleCenter=function(t){return this.leafletCircles.getCircleCenter(t)},t.prototype.getCircleRadius=function(t){return this.leafletCircles.getCircleRadius(t)},t.prototype.addCircleEvent=function(t,e,o){this.leafletCircles.addCircleEvent(t,e,o)},t.prototype.removeCircleEvent=function(t,e){this.leafletCircles.removeCircleEvent(t,e)},t.prototype.drawPolyline=function(t,e){return this.leafletPolylines.drawPolyline(t,e)},t.prototype.drawPolylineWithNavigation=function(t,e){return this.leafletPolylines.drawPolylineWithNavigation(t,e)},t.prototype.togglePolylines=function(t,e){this.leafletPolylines.togglePolylines(t,e)},t.prototype.alterPolylineOptions=function(t,e){this.leafletPolylines.alterPolylineOptions(t,e)},t.prototype.fitBoundsPolylines=function(t){this.leafletPolylines.fitBoundsPolylines(t)},t.prototype.isPolylineOnMap=function(t){return this.leafletPolylines.isPolylineOnMap(t)},t.prototype.addPolylinePath=function(t,e){this.leafletPolylines.addPolylinePath(t,e)},t.prototype.getPolylinePath=function(t){return this.leafletPolylines.getPolylinePath(t)},t.prototype.removePolylineHighlight=function(){this.leafletPolylines.removePolylineHighlight()},t.prototype.addPolylineEvent=function(t,e,o){this.leafletPolylines.addPolylineEvent(t,e,o)},t.prototype.removePolylineEvent=function(t,e){this.leafletPolylines.removePolylineEvent(t,e)},t.prototype.setIndexPolylineHighlight=function(t,e){this.leafletPolylines.setIndexPolylineHighlight(t,e)},t.prototype.getObjectPolyline=function(t){return this.leafletPolylines.getObjectPolyline(t)},t.prototype.getObjectPolylineHighlight=function(){return this.leafletPolylines.getObjectPolylineHighlight()},t.prototype.addPolylineHighlightEvent=function(t,e){this.leafletPolylines.addPolylineHighlightEvent(t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.leafletPolylines.getPolylineHighlightIndex()},t.prototype.drawPopup=function(t,e){return this.leafletPopups.drawPopup(t,e)},t.prototype.alterPopup=function(t,e,o){return this.leafletPopups.alterPopup(t,e,o)},t.prototype.alterPopupContent=function(t,e,o){this.leafletPopups.alterPopupContent(t,e,o)},t.prototype.closePopup=function(t){this.leafletPopups.closePopup(t)},t.prototype.resizeMap=function(){this.leafletMap.resizeMap()},t.prototype.addEventMap=function(t,e){this.leafletMap.addEventMap(t,e)},t.prototype.removeEventMap=function(t){this.leafletMap.removeEventMap(t)},t.prototype.getZoom=function(){return this.leafletMap.getZoom()},t.prototype.setZoom=function(t){this.leafletMap.setZoom(t)},t.prototype.getCenter=function(){return this.leafletMap.getCenter()},t.prototype.setCenter=function(t){this.leafletMap.setCenter(t)},t.prototype.pixelsToLatLng=function(t,e){return this.leafletMap.pixelsToLatLng(t,e)},t.prototype.fitBoundsElements=function(t,e,o,n){this.leafletMap.fitBoundsElements(t,e,o,n)},t.prototype.drawOverlay=function(t,e){return this.leafletOverlays.drawOverlay(t,e)},t.prototype.toggleOverlay=function(t,e){this.leafletOverlays.toggleOverlay(t,e)},t.prototype.mapTimeout=function(t){return new Promise(function(e){return setTimeout(e,t)})},t.prototype.loadDependencies=function(t){var e=t.cssDependencies;e&&e.length>0&&e.forEach(function(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t,document.querySelector("head").appendChild(e)});var o=t.scriptsDependencies;o&&o.length>0&&o.forEach(function(t){var e=document.createElement("script");e.type="text/javascript",e.src=t,document.querySelector("head").appendChild(e)})},t}();e.default=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.drawCircle=function(t,e){var o=this,n={color:t.color,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,opacity:t.opacity,radius:t.radius,weight:t.weight},r=new this.leaflet.Circle(t.center,n);return e&&r.on("click",function(t){o.leaflet.DomEvent.stopPropagation(t);var n=new i.default([t.latlng.lat,t.latlng.lng]);e(n,t.target.object)}),t.addToMap&&(r.addTo(o.map),t.editable&&r.enableEdit()),t.object&&(r.object=t.object),t.fitBounds&&o.map.fitBounds(r.getBounds()),r},t.prototype.toggleCircles=function(t,e){var o=this;t.forEach(function(t){return e?o.map.addLayer(t):o.map.removeLayer(t)})},t.prototype.alterCircleOptions=function(t,e){t.forEach(function(t){var o={color:e.color?e.color:t.options.color,draggable:e.draggable?e.draggable:t.options.draggable,editable:e.editable?e.editable:t.options.editable,fillColor:e.fillColor?e.fillColor:t.options.fillColor,fillOpacity:e.fillOpacity?e.fillOpacity:t.options.fillOpacity,opacity:e.opacity?e.opacity:t.options.opacity,weight:e.weight?e.weight:t.options.weight};t.setStyle(o),e.radius&&t.setRadius(e.radius),e.center&&t.setLatLng(e.center),null!==e.editable&&void 0!==e.editable&&(e.editable?t.enableEdit():t.disableEdit())})},t.prototype.fitBoundsCircles=function(t){this.map.fitBounds(this.getBoundsCircles(t))},t.prototype.isCircleOnMap=function(t){return this.map.hasLayer(t)},t.prototype.getCircleCenter=function(t){var e=t.getLatLng();return[e.lat,e.lng]},t.prototype.getCircleRadius=function(t){return t.getRadius()},t.prototype.addCircleEvent=function(t,e,o){t.forEach(function(t){switch(e){case n.CircleEventType.Click:t.on("click",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});case n.CircleEventType.CenterChanged:t.on("dragend",function(e){var n=new i.default([e.target.getLatLng().lat,e.target.getLatLng().lng]);o(n,t.object)});case n.CircleEventType.RadiusChanged:t.on("editable:vertex:dragend",function(e){var n=new i.default([e.vertex.latlng.lat,e.vertex.latlng.lng]);o(n,t.object,t.getRadius())})}})},t.prototype.removeCircleEvent=function(t,e){t.forEach(function(t){switch(e){case n.CircleEventType.Click:t.off("click");case n.CircleEventType.CenterChanged:t.off("dragend");case n.CircleEventType.RadiusChanged:t.off("editable:vertex:dragend")}})},t.prototype.getBoundsCircles=function(t){return new this.leaflet.FeatureGroup(t).getBounds()},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.loadGEOJson=function(t,e,o){var i=this,r=i.parseGeoJson(t,e);r.forEach(function(t){return i.map.addLayer(t)}),i.map.options&&i.map.options.editable&&r.forEach(function(t){t.enableEdit&&t.enableEdit(),o&&t.on("click",function(t){var e=new n.default([t.latlng.lat,t.latlng.lng]);o(e)})})},t.prototype.parseGeoJson=function(t,e){var o=this,n=[];if(Array.isArray(t.features))for(var i=0,r=t.features;i<r.length;i++){var a=r[i];n.push(o.parseGeoJsonToObject(a,e))}else n.push(o.parseGeoJsonToObject(t,e));return n},t.prototype.parseGeoJsonToObject=function(t,e){var o=t.geometry,n=[];switch(t.properties&&Object.assign(e,t.properties),o.type){case"Point":return n=o.coordinates.reverse(),new this.leaflet.Marker(n,e);case"Polygon":return o.coordinates.forEach(function(t){return n.push(t.map(function(t){return t.reverse()}))}),new this.leaflet.Polygon(n,e);case"LineString":return n=o.coordinates.map(function(t){return t.reverse()}),new this.leaflet.Polyline(n,e);default:throw new Error("Unknown object shape.")}},t}();e.default=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.resizeMap=function(){this.map.invalidateSize()},t.prototype.addEventMap=function(t,e){var o=this;switch(t){case n.MapEventType.Click:o.map.on("click",function(t){var o=new i.default([t.latlng.lat,t.latlng.lng]);e(o)});break;case n.MapEventType.ZoomChanged:o.map.on("zoomend",function(t){var o=new i.default([t.target.getCenter().lat,t.target.getCenter().lng]);e(o)})}},t.prototype.removeEventMap=function(t){var e=this;switch(t){case n.MapEventType.Click:e.map.off("click");break;case n.MapEventType.ZoomChanged:e.map.off("zoomend")}},t.prototype.getZoom=function(){return this.map.getZoom()},t.prototype.setZoom=function(t){this.map.setZoom(t)},t.prototype.getCenter=function(){var t=this.map.getCenter();return[t.lat,t.lng]},t.prototype.setCenter=function(t){this.map.panTo(t)},t.prototype.pixelsToLatLng=function(t,e){var o=Math.pow(2,this.map.getZoom()),n=this.leaflet.CRS.Simple.project(this.map.getCenter()),i=new this.leaflet.Point(t/o||0,e/o||0),r=new this.leaflet.Point(n.x-i.x,n.y+i.y),a=this.leaflet.CRS.Simple.unproject(r);return[a.lat,a.lng]},t.prototype.fitBoundsElements=function(t,e,o,n){var i=[];if(t&&t.length&&t.forEach(function(t){return i.push(t)}),e&&e.length&&e.forEach(function(t){return i.push(t)}),o&&o.length&&o.forEach(function(t){return i.push(t)}),n&&n.length&&n.forEach(function(t){return i.push(t)}),i&&i.length){var r=this.leaflet.featureGroup(i).getBounds();this.map.fitBounds(r)}},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.drawMarker=function(t,e){var o={draggable:t.draggable};if(t.icon){o.icon=new this.leaflet.Icon({iconUrl:t.icon.url});var n=t.icon.size;n&&(o.icon.options.iconSize=n,o.icon.options.iconAnchor=[n[0]/2,n[1]],o.icon.options.popupAnchor=[0,-n[1]])}var r=new this.leaflet.Marker(t.latlng,o);if(t.object&&(r.object=t.object),e&&r.on("click",function(t){var o=new i.default([t.latlng.lat,t.latlng.lng]);e(o,t.target.object)}),t.addToMap&&!t.addClusterer&&r.addTo(this.map),t.fitBounds){var a=new this.leaflet.FeatureGroup([r]);this.map.fitBounds(a.getBounds())}return r},t.prototype.drawCircleMarker=function(t,e){var o=this,n=new this.leaflet.circleMarker(t.latlng,t.style);if(e&&n.on("click",function(t){var o=new i.default([t.latlng.lat,t.latlng.lng]);e(o,t.target.object)}),t.addToMap&&n.addTo(o.map),t.fitBounds){var r=new this.leaflet.FeatureGroup([n]);o.map.fitBounds(r.getBounds())}return n.object=t.object,n},t.prototype.toggleMarkers=function(t,e,o){var n=this;t.forEach(function(t){o?e?n.addMarkerOnClusterer(t,o):n.removeMarkerFromClusterer(t,o):e?n.map.addLayer(t):n.map.removeLayer(t)})},t.prototype.alterMarkerOptions=function(t,e){var o=this;t.forEach(function(t){if("circle"===t.type&&e.style){var n={fillColor:e.style.fillColor?e.style.fillColor:t.options.fillColor,fillOpacity:e.style.fillOpacity?e.style.fillOpacity:t.options.fillOpacity,radius:e.style.radius?e.style.radius:t.options.radius,strokeColor:e.style.color?e.style.color:t.options.strokeColor,strokeWeight:e.style.weight?e.style.weight:t.options.strokeWeight};t.setStyle(n)}if(e.icon){var i=new o.leaflet.icon({iconUrl:e.icon.url}),r=e.icon.size;r&&(i.options.iconSize=r,i.options.iconAnchor=[r[0]/2,r[1]]),t.setIcon(i)}e.latlng&&t.setLatLng(e.latlng)})},t.prototype.alterMarkerPosition=function(t,e,o){var n=this;t.forEach(function(t){o?n.moveTransitionMarker(e,t):t.setLatLng(e)})},t.prototype.fitBoundsPositions=function(t){var e=new this.leaflet.featureGroup(t);this.map.fitBounds(e.getBounds())},t.prototype.isMarkerOnMap=function(t){return this.map.hasLayer(t)},t.prototype.setCenterMarker=function(t){this.map.panTo(t.getLatLng())},t.prototype.addMarkerEvent=function(t,e,o){t.forEach(function(t){switch(e){case n.MarkerEventType.Click:t.on("click",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});break;case n.MarkerEventType.RightClick:t.on("contextmenu",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});break;case n.MarkerEventType.AfterDrag:t.on("dragend",function(e){var n=new i.default([e.target.getLatLng().lat,e.target.getLatLng().lng]);o(n,t.object)});break;case n.MarkerEventType.MouseOver:t.on("mouseover",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});break;case n.MarkerEventType.MouseOut:t.on("mouseout",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});break;case n.MarkerEventType.BeforeDrag:t.on("dragstart",function(e){var n=new i.default([e.target.getLatLng().lat,e.target.getLatLng().lng]);o(n,t.object)})}})},t.prototype.removeMarkerEvent=function(t,e){t.forEach(function(t){switch(e){case n.MarkerEventType.Click:t.off("click");break;case n.MarkerEventType.RightClick:t.off("contextmenu");break;case n.MarkerEventType.AfterDrag:t.off("dragend");break;case n.MarkerEventType.MouseOver:t.off("mouseover");break;case n.MarkerEventType.MouseOut:t.off("mouseout");break;case n.MarkerEventType.BeforeDrag:t.off("dragstart")}})},t.prototype.addMarkerClusterer=function(t){var e=this.leaflet.markerClusterGroup({maxClusterRadius:50,showCoverageOnHover:!1,zoomToBoundsOnClick:t.clusterZoomOnClick});return this.map.addLayer(e),e},t.prototype.alterMarkerClustererConfig=function(t,e){t.options.zoomToBoundsOnClick=e.clusterZoomOnClick},t.prototype.refreshClusterer=function(t){t.refreshClusters()},t.prototype.addMarkerOnClusterer=function(t,e){e.addLayer(t)},t.prototype.removeMarkerFromClusterer=function(t,e){e.removeLayer(t)},t.prototype.clearMarkersClusterer=function(t){t.clearLayers()},t.prototype.countMarkersOnCluster=function(t){return t.getLayers().length},t.prototype.moveTransitionMarker=function(t,e){var o={deltaLat:(t[0]-e.getLatLng().lat)/5,deltaLng:(t[1]-e.getLatLng().lng)/5,i:0,position:[e.getLatLng().lat,e.getLatLng().lng],lastPosition:t};this.moveMarker(e,o,5)},t.prototype.moveMarker=function(t,e,o){var n=this;e.position[0]+=e.deltaLat,e.position[1]+=e.deltaLng,t.setLatLng(e.position),e.i<o?(e.i++,setTimeout(function(){return n.moveMarker(t,e,o)},20)):e.i===o&&setTimeout(function(){return t.setLatLng(e.lastPosition)},20)},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=function(){function t(t,e,o){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e,this.leafletPolygons=o}return t.prototype.drawOverlay=function(t,e){var o=t.divElement.outerHTML,i=new this.leaflet.DivIcon({html:o}),r=e&&e.length>0?this.leafletPolygons.getBoundsPolygons(e).getCenter():t.position,a=new this.leaflet.Marker(r,{icon:i,draggable:t.draggable});return t.addToMap&&a.addTo(this.map),a.object=t.object,t.draggable&&t.afterEventDragHandler&&a.on("dragend",function(e){var o=new n.default([e.target.getLatLng().lat,e.target.getLatLng().lng]);t.afterEventDragHandler(o,t.object)}),a},t.prototype.toggleOverlay=function(t,e){var o=this;t.forEach(function(t){return e?o.map.addLayer(t):o.map.removeLayer(t)})},t}();e.default=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.drawPolygon=function(t,e){var o=this,n={color:t.color||"#000",draggable:t.draggable,fillColor:t.fillColor||"#fff",fillOpacity:t.fillOpacity||1,opacity:t.opacity||1,weight:t.weight||2},r=new this.leaflet.Polygon(t.path,n);return e&&r.on("click",function(t){o.leaflet.DomEvent.stopPropagation(t);var n=new i.default([t.latlng.lat,t.latlng.lng]);e(n,t.target.object)}),t.addToMap&&(r.addTo(o.map),t.editable&&r.enableEdit()),t.object&&(r.object=t.object),t.fitBounds&&o.map.fitBounds(r.getBounds()),r},t.prototype.togglePolygons=function(t,e){var o=this;t.forEach(function(t){return e?o.map.addLayer(t):o.map.removeLayer(t)})},t.prototype.alterPolygonOptions=function(t,e){t.forEach(function(t){var o={color:e.color?e.color:t.options.color,draggable:e.draggable?e.draggable:t.options.draggable,fillColor:e.fillColor?e.fillColor:t.options.fillColor,fillOpacity:e.fillOpacity?e.fillOpacity:t.options.fillOpacity,opacity:e.opacity?e.opacity:t.options.opacity,weight:e.weight?e.weight:t.options.weight};e.path&&t.setLatLngs(e.path),t.setStyle(o),null!==e.editable&&void 0!==e.editable&&(t.disableEdit(),e.editable&&t.enableEdit()),e.object&&(t.object=e.object)})},t.prototype.fitBoundsPolygons=function(t){this.map.fitBounds(this.getBoundsPolygons(t))},t.prototype.setCenterPolygons=function(t){this.map.panTo(this.getBoundsPolygons(t).getCenter())},t.prototype.isPolygonOnMap=function(t){return this.map.hasLayer(t)},t.prototype.getPolygonPath=function(t){return t.getLatLngs()[0].map(function(t){return[t.lat,t.lng]})},t.prototype.addPolygonEvent=function(t,e,o){var i=this,r=this;t.forEach(function(t){switch(e){case n.PolygonEventType.SetAt:i.addPolygonEventMove(t,o);break;case n.PolygonEventType.InsertAt:i.addPolygonEventInsertAt(t,o);break;case n.PolygonEventType.RemoveAt:i.addPolygonEventRemoveAt(t,o);break;case n.PolygonEventType.DragPolygon:i.addPolygonEventDragPolygon(t,o);break;case n.PolygonEventType.Click:i.addPolygonEventClick(t,o,r)}})},t.prototype.removePolygonEvent=function(t,e){t.forEach(function(t){switch(e){case n.PolygonEventType.SetAt:t.off("editable:vertex:dragstart");break;case n.PolygonEventType.InsertAt:t.off("editable:vertex:new");break;case n.PolygonEventType.RemoveAt:t.off("editable:vertex:clicked"),t.off("editable:vertex:deleted");break;case n.PolygonEventType.DragPolygon:t.off("dragend");break;case n.PolygonEventType.Click:t.off("click")}})},t.prototype.getBoundsPolygons=function(t){return new this.leaflet.FeatureGroup(t).getBounds()},t.prototype.addPolygonEventMove=function(t,e){t.on("editable:vertex:dragstart",function(o){var n=new i.default([o.vertex.latlng.lat,o.vertex.latlng.lng]);t.on("editable:vertex:dragend",function(o){var r=new i.default([o.vertex.latlng.lat,o.vertex.latlng.lng]),a=t.getLatLngs().map(function(t){return Array.isArray(t[0])?t.map(function(t){return t.map(function(t){return new i.default([t.lat,t.lng])})}):[t.map(function(t){return new i.default([t.lat,t.lng])})]});e(r,n,o.target.object,o.vertex.getIndex(),a[0]),t.off("editable:vertex:dragend")})})},t.prototype.addPolygonEventInsertAt=function(t,e){t.on("editable:vertex:new",function(o){var n=o.vertex.latlngs,r=n[n.findIndex(function(t){return t===o.vertex.latlng})-1];if(r){var a=new i.default([r.lat,r.lng]);t.on("editable:vertex:dragend",function(o){var n=new i.default([o.vertex.latlng.lat,o.vertex.latlng.lng]),r=t.getLatLngs().map(function(t){return Array.isArray(t[0])?t.map(function(t){return t.map(function(t){return new i.default([t.lat,t.lng])})}):[t.map(function(t){return new i.default([t.lat,t.lng])})]});e(n,a,o.target.object,o.vertex.getIndex(),r[0]),t.off("editable:vertex:dragend")})}})},t.prototype.addPolygonEventRemoveAt=function(t,e){t.on("editable:vertex:deleted",function(o){var n=new i.default([o.vertex.latlng.lat,o.vertex.latlng.lng]),r=t.getLatLngs().map(function(t){return Array.isArray(t[0])?t.map(function(t){return t.map(function(t){return new i.default([t.lat,t.lng])})}):[t.map(function(t){return new i.default([t.lat,t.lng])})]});e(n,r[0],o.target.object)})},t.prototype.addPolygonEventDragPolygon=function(t,e){t.on("dragend",function(o){var n=t.getLatLngs().map(function(t){return Array.isArray(t[0])?t.map(function(t){return t.map(function(t){return new i.default([t.lat,t.lng])})}):[t.map(function(t){return new i.default([t.lat,t.lng])})]});e(n[0],o.target.object)})},t.prototype.addPolygonEventClick=function(t,e,o){t.on("click",function(t){o.leaflet.DomEvent.stopPropagation(t);var n=new i.default([t.latlng.lat,t.latlng.lng]);e(n,t.target.object)})},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(3),r=o(0),a=function(){function t(t,e,o){this.map=null,this.leaflet=null,this.selectedPolyline=null,this.selectedPath=null,this.navigateInfoWindow=null,this.directionForward=!1,this.multiSelectionForward=!1,this.multiSelection=!1,this.map=t,this.leaflet=e,this.leafletPopup=o}return t.prototype.drawPolyline=function(t,e){var o=this,n={color:t.color||"#000000",dashArray:null,draggable:t.draggable,editable:t.editable,infowindows:t.infowindows,opacity:t.opacity||1,weight:t.weight||3,zIndex:t.zIndex};if(null!==t.style)switch(t.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.opacity=.7,n.dashArray="20,15"}var a=new this.leaflet.Polyline(t.path||[],n);if(a.on("editable:vertex:rawclick",function(t){return t.cancel()}),e&&(a.on("click",function(t){o.leaflet.DomEvent.stopPropagation(t);var n=new r.default([t.latlng.lat,t.latlng.lng]);e(n,t.target.object)}),a.on("editable:vertex:rawclick",function(t){t.cancel();var o=new r.default([t.latlng.lat,t.latlng.lng]);e(o,t.target.object)})),t.style&&t.style===i.PolylineType.Arrow){var l={fillOpacity:1,weight:0,color:a.options.color};a.decorator=o.leaflet.polylineDecorator(a,{patterns:[{offset:"20%",repeat:"90px",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:l})},{offset:"0%",symbol:o.leaflet.Symbol.arrowHead({pathOptions:l,pixelSize:20})},{offset:"100%",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:l})}]})}return t.addToMap&&(a.addTo(o.map),a.decorator&&a.decorator.addTo(o.map),t.editable&&a.enableEdit()),t.object&&(a.object=t.object),t.fitBounds&&o.map.fitBounds(a.getBounds()),a},t.prototype.drawPolylineWithNavigation=function(t,e){var o=this.drawPolyline(t,null);return o.navigationHandlerClick=e,this.navigationOptions=t.navigateOptions,this.navigateByPoint=!this.navigationOptions||this.navigationOptions.navigateByPoint,this.addNavigation(o),o},t.prototype.togglePolylines=function(t,e){var o=this;t.forEach(function(t){e?(o.map.addLayer(t),t.options.editable&&t.enableEdit(),t.decorator&&o.map.addLayer(t.decorator)):(o.map.removeLayer(t),t.options.editable&&t.disableEdit(),t.decorator&&o.map.removeLayer(t.decorator))})},t.prototype.alterPolylineOptions=function(t,e){var o=this;t.forEach(function(t){var n={color:e.color?e.color:t.options.color,draggable:e.draggable?e.draggable:t.options.draggable,opacity:e.opacity?e.opacity:t.options.opacity,weight:e.weight?e.weight:t.options.weight,zIndex:e.zIndex?e.zIndex:t.options.zIndex};switch(e.path&&t.setLatLngs(e.path),e.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.dashArray="20,15";break;case i.PolylineType.Arrow:var r={fillOpacity:1,weight:0,color:n.color};t.decorator&&o.map.removeLayer(t.decorator),t.decorator=o.leaflet.polylineDecorator(t,{patterns:[{offset:"20%",repeat:"90px",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:r})},{offset:"0%",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:r})},{offset:"100%",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:r})}]}),o.map.hasLayer(t)&&t.decorator.addTo(o.map);break;default:t.decorator&&(o.map.removeLayer(t.decorator),t.decorator=null)}t.setStyle(n),e.object&&(t.object=e.object),e.editable&&(t.disableEdit(),t.enableEdit())})},t.prototype.fitBoundsPolylines=function(t){var e=this;e.map.fitBounds(e.getBoundsPolylines(t))},t.prototype.isPolylineOnMap=function(t){return this.map.hasLayer(t)},t.prototype.addPolylinePath=function(t,e){var o=this;t.forEach(function(t){var n=t.getLatLngs();n.push(new o.leaflet.LatLng(e[0],e[1])),t.setLatLngs(n),t.editEnabled&&t.editEnabled()&&(t.disableEdit(),t.enableEdit())})},t.prototype.getPolylinePath=function(t){return t.getLatLngs().map(function(t){return[t.lat,t.lng]})},t.prototype.removePolylineHighlight=function(){var t=this;t.selectedPath&&(this.selectedPath.decorator&&this.map.removeLayer(this.selectedPath.decorator),this.map.removeLayer(t.selectedPath),t.selectedPath=null),t.navigateInfoWindow&&t.navigateInfoWindow.remove(),document.onkeyup=null,document.onkeydown=null},t.prototype.addPolylineEvent=function(t,e,o){var i=this;t.forEach(function(t){switch(e){case n.PolylineEventType.SetAt:i.addPolylineEventMove(t,o);break;case n.PolylineEventType.InsertAt:i.addPolylineEventInsertAt(t,o);break;case n.PolylineEventType.RemoveAt:i.addPolylineEventRemoveAt(t,o);break;case n.PolylineEventType.DragPolyline:i.addPolylineEventDragPolyline(t,o)}})},t.prototype.removePolylineEvent=function(t,e){t.forEach(function(t){switch(e){case n.PolylineEventType.SetAt:t.off("editable:vertex:dragstart");break;case n.PolylineEventType.InsertAt:t.off("editable:vertex:new");break;case n.PolylineEventType.RemoveAt:t.off("editable:vertex:deleted");break;case n.PolylineEventType.DragPolyline:t.off("dragend")}})},t.prototype.setIndexPolylineHighlight=function(t,e){this.directionForward=!1,t.initialIdx=e,t.finalIdx=e+1,this.moveSelectedPath(t,this.navigationOptions),this.selectedPolyline=t,this.navigationOptions.navegateOnKeyPress?document.onkeydown=this.onKeyUp.bind(this):document.onkeyup=this.onKeyUp.bind(this)},t.prototype.getObjectPolyline=function(t){return t.object},t.prototype.getObjectPolylineHighlight=function(){return this.selectedPath?this.selectedPath.object:null},t.prototype.addPolylineHighlightEvent=function(t,e){this.selectedPolyline&&this.addPolylineEvent([this.selectedPath],t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.selectedPath?[this.selectedPath.initialIdx,this.selectedPath.finalIdx]:null},t.prototype.addNavigation=function(t){t.clearAllEventListeners(),t.on("click",this.onClickPolyline.bind(this,t))},t.prototype.onClickPolyline=function(t,e){var o=this.checkIdx(t,e.latlng);if(t.initialIdx=o,t.finalIdx=o+1,this.moveSelectedPath(t,this.navigationOptions),this.selectedPolyline=t,this.navigationOptions.navegateOnKeyPress?document.onkeydown=this.onKeyUp.bind(this):document.onkeyup=this.onKeyUp.bind(this),t.navigationHandlerClick){var n=new r.default([e.latlng.lat,e.latlng.lng]);t.navigationHandlerClick(n,e.target.object)}},t.prototype.onKeyUp=function(t){var e=this;if(e.selectedPath)switch(t.ctrlKey&&console.warn("Deprecated: CTRL is not needed in navigation anymore"),t.which?t.which:t.keyCode){case 38:case 39:e.moveFowards(t.shiftKey);break;case 37:case 40:e.moveBackwards(t.shiftKey)}},t.prototype.moveFowards=function(t){var e=this.selectedPolyline;(!this.navigateByPoint||this.directionForward)&&e.finalIdx<e.getLatLngs().length-1&&this.navigateFoward(t,e),this.directionForward=!0,this.moveSelectedPath(e,null)},t.prototype.navigateFoward=function(t,e){t?(this.multiSelection=!0,this.multiSelectionForward&&e.finalIdx++,this.multiSelectionForward=!0):(e.finalIdx++,e.initialIdx=this.multiSelection?e.finalIdx-1:e.initialIdx+1,this.multiSelection=!1)},t.prototype.moveBackwards=function(t){var e=this.selectedPolyline;this.navigateByPoint&&this.directionForward||!(e.initialIdx>0)||this.navigateBackward(t,e),this.directionForward=!1,this.moveSelectedPath(e,null)},t.prototype.navigateBackward=function(t,e){var o=this;t?(o.multiSelection=!0,o.multiSelectionForward||e.initialIdx--,o.multiSelectionForward=!1):(e.initialIdx--,e.finalIdx=o.multiSelection?e.initialIdx+1:e.finalIdx-1,o.multiSelection=!1)},t.prototype.moveSelectedPath=function(t,e){var o=this,n=t.getLatLngs().map(function(t){return[t.lat,t.lng]}).slice(t.initialIdx,t.finalIdx+1);o.selectedPath?(o.selectedPath.setLatLngs(n),this.selectedPath.object=t.object):(this.addNewSelectedPath(n,e,t.object),this.selectedPath.addTo(this.map)),this.selectedPath.decorator&&(this.map.removeLayer(this.selectedPath.decorator),this.setArrowSelectedPath()),(e&&e.editable||this.selectedPath.editEnabled&&this.selectedPath.editEnabled())&&(this.selectedPath.disableEdit(),this.selectedPath.enableEdit()),this.selectedPath.initialIdx=t.initialIdx,this.selectedPath.finalIdx=t.finalIdx;var i=o.directionForward?t.finalIdx:t.initialIdx;this.navigateByPoint||(i=t.finalIdx>t.initialIdx?t.finalIdx:t.initialIdx);var r=t.options.infowindows?t.options.infowindows[i]:null;if(r){var a=t.getLatLngs()[i];o.navigateInfoWindow?o.leafletPopup.alterPopup(o.navigateInfoWindow,{content:r,latlng:[a.lat,a.lng]}):o.navigateInfoWindow=o.leafletPopup.drawPopup({content:r,latlng:[a.lat,a.lng]})}},t.prototype.setArrowSelectedPath=function(){var t={fillOpacity:1,weight:0,color:this.selectedPath.options.color};this.selectedPath.decorator=this.leaflet.polylineDecorator(this.selectedPath,{patterns:[{offset:"100%",symbol:this.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:t})}]}),this.selectedPath.decorator.addTo(this.map)},t.prototype.addNewSelectedPath=function(t,e,o){var n={color:e&&e.color||"#FF0000",draggable:!1,editable:e.editable,opacity:e&&e.opacity||1,weight:e&&e.weight||10,zIndex:9999};if(null!==e.style)switch(e.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.opacity=.7,n.dashArray="20,15"}this.selectedPath=new this.leaflet.Polyline(t,n),this.selectedPath.on("editable:vertex:rawclick",function(t){return t.cancel()}),e.style&&e.style===i.PolylineType.Arrow&&this.setArrowSelectedPath(),this.selectedPath.object=o,this.selectedPath.highlight=!0},t.prototype.checkIdx=function(t,e){for(var o=this,n=t.getLatLngs(),i=0,r=Number.MAX_VALUE,a=-1,l=0;l<n.length-1;l++)(i=o.distanceToLine(n[l],n[l+1],e))<r&&(r=i,a=l);return a},t.prototype.distanceToLine=function(t,e,o){var n=this,i=e.lng-t.lng,r=e.lat-t.lat,a=(o.lng-t.lng)*i,l=i*i+r*r;if(a+=(o.lat-t.lat)*r,l>0?a/=l:a=-1,a<0)return n.kmTo(o,t);if(a>1)return n.kmTo(o,e);var s=new this.leaflet.LatLng(t.lat+a*r,t.lng+a*i);return n.kmTo(o,s)},t.prototype.kmTo=function(t,e){var o=Math,n=o.PI/180,i=t.lat*n,r=e.lat*n,a=i-r,l=t.lng*n-e.lng*n;return 2*o.asin(o.sqrt(o.pow(o.sin(a/2),2)+o.cos(i)*o.cos(r)*o.pow(o.sin(l/2),2)))*6378.137*1e3},t.prototype.getBoundsPolylines=function(t){return new this.leaflet.FeatureGroup(t).getBounds()},t.prototype.addPolylineEventMove=function(t,e){var o=this;t.on("editable:vertex:dragstart",function(n){var i=new r.default([n.vertex.latlng.lat,n.vertex.latlng.lng]);t.on("editable:vertex:dragend",function(n){t.highlight&&t.decorator&&(o.map.removeLayer(t.decorator),o.setArrowSelectedPath());var a=new r.default([n.vertex.latlng.lat,n.vertex.latlng.lng]);e(a,i,n.target.object,n.vertex.getIndex(),t.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])})),t.off("editable:vertex:dragend")})})},t.prototype.addPolylineEventInsertAt=function(t,e){var o=this;t.on("editable:vertex:new",function(n){var i=n.vertex.latlngs,a=i[i.findIndex(function(t){return t===n.vertex.latlng})-1],l=new r.default([a.lat,a.lng]);t.on("editable:vertex:dragend",function(n){t.highlight&&t.decorator&&(o.map.removeLayer(t.decorator),o.setArrowSelectedPath());var i=new r.default([n.vertex.latlng.lat,n.vertex.latlng.lng]);e(i,l,n.target.object,n.vertex.getIndex(),t.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])})),t.off("editable:vertex:dragend")})})},t.prototype.addPolylineEventRemoveAt=function(t,e){t.on("editable:vertex:deleted",function(o){var n=new r.default([o.vertex.latlng.lat,o.vertex.latlng.lng]);e(n,o.target.object,t.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])}))})},t.prototype.addPolylineEventDragPolyline=function(t,e){t.on("dragend",function(t){var o=t.target.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])});e(o,t.target.object)})},t}();e.default=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.drawPopup=function(t,e){var o=this,n=null;return e?n=o.drawPopupOnMarker(e,t):(n=new this.leaflet.Popup,n.setLatLng(t.latlng),n.setContent(t.content),n.openOn(o.map)),t.object&&(n.object=t.object),n},t.prototype.alterPopup=function(t,e,o){var n=this;return o&&!o.getPopup()?t=n.drawPopup(e,o):(n.alterPopupContent(t,e,o),t.isOpen()||(o?e.notCalledByMap&&o.openPopup():t.openOn(n.map))),e.object&&(t.object=e.object),t},t.prototype.alterPopupContent=function(t,e,o){o&&(t=o._popup),t&&(e.content&&t.setContent(e.content),e.latlng&&t.setLatLng(e.latlng)),e.object&&(t.object=e.object)},t.prototype.closePopup=function(t){t.remove()},t.prototype.drawPopupOnMarker=function(t,e){t.bindPopup(e.content);var o=t.getPopup();return t.openPopup(),o},t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a){this.center=t,this.radius=e,this.weight=o,this.fillOpacity=n,this.fillColor=i,this.color=r,this.opacity=a}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a,l,s,p,c,u){this.center=t,this.radius=e,this.weight=o,this.addToMap=n,this.fillOpacity=i,this.fillColor=r,this.color=a,this.opacity=l,this.draggable=s,this.editable=p,this.fitBounds=c,this.object=u}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.draggable=t,this.editable=e}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i){this.latlng=t,this.addToMap=o,this.style=e,this.fitBounds=n,this.object=i}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i){this.radius=t,this.weight=e,this.color=o,this.fillColor=n,this.fillOpacity=i}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o){this.latlng=t,this.icon=e,this.style=o}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.url=t,this.size=e}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a){void 0===e&&(e=!1),void 0===o&&(o=!1),void 0===i&&(i=!1),void 0===a&&(a=!1),this.latlng=t,this.addToMap=e,this.draggable=o,this.icon=n,this.fitBounds=i,this.object=r,this.addClusterer=a}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a){void 0===a&&(a=!1),this.position=o,this.divElement=t,this.addToMap=e,this.object=n,this.polygon=i,this.conditionPolygon=r,this.draggable=a}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r){this.addToMap=t,this.color=e,this.opacity=o,this.fillColor=n,this.fillOpacity=i,this.weight=r}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a,l,s,p,c){this.path=t,this.weight=e,this.addToMap=o,this.color=n,this.opacity=i,this.fillColor=r,this.fillOpacity=a,this.draggable=l,this.editable=s,this.fitBounds=p,this.object=c}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n){void 0===o&&(o=!0),void 0===n&&(n=1),this.color=t,this.weight=e,this.opacity=n,this.navigateByPoint=o,this.navegateOnKeyPress=!1}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r){this.latlng=t,this.content=e,this.marker=o,this.conditionMarker=n,this.notCalledByMap=i,this.object=r}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.urlBuilder=function(t){var e=t.base;return e+="?",t.apiKey&&(e+="key="+t.apiKey+"&"),t.integrity&&(e+="integrity="+t.integrity+"&"),t.client&&(e+="client="+t.client+"&"),t.crossorigin&&(e+="crossorigin="+t.crossorigin+"&"),t.libraries&&t.libraries.length>0&&(e+="libraries=",t.libraries.forEach(function(o,n){e+=o,n!==t.libraries.length-1&&(e+=",")}),e+="&"),t.language&&(e+="language="+t.language+"&"),t.callback&&(e+="callback="+t.callback+"&"),e}},function(t,e,o){t.exports=o(7)}])});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("InlogMaps",[],e):"object"==typeof exports?exports.InlogMaps=e():t.InlogMaps=e()}(this,function(){return function(t){function e(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var o={};return e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=42)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.latlng=t}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t[t.Click=0]="Click",t[t.ZoomChanged=1]="ZoomChanged"}(e.MapEventType||(e.MapEventType={}));!function(t){t[t.Click=0]="Click",t[t.RightClick=1]="RightClick",t[t.AfterDrag=2]="AfterDrag",t[t.MouseOver=3]="MouseOver",t[t.MouseOut=4]="MouseOut",t[t.BeforeDrag=5]="BeforeDrag"}(e.MarkerEventType||(e.MarkerEventType={}));!function(t){t[t.Click=0]="Click",t[t.CenterChanged=1]="CenterChanged",t[t.RadiusChanged=2]="RadiusChanged"}(e.CircleEventType||(e.CircleEventType={}));!function(t){t[t.SetAt=0]="SetAt",t[t.InsertAt=1]="InsertAt",t[t.RemoveAt=2]="RemoveAt",t[t.DragPolygon=3]="DragPolygon",t[t.Click=4]="Click"}(e.PolygonEventType||(e.PolygonEventType={}));!function(t){t[t.SetAt=0]="SetAt",t[t.InsertAt=1]="InsertAt",t[t.RemoveAt=2]="RemoveAt",t[t.DragPolyline=3]="DragPolyline",t[t.MouseOver=4]="MouseOver",t[t.MouseOut=5]="MouseOut"}(e.PolylineEventType||(e.PolylineEventType={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t[t.Google=0]="Google",t[t.Leaflet=1]="Leaflet"}(e.MapType||(e.MapType={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t[t.Dashed=0]="Dashed",t[t.Dotted=1]="Dotted",t[t.Arrow=2]="Arrow"}(e.PolylineType||(e.PolylineType={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o){this.clusterZoomOnClick=t,this.clusterMinSize=e,this.clusterMaxZoom=o}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a,l,s,p,c,u,g){this.path=t,this.addToMap=e,this.fitBounds=o,this.editable=n,this.draggable=i,this.color=r,this.weight=a,this.object=l,this.infowindows=s,this.navigateOptions=p,this.style=c,this.opacity=u,this.zIndex=g}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(2),i=o(41),r=function(){function t(){}return t.loadGoogleAPI=function(t){var e=document.createElement("script");e.type="text/javascript",e.setAttribute("data-google-inlogmaps","true"),e.src=i.urlBuilder({apiKey:t.apiKey,base:"https://maps.googleapis.com/maps/api/js",callback:"mapsAPILoadCallback",client:t.client,language:t.language,libraries:t.libraries||[]}),document.querySelector("script").hasAttribute("data-google-inlogmaps")||document.querySelector("head").appendChild(e)},t.loadLeafletAPI=function(t){var e=document.createElement("link");e.rel="stylesheet",e.href="https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.css",document.querySelector("head").appendChild(e);var o=document.createElement("script");o.type="text/javascript",o.src=i.urlBuilder({base:"https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.js",callback:"mapsAPILoadCallback"}),document.querySelector("head").appendChild(o)},t.prototype.loadApi=function(e,o){if(t.mapsApi)return Promise.resolve(t.mapsApi);t.windowRef=window||{api:null,mapsAPILoadCallback:null};var i=function(i,r){e===n.MapType.Google?t.loadGoogleAPI(o):t.loadLeafletAPI(o),e===n.MapType.Leaflet?setTimeout(function(){t.mapsApi=t.windowRef.L,i(t.mapsApi)},2e3):t.windowRef.mapsAPILoadCallback=function(){t.mapsApi=t.windowRef.google,i(t.mapsApi)},setTimeout(function(){t.windowRef.api||r(new Error("Loading took too long"))},5e3)};return new Promise(i)},t.windowRef=null,t.mapsApi=null,t}();e.MapsApiLoaderService=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(9);e.Map=n.default;var i=o(28);e.CircleAlterOptions=i.default;var r=o(29);e.CircleOptions=r.default;var a=o(0);e.EventReturn=a.default;var l=o(30);e.GeoJsonOptions=l.default;var s=o(31);e.CircleMarkerOptions=s.default;var p=o(32);e.CircleMarkerStyle=p.default;var c=o(33);e.MarkerAlterOptions=c.default;var u=o(34);e.MarkerIcon=u.default;var g=o(35);e.MarkerOptions=g.default;var h=o(36);e.OverlayOptions=h.default;var d=o(37);e.PolygonAlterOptions=d.default;var f=o(38);e.PolygonOptions=f.default;var y=o(39);e.NavigationOptions=y.default;var v=o(5);e.PolylineOptions=v.default;var m=o(40);e.PopupOptions=m.default;var P=o(4);e.MarkerClustererConfig=P.default;var k=o(1);e.MarkerEventType=k.MarkerEventType,e.CircleEventType=k.CircleEventType,e.PolygonEventType=k.PolygonEventType,e.PolylineEventType=k.PolylineEventType,e.MapEventType=k.MapEventType;var M=o(2);e.MapType=M.MapType;var b=o(3);e.PolylineType=b.PolylineType},function(t,e,o){function n(t,e){t.getMarkerClusterer().extend(n,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}function i(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinimumClusterSize(),this.averageCenter_=t.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new n(this,t.getStyles())}function r(t,e,o){this.extend(r,google.maps.OverlayView),e=e||[],o=o||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=o.gridSize||60,this.minClusterSize_=o.minimumClusterSize||2,this.maxZoom_=o.maxZoom||null,this.styles_=o.styles||[],this.title_=o.title||"",this.zoomOnClick_=!0,void 0!==o.zoomOnClick&&(this.zoomOnClick_=o.zoomOnClick),this.averageCenter_=!1,void 0!==o.averageCenter&&(this.averageCenter_=o.averageCenter),this.ignoreHidden_=!1,void 0!==o.ignoreHidden&&(this.ignoreHidden_=o.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==o.enableRetinaIcons&&(this.enableRetinaIcons_=o.enableRetinaIcons),this.imagePath_=o.imagePath||r.IMAGE_PATH,this.imageExtension_=o.imageExtension||r.IMAGE_EXTENSION,this.imageSizes_=o.imageSizes||r.IMAGE_SIZES,this.calculator_=o.calculator||r.CALCULATOR,this.batchSize_=o.batchSize||r.BATCH_SIZE,this.batchSizeIE_=o.batchSizeIE||r.BATCH_SIZE_IE,this.clusterClass_=o.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(e,!0),this.setMap(t)}n.prototype.onAdd=function(){var t,e,o=this,n=google.maps.version.split(".");n=parseInt(100*n[0],10)+parseInt(n[1],10),this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){e=t}),google.maps.event.addDomListener(this.div_,"mousedown",function(){t=!0,e=!1}),n>=332&&google.maps.event.addDomListener(this.div_,"touchstart",function(t){t.stopPropagation()}),google.maps.event.addDomListener(this.div_,"click",function(n){if(t=!1,!e){var i,r,a=o.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"click",o.cluster_),google.maps.event.trigger(a,"clusterclick",o.cluster_),a.getZoomOnClick()&&(r=a.getMaxZoom(),i=o.cluster_.getBounds(),a.getMap().fitBounds(i),setTimeout(function(){a.getMap().fitBounds(i),null!==r&&a.getMap().getZoom()>r&&a.getMap().setZoom(r+1)},100)),n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){var t=o.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseover",o.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){var t=o.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseout",o.cluster_)})},n.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px",this.div_.style.zIndex=google.maps.Marker.MAX_ZINDEX+1}},n.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},n.prototype.show=function(){if(this.div_){var t="",e=this.backgroundPosition_.split(" "),o=parseInt(e[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(e[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(i),t="<img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+o+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_?t+="width: "+this.width_+"px; height: "+this.height_+"px;":t+="clip: rect("+-1*n+"px, "+(-1*o+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*o+"px);",t+="'>",this.div_.innerHTML=t+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>",void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},n.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e);var o=this.styles_[e];this.url_=o.url,this.height_=o.height,this.width_=o.width,this.anchorText_=o.anchorText||[0,0],this.anchorIcon_=o.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=o.textColor||"black",this.textSize_=o.textSize||11,this.textDecoration_=o.textDecoration||"none",this.fontWeight_=o.fontWeight||"bold",this.fontStyle_=o.fontStyle||"normal",this.fontFamily_=o.fontFamily||"Arial,sans-serif",this.backgroundPosition_=o.backgroundPosition||"0 0"},n.prototype.setCenter=function(t){this.center_=t},n.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width_+"px; height: "+this.height_+"px;"),e.push("-webkit-user-select: none;"),e.push("-khtml-user-select: none;"),e.push("-moz-user-select: none;"),e.push("-o-user-select: none;"),e.push("user-select: none;"),e.join("")},n.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},i.prototype.getSize=function(){return this.markers_.length},i.prototype.getMarkers=function(){return this.markers_},i.prototype.getCenter=function(){return this.center_},i.prototype.getMap=function(){return this.map_},i.prototype.getMarkerClusterer=function(){return this.markerClusterer_},i.prototype.getBounds=function(){var t,e=new google.maps.LatLngBounds(this.center_,this.center_),o=this.getMarkers();for(t=0;t<o.length;t++)e.extend(o[t].getPosition());return e},i.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},i.prototype.addMarker=function(t){var e,o,n;if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var i=this.markers_.length+1,r=(this.center_.lat()*(i-1)+t.getPosition().lat())/i,a=(this.center_.lng()*(i-1)+t.getPosition().lng())/i;this.center_=new google.maps.LatLng(r,a),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();if(t.isAdded=!0,this.markers_.push(t),o=this.markers_.length,null!==(n=this.markerClusterer_.getMaxZoom())&&this.map_.getZoom()>n)t.getMap()!==this.map_&&t.setMap(this.map_);else if(o<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(o===this.minClusterSize_)for(e=0;e<o;e++)this.markers_[e].setMap(null);else t.setMap(null);return this.updateIcon_(),!0},i.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},i.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},i.prototype.updateIcon_=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)return void this.clusterIcon_.hide();if(t<this.minClusterSize_)return void this.clusterIcon_.hide();var o=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,o);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()},i.prototype.isMarkerAlreadyAdded_=function(t){var e;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},r.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){var t=this.getMap().getZoom(),e=this.getMap().minZoom||0,o=Math.min(this.getMap().maxZoom||100,this.getMap().mapTypes[this.getMap().getMapTypeId()].maxZoom);t=Math.min(Math.max(t,e),o),this.prevZoom_!=t&&(this.prevZoom_=t,this.resetViewport_(!1))}.bind(this)),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw_()})]},r.prototype.onRemove=function(){var t;for(t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},r.prototype.draw=function(){},r.prototype.setupStyles_=function(){var t,e;if(!(this.styles_.length>0))for(t=0;t<this.imageSizes_.length;t++)e=this.imageSizes_[t],this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:e,width:e})},r.prototype.fitMapToMarkers=function(){var t,e=this.getMarkers(),o=new google.maps.LatLngBounds;for(t=0;t<e.length;t++)!e[t].getVisible()&&this.getIgnoreHidden()||o.extend(e[t].getPosition());this.getMap().fitBounds(o)},r.prototype.getGridSize=function(){return this.gridSize_},r.prototype.setGridSize=function(t){this.gridSize_=t},r.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},r.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},r.prototype.getMaxZoom=function(){return this.maxZoom_},r.prototype.setMaxZoom=function(t){this.maxZoom_=t},r.prototype.getStyles=function(){return this.styles_},r.prototype.setStyles=function(t){this.styles_=t},r.prototype.getTitle=function(){return this.title_},r.prototype.setTitle=function(t){this.title_=t},r.prototype.getZoomOnClick=function(){return this.zoomOnClick_},r.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},r.prototype.getAverageCenter=function(){return this.averageCenter_},r.prototype.setAverageCenter=function(t){this.averageCenter_=t},r.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},r.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},r.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},r.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},r.prototype.getImageExtension=function(){return this.imageExtension_},r.prototype.setImageExtension=function(t){this.imageExtension_=t},r.prototype.getImagePath=function(){return this.imagePath_},r.prototype.setImagePath=function(t){this.imagePath_=t},r.prototype.getImageSizes=function(){return this.imageSizes_},r.prototype.setImageSizes=function(t){this.imageSizes_=t},r.prototype.getCalculator=function(){return this.calculator_},r.prototype.setCalculator=function(t){this.calculator_=t},r.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},r.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},r.prototype.getClusterClass=function(){return this.clusterClass_},r.prototype.setClusterClass=function(t){this.clusterClass_=t},r.prototype.getMarkers=function(){return this.markers_},r.prototype.getTotalMarkers=function(){return this.markers_.length},r.prototype.getClusters=function(){return this.clusters_},r.prototype.getTotalClusters=function(){return this.clusters_.length},r.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},r.prototype.addMarkers=function(t,e){var o;for(o in t)t.hasOwnProperty(o)&&this.pushMarkerTo_(t[o]);e||this.redraw_()},r.prototype.pushMarkerTo_=function(t){if(t.getDraggable()){var e=this;google.maps.event.addListener(t,"dragend",function(){e.ready_&&(this.isAdded=!1,e.repaint())})}t.isAdded=!1,this.markers_.push(t)},r.prototype.removeMarker=function(t,e){var o=this.removeMarker_(t);return!e&&o&&this.repaint(),o},r.prototype.removeMarkers=function(t,e){var o,n,i=!1;for(o=0;o<t.length;o++)n=this.removeMarker_(t[o]),i=i||n;return!e&&i&&this.repaint(),i},r.prototype.removeMarker_=function(t){var e,o=-1;if(this.markers_.indexOf)o=this.markers_.indexOf(t);else for(e=0;e<this.markers_.length;e++)if(t===this.markers_[e]){o=e;break}return-1!==o&&(t.setMap(null),this.markers_.splice(o,1),!0)},r.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},r.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){var e;for(e=0;e<t.length;e++)t[e].remove()},0)},r.prototype.getExtendedBounds=function(t){var e=this.getProjection(),o=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(o);i.x+=this.gridSize_,i.y-=this.gridSize_;var r=e.fromLatLngToDivPixel(n);r.x-=this.gridSize_,r.y+=this.gridSize_;var a=e.fromDivPixelToLatLng(i),l=e.fromDivPixelToLatLng(r);return t.extend(a),t.extend(l),t},r.prototype.redraw_=function(){this.createClusters_(0)},r.prototype.resetViewport_=function(t){var e,o;for(e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e<this.markers_.length;e++)o=this.markers_[e],o.isAdded=!1,t&&o.setMap(null)},r.prototype.distanceBetweenPoints_=function(t,e){var o=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=Math.sin(o/2)*Math.sin(o/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371},r.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},r.prototype.addToClosestCluster_=function(t){var e,o,n,r,a=4e4,l=null;for(e=0;e<this.clusters_.length;e++)n=this.clusters_[e],(r=n.getCenter())&&(o=this.distanceBetweenPoints_(r,t.getPosition()))<a&&(a=o,l=n);l&&l.isMarkerInClusterBounds(t)?l.addMarker(t):(n=new i(this),n.addMarker(t),this.clusters_.push(n))},r.prototype.createClusters_=function(t){var e,o,n,i=this;if(this.ready_){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));var r=this.getExtendedBounds(n),a=Math.min(t+this.batchSize_,this.markers_.length);for(e=t;e<a;e++)o=this.markers_[e],!o.isAdded&&this.isMarkerInBounds_(o,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&o.getVisible())&&this.addToClosestCluster_(o);a<this.markers_.length?this.timerRefStatic=setTimeout(function(){i.createClusters_(a)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},r.prototype.extend=function(t,e){return function(t){var e;for(e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},r.CALCULATOR=function(t,e){for(var o=0,n=t.length.toString(),i=n;0!==i;)i=parseInt(i/10,10),o++;return o=Math.min(o,e),{text:n,index:o,title:""}},r.BATCH_SIZE=2e3,r.BATCH_SIZE_IE=500,r.IMAGE_PATH="https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m",r.IMAGE_EXTENSION="png",r.IMAGE_SIZES=[53,56,66,78,90],t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(10),i=o(19),r=o(2),a=o(4),l=o(5),s=function(){function t(){this.markersList={},this.polygonsList={},this.circlesList={},this.polylinesList={},this.infoWindowList={},this.overlayList={},this.markerClusterer={}}return t.prototype.initialize=function(t,e,o){return void 0===o&&(o="inlog-map"),this.map=t===r.MapType.Google?new n.default:new i.default,this.map.initialize(t,e,o)},t.prototype.loadGEOJson=function(t,e,o){this.map.loadGEOJson(t,e,o)},t.prototype.drawMarker=function(t,e,o){var n=this.map.drawMarker(e,o);this.markersList[t]||(this.markersList[t]=[]),n.type="simple",this.markersList[t].push(n),e.addClusterer&&(this.markerClusterer[t]||this.addMarkerClusterer(t,new a.default(!0,1,10)),this.map.addMarkerOnClusterer(n,this.markerClusterer[t]))},t.prototype.drawCircleMarker=function(t,e,o){var n=this.map.drawCircleMarker(e,o);this.markersList[t]||(this.markersList[t]=[]),n.type="circle",this.markersList[t].push(n)},t.prototype.toggleMarkers=function(t,e,o){var n=this.getMarkers(e,o);n&&n.length&&this.map.toggleMarkers(n,t,this.markerClusterer[e])},t.prototype.removeMarkers=function(t,e){if(this.markersList[t]&&e){var o=this.getMarkers(t,e);this.map.toggleMarkers(o,!1,this.markerClusterer[t]),this.markersList[t]=this.markersList[t].filter(function(t){return!e(t.object)})}else this.markersList[t]&&this.map.toggleMarkers(this.markersList[t],!1,this.markerClusterer[t]),this.markersList[t]=[];0===this.markersList[t].length&&delete this.markersList[t]},t.prototype.removeAllMarkers=function(){for(var t in this.markersList)this.markersList.hasOwnProperty(t)&&this.removeMarkers(t)},t.prototype.alterMarkerOptions=function(t,e,o){var n=this.getMarkers(t,o);n&&n.length&&this.map.alterMarkerOptions(n,e)},t.prototype.alterMarkerPosition=function(t,e,o,n){var i=this.getMarkers(t,n);i&&i.length&&this.map.alterMarkerPosition(i,e,o)},t.prototype.fitBoundsMarkers=function(t,e,o){var n=this;void 0===o&&(o=!0);var i=this.getMarkers(t,e);o&&(i=i.filter(function(t){return n.map.isMarkerOnMap(t)})),i&&i.length&&this.map.fitBoundsPositions(i)},t.prototype.setCenterMarker=function(t,e){if(this.markersList[t]&&e){var o=this.markersList[t].find(function(t){return e(t.object)});this.map.setCenterMarker(o)}else this.markersList[t]&&this.markersList[t].length&&this.map.setCenterMarker(this.markersList[t][0])},t.prototype.markerExists=function(t,e){var o=this.getMarkers(t,e);return o&&o.length>0},t.prototype.countMarkers=function(t,e,o){var n=this;if(void 0===e&&(e=!0),this.markerClusterer[t])return this.map.countMarkersOnCluster(this.markerClusterer[t]);var i=this.getMarkers(t,o);return e&&(i=i.filter(function(t){return n.map.isMarkerOnMap(t)})),i.length},t.prototype.addMarkerEvent=function(t,e,o,n){var i=this.getMarkers(t,n);this.map.addMarkerEvent(i,e,o)},t.prototype.removeMarkerEvent=function(t,e,o){var n=this.getMarkers(t,o);this.map.removeMarkerEvent(n,e)},t.prototype.addMarkerClusterer=function(t,e){this.markerClusterer[t]=this.map.addMarkerClusterer(e)},t.prototype.alterMarkerClustererConfig=function(t,e){this.markerClusterer[t]&&this.map.alterMarkerClustererConfig(this.markerClusterer[t],e)},t.prototype.refreshClusterer=function(t){this.markerClusterer[t]&&this.map.refreshClusterer(this.markerClusterer[t])},t.prototype.clearMarkersClusterer=function(t){this.markerClusterer[t]&&this.map.clearMarkersClusterer(this.markerClusterer[t])},t.prototype.drawPolygon=function(t,e,o){var n=this.map.drawPolygon(e,o);this.polygonsList[t]||(this.polygonsList[t]=[]),this.polygonsList[t].push(n)},t.prototype.togglePolygons=function(t,e,o){var n=this.getPolygons(e,o);n&&n.length&&this.map.togglePolygons(n,t)},t.prototype.removePolygons=function(t,e){if(this.polygonsList[t]&&e){var o=this.getPolygons(t,e);this.map.togglePolygons(o,!1),this.polygonsList[t]=this.polygonsList[t].filter(function(t){return!e(t.object)})}else this.polygonsList[t]&&this.map.togglePolygons(this.polygonsList[t],!1),this.polygonsList[t]=[];0===this.polygonsList[t].length&&delete this.polygonsList[t]},t.prototype.removeAllPolygons=function(){for(var t in this.polygonsList)this.polygonsList.hasOwnProperty(t)&&this.removePolygons(t)},t.prototype.alterPolygonOptions=function(t,e,o){var n=this.getPolygons(t,o);n&&n.length&&this.map.alterPolygonOptions(n,e)},t.prototype.fitBoundsPolygons=function(t,e){var o=this,n=this.getPolygons(t,e).filter(function(t){return o.map.isPolygonOnMap(t)});n&&n.length&&this.map.fitBoundsPolygons(n)},t.prototype.setCenterPolygons=function(t,e){var o=this,n=this.getPolygons(t,e).filter(function(t){return o.map.isPolygonOnMap(t)});n&&n.length&&this.map.setCenterPolygons(n)},t.prototype.polygonExists=function(t,e){var o=this.getPolygons(t,e);return o&&o.length>0},t.prototype.getPolygonPath=function(t,e){var o=this.getPolygons(t,e);if(o&&o.length)return this.map.getPolygonPath(o[0])},t.prototype.addPolygonEvent=function(t,e,o,n){var i=this.getPolygons(t,n);this.map.addPolygonEvent(i,e,o)},t.prototype.removePolygonEvent=function(t,e,o){var n=this.getPolygons(t,o);this.map.removePolygonEvent(n,e)},t.prototype.drawCircle=function(t,e,o){var n=this.map.drawCircle(e,o);this.circlesList[t]||(this.circlesList[t]=[]),this.circlesList[t].push(n)},t.prototype.toggleCircles=function(t,e,o){var n=this.getCircles(e,o);n&&n.length&&this.map.toggleCircles(n,t)},t.prototype.removeCircles=function(t,e){if(this.circlesList[t]&&e){var o=this.getCircles(t,e);this.map.toggleCircles(o,!1),this.circlesList[t]=this.circlesList[t].filter(function(t){return!e(t.object)})}else this.circlesList[t]&&this.map.toggleCircles(this.circlesList[t],!1),this.circlesList[t]=[];0===this.circlesList[t].length&&delete this.circlesList[t]},t.prototype.removeAllCircles=function(){for(var t in this.circlesList)this.circlesList.hasOwnProperty(t)&&this.removeCircles(t)},t.prototype.alterCircleOptions=function(t,e,o){var n=this.getCircles(t,o);n&&n.length&&this.map.alterCircleOptions(n,e)},t.prototype.fitBoundsCircles=function(t,e){var o=this,n=this.getCircles(t,e).filter(function(t){return o.map.isCircleOnMap(t)});n&&n.length&&this.map.fitBoundsCircles(n)},t.prototype.circleExists=function(t,e){var o=this.getCircles(t,e);return o&&o.length>0},t.prototype.getCircleCenter=function(t,e){var o=this.getCircles(t,e);return o&&o.length?this.map.getCircleCenter(o[0]):null},t.prototype.getCircleRadius=function(t,e){var o=this.getCircles(t,e);return o&&o.length?this.map.getCircleRadius(o[0]):null},t.prototype.addCircleEvent=function(t,e,o,n){var i=this.getCircles(t,n);this.map.addCircleEvent(i,e,o)},t.prototype.removeCircleEvent=function(t,e,o){var n=this.getCircles(t,o);this.map.removeCircleEvent(n,e)},t.prototype.drawPolyline=function(t,e,o){var n=this.map.drawPolyline(e,o);this.polylinesList[t]||(this.polylinesList[t]=[]),this.polylinesList[t].push(n)},t.prototype.drawPolylineWithNavigation=function(t,e,o){var n=this.map.drawPolylineWithNavigation(e,o);this.polylinesList[t]||(this.polylinesList[t]=[]),this.polylinesList[t].push(n)},t.prototype.togglePolylines=function(t,e,o){var n=this.getPolylines(e,o);n&&n.length&&this.map.togglePolylines(n,t)},t.prototype.removePolylines=function(t,e){if(this.polylinesList[t]&&e){var o=this.getPolylines(t,e);this.map.togglePolylines(o,!1),this.polylinesList[t]=this.polylinesList[t].filter(function(t){return!e(t.object)})}else this.polylinesList[t]&&this.map.togglePolylines(this.polylinesList[t],!1),this.polylinesList[t]=[];0===this.polylinesList[t].length&&delete this.polylinesList[t]},t.prototype.removeAllPolylines=function(){for(var t in this.polylinesList)this.polylinesList.hasOwnProperty(t)&&this.removePolylines(t)},t.prototype.alterPolylineOptions=function(t,e,o){var n=this.getPolylines(t,o);n&&n.length&&this.map.alterPolylineOptions(n,e)},t.prototype.fitBoundsPolylines=function(t,e){var o=this,n=this.getPolylines(t,e).filter(function(t){return o.map.isPolylineOnMap(t)});n&&n.length&&this.map.fitBoundsPolylines(n)},t.prototype.polylineExists=function(t,e){var o=this.getPolylines(t,e);return o&&o.length>0},t.prototype.addPolylinePath=function(t,e,o){var n=this.getPolylines(t,o);if(n&&n.length)this.map.addPolylinePath(n,e);else{var i=new l.default;i.addToMap=!0,this.drawPolyline(t,i,null)}},t.prototype.getPolylinePath=function(t,e){var o=this.getPolylines(t,e);if(o&&o.length)return this.map.getPolylinePath(o[0])},t.prototype.removePolylineHighlight=function(){this.map.removePolylineHighlight()},t.prototype.addPolylineEvent=function(t,e,o,n){var i=this.getPolylines(t,n);this.map.addPolylineEvent(i,e,o)},t.prototype.removePolylineEvent=function(t,e,o){var n=this.getPolylines(t,o);this.map.removePolylineEvent(n,e)},t.prototype.setIndexPolylineHighlight=function(t,e,o){var n=this.getPolylines(t,o);n&&n.length&&this.map.setIndexPolylineHighlight(n[0],e)},t.prototype.getObjectPolyline=function(t,e){var o=this.getPolylines(t,e);return o&&o.length?this.map.getObjectPolyline(o[0]):null},t.prototype.getObjectPolylineHighlight=function(){return this.map.getObjectPolylineHighlight()},t.prototype.addPolylineHighlightEvent=function(t,e){this.map.addPolylineHighlightEvent(t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.map.getPolylineHighlightIndex()},t.prototype.drawPopup=function(t,e){var o=null;if(e.marker){o=this.getMarkers(e.marker,e.conditionMarker)[0]}var n;n=this.infoWindowList[t]?this.map.alterPopup(this.infoWindowList[t],e,o):this.map.drawPopup(e,o),this.infoWindowList[t]=n},t.prototype.alterPopup=function(t,e){var o,n=this.infoWindowList[t];e.marker&&(o=this.getMarkers(e.marker,e.conditionMarker)),n&&this.map.alterPopupContent(n,e,o?o[0]:null)},t.prototype.getObjectOpenPopup=function(t){return this.infoWindowList[t]?this.infoWindowList[t].object:null},t.prototype.closePopup=function(t){this.infoWindowList[t]&&this.map.closePopup(this.infoWindowList[t])},t.prototype.closeAllPopups=function(){for(var t in this.infoWindowList)this.infoWindowList.hasOwnProperty(t)&&this.closePopup(t)},t.prototype.resizeMap=function(){this.map.resizeMap()},t.prototype.addEventMap=function(t,e){this.map.addEventMap(t,e)},t.prototype.removeEventMap=function(t){this.map.removeEventMap(t)},t.prototype.getZoom=function(){return this.map.getZoom()},t.prototype.setZoom=function(t){this.map.setZoom(t)},t.prototype.getCenter=function(){return this.map.getCenter()},t.prototype.setCenter=function(t){this.map.setCenter(t)},t.prototype.pixelsToLatLng=function(t,e){return this.map.pixelsToLatLng(t,e)},t.prototype.fitBoundsElements=function(t,e){var o=this,n=this.getMarkers(t,e).filter(function(t){return o.map.isMarkerOnMap(t)}),i=this.getCircles(t,e).filter(function(t){return o.map.isCircleOnMap(t)}),r=this.getPolygons(t,e).filter(function(t){return o.map.isPolygonOnMap(t)}),a=this.getPolylines(t,e).filter(function(t){return o.map.isPolylineOnMap(t)});this.map.fitBoundsElements(n,i,r,a)},t.prototype.drawOverlay=function(t,e){var o=null;if(e.polygon){var n=this.getPolygons(e.polygon,e.conditionPolygon);n&&n.length&&(o=this.map.drawOverlay(e,n))}else o=this.map.drawOverlay(e);null!=o&&(this.overlayList[t]||(this.overlayList[t]=[]),this.overlayList[t].push(o))},t.prototype.toggleOverlay=function(t,e,o){var n=this.getOverlays(e,o);n&&n.length&&this.map.toggleOverlay(n,t)},t.prototype.removeOverlays=function(t,e){if(this.overlayList[t]&&e){var o=this.getOverlays(t,e);this.map.toggleOverlay(o,!1),this.overlayList[t]=this.overlayList[t].filter(function(t){return!e(t.object)})}else this.overlayList[t]&&this.map.toggleOverlay(this.overlayList[t],!1),this.overlayList[t]=[];0===this.overlayList[t].length&&delete this.overlayList[t]},t.prototype.removeAllOverlays=function(){for(var t in this.overlayList)this.overlayList.hasOwnProperty(t)&&this.removeOverlays(t)},t.prototype.getMarkers=function(t,e){var o=this.markersList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t.prototype.getPolygons=function(t,e){var o=this.polygonsList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t.prototype.getCircles=function(t,e){var o=this.circlesList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t.prototype.getPolylines=function(t,e){var o=this.polylinesList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t.prototype.getOverlays=function(t,e){var o=this.overlayList[t];return o&&o.length?e?o.filter(function(t){return e(t.object)}):o:[]},t}();e.default=s},function(t,e,o){"use strict";var n=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function a(t){try{s(n.next(t))}catch(t){r(t)}}function l(t){try{s(n.throw(t))}catch(t){r(t)}}function s(t){t.done?i(t.value):new o(function(e){e(t.value)}).then(a,l)}s((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){function o(t){return function(e){return n([t,e])}}function n(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{i=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}var i,r,a,l,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return l={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l};Object.defineProperty(e,"__esModule",{value:!0});var r=o(6),a=o(11),l=o(12),s=o(13),p=o(14),c=o(15),u=o(16),g=o(17),h=o(18),d=function(){function t(){this.mapsApiLoader=new r.MapsApiLoaderService}return t.prototype.initialize=function(t,e,o){return n(this,void 0,void 0,function(){var n,r,d,f,y,v,m,P,k;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.mapsApiLoader.loadApi(t,e)];case 1:if(n=i.sent(),r=n,d={center:new r.maps.LatLng(-14,-54),fullscreenControl:!1,keyboardShortcuts:!1,mapTypeControl:!0,minZoom:4,rotateControl:!1,scaleControl:!1,streetViewControl:!1,zoom:4,zoomControl:!0},e.gestureHandling?d.gestureHandling="cooperative":d.gestureHandling="greedy",e.options)for(f in e.options)e.options.hasOwnProperty(f)&&(d[f]=e.options[f]);return y=[],e.mapTiles&&(v=[r.maps.MapTypeId.ROADMAP,r.maps.MapTypeId.SATELLITE],e.mapTiles.forEach(function(t){v.push(t.name);var e={getTileUrl:function(t,e){return"https://tile.openstreetmap.org/"+e+"/"+t.x+"/"+t.y+".png"},isPng:!0,maxZoom:19,minZoom:0,name:"OpenStreetMap",tileSize:new r.maps.Size(256,256)};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);var n=new r.maps.ImageMapType(e);y.push({id:t.name,tile:n})}),d.mapTypeControlOptions={mapTypeIds:v,style:r.maps.MapTypeControlStyle.HORIZONTAL_BAR}),m=new r.maps.Map(document.getElementById(o),d),this.googleMarkers=new p.default(m,r),this.googlePolygons=new u.default(m,r),this.googleCircles=new a.default(m,r),this.googlePopups=new h.default(m,r),this.googlePolylines=new g.default(m,r,this.googlePopups),this.googleMap=new s.default(m,r),this.googleOverlays=new c.default(m,r,this.googlePolygons),this.googleGeoJson=new l.default(m,r),y&&y.length&&y.forEach(function(t){m.mapTypes.set(t.id,t.tile)}),e.showTraffic&&(P=new r.maps.TrafficLayer,P.setMap(m)),[2,this];case 2:return k=i.sent(),[2,k];case 3:return[2]}})})},t.prototype.loadGEOJson=function(t,e,o){this.googleGeoJson.loadGEOJson(t,e,o)},t.prototype.drawMarker=function(t,e){return this.googleMarkers.drawMarker(t,e)},t.prototype.drawCircleMarker=function(t,e){return this.googleMarkers.drawCircleMarker(t,e)},t.prototype.toggleMarkers=function(t,e,o){this.googleMarkers.toggleMarkers(t,e,o)},t.prototype.alterMarkerOptions=function(t,e){this.googleMarkers.alterMarkerOptions(t,e)},t.prototype.alterMarkerPosition=function(t,e,o){this.googleMarkers.alterMarkerPosition(t,e,o)},t.prototype.fitBoundsPositions=function(t){this.googleMarkers.fitBoundsPositions(t)},t.prototype.isMarkerOnMap=function(t){return this.googleMarkers.isMarkerOnMap(t)},t.prototype.setCenterMarker=function(t){this.googleMarkers.setCenterMarker(t)},t.prototype.addMarkerEvent=function(t,e,o){this.googleMarkers.addMarkerEvent(t,e,o)},t.prototype.removeMarkerEvent=function(t,e){this.googleMarkers.removeMarkerEvent(t,e)},t.prototype.addMarkerClusterer=function(t){return this.googleMarkers.addMarkerClusterer(t)},t.prototype.alterMarkerClustererConfig=function(t,e){this.googleMarkers.alterMarkerClustererConfig(t,e)},t.prototype.refreshClusterer=function(t){this.googleMarkers.refreshClusterer(t)},t.prototype.addMarkerOnClusterer=function(t,e){this.googleMarkers.addMarkerOnClusterer(t,e)},t.prototype.removeMarkerFromClusterer=function(t,e){this.googleMarkers.removeMarkerFromClusterer(t,e)},t.prototype.clearMarkersClusterer=function(t){this.googleMarkers.clearMarkersClusterer(t)},t.prototype.countMarkersOnCluster=function(t){return this.googleMarkers.countMarkersOnCluster(t)},t.prototype.drawPolygon=function(t,e){return this.googlePolygons.drawPolygon(t,e)},t.prototype.togglePolygons=function(t,e){this.googlePolygons.togglePolygons(t,e)},t.prototype.alterPolygonOptions=function(t,e){this.googlePolygons.alterPolygonOptions(t,e)},t.prototype.fitBoundsPolygons=function(t){this.googlePolygons.fitBoundsPolygons(t)},t.prototype.setCenterPolygons=function(t){this.googlePolygons.setCenterPolygons(t)},t.prototype.isPolygonOnMap=function(t){return this.googlePolygons.isPolygonOnMap(t)},t.prototype.getPolygonPath=function(t){return this.googlePolygons.getPolygonPath(t)},t.prototype.addPolygonEvent=function(t,e,o){return this.googlePolygons.addPolygonEvent(t,e,o)},t.prototype.removePolygonEvent=function(t,e){this.googlePolygons.removePolygonEvent(t,e)},t.prototype.drawCircle=function(t,e){return this.googleCircles.drawCircle(t,e)},t.prototype.toggleCircles=function(t,e){this.googleCircles.toggleCircles(t,e)},t.prototype.alterCircleOptions=function(t,e){this.googleCircles.alterCircleOptions(t,e)},t.prototype.fitBoundsCircles=function(t){this.googleCircles.fitBoundsCircles(t)},t.prototype.isCircleOnMap=function(t){return this.googleCircles.isCircleOnMap(t)},t.prototype.getCircleCenter=function(t){return this.googleCircles.getCircleCenter(t)},t.prototype.getCircleRadius=function(t){return this.googleCircles.getCircleRadius(t)},t.prototype.addCircleEvent=function(t,e,o){this.googleCircles.addCircleEvent(t,e,o)},t.prototype.removeCircleEvent=function(t,e){this.googleCircles.removeCircleEvent(t,e)},t.prototype.drawPolyline=function(t,e){return this.googlePolylines.drawPolyline(t,e)},t.prototype.drawPolylineWithNavigation=function(t,e){return this.googlePolylines.drawPolylineWithNavigation(t,e)},t.prototype.togglePolylines=function(t,e){this.googlePolylines.togglePolylines(t,e)},t.prototype.alterPolylineOptions=function(t,e){this.googlePolylines.alterPolylineOptions(t,e)},t.prototype.fitBoundsPolylines=function(t){this.googlePolylines.fitBoundsPolylines(t)},t.prototype.isPolylineOnMap=function(t){return this.googlePolylines.isPolylineOnMap(t)},t.prototype.addPolylinePath=function(t,e){this.googlePolylines.addPolylinePath(t,e)},t.prototype.getPolylinePath=function(t){return this.googlePolylines.getPolylinePath(t)},t.prototype.removePolylineHighlight=function(){this.googlePolylines.removePolylineHighlight()},t.prototype.addPolylineEvent=function(t,e,o){this.googlePolylines.addPolylineEvent(t,e,o)},t.prototype.removePolylineEvent=function(t,e){this.googlePolylines.removePolylineEvent(t,e)},t.prototype.setIndexPolylineHighlight=function(t,e){this.googlePolylines.setIndexPolylineHighlight(t,e)},t.prototype.getObjectPolyline=function(t){return this.googlePolylines.getObjectPolyline(t)},t.prototype.getObjectPolylineHighlight=function(){return this.googlePolylines.getObjectPolylineHighlight()},t.prototype.addPolylineHighlightEvent=function(t,e){this.googlePolylines.addPolylineHighlightEvent(t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.googlePolylines.getPolylineHighlightIndex()},t.prototype.drawPopup=function(t,e){return this.googlePopups.drawPopup(t,e)},t.prototype.alterPopup=function(t,e,o){return this.googlePopups.alterPopup(t,e,o)},t.prototype.alterPopupContent=function(t,e,o){this.googlePopups.alterPopupContent(t,e,o)},t.prototype.closePopup=function(t){this.googlePopups.closePopup(t)},t.prototype.resizeMap=function(){this.googleMap.resizeMap()},t.prototype.addEventMap=function(t,e){this.googleMap.addEventMap(t,e)},t.prototype.removeEventMap=function(t){this.googleMap.removeEventMap(t)},t.prototype.getZoom=function(){return this.googleMap.getZoom()},t.prototype.setZoom=function(t){this.googleMap.setZoom(t)},t.prototype.getCenter=function(){return this.googleMap.getCenter()},t.prototype.setCenter=function(t){this.googleMap.setCenter(t)},t.prototype.pixelsToLatLng=function(t,e){return this.googleMap.pixelsToLatLng(t,e)},t.prototype.fitBoundsElements=function(t,e,o,n){this.googleMap.fitBoundsElements(t,e,o,n)},t.prototype.drawOverlay=function(t,e){return this.googleOverlays.drawOverlay(t,e)},t.prototype.toggleOverlay=function(t,e){this.googleOverlays.toggleOverlay(t,e)},t}();e.default=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.drawCircle=function(t,e){var o=this,n={lat:t.center[0],lng:t.center[1]},r={center:n,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,object:t.object,radius:t.radius,strokeColor:t.color,strokeOpacity:t.opacity,strokeWeight:t.weight,suppressUndo:!0},a=new this.google.maps.Circle(r);return e&&this.google.maps.event.addListener(a,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)}),t.addToMap&&a.setMap(o.map),t.fitBounds&&o.map.fitBounds(a.getBounds()),a},t.prototype.toggleCircles=function(t,e){var o=this;t.forEach(function(t){return t.setMap(e?o.map:null)})},t.prototype.alterCircleOptions=function(t,e){t.forEach(function(t){var o=e.center&&e.center.length>0?{lat:e.center[0],lng:e.center[1]}:t.getCenter(),n={center:o,fillColor:e.fillColor?e.fillColor:t.fillColor,fillOpacity:e.fillOpacity?e.fillOpacity:t.fillOpacity,radius:e.radius?e.radius:t.radius,strokeColor:e.color?e.color:t.strokeColor,strokeOpacity:e.opacity?e.opacity:t.strokeOpacity,strokeWeight:e.weight?e.weight:t.strokeWeight,editable:null!==e.editable&&void 0!==e.editable?e.editable:t.editable,draggable:null!==e.draggable&&void 0!==e.draggable?e.draggable:t.draggable};t.setOptions(n)})},t.prototype.fitBoundsCircles=function(t){this.map.fitBounds(this.getCirclesBounds(t))},t.prototype.isCircleOnMap=function(t){return!!t.map},t.prototype.getCircleCenter=function(t){var e=t.getCenter();return[e.lat(),e.lng()]},t.prototype.getCircleRadius=function(t){return t.getRadius()},t.prototype.addCircleEvent=function(t,e,o){var r=this;t.forEach(function(t){switch(e){case n.CircleEventType.Click:r.google.maps.event.addListener(t,"click",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.CircleEventType.CenterChanged:r.google.maps.event.addListener(t,"center_changed",function(){var e=new i.default([t.getCenter().lat(),t.getCenter().lng()]);o(e,t.object)});case n.CircleEventType.RadiusChanged:r.google.maps.event.addListener(t,"radius_changed",function(e){var n=new i.default([t.getCenter().lat(),t.getCenter().lng()]);o(n,t.object,t.getRadius())})}})},t.prototype.removeCircleEvent=function(t,e){var o=this;t.forEach(function(t){switch(e){case n.CircleEventType.Click:o.google.maps.event.clearListeners(t,"click");case n.CircleEventType.CenterChanged:o.google.maps.event.clearListeners(t,"center_changed");case n.CircleEventType.RadiusChanged:o.google.maps.event.clearListeners(t,"radius_changed")}})},t.prototype.getCirclesBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.forEach(function(t){return e.union(t.getBounds())}),e},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.loadGEOJson=function(t,e,o){var i=this;i.parseGeoJson(t,e).forEach(function(t){o&&t.addListener("click",function(t){var e=new n.default([t.latLng.lat(),t.latLng.lng()]);o(e)}),t.setMap(i.map)})},t.prototype.parseGeoJson=function(t,e){var o=this,n=[];if(Array.isArray(t.features))for(var i=0,r=t.features;i<r.length;i++){var a=r[i];n.push(o.parseGeoJsonToObject(a,e))}else n.push(o.parseGeoJsonToObject(t,e));return n},t.prototype.parseGeoJsonToObject=function(t,e){var o=t.geometry;switch(t.properties&&Object.assign(e,t.properties),o.type){case"Point":return e.position={lat:o.coordinates[1],lng:o.coordinates[0]},new this.google.maps.Marker(e);case"Polygon":return e.paths=[],o.coordinates.forEach(function(t){return e.paths.push(t.map(function(t){return{lat:t[1],lng:t[0]}}))}),new this.google.maps.Polygon(e);case"LineString":return e.path=o.coordinates.map(function(t){return{lat:t[1],lng:t[0]}}),new this.google.maps.Polyline(e);default:throw new Error("Forma de objeto desconhecida.")}},t}();e.default=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.resizeMap=function(){google.maps.event.trigger(this.map,"resize")},t.prototype.addEventMap=function(t,e){var o=this;switch(t){case n.MapEventType.Click:this.google.maps.event.addListener(o.map,"click",function(t){var o=new i.default([t.latLng.lat(),t.latLng.lng()]);e(o)});break;case n.MapEventType.ZoomChanged:o.map.addListener("zoom_changed",function(){var t=new i.default([o.map.getCenter().lat(),o.map.getCenter().lng()]);e(t)})}},t.prototype.removeEventMap=function(t){var e=this;switch(t){case n.MapEventType.Click:this.google.maps.event.clearListeners(e.map,"click");break;case n.MapEventType.ZoomChanged:this.google.maps.event.clearListeners(e.map,"zoom_changed")}},t.prototype.getZoom=function(){return this.map.getZoom()},t.prototype.setZoom=function(t){return this.map.setZoom(t)},t.prototype.getCenter=function(){var t=this.map.getCenter();return[t.lat(),t.lng()]},t.prototype.setCenter=function(t){this.map.setCenter(new google.maps.LatLng(t[0],t[1]))},t.prototype.pixelsToLatLng=function(t,e){var o=Math.pow(2,this.map.getZoom()),n=this.map.getProjection().fromLatLngToPoint(this.map.getCenter()),i=new google.maps.Point(t/o||0,e/o||0),r=new google.maps.Point(n.x-i.x,n.y+i.y),a=this.map.getProjection().fromPointToLatLng(r);return[a.lat(),a.lng()]},t.prototype.fitBoundsElements=function(t,e,o,n){var i=new google.maps.LatLngBounds;t&&t.length&&(t.forEach(function(t){return i.extend(t.getPosition())}),this.map.fitBounds(i)),e&&e.length&&(e.forEach(function(t){return i.union(t.getBounds())}),this.map.fitBounds(i)),o&&o.length&&(o.forEach(function(t){return t.getPaths().forEach(function(t){return t.getArray().forEach(function(t){return i.extend(t)})})}),this.map.fitBounds(i)),n&&n.length&&(n.forEach(function(t){return t.getPath().forEach(function(t){return i.extend(new google.maps.LatLng(t.lat(),t.lng()))})}),this.map.fitBounds(i))},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=o(8),a=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.drawMarker=function(t,e){var o={draggable:t.draggable,icon:null,object:t.object,position:{lat:t.latlng[0],lng:t.latlng[1]}};t.icon&&(o.icon={url:t.icon.url},t.icon.size&&(o.icon.size=new this.google.maps.Size(t.icon.size[0],t.icon.size[1])));var n=new this.google.maps.Marker(o);if(e&&this.google.maps.event.addListener(n,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)}),t.addToMap&&n.setMap(this.map),t.fitBounds){var r=new this.google.maps.LatLngBounds;r.extend(n.getPosition()),this.map.fitBounds(r)}return n},t.prototype.drawCircleMarker=function(t,e){var o=this,n={icon:{fillColor:t.style.fillColor,fillOpacity:t.style.fillOpacity,path:this.google.maps.SymbolPath.CIRCLE,scale:t.style.radius,strokeColor:t.style.color,strokeWeight:t.style.weight},object:t.object,position:{lat:t.latlng[0],lng:t.latlng[1]}},r=new this.google.maps.Marker(n);if(e&&this.google.maps.event.addListener(r,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)}),t.addToMap&&r.setMap(o.map),t.fitBounds){var a=new this.google.maps.LatLngBounds;a.extend(r.getPosition()),o.map.fitBounds(a)}return r},t.prototype.toggleMarkers=function(t,e,o){var n=this;t.forEach(function(t){t.setMap(e?n.map:null),o&&(e?n.addMarkerOnClusterer(t,o):n.removeMarkerFromClusterer(t,o))})},t.prototype.alterMarkerOptions=function(t,e){var o=this,n=null,i=null;e.latlng&&(i={lat:e.latlng[0],lng:e.latlng[1]}),e.icon&&(n=e.icon,e.icon.size&&(n.size=new this.google.maps.Size(e.icon.size[0],e.icon.size[1]))),t.forEach(function(t){e.style&&(n={fillColor:e.style.fillColor?e.style.fillColor:t.icon.fillColor,fillOpacity:e.style.fillOpacity?e.style.fillOpacity:t.icon.fillOpacity,path:o.google.maps.SymbolPath.CIRCLE,scale:e.style.radius?e.style.radius:t.icon.scale,strokeColor:e.style.color?e.style.color:t.icon.strokeColor,strokeWeight:e.style.weight?e.style.weight:t.icon.strokeWeight});var r=null;r=i&&n?{icon:n,position:i}:i?{position:i}:{icon:n},t.setOptions(r)})},t.prototype.alterMarkerPosition=function(t,e,o){var n=this,i={lat:e[0],lng:e[1]};t.forEach(function(t){o?n.moveTransitionMarker(i,t):t.setPosition(i)})},t.prototype.fitBoundsPositions=function(t){var e=new this.google.maps.LatLngBounds;t.map(function(t){return t.position}).forEach(function(t){return e.extend(t)}),this.map.fitBounds(e)},t.prototype.isMarkerOnMap=function(t){return!!t.map},t.prototype.setCenterMarker=function(t){this.map.setCenter(t.getPosition())},t.prototype.addMarkerEvent=function(t,e,o){var r=this;t.forEach(function(t){switch(e){case n.MarkerEventType.Click:r.google.maps.event.addListener(t,"click",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.RightClick:r.google.maps.event.addListener(t,"rightclick",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.AfterDrag:r.google.maps.event.addListener(t,"dragend",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.MouseOver:r.google.maps.event.addListener(t,"mouseover",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.MouseOut:r.google.maps.event.addListener(t,"mouseout",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)});break;case n.MarkerEventType.BeforeDrag:r.google.maps.event.addListener(t,"dragstart",function(e){var n=new i.default([e.latLng.lat(),e.latLng.lng()]);o(n,t.object)})}})},t.prototype.removeMarkerEvent=function(t,e){var o=this;t.forEach(function(t){switch(e){case n.MarkerEventType.Click:o.google.maps.event.clearListeners(t,"click");break;case n.MarkerEventType.RightClick:o.google.maps.event.clearListeners(t,"rightclick");break;case n.MarkerEventType.AfterDrag:o.google.maps.event.clearListeners(t,"dragend");break;case n.MarkerEventType.MouseOver:o.google.maps.event.clearListeners(t,"mouseover");break;case n.MarkerEventType.MouseOut:o.google.maps.event.clearListeners(t,"mouseout");break;case n.MarkerEventType.BeforeDrag:o.google.maps.event.clearListeners(t,"dragstart")}})},t.prototype.addMarkerClusterer=function(t){return new r(this.map,[],{maxZoom:t.clusterMaxZoom,minimumClusterSize:t.clusterMinSize,zoomOnClick:t.clusterZoomOnClick})},t.prototype.alterMarkerClustererConfig=function(t,e){t.setZoomOnClick(e.clusterZoomOnClick),t.setMinimumClusterSize(e.clusterMinSize),t.setMaxZoom(e.clusterMaxZoom)},t.prototype.refreshClusterer=function(t){t.repaint()},t.prototype.addMarkerOnClusterer=function(t,e){-1===e.getMarkers().indexOf(t)&&e.addMarker(t,!0)},t.prototype.removeMarkerFromClusterer=function(t,e){e.removeMarker(t)},t.prototype.clearMarkersClusterer=function(t){t.clearMarkers()},t.prototype.countMarkersOnCluster=function(t){return t.getMarkers().length},t.prototype.moveTransitionMarker=function(t,e){var o={deltaLat:(t.lat-e.getPosition().lat())/5,deltaLng:(t.lng-e.getPosition().lng())/5,i:0,position:[e.getPosition().lat(),e.getPosition().lng()],lastPosition:t};this.moveMarker(e,o,5)},t.prototype.moveMarker=function(t,e,o){var n=this;e.position[0]+=e.deltaLat,e.position[1]+=e.deltaLng,t.setPosition(new google.maps.LatLng(e.position[0],e.position[1])),e.i<o?(e.i++,setTimeout(function(){return n.moveMarker(t,e,o)},20)):e.i===o&&setTimeout(function(){return t.setPosition(e.lastPosition)},20)},t}();e.default=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=function(){function t(t,e,o){function i(e,o,n,i,r){this.bounds_=e,this.div_=o,this.draggable=n,this.afterDragHandler=r,this.object=i,this.setMap(t)}this.map=null,this.google=null,this.OverlayGoogle=null,this.map=t,this.google=e,this.googlePolygons=o,i.prototype=new this.google.maps.OverlayView,i.prototype.onAdd=function(){var t=this,o=this.getPanes();o.overlayLayer.appendChild(this.div_),o.overlayMouseTarget.appendChild(this.div_),e.maps.event.addDomListener(this.div_,"click",function(){e.maps.event.trigger(this.div_,"click")}),this.draggable&&(e.maps.event.addDomListener(this.get("map").getDiv(),"mouseleave",function(){e.maps.event.trigger(this.div_,"mouseup")}),e.maps.event.addDomListener(this.div_,"mousedown",function(o){this.style.cursor="move",t.map.set("draggable",!1),t.set("origin",o),t.moveHandler=e.maps.event.addDomListener(t.get("map").getDiv(),"mousemove",function(o){var n=t.get("origin"),i=n.clientX-o.clientX,r=n.clientY-o.clientY,a=t.getProjection().fromLatLngToDivPixel(t.bounds_.getCenter()),l=t.getProjection().fromDivPixelToLatLng(new e.maps.Point(a.x-i,a.y-r));t.set("origin",o),t.bounds_=new e.maps.LatLngBounds,t.bounds_.extend(l),t.draw()})}),e.maps.event.addDomListener(this.div_,"mouseup",function(){if(t.map.set("draggable",!0),this.style.cursor="default",e.maps.event.removeListener(t.moveHandler),t.afterDragHandler){var o=t.bounds_.getCenter(),i=new n.default([o.lat(),o.lng()]);t.afterDragHandler(i,t.object)}}))},i.prototype.draw=function(){var t=this.getProjection(),e=t.fromLatLngToDivPixel(this.bounds_.getCenter()),o=this.div_;o.style.left=e.x+"px",o.style.top=e.y+"px"},i.prototype.onRemove=function(){this.div_.parentNode.removeChild(this.div_)},this.OverlayGoogle=i}return t.prototype.drawOverlay=function(t,e){var o=null;e&&e.length>0?o=this.googlePolygons.getPolygonsBounds(e):(o=new this.google.maps.LatLngBounds,o.extend(new this.google.maps.LatLng(t.position[0],t.position[1])));var n=new this.OverlayGoogle(o,t.divElement,t.draggable,t.object,t.afterEventDragHandler);return t.addToMap&&n.setMap(this.map),n.object=t.object,n},t.prototype.toggleOverlay=function(t,e){var o=this;t.forEach(function(t){return t.setMap(e?o.map:null)})},t}();e.default=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.drawPolygon=function(t,e){var o=this,n=this.getPathRecursiveArray(t.path);n=this.getPathPolylineArray(n);var r={draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,object:t.object,paths:n,strokeColor:t.color,strokeOpacity:t.opacity,strokeWeight:t.weight,suppressUndo:!0,zIndex:t.zIndex},a=new this.google.maps.Polygon(r);return e&&this.google.maps.event.addListener(a,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)}),t.addToMap&&a.setMap(o.map),t.fitBounds&&o.map.fitBounds(o.getPolygonBounds(a)),a},t.prototype.togglePolygons=function(t,e){var o=this;t.forEach(function(t){return t.setMap(e?o.map:null)})},t.prototype.alterPolygonOptions=function(t,e){var o={};t.forEach(function(t){if(o={editable:null!==e.editable&&void 0!==e.editable?e.editable:t.editable,fillColor:e.fillColor?e.fillColor:t.fillColor,fillOpacity:e.fillOpacity?e.fillOpacity:t.fillOpacity,strokeColor:e.color?e.color:t.strokeColor,strokeOpacity:e.opacity?e.opacity:t.strokeOpacity,strokeWeight:e.weight?e.weight:t.strokeWeight,draggable:null!==e.draggable&&void 0!==e.draggable?e.draggable:t.draggable},e.path){var n=[];e.path.forEach(function(t){return n.push({lat:t[0],lng:t[1]})}),t.setPath(n)}t.setOptions(o),e.object&&(t.object=e.object)})},t.prototype.fitBoundsPolygons=function(t){this.map.fitBounds(this.getPolygonsBounds(t))},t.prototype.setCenterPolygons=function(t){this.map.setCenter(this.getPolygonsBounds(t).getCenter())},t.prototype.isPolygonOnMap=function(t){return!!t.map},t.prototype.getPolygonPath=function(t){return t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})})},t.prototype.addPolygonEvent=function(t,e,o){var i=this;t.forEach(function(t){switch(e){case n.PolygonEventType.SetAt:i.addPolygonEventMove(t,o);break;case n.PolygonEventType.InsertAt:i.addPolygonEventInsertAt(t,o);break;case n.PolygonEventType.RemoveAt:i.addPolygonEventRemoveAt(t,o);break;case n.PolygonEventType.DragPolygon:i.addPolygonEventDragPolygon(t,o);break;case n.PolygonEventType.Click:i.addPolygonEventClick(t,o)}})},t.prototype.removePolygonEvent=function(t,e){var o=this;t.forEach(function(t){switch(e){case n.PolygonEventType.SetAt:o.google.maps.event.clearListeners(t.getPaths(),"set_at");break;case n.PolygonEventType.InsertAt:o.google.maps.event.clearListeners(t.getPaths(),"insert_at");break;case n.PolygonEventType.RemoveAt:o.google.maps.event.clearListeners(t.getPaths(),"remove_at");break;case n.PolygonEventType.DragPolygon:o.google.maps.event.clearListeners(t,"dragstart"),o.google.maps.event.clearListeners(t,"dragend");break;case n.PolygonEventType.Click:o.google.maps.event.clearListeners(t,"click")}})},t.prototype.getPolygonsBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.forEach(function(t){t.getPaths().getArray().forEach(function(t){return t.getArray().forEach(function(t){return e.extend(t)})})}),e},t.prototype.getPolygonBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.getPaths().getArray().forEach(function(t){return t.getArray().forEach(function(t){return e.extend(t)})}),e},t.prototype.addPolygonEventMove=function(t,e){for(var o=t.getPaths().getLength(),n=0;n<o;n++)this.addPolygonEventMoveAllPaths(t,t.getPaths().getAt(n),e)},t.prototype.addPolygonEventMoveAllPaths=function(t,e,o){this.google.maps.event.addListener(e,"set_at",function(n,r){if(!t.dragging){var a=e.getAt(n),l=new i.default([a.lat(),a.lng()]),s=new i.default([r.lat(),r.lng()]);o(l,s,t.object,n,t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})}))}})},t.prototype.addPolygonEventInsertAt=function(t,e){for(var o=t.getPaths().getLength(),n=0;n<o;n++)this.addPolygonEventInsertAtAllPaths(t,t.getPaths().getAt(n),e)},t.prototype.addPolygonEventInsertAtAllPaths=function(t,e,o){this.google.maps.event.addListener(e,"insert_at",function(n){var r=e.getAt(n),a=new i.default([r.lat(),r.lng()]),l=e.getAt(n-1),s=l?new i.default([l.lat(),l.lng()]):null;o(a,s,t.object,n,t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})}))})},t.prototype.addPolygonEventRemoveAt=function(t,e){for(var o=t.getPaths().getLength(),n=0;n<o;n++)this.addPolygonEventRemoveAtAllPaths(t,t.getPaths().getAt(n),e)},t.prototype.addPolygonEventRemoveAtAllPaths=function(t,e,o){this.google.maps.event.addListener(e,"remove_at",function(n){var r=new i.default([e.getAt(n).lat(),e.getAt(n).lng()]);o(r,t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})}),t.object)})},t.prototype.addPolygonEventDragPolygon=function(t,e){this.google.maps.event.addListener(t,"dragstart",function(e){t.dragging=!0}),this.google.maps.event.addListener(t,"dragend",function(o){t.dragging=!1,e(t.getPaths().getArray().map(function(t){return t.getArray().map(function(t){return new i.default([t.lat(),t.lng()])})}),t.object)})},t.prototype.addPolygonEventClick=function(t,e){this.google.maps.event.addListener(t,"click",function(o){var n=new i.default([o.latLng.lat(),o.latLng.lng()]);e(n,t.object)})},t.prototype.getPathRecursiveArray=function(t){var e=this;return Array.isArray(t)&&"number"!=typeof t[0]?t.map(function(t){return e.getPathRecursiveArray(t)}):{lat:t[0],lng:t[1]}},t.prototype.getPathPolylineArray=function(t){return"number"==typeof t[0].lat?t:"number"!=typeof t[0][0].lat?(t=t[0],this.getPathPolylineArray(t)):t},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(3),r=o(0),a=function(){function t(t,e,o){this.map=null,this.google=null,this.selectedPolyline=null,this.selectedPath=null,this.navigateInfoWindow=null,this.directionForward=!1,this.multiSelectionForward=!1,this.multiSelection=!1,this.map=t,this.google=e,this.googlePopups=o}return t.prototype.drawPolyline=function(t,e){var o=this,n={draggable:t.draggable,editable:t.editable,icons:null,infowindows:t.infowindows,object:t.object,path:null,strokeColor:t.color,strokeOpacity:t.opacity||1,strokeWeight:t.weight,suppressUndo:!0,zIndex:t.zIndex};if(null!==t.style)switch(t.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.strokeOpacity=0,n.icons=[{icon:{path:"M 0,-1 0,1",scale:2,strokeOpacity:1,strokeWeight:t.weight},offset:"0",repeat:"10px"}];break;case i.PolylineType.Arrow:n.icons=[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,scaledSize:new google.maps.Size(20,20),size:new google.maps.Size(20,20)},offset:"100%",repeat:"100px"},{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW},offset:"0%"},{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW},offset:"100%"}]}n.path=t.path?t.path.map(function(t){return{lat:t[0],lng:t[1]}}):[];var a=new this.google.maps.Polyline(n);return e&&this.google.maps.event.addListener(a,"click",function(t){var o=new r.default([t.latLng.lat(),t.latLng.lng()]);e(o,a.object)}),t.addToMap&&a.setMap(o.map),t.fitBounds&&o.map.fitBounds(o.getPolylineBounds(a)),a},t.prototype.drawPolylineWithNavigation=function(t,e){var o=this.drawPolyline(t,null);return o.navigationHandlerClick=e,this.navigationOptions=t.navigateOptions,this.navigateByPoint=!this.navigationOptions||this.navigationOptions.navigateByPoint,this.addNavigation(o),o},t.prototype.togglePolylines=function(t,e){var o=this;t.forEach(function(t){var n=o;t.setMap(e?n.map:null)})},t.prototype.alterPolylineOptions=function(t,e){t.forEach(function(t){var o={draggable:e.draggable?e.draggable:t.draggable,editable:e.editable?e.editable:t.editable,infowindows:e.infowindows?e.infowindows:t.infowindows,object:e.object?e.object:t.object,strokeColor:e.color?e.color:t.strokeColor,strokeOpacity:e.opacity?e.opacity:t.strokeOpacity,strokeWeight:e.weight?e.weight:t.strokeWeight,zIndex:e.zIndex?e.zIndex:t.zIndex};switch(e.path&&t.setPath(e.path.map(function(t){return new google.maps.LatLng(t[0],t[1])})),e.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:o.strokeOpacity=0,o.icons=[{icon:{path:"M 0,-1 0,1",scale:2,strokeOpacity:1},offset:"0",repeat:"10px"}];break;case i.PolylineType.Arrow:o.icons=[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,scaledSize:new google.maps.Size(20,20),size:new google.maps.Size(20,20)},offset:"90%",repeat:"20%"},{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW},offset:"0%"},{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW},offset:"100%"}];break;default:o.icons=null}t.setOptions(o)})},t.prototype.fitBoundsPolylines=function(t){var e=this;e.map.fitBounds(e.getPolylinesBounds(t))},t.prototype.isPolylineOnMap=function(t){return!!t.map},t.prototype.addPolylinePath=function(t,e){var o=this;t.forEach(function(t){var n=t.getPath();n.push(new o.google.maps.LatLng(e[0],e[1])),t.setPath(n)})},t.prototype.getPolylinePath=function(t){return t.getPath().getArray().map(function(t){return[t.lat(),t.lng()]})},t.prototype.removePolylineHighlight=function(){this.google.maps.event.clearListeners(document,"keyup"),this.google.maps.event.clearListeners(document,"keydown"),this.selectedPath&&(this.selectedPath.setMap(null),this.selectedPath=null),this.navigateInfoWindow&&this.navigateInfoWindow.close()},t.prototype.addPolylineEvent=function(t,e,o){var i=this;t.forEach(function(t){switch(e){case n.PolylineEventType.SetAt:i.addPolylineEventMove(t,o);break;case n.PolylineEventType.InsertAt:i.addPolylineEventInsertAt(t,o);break;case n.PolylineEventType.RemoveAt:i.addPolylineEventRemoveAt(t,o);break;case n.PolylineEventType.DragPolyline:i.addPolylineEventDragPolyline(t,o);break;case n.PolylineEventType.MouseOver:i.addPolylineEventMouseOver(t,o);break;case n.PolylineEventType.MouseOut:i.addPolylineEventMouseOut(t,o)}})},t.prototype.removePolylineEvent=function(t,e){var o=this;t.forEach(function(t){return o.google.maps.event.clearListeners(t,"click")}),t.forEach(function(t){switch(e){case n.PolylineEventType.SetAt:o.google.maps.event.clearListeners(t.getPath(),"set_at");break;case n.PolylineEventType.InsertAt:o.google.maps.event.clearListeners(t.getPath(),"insert_at");break;case n.PolylineEventType.RemoveAt:o.google.maps.event.clearListeners(t.getPath(),"remove_at");break;case n.PolylineEventType.DragPolyline:o.google.maps.event.clearListeners(t,"dragstart"),o.google.maps.event.clearListeners(t,"dragend");break;case n.PolylineEventType.MouseOver:o.google.maps.event.clearListeners(t,"mouseover");break;case n.PolylineEventType.MouseOut:o.google.maps.event.clearListeners(t,"mouseout")}})},t.prototype.setIndexPolylineHighlight=function(t,e){this.directionForward=!1,t.initialIdx=e,t.finalIdx=e+1,this.moveSelectedPath(t,this.navigationOptions),this.selectedPolyline=t,this.navigationOptions.navegateOnKeyPress?(this.google.maps.event.clearListeners(document,"keydown"),this.google.maps.event.addDomListener(document,"keydown",this.onKeyUp.bind(this))):(this.google.maps.event.clearListeners(document,"keyup"),this.google.maps.event.addDomListener(document,"keyup",this.onKeyUp.bind(this)))},t.prototype.getObjectPolyline=function(t){return t.object},t.prototype.getObjectPolylineHighlight=function(){return this.selectedPath?this.selectedPath.object:null},t.prototype.addPolylineHighlightEvent=function(t,e){this.selectedPath&&this.addPolylineEvent([this.selectedPath],t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.selectedPath?[this.selectedPath.initialIdx,this.selectedPath.finalIdx]:null},t.prototype.addNavigation=function(t){var e=this;this.google.maps.event.clearListeners(t,"click"),this.google.maps.event.addListener(t,"click",e.onClickPolyline.bind(e,t))},t.prototype.onClickPolyline=function(t,e){var o=this.checkIdx(t,e.latLng);if(t.initialIdx=o,t.finalIdx=o+1,this.moveSelectedPath(t,this.navigationOptions),this.selectedPolyline=t,this.navigationOptions.navegateOnKeyPress?(this.google.maps.event.clearListeners(document,"keydown"),this.google.maps.event.addDomListener(document,"keydown",this.onKeyUp.bind(this))):(this.google.maps.event.clearListeners(document,"keyup"),this.google.maps.event.addDomListener(document,"keyup",this.onKeyUp.bind(this))),t.navigationHandlerClick){var n=new r.default([e.latLng.lat(),e.latLng.lng()]);t.navigationHandlerClick(n,t.object)}},t.prototype.onKeyUp=function(t){var e=this;if(e.selectedPath)switch(t.which?t.which:t.keyCode){case 38:case 39:e.moveForwards(t.shiftKey);break;case 37:case 40:e.moveBackwards(t.shiftKey)}},t.prototype.moveForwards=function(t){var e=this,o=e.selectedPolyline;(!e.navigateByPoint||e.directionForward)&&o.finalIdx<o.getPath().getArray().length-1&&e.navigateForward(t,o),e.directionForward=!0,e.moveSelectedPath(o,null)},t.prototype.navigateForward=function(t,e){var o=this;t?(o.multiSelection=!0,o.multiSelectionForward&&e.finalIdx++,o.multiSelectionForward=!0):(e.finalIdx++,e.initialIdx=o.multiSelection?e.finalIdx-1:e.initialIdx+1,o.multiSelection=!1)},t.prototype.moveBackwards=function(t){var e=this,o=e.selectedPolyline;e.navigateByPoint&&e.directionForward||!(o.initialIdx>0)||e.navigateBackward(t,o),e.directionForward=!1,e.moveSelectedPath(o,null)},t.prototype.navigateBackward=function(t,e){var o=this;t?(o.multiSelection=!0,o.multiSelectionForward||e.initialIdx--,o.multiSelectionForward=!1):(e.initialIdx--,e.finalIdx=o.multiSelection?e.initialIdx+1:e.finalIdx-1,o.multiSelection=!1)},t.prototype.moveSelectedPath=function(t,e){var o=t.getPath().getArray().slice(t.initialIdx,t.finalIdx+1);if(this.selectedPath)this.selectedPath.setPath(o),this.selectedPath.object=t.object,this.updateSelectedPathListeners();else{var n={editable:e.editable,keyboardShortcuts:!1,map:this.map,object:t.object,path:o,strokeColor:e&&e.color||"#FF0000",strokeOpacity:e&&e.opacity||1,strokeWeight:e&&e.weight||10,zIndex:9999};if(null!==e.style)switch(e.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.strokeOpacity=0,n.icons=[{icon:{path:"M 0,-1 0,1",scale:2,strokeOpacity:1},offset:"0",repeat:"10px"}];break;case i.PolylineType.Arrow:n.icons=[{icon:{anchor:new google.maps.Point(0,2),fillColor:"#000",fillOpacity:.7,path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,scale:4,strokeColor:"#000",strokeWeight:5},offset:"100%"}]}this.selectedPath=new this.google.maps.Polyline(n)}this.selectedPath.initialIdx=t.initialIdx,this.selectedPath.finalIdx=t.finalIdx,this.drawPopupNavigation(t)},t.prototype.addPolylineEventMove=function(t,e){t.moveListener=function(o,n){if(!t.dragging){var i=t.getPath().getAt(o),a=new r.default([i.lat(),i.lng()]),l=new r.default([n.lat(),n.lng()]);e(a,l,t.object,o,t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])}))}},this.google.maps.event.addListener(t.getPath(),"set_at",t.moveListener)},t.prototype.addPolylineEventInsertAt=function(t,e){t.insertAtListener=function(o){var n=t.getPath(),i=n.getAt(o),a=new r.default([i.lat(),i.lng()]),l=n.getAt(o-1),s=l?new r.default([l.lat(),l.lng()]):null;e(a,s,t.object,o,t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])}))},this.google.maps.event.addListener(t.getPath(),"insert_at",t.insertAtListener)},t.prototype.addPolylineEventRemoveAt=function(t,e){t.removeAtListener=function(o){var n=new r.default([t.getPath().getAt(o).lat(),t.getPath().getAt(o).lng()]);e(n,t.object,t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])}))},this.google.maps.event.addListener(t.getPath(),"remove_at",t.removeAtListener)},t.prototype.addPolylineEventMouseOver=function(t,e){t.overPolylineListener=function(){t.dragging=!1;var o=t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])});e(o,t.object)},this.google.maps.event.addListener(t,"mouseover",t.overPolylineListener)},t.prototype.addPolylineEventMouseOut=function(t,e){t.outPolylineListener=function(){t.dragging=!1;var o=t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])});e(o,t.object)},this.google.maps.event.addListener(t,"mouseout",t.outPolylineListener)},t.prototype.addPolylineEventDragPolyline=function(t,e){t.dragPolylineListener=function(){t.dragging=!1;var o=t.getPath().getArray().map(function(t){return new r.default([t.lat(),t.lng()])});e(o,t.object)},this.google.maps.event.addListener(t,"dragend",t.dragPolylineListener),this.google.maps.event.addListener(t,"dragstart",function(){return t.dragging=!0})},t.prototype.updateSelectedPathListeners=function(){this.selectedPath.moveListener&&(this.google.maps.event.clearListeners(this.selectedPath.getPath(),"set_at"),this.google.maps.event.addListener(this.selectedPath.getPath(),"set_at",this.selectedPath.moveListener)),this.selectedPath.insertAtListener&&(this.google.maps.event.clearListeners(this.selectedPath.getPath(),"insert_at"),this.google.maps.event.addListener(this.selectedPath.getPath(),"insert_at",this.selectedPath.insertAtListener)),this.selectedPath.removeAtListener&&(this.google.maps.event.clearListeners(this.selectedPath.getPath(),"remove_at"),this.google.maps.event.addListener(this.selectedPath.getPath(),"remove_at",this.selectedPath.removeAtListener))},t.prototype.drawPopupNavigation=function(t){var e=this,o=e.directionForward?t.finalIdx:t.initialIdx;e.navigateByPoint||(o=t.finalIdx>t.initialIdx?t.finalIdx:t.initialIdx);var n=t.infowindows?t.infowindows[o]:null;if(n){var i=t.getPath().getArray()[o];e.navigateInfoWindow?this.googlePopups.alterPopup(e.navigateInfoWindow,{content:n,latlng:[i.lat(),i.lng()]}):e.navigateInfoWindow=this.googlePopups.drawPopup({content:n,latlng:[i.lat(),i.lng()]})}},t.prototype.checkIdx=function(t,e){for(var o=this,n=t.getPath(),i=0,r=Number.MAX_VALUE,a=-1,l=0;l<n.length-1;l++)(i=o.distanceToLine(n.getAt(l),n.getAt(l+1),e))<r&&(r=i,a=l);return a},t.prototype.distanceToLine=function(t,e,o){var n=this,i=e.lng()-t.lng(),r=e.lat()-t.lat(),a=(o.lng()-t.lng())*i,l=i*i+r*r;if(a+=(o.lat()-t.lat())*r,l>0?a/=l:a=-1,a<0)return n.kmTo(o,t);if(a>1)return n.kmTo(o,e);var s=new this.google.maps.LatLng(t.lat()+a*r,t.lng()+a*i);return n.kmTo(o,s)},t.prototype.kmTo=function(t,e){var o=Math,n=o.PI/180,i=t.lat()*n,r=e.lat()*n,a=i-r,l=t.lng()*n-e.lng()*n;return 2*o.asin(o.sqrt(o.pow(o.sin(a/2),2)+o.cos(i)*o.cos(r)*o.pow(o.sin(l/2),2)))*6378.137*1e3},t.prototype.getPolylinesBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.forEach(function(t){t.getPath().getArray().forEach(function(t){return e.extend(t)})}),e},t.prototype.getPolylineBounds=function(t){var e=new this.google.maps.LatLngBounds;return t.getPath().getArray().forEach(function(t){return e.extend(t)}),e},t}();e.default=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.map=null,this.google=null,this.map=t,this.google=e}return t.prototype.drawPopup=function(t,e){var o=this,n=new this.google.maps.InfoWindow({content:t.content});return t.latlng&&n.setPosition({lat:t.latlng[0],lng:t.latlng[1]}),n.open(o.map,e||null),t.object&&(n.object=t.object),n},t.prototype.alterPopup=function(t,e,o){var n=this;return n.alterPopupContent(t,e,o),t.getMap()||t.open(n.map,o||null),e.object&&(t.object=e.object),t},t.prototype.alterPopupContent=function(t,e,o){e.content&&t.setContent(e.content),e.latlng?t.setPosition({lat:e.latlng[0],lng:e.latlng[1]}):o&&t.setPosition(o.getPosition()),e.object&&(t.object=e.object)},t.prototype.closePopup=function(t){t.close()},t}();e.default=n},function(t,e,o){"use strict";var n=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function a(t){try{s(n.next(t))}catch(t){r(t)}}function l(t){try{s(n.throw(t))}catch(t){r(t)}}function s(t){t.done?i(t.value):new o(function(e){e(t.value)}).then(a,l)}s((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){function o(t){return function(e){return n([t,e])}}function n(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{i=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}var i,r,a,l,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return l={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l};Object.defineProperty(e,"__esModule",{value:!0});var r=o(6),a=o(20),l=o(21),s=o(22),p=o(23),c=o(24),u=o(25),g=o(26),h=o(27),d=function(){function t(){this.mapsApiLoader=new r.MapsApiLoaderService}return t.prototype.initialize=function(t,e,o){return n(this,void 0,void 0,function(){var n,r,d,f,y,v,m,P,k,M;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.mapsApiLoader.loadApi(t,e)];case 1:return n=i.sent(),r=n,this.loadDependencies(e),[4,this.mapTimeout(1e3)];case 2:return i.sent(),d={center:new r.LatLng(-14,-54),editable:!0,keyboard:!1,maxZoom:e.wikimedia?18:19,minZoom:4,zoom:4,zoomControl:!1},e.gestureHandling&&(d.gestureHandling=!0),[4,this.mapTimeout(200)];case 3:return i.sent(),f=new r.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",d),y=new r.tileLayer("https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}{r}.png",{attribution:'<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia</a>'}),v="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",m=L.tileLayer(v,{attribution:"Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",maxZoom:18}),d.layers=[e.wikimedia?y:f],P=new r.Map(o,d),k={Map:e.wikimedia?y:f,Satellite:m},e.mapTiles&&e.mapTiles.length&&e.mapTiles.forEach(function(t){var e=new r.tileLayer(t.url,t.options);k[t.name]=e}),r.control.layers(k,null,{position:"topleft"}).addTo(P),r.control.zoom({position:"bottomright"}).addTo(P),this.leafletMarkers=new p.default(P,r),this.leafletPolygons=new u.default(P,r),this.leafletCircles=new a.default(P,r),this.leafletPopups=new h.default(P,r),this.leafletPolylines=new g.default(P,r,this.leafletPopups),this.leafletMap=new s.default(P,r),this.leafletOverlays=new c.default(P,r,this.leafletPolygons),this.leafletGeoJson=new l.default(P,r),[2,this];case 4:return M=i.sent(),console.error(M),[2,M];case 5:return[2]}})})},t.prototype.loadGEOJson=function(t,e,o){this.leafletGeoJson.loadGEOJson(t,e,o)},t.prototype.drawMarker=function(t,e){return this.leafletMarkers.drawMarker(t,e)},t.prototype.drawCircleMarker=function(t,e){return this.leafletMarkers.drawCircleMarker(t,e)},t.prototype.toggleMarkers=function(t,e,o){this.leafletMarkers.toggleMarkers(t,e,o)},t.prototype.alterMarkerOptions=function(t,e){this.leafletMarkers.alterMarkerOptions(t,e)},t.prototype.alterMarkerPosition=function(t,e,o){this.leafletMarkers.alterMarkerPosition(t,e,o)},t.prototype.fitBoundsPositions=function(t){this.leafletMarkers.fitBoundsPositions(t)},t.prototype.isMarkerOnMap=function(t){return this.leafletMarkers.isMarkerOnMap(t)},t.prototype.setCenterMarker=function(t){this.leafletMarkers.setCenterMarker(t)},t.prototype.addMarkerEvent=function(t,e,o){this.leafletMarkers.addMarkerEvent(t,e,o)},t.prototype.removeMarkerEvent=function(t,e){this.leafletMarkers.removeMarkerEvent(t,e)},t.prototype.addMarkerClusterer=function(t){return this.leafletMarkers.addMarkerClusterer(t)},t.prototype.alterMarkerClustererConfig=function(t,e){this.leafletMarkers.alterMarkerClustererConfig(t,e)},t.prototype.refreshClusterer=function(t){this.leafletMarkers.refreshClusterer(t)},t.prototype.addMarkerOnClusterer=function(t,e){this.leafletMarkers.addMarkerOnClusterer(t,e)},t.prototype.removeMarkerFromClusterer=function(t,e){this.leafletMarkers.removeMarkerFromClusterer(t,e)},t.prototype.clearMarkersClusterer=function(t){this.leafletMarkers.clearMarkersClusterer(t)},t.prototype.countMarkersOnCluster=function(t){return this.leafletMarkers.countMarkersOnCluster(t)},t.prototype.drawPolygon=function(t,e){return this.leafletPolygons.drawPolygon(t,e)},t.prototype.togglePolygons=function(t,e){this.leafletPolygons.togglePolygons(t,e)},t.prototype.alterPolygonOptions=function(t,e){this.leafletPolygons.alterPolygonOptions(t,e)},t.prototype.fitBoundsPolygons=function(t){this.leafletPolygons.fitBoundsPolygons(t)},t.prototype.setCenterPolygons=function(t){this.leafletPolygons.setCenterPolygons(t)},t.prototype.isPolygonOnMap=function(t){return this.leafletPolygons.isPolygonOnMap(t)},t.prototype.getPolygonPath=function(t){return this.leafletPolygons.getPolygonPath(t)},t.prototype.addPolygonEvent=function(t,e,o){this.leafletPolygons.addPolygonEvent(t,e,o)},t.prototype.removePolygonEvent=function(t,e){this.leafletPolygons.removePolygonEvent(t,e)},t.prototype.drawCircle=function(t,e){return this.leafletCircles.drawCircle(t,e)},t.prototype.toggleCircles=function(t,e){this.leafletCircles.toggleCircles(t,e)},t.prototype.alterCircleOptions=function(t,e){this.leafletCircles.alterCircleOptions(t,e)},t.prototype.fitBoundsCircles=function(t){this.leafletCircles.fitBoundsCircles(t)},t.prototype.isCircleOnMap=function(t){return this.leafletCircles.isCircleOnMap(t)},t.prototype.getCircleCenter=function(t){return this.leafletCircles.getCircleCenter(t)},t.prototype.getCircleRadius=function(t){return this.leafletCircles.getCircleRadius(t)},t.prototype.addCircleEvent=function(t,e,o){this.leafletCircles.addCircleEvent(t,e,o)},t.prototype.removeCircleEvent=function(t,e){this.leafletCircles.removeCircleEvent(t,e)},t.prototype.drawPolyline=function(t,e){return this.leafletPolylines.drawPolyline(t,e)},t.prototype.drawPolylineWithNavigation=function(t,e){return this.leafletPolylines.drawPolylineWithNavigation(t,e)},t.prototype.togglePolylines=function(t,e){this.leafletPolylines.togglePolylines(t,e)},t.prototype.alterPolylineOptions=function(t,e){this.leafletPolylines.alterPolylineOptions(t,e)},t.prototype.fitBoundsPolylines=function(t){this.leafletPolylines.fitBoundsPolylines(t)},t.prototype.isPolylineOnMap=function(t){return this.leafletPolylines.isPolylineOnMap(t)},t.prototype.addPolylinePath=function(t,e){this.leafletPolylines.addPolylinePath(t,e)},t.prototype.getPolylinePath=function(t){return this.leafletPolylines.getPolylinePath(t)},t.prototype.removePolylineHighlight=function(){this.leafletPolylines.removePolylineHighlight()},t.prototype.addPolylineEvent=function(t,e,o){this.leafletPolylines.addPolylineEvent(t,e,o)},t.prototype.removePolylineEvent=function(t,e){this.leafletPolylines.removePolylineEvent(t,e)},t.prototype.setIndexPolylineHighlight=function(t,e){this.leafletPolylines.setIndexPolylineHighlight(t,e)},t.prototype.getObjectPolyline=function(t){return this.leafletPolylines.getObjectPolyline(t)},t.prototype.getObjectPolylineHighlight=function(){return this.leafletPolylines.getObjectPolylineHighlight()},t.prototype.addPolylineHighlightEvent=function(t,e){this.leafletPolylines.addPolylineHighlightEvent(t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.leafletPolylines.getPolylineHighlightIndex()},t.prototype.drawPopup=function(t,e){return this.leafletPopups.drawPopup(t,e)},t.prototype.alterPopup=function(t,e,o){return this.leafletPopups.alterPopup(t,e,o)},t.prototype.alterPopupContent=function(t,e,o){this.leafletPopups.alterPopupContent(t,e,o)},t.prototype.closePopup=function(t){this.leafletPopups.closePopup(t)},t.prototype.resizeMap=function(){this.leafletMap.resizeMap()},t.prototype.addEventMap=function(t,e){this.leafletMap.addEventMap(t,e)},t.prototype.removeEventMap=function(t){this.leafletMap.removeEventMap(t)},t.prototype.getZoom=function(){return this.leafletMap.getZoom()},t.prototype.setZoom=function(t){this.leafletMap.setZoom(t)},t.prototype.getCenter=function(){return this.leafletMap.getCenter()},t.prototype.setCenter=function(t){this.leafletMap.setCenter(t)},t.prototype.pixelsToLatLng=function(t,e){return this.leafletMap.pixelsToLatLng(t,e)},t.prototype.fitBoundsElements=function(t,e,o,n){this.leafletMap.fitBoundsElements(t,e,o,n)},t.prototype.drawOverlay=function(t,e){return this.leafletOverlays.drawOverlay(t,e)},t.prototype.toggleOverlay=function(t,e){this.leafletOverlays.toggleOverlay(t,e)},t.prototype.mapTimeout=function(t){return new Promise(function(e){return setTimeout(e,t)})},t.prototype.loadDependencies=function(t){var e=t.cssDependencies;e&&e.length>0&&e.forEach(function(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t,document.querySelector("head").appendChild(e)});var o=t.scriptsDependencies;o&&o.length>0&&o.forEach(function(t){var e=document.createElement("script");e.type="text/javascript",e.src=t,document.querySelector("head").appendChild(e)})},t}();e.default=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.drawCircle=function(t,e){var o=this,n={color:t.color,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,opacity:t.opacity,radius:t.radius,weight:t.weight},r=new this.leaflet.Circle(t.center,n);return e&&r.on("click",function(t){o.leaflet.DomEvent.stopPropagation(t);var n=new i.default([t.latlng.lat,t.latlng.lng]);e(n,t.target.object)}),t.addToMap&&(r.addTo(o.map),t.editable&&r.enableEdit()),t.object&&(r.object=t.object),t.fitBounds&&o.map.fitBounds(r.getBounds()),r},t.prototype.toggleCircles=function(t,e){var o=this;t.forEach(function(t){return e?o.map.addLayer(t):o.map.removeLayer(t)})},t.prototype.alterCircleOptions=function(t,e){t.forEach(function(t){var o={color:e.color?e.color:t.options.color,draggable:e.draggable?e.draggable:t.options.draggable,editable:e.editable?e.editable:t.options.editable,fillColor:e.fillColor?e.fillColor:t.options.fillColor,fillOpacity:e.fillOpacity?e.fillOpacity:t.options.fillOpacity,opacity:e.opacity?e.opacity:t.options.opacity,weight:e.weight?e.weight:t.options.weight};t.setStyle(o),e.radius&&t.setRadius(e.radius),e.center&&t.setLatLng(e.center),null!==e.editable&&void 0!==e.editable&&(e.editable?t.enableEdit():t.disableEdit())})},t.prototype.fitBoundsCircles=function(t){this.map.fitBounds(this.getBoundsCircles(t))},t.prototype.isCircleOnMap=function(t){return this.map.hasLayer(t)},t.prototype.getCircleCenter=function(t){var e=t.getLatLng();return[e.lat,e.lng]},t.prototype.getCircleRadius=function(t){return t.getRadius()},t.prototype.addCircleEvent=function(t,e,o){t.forEach(function(t){switch(e){case n.CircleEventType.Click:t.on("click",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});case n.CircleEventType.CenterChanged:t.on("dragend",function(e){var n=new i.default([e.target.getLatLng().lat,e.target.getLatLng().lng]);o(n,t.object)});case n.CircleEventType.RadiusChanged:t.on("editable:vertex:dragend",function(e){var n=new i.default([e.vertex.latlng.lat,e.vertex.latlng.lng]);o(n,t.object,t.getRadius())})}})},t.prototype.removeCircleEvent=function(t,e){t.forEach(function(t){switch(e){case n.CircleEventType.Click:t.off("click");case n.CircleEventType.CenterChanged:t.off("dragend");case n.CircleEventType.RadiusChanged:t.off("editable:vertex:dragend")}})},t.prototype.getBoundsCircles=function(t){return new this.leaflet.FeatureGroup(t).getBounds()},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.loadGEOJson=function(t,e,o){var i=this,r=i.parseGeoJson(t,e);r.forEach(function(t){return i.map.addLayer(t)}),i.map.options&&i.map.options.editable&&r.forEach(function(t){t.enableEdit&&t.enableEdit(),o&&t.on("click",function(t){var e=new n.default([t.latlng.lat,t.latlng.lng]);o(e)})})},t.prototype.parseGeoJson=function(t,e){var o=this,n=[];if(Array.isArray(t.features))for(var i=0,r=t.features;i<r.length;i++){var a=r[i];n.push(o.parseGeoJsonToObject(a,e))}else n.push(o.parseGeoJsonToObject(t,e));return n},t.prototype.parseGeoJsonToObject=function(t,e){var o=t.geometry,n=[];switch(t.properties&&Object.assign(e,t.properties),o.type){case"Point":return n=o.coordinates.reverse(),new this.leaflet.Marker(n,e);case"Polygon":return o.coordinates.forEach(function(t){return n.push(t.map(function(t){return t.reverse()}))}),new this.leaflet.Polygon(n,e);case"LineString":return n=o.coordinates.map(function(t){return t.reverse()}),new this.leaflet.Polyline(n,e);default:throw new Error("Unknown object shape.")}},t}();e.default=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.resizeMap=function(){this.map.invalidateSize()},t.prototype.addEventMap=function(t,e){var o=this;switch(t){case n.MapEventType.Click:o.map.on("click",function(t){var o=new i.default([t.latlng.lat,t.latlng.lng]);e(o)});break;case n.MapEventType.ZoomChanged:o.map.on("zoomend",function(t){var o=new i.default([t.target.getCenter().lat,t.target.getCenter().lng]);e(o)})}},t.prototype.removeEventMap=function(t){var e=this;switch(t){case n.MapEventType.Click:e.map.off("click");break;case n.MapEventType.ZoomChanged:e.map.off("zoomend")}},t.prototype.getZoom=function(){return this.map.getZoom()},t.prototype.setZoom=function(t){this.map.setZoom(t)},t.prototype.getCenter=function(){var t=this.map.getCenter();return[t.lat,t.lng]},t.prototype.setCenter=function(t){this.map.panTo(t)},t.prototype.pixelsToLatLng=function(t,e){var o=Math.pow(2,this.map.getZoom()),n=this.leaflet.CRS.Simple.project(this.map.getCenter()),i=new this.leaflet.Point(t/o||0,e/o||0),r=new this.leaflet.Point(n.x-i.x,n.y+i.y),a=this.leaflet.CRS.Simple.unproject(r);return[a.lat,a.lng]},t.prototype.fitBoundsElements=function(t,e,o,n){var i=[];if(t&&t.length&&t.forEach(function(t){return i.push(t)}),e&&e.length&&e.forEach(function(t){return i.push(t)}),o&&o.length&&o.forEach(function(t){return i.push(t)}),n&&n.length&&n.forEach(function(t){return i.push(t)}),i&&i.length){var r=this.leaflet.featureGroup(i).getBounds();this.map.fitBounds(r)}},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.drawMarker=function(t,e){var o={draggable:t.draggable};if(t.icon){o.icon=new this.leaflet.Icon({iconUrl:t.icon.url});var n=t.icon.size;n&&(o.icon.options.iconSize=n,o.icon.options.iconAnchor=[n[0]/2,n[1]],o.icon.options.popupAnchor=[0,-n[1]])}var r=new this.leaflet.Marker(t.latlng,o);if(t.object&&(r.object=t.object),e&&r.on("click",function(t){var o=new i.default([t.latlng.lat,t.latlng.lng]);e(o,t.target.object)}),t.addToMap&&!t.addClusterer&&r.addTo(this.map),t.fitBounds){var a=new this.leaflet.FeatureGroup([r]);this.map.fitBounds(a.getBounds())}return r},t.prototype.drawCircleMarker=function(t,e){var o=this,n=new this.leaflet.circleMarker(t.latlng,t.style);if(e&&n.on("click",function(t){var o=new i.default([t.latlng.lat,t.latlng.lng]);e(o,t.target.object)}),t.addToMap&&n.addTo(o.map),t.fitBounds){var r=new this.leaflet.FeatureGroup([n]);o.map.fitBounds(r.getBounds())}return n.object=t.object,n},t.prototype.toggleMarkers=function(t,e,o){var n=this;t.forEach(function(t){o?e?n.addMarkerOnClusterer(t,o):n.removeMarkerFromClusterer(t,o):e?n.map.addLayer(t):n.map.removeLayer(t)})},t.prototype.alterMarkerOptions=function(t,e){var o=this;t.forEach(function(t){if("circle"===t.type&&e.style){var n={fillColor:e.style.fillColor?e.style.fillColor:t.options.fillColor,fillOpacity:e.style.fillOpacity?e.style.fillOpacity:t.options.fillOpacity,radius:e.style.radius?e.style.radius:t.options.radius,strokeColor:e.style.color?e.style.color:t.options.strokeColor,strokeWeight:e.style.weight?e.style.weight:t.options.strokeWeight};t.setStyle(n)}if(e.icon){var i=new o.leaflet.icon({iconUrl:e.icon.url}),r=e.icon.size;r&&(i.options.iconSize=r,i.options.iconAnchor=[r[0]/2,r[1]]),t.setIcon(i)}e.latlng&&t.setLatLng(e.latlng)})},t.prototype.alterMarkerPosition=function(t,e,o){var n=this;t.forEach(function(t){o?n.moveTransitionMarker(e,t):t.setLatLng(e)})},t.prototype.fitBoundsPositions=function(t){var e=new this.leaflet.featureGroup(t);this.map.fitBounds(e.getBounds())},t.prototype.isMarkerOnMap=function(t){return this.map.hasLayer(t)},t.prototype.setCenterMarker=function(t){this.map.panTo(t.getLatLng())},t.prototype.addMarkerEvent=function(t,e,o){t.forEach(function(t){switch(e){case n.MarkerEventType.Click:t.on("click",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});break;case n.MarkerEventType.RightClick:t.on("contextmenu",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});break;case n.MarkerEventType.AfterDrag:t.on("dragend",function(e){var n=new i.default([e.target.getLatLng().lat,e.target.getLatLng().lng]);o(n,t.object)});break;case n.MarkerEventType.MouseOver:t.on("mouseover",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});break;case n.MarkerEventType.MouseOut:t.on("mouseout",function(e){var n=new i.default([e.latlng.lat,e.latlng.lng]);o(n,t.object)});break;case n.MarkerEventType.BeforeDrag:t.on("dragstart",function(e){var n=new i.default([e.target.getLatLng().lat,e.target.getLatLng().lng]);o(n,t.object)})}})},t.prototype.removeMarkerEvent=function(t,e){t.forEach(function(t){switch(e){case n.MarkerEventType.Click:t.off("click");break;case n.MarkerEventType.RightClick:t.off("contextmenu");break;case n.MarkerEventType.AfterDrag:t.off("dragend");break;case n.MarkerEventType.MouseOver:t.off("mouseover");break;case n.MarkerEventType.MouseOut:t.off("mouseout");break;case n.MarkerEventType.BeforeDrag:t.off("dragstart")}})},t.prototype.addMarkerClusterer=function(t){var e=this.leaflet.markerClusterGroup({maxClusterRadius:50,showCoverageOnHover:!1,zoomToBoundsOnClick:t.clusterZoomOnClick});return this.map.addLayer(e),e},t.prototype.alterMarkerClustererConfig=function(t,e){t.options.zoomToBoundsOnClick=e.clusterZoomOnClick},t.prototype.refreshClusterer=function(t){t.refreshClusters()},t.prototype.addMarkerOnClusterer=function(t,e){e.addLayer(t)},t.prototype.removeMarkerFromClusterer=function(t,e){e.removeLayer(t)},t.prototype.clearMarkersClusterer=function(t){t.clearLayers()},t.prototype.countMarkersOnCluster=function(t){return t.getLayers().length},t.prototype.moveTransitionMarker=function(t,e){var o={deltaLat:(t[0]-e.getLatLng().lat)/5,deltaLng:(t[1]-e.getLatLng().lng)/5,i:0,position:[e.getLatLng().lat,e.getLatLng().lng],lastPosition:t};this.moveMarker(e,o,5)},t.prototype.moveMarker=function(t,e,o){var n=this;e.position[0]+=e.deltaLat,e.position[1]+=e.deltaLng,t.setLatLng(e.position),e.i<o?(e.i++,setTimeout(function(){return n.moveMarker(t,e,o)},20)):e.i===o&&setTimeout(function(){return t.setLatLng(e.lastPosition)},20)},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),i=function(){function t(t,e,o){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e,this.leafletPolygons=o}return t.prototype.drawOverlay=function(t,e){var o=t.divElement.outerHTML,i=new this.leaflet.DivIcon({html:o}),r=e&&e.length>0?this.leafletPolygons.getBoundsPolygons(e).getCenter():t.position,a=new this.leaflet.Marker(r,{icon:i,draggable:t.draggable});return t.addToMap&&a.addTo(this.map),a.object=t.object,t.draggable&&t.afterEventDragHandler&&a.on("dragend",function(e){var o=new n.default([e.target.getLatLng().lat,e.target.getLatLng().lng]);t.afterEventDragHandler(o,t.object)}),a},t.prototype.toggleOverlay=function(t,e){var o=this;t.forEach(function(t){return e?o.map.addLayer(t):o.map.removeLayer(t)})},t}();e.default=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.drawPolygon=function(t,e){var o=this,n={color:t.color||"#000",draggable:t.draggable,fillColor:t.fillColor||"#fff",fillOpacity:t.fillOpacity||1,opacity:t.opacity||1,weight:t.weight||2},r=new this.leaflet.Polygon(t.path,n);return e&&r.on("click",function(t){o.leaflet.DomEvent.stopPropagation(t);var n=new i.default([t.latlng.lat,t.latlng.lng]);e(n,t.target.object)}),t.addToMap&&(r.addTo(o.map),t.editable&&r.enableEdit()),t.object&&(r.object=t.object),t.fitBounds&&o.map.fitBounds(r.getBounds()),r},t.prototype.togglePolygons=function(t,e){var o=this;t.forEach(function(t){return e?o.map.addLayer(t):o.map.removeLayer(t)})},t.prototype.alterPolygonOptions=function(t,e){t.forEach(function(t){var o={color:e.color?e.color:t.options.color,draggable:e.draggable?e.draggable:t.options.draggable,fillColor:e.fillColor?e.fillColor:t.options.fillColor,fillOpacity:e.fillOpacity?e.fillOpacity:t.options.fillOpacity,opacity:e.opacity?e.opacity:t.options.opacity,weight:e.weight?e.weight:t.options.weight};e.path&&t.setLatLngs(e.path),t.setStyle(o),null!==e.editable&&void 0!==e.editable&&(t.disableEdit(),e.editable&&t.enableEdit()),e.object&&(t.object=e.object)})},t.prototype.fitBoundsPolygons=function(t){this.map.fitBounds(this.getBoundsPolygons(t))},t.prototype.setCenterPolygons=function(t){this.map.panTo(this.getBoundsPolygons(t).getCenter())},t.prototype.isPolygonOnMap=function(t){return this.map.hasLayer(t)},t.prototype.getPolygonPath=function(t){return t.getLatLngs()[0].map(function(t){return[t.lat,t.lng]})},t.prototype.addPolygonEvent=function(t,e,o){var i=this,r=this;t.forEach(function(t){switch(e){case n.PolygonEventType.SetAt:i.addPolygonEventMove(t,o);break;case n.PolygonEventType.InsertAt:i.addPolygonEventInsertAt(t,o);break;case n.PolygonEventType.RemoveAt:i.addPolygonEventRemoveAt(t,o);break;case n.PolygonEventType.DragPolygon:i.addPolygonEventDragPolygon(t,o);break;case n.PolygonEventType.Click:i.addPolygonEventClick(t,o,r)}})},t.prototype.removePolygonEvent=function(t,e){t.forEach(function(t){switch(e){case n.PolygonEventType.SetAt:t.off("editable:vertex:dragstart");break;case n.PolygonEventType.InsertAt:t.off("editable:vertex:new");break;case n.PolygonEventType.RemoveAt:t.off("editable:vertex:clicked"),t.off("editable:vertex:deleted");break;case n.PolygonEventType.DragPolygon:t.off("dragend");break;case n.PolygonEventType.Click:t.off("click")}})},t.prototype.getBoundsPolygons=function(t){return new this.leaflet.FeatureGroup(t).getBounds()},t.prototype.addPolygonEventMove=function(t,e){t.on("editable:vertex:dragstart",function(o){var n=new i.default([o.vertex.latlng.lat,o.vertex.latlng.lng]);t.on("editable:vertex:dragend",function(o){var r=new i.default([o.vertex.latlng.lat,o.vertex.latlng.lng]),a=t.getLatLngs().map(function(t){return Array.isArray(t[0])?t.map(function(t){return t.map(function(t){return new i.default([t.lat,t.lng])})}):[t.map(function(t){return new i.default([t.lat,t.lng])})]});e(r,n,o.target.object,o.vertex.getIndex(),a[0]),t.off("editable:vertex:dragend")})})},t.prototype.addPolygonEventInsertAt=function(t,e){t.on("editable:vertex:new",function(o){var n=o.vertex.latlngs,r=n[n.findIndex(function(t){return t===o.vertex.latlng})-1];if(r){var a=new i.default([r.lat,r.lng]);t.on("editable:vertex:dragend",function(o){var n=new i.default([o.vertex.latlng.lat,o.vertex.latlng.lng]),r=t.getLatLngs().map(function(t){return Array.isArray(t[0])?t.map(function(t){return t.map(function(t){return new i.default([t.lat,t.lng])})}):[t.map(function(t){return new i.default([t.lat,t.lng])})]});e(n,a,o.target.object,o.vertex.getIndex(),r[0]),t.off("editable:vertex:dragend")})}})},t.prototype.addPolygonEventRemoveAt=function(t,e){t.on("editable:vertex:deleted",function(o){var n=new i.default([o.vertex.latlng.lat,o.vertex.latlng.lng]),r=t.getLatLngs().map(function(t){return Array.isArray(t[0])?t.map(function(t){return t.map(function(t){return new i.default([t.lat,t.lng])})}):[t.map(function(t){return new i.default([t.lat,t.lng])})]});e(n,r[0],o.target.object)})},t.prototype.addPolygonEventDragPolygon=function(t,e){t.on("dragend",function(o){var n=t.getLatLngs().map(function(t){return Array.isArray(t[0])?t.map(function(t){return t.map(function(t){return new i.default([t.lat,t.lng])})}):[t.map(function(t){return new i.default([t.lat,t.lng])})]});e(n[0],o.target.object)})},t.prototype.addPolygonEventClick=function(t,e,o){t.on("click",function(t){o.leaflet.DomEvent.stopPropagation(t);var n=new i.default([t.latlng.lat,t.latlng.lng]);e(n,t.target.object)})},t}();e.default=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(3),r=o(0),a=function(){function t(t,e,o){this.map=null,this.leaflet=null,this.selectedPolyline=null,this.selectedPath=null,this.navigateInfoWindow=null,this.directionForward=!1,this.multiSelectionForward=!1,this.multiSelection=!1,this.map=t,this.leaflet=e,this.leafletPopup=o}return t.prototype.drawPolyline=function(t,e){var o=this,n={color:t.color||"#000000",dashArray:null,draggable:t.draggable,editable:t.editable,infowindows:t.infowindows,opacity:t.opacity||1,weight:t.weight||3,zIndex:t.zIndex};if(null!==t.style)switch(t.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.opacity=.7,n.dashArray="20,15"}var a=new this.leaflet.Polyline(t.path||[],n);if(a.on("editable:vertex:rawclick",function(t){return t.cancel()}),e&&(a.on("click",function(t){o.leaflet.DomEvent.stopPropagation(t);var n=new r.default([t.latlng.lat,t.latlng.lng]);e(n,t.target.object)}),a.on("editable:vertex:rawclick",function(t){t.cancel();var o=new r.default([t.latlng.lat,t.latlng.lng]);e(o,t.target.object)})),t.style&&t.style===i.PolylineType.Arrow){var l={fillOpacity:1,weight:0,color:a.options.color};a.decorator=o.leaflet.polylineDecorator(a,{patterns:[{offset:"20%",repeat:"90px",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:l})},{offset:"0%",symbol:o.leaflet.Symbol.arrowHead({pathOptions:l,pixelSize:20})},{offset:"100%",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:l})}]})}return t.addToMap&&(a.addTo(o.map),a.decorator&&a.decorator.addTo(o.map),t.editable&&a.enableEdit()),t.object&&(a.object=t.object),t.fitBounds&&o.map.fitBounds(a.getBounds()),a},t.prototype.drawPolylineWithNavigation=function(t,e){var o=this.drawPolyline(t,null);return o.navigationHandlerClick=e,this.navigationOptions=t.navigateOptions,this.navigateByPoint=!this.navigationOptions||this.navigationOptions.navigateByPoint,this.addNavigation(o),o},t.prototype.togglePolylines=function(t,e){var o=this;t.forEach(function(t){e?(o.map.addLayer(t),t.options.editable&&t.enableEdit(),t.decorator&&o.map.addLayer(t.decorator)):(o.map.removeLayer(t),t.options.editable&&t.disableEdit(),t.decorator&&o.map.removeLayer(t.decorator))})},t.prototype.alterPolylineOptions=function(t,e){var o=this;t.forEach(function(t){var n={color:e.color?e.color:t.options.color,draggable:e.draggable?e.draggable:t.options.draggable,opacity:e.opacity?e.opacity:t.options.opacity,weight:e.weight?e.weight:t.options.weight,zIndex:e.zIndex?e.zIndex:t.options.zIndex};switch(e.path&&t.setLatLngs(e.path),e.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.dashArray="20,15";break;case i.PolylineType.Arrow:var r={fillOpacity:1,weight:0,color:n.color};t.decorator&&o.map.removeLayer(t.decorator),t.decorator=o.leaflet.polylineDecorator(t,{patterns:[{offset:"20%",repeat:"90px",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:r})},{offset:"0%",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:r})},{offset:"100%",symbol:o.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:r})}]}),o.map.hasLayer(t)&&t.decorator.addTo(o.map);break;default:t.decorator&&(o.map.removeLayer(t.decorator),t.decorator=null)}t.setStyle(n),e.object&&(t.object=e.object),e.editable&&(t.disableEdit(),t.enableEdit())})},t.prototype.fitBoundsPolylines=function(t){var e=this;e.map.fitBounds(e.getBoundsPolylines(t))},t.prototype.isPolylineOnMap=function(t){return this.map.hasLayer(t)},t.prototype.addPolylinePath=function(t,e){var o=this;t.forEach(function(t){var n=t.getLatLngs();n.push(new o.leaflet.LatLng(e[0],e[1])),t.setLatLngs(n),t.editEnabled&&t.editEnabled()&&(t.disableEdit(),t.enableEdit())})},t.prototype.getPolylinePath=function(t){return t.getLatLngs().map(function(t){return[t.lat,t.lng]})},t.prototype.removePolylineHighlight=function(){var t=this;t.selectedPath&&(this.selectedPath.decorator&&this.map.removeLayer(this.selectedPath.decorator),this.map.removeLayer(t.selectedPath),t.selectedPath=null),t.navigateInfoWindow&&t.navigateInfoWindow.remove(),document.onkeyup=null,document.onkeydown=null},t.prototype.addPolylineEvent=function(t,e,o){var i=this;t.forEach(function(t){switch(e){case n.PolylineEventType.SetAt:i.addPolylineEventMove(t,o);break;case n.PolylineEventType.InsertAt:i.addPolylineEventInsertAt(t,o);break;case n.PolylineEventType.RemoveAt:i.addPolylineEventRemoveAt(t,o);break;case n.PolylineEventType.MouseOver:i.addPolylineEventMouseOver(t,o);break;case n.PolylineEventType.MouseOut:i.addPolylineEventMouseOut(t,o);break;case n.PolylineEventType.DragPolyline:i.addPolylineEventDragPolyline(t,o)}})},t.prototype.removePolylineEvent=function(t,e){t.forEach(function(t){switch(e){case n.PolylineEventType.SetAt:t.off("editable:vertex:dragstart");break;case n.PolylineEventType.InsertAt:t.off("editable:vertex:new");break;case n.PolylineEventType.RemoveAt:t.off("editable:vertex:deleted");break;case n.PolylineEventType.DragPolyline:t.off("dragend");break;case n.PolylineEventType.MouseOver:t.off("mouseover");break;case n.PolylineEventType.MouseOut:t.off("mouseout")}})},t.prototype.setIndexPolylineHighlight=function(t,e){this.directionForward=!1,t.initialIdx=e,t.finalIdx=e+1,this.moveSelectedPath(t,this.navigationOptions),this.selectedPolyline=t,this.navigationOptions.navegateOnKeyPress?document.onkeydown=this.onKeyUp.bind(this):document.onkeyup=this.onKeyUp.bind(this)},t.prototype.getObjectPolyline=function(t){return t.object},t.prototype.getObjectPolylineHighlight=function(){return this.selectedPath?this.selectedPath.object:null},t.prototype.addPolylineHighlightEvent=function(t,e){this.selectedPolyline&&this.addPolylineEvent([this.selectedPath],t,e)},t.prototype.getPolylineHighlightIndex=function(){return this.selectedPath?[this.selectedPath.initialIdx,this.selectedPath.finalIdx]:null},t.prototype.addNavigation=function(t){t.clearAllEventListeners(),t.on("click",this.onClickPolyline.bind(this,t))},t.prototype.onClickPolyline=function(t,e){var o=this.checkIdx(t,e.latlng);if(t.initialIdx=o,t.finalIdx=o+1,this.moveSelectedPath(t,this.navigationOptions),this.selectedPolyline=t,this.navigationOptions.navegateOnKeyPress?document.onkeydown=this.onKeyUp.bind(this):document.onkeyup=this.onKeyUp.bind(this),t.navigationHandlerClick){var n=new r.default([e.latlng.lat,e.latlng.lng]);t.navigationHandlerClick(n,e.target.object)}},t.prototype.onKeyUp=function(t){var e=this;if(e.selectedPath)switch(t.ctrlKey&&console.warn("Deprecated: CTRL is not needed in navigation anymore"),t.which?t.which:t.keyCode){case 38:case 39:e.moveFowards(t.shiftKey);break;case 37:case 40:e.moveBackwards(t.shiftKey)}},t.prototype.moveFowards=function(t){var e=this.selectedPolyline;(!this.navigateByPoint||this.directionForward)&&e.finalIdx<e.getLatLngs().length-1&&this.navigateFoward(t,e),this.directionForward=!0,this.moveSelectedPath(e,null)},t.prototype.navigateFoward=function(t,e){t?(this.multiSelection=!0,this.multiSelectionForward&&e.finalIdx++,this.multiSelectionForward=!0):(e.finalIdx++,e.initialIdx=this.multiSelection?e.finalIdx-1:e.initialIdx+1,this.multiSelection=!1)},t.prototype.moveBackwards=function(t){var e=this.selectedPolyline;this.navigateByPoint&&this.directionForward||!(e.initialIdx>0)||this.navigateBackward(t,e),this.directionForward=!1,this.moveSelectedPath(e,null)},t.prototype.navigateBackward=function(t,e){var o=this;t?(o.multiSelection=!0,o.multiSelectionForward||e.initialIdx--,o.multiSelectionForward=!1):(e.initialIdx--,e.finalIdx=o.multiSelection?e.initialIdx+1:e.finalIdx-1,o.multiSelection=!1)},t.prototype.moveSelectedPath=function(t,e){var o=this,n=t.getLatLngs().map(function(t){return[t.lat,t.lng]}).slice(t.initialIdx,t.finalIdx+1);o.selectedPath?(o.selectedPath.setLatLngs(n),this.selectedPath.object=t.object):(this.addNewSelectedPath(n,e,t.object),this.selectedPath.addTo(this.map)),this.selectedPath.decorator&&(this.map.removeLayer(this.selectedPath.decorator),this.setArrowSelectedPath()),(e&&e.editable||this.selectedPath.editEnabled&&this.selectedPath.editEnabled())&&(this.selectedPath.disableEdit(),this.selectedPath.enableEdit()),this.selectedPath.initialIdx=t.initialIdx,this.selectedPath.finalIdx=t.finalIdx;var i=o.directionForward?t.finalIdx:t.initialIdx;this.navigateByPoint||(i=t.finalIdx>t.initialIdx?t.finalIdx:t.initialIdx);var r=t.options.infowindows?t.options.infowindows[i]:null;if(r){var a=t.getLatLngs()[i];o.navigateInfoWindow?o.leafletPopup.alterPopup(o.navigateInfoWindow,{content:r,latlng:[a.lat,a.lng]}):o.navigateInfoWindow=o.leafletPopup.drawPopup({content:r,latlng:[a.lat,a.lng]})}},t.prototype.setArrowSelectedPath=function(){var t={fillOpacity:1,weight:0,color:this.selectedPath.options.color};this.selectedPath.decorator=this.leaflet.polylineDecorator(this.selectedPath,{patterns:[{offset:"100%",symbol:this.leaflet.Symbol.arrowHead({pixelSize:20,pathOptions:t})}]}),this.selectedPath.decorator.addTo(this.map)},t.prototype.addNewSelectedPath=function(t,e,o){var n={color:e&&e.color||"#FF0000",draggable:!1,editable:e.editable,opacity:e&&e.opacity||1,weight:e&&e.weight||10,zIndex:9999};if(null!==e.style)switch(e.style){case i.PolylineType.Dotted:console.warn("PolylineType.Dotted is deprecated, instead use PolylineType.Dashed.");case i.PolylineType.Dashed:n.opacity=.7,n.dashArray="20,15"}this.selectedPath=new this.leaflet.Polyline(t,n),this.selectedPath.on("editable:vertex:rawclick",function(t){return t.cancel()}),e.style&&e.style===i.PolylineType.Arrow&&this.setArrowSelectedPath(),this.selectedPath.object=o,this.selectedPath.highlight=!0},t.prototype.checkIdx=function(t,e){for(var o=this,n=t.getLatLngs(),i=0,r=Number.MAX_VALUE,a=-1,l=0;l<n.length-1;l++)(i=o.distanceToLine(n[l],n[l+1],e))<r&&(r=i,a=l);return a},t.prototype.distanceToLine=function(t,e,o){var n=this,i=e.lng-t.lng,r=e.lat-t.lat,a=(o.lng-t.lng)*i,l=i*i+r*r;if(a+=(o.lat-t.lat)*r,l>0?a/=l:a=-1,a<0)return n.kmTo(o,t);if(a>1)return n.kmTo(o,e);var s=new this.leaflet.LatLng(t.lat+a*r,t.lng+a*i);return n.kmTo(o,s)},t.prototype.kmTo=function(t,e){var o=Math,n=o.PI/180,i=t.lat*n,r=e.lat*n,a=i-r,l=t.lng*n-e.lng*n;return 2*o.asin(o.sqrt(o.pow(o.sin(a/2),2)+o.cos(i)*o.cos(r)*o.pow(o.sin(l/2),2)))*6378.137*1e3},t.prototype.getBoundsPolylines=function(t){return new this.leaflet.FeatureGroup(t).getBounds()},t.prototype.addPolylineEventMove=function(t,e){var o=this;t.on("editable:vertex:dragstart",function(n){var i=new r.default([n.vertex.latlng.lat,n.vertex.latlng.lng]);t.on("editable:vertex:dragend",function(n){t.highlight&&t.decorator&&(o.map.removeLayer(t.decorator),o.setArrowSelectedPath());var a=new r.default([n.vertex.latlng.lat,n.vertex.latlng.lng]);e(a,i,n.target.object,n.vertex.getIndex(),t.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])})),t.off("editable:vertex:dragend")})})},t.prototype.addPolylineEventInsertAt=function(t,e){var o=this;t.on("editable:vertex:new",function(n){var i=n.vertex.latlngs,a=i[i.findIndex(function(t){return t===n.vertex.latlng})-1],l=new r.default([a.lat,a.lng]);t.on("editable:vertex:dragend",function(n){t.highlight&&t.decorator&&(o.map.removeLayer(t.decorator),o.setArrowSelectedPath());var i=new r.default([n.vertex.latlng.lat,n.vertex.latlng.lng]);e(i,l,n.target.object,n.vertex.getIndex(),t.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])})),t.off("editable:vertex:dragend")})})},t.prototype.addPolylineEventRemoveAt=function(t,e){t.on("editable:vertex:deleted",function(o){var n=new r.default([o.vertex.latlng.lat,o.vertex.latlng.lng]);e(n,o.target.object,t.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])}))})},t.prototype.addPolylineEventMouseOver=function(t,e){t.on("mouseover",function(t){var o=t.target.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])});e(o,t.target.object)})},t.prototype.addPolylineEventMouseOut=function(t,e){t.on("mouseout",function(t){var o=t.target.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])});e(o,t.target.object)})},t.prototype.addPolylineEventDragPolyline=function(t,e){t.on("dragend",function(t){var o=t.target.getLatLngs().map(function(t){return new r.default([t.lat,t.lng])});e(o,t.target.object)})},t}();e.default=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.map=null,this.leaflet=null,this.map=t,this.leaflet=e}return t.prototype.drawPopup=function(t,e){var o=this,n=null;return e?n=o.drawPopupOnMarker(e,t):(n=new this.leaflet.Popup,n.setLatLng(t.latlng),n.setContent(t.content),n.openOn(o.map)),t.object&&(n.object=t.object),n},t.prototype.alterPopup=function(t,e,o){var n=this;return o&&!o.getPopup()?t=n.drawPopup(e,o):(n.alterPopupContent(t,e,o),t.isOpen()||(o?e.notCalledByMap&&o.openPopup():t.openOn(n.map))),e.object&&(t.object=e.object),t},t.prototype.alterPopupContent=function(t,e,o){o&&(t=o._popup),t&&(e.content&&t.setContent(e.content),e.latlng&&t.setLatLng(e.latlng)),e.object&&(t.object=e.object)},t.prototype.closePopup=function(t){t.remove()},t.prototype.drawPopupOnMarker=function(t,e){t.bindPopup(e.content);var o=t.getPopup();return t.openPopup(),o},t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a){this.center=t,this.radius=e,this.weight=o,this.fillOpacity=n,this.fillColor=i,this.color=r,this.opacity=a}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a,l,s,p,c,u){this.center=t,this.radius=e,this.weight=o,this.addToMap=n,this.fillOpacity=i,this.fillColor=r,this.color=a,this.opacity=l,this.draggable=s,this.editable=p,this.fitBounds=c,this.object=u}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.draggable=t,this.editable=e}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i){this.latlng=t,this.addToMap=o,this.style=e,this.fitBounds=n,this.object=i}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i){this.radius=t,this.weight=e,this.color=o,this.fillColor=n,this.fillOpacity=i}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o){this.latlng=t,this.icon=e,this.style=o}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.url=t,this.size=e}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a){void 0===e&&(e=!1),void 0===o&&(o=!1),void 0===i&&(i=!1),void 0===a&&(a=!1),this.latlng=t,this.addToMap=e,this.draggable=o,this.icon=n,this.fitBounds=i,this.object=r,this.addClusterer=a}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a){void 0===a&&(a=!1),this.position=o,this.divElement=t,this.addToMap=e,this.object=n,this.polygon=i,this.conditionPolygon=r,this.draggable=a}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r){this.addToMap=t,this.color=e,this.opacity=o,this.fillColor=n,this.fillOpacity=i,this.weight=r}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r,a,l,s,p,c){this.path=t,this.weight=e,this.addToMap=o,this.color=n,this.opacity=i,this.fillColor=r,this.fillOpacity=a,this.draggable=l,this.editable=s,this.fitBounds=p,this.object=c}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n){void 0===o&&(o=!0),void 0===n&&(n=1),this.color=t,this.weight=e,this.opacity=n,this.navigateByPoint=o,this.navegateOnKeyPress=!1}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,o,n,i,r){this.latlng=t,this.content=e,this.marker=o,this.conditionMarker=n,this.notCalledByMap=i,this.object=r}return t}();e.default=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.urlBuilder=function(t){var e=t.base;return e+="?",t.apiKey&&(e+="key="+t.apiKey+"&"),t.integrity&&(e+="integrity="+t.integrity+"&"),t.client&&(e+="client="+t.client+"&"),t.crossorigin&&(e+="crossorigin="+t.crossorigin+"&"),t.libraries&&t.libraries.length>0&&(e+="libraries=",t.libraries.forEach(function(o,n){e+=o,n!==t.libraries.length-1&&(e+=",")}),e+="&"),t.language&&(e+="language="+t.language+"&"),t.callback&&(e+="callback="+t.callback+"&"),e}},function(t,e,o){t.exports=o(7)}])});
2
2
  //# sourceMappingURL=inlog-maps.min.js.map