frontend-roadreport-main/frontend-roadreport-deploy/dist/road-report/257.88b5a23227acab06.js
2024-12-31 10:28:36 +07:00

1 line
200 KiB
JavaScript

(self.webpackChunkroad_report=self.webpackChunkroad_report||[]).push([[257],{1200:(At,dt,v)=>{"use strict";v.d(dt,{B:()=>h});var A=v(1991),I=v(8699),o=v(1626),a=v(7110);let h=(()=>{class l extends A.G{constructor(m,d){super(m,d),this.http=m,this.helpers=d,this.endpoint="report-segmens"}static{this.\u0275fac=function(d){return new(d||l)(I.KVO(o.Qq),I.KVO(a.V))}}static{this.\u0275prov=I.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},4576:(At,dt,v)=>{"use strict";v.d(dt,{_:()=>h});var A=v(1991),I=v(8699),o=v(1626),a=v(7110);let h=(()=>{class l extends A.G{constructor(m,d){super(m,d),this.http=m,this.helpers=d,this.endpoint="sub-district"}static{this.\u0275fac=function(d){return new(d||l)(I.KVO(o.Qq),I.KVO(a.V))}}static{this.\u0275prov=I.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},5731:(At,dt,v)=>{"use strict";v.d(dt,{c:()=>h});var A=v(1991),I=v(8699),o=v(1626),a=v(7110);let h=(()=>{class l extends A.G{constructor(m,d){super(m,d),this.http=m,this.helpers=d,this.endpoint="report-schedules/detail"}static{this.\u0275fac=function(d){return new(d||l)(I.KVO(o.Qq),I.KVO(a.V))}}static{this.\u0275prov=I.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},2257:(At,dt,v)=>{"use strict";v.d(dt,{i:()=>et});var A=v(177),I=v(5946),o=v(6803),a=v(8244),m=(v(6484),v(7374)),c=v(8699),y=v(7110),T=v(2423),P=v(5211),W=v(1200),O=v(4576),k=v(5731);function g(rt,Rt){if(1&rt&&(c.j41(0,"li",13),c.nrm(1,"span",14),c.j41(2,"span",15),c.EFF(3),c.k0s()()),2&rt){const x=Rt.$implicit,B=c.XpG(2);c.R7$(1),c.xc7("background-color","DSS"===B.selectedOption?B.getColorByStatusDss(x.status):B.getColorByStatusTitikLaporan(x.status)),c.R7$(1),c.Y8G("ngClass","DSS"===B.selectedOption?B.getColorByStatusDss(x.status):B.getColorByStatusTitikLaporan(x.status)),c.R7$(1),c.SpI(" ",x.status,"")}}function S(rt,Rt){if(1&rt){const x=c.RV6();c.j41(0,"ul",10,11),c.bIt("ngbCollapseChange",function(C){c.eBV(x);const U=c.XpG();return c.Njj(U.isCollapsed=C)}),c.DNE(2,g,4,4,"li",12),c.k0s()}if(2&rt){const x=c.XpG();c.xc7("width","DSS"===x.selectedOption?260:190,"px"),c.Y8G("ngbCollapse",x.isCollapsed),c.R7$(2),c.Y8G("ngForOf","DSS"===x.selectedOption?x.statusDss:x.statusTitikLaporan)}}function b(rt,Rt){if(1&rt){const x=c.RV6();c.j41(0,"div",16)(1,"button",17),c.EFF(2),c.k0s(),c.j41(3,"div",18)(4,"button",19),c.bIt("click",function(){c.eBV(x);const C=c.XpG();return c.Njj(C.onOptionChange("DSS"))}),c.EFF(5," DSS "),c.k0s(),c.j41(6,"button",19),c.bIt("click",function(){c.eBV(x);const C=c.XpG();return c.Njj(C.onOptionChange("Titik Laporan"))}),c.EFF(7," Titik Laporan "),c.k0s()()()}if(2&rt){const x=c.XpG();c.R7$(2),c.SpI(" ",x.selectedOption," ")}}let et=(()=>{class rt{constructor(x,B,C,U,q,Q,ft){this.helpers=x,this.loading=B,this.api=C,this.modal=U,this.reportSegmens=q,this.subDistrict=Q,this.perbaikan=ft,this.isExpand=!0,this.polylineData=a.layerGroup(),this.showOption=!0,this.showStatus=!0,this.allowDragging=!0,this.cnterLatLng={lat:-7.869576,lng:112.5309706},this.scheduleLayer=new a.FeatureGroup,this.polylineLayer=new a.FeatureGroup,this.polygonLayer=new a.FeatureGroup,this.pointLayer=new a.FeatureGroup,this.selectedData=[],this.selectedOption="DSS",this.zoom=14,this.lat=-7.8699381,this.lng=112.5285772,this.dayjs=m,this.mapOptions={layers:[(0,a.tileLayer)("http://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga",{maxZoom:22,minZoom:11})],scrollWheelZoom:!1,zoom:this.zoom,dragging:this.allowDragging,doubleClickZoom:!1,touchZoom:!1,tap:!1,center:(0,a.latLng)(this.lat,this.lng)},this.isCollapsed=!1,this.statusDss=[],this.statusTitikLaporan=[],this.embedReportSegments={embed:"segmen,analytic_data"},this.embedReportSegmentsPerbaikan={embed:"user.user,user.segmens.segmen,user.status_report"},this.embedReportSchedule={embed:"user.user,user.segmens.segmen,user.status_report"},this.embedReportList={embed:"segmens.segmen,segmens.analytic_data,segmens.photos,status_report,user"}}initMap(x){this.map||(this.map=x),this.map.zoomControl.setPosition("bottomright")}ngAfterViewInit(){window.dispatchEvent(new Event("resize"))}ngOnChanges(x){x.allowDragging&&(this.mapOptions.dragging=this.allowDragging)}ngOnInit(){null==this.polylineData.segmen&&null==this.perbaikanSegmen?(this.getSubDistrict(),this.getReportSegmens()):null!=this.perbaikanSegmen?this.getReportSegmensBySchedule():this.getReportSegmentById(),this.condition()}toggleCollapse(){this.isCollapsed||this.getStatusDss(),this.isCollapsed=!this.isCollapsed}toggleFullscreen(){const x=document.getElementById("map");x&&(document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():x.requestFullscreen&&x.requestFullscreen())}onOptionChange(x){this.selectedOption=x,this.map&&(this.map.removeLayer(this.pointLayer),this.map.removeLayer(this.polygonLayer),this.map.removeLayer(this.polylineLayer)),this.selectedData=[],"DSS"===x?this.map&&this.map.closePopup():"Titik Laporan"===x&&(this.getStatusTitik(),this.getStatusSegmenByReport()),this.map&&("DSS"===x?(this.polygonLayer.addTo(this.map),this.polylineLayer.addTo(this.map)):"point"===x&&this.pointLayer.addTo(this.map))}createCustomIcon(x,B,C){return new a.DivIcon({className:"custom-icon",html:`<img src="${x}" width="${B}" height="${C}">`,iconSize:[B,C],iconAnchor:[B/2,C]})}addMarkers(x){const C={iconUrl:this.getIconByStatus(x),iconSize:[32,32]};return a.icon(C)}getIconByStatus(x){switch(x){case"PROG":return"assets/images/icon/marker-dalam_proses.png";case"FOLUP":return"assets/images/icon/marker-tindak_lanjut.png";case"DONE":return"assets/images/icon/marker-selesai.png";case"RPR":return"assets/images/icon/marker-perbaikan.png";case"FIXED":return"assets/images/icon/marker-selesai-perbaikan.png";default:return"assets/images/icon/marker-default.png"}}getColorByStatusTitikLaporan(x){return{"Dalam Proses":"#586AF5","Tindak Lanjut":"#FFAB00","Selesai Perbaikan":"#663000",Perbaikan:"#F35625",Selesai:"#24D07A"}[x]||"transparent"}getStatusDss(){const x={"Berlubang Parah":"#215A99","Berlubang Sedang":"#2B79CC","Berlubang Ringan":"#87C0FF","Terkelupas Parah":"#18795F","Terkelupas Sedang":"#1CA762","Terkelupas Ringan":"#4FDA95","Retak Parah":"#992A44","Retak Sedang":"#FF4671","Retak Ringan":"#FF90AA","Bergelombang Parah":"#322564","Bergelombang Sedang":"#644BC8","Bergelombang Ringan":"#977EFB","PermukaanKasar Berat":"#CCCC00","PermukaanKasar Sedang":"#FFFF00","PermukaanKasar Ringan":"#FFFF66"},B=Object.values(x);this.statusDss=Object.keys(x).map((C,U)=>({status:C,jumlah:0,color:B[U]}))}getStatusTitik(){const x={"Dalam Proses":"#586AF5","Tindak Lanjut":"#FFAB00","Selesai Perbaikan":"#663000",Perbaikan:"#F35625",Selesai:"#24D07A"},B=Object.values(x);this.statusTitikLaporan=Object.keys(x).map((C,U)=>({status:C,jumlah:0,color:B[U]}))}getColorByStatusDss(x,B){const U={"- -":"#EC8F5E","Berlubang Parah":"#215A99","Berlubang Sedang":"#2B79CC","Berlubang Ringan":"#87C0FF","Terkelupas Parah":"#18795F","Terkelupas Sedang":"#1CA762","Terkelupas Ringan":"#4FDA95","Retak Parah":"#992A44","Retak Sedang":"#FF4671","Retak Ringan":"#FF90AA","Bergelombang Parah":"#322564","Bergelombang Sedang":"#644BC8","Bergelombang Ringan":"#977EFB","PermukaanKasar Berat":"#CCCC00","PermukaanKasar Sedang":"#FFFF00","PermukaanKasar Ringan":"#FFFF66"};return U[`${x} ${B}`]||U[x]}condition(){return 0===this.polylineLayer.getLayers().length}sortCustomDss(){this.statusTitikLaporan.sort((x,B)=>{const C=["Dalam Proses","Ditindak Lanjuti","Perbaikan","Selesai"];return C.indexOf(x.status)-C.indexOf(B.status)})}sortByCustomOrder(){this.statusDss.sort((x,B)=>{const C=["Berlubang Parah","Berlubang Sedang","Berlubang Ringan","Terkelupas Parah","Terkelupas Sedang","Terkelupas Ringan","Retak Parah","Retak Sedang","Retak Ringan","Bergelombang Parah","Bergelombang Sedang","Bergelombang Ringan","NULL"];return C.indexOf(x.status)-C.indexOf(B.status)})}getReportSegmensBySchedule(){this.mapOptions.zoom=18,this.mapOptions.dragging=!1,this.perbaikan.getById(this.perbaikanSegmen).subscribe(x=>{const B=x.data.report.segmens;for(const C of B){const q=JSON.parse(C.segmen.geojson).coordinates,Q=q[0];this.lat=Q[1],this.lng=Q[0];const ft=q.map(yt=>({lat:yt[1],lng:yt[0]})),z=new a.Polyline(ft,{color:"#586AF5",weight:8});z.on("mouseover",function(){}),this.scheduleLayer.addLayer(z)}this.map&&(this.map?.panTo((0,a.latLng)(this.lat,this.lng)),this.scheduleLayer.addTo(this.map))})}getReportSegmentById(){this.loading.isLoading(),this.mapOptions.zoom=19,this.mapOptions.dragging=!1,this.reportSegmens.getById(this.polylineData.id).subscribe({next:({})=>{const B=JSON.parse(this.polylineData.segmen.geojson).coordinates,C=B[0];this.lat=C[1],this.lng=C[0];const U=B.map(Y=>({lat:Y[1],lng:Y[0]})),q=this.polylineData.user_level,Q=this.polylineData.user_type,ft=new a.Polyline(U,{color:this.getColorByStatusDss(Q,q),weight:8});console.log(Q,q),this.map&&(this.polylineLayer.addTo(this.map),this.map.setZoom(this.mapOptions.zoom)),this.map?.panTo((0,a.latLng)(this.lat,this.lng)),this.polylineLayer.addLayer(ft)},error:()=>{}})}getReportSegmens(){this.loading.isLoading(),this.reportSegmens.getAll(this.embedReportSegments).subscribe(x=>{const B=x.data;if(B&&B.length>0){this.polylineLayer.clearLayers();for(const C of B){const Q=JSON.parse(C.segmen.geojson).coordinates.map(z=>({lat:z[1],lng:z[0]})),$=new a.Polyline(Q,{color:this.getColorByStatusDss(C.user_type,C.user_level),weight:5});this.polylineLayer.addLayer($)}this.map&&this.polylineLayer.addTo(this.map)}},x=>{})}getStatusSegmenByReport(){this.api.getAll(this.embedReportList).subscribe(x=>{const B=x.data;if(B&&B[0]?.segmens&&B[0]?.segmens.length>0){this.pointLayer.clearLayers();for(const C of B){const U=C.segmens;for(const q of U){const Y=JSON.parse(q?.segmen?.geojson).coordinates.map(yt=>({lat:yt[1],lng:yt[0]})),$=q.user_type+" "+q.user_level,z=C.status_id;if("RJT"!==z){const yt=a.icon({iconUrl:this.getIconByStatus(z),iconSize:[32,32],iconAnchor:[16,32]}),Z=a.marker(Y[0],{icon:yt}).addTo(this.pointLayer);this.pointLayer.setStyle({className:"mask"}),Z.addTo(this.pointLayer),Z.on("click",X=>{for(const ht of q.photos)this.map&&a.popup({className:"custom-popup"}).setLatLng(X.latlng).setContent(`\n <div>\n <div>\n <div class="d-flex justify-content-between align-items-center text-wrap" style:"display: flex">\n <p class="text-uppercase fs-6 fw-bold mb-2"\n style="font-size: 14px; color: ${"PROG"===C.status_report.id?"#586AF5":"RPR"===C.status_report.id?"#F35625":"FIXED"===C.status_report.id?"#663000":"FOLUP"===C.status_report.id?"#FFAB00":"DONE"===C.status_report.id?"#24D07A":"black"};">\n ${C.status_report.name}\n </p>\n <p class="fs-6 mb-2" style="text-align: right;">\n No.Tiket ${C.no_ticket}\n </p>\n </div>\n\n <div class="d-flex mb-2 align-items-center">\n <img \n class="location-image" \n src="${ht.abs_path}"\n style="width: 94px; height: 94px; border-radius: 8px;">\n <div class="ms-3">\n <div class="d-flex mb-1">\n <i class="bi bi-person me-2" style="color: #586af5"></i>\n Nama ${C.user.fullname}\n </div>\n <div class="d-flex mb-1">\n <i class="bi bi-geo-alt me-2" style="color: #586af5"></i>\n ${q.segmen.name}\n </div>\n <div class="d-flex mb-1">\n <i class="bi bi-calendar2 me-2" style="color: #586af5"></i>\n ${m(C.created_at).format("DD-MM-YYYY")}\n </div>\n </div>\n </div>\n\n <div class="d-flex mb-2">\n <Label class="d-flex align-self-center me-3">Keterangan :</Label>\n <small class="btn btn-custom" \n style="color: white; background-color: ${"Berlubang Parah"===$?"#215A99":"Berlubang Sedang"===$?"#2B79CC":"Berlubang Ringan"===$?"#87C0FF":"Terkelupas Parah"===$?"#18795F":"Terkelupas Sedang"===$?"#1CA762":"Terkelupas Ringan"===$?"#4FDA95":"Retak Parah"===$?"#992A44":"Retak Sedang"===$?"#FF4671":"Retak Ringan"===$?"#FF90AA":"Bergelombang Parah"===$?"#322564":"Bergelombang Sedang"===$?"#644BC8":"Bergelombang Ringan"===$?"#977EFB":"black"};"\n >\n ${"-"===q.user_type&&"-"===q.user_level?"Belum Diketahui":`${q.user_type}${q.user_level}`}\n </small>\n </div>\n\n <p \n class="description text-justify mb-0"\n style="font-size: 14px; letter-spacing: 0.15px; text-align: justify">\n ${C.note}\n </p>\n </div>\n </div>\n `).openOn(this.map)})}this.getColorByStatusTitikLaporan(C.status_report.name)}}this.getStatusTitik(),this.map&&this.pointLayer.addTo(this.map)}})}getSubDistrict(){this.subDistrict.getAll().subscribe(x=>{const B=x.data;if(B&&B.length>0){this.polygonLayer.clearLayers();for(const C of B){const U=JSON.parse(C.geojson),q=a.geoJSON(U,{style:{fillColor:"green",weight:2,color:"white"}});q.on("click",Q=>{const ft=Q.target,Y=C.name,$=a.popup().setContent(Y);ft.bindPopup($).openPopup()}),q.addTo(this.polygonLayer)}this.map&&this.polygonLayer.addTo(this.map)}},x=>{})}static{this.\u0275fac=function(B){return new(B||rt)(c.rXU(y.V),c.rXU(T.U),c.rXU(P.Z),c.rXU(o.Bq),c.rXU(W.B),c.rXU(O._),c.rXU(k.c))}}static{this.\u0275cmp=c.VBU({type:rt,selectors:[["app-map"]],inputs:{polylineData:"polylineData",perbaikanSegmen:"perbaikanSegmen",showOption:"showOption",showStatus:"showStatus",allowDragging:"allowDragging",cnterLatLng:"cnterLatLng"},standalone:!0,features:[c.OA$,c.aNF],decls:12,vars:4,consts:[["id","map",1,"w-100","position-relative","rounded-3","overflow-hidden","bg-secondary-subtle",2,"height","470px"],["id","status",1,"position-absolute","z-1","ms-3","mt-3"],["type","button","aria-controls","collapseExample",1,"btn","btn-light","fw-light","mb-2",3,"click"],[1,"bi","bi-info-circle","me-1","text-primary"],["class","list-unstyled d-flex flex-column row-gap-1 rounded-2 bg-white bg-opacity-75 p-3 mb-0","style","overflow: auto; max-height: 400px",3,"ngbCollapse","width","ngbCollapseChange",4,"ngIf"],["id","optionData",1,"position-absolute","z-1","me-3","mt-3","d-flex",2,"right","0"],["ngbDropdown","","class","d-inline-block",4,"ngIf"],[1,"btn","btn-light",3,"click"],[3,"ngClass"],["leaflet","",1,"tes","position-relative","z-0","w-100","h-100",3,"leafletOptions","leafletMapReady"],[1,"list-unstyled","d-flex","flex-column","row-gap-1","rounded-2","bg-white","bg-opacity-75","p-3","mb-0",2,"overflow","auto","max-height","400px",3,"ngbCollapse","ngbCollapseChange"],["collapse","ngbCollapse"],["class","d-flex align-items-center",4,"ngFor","ngForOf"],[1,"d-flex","align-items-center"],[1,"p-1","rounded-circle","bg-status","me-2"],[1,"status-text",3,"ngClass"],["ngbDropdown","",1,"d-inline-block"],["type","button","id","dropdownBasic1","ngbDropdownToggle","",1,"btn","btn-primary","me-2"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],["ngbDropdownItem","",1,"py-2","px-2",3,"click"]],template:function(B,C){1&B&&(c.j41(0,"div",0)(1,"div")(2,"div",1)(3,"button",2),c.bIt("click",function(){return C.toggleCollapse()}),c.nrm(4,"i",3),c.EFF(5," Info Garis "),c.k0s(),c.DNE(6,S,3,4,"ul",4),c.k0s()(),c.j41(7,"div",5),c.DNE(8,b,8,1,"div",6),c.j41(9,"button",7),c.bIt("click",function(){return C.isExpand=!C.isExpand})("click",function(){return C.toggleFullscreen()}),c.nrm(10,"i",8),c.k0s()(),c.j41(11,"div",9),c.bIt("leafletMapReady",function(q){return C.initMap(q)}),c.k0s()()),2&B&&(c.R7$(6),c.Y8G("ngIf",C.isCollapsed),c.R7$(2),c.Y8G("ngIf",C.showOption),c.R7$(2),c.Y8G("ngClass",C.isExpand?"bi bi-arrows-angle-expand":"bi bi-arrows-angle-contract"),c.R7$(1),c.Y8G("leafletOptions",C.mapOptions))},dependencies:[A.MD,A.YU,A.Sq,A.bT,I.gI,I.V1,o.zH,o.tg,o.do,o.U0,o._H,o.oi,o.HC,o.$G,o.UN],styles:['.btn-custom[_ngcontent-%COMP%]{background-color:""}.leaflet-container.crosshair-cursor-enabled[_ngcontent-%COMP%]{cursor:default} .leaflet-interactive{cursor:default!important}.leaflet-marker-icon[_ngcontent-%COMP%] .leaflet-zoom-animated[_ngcontent-%COMP%] .leaflet-interactive[_ngcontent-%COMP%], .custom-popup[_ngcontent-%COMP%]{cursor:pointer!important}']})}}return rt})()},6484:function(At,dt){!function(v){"use strict";var A=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(o){L.Util.setOptions(this,o),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var a=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,a?this._withAnimation:this._noAnimation),this._markerCluster=a?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(o){if(o instanceof L.LayerGroup)return this.addLayers([o]);if(!o.getLatLng)return this._nonPointGroup.addLayer(o),this.fire("layeradd",{layer:o}),this;if(!this._map)return this._needsClustering.push(o),this.fire("layeradd",{layer:o}),this;if(this.hasLayer(o))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(o,this._maxZoom),this.fire("layeradd",{layer:o}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var a=o,h=this._zoom;if(o.__parent)for(;a.__parent._zoom>=h;)a=a.__parent;return this._currentShownBounds.contains(a.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(o,a):this._animationAddLayerNonAnimated(o,a)),this},removeLayer:function(o){return o instanceof L.LayerGroup?this.removeLayers([o]):o.getLatLng?this._map?o.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(o)),this._removeLayer(o,!0),this.fire("layerremove",{layer:o}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),o.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(o)&&(this._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,o)&&this.hasLayer(o)&&this._needsRemoving.push({layer:o,latlng:o._latlng}),this.fire("layerremove",{layer:o}),this):(this._nonPointGroup.removeLayer(o),this.fire("layerremove",{layer:o}),this)},addLayers:function(o,a){if(!L.Util.isArray(o))return this.addLayer(o);var P,h=this._featureGroup,l=this._nonPointGroup,_=this.options.chunkedLoading,m=this.options.chunkInterval,d=this.options.chunkProgress,c=o.length,y=0,T=!0;if(this._map){var W=(new Date).getTime(),O=L.bind(function(){var g=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();y<c&&!(_&&y%200==0&&(new Date).getTime()-g>m);y++)if((P=o[y])instanceof L.LayerGroup)T&&(o=o.slice(),T=!1),this._extractNonGroupLayers(P,o),c=o.length;else if(P.getLatLng){if(!this.hasLayer(P)&&(this._addLayer(P,this._maxZoom),a||this.fire("layeradd",{layer:P}),P.__parent&&2===P.__parent.getChildCount())){var b=P.__parent.getAllChildMarkers();h.removeLayer(b[0]===P?b[1]:b[0])}}else l.addLayer(P),a||this.fire("layeradd",{layer:P});d&&d(y,c,(new Date).getTime()-W),y===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(O,this.options.chunkDelay)},this);O()}else for(var k=this._needsClustering;y<c;y++)(P=o[y])instanceof L.LayerGroup?(T&&(o=o.slice(),T=!1),this._extractNonGroupLayers(P,o),c=o.length):P.getLatLng?this.hasLayer(P)||k.push(P):l.addLayer(P);return this},removeLayers:function(o){var a,h,l=o.length,_=this._featureGroup,m=this._nonPointGroup,d=!0;if(!this._map){for(a=0;a<l;a++)(h=o[a])instanceof L.LayerGroup?(d&&(o=o.slice(),d=!1),this._extractNonGroupLayers(h,o),l=o.length):(this._arraySplice(this._needsClustering,h),m.removeLayer(h),this.hasLayer(h)&&this._needsRemoving.push({layer:h,latlng:h._latlng}),this.fire("layerremove",{layer:h}));return this}if(this._unspiderfy){this._unspiderfy();var c=o.slice(),y=l;for(a=0;a<y;a++)(h=c[a])instanceof L.LayerGroup?(this._extractNonGroupLayers(h,c),y=c.length):this._unspiderfyLayer(h)}for(a=0;a<l;a++)(h=o[a])instanceof L.LayerGroup?(d&&(o=o.slice(),d=!1),this._extractNonGroupLayers(h,o),l=o.length):h.__parent?(this._removeLayer(h,!0,!0),this.fire("layerremove",{layer:h}),_.hasLayer(h)&&(_.removeLayer(h),h.clusterShow&&h.clusterShow())):(m.removeLayer(h),this.fire("layerremove",{layer:h}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(o){o.off(this._childMarkerEventHandlers,this),delete o.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var o=new L.LatLngBounds;this._topClusterLevel&&o.extend(this._topClusterLevel._bounds);for(var a=this._needsClustering.length-1;a>=0;a--)o.extend(this._needsClustering[a].getLatLng());return o.extend(this._nonPointGroup.getBounds()),o},eachLayer:function(o,a){var _,m,d,h=this._needsClustering.slice(),l=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(h),m=h.length-1;m>=0;m--){for(_=!0,d=l.length-1;d>=0;d--)if(l[d].layer===h[m]){_=!1;break}_&&o.call(a,h[m])}this._nonPointGroup.eachLayer(o,a)},getLayers:function(){var o=[];return this.eachLayer(function(a){o.push(a)}),o},getLayer:function(o){var a=null;return o=parseInt(o,10),this.eachLayer(function(h){L.stamp(h)===o&&(a=h)}),a},hasLayer:function(o){if(!o)return!1;var a,h=this._needsClustering;for(a=h.length-1;a>=0;a--)if(h[a]===o)return!0;for(a=(h=this._needsRemoving).length-1;a>=0;a--)if(h[a].layer===o)return!1;return!(!o.__parent||o.__parent._group!==this)||this._nonPointGroup.hasLayer(o)},zoomToShowLayer:function(o,a){var h=this._map;"function"!=typeof a&&(a=function(){});var l=function(){(h.hasLayer(o)||h.hasLayer(o.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",l,this),this.off("animationend",l,this),h.hasLayer(o)?a():o.__parent._icon&&(this.once("spiderfied",a,this),o.__parent.spiderfy()))};o._icon&&this._map.getBounds().contains(o.getLatLng())?a():o.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",l,this),this._map.panTo(o.getLatLng())):(this._map.on("moveend",l,this),this.on("animationend",l,this),o.__parent.zoomToBounds())},onAdd:function(o){var a,h,l;if(this._map=o,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(o),this._nonPointGroup.addTo(o),this._gridClusters||this._generateInitialClusters(),this._maxLat=o.options.crs.projection.MAX_LATITUDE,a=0,h=this._needsRemoving.length;a<h;a++)(l=this._needsRemoving[a]).newlatlng=l.layer._latlng,l.layer._latlng=l.latlng;for(a=0,h=this._needsRemoving.length;a<h;a++)this._removeLayer((l=this._needsRemoving[a]).layer,!0),l.layer._latlng=l.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),h=this._needsClustering,this._needsClustering=[],this.addLayers(h,!0)},onRemove:function(o){o.off("zoomend",this._zoomEnd,this),o.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(o){for(var a=o;a&&!a._icon;)a=a.__parent;return a||null},_arraySplice:function(o,a){for(var h=o.length-1;h>=0;h--)if(o[h]===a)return o.splice(h,1),!0},_removeFromGridUnclustered:function(o,a){for(var h=this._map,l=this._gridUnclustered,_=Math.floor(this._map.getMinZoom());a>=_&&l[a].removeObject(o,h.project(o.getLatLng(),a));a--);},_childMarkerDragStart:function(o){o.target.__dragStart=o.target._latlng},_childMarkerMoved:function(o){if(!this._ignoreMove&&!o.target.__dragStart){var a=o.target._popup&&o.target._popup.isOpen();this._moveChild(o.target,o.oldLatLng,o.latlng),a&&o.target.openPopup()}},_moveChild:function(o,a,h){o._latlng=a,this.removeLayer(o),o._latlng=h,this.addLayer(o)},_childMarkerDragEnd:function(o){var a=o.target.__dragStart;delete o.target.__dragStart,a&&this._moveChild(o.target,a,o.target._latlng)},_removeLayer:function(o,a,h){var l=this._gridClusters,_=this._gridUnclustered,m=this._featureGroup,d=this._map,c=Math.floor(this._map.getMinZoom());a&&this._removeFromGridUnclustered(o,this._maxZoom);var P,y=o.__parent;for(this._arraySplice(y._markers,o);y&&(y._childCount--,y._boundsNeedUpdate=!0,!(y._zoom<c));)a&&y._childCount<=1?(P=y._markers[0]===o?y._markers[1]:y._markers[0],l[y._zoom].removeObject(y,d.project(y._cLatLng,y._zoom)),_[y._zoom].addObject(P,d.project(P.getLatLng(),y._zoom)),this._arraySplice(y.__parent._childClusters,y),y.__parent._markers.push(P),P.__parent=y.__parent,y._icon&&(m.removeLayer(y),h||m.addLayer(P))):y._iconNeedsUpdate=!0,y=y.__parent;delete o.__parent},_isOrIsParent:function(o,a){for(;a;){if(o===a)return!0;a=a.parentNode}return!1},fire:function(o,a,h){if(a&&a.layer instanceof L.MarkerCluster){if(a.originalEvent&&this._isOrIsParent(a.layer._icon,a.originalEvent.relatedTarget))return;o="cluster"+o}L.FeatureGroup.prototype.fire.call(this,o,a,h)},listens:function(o,a){return L.FeatureGroup.prototype.listens.call(this,o,a)||L.FeatureGroup.prototype.listens.call(this,"cluster"+o,a)},_defaultIconCreateFunction:function(o){var a=o.getChildCount(),h=" marker-cluster-";return new L.DivIcon({html:"<div><span>"+a+"</span></div>",className:"marker-cluster"+(h+=a<10?"small":a<100?"medium":"large"),iconSize:new L.Point(40,40)})},_bindEvents:function(){var o=this._map,h=this.options.showCoverageOnHover;(this.options.spiderfyOnMaxZoom||this.options.zoomToBoundsOnClick||this.options.spiderfyOnEveryZoom)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),h&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),o.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(o){var a=o.layer,h=a;if("clusterkeypress"!==o.type||!o.originalEvent||13===o.originalEvent.keyCode){for(;1===h._childClusters.length;)h=h._childClusters[0];h._zoom===this._maxZoom&&h._childCount===a._childCount&&this.options.spiderfyOnMaxZoom?a.spiderfy():this.options.zoomToBoundsOnClick&&a.zoomToBounds(),this.options.spiderfyOnEveryZoom&&a.spiderfy(),o.originalEvent&&13===o.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(o){var a=this._map;this._inZoomAnimation||(this._shownPolygon&&a.removeLayer(this._shownPolygon),o.layer.getChildCount()>2&&o.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(o.layer.getConvexHull(),this.options.polygonOptions),a.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var a=this.options.showCoverageOnHover,_=this._map;(this.options.spiderfyOnMaxZoom||this.options.zoomToBoundsOnClick||this.options.spiderfyOnEveryZoom)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),_.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var o=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,o),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),o),this._currentShownBounds=o}},_generateInitialClusters:function(){var o=Math.ceil(this._map.getMaxZoom()),a=Math.floor(this._map.getMinZoom()),h=this.options.maxClusterRadius,l=h;"function"!=typeof h&&(l=function(){return h}),null!==this.options.disableClusteringAtZoom&&(o=this.options.disableClusteringAtZoom-1),this._maxZoom=o,this._gridClusters={},this._gridUnclustered={};for(var _=o;_>=a;_--)this._gridClusters[_]=new L.DistanceGrid(l(_)),this._gridUnclustered[_]=new L.DistanceGrid(l(_));this._topClusterLevel=new this._markerCluster(this,a-1)},_addLayer:function(o,a){var m,d,h=this._gridClusters,l=this._gridUnclustered,_=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(o),o.on(this._childMarkerEventHandlers,this);a>=_;a--){m=this._map.project(o.getLatLng(),a);var c=h[a].getNearObject(m);if(c)return c._addChild(o),void(o.__parent=c);if(c=l[a].getNearObject(m)){var y=c.__parent;y&&this._removeLayer(c,!1);var T=new this._markerCluster(this,a,c,o);h[a].addObject(T,this._map.project(T._cLatLng,a)),c.__parent=T,o.__parent=T;var P=T;for(d=a-1;d>y._zoom;d--)P=new this._markerCluster(this,d,P),h[d].addObject(P,this._map.project(c.getLatLng(),d));return y._addChild(P),void this._removeFromGridUnclustered(c,a)}l[a].addObject(o,m)}this._topClusterLevel._addChild(o),o.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(o){o instanceof L.MarkerCluster&&o._iconNeedsUpdate&&o._updateIcon()})},_enqueue:function(o){this._queue.push(o),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var o=0;o<this._queue.length;o++)this._queue[o].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var o=Math.round(this._map._zoom);this._processQueue(),this._zoom<o&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,o)):this._zoom>o?(this._animationStart(),this._animationZoomOut(this._zoom,o)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(o){var a=this._maxLat;return void 0!==a&&(o.getNorth()>=a&&(o._northEast.lat=1/0),o.getSouth()<=-a&&(o._southWest.lat=-1/0)),o},_animationAddLayerNonAnimated:function(o,a){if(a===o)this._featureGroup.addLayer(o);else if(2===a._childCount){a._addToMap();var h=a.getAllChildMarkers();this._featureGroup.removeLayer(h[0]),this._featureGroup.removeLayer(h[1])}else a._updateIcon()},_extractNonGroupLayers:function(o,a){var _,h=o.getLayers(),l=0;for(a=a||[];l<h.length;l++)(_=h[l])instanceof L.LayerGroup?this._extractNonGroupLayers(_,a):a.push(_);return a},_overrideMarkerIcon:function(o){return o.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[o]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(o,a){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(o,a){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(o,a){this._animationAddLayerNonAnimated(o,a)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(o,a){var m,h=this._getExpandedVisibleBounds(),l=this._featureGroup,_=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(h,o,_,function(d){var T,c=d._latlng,y=d._markers;for(h.contains(c)||(c=null),d._isSingleParent()&&o+1===a?(l.removeLayer(d),d._recursivelyAddChildrenToMap(null,a,h)):(d.clusterHide(),d._recursivelyAddChildrenToMap(c,a,h)),m=y.length-1;m>=0;m--)h.contains((T=y[m])._latlng)||l.removeLayer(T)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(h,a),l.eachLayer(function(d){!(d instanceof L.MarkerCluster)&&d._icon&&d.clusterShow()}),this._topClusterLevel._recursively(h,o,a,function(d){d._recursivelyRestoreChildPositions(a)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(h,o,_,function(d){l.removeLayer(d),d.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(o,a){this._animationZoomOutSingle(this._topClusterLevel,o-1,a),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o,this._getExpandedVisibleBounds())},_animationAddLayer:function(o,a){var h=this,l=this._featureGroup;l.addLayer(o),a!==o&&(a._childCount>2?(a._updateIcon(),this._forceLayout(),this._animationStart(),o._setPos(this._map.latLngToLayerPoint(a.getLatLng())),o.clusterHide(),this._enqueue(function(){l.removeLayer(o),o.clusterShow(),h._animationEnd()})):(this._forceLayout(),h._animationStart(),h._animationZoomOutSingle(a,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(o,a,h){var l=this._getExpandedVisibleBounds(),_=Math.floor(this._map.getMinZoom());o._recursivelyAnimateChildrenInAndAddSelfToMap(l,_,a+1,h);var m=this;this._forceLayout(),o._recursivelyBecomeVisible(l,h),this._enqueue(function(){if(1===o._childCount){var d=o._markers[0];this._ignoreMove=!0,d.setLatLng(d.getLatLng()),this._ignoreMove=!1,d.clusterShow&&d.clusterShow()}else o._recursively(l,h,_,function(c){c._recursivelyRemoveChildrenFromMap(l,_,a+1)});m._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(o){return new L.MarkerClusterGroup(o)};var I=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(o,a,h,l){L.Marker.prototype.initialize.call(this,h?h._cLatLng||h.getLatLng():new L.LatLng(0,0),{icon:this,pane:o.options.clusterPane}),this._group=o,this._zoom=a,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,h&&this._addChild(h),l&&this._addChild(l)},getAllChildMarkers:function(o,a){o=o||[];for(var h=this._childClusters.length-1;h>=0;h--)this._childClusters[h].getAllChildMarkers(o,a);for(var l=this._markers.length-1;l>=0;l--)a&&this._markers[l].__dragStart||o.push(this._markers[l]);return o},getChildCount:function(){return this._childCount},zoomToBounds:function(o){for(var d,a=this._childClusters.slice(),h=this._group._map,l=h.getBoundsZoom(this._bounds),_=this._zoom+1,m=h.getZoom();a.length>0&&l>_;){_++;var c=[];for(d=0;d<a.length;d++)c=c.concat(a[d]._childClusters);a=c}l>_?this._group._map.setView(this._latlng,_):l<=m?this._group._map.setView(this._latlng,m+1):this._group._map.fitBounds(this._bounds,o)},getBounds:function(){var o=new L.LatLngBounds;return o.extend(this._bounds),o},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(o,a){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(o),o instanceof L.MarkerCluster?(a||(this._childClusters.push(o),o.__parent=this),this._childCount+=o._childCount):(a||this._markers.push(o),this._childCount++),this.__parent&&this.__parent._addChild(o,!0)},_setClusterCenter:function(o){this._cLatLng||(this._cLatLng=o._cLatLng||o._latlng)},_resetBounds:function(){var o=this._bounds;o._southWest&&(o._southWest.lat=1/0,o._southWest.lng=1/0),o._northEast&&(o._northEast.lat=-1/0,o._northEast.lng=-1/0)},_recalculateBounds:function(){var m,d,c,y,o=this._markers,a=this._childClusters,h=0,l=0,_=this._childCount;if(0!==_){for(this._resetBounds(),m=0;m<o.length;m++)this._bounds.extend(c=o[m]._latlng),h+=c.lat,l+=c.lng;for(m=0;m<a.length;m++)(d=a[m])._boundsNeedUpdate&&d._recalculateBounds(),this._bounds.extend(d._bounds),h+=(c=d._wLatLng).lat*(y=d._childCount),l+=c.lng*y;this._latlng=this._wLatLng=new L.LatLng(h/_,l/_),this._boundsNeedUpdate=!1}},_addToMap:function(o){o&&(this._backupLatlng=this._latlng,this.setLatLng(o)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(o,a,h){this._recursively(o,this._group._map.getMinZoom(),h-1,function(l){var m,d,_=l._markers;for(m=_.length-1;m>=0;m--)(d=_[m])._icon&&(d._setPos(a),d.clusterHide())},function(l){var m,d,_=l._childClusters;for(m=_.length-1;m>=0;m--)(d=_[m])._icon&&(d._setPos(a),d.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(o,a,h,l){this._recursively(o,l,a,function(_){_._recursivelyAnimateChildrenIn(o,_._group._map.latLngToLayerPoint(_.getLatLng()).round(),h),_._isSingleParent()&&h-1===l?(_.clusterShow(),_._recursivelyRemoveChildrenFromMap(o,a,h)):_.clusterHide(),_._addToMap()})},_recursivelyBecomeVisible:function(o,a){this._recursively(o,this._group._map.getMinZoom(),a,null,function(h){h.clusterShow()})},_recursivelyAddChildrenToMap:function(o,a,h){this._recursively(h,this._group._map.getMinZoom()-1,a,function(l){if(a!==l._zoom)for(var _=l._markers.length-1;_>=0;_--){var m=l._markers[_];h.contains(m._latlng)&&(o&&(m._backupLatlng=m.getLatLng(),m.setLatLng(o),m.clusterHide&&m.clusterHide()),l._group._featureGroup.addLayer(m))}},function(l){l._addToMap(o)})},_recursivelyRestoreChildPositions:function(o){for(var a=this._markers.length-1;a>=0;a--){var h=this._markers[a];h._backupLatlng&&(h.setLatLng(h._backupLatlng),delete h._backupLatlng)}if(o-1===this._zoom)for(var l=this._childClusters.length-1;l>=0;l--)this._childClusters[l]._restorePosition();else for(var _=this._childClusters.length-1;_>=0;_--)this._childClusters[_]._recursivelyRestoreChildPositions(o)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(o,a,h,l){var _,m;this._recursively(o,a-1,h-1,function(d){for(m=d._markers.length-1;m>=0;m--)_=d._markers[m],(!l||!l.contains(_._latlng))&&(d._group._featureGroup.removeLayer(_),_.clusterShow&&_.clusterShow())},function(d){for(m=d._childClusters.length-1;m>=0;m--)_=d._childClusters[m],(!l||!l.contains(_._latlng))&&(d._group._featureGroup.removeLayer(_),_.clusterShow&&_.clusterShow())})},_recursively:function(o,a,h,l,_){var c,y,m=this._childClusters,d=this._zoom;if(a<=d&&(l&&l(this),_&&d===h&&_(this)),d<a||d<h)for(c=m.length-1;c>=0;c--)(y=m[c])._boundsNeedUpdate&&y._recalculateBounds(),o.intersects(y._bounds)&&y._recursively(o,a,h,l,_)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var o=this.options.opacity;return this.setOpacity(0),this.options.opacity=o,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(o){this._cellSize=o,this._sqCellSize=o*o,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(o,a){var h=this._getCoord(a.x),l=this._getCoord(a.y),_=this._grid,m=_[l]=_[l]||{},d=m[h]=m[h]||[],c=L.Util.stamp(o);this._objectPoint[c]=a,d.push(o)},updateObject:function(o,a){this.removeObject(o),this.addObject(o,a)},removeObject:function(o,a){var c,y,h=this._getCoord(a.x),l=this._getCoord(a.y),_=this._grid,m=_[l]=_[l]||{},d=m[h]=m[h]||[];for(delete this._objectPoint[L.Util.stamp(o)],c=0,y=d.length;c<y;c++)if(d[c]===o)return d.splice(c,1),1===y&&delete m[h],!0},eachObject:function(o,a){var h,l,_,m,d,c,T=this._grid;for(h in T)for(l in d=T[h])for(_=0,m=(c=d[l]).length;_<m;_++)o.call(a,c[_])&&(_--,m--)},getNearObject:function(o){var l,_,m,d,c,y,T,P,a=this._getCoord(o.x),h=this._getCoord(o.y),W=this._objectPoint,O=this._sqCellSize,k=null;for(l=h-1;l<=h+1;l++)if(d=this._grid[l])for(_=a-1;_<=a+1;_++)if(c=d[_])for(m=0,y=c.length;m<y;m++)T=c[m],((P=this._sqDist(W[L.Util.stamp(T)],o))<O||P<=O&&null===k)&&(O=P,k=T);return k},_getCoord:function(o){var a=Math.floor(o/this._cellSize);return isFinite(a)?a:o},_sqDist:function(o,a){var h=a.x-o.x,l=a.y-o.y;return h*h+l*l}},L.QuickHull={getDistant:function(o,a){return(a[0].lng-a[1].lng)*(o.lat-a[0].lat)+(a[1].lat-a[0].lat)*(o.lng-a[0].lng)},findMostDistantPointFromBaseLine:function(o,a){var m,d,c,h=0,l=null,_=[];for(m=a.length-1;m>=0;m--)(c=this.getDistant(d=a[m],o))>0&&(_.push(d),c>h&&(h=c,l=d));return{maxPoint:l,newPoints:_}},buildConvexHull:function(o,a){var h=[],l=this.findMostDistantPointFromBaseLine(o,a);return l.maxPoint?h=(h=h.concat(this.buildConvexHull([o[0],l.maxPoint],l.newPoints))).concat(this.buildConvexHull([l.maxPoint,o[1]],l.newPoints)):[o[0]]},getConvexHull:function(o){var W,a=!1,h=!1,l=!1,_=!1,m=null,d=null,c=null,y=null,T=null,P=null;for(W=o.length-1;W>=0;W--){var O=o[W];(!1===a||O.lat>a)&&(m=O,a=O.lat),(!1===h||O.lat<h)&&(d=O,h=O.lat),(!1===l||O.lng>l)&&(c=O,l=O.lng),(!1===_||O.lng<_)&&(y=O,_=O.lng)}return h!==a?(P=d,T=m):(P=y,T=c),[].concat(this.buildConvexHull([P,T],o),this.buildConvexHull([T,P],o))}},L.MarkerCluster.include({getConvexHull:function(){var h,l,o=this.getAllChildMarkers(),a=[];for(l=o.length-1;l>=0;l--)h=o[l].getLatLng(),a.push(h);return L.QuickHull.getConvexHull(a)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var _,o=this.getAllChildMarkers(null,!0),l=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?_=this._group.options.spiderfyShapePositions(o.length,l):o.length>=this._circleSpiralSwitchover?_=this._generatePointsSpiral(o.length,l):(l.y+=10,_=this._generatePointsCircle(o.length,l)),this._animationSpiderfy(o,_)}},unspiderfy:function(o){this._group._inZoomAnimation||(this._animationUnspiderfy(o),this._group._spiderfied=null)},_generatePointsCircle:function(o,a){var d,c,l=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+o)/this._2PI,_=this._2PI/o,m=[];for(l=Math.max(l,35),m.length=o,d=0;d<o;d++)c=this._circleStartAngle+d*_,m[d]=new L.Point(a.x+l*Math.cos(c),a.y+l*Math.sin(c))._round();return m},_generatePointsSpiral:function(o,a){var y,h=this._group.options.spiderfyDistanceMultiplier,l=h*this._spiralLengthStart,_=h*this._spiralFootSeparation,m=h*this._spiralLengthFactor*this._2PI,d=0,c=[];for(c.length=o,y=o;y>=0;y--)y<o&&(c[y]=new L.Point(a.x+l*Math.cos(d),a.y+l*Math.sin(d))._round()),l+=m/(d+=_/l+5e-4*y);return c},_noanimationUnspiderfy:function(){var _,m,o=this._group,a=o._map,h=o._featureGroup,l=this.getAllChildMarkers(null,!0);for(o._ignoreMove=!0,this.setOpacity(1),m=l.length-1;m>=0;m--)h.removeLayer(_=l[m]),_._preSpiderfyLatlng&&(_.setLatLng(_._preSpiderfyLatlng),delete _._preSpiderfyLatlng),_.setZIndexOffset&&_.setZIndexOffset(0),_._spiderLeg&&(a.removeLayer(_._spiderLeg),delete _._spiderLeg);o.fire("unspiderfied",{cluster:this,markers:l}),o._ignoreMove=!1,o._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(o,a){var d,c,y,T,h=this._group,l=h._map,_=h._featureGroup,m=this._group.options.spiderLegPolylineOptions;for(h._ignoreMove=!0,d=0;d<o.length;d++)T=l.layerPointToLatLng(a[d]),c=o[d],y=new L.Polyline([this._latlng,T],m),l.addLayer(y),c._spiderLeg=y,c._preSpiderfyLatlng=c._latlng,c.setLatLng(T),c.setZIndexOffset&&c.setZIndexOffset(1e6),_.addLayer(c);this.setOpacity(.3),h._ignoreMove=!1,h.fire("spiderfied",{cluster:this,markers:o})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(o,a){var W,O,k,g,S,b,h=this,l=this._group,_=l._map,m=l._featureGroup,d=this._latlng,c=_.latLngToLayerPoint(d),y=L.Path.SVG,T=L.extend({},this._group.options.spiderLegPolylineOptions),P=T.opacity;for(void 0===P&&(P=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),y?(T.opacity=0,T.className=(T.className||"")+" leaflet-cluster-spider-leg"):T.opacity=P,l._ignoreMove=!0,W=0;W<o.length;W++)O=o[W],b=_.layerPointToLatLng(a[W]),k=new L.Polyline([d,b],T),_.addLayer(k),O._spiderLeg=k,y&&(S=(g=k._path).getTotalLength()+.1,g.style.strokeDasharray=S,g.style.strokeDashoffset=S),O.setZIndexOffset&&O.setZIndexOffset(1e6),O.clusterHide&&O.clusterHide(),m.addLayer(O),O._setPos&&O._setPos(c);for(l._forceLayout(),l._animationStart(),W=o.length-1;W>=0;W--)b=_.layerPointToLatLng(a[W]),(O=o[W])._preSpiderfyLatlng=O._latlng,O.setLatLng(b),O.clusterShow&&O.clusterShow(),y&&((g=(k=O._spiderLeg)._path).style.strokeDashoffset=0,k.setStyle({opacity:P}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout(function(){l._animationEnd(),l.fire("spiderfied",{cluster:h,markers:o})},200)},_animationUnspiderfy:function(o){var y,T,P,W,O,k,a=this,h=this._group,l=h._map,_=h._featureGroup,m=o?l._latLngToNewLayerPoint(this._latlng,o.zoom,o.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),c=L.Path.SVG;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),T=d.length-1;T>=0;T--)(y=d[T])._preSpiderfyLatlng&&(y.closePopup(),y.setLatLng(y._preSpiderfyLatlng),delete y._preSpiderfyLatlng,k=!0,y._setPos&&(y._setPos(m),k=!1),y.clusterHide&&(y.clusterHide(),k=!1),k&&_.removeLayer(y),c&&(O=(W=(P=y._spiderLeg)._path).getTotalLength()+.1,W.style.strokeDashoffset=O,P.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout(function(){var g=0;for(T=d.length-1;T>=0;T--)(y=d[T])._spiderLeg&&g++;for(T=d.length-1;T>=0;T--)(y=d[T])._spiderLeg&&(y.clusterShow&&y.clusterShow(),y.setZIndexOffset&&y.setZIndexOffset(0),g>1&&_.removeLayer(y),l.removeLayer(y._spiderLeg),delete y._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:a,markers:d})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(o){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(o))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(o){this._spiderfied&&this._spiderfied.unspiderfy(o)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(o){o._spiderLeg&&(this._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow(),o.setZIndexOffset&&o.setZIndexOffset(0),this._map.removeLayer(o._spiderLeg),delete o._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(o){return o?o instanceof L.MarkerClusterGroup?o=o._topClusterLevel.getAllChildMarkers():o instanceof L.LayerGroup?o=o._layers:o instanceof L.MarkerCluster?o=o.getAllChildMarkers():o instanceof L.Marker&&(o=[o]):o=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(o),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(o),this},_flagParentsIconsNeedUpdate:function(o){var a,h;for(a in o)for(h=o[a].__parent;h;)h._iconNeedsUpdate=!0,h=h.__parent},_refreshSingleMarkerModeMarkers:function(o){var a,h;for(a in o)this.hasLayer(h=o[a])&&h.setIcon(this._overrideMarkerIcon(h))}}),L.Marker.include({refreshIconOptions:function(o,a){var h=this.options.icon;return L.setOptions(h,o),this.setIcon(h),a&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),v.MarkerClusterGroup=A,v.MarkerCluster=I,Object.defineProperty(v,"__esModule",{value:!0})}(dt)},8244:function(At,dt){!function(v){"use strict";function I(t){var e,i,n,s;for(i=1,n=arguments.length;i<n;i++)for(e in s=arguments[i])t[e]=s[e];return t}var o=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function a(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var h=0;function l(t){return"_leaflet_id"in t||(t._leaflet_id=++h),t._leaflet_id}function _(t,e,i){var n,s,r,u;return u=function(){n=!1,s&&(r.apply(i,s),s=!1)},r=function(){n?s=arguments:(t.apply(i,arguments),setTimeout(u,e),n=!0)},r}function m(t,e,i){var n=e[1],s=e[0],r=n-s;return t===n&&i?t:((t-s)%r+r)%r+s}function d(){return!1}function c(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function T(t){return y(t).split(/\s+/)}function P(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?o(t.options):{}),e)t.options[i]=e[i];return t.options}function W(t,e,i){var n=[];for(var s in t)n.push(encodeURIComponent(i?s.toUpperCase():s)+"="+encodeURIComponent(t[s]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var O=/\{ *([\w_ -]+) *\}/g;function k(t,e){return t.replace(O,function(i,n){var s=e[n];if(void 0===s)throw new Error("No value provided for variable "+i);return"function"==typeof s&&(s=s(e)),s})}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function S(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function et(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var rt=0;function Rt(t){var e=+new Date,i=Math.max(0,16-(e-rt));return rt=e+i,window.setTimeout(t,i)}var x=window.requestAnimationFrame||et("RequestAnimationFrame")||Rt,B=window.cancelAnimationFrame||et("CancelAnimationFrame")||et("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,i){if(!i||x!==Rt)return x.call(window,a(t,e));t.call(e)}function U(t){t&&B.call(window,t)}var q={__proto__:null,extend:I,create:o,bind:a,get lastId(){return h},stamp:l,throttle:_,wrapNum:m,falseFn:d,formatNum:c,trim:y,splitWords:T,setOptions:P,getParamString:W,template:k,isArray:g,indexOf:S,emptyImageUrl:b,requestFn:x,cancelFn:B,requestAnimFrame:C,cancelAnimFrame:U};function Q(){}Q.extend=function(t){var e=function(){P(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,n=o(i);for(var s in n.constructor=e,e.prototype=n,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&I(e,t.statics),t.includes&&(function ft(t){if(!(typeof L>"u")&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),I.apply(null,[n].concat(t.includes))),I(n,t),delete n.statics,delete n.includes,n.options&&(n.options=i.options?o(i.options):{},I(n.options,t.options)),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var r=0,u=n._initHooks.length;r<u;r++)n._initHooks[r].call(this)}},e},Q.include=function(t){var e=this.prototype.options;return I(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Q.mergeOptions=function(t){return I(this.prototype.options,t),this},Q.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var Y={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var s=0,r=(t=T(t)).length;s<r;s++)this._on(t[s],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=T(t);for(var s=1===arguments.length,r=0,u=t.length;r<u;r++)s?this._off(t[r]):this._off(t[r],e,i)}else delete this._events;return this},_on:function(t,e,i,n){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var s={fn:e,ctx:i};n&&(s.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(s)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var n,s,r;if(this._events&&(n=this._events[t])){if(1===arguments.length){if(this._firingCount)for(s=0,r=n.length;s<r;s++)n[s].fn=d;return void delete this._events[t]}if("function"!=typeof e)return void console.warn("wrong listener type: "+typeof e);var u=this._listens(t,e,i);!1!==u&&(this._firingCount&&(n[u].fn=d,this._events[t]=n=n.slice()),n.splice(u,1))}},fire:function(t,e,i){if(!this.listens(t,i))return this;var n=I({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,u=s.length;r<u;r++){var f=s[r],p=f.fn;f.once&&this.off(t,p,f.ctx),p.call(f.ctx||this,n)}this._firingCount--}}return i&&this._propagateEvent(n),this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var s=e;"function"!=typeof e&&(n=!!e,s=void 0,i=void 0);var r=this._events&&this._events[t];if(r&&r.length&&!1!==this._listens(t,s,i))return!0;if(n)for(var u in this._eventParents)if(this._eventParents[u].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var s=0,r=n.length;s<r;s++)if(n[s].fn===e&&n[s].ctx===i)return s;return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var s=0,r=(t=T(t)).length;s<r;s++)this._on(t[s],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[l(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[l(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,I({layer:t.target,propagatedFrom:t.target},t),!0)}};Y.addEventListener=Y.on,Y.removeEventListener=Y.clearAllEventListeners=Y.off,Y.addOneTimeEventListener=Y.once,Y.fireEvent=Y.fire,Y.hasEventListeners=Y.listens;var $=Q.extend(Y);function z(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var yt=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function Z(t,e,i){return t instanceof z?t:g(t)?new z(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new z(t.x,t.y):new z(t,e,i)}function X(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function ht(t,e){return!t||t instanceof X?t:new X(t,e)}function ut(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function it(t,e){return t instanceof ut?t:new ut(t,e)}function j(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function G(t,e,i){return t instanceof j?t:g(t)&&"object"!=typeof t[0]?3===t.length?new j(t[0],t[1],t[2]):2===t.length?new j(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new j(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new j(t,e,i)}z.prototype={clone:function(){return new z(this.x,this.y)},add:function(t){return this.clone()._add(Z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(Z(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new z(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=yt(this.x),this.y=yt(this.y),this},distanceTo:function(t){var e=(t=Z(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=Z(t)).x===this.x&&t.y===this.y},contains:function(t){return t=Z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},X.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof z||"number"==typeof t[0]||"x"in t)e=i=Z(t);else if(i=(t=ht(t)).max,!(e=t.min)||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return Z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return Z(this.min.x,this.max.y)},getTopRight:function(){return Z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof z?Z(t):ht(t))instanceof X?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=ht(t);var e=this.min,i=this.max,n=t.min,s=t.max;return s.x>=e.x&&n.x<=i.x&&s.y>=e.y&&n.y<=i.y},overlaps:function(t){t=ht(t);var e=this.min,i=this.max,n=t.min,s=t.max;return s.x>e.x&&n.x<i.x&&s.y>e.y&&n.y<i.y},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,s=Math.abs(e.y-i.y)*t;return ht(Z(e.x-n,e.y-s),Z(i.x+n,i.y+s))},equals:function(t){return!!t&&(t=ht(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},ut.prototype={extend:function(t){var n,s,e=this._southWest,i=this._northEast;if(t instanceof j)n=t,s=t;else{if(!(t instanceof ut))return t?this.extend(G(t)||it(t)):this;if(s=t._northEast,!(n=t._southWest)||!s)return this}return e||i?(e.lat=Math.min(n.lat,e.lat),e.lng=Math.min(n.lng,e.lng),i.lat=Math.max(s.lat,i.lat),i.lng=Math.max(s.lng,i.lng)):(this._southWest=new j(n.lat,n.lng),this._northEast=new j(s.lat,s.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new ut(new j(e.lat-n,e.lng-s),new j(i.lat+n,i.lng+s))},getCenter:function(){return new j((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof j||"lat"in t?G(t):it(t);var n,s,e=this._southWest,i=this._northEast;return t instanceof ut?(n=t.getSouthWest(),s=t.getNorthEast()):n=s=t,n.lat>=e.lat&&s.lat<=i.lat&&n.lng>=e.lng&&s.lng<=i.lng},intersects:function(t){t=it(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast();return s.lat>=e.lat&&n.lat<=i.lat&&s.lng>=e.lng&&n.lng<=i.lng},overlaps:function(t){t=it(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast();return s.lat>e.lat&&n.lat<i.lat&&s.lng>e.lng&&n.lng<i.lng},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=it(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},j.prototype={equals:function(t,e){return!!t&&(t=G(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return Ot.distance(this,G(t))},wrap:function(){return Ot.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return it([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new j(this.lat,this.lng,this.alt)}};var t,xt={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new X(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?m(t.lng,this.wrapLng,!0):t.lng;return new j(this.wrapLat?m(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,s=e.lng-i.lng;if(0===n&&0===s)return t;var r=t.getSouthWest(),u=t.getNorthEast();return new ut(new j(r.lat-n,r.lng-s),new j(u.lat-n,u.lng-s))}},Ot=I({},xt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,s=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),u=Math.sin((e.lng-t.lng)*i/2),f=r*r+Math.cos(n)*Math.cos(s)*u*u,p=2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f));return this.R*p}}),Te={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=Math.sin(n*e);return new z(this.R*t.lng*e,this.R*Math.log((1+s)/(1-s))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(t=6378137*Math.PI,new X([-t,-t],[t,t]))};function ke(t,e,i,n){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function qt(t,e,i,n){return new ke(t,e,i,n)}ke.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return t.x=(e=e||1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return new z((t.x/(e=e||1)-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Oe=I({},Ot,{code:"EPSG:3857",projection:Te,transformation:function(){var t=.5/(Math.PI*Te.R);return qt(t,.5,-t,.5)}()}),vn=I({},Oe,{code:"EPSG:900913"});function hi(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function li(t,e){var n,s,r,u,f,p,i="";for(n=0,r=t.length;n<r;n++){for(s=0,u=(f=t[n]).length;s<u;s++)i+=(s?"L":"M")+(p=f[s]).x+" "+p.y;i+=e?E.svg?"z":"x":""}return i||"M0 0"}var Se=document.documentElement.style,he="ActiveXObject"in window,yn=he&&!document.addEventListener,ui="msLaunchUri"in navigator&&!("documentMode"in document),Ee=Lt("webkit"),ci=Lt("android"),di=Lt("android 2")||Lt("android 3"),Ln=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),wn=ci&&Lt("Google")&&Ln<537&&!("AudioNode"in window),Be=!!window.opera,fi=!ui&&Lt("chrome"),_i=Lt("gecko")&&!Ee&&!Be&&!he,Pn=!fi&&Lt("safari"),pi=Lt("phantom"),mi="OTransition"in Se,Cn=0===navigator.platform.indexOf("Win"),gi=he&&"transition"in Se,ze="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!di,vi="MozPerspective"in Se,xn=!window.L_DISABLE_3D&&(gi||ze||vi)&&!mi&&!pi,Xt=typeof orientation<"u"||Lt("mobile"),bn=Xt&&Ee,Mn=Xt&&ze,yi=!window.PointerEvent&&window.MSPointerEvent,Li=!(!window.PointerEvent&&!yi),wi="ontouchstart"in window||!!window.TouchEvent,Tn=!window.L_NO_TOUCH&&(wi||Li),kn=Xt&&Be,On=Xt&&_i,Sn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,En=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",d,e),window.removeEventListener("testPassiveEventSupport",d,e)}catch{}return t}(),Bn=!!document.createElement("canvas").getContext,De=!(!document.createElementNS||!hi("svg").createSVGRect),zn=!!De&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)}(),Dn=!De&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch{return!1}}();function Lt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var E={ie:he,ielt9:yn,edge:ui,webkit:Ee,android:ci,android23:di,androidStock:wn,opera:Be,chrome:fi,gecko:_i,safari:Pn,phantom:pi,opera12:mi,win:Cn,ie3d:gi,webkit3d:ze,gecko3d:vi,any3d:xn,mobile:Xt,mobileWebkit:bn,mobileWebkit3d:Mn,msPointer:yi,pointer:Li,touch:Tn,touchNative:wi,mobileOpera:kn,mobileGecko:On,retina:Sn,passiveEvents:En,canvas:Bn,svg:De,vml:Dn,inlineSvg:zn,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Pi=E.msPointer?"MSPointerDown":"pointerdown",Ci=E.msPointer?"MSPointerMove":"pointermove",xi=E.msPointer?"MSPointerUp":"pointerup",bi=E.msPointer?"MSPointerCancel":"pointercancel",Ie={touchstart:Pi,touchmove:Ci,touchend:xi,touchcancel:bi},Mi={touchstart:function Gn(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&at(e),le(t,e)},touchmove:le,touchend:le,touchcancel:le},Nt={},Ti=!1;function An(t,e,i){return"touchstart"===e&&function Un(){Ti||(document.addEventListener(Pi,Nn,!0),document.addEventListener(Ci,Fn,!0),document.addEventListener(xi,ki,!0),document.addEventListener(bi,ki,!0),Ti=!0)}(),Mi[e]?(i=Mi[e].bind(this,i),t.addEventListener(Ie[e],i,!1),i):(console.warn("wrong event specified:",e),d)}function Nn(t){Nt[t.pointerId]=t}function Fn(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function ki(t){delete Nt[t.pointerId]}function le(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Nt)e.touches.push(Nt[i]);e.changedTouches=[e],t(e)}}var Wn=200;var Jt,Qt,Ne,fe,Ge,Ze=de(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Yt=de(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Oi="webkitTransition"===Yt||"OTransition"===Yt?Yt+"End":"transitionend";function Si(t){return"string"==typeof t?document.getElementById(t):t}function $t(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function V(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function J(t){var e=t.parentNode;e&&e.removeChild(t)}function ue(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Ft(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Ut(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Ae(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=ce(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function N(t,e){if(void 0!==t.classList)for(var i=T(e),n=0,s=i.length;n<s;n++)t.classList.add(i[n]);else if(!Ae(t,e)){var r=ce(t);Re(t,(r?r+" ":"")+e)}}function tt(t,e){void 0!==t.classList?t.classList.remove(e):Re(t,y((" "+ce(t)+" ").replace(" "+e+" "," ")))}function Re(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ce(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function _t(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function Kn(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch{if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}(t,e)}function de(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Bt(t,e,i){var n=e||new z(0,0);t.style[Ze]=(E.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function nt(t,e){t._leaflet_pos=e,E.any3d?Bt(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function zt(t){return t._leaflet_pos||new z(0,0)}if("onselectstart"in document)Jt=function(){R(window,"selectstart",at)},Qt=function(){K(window,"selectstart",at)};else{var te=de(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Jt=function(){if(te){var t=document.documentElement.style;Ne=t[te],t[te]="none"}},Qt=function(){te&&(document.documentElement.style[te]=Ne,Ne=void 0)}}function Fe(){R(window,"dragstart",at)}function Ue(){K(window,"dragstart",at)}function He(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(_e(),fe=t,Ge=t.style.outlineStyle,t.style.outlineStyle="none",R(window,"keydown",_e))}function _e(){fe&&(fe.style.outlineStyle=Ge,fe=void 0,Ge=void 0,K(window,"keydown",_e))}function Ei(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function We(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var qn={__proto__:null,TRANSFORM:Ze,TRANSITION:Yt,TRANSITION_END:Oi,get:Si,getStyle:$t,create:V,remove:J,empty:ue,toFront:Ft,toBack:Ut,hasClass:Ae,addClass:N,removeClass:tt,setClass:Re,getClass:ce,setOpacity:_t,testProp:de,setTransform:Bt,setPosition:nt,getPosition:zt,get disableTextSelection(){return Jt},get enableTextSelection(){return Qt},disableImageDrag:Fe,enableImageDrag:Ue,preventOutline:He,restoreOutline:_e,getSizedParentNode:Ei,getScale:We};function R(t,e,i,n){if(e&&"object"==typeof e)for(var s in e)je(t,s,e[s],i);else for(var r=0,u=(e=T(e)).length;r<u;r++)je(t,e[r],i,n);return this}var wt="_leaflet_events";function K(t,e,i,n){if(1===arguments.length)Bi(t),delete t[wt];else if(e&&"object"==typeof e)for(var s in e)Ke(t,s,e[s],i);else if(e=T(e),2===arguments.length)Bi(t,function(f){return-1!==S(e,f)});else for(var r=0,u=e.length;r<u;r++)Ke(t,e[r],i,n);return this}function Bi(t,e){for(var i in t[wt]){var n=i.split(/\d/)[0];(!e||e(n))&&Ke(t,n,null,null,i)}}var Ve={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function je(t,e,i,n){var s=e+l(i)+(n?"_"+l(n):"");if(t[wt]&&t[wt][s])return this;var r=function(f){return i.call(n||t,f||window.event)},u=r;!E.touchNative&&E.pointer&&0===e.indexOf("touch")?r=An(t,e,r):E.touch&&"dblclick"===e?r=function Vn(t,e){t.addEventListener("dblclick",e);var n,i=0;function s(r){if(1===r.detail){if("mouse"!==r.pointerType&&(!r.sourceCapabilities||r.sourceCapabilities.firesTouchEvents)){var u=zi(r);if(!u.some(function(p){return p instanceof HTMLLabelElement&&p.attributes.for})||u.some(function(p){return p instanceof HTMLInputElement||p instanceof HTMLSelectElement})){var f=Date.now();f-i<=Wn?2==++n&&e(function Hn(t){var i,n,e={};for(n in t)e[n]=(i=t[n])&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}(r)):n=1,i=f}}}else n=r.detail}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}(t,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Ve[e]||e,r,!!E.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?t.addEventListener(Ve[e],r=function(f){f=f||window.event,Xe(t,f)&&u(f)},!1):t.addEventListener(e,u,!1):t.attachEvent("on"+e,r),t[wt]=t[wt]||{},t[wt][s]=r}function Ke(t,e,i,n,s){s=s||e+l(i)+(n?"_"+l(n):"");var r=t[wt]&&t[wt][s];if(!r)return this;!E.touchNative&&E.pointer&&0===e.indexOf("touch")?function Rn(t,e,i){Ie[e]?t.removeEventListener(Ie[e],i,!1):console.warn("wrong event specified:",e)}(t,e,r):E.touch&&"dblclick"===e?function jn(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,r):"removeEventListener"in t?t.removeEventListener(Ve[e]||e,r,!1):t.detachEvent("on"+e,r),t[wt][s]=null}function Dt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function qe(t){return je(t,"wheel",Dt),this}function ee(t){return R(t,"mousedown touchstart dblclick contextmenu",Dt),t._leaflet_disable_click=!0,this}function at(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function It(t){return at(t),Dt(t),this}function zi(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Di(t,e){if(!e)return new z(t.clientX,t.clientY);var i=We(e),n=i.boundingClientRect;return new z((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Xn=E.linux&&E.chrome?window.devicePixelRatio:E.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ii(t){return E.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Xn:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Xe(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var Yn={__proto__:null,on:R,off:K,stopPropagation:Dt,disableScrollPropagation:qe,disableClickPropagation:ee,preventDefault:at,stop:It,getPropagationPath:zi,getMousePosition:Di,getWheelDelta:Ii,isExternalTarget:Xe,addListener:R,removeListener:K},Zi=$.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=zt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),nt(this._el,i),this.fire("step")},_complete:function(){U(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),H=$.extend({options:{crs:Oe,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=P(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(G(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Yt&&E.any3d&&!E.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),R(this._proxy,Oi,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(G(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=I({animate:i.animate},i.zoom),i.pan=I({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,i.pan&&i.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t=t||(E.any3d?this.options.zoomDelta:1)),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t=t||(E.any3d?this.options.zoomDelta:1)),e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),u=(t instanceof z?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/n),f=this.containerPointToLatLng(s.add(u));return this.setView(f,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():it(t);var i=Z(e.paddingTopLeft||e.padding||[0,0]),n=Z(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n));if((s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0)return{center:t.getCenter(),zoom:s};var r=n.subtract(i).divideBy(2),u=this.project(t.getSouthWest(),s),f=this.project(t.getNorthEast(),s);return{center:this.unproject(u.add(f).divideBy(2).add(r),s),zoom:s}},fitBounds:function(t,e){if(!(t=it(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=Z(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Zi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){N(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!E.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),s=this.project(t),r=this.getSize(),u=this._zoom;t=G(t),e=void 0===e?u:e;var f=Math.max(r.x,r.y),p=f*this.getZoomScale(u,e),w=s.distanceTo(n)||1,M=1.42,D=M*M;function F(st){var ri=(p*p-f*f+(st?-1:1)*D*D*w*w)/(2*(st?p:f)*D*w),gn=Math.sqrt(ri*ri+1)-ri;return gn<1e-9?-18:Math.log(gn)}function lt(st){return(Math.exp(st)-Math.exp(-st))/2}function ot(st){return(Math.exp(st)+Math.exp(-st))/2}var ct=F(0);function Ds(st){return f*(ot(ct)*function mt(st){return lt(st)/ot(st)}(ct+M*st)-lt(ct))/D}var Zs=Date.now(),pn=(F(1)-ct)/M,As=i.duration?1e3*i.duration:1e3*pn*.8;return this._moveStart(!0,i.noMoveStart),function mn(){var st=(Date.now()-Zs)/As,Me=function Is(st){return 1-Math.pow(1-st,1.5)}(st)*pn;st<=1?(this._flyToFrame=C(mn,this),this._move(this.unproject(n.add(s.subtract(n).multiplyBy(Ds(Me)/w)),u),this.getScaleZoom(f/function Kt(st){return f*(ot(ct)/ot(ct+M*st))}(Me),u),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=it(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,it(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=Z((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=Z(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),r=this.project(t),u=this.getPixelBounds(),f=ht([u.min.add(i),u.max.subtract(n)]),p=f.getSize();if(!f.contains(r)){this._enforcingBounds=!0;var w=r.subtract(f.getCenter()),M=f.extend(r).getSize().subtract(p);s.x+=w.x<0?-M.x:M.x,s.y+=w.y<0?-M.y:M.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=I({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),s=i.divideBy(2).round(),r=n.subtract(s);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=I({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=a(this._handleGeolocationResponse,this),i=a(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var n=new j(t.coords.latitude,t.coords.longitude),s=n.toBounds(2*t.coords.accuracy),r=this._locateOptions;if(r.setView){var u=this.getBoundsZoom(s);this.setView(n,r.maxZoom?Math.min(u,r.maxZoom):u)}var f={latlng:n,bounds:s,timestamp:t.timestamp};for(var p in t.coords)"number"==typeof t.coords[p]&&(f[p]=t.coords[p]);this.fire("locationfound",f)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),J(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(U(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)J(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=V("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new ut(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=it(t),i=Z(i||[0,0]);var n=this.getZoom()||0,s=this.getMinZoom(),r=this.getMaxZoom(),u=t.getNorthWest(),f=t.getSouthEast(),p=this.getSize().subtract(i),w=ht(this.project(f,n),this.project(u,n)).getSize(),M=E.any3d?this.options.zoomSnap:1,D=p.x/w.x,F=p.y/w.y,lt=e?Math.max(D,F):Math.min(D,F);return n=this.getScaleZoom(lt,n),M&&(n=Math.round(n/(M/100))*(M/100),n=e?Math.ceil(n/M)*M:Math.floor(n/M)*M),Math.max(s,Math.min(r,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new X(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs,n=i.zoom(t*i.scale(e=void 0===e?this._zoom:e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(G(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(Z(t),e)},layerPointToLatLng:function(t){var e=Z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(G(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(G(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(it(t))},distance:function(t,e){return this.options.crs.distance(G(t),G(e))},containerPointToLayerPoint:function(t){return Z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return Z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(Z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(G(t)))},mouseEventToContainerPoint:function(t){return Di(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Si(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");R(e,"scroll",this._onScroll,this),this._containerId=l(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&E.any3d,N(t,"leaflet-container"+(E.touch?" leaflet-touch":"")+(E.retina?" leaflet-retina":"")+(E.ielt9?" leaflet-oldie":"")+(E.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=$t(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),nt(this._mapPane,new z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(N(t.markerPane,"leaflet-zoom-hide"),N(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){nt(this._mapPane,new z(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var s=this._zoom!==e;this._moveStart(s,i)._move(t,e)._moveEnd(s),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((s||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return U(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){nt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[l(this._container)]=this;var e=t?K:R;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),E.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){U(this._resizeRequest),this._resizeRequest=C(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],s="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,u=!1;r;){if((n=this._targets[l(r)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){u=!0;break}if(n&&n.listens(e,!0)&&(s&&!Xe(r,t)||(i.push(n),s))||r===this._container)break;r=r.parentNode}return!i.length&&!u&&!s&&this.listens(e,!0)&&(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&He(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if("click"===t.type){var n=I({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}var s=this._findEventTargets(t,e);if(i){for(var r=[],u=0;u<i.length;u++)i[u].listens(e,!0)&&r.push(i[u]);s=r.concat(s)}if(s.length){"contextmenu"===e&&at(t);var f=s[0],p={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var w=f.getLatLng&&(!f._radius||f._radius<=10);p.containerPoint=w?this.latLngToContainerPoint(f.getLatLng()):this.mouseEventToContainerPoint(t),p.layerPoint=this.containerPointToLayerPoint(p.containerPoint),p.latlng=w?f.getLatLng():this.layerPointToLatLng(p.layerPoint)}for(u=0;u<s.length;u++)if(s[u].fire(e,p,!0),p.originalEvent._stopped||!1===s[u].options.bubblingMouseEvents&&-1!==S(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return zt(this._mapPane)||new z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return ht([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),s=this.getSize().divideBy(2),r=new X(n.subtract(s),n.add(s)),u=this._getBoundsOffset(r,i,e);return Math.abs(u.x)<=1&&Math.abs(u.y)<=1?t:this.unproject(n.add(u),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new X(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=ht(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),s=n.min.subtract(t.min),r=n.max.subtract(t.max);return new z(this._rebound(s.x,-r.x),this._rebound(s.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=E.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=V("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=Ze,n=this._proxy.style[i];Bt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){J(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Bt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),s=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(s)||(C(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,N(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var gt=Q.extend({options:{position:"topright"},initialize:function(t){P(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return N(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(J(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ie=function(t){return new gt(t)};H.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=V("div",e+"control-container",this._container);function n(s,r){t[s+r]=V("div",e+s+" "+e+r,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)J(this._controlCorners[t]);J(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ai=gt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in P(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return gt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(l(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){N(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(N(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):tt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return tt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=V("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),ee(e),qe(e);var n=this._section=V("section",t+"-list");i&&(this._map.on("click",this.collapse,this),R(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var s=this._layersLink=V("a",t+"-toggle",e);s.href="#",s.title="Layers",s.setAttribute("role","button"),R(s,{keydown:function(r){13===r.keyCode&&this._expandSafely()},click:function(r){at(r),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=V("div",t+"-base",n),this._separator=V("div",t+"-separator",n),this._overlaysList=V("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&l(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(a(function(n,s){return this.options.sortFunction(n.layer,s.layer,n.name,s.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ue(this._baseLayersList),ue(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,s=0;for(i=0;i<this._layers.length;i++)this._addItem(n=this._layers[i]),e=e||n.overlay,t=t||!n.overlay,s+=n.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&s>1)?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(l(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var n,e=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((n=document.createElement("input")).type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers_"+l(this),i),this._layerControlInputs.push(n),n.layerId=l(t.layer),R(n,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("span");return e.appendChild(r),r.appendChild(n),r.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var e,i,t=this._layerControlInputs,n=[],s=[];this._handlingClick=!0;for(var r=t.length-1;r>=0;r--)i=this._getLayer((e=t[r]).layerId).layer,e.checked?n.push(i):e.checked||s.push(i);for(r=0;r<s.length;r++)this._map.hasLayer(s[r])&&this._map.removeLayer(s[r]);for(r=0;r<n.length;r++)this._map.hasLayer(n[r])||this._map.addLayer(n[r]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,i,t=this._layerControlInputs,n=this._map.getZoom(),s=t.length-1;s>=0;s--)i=this._getLayer((e=t[s]).layerId).layer,e.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,R(t,"click",at),this.expand();var e=this;setTimeout(function(){K(t,"click",at),e._preventClick=!1})}}),Ye=gt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=V("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,s){var r=V("a",i,n);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),ee(r),R(r,"click",It),R(r,"click",s,this),R(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";tt(this._zoomInButton,e),tt(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(N(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(N(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});H.mergeOptions({zoomControl:!0}),H.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ye,this.addControl(this.zoomControl))});var Ri=gt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=V("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=V("div",e,i)),t.imperial&&(this._iScale=V("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial:function(t){var i,n,s,e=3.2808399*t;e>5280?(n=this._getRoundNum(i=e/5280),this._updateScale(this._iScale,n+" mi",n/i)):(s=this._getRoundNum(e),this._updateScale(this._iScale,s+" ft",s/e))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),$e=gt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(E.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){P(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=V("div","leaflet-control-attribution"),ee(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});H.mergeOptions({attributionControl:!0}),H.addInitHook(function(){this.options.attributionControl&&(new $e).addTo(this)});gt.Layers=Ai,gt.Zoom=Ye,gt.Scale=Ri,gt.Attribution=$e,ie.layers=function(t,e,i){return new Ai(t,e,i)},ie.zoom=function(t){return new Ye(t)},ie.scale=function(t){return new Ri(t)},ie.attribution=function(t){return new $e(t)};var Pt=Q.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Pt.addTo=function(t,e){return t.addHandler(e,this),this};var ns={Events:Y},Ni=E.touch?"touchstart mousedown":"mousedown",St=$.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){P(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(R(this._dragStartTarget,Ni,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(St._dragging===this&&this.finishDrag(!0),K(this._dragStartTarget,Ni,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Ae(this._element,"leaflet-zoom-anim"))){if(t.touches&&1!==t.touches.length)return void(St._dragging===this&&this.finishDrag());if(!(St._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(St._dragging=this,this._preventOutline&&He(this._element),Fe(),Jt(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ei(this._element);this._startPoint=new z(e.clientX,e.clientY),this._startPos=zt(this._element),this._parentScale=We(i);var n="mousedown"===t.type;R(document,n?"mousemove":"touchmove",this._onMove,this),R(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1)return void(this._moved=!0);var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new z(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,at(t),this._moved||(this.fire("dragstart"),this._moved=!0,N(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),N(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),nt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){tt(document.body,"leaflet-dragging"),this._lastTarget&&(tt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),K(document,"mousemove touchmove",this._onMove,this),K(document,"mouseup touchend touchcancel",this._onUp,this),Ue(),Qt();var e=this._moved&&this._moving;this._moving=!1,St._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Fi(t,e,i){var n,r,u,f,p,w,M,D,F,s=[1,4,2,8];for(r=0,M=t.length;r<M;r++)t[r]._code=Zt(t[r],e);for(f=0;f<4;f++){for(D=s[f],n=[],r=0,u=(M=t.length)-1;r<M;u=r++)w=t[u],(p=t[r])._code&D?w._code&D||((F=pe(w,p,D,e,i))._code=Zt(F,e),n.push(F)):(w._code&D&&((F=pe(w,p,D,e,i))._code=Zt(F,e),n.push(F)),n.push(p));t=n}return t}function Ui(t,e){var i,n,s,r,u,f,p,w;if(!t||0===t.length)throw new Error("latlngs not passed");pt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var D=G([0,0]),F=it(t);F.getNorthWest().distanceTo(F.getSouthWest())*F.getNorthEast().distanceTo(F.getNorthWest())<1700&&(D=Je(t));var ot=t.length,mt=[];for(i=0;i<ot;i++){var ct=G(t[i]);mt.push(e.project(G([ct.lat-D.lat,ct.lng-D.lng])))}for(f=p=w=0,i=0,n=ot-1;i<ot;n=i++)p+=((s=mt[i]).x+(r=mt[n]).x)*(u=s.y*r.x-r.y*s.x),w+=(s.y+r.y)*u,f+=3*u;var Kt=e.unproject(Z(0===f?mt[0]:[p/f,w/f]));return G([Kt.lat+D.lat,Kt.lng+D.lng])}function Je(t){for(var e=0,i=0,n=0,s=0;s<t.length;s++){var r=G(t[s]);e+=r.lat,i+=r.lng,n++}return G([e/n,i/n])}var Wi,ss={__proto__:null,clipPolygon:Fi,polygonCenter:Ui,centroid:Je};function Gi(t,e){if(!e||!t.length)return t.slice();var i=e*e;return function rs(t,e){var i=t.length,s=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);s[0]=s[i-1]=1,Qe(t,s,e,0,i-1);var r,u=[];for(r=0;r<i;r++)s[r]&&u.push(t[r]);return u}(t=function as(t,e){for(var i=[t[0]],n=1,s=0,r=t.length;n<r;n++)hs(t[n],t[s])>e&&(i.push(t[n]),s=n);return s<r-1&&i.push(t[r-1]),i}(t,i),i)}function Hi(t,e,i){return Math.sqrt(ne(t,e,i,!0))}function Qe(t,e,i,n,s){var u,f,p,r=0;for(f=n+1;f<=s-1;f++)(p=ne(t[f],t[n],t[s],!0))>r&&(u=f,r=p);r>i&&(e[u]=1,Qe(t,e,i,n,u),Qe(t,e,i,u,s))}function Vi(t,e,i,n,s){var f,p,w,r=n?Wi:Zt(t,i),u=Zt(e,i);for(Wi=u;;){if(!(r|u))return[t,e];if(r&u)return!1;w=Zt(p=pe(t,e,f=r||u,i,s),i),f===r?(t=p,r=w):(e=p,u=w)}}function pe(t,e,i,n,s){var w,M,r=e.x-t.x,u=e.y-t.y,f=n.min,p=n.max;return 8&i?(w=t.x+r*(p.y-t.y)/u,M=p.y):4&i?(w=t.x+r*(f.y-t.y)/u,M=f.y):2&i?(w=p.x,M=t.y+u*(p.x-t.x)/r):1&i&&(w=f.x,M=t.y+u*(f.x-t.x)/r),new z(w,M,s)}function Zt(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function hs(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function ne(t,e,i,n){var w,s=e.x,r=e.y,u=i.x-s,f=i.y-r,p=u*u+f*f;return p>0&&((w=((t.x-s)*u+(t.y-r)*f)/p)>1?(s=i.x,r=i.y):w>0&&(s+=u*w,r+=f*w)),u=t.x-s,f=t.y-r,n?u*u+f*f:new z(s,r)}function pt(t){return!g(t[0])||"object"!=typeof t[0][0]&&typeof t[0][0]<"u"}function ji(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),pt(t)}function Ki(t,e){var i,n,s,r,u,f,p,w;if(!t||0===t.length)throw new Error("latlngs not passed");pt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var M=G([0,0]),D=it(t);D.getNorthWest().distanceTo(D.getSouthWest())*D.getNorthEast().distanceTo(D.getNorthWest())<1700&&(M=Je(t));var lt=t.length,ot=[];for(i=0;i<lt;i++){var mt=G(t[i]);ot.push(e.project(G([mt.lat-M.lat,mt.lng-M.lng])))}for(i=0,n=0;i<lt-1;i++)n+=ot[i].distanceTo(ot[i+1])/2;if(0===n)w=ot[0];else for(i=0,r=0;i<lt-1;i++)if((r+=s=(u=ot[i]).distanceTo(f=ot[i+1]))>n){w=[f.x-(p=(r-n)/s)*(f.x-u.x),f.y-p*(f.y-u.y)];break}var ct=e.unproject(Z(w));return G([ct.lat+M.lat,ct.lng+M.lng])}var ls={__proto__:null,simplify:Gi,pointToSegmentDistance:Hi,closestPointOnSegment:function os(t,e,i){return ne(t,e,i)},clipSegment:Vi,_getEdgeIntersection:pe,_getBitCode:Zt,_sqClosestPointOnSegment:ne,isFlat:pt,_flat:ji,polylineCenter:Ki},ti={project:function(t){return new z(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new X([-180,-90],[180,90])},ei={R:6378137,R_MINOR:6356752.314245179,bounds:new X([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,s=this.R_MINOR/i,r=Math.sqrt(1-s*s),u=r*Math.sin(n),f=Math.tan(Math.PI/4-n/2)/Math.pow((1-u)/(1+u),r/2);return n=-i*Math.log(Math.max(f,1e-10)),new z(t.lng*e*i,n)},unproject:function(t){for(var w,e=180/Math.PI,i=this.R,n=this.R_MINOR/i,s=Math.sqrt(1-n*n),r=Math.exp(-t.y/i),u=Math.PI/2-2*Math.atan(r),f=0,p=.1;f<15&&Math.abs(p)>1e-7;f++)w=s*Math.sin(u),w=Math.pow((1-w)/(1+w),s/2),u+=p=Math.PI/2-2*Math.atan(r*w)-u;return new j(u*e,t.x*e/i)}},us={__proto__:null,LonLat:ti,Mercator:ei,SphericalMercator:Te},cs=I({},Ot,{code:"EPSG:3395",projection:ei,transformation:function(){var t=.5/(Math.PI*ei.R);return qt(t,.5,-t,.5)}()}),qi=I({},Ot,{code:"EPSG:4326",projection:ti,transformation:qt(1/180,1,-1/180,.5)}),ds=I({},xt,{projection:ti,transformation:qt(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});xt.Earth=Ot,xt.EPSG3395=cs,xt.EPSG3857=Oe,xt.EPSG900913=vn,xt.EPSG4326=qi,xt.Simple=ds;var vt=$.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[l(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[l(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});H.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=l(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=l(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return l(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[l(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=l(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var s=this._zoomBoundLayers[n].options;t=void 0===s.minZoom?t:Math.min(t,s.minZoom),e=void 0===s.maxZoom?e:Math.max(e,s.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Gt=vt.extend({initialize:function(t,e){var i,n;if(P(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,n,e=Array.prototype.slice.call(arguments,1);for(i in this._layers)(n=this._layers[i])[t]&&n[t].apply(n,e);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return l(t)}}),bt=Gt.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Gt.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Gt.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new ut;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Ht=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){P(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var s=Z(n),r=Z("shadow"===e&&i.shadowAnchor||i.iconAnchor||s&&s.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return E.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var se=Ht.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof se.imagePath&&(se.imagePath=this._detectIconPath()),(this.options.imagePath||se.imagePath)+Ht.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(i,n,s){var r=n.exec(i);return r&&r[s]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=V("div","leaflet-default-icon-path",document.body),e=$t(t,"background-image")||$t(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),Xi=Pt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new St(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),N(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&tt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,r=zt(e._icon),u=i.getPixelBounds(),f=i.getPixelOrigin(),p=ht(u.min._subtract(f).add(s),u.max._subtract(f).subtract(s));if(!p.contains(r)){var w=Z((Math.max(p.max.x,r.x)-p.max.x)/(u.max.x-p.max.x)-(Math.min(p.min.x,r.x)-p.min.x)/(u.min.x-p.min.x),(Math.max(p.max.y,r.y)-p.max.y)/(u.max.y-p.max.y)-(Math.min(p.min.y,r.y)-p.min.y)/(u.min.y-p.min.y)).multiplyBy(n);i.panBy(w,{animate:!1}),this._draggable._newPos._add(w),this._draggable._startPos._add(w),nt(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(U(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=zt(e._icon),s=e._map.layerPointToLatLng(n);i&&nt(i,n),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){U(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),me=vt.extend({options:{icon:new se,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){P(this,e),this._latlng=G(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=G(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),N(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&R(i,"focus",this._panOnFocus,this);var s=t.icon.createShadow(this._shadow),r=!1;s!==this._shadow&&(this._removeShadow(),r=!0),s&&(N(s,e),s.alt=""),this._shadow=s,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),s&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&K(this._icon,"focus",this._panOnFocus,this),J(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&J(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&nt(this._icon,t),this._shadow&&nt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(N(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Xi)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Xi(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&_t(this._icon,t),this._shadow&&_t(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?Z(e.iconSize):Z(0,0),n=e.iconAnchor?Z(e.iconAnchor):Z(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var Et=vt.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return P(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ge=Et.extend({options:{fill:!0,radius:10},initialize:function(t,e){P(this,e),this._latlng=G(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=G(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Et.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new X(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var ii=ge.extend({initialize:function(t,e,i){if("number"==typeof e&&(e=I({},i,{radius:e})),P(this,e),this._latlng=G(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new ut(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Et.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===Ot.distance){var s=Math.PI/180,r=this._mRadius/Ot.R/s,u=i.project([e+r,t]),f=i.project([e-r,t]),p=u.add(f).divideBy(2),w=i.unproject(p).lat,M=Math.acos((Math.cos(r*s)-Math.sin(e*s)*Math.sin(w*s))/(Math.cos(e*s)*Math.cos(w*s)))/s;(isNaN(M)||0===M)&&(M=r/Math.cos(Math.PI/180*e)),this._point=p.subtract(i.getPixelOrigin()),this._radius=isNaN(M)?0:p.x-i.project([w,t-M]).x,this._radiusY=p.y-u.y}else{var D=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(D).x}this._updateBounds()}});var Mt=Et.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){P(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var s,r,e=1/0,i=null,n=ne,u=0,f=this._parts.length;u<f;u++)for(var p=this._parts[u],w=1,M=p.length;w<M;w++){var D=n(t,s=p[w-1],r=p[w],!0);D<e&&(e=D,i=n(t,s,r))}return i&&(i.distance=Math.sqrt(e)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ki(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=G(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new ut,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return pt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=pt(t),n=0,s=t.length;n<s;n++)i?(e[n]=G(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new X;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new z(t,t);this._rawPxBounds&&(this._pxBounds=new X([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var r,u,s=t.length;if(t[0]instanceof j){for(u=[],r=0;r<s;r++)u[r]=this._map.latLngToLayerPoint(t[r]),i.extend(u[r]);e.push(u)}else for(r=0;r<s;r++)this._projectLatlngs(t[r],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);var i,n,s,r,u,f,p,e=this._parts;for(i=0,s=0,r=this._rings.length;i<r;i++)for(n=0,u=(p=this._rings[i]).length;n<u-1;n++)(f=Vi(p[n],p[n+1],t,n,!0))&&(e[s]=e[s]||[],e[s].push(f[0]),(f[1]!==p[n+1]||n===u-2)&&(e[s].push(f[1]),s++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Gi(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,s,r,u,f,p=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,r=this._parts.length;i<r;i++)for(n=0,s=(u=(f=this._parts[i]).length)-1;n<u;s=n++)if((e||0!==n)&&Hi(t,f[s],f[n])<=p)return!0;return!1}});Mt._flat=ji;var Wt=Mt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ui(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Mt.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof j&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Mt.prototype._setLatLngs.call(this,t),pt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new z(e,e);if(t=new X(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);for(var r,n=0,s=this._rings.length;n<s;n++)(r=Fi(this._rings[n],t,!0)).length&&this._parts.push(r)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,n,s,r,u,f,p,w,e=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,p=this._parts.length;r<p;r++)for(u=0,f=(w=(i=this._parts[r]).length)-1;u<w;f=u++)(n=i[u]).y>t.y!=(s=i[f]).y>t.y&&t.x<(s.x-n.x)*(t.y-n.y)/(s.y-n.y)+n.x&&(e=!e);return e||Mt.prototype._containsPoint.call(this,t,!0)}});var Tt=bt.extend({initialize:function(t,e){P(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var i,n,s,e=g(t)?t:t.features;if(e){for(i=0,n=e.length;i<n;i++)((s=e[i]).geometries||s.geometry||s.features||s.coordinates)&&this.addData(s);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var u=ve(t,r);return u?(u.feature=we(t),u.defaultOptions=u.options,this.resetStyle(u),r.onEachFeature&&r.onEachFeature(t,u),this.addLayer(u)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=I({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function ve(t,e){var f,p,w,M,i="Feature"===t.type?t.geometry:t,n=i?i.coordinates:null,s=[],r=e&&e.pointToLayer,u=e&&e.coordsToLatLng||ni;if(!n&&!i)return null;switch(i.type){case"Point":return Yi(r,t,f=u(n),e);case"MultiPoint":for(w=0,M=n.length;w<M;w++)f=u(n[w]),s.push(Yi(r,t,f,e));return new bt(s);case"LineString":case"MultiLineString":return p=ye(n,"LineString"===i.type?0:1,u),new Mt(p,e);case"Polygon":case"MultiPolygon":return p=ye(n,"Polygon"===i.type?1:2,u),new Wt(p,e);case"GeometryCollection":for(w=0,M=i.geometries.length;w<M;w++){var D=ve({geometry:i.geometries[w],type:"Feature",properties:t.properties},e);D&&s.push(D)}return new bt(s);case"FeatureCollection":for(w=0,M=i.features.length;w<M;w++){var F=ve(i.features[w],e);F&&s.push(F)}return new bt(s);default:throw new Error("Invalid GeoJSON object.")}}function Yi(t,e,i,n){return t?t(e,i):new me(i,n&&n.markersInheritOptions&&n)}function ni(t){return new j(t[1],t[0],t[2])}function ye(t,e,i){for(var u,n=[],s=0,r=t.length;s<r;s++)u=e?ye(t[s],e-1,i):(i||ni)(t[s]),n.push(u);return n}function si(t,e){return void 0!==(t=G(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function Le(t,e,i,n){for(var s=[],r=0,u=t.length;r<u;r++)s.push(e?Le(t[r],pt(t[r])?0:e-1,i,n):si(t[r],n));return!e&&i&&s.length>0&&s.push(s[0].slice()),s}function Vt(t,e){return t.feature?I({},t.feature,{geometry:e}):we(e)}function we(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var oi={toGeoJSON:function(t){return Vt(this,{type:"Point",coordinates:si(this.getLatLng(),t)})}};function $i(t,e){return new Tt(t,e)}me.include(oi),ii.include(oi),ge.include(oi),Mt.include({toGeoJSON:function(t){var e=!pt(this._latlngs);return Vt(this,{type:(e?"Multi":"")+"LineString",coordinates:Le(this._latlngs,e?1:0,!1,t)})}}),Wt.include({toGeoJSON:function(t){var e=!pt(this._latlngs),i=e&&!pt(this._latlngs[0]),n=Le(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Vt(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Gt.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Vt(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer(function(s){if(s.toGeoJSON){var r=s.toGeoJSON(t);if(i)n.push(r.geometry);else{var u=we(r);"FeatureCollection"===u.type?n.push.apply(n,u.features):n.push(u)}}}),i?Vt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var ws=$i,Pe=vt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=it(e),P(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(N(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){J(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Ft(this._image),this},bringToBack:function(){return this._map&&Ut(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=it(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:V("img");N(e,"leaflet-image-layer"),this._zoomAnimated&&N(e,"leaflet-zoom-animated"),this.options.className&&N(e,this.options.className),e.onselectstart=d,e.onmousemove=d,e.onload=a(this.fire,this,"load"),e.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Bt(this._image,i,e)},_reset:function(){var t=this._image,e=new X(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();nt(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){_t(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Ji=Pe.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:V("video");if(N(e,"leaflet-image-layer"),this._zoomAnimated&&N(e,"leaflet-zoom-animated"),this.options.className&&N(e,this.options.className),e.onselectstart=d,e.onmousemove=d,e.onloadeddata=a(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],s=0;s<i.length;s++)n.push(i[s].src);this._url=i.length>0?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;r<this._url.length;r++){var u=V("source");u.src=this._url[r],e.appendChild(u)}}}});var Qi=Pe.extend({_initImage:function(){var t=this._image=this._url;N(t,"leaflet-image-layer"),this._zoomAnimated&&N(t,"leaflet-zoom-animated"),this.options.className&&N(t,this.options.className),t.onselectstart=d,t.onmousemove=d}});var Ct=vt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof j||g(t))?(this._latlng=G(t),P(this,e)):(P(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&_t(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&_t(this._container,1),this.bringToFront(),this.options.interactive&&(N(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(_t(this._container,0),this._removeTimeout=setTimeout(a(J,void 0,this._container),200)):J(this._container),this.options.interactive&&(tt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=G(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ft(this._container),this},bringToBack:function(){return this._map&&Ut(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof bt){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[n];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=Z(this.options.offset),i=this._getAnchor();this._zoomAnimated?nt(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,s=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=s+"px"}},_getAnchor:function(){return[0,0]}});H.include({_initOverlay:function(t,e,i,n){var s=e;return s instanceof t||(s=new t(n).setContent(e)),i&&s.setLatLng(i),s}}),vt.include({_initOverlay:function(t,e,i,n){var s=i;return s instanceof t?(P(s,n),s._source=this):(s=e&&!n?e:new t(n,this)).setContent(i),s}});var Ce=Ct.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Ct.prototype.openOn.call(this,t)},onAdd:function(t){Ct.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Et||this._source.on("preclick",Dt))},onRemove:function(t){Ct.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Et||this._source.off("preclick",Dt))},getEvents:function(){var t=Ct.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=V("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=V("div",t+"-content-wrapper",e);if(this._contentNode=V("div",t+"-content",i),ee(e),qe(this._contentNode),R(e,"contextmenu",Dt),this._tipContainer=V("div",t+"-tip-container",e),this._tip=V("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=V("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',R(n,"click",function(s){at(s),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var s=this.options.maxHeight,r="leaflet-popup-scrolled";s&&t.offsetHeight>s?(e.height=s+"px",N(t,r)):tt(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();nt(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var t=this._map,e=parseInt($t(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,s=new z(this._containerLeft,-i-this._containerBottom);s._add(zt(this._container));var r=t.layerPointToContainerPoint(s),u=Z(this.options.autoPanPadding),f=Z(this.options.autoPanPaddingTopLeft||u),p=Z(this.options.autoPanPaddingBottomRight||u),w=t.getSize(),M=0,D=0;r.x+n+p.x>w.x&&(M=r.x+n-w.x+p.x),r.x-M-f.x<0&&(M=r.x-f.x),r.y+i+p.y>w.y&&(D=r.y+i-w.y+p.y),r.y-D-f.y<0&&(D=r.y-f.y),(M||D)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([M,D]))}},_getAnchor:function(){return Z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});H.mergeOptions({closePopupOnClick:!0}),H.include({openPopup:function(t,e,i){return this._initOverlay(Ce,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),vt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ce,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof bt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){It(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Et))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng));this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var xe=Ct.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Ct.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Ct.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Ct.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){this._contentNode=this._container=V("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,s=this._container,r=n.latLngToContainerPoint(n.getCenter()),u=n.layerPointToContainerPoint(t),f=this.options.direction,p=s.offsetWidth,w=s.offsetHeight,M=Z(this.options.offset),D=this._getAnchor();"top"===f?(e=p/2,i=w):"bottom"===f?(e=p/2,i=0):"center"===f?(e=p/2,i=w/2):"right"===f?(e=0,i=w/2):"left"===f?(e=p,i=w/2):u.x<r.x?(f="right",e=0,i=w/2):(f="left",e=p+2*(M.x+D.x),i=w/2),t=t.subtract(Z(e,i,!0)).add(M).add(D),tt(s,"leaflet-tooltip-right"),tt(s,"leaflet-tooltip-left"),tt(s,"leaflet-tooltip-top"),tt(s,"leaflet-tooltip-bottom"),N(s,"leaflet-tooltip-"+f),nt(s,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&_t(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return Z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});H.include({openTooltip:function(t,e,i){return this._initOverlay(xe,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),vt.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(xe,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof bt||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(R(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),R(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;return void this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var i,n,e=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(i),e=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(e)}});var tn=Ht.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ue(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=Z(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Ht.Default=se;var oe=vt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:E.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){P(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),J(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ft(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ut(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=_(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof z?t:new z(t,t)},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var r,e=this.getPane().children,i=-t(-1/0,1/0),n=0,s=e.length;n<s;n++)r=e[n].style.zIndex,e[n]!==this._container&&r&&(i=t(i,+r));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!E.ielt9){_t(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var s=this._tiles[n];if(s.current&&s.loaded){var r=Math.min(1,(t-s.loaded)/200);_t(s.el,r),r<1?e=!0:(s.active?i=!0:this._onOpaqueTile(s),s.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(U(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=V("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(J(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],s=this._map;return n||((n=this._levels[t]={}).el=V("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,s.getCenter(),s.getZoom()),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)return void this._removeAllTiles();for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)J(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var s=Math.floor(t/2),r=Math.floor(e/2),u=i-1,f=new z(+s,+r);f.z=+u;var p=this._tileCoordsToKey(f),w=this._tiles[p];return w&&w.active?(w.retain=!0,!0):(w&&w.loaded&&(w.retain=!0),u>n&&this._retainParent(s,r,u,n))},_retainChildren:function(t,e,i,n){for(var s=2*t;s<2*t+2;s++)for(var r=2*e;r<2*e+2;r++){var u=new z(s,r);u.z=i+1;var f=this._tileCoordsToKey(u),p=this._tiles[f];p&&p.active?p.retain=!0:(p&&p.loaded&&(p.retain=!0),i+1<n&&this._retainChildren(s,r,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var s=Math.round(e);s=void 0!==this.options.maxZoom&&s>this.options.maxZoom||void 0!==this.options.minZoom&&s<this.options.minZoom?void 0:this._clampZoom(s),(!n||this.options.updateWhenZooming&&s!==this._tileZoom)&&(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),s=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();E.any3d?Bt(t.el,s,n):nt(t.el,s)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,s=this._map.getPixelWorldBounds(this._tileZoom);s&&(this._globalTileRange=this._pxBoundsToTileRange(s)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),s=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*n);return new X(s.subtract(r),s.add(r))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),s=this._pxBoundsToTileRange(n),r=s.getCenter(),u=[],f=this.options.keepBuffer,p=new X(s.getBottomLeft().subtract([f,-f]),s.getTopRight().add([f,-f]));if(!(isFinite(s.min.x)&&isFinite(s.min.y)&&isFinite(s.max.x)&&isFinite(s.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var w in this._tiles){var M=this._tiles[w].coords;(M.z!==this._tileZoom||!p.contains(new z(M.x,M.y)))&&(this._tiles[w].current=!1)}if(Math.abs(i-this._tileZoom)>1)return void this._setView(t,i);for(var D=s.min.y;D<=s.max.y;D++)for(var F=s.min.x;F<=s.max.x;F++){var lt=new z(F,D);if(lt.z=this._tileZoom,this._isValidTile(lt)){var ot=this._tiles[this._tileCoordsToKey(lt)];ot?ot.current=!0:u.push(lt)}}if(u.sort(function(ct,Kt){return ct.distanceTo(r)-Kt.distanceTo(r)}),0!==u.length){this._loading||(this._loading=!0,this.fire("loading"));var mt=document.createDocumentFragment();for(F=0;F<u.length;F++)this._addTile(u[F],mt);this._level.el.appendChild(mt)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return it(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),s=n.add(i);return[e.unproject(n,t.z),e.unproject(s,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new ut(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new z(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(J(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){N(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=d,t.onmousemove=d,E.ielt9&&this.options.opacity<1&&_t(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),a(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&C(a(this._tileReady,this,t,null,s)),nt(s,i),this._tiles[n]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(_t(i.el,0),U(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(N(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),E.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new z(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new X(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var jt=oe.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=P(this,e)).detectRetina&&E.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return R(i,"load",a(this._tileOnLoad,this,e,i)),R(i,"error",a(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:E.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return k(this._url,I(e,this.options))},_tileOnLoad:function(t,e){E.ielt9?setTimeout(a(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom;return this.options.zoomReverse&&(t=this.options.maxZoom-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=d,e.onerror=d,!e.complete)){e.src=b;var i=this._tiles[t].coords;J(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",b),oe.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==b))return oe.prototype._tileReady.call(this,t,e,i)}});function en(t,e){return new jt(t,e)}var nn=jt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=I({},this.defaultWmsParams);for(var n in e)n in this.options||(i[n]=e[n]);var s=(e=P(this,e)).detectRetina&&E.retina?2:1,r=this.getTileSize();i.width=r.x*s,i.height=r.y*s,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,jt.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=ht(i.project(e[0]),i.project(e[1])),s=n.min,r=n.max,u=(this._wmsVersion>=1.3&&this._crs===qi?[s.y,s.x,r.y,r.x]:[s.x,s.y,r.x,r.y]).join(","),f=jt.prototype.getTileUrl.call(this,t);return f+W(this.wmsParams,f,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+u},setParams:function(t,e){return I(this.wmsParams,t),e||this.redraw(),this}});jt.WMS=nn,en.wms=function Os(t,e){return new nn(t,e)};var kt=vt.extend({options:{padding:.1},initialize:function(t){P(this,t),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),N(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),r=n.multiplyBy(-i).add(s).subtract(this._map._getNewPixelOrigin(t,e));E.any3d?Bt(this._container,r,i):nt(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new X(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),sn=kt.extend({options:{tolerance:0},getEvents:function(){var t=kt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){kt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");R(t,"mousemove",this._onMouseMove,this),R(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),R(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){U(this._redrawRequest),delete this._ctx,J(this._container),K(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){kt.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=E.retina?2:1;nt(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",E.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){kt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[l(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[l(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var n,s,e=t.options.dashArray.split(/[, ]+/),i=[];for(s=0;s<e.length;s++){if(n=Number(e[s]),isNaN(n))return;i.push(n)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new X,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,s,r,u=t._parts,f=u.length,p=this._ctx;if(f){for(p.beginPath(),i=0;i<f;i++){for(n=0,s=u[i].length;n<s;n++)p[n?"lineTo":"moveTo"]((r=u[i][n]).x,r.y);e&&p.closePath()}this._fillStroke(p,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),s=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==s&&(i.save(),i.scale(1,s)),i.beginPath(),i.arc(e.x,e.y/s,n,0,2*Math.PI,!1),1!==s&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var i,n,e=this._map.mouseEventToLayerPoint(t),s=this._drawFirst;s;s=s.next)(i=s.layer).options.interactive&&i._containsPoint(e)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(i))&&(n=i);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(tt(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,s=this._drawFirst;s;s=s.next)(i=s.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(N(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;if(!i)return;i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;if(!n)return;n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function on(t){return E.canvas?new sn(t):null}var re=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ss={_initContainer:function(){this._container=V("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(kt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=re("shape");N(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=re("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;J(e),t.removeInteractiveTarget(e),delete this._layers[l(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,s=t._container;s.stroked=!!n.stroke,s.filled=!!n.fill,n.stroke?(e||(e=t._stroke=re("stroke")),s.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,e.dashStyle=n.dashArray?g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):"",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(s.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=re("fill")),s.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(s.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Ft(t._container)},_bringToBack:function(t){Ut(t._container)}},be=E.vml?re:hi,ae=kt.extend({_initContainer:function(){this._container=be("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=be("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){J(this._container),K(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){kt.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),nt(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=be("path");t.options.className&&N(e,t.options.className),t.options.interactive&&N(e,"leaflet-interactive"),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){J(t._path),t.removeInteractiveTarget(t._path),delete this._layers[l(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,li(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),s="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+s+2*i+",0 "+s+2*-i+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Ft(t._path)},_bringToBack:function(t){Ut(t._path)}});function rn(t){return E.svg||E.vml?new ae(t):null}E.vml&&ae.include(Ss),H.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&on(t)||rn(t)}});var an=Wt.extend({initialize:function(t,e){Wt.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=it(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});ae.create=be,ae.pointsToPath=li,Tt.geometryToLayer=ve,Tt.coordsToLatLng=ni,Tt.coordsToLatLngs=ye,Tt.latLngToCoords=si,Tt.latLngsToCoords=Le,Tt.getFeature=Vt,Tt.asFeature=we,H.mergeOptions({boxZoom:!0});var hn=Pt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){R(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){K(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){J(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Jt(),Fe(),this._startPoint=this._map.mouseEventToContainerPoint(t),R(document,{contextmenu:It,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=V("div","leaflet-zoom-box",this._container),N(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new X(this._point,this._startPoint),i=e.getSize();nt(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(J(this._box),tt(this._container,"leaflet-crosshair")),Qt(),Ue(),K(document,{contextmenu:It,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var e=new ut(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});H.addInitHook("addHandler","boxZoom",hn),H.mergeOptions({doubleClickZoom:!0});var ln=Pt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,s=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(s):e.setZoomAround(t.containerPoint,s)}});H.addInitHook("addHandler","doubleClickZoom",ln),H.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var un=Pt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new St(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}N(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tt(this._map._container,"leaflet-grab"),tt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=it(this._map.options.maxBounds);this._offsetLimit=ht(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,s=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,u=Math.abs(s+i)<Math.abs(r+i)?s:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=u},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var s=this._lastPos.subtract(this._positions[0]),u=i.easeLinearity,f=s.multiplyBy(u/((this._lastTime-this._times[0])/1e3)),p=f.distanceTo([0,0]),w=Math.min(i.inertiaMaxSpeed,p),M=f.multiplyBy(w/p),D=w/(i.inertiaDeceleration*u),F=M.multiplyBy(-D/2).round();F.x||F.y?(F=e._limitOffset(F,e.options.maxBounds),C(function(){e.panBy(F,{duration:D,easeLinearity:u,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});H.addInitHook("addHandler","dragging",un),H.mergeOptions({keyboard:!0,keyboardPanDelta:80});var cn=Pt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),R(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),K(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var n,s,e=this._panKeys={},i=this.keyCodes;for(n=0,s=i.left.length;n<s;n++)e[i.left[n]]=[-1*t,0];for(n=0,s=i.right.length;n<s;n++)e[i.right[n]]=[t,0];for(n=0,s=i.down.length;n<s;n++)e[i.down[n]]=[0,t];for(n=0,s=i.up.length;n<s;n++)e[i.up[n]]=[0,-1*t]},_setZoomDelta:function(t){var n,s,e=this._zoomKeys={},i=this.keyCodes;for(n=0,s=i.zoomIn.length;n<s;n++)e[i.zoomIn[n]]=t;for(n=0,s=i.zoomOut.length;n<s;n++)e[i.zoomOut[n]]=-t},_addHooks:function(){R(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){K(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var n,e=t.keyCode,i=this._map;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(n=this._panKeys[e],t.shiftKey&&(n=Z(n).multiplyBy(3)),i.options.maxBounds&&(n=i._limitOffset(Z(n),i.options.maxBounds)),i.options.worldCopyJump){var s=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(n)));i.panTo(s)}else i.panBy(n)}else if(e in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else{if(27!==e||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}It(t)}}});H.addInitHook("addHandler","keyboard",cn),H.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var dn=Pt.extend({addHooks:function(){R(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){K(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ii(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),n),It(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var s=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/Math.LN2,r=i?Math.ceil(s/i)*i:s,u=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,u&&("center"===t.options.scrollWheelZoom?t.setZoom(e+u):t.setZoomAround(this._lastMousePos,e+u))}});H.addInitHook("addHandler","scrollWheelZoom",dn);H.mergeOptions({tapHold:E.touchNative&&E.safari&&E.mobile,tapTolerance:15});var fn=Pt.extend({addHooks:function(){R(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){K(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new z(e.clientX,e.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(R(document,"touchend",at),R(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),R(document,"touchend touchcancel contextmenu",this._cancel,this),R(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){K(document,"touchend",at),K(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),K(document,"touchend touchcancel contextmenu",this._cancel,this),K(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new z(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});H.addInitHook("addHandler","tapHold",fn),H.mergeOptions({touchZoom:E.touch,bounceAtZoomLimits:!0});var _n=Pt.extend({addHooks:function(){N(this._map._container,"leaflet-touch-zoom"),R(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),K(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),R(document,"touchmove",this._onTouchMove,this),R(document,"touchend touchcancel",this._onTouchEnd,this),at(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&s<1||this._zoom>e.getMaxZoom()&&s>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),U(this._animRequest);var u=a(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=C(u,this,!0),at(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,U(this._animRequest),K(document,"touchmove",this._onTouchMove,this),K(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});H.addInitHook("addHandler","touchZoom",_n),H.BoxZoom=hn,H.DoubleClickZoom=ln,H.Drag=un,H.Keyboard=cn,H.ScrollWheelZoom=dn,H.TapHold=fn,H.TouchZoom=_n,v.Bounds=X,v.Browser=E,v.CRS=xt,v.Canvas=sn,v.Circle=ii,v.CircleMarker=ge,v.Class=Q,v.Control=gt,v.DivIcon=tn,v.DivOverlay=Ct,v.DomEvent=Yn,v.DomUtil=qn,v.Draggable=St,v.Evented=$,v.FeatureGroup=bt,v.GeoJSON=Tt,v.GridLayer=oe,v.Handler=Pt,v.Icon=Ht,v.ImageOverlay=Pe,v.LatLng=j,v.LatLngBounds=ut,v.Layer=vt,v.LayerGroup=Gt,v.LineUtil=ls,v.Map=H,v.Marker=me,v.Mixin=ns,v.Path=Et,v.Point=z,v.PolyUtil=ss,v.Polygon=Wt,v.Polyline=Mt,v.Popup=Ce,v.PosAnimation=Zi,v.Projection=us,v.Rectangle=an,v.Renderer=kt,v.SVG=ae,v.SVGOverlay=Qi,v.TileLayer=jt,v.Tooltip=xe,v.Transformation=ke,v.Util=q,v.VideoOverlay=Ji,v.bind=a,v.bounds=ht,v.canvas=on,v.circle=function vs(t,e,i){return new ii(t,e,i)},v.circleMarker=function gs(t,e){return new ge(t,e)},v.control=ie,v.divIcon=function Ts(t){return new tn(t)},v.extend=I,v.featureGroup=function(t,e){return new bt(t,e)},v.geoJSON=$i,v.geoJson=ws,v.gridLayer=function ks(t){return new oe(t)},v.icon=function ps(t){return new Ht(t)},v.imageOverlay=function(t,e,i){return new Pe(t,e,i)},v.latLng=G,v.latLngBounds=it,v.layerGroup=function(t,e){return new Gt(t,e)},v.map=function $n(t,e){return new H(t,e)},v.marker=function ms(t,e){return new me(t,e)},v.point=Z,v.polygon=function Ls(t,e){return new Wt(t,e)},v.polyline=function ys(t,e){return new Mt(t,e)},v.popup=function(t,e){return new Ce(t,e)},v.rectangle=function Es(t,e){return new an(t,e)},v.setOptions=P,v.stamp=l,v.svg=rn,v.svgOverlay=function xs(t,e,i){return new Qi(t,e,i)},v.tileLayer=en,v.tooltip=function(t,e){return new xe(t,e)},v.transformation=qt,v.version="1.9.4",v.videoOverlay=function Cs(t,e,i){return new Ji(t,e,i)};var zs=window.L;v.noConflict=function(){return window.L=zs,this},window.L=v}(dt)},5946:(At,dt,v)=>{"use strict";v.d(dt,{V1:()=>a,gI:()=>P});var A=v(8699),I=v(8244);class o{static mapToArray(k){const g=[];for(const S in k)k.hasOwnProperty(S)&&g.push(k[S]);return g}static handleEvent(k,g,S){0<g.observers.length&&k.run(()=>{g.emit(S)})}}let a=(()=>{class O{constructor(g,S){this.element=g,this.zone=S,this.DEFAULT_ZOOM=1,this.DEFAULT_CENTER=(0,I.latLng)(38.907192,-77.036871),this.DEFAULT_FPZ_OPTIONS={},this.fitBoundsOptions=this.DEFAULT_FPZ_OPTIONS,this.panOptions=this.DEFAULT_FPZ_OPTIONS,this.zoomOptions=this.DEFAULT_FPZ_OPTIONS,this.zoomPanOptions=this.DEFAULT_FPZ_OPTIONS,this.options={},this.mapReady=new A.bkB,this.zoomChange=new A.bkB,this.centerChange=new A.bkB,this.onClick=new A.bkB,this.onDoubleClick=new A.bkB,this.onMouseDown=new A.bkB,this.onMouseUp=new A.bkB,this.onMouseMove=new A.bkB,this.onMouseOver=new A.bkB,this.onMouseOut=new A.bkB,this.onMapMove=new A.bkB,this.onMapMoveStart=new A.bkB,this.onMapMoveEnd=new A.bkB,this.onMapZoom=new A.bkB,this.onMapZoomStart=new A.bkB,this.onMapZoomEnd=new A.bkB}ngOnInit(){this.zone.runOutsideAngular(()=>{this.map=(0,I.map)(this.element.nativeElement,this.options),this.addMapEventListeners()}),null!=this.center&&null!=this.zoom&&this.setView(this.center,this.zoom),null!=this.fitBounds&&this.setFitBounds(this.fitBounds),null!=this.maxBounds&&this.setMaxBounds(this.maxBounds),null!=this.minZoom&&this.setMinZoom(this.minZoom),null!=this.maxZoom&&this.setMaxZoom(this.maxZoom),this.doResize(),this.mapReady.emit(this.map)}ngOnChanges(g){g.zoom&&g.center&&null!=this.zoom&&null!=this.center?this.setView(g.center.currentValue,g.zoom.currentValue):g.zoom?this.setZoom(g.zoom.currentValue):g.center&&this.setCenter(g.center.currentValue),g.fitBounds&&this.setFitBounds(g.fitBounds.currentValue),g.maxBounds&&this.setMaxBounds(g.maxBounds.currentValue),g.minZoom&&this.setMinZoom(g.minZoom.currentValue),g.maxZoom&&this.setMaxZoom(g.maxZoom.currentValue)}ngOnDestroy(){null!=this.map&&this.map.remove()}getMap(){return this.map}onResize(){this.delayResize()}addMapEventListeners(){const g=(b,et)=>{this.map.on(b,et)};g("click",b=>o.handleEvent(this.zone,this.onClick,b)),g("dblclick",b=>o.handleEvent(this.zone,this.onDoubleClick,b)),g("mousedown",b=>o.handleEvent(this.zone,this.onMouseDown,b)),g("mouseup",b=>o.handleEvent(this.zone,this.onMouseUp,b)),g("mouseover",b=>o.handleEvent(this.zone,this.onMouseOver,b)),g("mouseout",b=>o.handleEvent(this.zone,this.onMouseOut,b)),g("mousemove",b=>o.handleEvent(this.zone,this.onMouseMove,b)),g("zoomstart",b=>o.handleEvent(this.zone,this.onMapZoomStart,b)),g("zoom",b=>o.handleEvent(this.zone,this.onMapZoom,b)),g("zoomend",b=>o.handleEvent(this.zone,this.onMapZoomEnd,b)),g("movestart",b=>o.handleEvent(this.zone,this.onMapMoveStart,b)),g("move",b=>o.handleEvent(this.zone,this.onMapMove,b)),g("moveend",b=>o.handleEvent(this.zone,this.onMapMoveEnd,b));const S=()=>{const b=this.map.getZoom();b!==this.zoom&&(this.zoom=b,o.handleEvent(this.zone,this.zoomChange,b));const et=this.map.getCenter();(null!=et||null!=this.center)&&((null==et||null==this.center)&&et!==this.center||et.lat!==this.center.lat||et.lng!==this.center.lng)&&(this.center=et,o.handleEvent(this.zone,this.centerChange,et))};g("moveend",S),g("zoomend",S)}doResize(){this.zone.runOutsideAngular(()=>{null!=this.map&&this.map.invalidateSize({})})}delayResize(){null!=this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.doResize.bind(this),200)}setView(g,S){null!=this.map&&null!=g&&null!=S&&this.map.setView(g,S,this.zoomPanOptions)}setZoom(g){null!=this.map&&null!=g&&this.map.setZoom(g,this.zoomOptions)}setCenter(g){null!=this.map&&null!=g&&this.map.panTo(g,this.panOptions)}setFitBounds(g){null!=this.map&&null!=g&&this.map.fitBounds(g,this.fitBoundsOptions)}setMaxBounds(g){null!=this.map&&null!=g&&this.map.setMaxBounds(g)}setMinZoom(g){null!=this.map&&null!=g&&this.map.setMinZoom(g)}setMaxZoom(g){null!=this.map&&null!=g&&this.map.setMaxZoom(g)}static{this.\u0275fac=function(S){return new(S||O)(A.rXU(A.aKT),A.rXU(A.SKi))}}static{this.\u0275dir=A.FsC({type:O,selectors:[["","leaflet",""]],hostBindings:function(S,b){1&S&&A.bIt("resize",function(){return b.onResize()},!1,A.tSv)},inputs:{fitBoundsOptions:["leafletFitBoundsOptions","fitBoundsOptions"],panOptions:["leafletPanOptions","panOptions"],zoomOptions:["leafletZoomOptions","zoomOptions"],zoomPanOptions:["leafletZoomPanOptions","zoomPanOptions"],options:["leafletOptions","options"],zoom:["leafletZoom","zoom"],center:["leafletCenter","center"],fitBounds:["leafletFitBounds","fitBounds"],maxBounds:["leafletMaxBounds","maxBounds"],minZoom:["leafletMinZoom","minZoom"],maxZoom:["leafletMaxZoom","maxZoom"]},outputs:{mapReady:"leafletMapReady",zoomChange:"leafletZoomChange",centerChange:"leafletCenterChange",onClick:"leafletClick",onDoubleClick:"leafletDoubleClick",onMouseDown:"leafletMouseDown",onMouseUp:"leafletMouseUp",onMouseMove:"leafletMouseMove",onMouseOver:"leafletMouseOver",onMouseOut:"leafletMouseOut",onMapMove:"leafletMapMove",onMapMoveStart:"leafletMapMoveStart",onMapMoveEnd:"leafletMapMoveEnd",onMapZoom:"leafletMapZoom",onMapZoomStart:"leafletMapZoomStart",onMapZoomEnd:"leafletMapZoomEnd"},features:[A.OA$]})}}return O})(),P=(()=>{class O{static{this.\u0275fac=function(S){return new(S||O)}}static{this.\u0275mod=A.$C({type:O})}static{this.\u0275inj=A.G2t({})}}return O})()}}]);