PageSourceSearch

https://www.puertodelcarmen-reservar-hoteles.com/platform/ui/global/build/1322.scriptc7940c2e1a0322164ff0.js

js puertodelcarmen-reservar-hoteles.com collected 2026-10-09 05:09:34 UTC 222,264 bytes, 1 lines download raw bytes

1(self.webpackChunklib=self.webpackChunklib||[]).push([[1322],{1156:t=>{t.exports=function(t,e,i){var n=!1;if(void 0===window.XMLHttpRequest)return e(Error("Browser not supported"));if(void 0===i){var o=t.match(/^\s*https?:\/\/[^\/]*/);i=o&&o[0]!==location.protocol+"//"+location.domain+(location.port?":"+location.port:"")}var s=new window.XMLHttpRequest;if(i&&!("withCredentials"in s)){s=new window.XDomainRequest;var r=e;e=function(){if(n)r.apply(this,arguments);else{var t=this,e=arguments;setTimeout((function(){r.apply(t,e)}),0)}}}function a(){var t;void 0===s.status||((t=s.status)>=200&&t<300||304===t)?e.call(s,null,s):e.call(s,s,null)}return"onload"in s?s.onload=a:s.onreadystatechange=function(){4===s.readyState&&a()},s.onerror=function(t){e.call(this,t||!0,null),e=function(){}},s.onprogress=function(){},s.ontimeout=function(t){e.call(this,t,null),e=function(){}},s.onabort=function(t){e.call(this,t,null),e=function(){}},s.open("GET",t,!0),s.send(null),n=!0,s}},6409:(t,e,i)=>{var n=i(5243),o=i(5432).class;t.exports={class:n.Control.extend({options:{showResultIcons:!1,collapsed:!0,expand:"click",position:"topright",placeholder:"Search...",errorMessage:"Nothing found.",suggestMinLength:3,suggestTimeout:250,defaultMarkGeocode:!0},includes:n.Mixin.Events,initialize:function(t){n.Util.setOptions(this,t),this.options.geocoder||(this.options.geocoder=new o),this._requestCount=0},onAdd:function(t){var e,i="leaflet-control-geocoder",o=n.DomUtil.create("div",i+" leaflet-bar"),s=n.DomUtil.create("button",i+"-icon",o),r=this._form=n.DomUtil.create("div",i+"-form",o);return this._map=t,this._container=o,s.innerHTML="&nbsp;",s.type="button",(e=this._input=n.DomUtil.create("input","",r)).type="text",e.placeholder=this.options.placeholder,this._errorElement=n.DomUtil.create("div",i+"-form-no-error",o),this._errorElement.innerHTML=this.options.errorMessage,this._alts=n.DomUtil.create("ul",i+"-alternatives leaflet-control-geocoder-alternatives-minimized",o),n.DomEvent.addListener(e,"keydown",this._keydown,this),n.DomEvent.addListener(e,"blur",(function(){this.options.collapsed&&this._collapse()}),this),this.options.collapsed?"click"===this.options.expand?n.DomEvent.addListener(s,"click",(function(t){0===t.button&&2!==t.detail&&this._toggle()}),this):(n.DomEvent.addListener(s,"mouseover",this._expand,this),n.DomEvent.addListener(s,"mouseout",this._collapse,this),this._map.on("movestart",this._collapse,this)):(n.DomEvent.addListener(s,"click",(function(t){this._geocode(t)}),this),this._expand()),this.options.defaultMarkGeocode&&this.on("markgeocode",this.markGeocode,this),this.on("startgeocode",(function(){n.DomUtil.addClass(this._container,"leaflet-control-geocoder-throbber")}),this),this.on("finishgeocode",(function(){n.DomUtil.removeClass(this._container,"leaflet-control-geocoder-throbber")}),this),n.DomEvent.disableClickPropagation(o),o},_geocodeResult:function(t,e){if(e||1!==t.length)if(t.length>0){this._alts.innerHTML="",this._results=t,n.DomUtil.removeClass(this._alts,"leaflet-control-geocoder-alternatives-minimized");for(var i=0;i<t.length;i++)this._alts.appendChild(this._createAlt(t[i],i))}else n.DomUtil.addClass(this._errorElement,"leaflet-control-geocoder-error");else this._geocodeResultSelected(t[0])},markGeocode:function(t){return t=t.geocode||t,this._map.fitBounds(t.bbox),this._geocodeMarker&&this._map.removeLayer(this._geocodeMarker),this._geocodeMarker=new n.Marker(t.center).bindPopup(t.html||t.name).addTo(this._map).openPopup(),this},_geocode:function(t){var e=++this._requestCount,i=t?"suggest":"geocode";this._lastGeocode=this._input.value,t||this._clearResults(),this.fire("start"+i),this.options.geocoder[i](this._input.value,(function(n){e===this._requestCount&&(this.fire("finish"+i),this._geocodeResult(n,t))}),this)},_geocodeResultSelected:function(t){this.options.collapsed?this._collapse():this._clearResults(),this.fire("markgeocode",{geocode:t})},_toggle:function(){this._container.className.indexOf("leaflet-control-geocoder-expanded")>=0?this._collapse():this._expand()},_expand:function(){n.DomUtil.addClass(this._container,"leaflet-control-geocoder-expanded"),this._input.select(),this.fire("exp
1and")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-geocoder-expanded",""),n.DomUtil.addClass(this._alts,"leaflet-control-geocoder-alternatives-minimized"),n.DomUtil.removeClass(this._errorElement,"leaflet-control-geocoder-error"),this.fire("collapse")},_clearResults:function(){n.DomUtil.addClass(this._alts,"leaflet-control-geocoder-alternatives-minimized"),this._selection=null,n.DomUtil.removeClass(this._errorElement,"leaflet-control-geocoder-error")},_createAlt:function(t,e){var i=n.DomUtil.create("li",""),o=n.DomUtil.create("a","",i),s=this.options.showResultIcons&&t.icon?n.DomUtil.create("img","",o):null,r=t.html?void 0:document.createTextNode(t.name);return s&&(s.src=t.icon),i.setAttribute("data-result-index",e),t.html?o.innerHTML=o.innerHTML+t.html:o.appendChild(r),n.DomEvent.addListener(i,"mousedown",(function(e){n.DomEvent.preventDefault(e),this._geocodeResultSelected(t)}),this),i},_keydown:function(t){var e=this,i=function(t){e._selection&&(n.DomUtil.removeClass(e._selection,"leaflet-control-geocoder-selected"),e._selection=e._selection[t>0?"nextSibling":"previousSibling"]),e._selection||(e._selection=e._alts[t>0?"firstChild":"lastChild"]),e._selection&&n.DomUtil.addClass(e._selection,"leaflet-control-geocoder-selected")};switch(t.keyCode){case 27:this.options.collapsed&&this._collapse();break;case 38:i(-1),n.DomEvent.preventDefault(t);break;case 40:i(1),n.DomEvent.preventDefault(t);break;case 13:if(this._selection){var o=parseInt(this._selection.getAttribute("data-result-index"),10);this._geocodeResultSelected(this._results[o]),this._clearResults()}else this._geocode();n.DomEvent.preventDefault(t);break;default:var s=this._input.value;this.options.geocoder.suggest&&s!==this._lastGeocode&&(clearTimeout(this._suggestTimeout),s.length>=this.options.suggestMinLength?this._suggestTimeout=setTimeout(n.bind((function(){this._geocode(!0)}),this),this.options.suggestTimeout):this._clearResults())}}}),factory:function(t){return new n.Control.Geocoder(t)}}},9579:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{service_url:"http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"},initialize:function(t,e){n.setOptions(this,e),this._accessToken=t},geocode:function(t,e,i){var s={SingleLine:t,outFields:"Addr_Type",forStorage:!1,maxLocations:10,f:"json"};this._key&&this._key.length&&(s.token=this._key),o.getJSON(this.options.service_url+"/findAddressCandidates",s,(function(t){var o,s,r,a=[];if(t.candidates&&t.candidates.length)for(var l=0;l<=t.candidates.length-1;l++)o=t.candidates[l],s=n.latLng(o.location.y,o.location.x),r=n.latLngBounds(n.latLng(o.extent.ymax,o.extent.xmax),n.latLng(o.extent.ymin,o.extent.xmin)),a[l]={name:o.address,bbox:r,center:s};e.call(i,a)}))},suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,i,s){var r={location:encodeURIComponent(t.lng)+","+encodeURIComponent(t.lat),distance:100,f:"json"};o.getJSON(this.options.service_url+"/reverseGeocode",r,(function(t){var e,o=[];t&&!t.error&&(e=n.latLng(t.location.y,t.location.x),o.push({name:t.address.Match_addr,center:e,bounds:n.latLngBounds(e,e)})),i.call(s,o)}))}}),factory:function(t,e){return new n.Control.Geocoder.ArcGis(t,e)}}},373:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({initialize:function(t){this.key=t},geocode:function(t,e,i){o.jsonp("https://dev.virtualearth.net/REST/v1/Locations",{query:t,key:this.key},(function(t){var o=[];if(t.resourceSets.length>0)for(var s=t.resourceSets[0].resources.length-1;s>=0;s--){var r=t.resourceSets[0].resources[s],a=r.bbox;o[s]={name:r.name,bbox:n.latLngBounds([a[0],a[1]],[a[2],a[3]]),center:n.latLng(r.point.coordinates)}}e.call(i,o)}),this,"jsonp")},reverse:function(t,e,i,s){o.jsonp("//dev.virtualearth.net/REST/v1/Locations/"+t.lat+","+t.lng,{key:this.key},(function(t){for(var e=[],o=t.resourceSets[0].resources.length-1;o>=0;o--){var r=t.resourceSets[0].resources[o],a=r.bbox;e[o]={name:r.name,bbox:n.latLngBounds([a[0],a[1]],[a[2],a[3]]),center:n.latLng(r.point.coordinates)}}i.call(s,e)}),this,"jsonp")}}),factory:function(t){return new n.Control.Geocoder.Bing(t)}}},4299:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{serviceUrl:"https://maps.googleapis.com/ma
1ps/api/geocode/json",geocodingQueryParams:{},reverseQueryParams:{}},initialize:function(t,e){this._key=t,n.setOptions(this,e),this.options.serviceUrl=this.options.service_url||this.options.serviceUrl},geocode:function(t,e,i){var s={address:t};this._key&&this._key.length&&(s.key=this._key),s=n.Util.extend(s,this.options.geocodingQueryParams),o.getJSON(this.options.serviceUrl,s,(function(t){var o,s,r,a=[];if(t.results&&t.results.length)for(var l=0;l<=t.results.length-1;l++)o=t.results[l],s=n.latLng(o.geometry.location),r=n.latLngBounds(n.latLng(o.geometry.viewport.northeast),n.latLng(o.geometry.viewport.southwest)),a[l]={name:o.formatted_address,bbox:r,center:s,properties:o.address_components};e.call(i,a)}))},reverse:function(t,e,i,s){var r={latlng:encodeURIComponent(t.lat)+","+encodeURIComponent(t.lng)};r=n.Util.extend(r,this.options.reverseQueryParams),this._key&&this._key.length&&(r.key=this._key),o.getJSON(this.options.serviceUrl,r,(function(t){var e,o,r,a=[];if(t.results&&t.results.length)for(var l=0;l<=t.results.length-1;l++)e=t.results[l],o=n.latLng(e.geometry.location),r=n.latLngBounds(n.latLng(e.geometry.viewport.northeast),n.latLng(e.geometry.viewport.southwest)),a[l]={name:e.formatted_address,bbox:r,center:o,properties:e.address_components};i.call(s,a)}))}}),factory:function(t,e){return new n.Control.Geocoder.Google(t,e)}}},8240:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{geocodeUrl:"http://geocoder.api.here.com/6.2/geocode.json",reverseGeocodeUrl:"http://reverse.geocoder.api.here.com/6.2/reversegeocode.json",app_id:"<insert your app_id here>",app_code:"<insert your app_code here>",geocodingQueryParams:{},reverseQueryParams:{}},initialize:function(t){n.setOptions(this,t)},geocode:function(t,e,i){var o={searchtext:t,gen:9,app_id:this.options.app_id,app_code:this.options.app_code,jsonattributes:1};o=n.Util.extend(o,this.options.geocodingQueryParams),this.getJSON(this.options.geocodeUrl,o,e,i)},reverse:function(t,e,i,o){var s={prox:encodeURIComponent(t.lat)+","+encodeURIComponent(t.lng),mode:"retrieveAddresses",app_id:this.options.app_id,app_code:this.options.app_code,gen:9,jsonattributes:1};s=n.Util.extend(s,this.options.reverseQueryParams),this.getJSON(this.options.reverseGeocodeUrl,s,i,o)},getJSON:function(t,e,i,s){o.getJSON(t,e,(function(t){var e,o,r,a=[];if(t.response.view&&t.response.view.length)for(var l=0;l<=t.response.view[0].result.length-1;l++)e=t.response.view[0].result[l].location,o=n.latLng(e.displayPosition.latitude,e.displayPosition.longitude),r=n.latLngBounds(n.latLng(e.mapView.topLeft.latitude,e.mapView.topLeft.longitude),n.latLng(e.mapView.bottomRight.latitude,e.mapView.bottomRight.longitude)),a[l]={name:e.address.label,bbox:r,center:o};i.call(s,a)}))}}),factory:function(t){return new n.Control.Geocoder.HERE(t)}}},7114:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{serviceUrl:"https://api.tiles.mapbox.com/v4/geocode/mapbox.places-v1/"},initialize:function(t,e){n.setOptions(this,e),this._accessToken=t},geocode:function(t,e,i){o.getJSON(this.options.serviceUrl+encodeURIComponent(t)+".json",{access_token:this._accessToken},(function(t){var o,s,r,a=[];if(t.features&&t.features.length)for(var l=0;l<=t.features.length-1;l++)o=t.features[l],s=n.latLng(o.center.reverse()),r=o.hasOwnProperty("bbox")?n.latLngBounds(n.latLng(o.bbox.slice(0,2).reverse()),n.latLng(o.bbox.slice(2,4).reverse())):n.latLngBounds(s,s),a[l]={name:o.place_name,bbox:r,center:s};e.call(i,a)}))},suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,i,s){o.getJSON(this.options.serviceUrl+encodeURIComponent(t.lng)+","+encodeURIComponent(t.lat)+".json",{access_token:this._accessToken},(function(t){var e,o,r,a=[];if(t.features&&t.features.length)for(var l=0;l<=t.features.length-1;l++)e=t.features[l],o=n.latLng(e.center.reverse()),r=e.hasOwnProperty("bbox")?n.latLngBounds(n.latLng(e.bbox.slice(0,2).reverse()),n.latLng(e.bbox.slice(2,4).reverse())):n.latLngBounds(o,o),a[l]={name:e.place_name,bbox:r,center:o};i.call(s,a)}))}}),factory:function(t,e){return new n.Control.Geocoder.Mapbox(t,e)}}},5648:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{serviceUrl:"https://www.mapquestapi.com/geocoding/v1"},initialize:function(t,e){this._key=decodeURIComponent(t),n.Util.setOptions(this,e)},_formatName:function(){var t,e=[];for(t=0;t<arguments.length;t++)arguments[t]&&e.push(arguments[t]);return e.join(", ")}
1,geocode:function(t,e,i){o.jsonp(this.options.serviceUrl+"/address",{key:this._key,location:t,limit:5,outFormat:"json"},(function(t){var o,s,r=[];if(t.results&&t.results[0].locations)for(var a=t.results[0].locations.length-1;a>=0;a--)o=t.results[0].locations[a],s=n.latLng(o.latLng),r[a]={name:this._formatName(o.street,o.adminArea4,o.adminArea3,o.adminArea1),bbox:n.latLngBounds(s,s),center:s};e.call(i,r)}),this)},reverse:function(t,e,i,s){o.jsonp(this.options.serviceUrl+"/reverse",{key:this._key,location:t.lat+","+t.lng,outputFormat:"json"},(function(t){var e,o,r=[];if(t.results&&t.results[0].locations)for(var a=t.results[0].locations.length-1;a>=0;a--)e=t.results[0].locations[a],o=n.latLng(e.latLng),r[a]={name:this._formatName(e.street,e.adminArea4,e.adminArea3,e.adminArea1),bbox:n.latLngBounds(o,o),center:o};i.call(s,r)}),this)}}),factory:function(t,e){return new n.Control.Geocoder.MapQuest(t,e)}}},4546:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{serviceUrl:"https://search.mapzen.com/v1",geocodingQueryParams:{},reverseQueryParams:{}},initialize:function(t,e){n.Util.setOptions(this,e),this._apiKey=t,this._lastSuggest=0},geocode:function(t,e,i){var s=this;o.getJSON(this.options.serviceUrl+"/search",n.extend({api_key:this._apiKey,text:t},this.options.geocodingQueryParams),(function(t){e.call(i,s._parseResults(t,"bbox"))}))},suggest:function(t,e,i){var s=this;o.getJSON(this.options.serviceUrl+"/autocomplete",n.extend({api_key:this._apiKey,text:t},this.options.geocodingQueryParams),n.bind((function(t){t.geocoding.timestamp>this._lastSuggest&&(this._lastSuggest=t.geocoding.timestamp,e.call(i,s._parseResults(t,"bbox")))}),this))},reverse:function(t,e,i,s){var r=this;o.getJSON(this.options.serviceUrl+"/reverse",n.extend({api_key:this._apiKey,"point.lat":t.lat,"point.lon":t.lng},this.options.reverseQueryParams),(function(t){i.call(s,r._parseResults(t,"bounds"))}))},_parseResults:function(t,e){var i=[];return n.geoJson(t,{pointToLayer:function(t,e){return n.circleMarker(e)},onEachFeature:function(t,o){var s,r,a={};o.getBounds?r=(s=o.getBounds()).getCenter():(r=o.getLatLng(),s=n.latLngBounds(r,r)),a.name=o.feature.properties.label,a.center=r,a[e]=s,a.properties=o.feature.properties,i.push(a)}}),i}}),factory:function(t,e){return new n.Control.Geocoder.Mapzen(t,e)}}},5432:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{serviceUrl:"https://nominatim.openstreetmap.org/",geocodingQueryParams:{},reverseQueryParams:{},htmlTemplate:function(t){var e=t.address,i=[];return(e.road||e.building)&&i.push("{building} {road} {house_number}"),(e.city||e.town||e.village||e.hamlet)&&i.push('<span class="'+(i.length>0?"leaflet-control-geocoder-address-detail":"")+'">{postcode} {city} {town} {village} {hamlet}</span>'),(e.state||e.country)&&i.push('<span class="'+(i.length>0?"leaflet-control-geocoder-address-context":"")+'">{state} {country}</span>'),o.template(i.join("<br/>"),e,!0)}},initialize:function(t){n.Util.setOptions(this,t)},geocode:function(t,e,i){o.jsonp(this.options.serviceUrl+"search",n.extend({q:t,limit:5,format:"json",addressdetails:1},this.options.geocodingQueryParams),(function(t){for(var o=[],s=t.length-1;s>=0;s--){for(var r=t[s].boundingbox,a=0;a<4;a++)r[a]=parseFloat(r[a]);o[s]={icon:t[s].icon,name:t[s].display_name,html:this.options.htmlTemplate?this.options.htmlTemplate(t[s]):void 0,bbox:n.latLngBounds([r[0],r[2]],[r[1],r[3]]),center:n.latLng(t[s].lat,t[s].lon),properties:t[s]}}e.call(i,o)}),this,"json_callback")},reverse:function(t,e,i,s){o.jsonp(this.options.serviceUrl+"reverse",n.extend({lat:t.lat,lon:t.lng,zoom:Math.round(Math.log(e/256)/Math.log(2)),addressdetails:1,format:"json"},this.options.reverseQueryParams),(function(t){var e,o=[];t&&t.lat&&t.lon&&(e=n.latLng(t.lat,t.lon),o.push({name:t.display_name,html:this.options.htmlTemplate?this.options.htmlTemplate(t):void 0,center:e,bounds:n.latLngBounds(e,e),properties:t})),i.call(s,o)}),this,"json_callback")}}),factory:function(t){return new n.Control.Geocoder.Nominatim(t)}}},9160:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{serviceUrl:"https://photon.komoot.de/api/",reverseUrl:"https://photon.komoot.de/reverse/",nameProperties:["name","street","suburb","hamlet","town","city","state","country"]},initialize:function(t){n.setOptions(this,t)}
1,geocode:function(t,e,i){var s=n.extend({q:t},this.options.geocodingQueryParams);o.getJSON(this.options.serviceUrl,s,n.bind((function(t){e.call(i,this._decodeFeatures(t))}),this))},suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,i,s){var r=n.extend({lat:t.lat,lon:t.lng},this.options.geocodingQueryParams);o.getJSON(this.options.reverseUrl,r,n.bind((function(t){i.call(s,this._decodeFeatures(t))}),this))},_decodeFeatures:function(t){var e,i,o,s,r,a,l=[];if(t&&t.features)for(e=0;e<t.features.length;e++)o=(i=t.features[e]).geometry.coordinates,s=n.latLng(o[1],o[0]),a=(r=i.properties.extent)?n.latLngBounds([r[1],r[0]],[r[3],r[2]]):n.latLngBounds(s,s),l.push({name:this._deocodeFeatureName(i),center:s,bbox:a,properties:i.properties});return l},_deocodeFeatureName:function(t){var e,i;for(e=0;!i&&e<this.options.nameProperties.length;e++)i=t.properties[this.options.nameProperties[e]];return i}}),factory:function(t){return new n.Control.Geocoder.Photon(t)}}},5551:(t,e,i)=>{var n=i(5243),o=i(8026);t.exports={class:n.Class.extend({options:{serviceUrl:"https://api.what3words.com/v2/"},initialize:function(t){this._accessToken=t},geocode:function(t,e,i){o.getJSON(this.options.serviceUrl+"forward",{key:this._accessToken,addr:t.split(/\s+/).join(".")},(function(t){var o,s,r=[];t.hasOwnProperty("geometry")&&(o=n.latLng(t.geometry.lat,t.geometry.lng),s=n.latLngBounds(o,o),r[0]={name:t.words,bbox:s,center:o}),e.call(i,r)}))},suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,i,s){o.getJSON(this.options.serviceUrl+"reverse",{key:this._accessToken,coords:[t.lat,t.lng].join(",")},(function(t){var e,o,r=[];200==t.status.status&&(e=n.latLng(t.geometry.lat,t.geometry.lng),o=n.latLngBounds(e,e),r[0]={name:t.words,bbox:o,center:e}),i.call(s,r)}))}}),factory:function(t){return new n.Control.Geocoder.What3Words(t)}}},2970:(t,e,i)=>{var n=i(5243),o=i(6409),s=i(5432),r=i(373),a=i(5648),l=i(7114),h=i(5551),u=i(4299),c=i(9160),d=i(4546),p=i(9579),_=i(8240);t.exports=n.Util.extend(o.class,{Nominatim:s.class,nominatim:s.factory,Bing:r.class,bing:r.factory,MapQuest:a.class,mapQuest:a.factory,Mapbox:l.class,mapbox:l.factory,What3Words:h.class,what3words:h.factory,Google:u.class,google:u.factory,Photon:c.class,photon:c.factory,Mapzen:d.class,mapzen:d.factory,ArcGis:p.class,arcgis:p.factory,HERE:_.class,here:_.factory}),n.Util.extend(n.Control,{Geocoder:t.exports,geocoder:o.factory})},8026:(t,e,i)=>{var n=i(5243),o=0,s=function(){var t=/[&<>"'`]/g,e=/[&<>"'`]/,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};function n(t){return i[t]}return function(i){return null==i?"":i?(i=""+i,e.test(i)?i.replace(t,n):i):i+""}}();t.exports={jsonp:function(t,e,i,s,r){var a="_l_geocoder_"+o++;e[r||"callback"]=a,window[a]=n.Util.bind(i,s);var l=document.createElement("script");l.type="text/javascript",l.src=t+n.Util.getParamString(e),l.id=a,document.getElementsByTagName("head")[0].appendChild(l)},getJSON:function(t,e,i){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&(200===o.status||304===o.status?i(JSON.parse(o.response)):i(""))},o.open("GET",t+n.Util.getParamString(e),!0),o.setRequestHeader("Accept","application/json"),o.send(null)},template:function(t,e){return t.replace(/\{ *([\w_]+) *\}/g,(function(t,i){var n=e[i];return void 0===n?n="":"function"==typeof n&&(n=n(e)),s(n)}))},htmlEscape:s}},6361:()=>{!function(){"use strict";L.Routing=L.Routing||{},L.Routing.Autocomplete=L.Class.extend({options:{timeout:500,blurTimeout:100,noResultsMessage:"No results found."},initialize:function(t,e,i,n){L.setOptions(this,n),this._elem=t,this._resultFn=n.resultFn?L.Util.bind(n.resultFn,n.resultContext):null,this._autocomplete=n.autocompleteFn?L.Util.bind(n.autocompleteFn,n.autocompleteContext):null,this._selectFn=L.Util.bind(e,i),this._container=L.DomUtil.create("div","leaflet-routing-geocoder-result"),this._resultTable=L.DomUtil.create("table","",this._container),L.DomEvent.addListener(this._elem,"input",this._keyPressed,this),L.DomEvent.addListener(this._elem,"keypress",this._keyPressed,this),L.DomEvent.addListener(this._elem,"keydown",this._keyDown,this),L.DomEvent.addListener(this._elem,"blur",(function(){this._isOpen&&this.close()}),this)},close:function(){L.DomUtil.removeClass(this._container,"leaflet-routing-geocoder-result-open"),this._isOpen=!1},_open:function(){var t=this._elem.getBoundingClientRect();if(!this._container.parentElement){var e=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,i=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;this._container.style.left=t.left+e+"px",this._container.style.top=t.bottom+i+"px",this._container.style.width=t.right-t.left+"px",document.body.appendChild(this._container)}L.DomUtil.addClass(this._container,"leaflet-routing-geocoder-result-open"),this._isOpen=!0},_setResults:function(t){var e,i,n,o;for(delete this._selection,this._results=t;this._resultTable.firstChild;)this._resultTable.removeChild(this._resultTable.firstChild);for(e=0;e<t.length;e++)(i=L.DomUtil.create("tr","",this._resultTable)).setAttribute("data-result-index",e),n=L.DomUtil.create("td","",i),o=document.createTextNode(t[e].name),n.appendChild(o),L.DomEvent.addListener(n,"mousedown",L.DomEvent.preventDefault),L.DomEvent.addListener(n,"click",this._createClickListener(t[e]));e||(i=L.DomUtil.create("tr","",this._resultTable),(n=L.DomUtil.create("td","leaflet-routing-geocoder-no-results",i)).innerHTML=this.options.noResultsMessage),this._open(),t.length>0&&this._select(1)},_createClickListener:function(t){var e=this._resultSelected(t);return L.bind((function(){this._elem.blur(),e()}),this)},_resultSelected:function(t){return L.bind((function(){this.close(),this._elem.value=t.name,this._lastCompletedText=t.name,this._selectFn(t)}),this)},_keyPressed:function(t){var e;return this._isOpen&&13===t.keyCode&&this._selection?(e=parseInt(this._selection.getAttribute("data-result-index"),10),this._resultSelected(this._results[e])(),void L.DomEvent.preventDefault(t)):13!==t.keyCode?this._autocomplete&&document.activeElement===this._elem?(this._timer&&clearTimeout(this._timer),void(this._timer=setTimeout(L.Util.bind((function(){this._complete(this._autocomplete)}),this),this.options.timeout))):void this._unselect():void this._complete(this._resultFn,!0)},_select:function(t){var e=this._selection;e&&(L.DomUtil.removeClass(e.firstChild,"leaflet-routing-geocoder-selected"),e=e[t>0?"nextSibling":"previousSibling"]),e||(e=this._resultTable[t>0?"firstChild":"lastChild"]),e&&(L.DomUtil.addClass(e.firstChild,"leaflet-routing-geocoder-selected"),this._selection=e)},_unselect:function(){this._selection&&L.DomUtil.removeClass(this._selection.firstChild,"leaflet-routing-geocoder-selected"),delete this._selection},_keyDown:function(t){if(this._isOpen)switch(t.keyCode){case 27:return this.close(),void L.DomEvent.preventDefault(t);case 38:return this._select(-1),void L.DomEvent.preventDefault(t);case 40:return this._select(1),void L.DomEvent.preventDefault(t)}},_complete:function(t,e){var i=this._elem.value;function n(t){this._lastCompletedText=i,e&&1===t.length?this._resultSelected(t[0])():this._setResults(t)}i&&(i!==this._lastCompletedText?t(i,n,this):e&&n.call(this,this._results))}})}()},9712:(t,e,i)=>{!function(){"use strict";var e=i(5243);e.Routing=e.Routing||{},e.extend(e.Routing,i(7423)),e.extend(e.Routing,i(5041)),e.extend(e.Routing,i(2031)),e.extend(e.Routing,i(7497)),e.extend(e.Routing,i(6094)),e.extend(e.Routing,i(5974)),e.Routing.Control=e.Routing.Itinerary.extend({options:{fitSelectedRoutes:"smart",routeLine:function(t,i){return e.Routing.line(t,i)},autoRoute:!0,routeWhileDragging:!1,routeDragInterval:500,waypointMode:"connect",showAlternatives:!1,defaultErrorHandler:function(t){console.error("Routing error:",t.error)}},initialize:function(t){e.Util.setOptions(this,t),this._router=this.options.router||new e.Routing.OSRMv1(t),this._plan=this.options.plan||e.Routing.plan(this.options.waypoints,t),this._requestCount=0,e.Routing.Itinerary.prototype.initialize.call(this,t),this.on("routeselected",this._routeSelected,this),this.options.defaultErrorHandler&&this.on("routingerror",this.options.defaultErrorHandler),this._plan.on("waypointschanged",this._onWaypointsChanged,this),t.routeWhileDragging&&this._setupRouteDragging(),this.options.autoRoute&&this.route()},onAdd:function(t){var i=e.Routing.Itinerary.prototype.onAdd.call(this,t);return this._map=t,this._map.addLayer(this._plan),this._map.on("zoomend",(function(){if(this._selectedRoute&&this._router.requiresMoreDetail){var t=this._map;this._router.requiresMoreDetail(this._selectedRoute,t.getZoom(),t.getBounds())&&this.route({callback:e.bind((function(t,e){var i;if(!t){for(i=0;i<e.length;i++)this._routes[i].properties=e[i].properties;this._updateLineCallback(t,e)}}),this),simplifyGeometry:!1,geometryOnly:!0})}}),this),this._plan.options.geocoder&&i.insertBefore(this._plan.createGeocoders(),i.firstChild),i},onRemove:function(t){return this._line&&t.removeLayer(this._line),t.removeLayer(this._plan),e.Routing.Itinerary.prototype.onRemove.call(this,t)},getWaypoints:function(){return this._plan.getWaypoints()},setWaypoints:function(t){return this._plan.setWaypoints(t),this},spliceWaypoints:function(){var t=this._plan.spliceWaypoints.apply(this._plan,arguments);return t},getPlan:function(){return this._plan},getRouter:function(){return this._router},_routeSelected:function(t){var e=this._selectedRoute=t.route,i=this.options.showAlternatives&&t.alternatives,n=this.options.fitSelectedRoutes,o="smart"===n&&!this._waypointsVisible()||"smart"!==n&&n;this._updateLines({route:e,alternatives:i}),o&&this._map.fitBounds(this._line.getBounds()),"snap"===this.options.waypointMode&&(this._plan.off("waypointschanged",this._onWaypointsChanged,this),this.setWaypoints(e.waypoints),this._plan.on("waypointschanged",this._onWaypointsChanged,this))},_waypointsVisible:function(){var t,i,n,o,s,r=this.getWaypoints();try{for(t=this._map.getSize(),o=0;o<r.length;o++)s=this._map.latLngToLayerPoint(r[o].latLng),i?i.extend(s):i=e.bounds([s]);
1return((n=i.getSize()).x>t.x/5||n.y>t.y/5)&&this._waypointsInViewport()}catch(t){return!1}},_waypointsInViewport:function(){var t,e,i=this.getWaypoints();try{t=this._map.getBounds()}catch(t){return!1}for(e=0;e<i.length;e++)if(t.contains(i[e].latLng))return!0;return!1},_updateLines:function(t){var i=void 0===this.options.addWaypoints||this.options.addWaypoints;this._clearLines(),this._alternatives=[],t.alternatives&&t.alternatives.forEach((function(t,i){this._alternatives[i]=this.options.routeLine(t,e.extend({isAlternative:!0},this.options.altLineOptions||this.options.lineOptions)),this._alternatives[i].addTo(this._map),this._hookAltEvents(this._alternatives[i])}),this),this._line=this.options.routeLine(t.route,e.extend({addWaypoints:i,extendToWaypoints:"connect"===this.options.waypointMode},this.options.lineOptions)),this._line.addTo(this._map),this._hookEvents(this._line)},_hookEvents:function(t){t.on("linetouched",(function(t){this._plan.dragNewWaypoint(t)}),this)},_hookAltEvents:function(t){t.on("linetouched",(function(t){var e=this._routes.slice(),i=e.splice(t.target._route.routesIndex,1)[0];this.fire("routeselected",{route:i,alternatives:e})}),this)},_onWaypointsChanged:function(t){this.options.autoRoute&&this.route({}),this._plan.isReady()||(this._clearLines(),this._clearAlts()),this.fire("waypointschanged",{waypoints:t.waypoints})},_setupRouteDragging:function(){var t,i=0;this._plan.on("waypointdrag",e.bind((function(n){t=n.waypoints,i||(i=setTimeout(e.bind((function(){this.route({waypoints:t,geometryOnly:!0,callback:e.bind(this._updateLineCallback,this)}),i=void 0}),this),this.options.routeDragInterval))}),this)),this._plan.on("waypointdragend",(function(){i&&(clearTimeout(i),i=void 0),this.route()}),this)},_updateLineCallback:function(t,e){if(t)this._clearLines();else{var i=(e=e.slice()).splice(this._selectedRoute.routesIndex,1)[0];this._updateLines({route:i,alternatives:e})}},route:function(t){var e,i=++this._requestCount;t=t||{},this._plan.isReady()&&(this.options.useZoomParameter&&(t.z=this._map&&this._map.getZoom()),e=t&&t.waypoints||this._plan.getWaypoints(),this.fire("routingstart",{waypoints:e}),this._router.route(e,t.callback||function(n,o){if(i===this._requestCount){if(this._clearLines(),this._clearAlts(),n)return void this.fire("routingerror",{error:n});if(o.forEach((function(t,e){t.routesIndex=e})),t.geometryOnly){var s=o.splice(0,1)[0];this._routeSelected({route:s,alternatives:o})}else this.fire("routesfound",{waypoints:e,routes:o}),this.setAlternatives(o)}},this,t))},_clearLines:function(){if(this._line&&(this._map.removeLayer(this._line),delete this._line),this._alternatives&&this._alternatives.length){for(var t in this._alternatives)this._map.removeLayer(this._alternatives[t]);this._alternatives=[]}}}),e.Routing.control=function(t){return new e.Routing.Control(t)},t.exports=e.Routing}()},5974:()=>{!function(){"use strict";L.Routing=L.Routing||{},L.Routing.ErrorControl=L.Control.extend({options:{header:"Routing error",formatMessage:function(t){return t.status<0?"Calculating the route caused an error. Technical description follows: <code><pre>"+t.message+"</pre></code":"The route could not be calculated. "+t.message}},initialize:function(t,e){L.Control.prototype.initialize.call(this,e),t.on("routingerror",L.bind((function(t){this._element&&(this._element.children[1].innerHTML=this.options.formatMessage(t.error),this._element.style.visibility="visible")}),this)).on("routingstart",L.bind((function(){this._element&&(this._element.style.visibility="hidden")}),this))},onAdd:function(){var t;return this._element=L.DomUtil.create("div","leaflet-bar leaflet-routing-error"),this._element.style.visibility="hidden",t=L.DomUtil.create("h3",null,this._element),L.DomUtil.create("span",null,this._element),t.innerHTML=this.options.header,this._element},onRemove:function(){delete this._element}}),L.Routing.errorControl=function(t,e){return new L.Routing.ErrorControl(t,e)}}()},9059:(t,e,i)=>{!function(){"use strict";var e=i(5243);e.Routing=e.Routing||{},e.extend(e.Routing,i(2616)),e.Routing.Formatter=e.Class.extend({options:{units:"metric",unitNames:null,language:"en",roundingSensitivity:1,distanceTemplate:"{value} {unit}"},initialize:function(t){e.setOptions(this,t);var i=e.Util.isArray(this.options.language)?this.options.language:[this.options.language,"en"];this._localization=new e.Routing.Localization(i)},formatDistance:function(t,i){var n,o,s,r=this.options.unitNames||this._localization.localize("units"),a=i<=0,l=a?function(t){return t}:e.bind(this._round,this);return s="imperial"===this.options.units?(o=t/.9144)>=1e3?{value:l(t/1609.344,i),unit:r.miles}:{value:l(o,i),unit:r.yards}:{value:(n=l(t,i))>=1e3?n/1e3:n,unit:n>=1e3?r.kilometers:r.meters},a&&(s.value=s.value.toFixed(-i)),e.Util.template(this.options.distanceTemplate,s)},_round:function(t,e){var i=e||this.options.roundingSensitivity,n=Math.pow(10,(Math.floor(t/i)+"").length-1),o=Math.floor(t/n)>5?n:n/2;return Math.round(t/o)*o},formatTime:function(t){var e=this.options.unitNames||this._localization.localize("units");return(t=30*Math.round(t/30))>86400?Math.round(t/3600)+" "+e.hours:t>3600?Math.floor(t/3600)+" "+e.hours+" "+Math.round(t%3600/60)+" "+e.minutes:t>300?Math.round(t/60)+" "+e.minutes:t>60?Math.floor(t/60)+" "+e.minutes+(t%60!=0?" "+t%60+" "+e.seconds:""):t+" "+e.seconds},formatInstruction:function(t,i){return void 0===t.text?this.capitalize(e.Util.template(this._getInstructionTemplate(t,i),e.extend({},t,{exitStr:t.exit?this._localization.localize("formatOrder")(t.exit):"",dir:this._localization.localize(["directions",t.direction]),modifier:this._localization.localize(["directions",t.modifier])}))):t.text},getIconName:function(t,e){switch(t.type){case"Head":if(0===e)return"depart";break;case"WaypointReached":return"via";
1case"Roundabout":return"enter-roundabout";case"DestinationReached":return"arrive"}switch(t.modifier){case"Straight":return"continue";case"SlightRight":return"bear-right";case"Right":return"turn-right";case"SharpRight":return"sharp-right";case"TurnAround":case"Uturn":return"u-turn";case"SharpLeft":return"sharp-left";case"Left":return"turn-left";case"SlightLeft":return"bear-left"}},capitalize:function(t){return t.charAt(0).toUpperCase()+t.substring(1)},_getInstructionTemplate:function(t,e){var i="Straight"===t.type?0===e?"Head":"Continue":t.type,n=this._localization.localize(["instructions",i]);return n||(n=[this._localization.localize(["directions",i])," "+this._localization.localize(["instructions","Onto"])]),n[0]+(n.length>1&&t.road?n[1]:"")}}),t.exports=e.Routing}()},8993:(t,e,i)=>{!function(){"use strict";var e=i(5243);function n(t){t.setSelectionRange?t.setSelectionRange(0,9999):t.select()}e.Routing=e.Routing||{},e.extend(e.Routing,i(6361)),e.Routing.GeocoderElement=e.Class.extend({includes:e.Mixin.Events,options:{createGeocoder:function(t,i,n){var o=e.DomUtil.create("div","leaflet-routing-geocoder"),s=e.DomUtil.create("input","",o),r=n.addWaypoints?e.DomUtil.create("span","leaflet-routing-remove-waypoint",o):void 0;return s.disabled=!n.addWaypoints,{container:o,input:s,closeButton:r}},geocoderPlaceholder:function(t,i,n){var o=new e.Routing.Localization(n.options.language).localize("ui");return 0===t?o.startPlaceholder:t<i-1?e.Util.template(o.viaPlaceholder,{viaNumber:t}):o.endPlaceholder},geocoderClass:function(){return""},waypointNameFallback:function(t){var e=t.lat<0?"S":"N",i=t.lng<0?"W":"E";return e+(Math.round(1e4*Math.abs(t.lat))/1e4).toString()+", "+i+(Math.round(1e4*Math.abs(t.lng))/1e4).toString()},maxGeocoderTolerance:200,autocompleteOptions:{},language:"en"},initialize:function(t,i,o,s){e.setOptions(this,s);var r=this.options.createGeocoder(i,o,this.options),a=r.closeButton,l=r.input;l.setAttribute("placeholder",this.options.geocoderPlaceholder(i,o,this)),l.className=this.options.geocoderClass(i,o),this._element=r,this._waypoint=t,this.update(),l.value=t.name,e.DomEvent.addListener(l,"click",(function(){n(this)}),l),a&&e.DomEvent.addListener(a,"click",(function(){this.fire("delete",{waypoint:this._waypoint})}),this),new e.Routing.Autocomplete(l,(function(e){l.value=e.name,t.name=e.name,t.latLng=e.center,this.fire("geocoded",{waypoint:t,value:e})}),this,e.extend({resultFn:this.options.geocoder.geocode,resultContext:this.options.geocoder,autocompleteFn:this.options.geocoder.suggest,autocompleteContext:this.options.geocoder},this.options.autocompleteOptions))},getContainer:function(){return this._element.container},setValue:function(t){this._element.input.value=t},update:function(t){var e,i=this._waypoint;i.name=i.name||"",!i.latLng||!t&&i.name||(e=this.options.waypointNameFallback(i.latLng),this.options.geocoder&&this.options.geocoder.reverse?this.options.geocoder.reverse(i.latLng,67108864,(function(t){t.length>0&&t[0].center.distanceTo(i.latLng)<this.options.maxGeocoderTolerance?i.name=t[0].name:i.name=e,this._update()}),this):(i.name=e,this._update()))},focus:function(){var t=this._element.input;t.focus(),n(t)},_update:function(){var t=this._waypoint,e=t&&t.name?t.name:"";this.setValue(e),this.fire("reversegeocoded",{waypoint:t,value:e})}}),e.Routing.geocoderElement=function(t,i,n,o){return new e.Routing.GeocoderElement(t,i,n,o)},t.exports=e.Routing}()},7423:(t,e,i)=>{!function(){"use strict";var e=i(5243);e.Routing=e.Routing||{},e.extend(e.Routing,i(9059)),e.extend(e.Routing,i(8800)),e.Routing.Itinerary=e.Control.extend({includes:e.Mixin.Events,options:{pointMarkerStyle:{radius:5,color:"#03f",fillColor:"white",opacity:1,fillOpacity:.7},summaryTemplate:"<h2>{name}</h2><h3>{distance}, {time}</h3>",timeTemplate:"{time}",containerClassName:"",alternativeClassName:"",minimizedClassName:"",itineraryClassName:"",totalDistanceRoundingSensitivity:-1,show:!0,collapsible:void 0,collapseBtn:function(t){var i=e.DomUtil.create("span",t.options.collapseBtnClass);e.DomEvent.on(i,"click",t._toggle,t),t._container.insertBefore(i,t._container.firstChild)},collapseBtnClass:"leaflet-routing-collapse-btn"},initialize:function(t){e.setOptions(this,t),this._formatter=this.options.formatter||new e.Routing.Formatter(this.options),this._itineraryBuilder=this.options.itineraryBuilder||new e.Routing.ItineraryBuilder({containerClassName:this.options.itineraryClassName})},onAdd:function(t){var i=this.options.collapsible;return i=i||void 0===i&&t.getSize().x<=640,this._container=e.DomUtil.create("div","leaflet-routing-container leaflet-bar "+(this.options.show?"":"leaflet-routing-container-hide ")+(i?"leaflet-routing-collapsible ":"")+this.options.containerClassName),this._altContainer=this.createAlternativesContainer(),this._container.appendChild(this._altContainer),e.DomEvent.disableClickPropagation(this._container),e.DomEvent.addListener(this._container,"mousewheel",(function(t){e.DomEvent.stopPropagation(t)})),i&&this.options.collapseBtn(this),this._container},onRemove:function(){},createAlternativesContainer:function(){return e.DomUtil.create("div","leaflet-routing-alternatives-container")},setAlternatives:function(t){var e,i,n;for(this._clearAlts(),this._routes=t,e=0;e<this._routes.length;e++)i=this._routes[e],n=this._createAlternative(i,e),this._altContainer.appendChild(n),this._altElements.push(n);return this._selectRoute({route:this._routes[0],alternatives:this._routes.slice(1)}),this},show:function(){e.DomUtil.removeClass(this._container,"leaflet-routing-container-hide")},hide:function(){e.DomUtil.addClass(this._container,"leaflet-routing-container-hide")},_toggle:function(){this[e.DomUtil.hasClass(this._container,"leaflet-routing-container-hide")?"
1show":"hide"]()},_createAlternative:function(t,i){var n=e.DomUtil.create("div","leaflet-routing-alt "+this.options.alternativeClassName+(i>0?" leaflet-routing-alt-minimized "+this.options.minimizedClassName:"")),o=this.options.summaryTemplate,s=e.extend({name:t.name,distance:this._formatter.formatDistance(t.summary.totalDistance,this.options.totalDistanceRoundingSensitivity),time:this._formatter.formatTime(t.summary.totalTime)},t);return n.innerHTML="function"==typeof o?o(s):e.Util.template(o,s),e.DomEvent.addListener(n,"click",this._onAltClicked,this),this.on("routeselected",this._selectAlt,this),n.appendChild(this._createItineraryContainer(t)),n},_clearAlts:function(){for(var t=this._altContainer;t&&t.firstChild;)t.removeChild(t.firstChild);this._altElements=[]},_createItineraryContainer:function(t){var e,i,n,o,s,r,a=this._itineraryBuilder.createContainer(),l=this._itineraryBuilder.createStepsContainer();for(a.appendChild(l),e=0;e<t.instructions.length;e++)i=t.instructions[e],s=this._formatter.formatInstruction(i,e),o=this._formatter.formatDistance(i.distance),r=this._formatter.getIconName(i,e),n=this._itineraryBuilder.createStep(s,o,r,l),this._addRowListeners(n,t.coordinates[i.index]);return a},_addRowListeners:function(t,i){e.DomEvent.addListener(t,"mouseover",(function(){this._marker=e.circleMarker(i,this.options.pointMarkerStyle).addTo(this._map)}),this),e.DomEvent.addListener(t,"mouseout",(function(){this._marker&&(this._map.removeLayer(this._marker),delete this._marker)}),this),e.DomEvent.addListener(t,"click",(function(t){this._map.panTo(i),e.DomEvent.stopPropagation(t)}),this)},_onAltClicked:function(t){for(var i=t.target||window.event.srcElement;!e.DomUtil.hasClass(i,"leaflet-routing-alt");)i=i.parentElement;var n=this._altElements.indexOf(i),o=this._routes.slice(),s=o.splice(n,1)[0];this.fire("routeselected",{route:s,alternatives:o})},_selectAlt:function(t){var i,n,o,s;if(i=this._altElements[t.route.routesIndex],e.DomUtil.hasClass(i,"leaflet-routing-alt-minimized"))for(n=0;n<this._altElements.length;n++)o=this._altElements[n],s=n===t.route.routesIndex?"removeClass":"addClass",e.DomUtil[s](o,"leaflet-routing-alt-minimized"),this.options.minimizedClassName&&e.DomUtil[s](o,this.options.minimizedClassName),n!==t.route.routesIndex&&(o.scrollTop=0);e.DomEvent.stop(t)},_selectRoute:function(t){this._marker&&(this._map.removeLayer(this._marker),delete this._marker),this.fire("routeselected",t)}}),e.Routing.itinerary=function(t){return new e.Routing.Itinerary(t)},t.exports=e.Routing}()},8800:(t,e,i)=>{!function(){"use strict";var e=i(5243);e.Routing=e.Routing||{},e.Routing.ItineraryBuilder=e.Class.extend({options:{containerClassName:""},initialize:function(t){e.setOptions(this,t)},createContainer:function(t){var i=e.DomUtil.create("table",t||""),n=e.DomUtil.create("colgroup","",i);return e.DomUtil.create("col","leaflet-routing-instruction-icon",n),e.DomUtil.create("col","leaflet-routing-instruction-text",n),e.DomUtil.create("col","leaflet-routing-instruction-distance",n),i},createStepsContainer:function(){return e.DomUtil.create("tbody","")},createStep:function(t,i,n,o){var s,r,a=e.DomUtil.create("tr","",o);return r=e.DomUtil.create("td","",a),s=e.DomUtil.create("span","leaflet-routing-icon leaflet-routing-icon-"+n,r),r.appendChild(s),(r=e.DomUtil.create("td","",a)).appendChild(document.createTextNode(t)),(r=e.DomUtil.create("td","",a)).appendChild(document.createTextNode(i)),a}}),t.exports=e.Routing}()},5041:(t,e,i)=>{!function(){"use strict";var e=i(5243);e.Routing=e.Routing||{},e.Routing.Line=e.LayerGroup.extend({includes:e.Mixin.Events,options:{styles:[{color:"black",opacity:.15,weight:9},{color:"white",opacity:.8,weight:6},{color:"red",opacity:1,weight:2}],missingRouteStyles:[{color:"black",opacity:.15,weight:7},{color:"white",opacity:.6,weight:4},{color:"gray",opacity:.8,weight:2,dashArray:"7,12"}],addWaypoints:!0,extendToWaypoints:!0,missingRouteTolerance:10},initialize:function(t,i){e.setOptions(this,i),e.LayerGroup.prototype.initialize.call(this,i),this._route=t,this.options.extendToWaypoints&&this._extendToWaypoints(),this._addSegment(t.coordinates,this.options.styles,this.options.addWaypoints)},getBounds:function(){return e.latLngBounds(this._route.coordinates)},_findWaypointIndices:function(){var t,e=this._route.inputWaypoints,i=[];for(t=0;t<e.length;t++)i.push(this._findClosestRoutePoint(e[t].latLng));return i},_findClosestRoutePoint:function(t){var e,i,n,o=Number.MAX_VALUE;for(i=this._route.coordinates.length-1;i>=0;i--)(n=t.distanceTo(this._route.coordinates[i]))<o&&(e=i,o=n);return e},_extendToWaypoints:function(){var t,i,n,o=this._route.inputWaypoints,s=this._getWaypointIndices();for(t=0;t<o.length;
1t++)i=o[t].latLng,n=e.latLng(this._route.coordinates[s[t]]),i.distanceTo(n)>this.options.missingRouteTolerance&&this._addSegment([i,n],this.options.missingRouteStyles)},_addSegment:function(t,i,n){var o,s;for(o=0;o<i.length;o++)s=e.polyline(t,i[o]),this.addLayer(s),n&&s.on("mousedown",this._onLineTouched,this)},_findNearestWpBefore:function(t){for(var e=this._getWaypointIndices(),i=e.length-1;i>=0&&e[i]>t;)i--;return i},_onLineTouched:function(t){var e=this._findNearestWpBefore(this._findClosestRoutePoint(t.latlng));this.fire("linetouched",{afterIndex:e,latlng:t.latlng})},_getWaypointIndices:function(){return this._wpIndices||(this._wpIndices=this._route.waypointIndices||this._findWaypointIndices()),this._wpIndices}}),e.Routing.line=function(t,i){return new e.Routing.Line(t,i)},t.exports=e.Routing}()},2616:t=>{!function(){"use strict";L.Routing=L.Routing||{},L.Routing.Localization=L.Class.extend({initialize:function(t){this._langs=L.Util.isArray(t)?t:[t,"en"];for(var e=0,i=this._langs.length;e<i;e++)if(!L.Routing.Localization[this._langs[e]])throw new Error('No localization for language "'+this._langs[e]+'".')},localize:function(t){var e,i;t=L.Util.isArray(t)?t:[t];for(var n=0,o=this._langs.length;n<o;n++){e=L.Routing.Localization[this._langs[n]];for(var s=0,r=t.length;e&&s<r;s++)e=i=e[t[s]];if(i)return i}}}),L.Routing.Localization=L.extend(L.Routing.Localization,{en:{directions:{N:"north",NE:"northeast",E:"east",SE:"southeast",S:"south",SW:"southwest",W:"west",NW:"northwest",SlightRight:"slight right",Right:"right",SharpRight:"sharp right",SlightLeft:"slight left",Left:"left",SharpLeft:"sharp left"},instructions:{Head:["Head {dir}"," on {road}"],Continue:["Continue {dir}"],TurnAround:["Turn around"],WaypointReached:["Waypoint reached"],Roundabout:["Take the {exitStr} exit in the roundabout"," onto {road}"],DestinationReached:["Destination reached"],Fork:["At the fork, turn {modifier}"," onto {road}"],Merge:["Merge {modifier}"," onto {road}"],OnRamp:["Turn {modifier} on the ramp"," onto {road}"],OffRamp:["Take the ramp on the {modifier}"," onto {road}"],EndOfRoad:["Turn {modifier} at the end of the road"," onto {road}"],Onto:"onto {road}"},formatOrder:function(t){var e=t%10-1,i=["st","nd","rd"];return i[e]?t+i[e]:t+"th"},ui:{startPlaceholder:"Start",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"End"},units:{meters:"m",kilometers:"km",yards:"yd",miles:"mi",hours:"h",minutes:"mín",seconds:"s"}},de:{directions:{N:"Norden",NE:"Nordosten",E:"Osten",SE:"Südosten",S:"Süden",SW:"Südwesten",W:"Westen",NW:"Nordwesten"},instructions:{Head:["Richtung {dir}"," auf {road}"],Continue:["Geradeaus Richtung {dir}"," auf {road}"],SlightRight:["Leicht rechts abbiegen"," auf {road}"],Right:["Rechts abbiegen"," auf {road}"],SharpRight:["Scharf rechts abbiegen"," auf {road}"],TurnAround:["Wenden"],SharpLeft:["Scharf links abbiegen"," auf {road}"],Left:["Links abbiegen"," auf {road}"],SlightLeft:["Leicht links abbiegen"," auf {road}"],WaypointReached:["Zwischenhalt erreicht"],Roundabout:["Nehmen Sie die {exitStr} Ausfahrt im Kreisverkehr"," auf {road}"],DestinationReached:["Sie haben ihr Ziel erreicht"]},formatOrder:function(t){return t+"."},ui:{startPlaceholder:"Start",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Ziel"}},sv:{directions:{N:"norr",NE:"nordost",E:"öst",SE:"sydost",S:"syd",SW:"sydväst",W:"väst",NW:"nordväst",SlightRight:"svagt höger",Right:"höger",SharpRight:"skarpt höger",SlightLeft:"svagt vänster",Left:"vänster",SharpLeft:"skarpt vänster"},instructions:{Head:["Åk åt {dir}"," till {road}"],Continue:["Fortsätt {dir}"],SlightRight:["Svagt höger"," till {road}"],Right:["Sväng höger"," till {road}"],SharpRight:["Skarpt höger"," till {road}"],TurnAround:["Vänd"],SharpLeft:["Skarpt vänster"," till {road}"],Left:["Sväng vänster"," till {road}"],SlightLeft:["Svagt vänster"," till {road}"],WaypointReached:["Viapunkt nådd"],Roundabout:["Tag {exitStr} avfarten i rondellen"," till {road}"],DestinationReached:["Framme vid resans mål"],Fork:["Tag av {modifier}"," till {road}"],Merge:["Anslut {modifier} "," till {road}"],OnRamp:["Tag påfarten {modifier}"," till {road}"],OffRamp:["Tag avfarten {modifier}"," till {road}"],EndOfRoad:["Sväng {modifier} vid vägens slut"," till {road}"],Onto:"till {road}"}
1,formatOrder:function(t){return["första","andra","tredje","fjärde","femte","sjätte","sjunde","åttonde","nionde","tionde"][t-1]},ui:{startPlaceholder:"Från",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Till"}},sp:{directions:{N:"norte",NE:"noreste",E:"este",SE:"sureste",S:"sur",SW:"suroeste",W:"oeste",NW:"noroeste"},instructions:{Head:["Derecho {dir}"," sobre {road}"],Continue:["Continuar {dir}"," en {road}"],SlightRight:["Leve giro a la derecha"," sobre {road}"],Right:["Derecha"," sobre {road}"],SharpRight:["Giro pronunciado a la derecha"," sobre {road}"],TurnAround:["Dar vuelta"],SharpLeft:["Giro pronunciado a la izquierda"," sobre {road}"],Left:["Izquierda"," en {road}"],SlightLeft:["Leve giro a la izquierda"," en {road}"],WaypointReached:["Llegó a un punto del camino"],Roundabout:["Tomar {exitStr} salida en la rotonda"," en {road}"],DestinationReached:["Llegada a destino"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Inicio",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Destino"}},nl:{directions:{N:"noordelijke",NE:"noordoostelijke",E:"oostelijke",SE:"zuidoostelijke",S:"zuidelijke",SW:"zuidewestelijke",W:"westelijke",NW:"noordwestelijke"},instructions:{Head:["Vertrek in {dir} richting"," de {road} op"],Continue:["Ga in {dir} richting"," de {road} op"],SlightRight:["Volg de weg naar rechts"," de {road} op"],Right:["Ga rechtsaf"," de {road} op"],SharpRight:["Ga scherpe bocht naar rechts"," de {road} op"],TurnAround:["Keer om"],SharpLeft:["Ga scherpe bocht naar links"," de {road} op"],Left:["Ga linksaf"," de {road} op"],SlightLeft:["Volg de weg naar links"," de {road} op"],WaypointReached:["Aangekomen bij tussenpunt"],Roundabout:["Neem de {exitStr} afslag op de rotonde"," de {road} op"],DestinationReached:["Aangekomen op eindpunt"]},formatOrder:function(t){return 1===t||t>=20?t+"ste":t+"de"},ui:{startPlaceholder:"Vertrekpunt",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Bestemming"}},fr:{directions:{N:"nord",NE:"nord-est",E:"est",SE:"sud-est",S:"sud",SW:"sud-ouest",W:"ouest",NW:"nord-ouest"},instructions:{Head:["Tout droit au {dir}"," sur {road}"],Continue:["Continuer au {dir}"," sur {road}"],SlightRight:["Légèrement à droite"," sur {road}"],Right:["A droite"," sur {road}"],SharpRight:["Complètement à droite"," sur {road}"],TurnAround:["Faire demi-tour"],SharpLeft:["Complètement à gauche"," sur {road}"],Left:["A gauche"," sur {road}"],SlightLeft:["Légèrement à gauche"," sur {road}"],WaypointReached:["Point d'étape atteint"],Roundabout:["Au rond-point, prenez la {exitStr} sortie"," sur {road}"],DestinationReached:["Destination atteinte"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Départ",viaPlaceholder:"Intermédiaire {viaNumber}",endPlaceholder:"Arrivée"}},it:{directions:{N:"nord",NE:"nord-est",E:"est",SE:"sud-est",S:"sud",SW:"sud-ovest",W:"ovest",NW:"nord-ovest"},instructions:{Head:["Dritto verso {dir}"," su {road}"],Continue:["Continuare verso {dir}"," su {road}"],SlightRight:["Mantenere la destra"," su {road}"],Right:["A destra"," su {road}"],SharpRight:["Strettamente a destra"," su {road}"],TurnAround:["Fare inversione di marcia"],SharpLeft:["Strettamente a sinistra"," su {road}"],Left:["A sinistra"," sur {road}"],SlightLeft:["Mantenere la sinistra"," su {road}"],WaypointReached:["Punto di passaggio raggiunto"],Roundabout:["Alla rotonda, prendere la {exitStr} uscita"],DestinationReached:["Destinazione raggiunta"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Partenza",viaPlaceholder:"Intermedia {viaNumber}",endPlaceholder:"Destinazione"}},pt:{directions:{N:"norte",NE:"nordeste",E:"leste",SE:"sudeste",S:"sul",SW:"sudoeste",W:"oeste",NW:"noroeste"},instructions:{Head:["Siga {dir}"," na {road}"],Continue:["Continue {dir}"," na {road}"],SlightRight:["Curva ligeira a direita"," na {road}"],Right:["Curva a direita"," na {road}"],SharpRight:["Curva fechada a direita"," na {road}"],TurnAround:["Retorne"],SharpLeft:["Curva fechada a esquerda"," na {road}"],Left:["Curva a esquerda"," na {road}"],SlightLeft:["Curva ligueira a esquerda"," na {road}"],WaypointReached:["Ponto de interesse atingido"],Roundabout:["Pegue a {exitStr} saída na rotatória"," na {road}"],DestinationReached:["Destino atingido"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Origem",viaPlaceholder:"Intermédio {viaNumber}",endPlaceholder:"Destino"}},sk:{directions:{N:"sever",NE:"serverovýchod",E:"východ",SE:"juhovýchod",S:"juh",SW:"juhozápad",W:"západ",NW:"serverozápad"},instructions:{Head:["Mierte na {dir}"," na {road}"],Continue:["Pokračujte na {dir}"," na {road}"],SlightRight:["Mierne doprava"," na {road}"],Right:["Doprava"," na {road}"],SharpRight:["Prudko doprava"," na {road}"],TurnAround:["Otočte sa"],SharpLeft:["Prudko doľava"," na {road}"],Left:["Doľava"," na {road}"],SlightLeft:["Mierne doľava"," na {road}"],WaypointReached:["Ste v prejazdovom bode."],Roundabout:["Odbočte na {exitStr} výjazde"," na {road}"],DestinationReached:["Prišli ste do cieľa."]},formatOrder:function(t){var e=t%10-1,i=[".",".","."];return i[e]?t+i[e]:t+"."},ui:{startPlaceholder:"Začiatok",viaPlaceholder:"Cez {viaNumber}",endPlaceholder:"Koniec"}},el:{directions:{N:"βόρεια",NE:"βορειοανατολικά",E:"ανατολικά",SE:"νοτιοανατολικά",S:"νότια",SW:"νοτιοδυτικά",W:"δυτικά",NW:"βορειοδυτικά"},instructions:{Head:["Κατευθυνθείτε {dir}"," στην {road}"],Continue:["Συνεχίστε {dir}"," στην {road}"],SlightRight:["Ελαφρώς δεξιά"," στην {road}"],Right:["Δεξιά"," στην {road}"],SharpRight:["Απότομη δεξιά στροφή"," στην {road}"],TurnAround:["Κάντε αναστροφή"],SharpLeft:["Απότομη αριστερή στροφή"," στην {road}"],Left:["Αριστερά"," στην {road}"],SlightLeft:["Ελαφρώς αριστερά"," στην {road}"],WaypointReached:["Φτάσατε στο σημείο αναφοράς"],Roundabout:["Ακολουθήστε την {exitStr} έξοδο στο κυκλικό κόμβο"," στην {road}
1"],DestinationReached:["Φτάσατε στον προορισμό σας"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Αφετηρία",viaPlaceholder:"μέσω {viaNumber}",endPlaceholder:"Προορισμός"}}}),t.exports=L.Routing}()},6094:(t,e,i)=>{!function(){"use strict";var e=i(5243);e.Routing=e.Routing||{},e.extend(e.Routing,i(7497)),e.Routing.Mapbox=e.Routing.OSRMv1.extend({options:{serviceUrl:"https://api.mapbox.com/directions/v5",profile:"mapbox/driving",useHints:!1},initialize:function(t,i){e.Routing.OSRMv1.prototype.initialize.call(this,i),this.options.requestParameters=this.options.requestParameters||{},this.options.requestParameters.access_token=t}}),e.Routing.mapbox=function(t,i){return new e.Routing.Mapbox(t,i)},t.exports=e.Routing}()},7497:(t,e,i)=>{!function(){"use strict";var e=i(5243),n=i(1156),o=i(7854);e.Routing=e.Routing||{},e.extend(e.Routing,i(480)),e.Routing.OSRMv1=e.Class.extend({options:{serviceUrl:"https://router.project-osrm.org/route/v1",profile:"driving",timeout:3e4,routingOptions:{alternatives:!0,steps:!0},polylinePrecision:5,useHints:!0},initialize:function(t){e.Util.setOptions(this,t),this._hints={locations:{}}},route:function(t,i,o,s){var r,a,l,h,u=!1,c=[];for(s=e.extend({},this.options.routingOptions,s),r=this.buildRouteUrl(t,s),this.options.requestParameters&&(r+=e.Util.getParamString(this.options.requestParameters,r)),a=setTimeout((function(){u=!0,i.call(o||i,{status:-1,message:"OSRM request timed out."})}),this.options.timeout),h=0;h<t.length;h++)l=t[h],c.push(new e.Routing.Waypoint(l.latLng,l.name,l.options));return n(r,e.bind((function(t,e){var n,r,l;if(clearTimeout(a),!u){if(r="HTTP request failed: "+t,l=-1,!t)try{n=JSON.parse(e.responseText);try{return this._routeDone(n,c,s,i,o)}catch(t){l=-3,r=t.toString()}}catch(t){l=-2,r="Error parsing OSRM response: "+t.toString()}i.call(o||i,{status:l,message:r})}}),this)),this},requiresMoreDetail:function(t,e,i){if(!t.properties.isSimplified)return!1;var n,o=t.inputWaypoints;for(n=0;n<o.length;++n)if(!i.contains(o[n].latLng))return!0;return!1},_routeDone:function(t,e,i,n,o){var s,r,a,l=[];if(o=o||n,"Ok"===t.code){for(s=this._toWaypoints(e,t.waypoints),r=0;r<t.routes.length;r++)(a=this._convertRoute(t.routes[r])).inputWaypoints=e,a.waypoints=s,a.properties={isSimplified:!i||!i.geometryOnly||i.simplifyGeometry},l.push(a);this._saveHintData(t.waypoints,e),n.call(o,null,l)}else n.call(o,{status:t.code})},_convertRoute:function(t){var e,i,n,o,s,r,a,l={name:"",coordinates:[],instructions:[],summary:{totalDistance:t.distance,totalTime:t.duration}},h=[],u=0,c=t.legs.length,d=t.legs[0].steps.length>0;for(e=0;e<c;e++)for(n=t.legs[e],h.push(n.summary&&n.summary.charAt(0).toUpperCase()+n.summary.substring(1)),i=0;i<n.steps.length;i++)o=n.steps[i],s=this._decodePolyline(o.geometry),l.coordinates.push.apply(l.coordinates,s),r=this._maneuverToInstructionType(o.maneuver,e===c-1),a=this._maneuverToModifier(o.maneuver),r&&l.instructions.push({type:r,distance:o.distance,time:o.duration,road:o.name,direction:this._bearingToDirection(o.maneuver.bearing_after),exit:o.maneuver.exit,index:u,mode:o.mode,modifier:a}),u+=s.length;return l.name=h.join(", "),d||(l.coordinates=this._decodePolyline(t.geometry)),l},_bearingToDirection:function(t){return["N","NE","E","SE","S","SW","W","NW"][Math.round(t/45)%8]},_maneuverToInstructionType:function(t,e){switch(t.type){case"new name":return"Continue";case"depart":return"Head";case"arrive":return e?"DestinationReached":"WaypointReached";case"roundabout":case"rotary":return"Roundabout";case"merge":case"fork":case"on ramp":case"off ramp":case"end of road":return this._camelCase(t.type);default:return this._camelCase(t.modifier)}},_maneuverToModifier:function(t){var e=t.modifier;switch(t.type){case"merge":case"fork":case"on ramp":case"off ramp":case"end of road":e=this._leftOrRight(e)}return e&&this._camelCase(e)},_camelCase:function(t){for(var e=t.split(" "),i="",n=0,o=e.length;n<o;n++)i+=e[n].charAt(0).toUpperCase()+e[n].substring(1);return i},_leftOrRight:function(t){return t.indexOf("left")>=0?"Left":"Right"},_decodePolyline:function(t){var i,n=o.decode(t,this.options.polylinePrecision),s=new Array(n.length);for(i=n.length-1;i>=0;i--)s[i]=e.latLng(n[i]);return s},_toWaypoints:function(t,i){var n,o=[];for(n=0;n<i.length;n++)o.push(e.Routing.waypoint(e.latLng(i[n].location),t[n].name,t[n].options));return o},buildRouteUrl:function(t,e){for(var i,n,o=[],s=[],r=0;r<t.length;r++)i=t[r].latLng,o.push(i.lng+","+i.lat),s.push(this._hints.locations[this._locationKey(i)]||"");return n=!(e&&e.geometryOnly),this.options.serviceUrl+"/"+this.options.profile+"/"+o.join(";")+"?"+(e.geometryOnly?e.simplifyGeometry?"":"overview=full":"overview=false")+"&alternatives="+(!0).toString()+"&steps="+n.toString()+(this.options.useHints?"&hints="+s.join(";"):"")+(e.allowUTurns?"&continue_straight="+!e.allowUTurns:"")},_locationKey:function(t){return t.lat+","+t.lng},_saveHintData:function(t,e){var i;this._hints={locations:{}};for(var n=t.length-1;n>=0;n--)i=e[n].latLng,this._hints.locations[this._locationKey(i)]=t[n].hint}}),e.Routing.osrmv1=function(t){return new e.Routing.OSRMv1(t)},t.exports=e.Routing}()},2031:(t,e,i)=>{!function(){"use strict";var e=i(5243);e.Routing=e.Routing||{}
1,e.extend(e.Routing,i(8993)),e.extend(e.Routing,i(480)),e.Routing.Plan=e.Class.extend({includes:e.Mixin.Events,options:{dragStyles:[{color:"black",opacity:.15,weight:9},{color:"white",opacity:.8,weight:6},{color:"red",opacity:1,weight:2,dashArray:"7,12"}],draggableWaypoints:!0,routeWhileDragging:!1,addWaypoints:!0,reverseWaypoints:!1,addButtonClassName:"",language:"en",createGeocoderElement:e.Routing.geocoderElement,createMarker:function(t,i){var n={draggable:this.draggableWaypoints};return e.marker(i.latLng,n)},geocodersClassName:""},initialize:function(t,i){e.Util.setOptions(this,i),this._waypoints=[],this.setWaypoints(t)},isReady:function(){var t;for(t=0;t<this._waypoints.length;t++)if(!this._waypoints[t].latLng)return!1;return!0},getWaypoints:function(){var t,e=[];for(t=0;t<this._waypoints.length;t++)e.push(this._waypoints[t]);return e},setWaypoints:function(t){var e=[0,this._waypoints.length].concat(t);return this.spliceWaypoints.apply(this,e),this},spliceWaypoints:function(){var t,i=[arguments[0],arguments[1]];for(t=2;t<arguments.length;t++)i.push(arguments[t]&&arguments[t].hasOwnProperty("latLng")?arguments[t]:e.Routing.waypoint(arguments[t]));for([].splice.apply(this._waypoints,i);this._waypoints.length<2;)this.spliceWaypoints(this._waypoints.length,0,null);this._updateMarkers(),this._fireChanged.apply(this,i)},onAdd:function(t){this._map=t,this._updateMarkers()},onRemove:function(){var t;if(this._removeMarkers(),this._newWp)for(t=0;t<this._newWp.lines.length;t++)this._map.removeLayer(this._newWp.lines[t]);delete this._map},createGeocoders:function(){var t,i,n=e.DomUtil.create("div","leaflet-routing-geocoders "+this.options.geocodersClassName),o=this._waypoints;return this._geocoderContainer=n,this._geocoderElems=[],this.options.addWaypoints&&((t=e.DomUtil.create("button","leaflet-routing-add-waypoint "+this.options.addButtonClassName,n)).setAttribute("type","button"),e.DomEvent.addListener(t,"click",(function(){this.spliceWaypoints(o.length,0,null)}),this)),this.options.reverseWaypoints&&((i=e.DomUtil.create("button","leaflet-routing-reverse-waypoints",n)).setAttribute("type","button"),e.DomEvent.addListener(i,"click",(function(){this._waypoints.reverse(),this.setWaypoints(this._waypoints)}),this)),this._updateGeocoders(),this.on("waypointsspliced",this._updateGeocoders),n},_createGeocoder:function(t){var i=this.options.createGeocoderElement(this._waypoints[t],t,this._waypoints.length,this.options);return i.on("delete",(function(){t>0||this._waypoints.length>2?this.spliceWaypoints(t,1):this.spliceWaypoints(t,1,new e.Routing.Waypoint)}),this).on("geocoded",(function(e){this._updateMarkers(),this._fireChanged(),this._focusGeocoder(t+1),this.fire("waypointgeocoded",{waypointIndex:t,waypoint:e.waypoint})}),this).on("reversegeocoded",(function(e){this.fire("waypointgeocoded",{waypointIndex:t,waypoint:e.waypoint})}),this),i},_updateGeocoders:function(){var t,e,i=[];for(t=0;t<this._geocoderElems.length;t++)this._geocoderContainer.removeChild(this._geocoderElems[t].getContainer());for(t=this._waypoints.length-1;t>=0;t--)e=this._createGeocoder(t),this._geocoderContainer.insertBefore(e.getContainer(),this._geocoderContainer.firstChild),i.push(e);this._geocoderElems=i.reverse()},_removeMarkers:function(){var t;if(this._markers)for(t=0;t<this._markers.length;t++)this._markers[t]&&this._map.removeLayer(this._markers[t]);this._markers=[]},_updateMarkers:function(){var t,e;if(this._map)for(this._removeMarkers(),t=0;t<this._waypoints.length;t++)this._waypoints[t].latLng?(e=this.options.createMarker(t,this._waypoints[t],this._waypoints.length))&&(e.addTo(this._map),this.options.draggableWaypoints&&this._hookWaypointEvents(e,t)):e=null,this._markers.push(e)},_fireChanged:function(){this.fire("waypointschanged",{waypoints:this.getWaypoints()}),arguments.length>=2&&this.fire("waypointsspliced",{index:Array.prototype.shift.call(arguments),nRemoved:Array.prototype.shift.call(arguments),added:arguments})},_hookWaypointEvents:function(t,i,n){var o,s,r=function(t){return n?t.latlng:t.target.getLatLng()},a=e.bind((function(t){this.fire("waypointdragstart",{index:i,latlng:r(t)})}),this),l=e.bind((function(t){this._waypoints[i].latLng=r(t),this.fire("waypointdrag",{index:i,latlng:r(t)})}),this),h=e.bind((function(t){this._waypoints[i].latLng=r(t),this._waypoints[i].name="",this._geocoderElems&&this._geocoderElems[i].update(!0),this.fire("waypointdragend",{index:i,latlng:r(t)}),this._fireChanged()}),this);n?(o=e.bind((function(t){this._markers[i].setLatLng(t.latlng),l(t)}),this),s=e.bind((function(t){this._map.dragging.enable(),this._map.off("mouseup",s),this._map.off("mousemove",o),h(t)}),this),this._map.dragging.disable(),this._map.on("mousemove",o),this._map.on("mouseup",s),a({latlng:this._waypoints[i].latLng})):(t.on("dragstart",a),t.on("drag",l),t.on("dragend",h))},dragNewWaypoint:function(t){var e=t.afterIndex+1;this.options.routeWhileDragging?(this.spliceWaypoints(e,0,t.latlng),this._hookWaypointEvents(this._markers[e],e,!0)):this._dragNewWaypoint(e,t.latlng)}
1,_dragNewWaypoint:function(t,i){var n,o=new e.Routing.Waypoint(i),s=this._waypoints[t-1],r=this._waypoints[t],a=this.options.createMarker(t,o,this._waypoints.length+1),l=[],h=e.bind((function(t){var e;for(a&&a.setLatLng(t.latlng),e=0;e<l.length;e++)l[e].spliceLatLngs(1,1,t.latlng)}),this),u=e.bind((function(e){var i;for(a&&this._map.removeLayer(a),i=0;i<l.length;i++)this._map.removeLayer(l[i]);this._map.off("mousemove",h),this._map.off("mouseup",u),this.spliceWaypoints(t,0,e.latlng)}),this);for(a&&a.addTo(this._map),n=0;n<this.options.dragStyles.length;n++)l.push(e.polyline([s.latLng,i,r.latLng],this.options.dragStyles[n]).addTo(this._map));this._map.on("mousemove",h),this._map.on("mouseup",u)},_focusGeocoder:function(t){this._geocoderElems[t]?this._geocoderElems[t].focus():document.activeElement.blur()}}),e.Routing.plan=function(t,i){return new e.Routing.Plan(t,i)},t.exports=e.Routing}()},480:(t,e,i)=>{!function(){"use strict";var e=i(5243);e.Routing=e.Routing||{},e.Routing.Waypoint=e.Class.extend({options:{allowUTurn:!1},initialize:function(t,i,n){e.Util.setOptions(this,n),this.latLng=e.latLng(t),this.name=i}}),e.Routing.waypoint=function(t,i,n){return new e.Routing.Waypoint(t,i,n)},t.exports=e.Routing}()},5757:()=>{var t,e;window,t=document,L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.on(L.FeatureGroup.EVENTS,this._propagateEvent,this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.on(L.FeatureGroup.EVENTS,this._propagateEvent,this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[];var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup){var e=[];for(var i in t._layers)e.push(t._layers[i]);return this.addLayers(e)}if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this;if(!this._map)return this._needsClustering.push(t),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this._topClusterLevel._recalculateBounds();var n=t,o=this._map.getZoom();if(t.__parent)for(;n.__parent._zoom>=o;)n=n.__parent;return this._currentShownBounds.contains(n.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,n):this._animationAddLayerNonAnimated(t,n)),this},removeLayer:function(t){if(t instanceof L.LayerGroup){var e=[];for(var i in t._layers)e.push(t._layers[i]);return this.removeLayers(e)}return t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this._topClusterLevel._recalculateBounds(),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push(t),this):(this._nonPointGroup.removeLayer(t),this)},addLayers:function(t){var e,i,n,o,s=this._featureGroup,r=this._nonPointGroup,a=this.options.chunkedLoading,l=this.options.chunkInterval,h=this.options.chunkProgress;if(this._map){var u=0,c=(new Date).getTime(),d=L.bind((function(){for(var e=(new Date).getTime();u<t.length&&!(a&&0==u%200&&(new Date).getTime()-e>l);u++)if((o=t[u]).getLatLng){if(!this.hasLayer(o)&&(this._addLayer(o,this._maxZoom),o.__parent&&2===o.__parent.getChildCount())){var i=o.__parent.getAllChildMarkers(),n=i[0]===o?i[1]:i[0];s.removeLayer(n)}}else r.addLayer(o);h&&h(u,t.length,(new Date).getTime()-c),u===t.length?(this._topClusterLevel._recalculateBounds(),this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()})),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else{for(e=[],i=0,n=t.length;n>i;i++)(o=t[i]).getLatLng?this.hasLayer(o)||e.push(o):r.addLayer(o);this._needsClustering=this._needsClustering.concat(e)}return this},removeLayers:function(t){var e,i,n,o=this._featureGroup,s=this._nonPointGroup;if(!this._map){for(e=0,i=t.length;i>e;e++)n=t[e],this._arraySplice(this._needsClustering,n),s.removeLayer(n),this.hasLayer(n)&&this._needsRemoving.push(n);return this}if(this._unspiderfy)for(this._unspiderfy(),e=0,i=t.length;i>e;e++)n=t[e],this._unspiderfyLayer(n);for(e=0,i=t.length;i>e;e++)(n=t[e]).__parent?(this._removeLayer(n,!0,!0),o.hasLayer(n)&&(o.removeLayer(n),n.clusterShow&&n.clusterShow())):s.removeLayer(n);return this._topClusterLevel._recalculateBounds(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),o.eachLayer((function(t){t instanceof L.MarkerCluster&&t._updateIcon()})),this},clearLayers:function(){return this._map||(this._needsClustering=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){delete t.__parent})),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;e>=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n=this._needsClustering.slice();for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(n),i=n.length-1;i>=0;i--)t.call(e,n[i]);this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;e>=0;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;e>=0;e--)if(i[e]===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){"function"!=typeof e&&(e=function(){});var i=function(){!t._icon&&!t.__parent._icon||this._inZoomAnimation||(this._map.off("moveend",i,this),this.off("animationend",i,this),t._icon?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};if(t._icon&&this._map.getBounds().contains(t.getLatLng()))e();else if(t.__parent._zoom<this._map.getZoom())this._map.on("moveend",i,this),this._map.panTo(t.getLatLng());else{var n=function(){this._map.off("movestart",n,this),n=null};this._map.on("movestart",n,this),this._map.on("moveend",i,this),this.on("animationend",i,this),t.__parent.zoomToBounds(),n&&i.call(this)}},onAdd:function(t){var e,i,n;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";
1for(this._featureGroup.onAdd(t),this._nonPointGroup.onAdd(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;i>e;e++)n=this._needsRemoving[e],this._removeLayer(n,!0);this._needsRemoving=[],this._zoom=this._map.getZoom(),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.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.onRemove(t),this._nonPointGroup.onRemove(t),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;i>=0;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,n=this._gridUnclustered;e>=0&&n[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_removeLayer:function(t,e,i){var n=this._gridClusters,o=this._gridUnclustered,s=this._featureGroup,r=this._map;e&&this._removeFromGridUnclustered(t,this._maxZoom);var a,l=t.__parent,h=l._markers;for(this._arraySplice(h,t);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<0));)e&&l._childCount<=1?(a=l._markers[0]===t?l._markers[1]:l._markers[0],n[l._zoom].removeObject(l,r.project(l._cLatLng,l._zoom)),o[l._zoom].addObject(a,r.project(a.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(a),a.__parent=l.__parent,l._icon&&(s.removeLayer(l),i||s.addLayer(a))):i&&l._icon||l._updateIcon(),l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},_propagateEvent:function(t){if(t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;t.type="cluster"+t.type}this.fire(t.type,t)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=10>e?"small":100>e?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick;(e||n)&&this.on("clusterclick",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){for(var e=t.layer,i=e;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount?this.options.spiderfyOnMaxZoom&&e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this._map;(t||i)&&this.off("clusterclick",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=this._map._zoom,this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._map._zoom,t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=this._map.getMaxZoom(),e=this.options.maxClusterRadius,i=e;"function"!=typeof e&&(i=function(){return e}),this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;n>=0;n--)this._gridClusters[n]=new L.DistanceGrid(i(n)),this._gridUnclustered[n]=new L.DistanceGrid(i(n));this._topClusterLevel=new this._markerCluster(this,-1)},_addLayer:function(t,e){var i,n,o=this._gridClusters,s=this._gridUnclustered;
1for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t);e>=0;e--){i=this._map.project(t.getLatLng(),e);var r=o[e].getNearObject(i);if(r)return r._addChild(t),void(t.__parent=r);if(r=s[e].getNearObject(i)){var a=r.__parent;a&&this._removeLayer(r,!1);var l=new this._markerCluster(this,e,r,t);o[e].addObject(l,this._map.project(l._cLatLng,e)),r.__parent=l,t.__parent=l;var h=l;for(n=e-1;n>a._zoom;n--)h=new this._markerCluster(this,n,h),o[n].addObject(h,this._map.project(r.getLatLng(),n));return a._addChild(h),void this._removeFromGridUnclustered(r,e)}s[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){this._processQueue(),this._zoom<this._map._zoom&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,this._map._zoom)):this._zoom>this._map._zoom?(this._animationStart(),this._animationZoomOut(this._zoom,this._map._zoom)):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(t){var i=this._maxLat;return i!==e&&(t.getNorth()>=i&&(t._northEast.lat=1/0),t.getSouth()<=-i&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}}),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(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,n=this._getExpandedVisibleBounds(),o=this._featureGroup;this._topClusterLevel._recursively(n,t,0,(function(s){var r,a=s._latlng,l=s._markers;for(n.contains(a)||(a=null),s._isSingleParent()&&t+1===e?(o.removeLayer(s),s._recursivelyAddChildrenToMap(null,e,n)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,e,n)),i=l.length-1;i>=0;i--)r=l[i],n.contains(r._latlng)||o.removeLayer(r)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),o.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(n,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._enqueue((function(){this._topClusterLevel._recursively(n,t,0,(function(t){o.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){n.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._map.getZoom())))}}
1,_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds();t._recursivelyAnimateChildrenInAndAddSelfToMap(n,e+1,i);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(n,i),this._enqueue((function(){if(1===t._childCount){var s=t._markers[0];s.setLatLng(s.getLatLng()),s.clusterShow&&s.clusterShow()}else t._recursively(n,i,0,(function(t){t._recursivelyRemoveChildrenFromMap(n,e+1)}));o._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(t.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)},L.MarkerCluster=L.Marker.extend({initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(t){t=t||[];for(var e=this._childClusters.length-1;e>=0;e--)this._childClusters[e].getAllChildMarkers(t);for(var i=this._markers.length-1;i>=0;i--)t.push(this._markers[i]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(){for(var t,e=this._childClusters.slice(),i=this._group._map,n=i.getBoundsZoom(this._bounds),o=this._zoom+1,s=i.getZoom();e.length>0&&n>o;){o++;var r=[];for(t=0;t<e.length;t++)r=r.concat(e[t]._childClusters);e=r}n>
1o?this._group._map.setView(this._latlng,o):s>=n?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_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(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,n,o=this._markers,s=this._childClusters,r=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<o.length;t++)i=o[t]._latlng,this._bounds.extend(i),r+=i.lat,a+=i.lng;for(t=0;t<s.length;t++)(e=s[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,n=e._childCount,r+=i.lat*n,a+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(r/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,0,i-1,(function(t){var i,n,o=t._markers;for(i=o.length-1;i>=0;i--)(n=o[i])._icon&&(n._setPos(e),n.clusterHide())}),(function(t){var i,n,o=t._childClusters;for(i=o.length-1;i>=0;i--)(n=o[i])._icon&&(n._setPos(e),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i){this._recursively(t,i,0,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),e),n._isSingleParent()&&e-1===i?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,e)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,0,e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,-1,e,(function(n){if(e!==n._zoom)for(var o=n._markers.length-1;o>=0;o--){var s=n._markers[o];i.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),n._group._featureGroup.addLayer(s))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var o=this._childClusters.length-1;o>=0;o--)this._childClusters[o]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i){var n,o;this._recursively(t,-1,e-1,(function(t){for(o=t._markers.length-1;o>=0;o--)n=t._markers[o],i&&i.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(o=t._childClusters.length-1;o>=0;o--)n=t._childClusters[o],i&&i.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,e,i,n,o){var s,r,a=this._childClusters,l=this._zoom;if(e>l)for(s=a.length-1;s>=0;s--)r=a[s],t.intersects(r._bounds)&&r._recursively(t,e,i,n,o);else if(n&&n(this),o&&this._zoom===i&&o(this),i>l)for(s=a.length-1;s>=0;s--)r=a[s],t.intersects(r._bounds)&&r._recursively(t,e,i,n,o)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}}),L.Marker.include({clusterHide:function(){return this.options.opacityWhenUnclustered=this.options.opacity||1,this.setOpacity(0)},clusterShow:function(){var t=this.setOpacity(this.options.opacity||this.options.opacityWhenUnclustered);return delete this.options.opacityWhenUnclustered,t}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,s=o[n]=o[n]||{},r=s[i]=s[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,r.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,o=this._getCoord(e.x),s=this._getCoord(e.y),r=this._grid,a=r[s]=r[s]||{},l=a[o]=a[o]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=l.length;n>i;i++)if(l[i]===t)return l.splice(i,1),1===n&&delete a[o],!0},eachObject:function(t,e){var i,n,o,s,r,a,l=this._grid;for(i in l)for(n in r=l[i])for(o=0,s=(a=r[n]).length;s>o;o++)t.call(e,a[o])&&(o--,s--)},getNearObject:function(t){var e,i,n,o,s,r,a,l,h=this._getCoord(t.x),u=this._getCoord(t.y),c=this._objectPoint,d=this._sqCellSize,p=null;for(e=u-1;u+1>=e;e++)if(o=this._grid[e])for(i=h-1;h+1>=i;i++)if(s=o[i])for(n=0,r=s.length;r>n;n++)a=s[n],d>(l=this._sqDist(c[L.Util.stamp(a)],t))&&(d=l,p=a);return p},_getCoord:function(t){return Math.floor(t/this._cellSize)},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,n,o,s=0,r=null,a=[];for(i=e.length-1;i>=0;i--)n=e[i],(o=this.getDistant(n,t))>0&&(a.push(n),o>s&&(s=o,r=n));return{maxPoint:r,newPoints:a}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,o=!1,s=!1,r=null,a=null,l=null,h=null,u=null,c=null;for(e=t.length-1;e>=0;e--){var d=t[e];(!1===i||d.lat>i)&&(r=d,i=d.lat),(!1===n||d.lat<n)&&(a=d,n=d.lat),(!1===o||d.lng>o)&&(l=d,o=d.lng),(!1===s||d.lng<s)&&(h=d,s=d.lng)}return n!==i?(c=a,u=r):(c=h,u=l),[].concat(this.buildConvexHull([c,u],t),this.buildConvexHull([u,c],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),n=[];for(e=i.length-1;e>=0;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:Math.PI/6,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,i):(i.y+=10,t=this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,n,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,r=[];for(r.length=t,i=t-1;i>=0;i--)n=this._circleStartAngle+i*s,r[i]=new L.Point(e.x+o*Math.cos(n),e.y+o*Math.sin(n))._round();return r},_generatePointsSpiral:function(t,e){var i,n=this._group.options.spiderfyDistanceMultiplier,o=n*this._spiralLengthStart,s=n*this._spiralFootSeparation,r=n*this._spiralLengthFactor*this._2PI,a=0,l=[];for(l.length=t,i=t-1;i>=0;i--)a+=s/o+5e-4*i,l[i]=new L.Point(e.x+o*Math.cos(a),e.y+o*Math.sin(a))._round(),o+=r/a;return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,n=i._map,o=i._featureGroup,s=this.getAllChildMarkers();for(this.setOpacity(1),e=s.length-1;e>=0;e--)t=s[e],o.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,o,s,r=this._group,a=r._map,l=r._featureGroup,h=this._group.options.spiderLegPolylineOptions;for(i=0;i<t.length;i++)s=a.layerPointToLatLng(e[i]),n=t[i],o=new L.Polyline([this._latlng,s],h),a.addLayer(o),n._spiderLeg=o,n._preSpiderfyLatlng=n._latlng,n.setLatLng(s),n.setZIndexOffset&&n.setZIndexOffset(1e6),l.addLayer(n);this.setOpacity(.3),r.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,i){var n,o,s,r,a,l,h=this,u=this._group,c=u._map,d=u._featureGroup,p=this._latlng,_=c.latLngToLayerPoint(p),m=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),g=f.opacity;for(g===e&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),m?(f.opacity=0,f.className=(f.className||"")+" leaflet-cluster-spider-leg"):f.opacity=g,n=0;n<t.length;n++)o=t[n],l=c.layerPointToLatLng(i[n]),s=new L.Polyline([p,l],f),c.addLayer(s),o._spiderLeg=s,m&&(a=(r=s._path).getTotalLength()+.1,r.style.strokeDasharray=a,r.style.strokeDashoffset=a),o.setZIndexOffset&&o.setZIndexOffset(1e6),o.clusterHide&&o.clusterHide(),d.addLayer(o),o._setPos&&o._setPos(_);for(u._forceLayout(),u._animationStart(),n=t.length-1;n>=0;n--)l=c.layerPointToLatLng(i[n]),(o=t[n])._preSpiderfyLatlng=o._latlng,o.setLatLng(l),o.clusterShow&&o.clusterShow(),m&&((r=(s=o._spiderLeg)._path).style.strokeDashoffset=0,s.setStyle({opacity:g}));this.setOpacity(.3),setTimeout((function(){u._animationEnd(),u.fire("spiderfied",{cluster:h,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,n,o,s,r,a=this,l=this._group,h=l._map,u=l._featureGroup,c=t?h._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):h.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(),p=L.Path.SVG;for(l._animationStart(),this.setOpacity(1),i=d.length-1;i>=0;i--)(e=d[i])._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,r=!0,e._setPos&&(e._setPos(c),r=!1),e.clusterHide&&(e.clusterHide(),r=!1),r&&u.removeLayer(e),p&&(s=(o=(n=e._spiderLeg)._path).getTotalLength()+.1,o.style.strokeDashoffset=s,n.setStyle({opacity:0}
1)));setTimeout((function(){var t=0;for(i=d.length-1;i>=0;i--)(e=d[i])._spiderLeg&&t++;for(i=d.length-1;i>=0;i--)(e=d[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&u.removeLayer(e),h.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,_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)},_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(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}})},5243:(t,e,i)=>{var n,o;!function(s,r,a){var l,h,u=s.L,c={};c.version="0.7.7","object"==typeof t.exports?t.exports=c:(o="function"==typeof(n=c)?n.call(e,i,e,t):n)===a||(t.exports=o),c.noConflict=function(){return s.L=u,this},s.L=c,c.Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;i<n;i++)for(e in o=s[i]||{})o.hasOwnProperty(e)&&(t[e]=o[e]);return t},bind:function(t,e){var i=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i||arguments)}},stamp:(l=0,h="_leaflet_id",function(t){return t[h]=t[h]||++l,t[h]}),invokeEach:function(t,e,i){var n,o;if("object"==typeof t){for(n in o=Array.prototype.slice.call(arguments,3),t)e.apply(i,[n,t[n]].concat(o));return!0}return!1},limitExecByInterval:function(t,e,i){var n,o;return function s(){var r=arguments;n?o=!0:(n=!0,setTimeout((function(){n=!1,o&&(s.apply(i,r),o=!1)}),e),t.apply(i,r))}},falseFn:function(){return!1},formatNum:function(t,e){var i=Math.pow(10,e||5);return Math.round(t*i)/i},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},splitWords:function(t){return c.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=c.extend({},t.options,e),t.options},getParamString:function(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")},template:function(t,e){return t.replace(/\{ *([\w_]+) *\}/g,(function(t,i){var n=e[i];if(n===a)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function t(t){var e,i,n=["webkit","moz","o","ms"];for(e=0;e<n.length&&!i;e++)i=s[n[e]+t];return i}var e=0;function i(t){var i=+new Date,n=Math.max(0,16-(i-e));return e=i+n,s.setTimeout(t,n)}var n=s.requestAnimationFrame||t("RequestAnimationFrame")||i,o=s.cancelAnimationFrame||t("CancelAnimationFrame")||t("CancelRequestAnimationFrame")||function(t){s.clearTimeout(t)};c.Util.requestAnimFrame=function(t,e,o,r){if(t=c.bind(t,e),!o||n!==i)return n.call(s,t,r);t()},c.Util.cancelAnimFrame=function(t){t&&o.call(s,t)}}(),c.extend=c.Util.extend,c.bind=c.Util.bind,c.stamp=c.Util.stamp,c.setOptions=c.Util.setOptions,c.Class=function(){},c.Class.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this._initHooks&&this.callInitHooks()},i=function(){};i.prototype=this.prototype;var n=new i;for(var o in n.constructor=e,e.prototype=n,this)this.hasOwnProperty(o)&&"prototype"!==o&&(e[o]=this[o]);t.statics&&(c.extend(e,t.statics),delete t.statics),t.includes&&(c.Util.extend.apply(null,[n].concat(t.includes)),delete t.includes),t.options&&n.options&&(t.options=c.extend({},n.options,t.options)),c.extend(n,t),n._initHooks=[];var s=this;return e.__super__=s.prototype,n.callInitHooks=function(){if(!this._initHooksCalled){s.prototype.callInitHooks&&s.prototype.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=n._initHooks.length;t<e;t++)n._initHooks[t].call(this)}},e},c.Class.include=function(t){c.extend(this.prototype,t)},c.Class.mergeOptions=function(t){c.extend(this.prototype.options,t)},c.Class.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1
1),i="function"==typeof t?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i)};var d,p,_,m,f,g,v,y,L,P,C,w,x,b,S,T,D,E,M,k,R,U,O,A="_leaflet_events";c.Mixin={},c.Mixin.Events={addEventListener:function(t,e,i){if(c.Util.invokeEach(t,this.addEventListener,this,e,i))return this;var n,o,s,r,a,l,h,u=this[A]=this[A]||{},d=i&&i!==this&&c.stamp(i);for(n=0,o=(t=c.Util.splitWords(t)).length;n<o;n++)s={action:e,context:i||this},r=t[n],d?(l=(a=r+"_idx")+"_len",(h=u[a]=u[a]||{})[d]||(h[d]=[],u[l]=(u[l]||0)+1),h[d].push(s)):(u[r]=u[r]||[],u[r].push(s));return this},hasEventListeners:function(t){var e=this[A];return!!e&&(t in e&&e[t].length>0||t+"_idx"in e&&e[t+"_idx_len"]>0)},removeEventListener:function(t,e,i){if(!this[A])return this;if(!t)return this.clearAllEventListeners();if(c.Util.invokeEach(t,this.removeEventListener,this,e,i))return this;var n,o,s,r,a,l,h,u,d=this[A],p=i&&i!==this&&c.stamp(i);for(n=0,o=(t=c.Util.splitWords(t)).length;n<o;n++)if(h=(l=(s=t[n])+"_idx")+"_len",u=d[l],e){if(r=p&&u?u[p]:d[s]){for(a=r.length-1;a>=0;a--)r[a].action!==e||i&&r[a].context!==i||(r.splice(a,1)[0].action=c.Util.falseFn);i&&u&&0===r.length&&(delete u[p],d[h]--)}}else delete d[s],delete d[l],delete d[h];return this},clearAllEventListeners:function(){return delete this[A],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var i,n,o,s,r,a=c.Util.extend({},e,{type:t,target:this}),l=this[A];if(l[t])for(n=0,o=(i=l[t].slice()).length;n<o;n++)i[n].action.call(i[n].context,a);for(r in s=l[t+"_idx"])if(i=s[r].slice())for(n=0,o=i.length;n<o;n++)i[n].action.call(i[n].context,a);return this},addOneTimeEventListener:function(t,e,i){if(c.Util.invokeEach(t,this.addOneTimeEventListener,this,e,i))return this;var n=c.bind((function(){this.removeEventListener(t,e,i).removeEventListener(t,n,i)}),this);return this.addEventListener(t,e,i).addEventListener(t,n,i)}},c.Mixin.Events.on=c.Mixin.Events.addEventListener,c.Mixin.Events.off=c.Mixin.Events.removeEventListener,c.Mixin.Events.once=c.Mixin.Events.addOneTimeEventListener,c.Mixin.Events.fire=c.Mixin.Events.fireEvent,p=(d="ActiveXObject"in s)&&!r.addEventListener,_=navigator.userAgent.toLowerCase(),m=-1!==_.indexOf("webkit"),f=-1!==_.indexOf("chrome"),g=-1!==_.indexOf("phantom"),v=-1!==_.indexOf("android"),y=-1!==_.search("android [23]"),L=-1!==_.indexOf("gecko"),P="undefined"!=typeof orientation,C=!s.PointerEvent&&s.MSPointerEvent,w=s.PointerEvent&&s.navigator.pointerEnabled||C,x="devicePixelRatio"in s&&s.devicePixelRatio>1||"matchMedia"in s&&s.matchMedia("(min-resolution:144dpi)")&&s.matchMedia("(min-resolution:144dpi)").matches,b=r.documentElement,S=d&&"transition"in b.style,T="WebKitCSSMatrix"in s&&"m11"in new s.WebKitCSSMatrix&&!y,D="MozPerspective"in b.style,E="OTransition"in b.style,M=!s.L_DISABLE_3D&&(S||T||D||E)&&!g,k=!s.L_NO_TOUCH&&!g&&(w||"ontouchstart"in s||s.DocumentTouch&&r instanceof s.DocumentTouch),c.Browser={ie:d,ielt9:p,webkit:m,gecko:L&&!m&&!s.opera&&!d,android:v,android23:y,chrome:f,ie3d:S,webkit3d:T,gecko3d:D,opera3d:E,any3d:M,mobile:P,mobileWebkit:P&&m,mobileWebkit3d:P&&T,mobileOpera:P&&s.opera,touch:k,msPointer:C,pointer:w,retina:x},c.Point=function(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e},c.Point.prototype={clone:function(){return new c.Point(this.x,this.y)},add:function(t){return this.clone()._add(c.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(c.point(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},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},distanceTo:function(t){var e=(t=c.point(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=c.point(t)).x===this.x&&t.y===this.y},contains:function(t){return t=c.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)}
1,toString:function(){return"Point("+c.Util.formatNum(this.x)+", "+c.Util.formatNum(this.y)+")"}},c.point=function(t,e,i){return t instanceof c.Point?t:c.Util.isArray(t)?new c.Point(t[0],t[1]):t===a||null===t?t:new c.Point(t,e,i)},c.Bounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])},c.Bounds.prototype={extend:function(t){return t=c.point(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new c.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new c.Point(this.min.x,this.max.y)},getTopRight:function(){return new c.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof c.Point?c.point(t):c.bounds(t))instanceof c.Bounds?(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=c.bounds(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},c.bounds=function(t,e){return!t||t instanceof c.Bounds?t:new c.Bounds(t,e)},c.Transformation=function(t,e,i,n){this._a=t,this._b=e,this._c=i,this._d=n},c.Transformation.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new c.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},c.DomUtil={get:function(t){return"string"==typeof t?r.getElementById(t):t},getStyle:function(t,e){var i=t.style[e];if(!i&&t.currentStyle&&(i=t.currentStyle[e]),(!i||"auto"===i)&&r.defaultView){var n=r.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i},getViewportOffset:function(t){var e,i=0,n=0,o=t,s=r.body,a=r.documentElement;do{if(i+=o.offsetTop||0,n+=o.offsetLeft||0,i+=parseInt(c.DomUtil.getStyle(o,"borderTopWidth"),10)||0,n+=parseInt(c.DomUtil.getStyle(o,"borderLeftWidth"),10)||0,e=c.DomUtil.getStyle(o,"position"),o.offsetParent===s&&"absolute"===e)break;if("fixed"===e){i+=s.scrollTop||a.scrollTop||0,n+=s.scrollLeft||a.scrollLeft||0;break}if("relative"===e&&!o.offsetLeft){var l=c.DomUtil.getStyle(o,"width"),h=c.DomUtil.getStyle(o,"max-width"),u=o.getBoundingClientRect();"none"===l&&"none"===h||(n+=u.left+o.clientLeft),i+=u.top+(s.scrollTop||a.scrollTop||0);break}o=o.offsetParent}while(o);o=t;do{if(o===s)break;i-=o.scrollTop||0,n-=o.scrollLeft||0,o=o.parentNode}while(o);return new c.Point(n,i)},documentIsLtr:function(){return c.DomUtil._docIsLtrCached||(c.DomUtil._docIsLtrCached=!0,c.DomUtil._docIsLtr="ltr"===c.DomUtil.getStyle(r.body,"direction")),c.DomUtil._docIsLtr},create:function(t,e,i){var n=r.createElement(t);return n.className=e,i&&i.appendChild(n),n},hasClass:function(t,e){if(t.classList!==a)return t.classList.contains(e);var i=c.DomUtil._getClass(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)},addClass:function(t,e){if(t.classList!==a)for(var i=c.Util.splitWords(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!c.DomUtil.hasClass(t,e)){var s=c.DomUtil._getClass(t);c.DomUtil._setClass(t,(s?s+" ":"")+e)}},removeClass:function(t,e){t.classList!==a?t.classList.remove(e):c.DomUtil._setClass(t,c.Util.trim((" "+c.DomUtil._getClass(t)+" ").replace(" "+e+" "," ")))},_setClass:function(t,e){t.className.baseVal===a?t.className=e:t.className.baseVal=e},_getClass:function(t){return t.className.baseVal===a?t.className:t.className.baseVal},setOpacity:function(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}},testProp:function(t){for(var e=r.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1},getTranslateString:function(t){var e=c.Browser.webkit3d,i=(e?",0":"")+")";return"translate"+(e?"3d":"")+"("+t.x+"px,"+t.y+"px"+i}
1,getScaleString:function(t,e){return c.DomUtil.getTranslateString(e.add(e.multiplyBy(-1*t)))+(" scale("+t+") ")},setPosition:function(t,e,i){t._leaflet_pos=e,!i&&c.Browser.any3d?t.style[c.DomUtil.TRANSFORM]=c.DomUtil.getTranslateString(e):(t.style.left=e.x+"px",t.style.top=e.y+"px")},getPosition:function(t){return t._leaflet_pos}},c.DomUtil.TRANSFORM=c.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),c.DomUtil.TRANSITION=c.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),c.DomUtil.TRANSITION_END="webkitTransition"===c.DomUtil.TRANSITION||"OTransition"===c.DomUtil.TRANSITION?c.DomUtil.TRANSITION+"End":"transitionend",function(){if("onselectstart"in r)c.extend(c.DomUtil,{disableTextSelection:function(){c.DomEvent.on(s,"selectstart",c.DomEvent.preventDefault)},enableTextSelection:function(){c.DomEvent.off(s,"selectstart",c.DomEvent.preventDefault)}});else{var t=c.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);c.extend(c.DomUtil,{disableTextSelection:function(){if(t){var e=r.documentElement.style;this._userSelect=e[t],e[t]="none"}},enableTextSelection:function(){t&&(r.documentElement.style[t]=this._userSelect,delete this._userSelect)}})}c.extend(c.DomUtil,{disableImageDrag:function(){c.DomEvent.on(s,"dragstart",c.DomEvent.preventDefault)},enableImageDrag:function(){c.DomEvent.off(s,"dragstart",c.DomEvent.preventDefault)}})}(),c.LatLng=function(t,e,i){if(t=parseFloat(t),e=parseFloat(e),isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=t,this.lng=e,i!==a&&(this.alt=parseFloat(i))},c.extend(c.LatLng,{DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,MAX_MARGIN:1e-9}),c.LatLng.prototype={equals:function(t){return!!t&&(t=c.latLng(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=c.LatLng.MAX_MARGIN)},toString:function(t){return"LatLng("+c.Util.formatNum(this.lat,t)+", "+c.Util.formatNum(this.lng,t)+")"},distanceTo:function(t){t=c.latLng(t);var e=c.LatLng.DEG_TO_RAD,i=(t.lat-this.lat)*e,n=(t.lng-this.lng)*e,o=this.lat*e,s=t.lat*e,r=Math.sin(i/2),a=Math.sin(n/2),l=r*r+a*a*Math.cos(o)*Math.cos(s);return 12756274*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))},wrap:function(t,e){var i=this.lng;return i=(i+(e=e||180))%(e-(t=t||-180))+(i<t||i===e?e:t),new c.LatLng(this.lat,i)}},c.latLng=function(t,e){return t instanceof c.LatLng?t:c.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new c.LatLng(t[0],t[1],t[2]):null:t===a||null===t?t:"object"==typeof t&&"lat"in t?new c.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===a?null:new c.LatLng(t,e)},c.LatLngBounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])},c.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=c.latLng(t);return(t=null!==e?e:c.latLngBounds(t))instanceof c.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(t.lat,this._southWest.lat),this._southWest.lng=Math.min(t.lng,this._southWest.lng),this._northEast.lat=Math.max(t.lat,this._northEast.lat),this._northEast.lng=Math.max(t.lng,this._northEast.lng)):(this._southWest=new c.LatLng(t.lat,t.lng),this._northEast=new c.LatLng(t.lat,t.lng)):t instanceof c.LatLngBounds&&(this.extend(t._southWest),this.extend(t._northEast)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new c.LatLngBounds(new c.LatLng(e.lat-n,e.lng-o),new c.LatLng(i.lat+n,i.lng+o))},getCenter:function(){return new c.LatLng((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 c.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new c.LatLng(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 c.LatLng?c.latLng(t):c.latLngBounds(t);var e,i,n=this._southWest,o=this._northEast;
1return t instanceof c.LatLngBounds?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=c.latLngBounds(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return!!t&&(t=c.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast()))},isValid:function(){return!(!this._southWest||!this._northEast)}},c.latLngBounds=function(t,e){return!t||t instanceof c.LatLngBounds?t:new c.LatLngBounds(t,e)},c.Projection={},c.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=c.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=t.lng*e,s=n*e;return s=Math.log(Math.tan(Math.PI/4+s/2)),new c.Point(o,s)},unproject:function(t){var e=c.LatLng.RAD_TO_DEG,i=t.x*e,n=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e;return new c.LatLng(n,i)}},c.Projection.LonLat={project:function(t){return new c.Point(t.lng,t.lat)},unproject:function(t){return new c.LatLng(t.y,t.x)}},c.CRS={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)},scale:function(t){return 256*Math.pow(2,t)},getSize:function(t){var e=this.scale(t);return c.point(e,e)}},c.CRS.Simple=c.extend({},c.CRS,{projection:c.Projection.LonLat,transformation:new c.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),c.CRS.EPSG3857=c.extend({},c.CRS,{code:"EPSG:3857",projection:c.Projection.SphericalMercator,transformation:new c.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){return this.projection.project(t).multiplyBy(6378137)}}),c.CRS.EPSG900913=c.extend({},c.CRS.EPSG3857,{code:"EPSG:900913"}),c.CRS.EPSG4326=c.extend({},c.CRS,{code:"EPSG:4326",projection:c.Projection.LonLat,transformation:new c.Transformation(1/360,.5,-1/360,.5)}),c.Map=c.Class.extend({includes:c.Mixin.Events,options:{crs:c.CRS.EPSG3857,fadeAnimation:c.DomUtil.TRANSITION&&!c.Browser.android23,trackResize:!0,markerZoomAnimation:c.DomUtil.TRANSITION&&c.Browser.any3d},initialize:function(t,e){e=c.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=c.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==a&&this.setView(c.latLng(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(e.layers)},setView:function(t,e){return e=e===a?this.getZoom():e,this._resetView(c.latLng(t),this._limitZoom(e)),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=this._limitZoom(t),this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t||1),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t||1),e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),s=(t instanceof c.Point?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(s));return this.setView(r,e,{zoom:i})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():c.latLngBounds(t);var i=c.point(e.paddingTopLeft||e.padding||[0,0]),n=c.point(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));o=e.maxZoom?Math.min(e.maxZoom,o):o;
1var s=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),l=this.unproject(r.add(a).divideBy(2).add(s),o);return this.setView(l,o,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){return this.fire("movestart"),this._rawPanBy(c.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t){return t=c.latLngBounds(t),this.options.maxBounds=t,t?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(t,e){var i=this.getCenter(),n=this._limitCenter(i,this._zoom,t);return i.equals(n)?this:this.panTo(n,e)},addLayer:function(t){var e=c.stamp(t);return this._layers[e]||(this._layers[e]=t,!t.options||isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[e]=t,this._updateZoomLevels()),this.options.zoomAnimation&&c.TileLayer&&t instanceof c.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(t)),this},removeLayer:function(t){var e=c.stamp(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&this.fire("layerremove",{layer:t}),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels()),this.options.zoomAnimation&&c.TileLayer&&t instanceof c.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this)),this):this},hasLayer:function(t){return!!t&&c.stamp(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},invalidateSize:function(t){if(!this._loaded)return this;t=c.extend({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._initialCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),s=n.subtract(o);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},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(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(t){this._container._leaflet=a}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new c.LatLngBounds(e,i)},getMinZoom:function(){return this.options.minZoom===a?this._layersMinZoom===a?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===a?this._layersMaxZoom===a?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=c.latLngBounds(t);var n,o=this.getMinZoom()-(e?1:0),s=this.getMaxZoom(),r=this.getSize(),a=t.getNorthWest(),l=t.getSouthEast(),h=!0;i=c.point(i||[0,0]);do{o++,n=this.project(l,o).subtract(this.project(a,o)).add(i),h=e?n.x<r.x||n.y<r.y:r.contains(n)}while(h&&o<=s);return h&&e?null:e?o:o-1},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new c.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var t=this._getTopLeftPoint();return new c.Bounds(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t){var e=this.options.crs;return e.scale(t)/e.scale(this._zoom)},getScaleZoom:function(t){return this._zoom+Math.log(t)/Math.LN2},project:function(t,e){return e=e===a?this._zoom:e,this.options.crs.latLngToPoint(c.latLng(t),e)},unproject:function(t,e){return e=e===a?this._zoom:e,this.options.crs.pointToLatLng(c.point(t),e)},layerPointToLatLng:function(t){var e=c.point(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(c.latLng(t))._round()._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(t){return c.point(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return c.point(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(c.point(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(c.latLng(t)))},mouseEventToContainerPoint:function(t){return c.DomEvent.getMousePosition(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=c.DomUtil.get(t);if(!e)throw new Error("Map container not found.");if(e._leaflet)throw new Error("Map container is already initialized.");e._leaflet=!0},_initLayout:function(){var t=this._container;c.DomUtil.addClass(t,"leaflet-container"+(c.Browser.touch?" leaflet-touch":"")+(c.Browser.retina?" leaflet-retina":"")+(c.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));
1var e=c.DomUtil.getStyle(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._mapPane=t.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=t.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),t.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),t.shadowPane=this._createPane("leaflet-shadow-pane"),t.overlayPane=this._createPane("leaflet-overlay-pane"),t.markerPane=this._createPane("leaflet-marker-pane"),t.popupPane=this._createPane("leaflet-popup-pane");var e=" leaflet-zoom-hide";this.options.markerZoomAnimation||(c.DomUtil.addClass(t.markerPane,e),c.DomUtil.addClass(t.shadowPane,e),c.DomUtil.addClass(t.popupPane,e))},_createPane:function(t,e){return c.DomUtil.create("div",t,e||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(t){for(var e=0,i=(t=t?c.Util.isArray(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_resetView:function(t,e,i,n){var o=this._zoom!==e;n||(this.fire("movestart"),o&&this.fire("zoomstart")),this._zoom=e,this._initialCenter=t,this._initialTopLeftPoint=this._getNewTopLeftPoint(t),i?this._initialTopLeftPoint._add(this._getMapPanePos()):c.DomUtil.setPosition(this._mapPane,new c.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var s=!this._loaded;this._loaded=!0,this.fire("viewreset",{hard:!i}),s&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("move"),(o||n)&&this.fire("zoomend"),this.fire("moveend",{hard:!i})},_rawPanBy:function(t){c.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,e=1/0,i=-1/0,n=this._getZoomSpan();for(t in this._zoomBoundLayers){var o=this._zoomBoundLayers[t];isNaN(o.options.minZoom)||(e=Math.min(e,o.options.minZoom)),isNaN(o.options.maxZoom)||(i=Math.max(i,o.options.maxZoom))}t===a?this._layersMaxZoom=this._layersMinZoom=a:(this._layersMaxZoom=i,this._layersMinZoom=e),n!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){if(c.DomEvent){t=t||"on",c.DomEvent[t](this._container,"click",this._onMouseClick,this);var e,i,n=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(e=0,i=n.length;e<i;e++)c.DomEvent[t](this._container,n[e],this._fireMouseEvent,this);this.options.trackResize&&c.DomEvent[t](s,"resize",this._onResize,this)}},_onResize:function(){c.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=c.Util.requestAnimFrame((function(){this.invalidateSize({debounceMoveend:!0})}),this,!1,this._container)},_onMouseClick:function(t){!this._loaded||!t._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||c.DomEvent._skipped(t)||(this.fire("preclick"),this._fireMouseEvent(t))},_fireMouseEvent:function(t){if(this._loaded&&!c.DomEvent._skipped(t)){var e=t.type;if(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,this.hasEventListeners(e)){"contextmenu"===e&&c.DomEvent.preventDefault(t);var i=this.mouseEventToContainerPoint(t),n=this.containerPointToLayerPoint(i),o=this.layerPointToLatLng(n);this.fire(e,{latlng:o,layerPoint:n,containerPoint:i,originalEvent:t})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_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,this):this.on("load",t,e),this},_layerAdd:function(t){t.onAdd(this),this.fire("layeradd",{layer:t})},_getMapPanePos:function(){return c.DomUtil.getPosition(this._mapPane)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._round()}
1,_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewTopLeftPoint(i,e).add(this._getMapPanePos());return this.project(t,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),o=this.getSize().divideBy(2),s=new c.Bounds(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,i,e);return this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new c.Bounds(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=this.project(e.getNorthWest(),i).subtract(t.min),o=this.project(e.getSouthEast(),i).subtract(t.max),s=this._rebound(n.x,-o.x),r=this._rebound(n.y,-o.y);return new c.Point(s,r)},_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();return Math.max(e,Math.min(i,t))}}),c.map=function(t,e){return new c.Map(t,e)},c.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(t){var e=c.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=this.R_MAJOR,s=this.R_MINOR,r=t.lng*e*o,a=n*e,l=s/o,h=Math.sqrt(1-l*l),u=h*Math.sin(a);u=Math.pow((1-u)/(1+u),.5*h);var d=Math.tan(.5*(.5*Math.PI-a))/u;return a=-o*Math.log(d),new c.Point(r,a)},unproject:function(t){for(var e,i=c.LatLng.RAD_TO_DEG,n=this.R_MAJOR,o=this.R_MINOR,s=t.x*i/n,r=o/n,a=Math.sqrt(1-r*r),l=Math.exp(-t.y/n),h=Math.PI/2-2*Math.atan(l),u=15,d=.1;Math.abs(d)>1e-7&&--u>0;)e=a*Math.sin(h),h+=d=Math.PI/2-2*Math.atan(l*Math.pow((1-e)/(1+e),.5*a))-h;return new c.LatLng(h*i,s)}},c.CRS.EPSG3395=c.extend({},c.CRS,{code:"EPSG:3395",projection:c.Projection.Mercator,transformation:(R=c.Projection.Mercator.R_MAJOR,U=.5/(Math.PI*R),new c.Transformation(U,.5,-U,.5))}),c.TileLayer=c.Class.extend({includes:c.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:c.Browser.mobile,updateWhenIdle:c.Browser.mobile},initialize:function(t,e){(e=c.setOptions(this,e)).detectRetina&&c.Browser.retina&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomOffset++,e.minZoom>0&&e.minZoom--,this.options.maxZoom--),e.bounds&&(e.bounds=c.latLngBounds(e.bounds)),this._url=t;var i=this.options.subdomains;"string"==typeof i&&(this.options.subdomains=i.split(""))},onAdd:function(t){this._map=t,this._animated=t._zoomAnimated,this._initContainer(),t.on({viewreset:this._reset,moveend:this._update},this),this._animated&&t.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=c.Util.limitExecByInterval(this._update,150,this),t.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this._container.parentNode.removeChild(this._container),t.off({viewreset:this._reset,moveend:this._update},this),this._animated&&t.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||t.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var t=this._map._panes.tilePane;return this._container&&(t.appendChild(this._container),this._setAutoZIndex(t,Math.max)),this},bringToBack:function(){var t=this._map._panes.tilePane;return this._container&&(t.insertBefore(this._container,t.firstChild),this._setAutoZIndex(t,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==a&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t,e){var i,n,o,s=t.children,r=-e(1/0,-1/0);for(n=0,o=s.length;n<o;n++)s[n]!==this._container&&(i=parseInt(s[n].style.zIndex,10),isNaN(i)||(r=e(r,i)));this.options.zIndex=this._container.style.zIndex=(isFinite(r)?r:0)+e(1,-1)},_updateOpacity:function(){var t,e=this._tiles;if(c.Browser.ielt9)for(t in e)c.DomUtil.setOpacity(e[t],this.options.opacity);else c.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane;if(!this._container){if(this._container=c.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var e="leaflet-tile-container";this._bgBuffer=c.DomUtil.create("div",e,this._container),this._tileContainer=c.DomUtil.create("div",e,this._container)}else this._tileContainer=this._container;t.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(t){for(var e in this._tiles)this.fire("tileunload",{tile:this._tiles[e]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&t&&t.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var t=this._map,e=t.getZoom()+this.options.zoomOffset,i=this.options.maxNativeZoom,n=this.options.tileSize;return i&&e>i&&(n=Math.round(t.getZoomScale(e)/t.getZoomScale(i)*n)),n},_update:function(){if(this._map){var t=this._map,e=t.getPixelBounds(),i=t.getZoom(),n=this._getTileSize();if(!(i>this.options.maxZoom||i<this.options.minZoom)){var o=c.bounds(e.min.divideBy(n)._floor(),e.max.divideBy(n)._floor());this._addTilesFromCenterOut(o),(this.options.unloadInvisibleTiles||this.options.reuseTiles)&&this._removeOtherTiles(o)}}},_addTilesFromCenterOut:function(t){var e,i,n,o=[],s=t.getCenter();for(e=t.min.y;e<=t.max.y;e++)for(i=t.min.x;i<=t.max.x;i++)n=new c.Point(i,e),this._tileShouldBeLoaded(n)&&o.push(n);var a=o.length;if(0!==a){o.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)}));var l=r.createDocumentFragment();for(this._tilesToLoad||this.fire("loading"),this._tilesToLoad+=a,i=0;i<a;i++)this._addTile(o[i],l);this._tileContainer.appendChild(l)}},_tileShouldBeLoaded:function(t){if(t.x+":"+t.y in this._tiles)return!1;var e=this.options;if(!e.continuousWorld){var i=this._getWrapTileNum();if(e.noWrap&&(t.x<0||t.x>=i.x)||t.y<0||t.y>=i.y)return!1}if(e.bounds){var n=this._getTileSize(),o=t.multiplyBy(n),s=o.add([n,n]),r=this._map.unproject(o),a=this._map.unproject(s);if(e.continuousWorld||e.noWrap||(r=r.wrap(),a=a.wrap()),!e.bounds.intersects([r,a]))return!1}return!0},_removeOtherTiles:function(t){var e,i,n,o;for(o in this._tiles)e=o.split(":"),i=parseInt(e[0],10),n=parseInt(e[1],10),(i<t.min.x||i>t.max.x||n<t.min.y||n>t.max.y)&&this._removeTile(o)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(c.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),c.Browser.android||(e.onload=null,e.src=c.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var i=this._getTilePos(t),n=this._getTile();c.DomUtil.setPosition(n,i,c.Browser.chrome),this._tiles[t.x+":"+t.y]=n,this._loadTile(n,t),n.parentNode!==this._tileContainer&&e.appendChild(n)},_getZoomForUrl:function(){var t=this.options,e=this._map.getZoom();return t.zoomReverse&&(e=t.maxZoom-e),e+=t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e},_getTilePos:function(t){var e=this._map.getPixelOrigin(),i=this._getTileSize();return t.multiplyBy(i).subtract(e)},getTileUrl:function(t){return c.Util.template(this._url,c.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){return this._map.options.crs.getSize(this._map.getZoom()).divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(t){var e=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(t.x=(t.x%e.x+e.x)%e.x),this.options.tms&&(t.y=e.y-t.y-1),t.z=this._getZoomForUrl()},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var t=this._unusedTiles.pop();return this._resetTile(t),t}return this._createTile()},_resetTile:function(){},_createTile:function(){var t=c.DomUtil.create("img","leaflet-tile");return t.style.width=t.style.height=this._getTileSize()+"px",t.galleryimg="no",t.onselectstart=t.onmousemove=c.Util.falseFn,c.Browser.ielt9&&this.options.opacity!==a&&c.DomUtil.setOpacity(t,this.options.opacity),c.Browser.mobileWebkit3d&&(t.style.WebkitBackfaceVisibility="hidden"),t},_loadTile:function(t,e){t._layer=this,t.onload=this._tileOnLoad,t.onerror=this._tileOnError,this._adjustTilePoint(e),t.src=this.getTileUrl(e),this.fire("tileloadstart",{tile:t,url:t.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&c.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(c.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var t=this._layer;this.src!==c.Util.emptyImageUrl&&(c.DomUtil.addClass(this,"leaflet-tile-loaded"),t.fire("tileload",{tile:this,url:this.src})),t._tileLoaded()},_tileOnError:function(){var t=this._layer;t.fire("tileerror",{tile:this,url:this.src});var e=t.options.errorTileUrl;e&&(this.src=e),t._tileLoaded()}}),c.tileLayer=function(t,e){return new c.TileLayer(t,e)},c.TileLayer.WMS=c.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(t,e){this._url=t;var i=c.extend({},this.defaultWmsParams),n=e.tileSize||this.options.tileSize;
1for(var o in e.detectRetina&&c.Browser.retina?i.width=i.height=2*n:i.width=i.height=n,e)this.options.hasOwnProperty(o)||"crs"===o||(i[o]=e[o]);this.wmsParams=i,c.setOptions(this,e)},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,c.TileLayer.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._map,i=this.options.tileSize,n=t.multiplyBy(i),o=n.add([i,i]),s=this._crs.project(e.unproject(n,t.z)),r=this._crs.project(e.unproject(o,t.z)),a=this._wmsVersion>=1.3&&this._crs===c.CRS.EPSG4326?[r.y,s.x,s.y,r.x].join(","):[s.x,r.y,r.x,s.y].join(","),l=c.Util.template(this._url,{s:this._getSubdomain(t)});return l+c.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+a},setParams:function(t,e){return c.extend(this.wmsParams,t),e||this.redraw(),this}}),c.tileLayer.wms=function(t,e){return new c.TileLayer.WMS(t,e)},c.TileLayer.Canvas=c.TileLayer.extend({options:{async:!1},initialize:function(t){c.setOptions(this,t)},redraw:function(){for(var t in this._map&&(this._reset({hard:!0}),this._update()),this._tiles)this._redrawTile(this._tiles[t]);return this},_redrawTile:function(t){this.drawTile(t,t._tilePoint,this._map._zoom)},_createTile:function(){var t=c.DomUtil.create("canvas","leaflet-tile");return t.width=t.height=this.options.tileSize,t.onselectstart=t.onmousemove=c.Util.falseFn,t},_loadTile:function(t,e){t._layer=this,t._tilePoint=e,this._redrawTile(t),this.options.async||this.tileDrawn(t)},drawTile:function(){},tileDrawn:function(t){this._tileOnLoad.call(t)}}),c.tileLayer.canvas=function(t){return new c.TileLayer.Canvas(t)},c.ImageOverlay=c.Class.extend({includes:c.Mixin.Events,options:{opacity:1},initialize:function(t,e,i){this._url=t,this._bounds=c.latLngBounds(e),c.setOptions(this,i)},onAdd:function(t){this._map=t,this._image||this._initImage(),t._panes.overlayPane.appendChild(this._image),t.on("viewreset",this._reset,this),t.options.zoomAnimation&&c.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._image),t.off("viewreset",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var t=this._map._panes.overlayPane;return this._image&&t.insertBefore(this._image,t.firstChild),this},setUrl:function(t){this._url=t,this._image.src=this._url},getAttribution:function(){return this.options.attribution}
1,_initImage:function(){this._image=c.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&c.Browser.any3d?c.DomUtil.addClass(this._image,"leaflet-zoom-animated"):c.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),c.extend(this._image,{galleryimg:"no",onselectstart:c.Util.falseFn,onmousemove:c.Util.falseFn,onload:c.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(t){var e=this._map,i=this._image,n=e.getZoomScale(t.zoom),o=this._bounds.getNorthWest(),s=this._bounds.getSouthEast(),r=e._latLngToNewLayerPoint(o,t.zoom,t.center),a=e._latLngToNewLayerPoint(s,t.zoom,t.center)._subtract(r),l=r._add(a._multiplyBy(.5*(1-1/n)));i.style[c.DomUtil.TRANSFORM]=c.DomUtil.getTranslateString(l)+" scale("+n+") "},_reset:function(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),i=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);c.DomUtil.setPosition(t,e),t.style.width=i.x+"px",t.style.height=i.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){c.DomUtil.setOpacity(this._image,this.options.opacity)}}),c.imageOverlay=function(t,e,i){return new c.ImageOverlay(t,e,i)},c.Icon=c.Class.extend({options:{className:""},initialize:function(t){c.setOptions(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i,n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}return i=e&&"IMG"===e.tagName?this._createImg(n,e):this._createImg(n),this._setIconStyles(i,t),i},_setIconStyles:function(t,e){var i,n=this.options,o=c.point(n[e+"Size"]);!(i="shadow"===e?c.point(n.shadowAnchor||n.iconAnchor):c.point(n.iconAnchor))&&o&&(i=o.divideBy(2,!0)),t.className="leaflet-marker-"+e+" "+n.className,i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||r.createElement("img")).src=t,e},_getIconUrl:function(t){return c.Browser.retina&&this.options[t+"RetinaUrl"]?this.options[t+"RetinaUrl"]:this.options[t+"Url"]}}),c.icon=function(t){return new c.Icon(t)},c.Icon.Default=c.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(t){var e=t+"Url";if(this.options[e])return this.options[e];c.Browser.retina&&"icon"===t&&(t+="-2x");var i=c.Icon.Default.imagePath;if(!i)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return i+"/marker-"+t+".png"}}),c.Icon.Default.imagePath=function(){var t,e,i,n,o=r.getElementsByTagName("script"),s=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t=0,e=o.length;t<e;t++)if((i=o[t].src).match(s))return((n=i.split(s)[0])?n+"/":"")+"images"}(),c.Marker=c.Class.extend({includes:c.Mixin.Events,options:{icon:new c.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(t,e){c.setOptions(this,e),this._latlng=c.latLng(t)},onAdd:function(t){this._map=t,t.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),t.options.zoomAnimation&&t.options.markerZoomAnimation&&t.on("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),t.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=c.latLng(t),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update(),this},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){return this._icon&&this._setPos(this._map.latLngToLayerPoint(this._latlng).round()),this},_initIcon:function(){var t=this.options,e=this._map,i=e.options.zoomAnimation&&e.options.markerZoomAnimation?"leaflet-zoom-animated":"leaflet-zoom-hide",n=t.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),t.alt&&(n.alt=t.alt)),c.DomUtil.addClass(n,i),t.keyboard&&(n.tabIndex="0"),this._icon=n,this._initInteraction(),t.riseOnHover&&c.DomEvent.on(n,"mouseover",this._bringToFront,this).on(n,"mouseout",this._resetZIndex,this);var s=t.icon.createShadow(this._shadow),r=!1;s!==this._shadow&&(this._removeShadow(),r=!0),s&&c.DomUtil.addClass(s,i),this._shadow=s,t.opacity<1&&this._updateOpacity();var a=this._map._panes;o&&a.markerPane.appendChild(this._icon),s&&r&&a.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&c.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(t){c.DomUtil.setPosition(this._icon,t),this._shadow&&c.DomUtil.setPosition(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){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.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];c.DomUtil.addClass(t,"leaflet-clickable"),c.DomEvent.on(t,"click",this._onMouseClick,this),c.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;i<e.length;i++)c.DomEvent.on(t,e[i],this._fireMouseEvent,this);c.Handler.MarkerDrag&&(this.dragging=new c.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_onMouseClick:function(t){var e=this.dragging&&this.dragging.moved();(this.hasEventListeners(t.type)||e)&&c.DomEvent.stopPropagation(t),e||(this.dragging&&this.dragging._enabled||!this._map.dragging||!this._map.dragging.moved())&&this.fire(t.type,{originalEvent:t,latlng:this._latlng})},_onKeyPress:function(t){13===t.keyCode&&this.fire("click",{originalEvent:t,latlng:this._latlng})},_fireMouseEvent:function(t){this.fire(t.type,{originalEvent:t,latlng:this._latlng}),"contextmenu"===t.type&&this.hasEventListeners(t.type)&&c.DomEvent.preventDefault(t),"mousedown"!==t.type?c.DomEvent.stopPropagation(t):c.DomEvent.preventDefault(t)},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){c.DomUtil.setOpacity(this._icon,this.options.opacity),this._shadow&&c.DomUtil.setOpacity(this._shadow,this.options.opacity)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}}),c.marker=function(t,e){return new c.Marker(t,e)},c.DivIcon=c.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:r.createElement("div"),i=this.options;return!1!==i.html?e.innerHTML=i.html:e.innerHTML="",i.bgPos&&(e.style.backgroundPosition=-i.bgPos.x+"px "+-i.bgPos.y+"px"),this._setIconStyles(e,"icon"),e},createShadow:function(){return null}}),c.divIcon=function(t){return new c.DivIcon(t)},c.Map.mergeOptions({closePopupOnClick:!0}),c.Popup=c.Class.extend({includes:c.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function(t,e){c.setOptions(this,t),this._source=e,this._animated=c.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(t){this._map=t,this._container||this._initLayout();var e=t.options.fadeAnimation;e&&c.DomUtil.setOpacity(this._container,0),t._panes.popupPane.appendChild(this._container),t.on(this._getEvents(),this),this.update(),e&&c.DomUtil.setOpacity(this._container,1),this.fire("open"),t.fire("popupopen",{popup:this}),this._source&&this._source.fire("popupopen",{popup:this})},addTo:function(t){return t.addLayer(this),this},openOn:function(t){return t.openPopup(this),this},onRemove:function(t){t._panes.popupPane.removeChild(this._container),c.Util.falseFn(this._container.offsetWidth),t.off(this._getEvents(),this),t.options.fadeAnimation&&c.DomUtil.setOpacity(this._container,0),this._map=null,this.fire("close"),t.fire("popupclose",{popup:this}),this._source&&this._source.fire("popupclose",{popup:this})},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=c.latLng(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},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={viewreset:this._updatePosition};return this._animated&&(t.zoomanim=this._zoomAnimation),("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&
1(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,e="leaflet-popup",i=e+" "+this.options.className+" leaflet-zoom-"+(this._animated?"animated":"hide"),n=this._container=c.DomUtil.create("div",i);this.options.closeButton&&((t=this._closeButton=c.DomUtil.create("a",e+"-close-button",n)).href="#close",t.innerHTML="&#215;",c.DomEvent.disableClickPropagation(t),c.DomEvent.on(t,"click",this._onCloseButtonClick,this));var o=this._wrapper=c.DomUtil.create("div",e+"-content-wrapper",n);c.DomEvent.disableClickPropagation(o),this._contentNode=c.DomUtil.create("div",e+"-content",o),c.DomEvent.disableScrollPropagation(this._contentNode),c.DomEvent.on(o,"contextmenu",c.DomEvent.stopPropagation),this._tipContainer=c.DomUtil.create("div",e+"-tip-container",n),this._tip=c.DomUtil.create("div",e+"-tip",this._tipContainer)},_updateContent:function(){if(this._content){if("string"==typeof this._content)this._contentNode.innerHTML=this._content;else{for(;this._contentNode.hasChildNodes();)this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content)}this.fire("contentupdate")}},_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 n=t.offsetHeight,o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&n>o?(e.height=o+"px",c.DomUtil.addClass(t,s)):c.DomUtil.removeClass(t,s),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,i=c.point(this.options.offset);e&&c.DomUtil.setPosition(this._container,t),this._containerBottom=-i.y-(e?0:t.y),this._containerLeft=-Math.round(this._containerWidth/2)+i.x+(e?0:t.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);c.DomUtil.setPosition(this._container,e)},_adjustPan:function(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,i=this._containerWidth,n=new c.Point(this._containerLeft,-e-this._containerBottom);this._animated&&n._add(c.DomUtil.getPosition(this._container));var o=t.layerPointToContainerPoint(n),s=c.point(this.options.autoPanPadding),r=c.point(this.options.autoPanPaddingTopLeft||s),a=c.point(this.options.autoPanPaddingBottomRight||s),l=t.getSize(),h=0,u=0;o.x+i+a.x>l.x&&(h=o.x+i-l.x+a.x),o.x-h-r.x<0&&(h=o.x-r.x),o.y+e+a.y>l.y&&(u=o.y+e-l.y+a.y),o.y-u-r.y<0&&(u=o.y-r.y),(h||u)&&t.fire("autopanstart").panBy([h,u])}},_onCloseButtonClick:function(t){this._close(),c.DomEvent.stop(t)}}),c.popup=function(t,e){return new c.Popup(t,e)},c.Map.include({openPopup:function(t,e,i){if(this.closePopup(),!(t instanceof c.Popup)){var n=t;t=new c.Popup(i).setLatLng(e).setContent(n)}return t._isOpen=!0,this._popup=t,this.addLayer(t)},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&(this.removeLayer(t),t._isOpen=!1),this}}),c.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(t,e){var i=c.point(this.options.icon.options.popupAnchor||[0,0]);return i=i.add(c.Popup.prototype.options.offset),e&&e.offset&&(i=i.add(e.offset)),e=c.extend({offset:i},e),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),t instanceof c.Popup?(c.setOptions(t,e),this._popup=t,t._source=this):this._popup=new c.Popup(e,this).setContent(t),this}
1,setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(t){this._popup.setLatLng(t.latlng)}}),c.LayerGroup=c.Class.extend({initialize:function(t){var e,i;if(this._layers={},t)for(e=0,i=t.length;e<i;e++)this.addLayer(t[e])},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!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this._map=t,this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t),this._map=null},addTo:function(t){return t.addLayer(this),this},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=[];for(var e in this._layers)t.push(this._layers[e]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return c.stamp(t)}}),c.layerGroup=function(t){return new c.LayerGroup(t)},c.FeatureGroup=c.LayerGroup.extend({includes:c.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(t){return this.hasLayer(t)?this:("on"in t&&t.on(c.FeatureGroup.EVENTS,this._propagateEvent,this),c.LayerGroup.prototype.addLayer.call(this,t),this._popupContent&&t.bindPopup&&t.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),"off"in t&&t.off(c.FeatureGroup.EVENTS,this._propagateEvent,this),c.LayerGroup.prototype.removeLayer.call(this,t),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:t})):this},bindPopup:function(t,e){return this._popupContent=t,this._popupOptions=e,this.invoke("bindPopup",t,e)},openPopup:function(t){for(var e in this._layers){this._layers[e].openPopup(t);break}return 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 c.LatLngBounds;return this.eachLayer((function(e){t.extend(e instanceof c.Marker?e.getLatLng():e.getBounds())})),t},_propagateEvent:function(t){t=c.extend({layer:t.target,target:this},t),this.fire(t.type,t)}}),c.featureGroup=function(t){return new c.FeatureGroup(t)},c.Path=c.Class.extend({includes:[c.Mixin.Events],statics:{CLIP_PADDING:(O=((c.Browser.mobile?1280:2e3)/Math.max(s.outerWidth,s.outerHeight)-1)/2,Math.max(0,Math.min(.5,O)))},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(t){c.setOptions(this,t)},onAdd:function(t){this._map=t,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),t.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){t._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,c.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),t.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(t){return c.setOptions(this,t),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),c.Map.include({_updatePathViewport:function(){var t=c.Path.CLIP_PADDING,e=this.getSize(),i=c.DomUtil.getPosition(this._mapPane).multiplyBy(-1)._subtract(e.multiplyBy(t)._roun
1d()),n=i.add(e.multiplyBy(1+2*t)._round());this._pathViewport=new c.Bounds(i,n)}}),c.Path.SVG_NS="http://www.w3.org/2000/svg",c.Browser.svg=!(!r.createElementNS||!r.createElementNS(c.Path.SVG_NS,"svg").createSVGRect),c.Path=c.Path.extend({statics:{SVG:c.Browser.svg},bringToFront:function(){var t=this._map._pathRoot,e=this._container;return e&&t.lastChild!==e&&t.appendChild(e),this},bringToBack:function(){var t=this._map._pathRoot,e=this._container,i=t.firstChild;return e&&i!==e&&t.insertBefore(e,i),this},getPathString:function(){},_createElement:function(t){return r.createElementNS(c.Path.SVG_NS,t)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&c.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var t=this.getPathString();t||(t="M0 0"),this._path.setAttribute("d",t)},_initEvents:function(){if(this.options.clickable){!c.Browser.svg&&c.Browser.vml||c.DomUtil.addClass(this._path,"leaflet-clickable"),c.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e<t.length;e++)c.DomEvent.on(this._container,t[e],this._fireMouseEvent,this)}},_onMouseClick:function(t){this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(t)},_fireMouseEvent:function(t){if(this._map&&this.hasEventListeners(t.type)){var e=this._map,i=e.mouseEventToContainerPoint(t),n=e.containerPointToLayerPoint(i),o=e.layerPointToLatLng(n);this.fire(t.type,{latlng:o,layerPoint:n,containerPoint:i,originalEvent:t}),"contextmenu"===t.type&&c.DomEvent.preventDefault(t),"mousemove"!==t.type&&c.DomEvent.stopPropagation(t)}}}),c.Map.include({_initPathRoot:function(){this._pathRoot||(this._pathRoot=c.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation&&c.Browser.any3d?(c.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):c.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport())},_animatePathZoom:function(t){var e=this.getZoomScale(t.zoom),i=this._getCenterOffset(t.center)._multiplyBy(-e)._add(this._pathViewport.min);this._pathRoot.style[c.DomUtil.TRANSFORM]=c.DomUtil.getTranslateString(i)+" scale("+e+") ",this._pathZooming=!0},_endPathZoom:function(){this._pathZooming=!1},_updateSvgViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max,n=i.x-e.x,o=i.y-e.y,s=this._pathRoot,r=this._panes.overlayPane;c.Browser.mobileWebkit&&r.removeChild(s),c.DomUtil.setPosition(s,e),s.setAttribute("width",n),s.setAttribute("height",o),s.setAttribute("viewBox",[e.x,e.y,n,o].join(" ")),c.Browser.mobileWebkit&&r.appendChild(s)}}}),c.Path.include({bindPopup:function(t,e){return t instanceof c.Popup?this._popup=t:(this._popup&&!e||(this._popup=new c.Popup(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded=!1),this},openPopup:function(t){return this._popup&&(t=t||this._latlng||this._latlngs[Math.floor(this._latlngs.length/2)],this._openPopup({latlng:t})),this},closePopup:function(){return this._popup&&this._popup._close(),this},_openPopup:function(t){this._popup.setLatLng(t.latlng),this._map.openPopup(this._popup)}}),c.Browser.vml=!c.Browser.svg&&function(){try{var t=r.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(t){return!1}}(),c.Path=c.Browser.svg||!c.Browser.vml?c.Path:c.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return r.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return r.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return r.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");c.DomUtil.addClass(t,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&c.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize="1 1",this._path=this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,e=this._fill,i=this.options,n=this._container;n.stroked=i.stroke,n.filled=i.fill,i.stroke?(t||((t=this._stroke=this._createElement("stroke")).endcap="round",n.appendChild(t)),t.weight=i.weight+"px",t.color=i.color,t.opacity=i.opacity,i.dashArray?t.dashStyle=c.Util.isArray(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):t.dashStyle="",i.lineCap&&(t.endcap=i.lineCap.replace("butt","flat")),i.lineJoin&&(t.joinstyle=i.lineJoin)):t&&(n.removeChild(t),this._stroke=null),i.fill?(e||(e=this._fill=this._createElement("fill"),n.appendChild(e)),e.color=i.fillColor||i.color,e.opacity=i.fillOpacity):e&&(n.removeChild(e),this._fill=null)},_updatePath:function(){var t=this._container.style;
1t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),c.Map.include(c.Browser.svg||!c.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var t=this._pathRoot=r.createElement("div");t.className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),c.Browser.canvas=!!r.createElement("canvas").getContext,c.Path=c.Path.SVG&&!s.L_PREFER_CANVAS||!c.Browser.canvas?c.Path:c.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return c.setOptions(this,t),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this.fire("remove"),this._map=null},_requestUpdate:function(){this._map&&!c.Path._updateRequest&&(c.Path._updateRequest=c.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){c.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var t=this.options;t.stroke&&(this._ctx.lineWidth=t.weight,this._ctx.strokeStyle=t.color),t.fill&&(this._ctx.fillStyle=t.fillColor||t.color),t.lineCap&&(this._ctx.lineCap=t.lineCap),t.lineJoin&&(this._ctx.lineJoin=t.lineJoin)},_drawPath:function(){var t,e,i,n,o,s;for(this._ctx.beginPath(),t=0,i=this._parts.length;t<i;t++){for(e=0,n=this._parts[t].length;e<n;e++)o=this._parts[t][e],s=(0===e?"move":"line")+"To",this._ctx[s](o.x,o.y);this instanceof c.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var t=this._ctx,e=this.options;this._drawPath(),t.save(),this._updateStyle(),e.fill&&(t.globalAlpha=e.fillOpacity,t.fill(e.fillRule||"evenodd")),e.stroke&&(t.globalAlpha=e.opacity,t.stroke()),t.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click dblclick contextmenu",this._fireMouseEvent,this))},_fireMouseEvent:function(t){this._containsPoint(t.layerPoint)&&this.fire(t.type,t)},_onMouseMove:function(t){this._map&&!this._map._animatingZoom&&(this._containsPoint(t.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",t)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",t)))}}),c.Map.include(c.Path.SVG&&!s.L_PREFER_CANVAS||!c.Browser.canvas?{}:{_initPathRoot:function(){var t,e=this._pathRoot;e||((e=this._pathRoot=r.createElement("canvas")).style.position="absolute",(t=this._canvasCtx=e.getContext("2d")).lineCap="round",t.lineJoin="round",this._panes.overlayPane.appendChild(e),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max.subtract(e),n=this._pathRoot;c.DomUtil.setPosition(n,e),n.width=i.x,n.height=i.y,n.getContext("2d").translate(-e.x,-e.y)}}}),c.LineUtil={simplify:function(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=this._reducePoints(t,i),t=this._simplifyDP(t,i)},pointToSegmentDistance:function(t,e,i){return Math.sqrt(this._sqClosestPointOnSegment(t,e,i,!0))},closestPointOnSegment:function(t,e,i){return this._sqClosestPointOnSegment(t,e,i)},_simplifyDP:function(t,e){var i=t.length,n=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(i);n[0]=n[i-1]=1,this._simplifyDPStep(t,n,e,0,i-1);var o,s=[];for(o=0;o<i;o++)n[o]&&s.push(t[o]);return s},_simplifyDPStep:function(t,e,i,n,o){var s,r,a,l=0;for(r=n+1;r<=o-1;r++)(a=this._sqClosestPointOnSegment(t[r],t[n],t[o],!0))>l&&(s=r,l=a);l>i&&(e[s]=1,this._simplifyDPStep(t,e,i,n,s),this._simplifyDPStep(t,e,i,s,o))},_reducePoints:function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)this._sqDist(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}
1,clipSegment:function(t,e,i,n){var o,s,r,a=n?this._lastCode:this._getBitCode(t,i),l=this._getBitCode(e,i);for(this._lastCode=l;;){if(!(a|l))return[t,e];if(a&l)return!1;o=a||l,s=this._getEdgeIntersection(t,e,o,i),r=this._getBitCode(s,i),o===a?(t=s,a=r):(e=s,l=r)}},_getEdgeIntersection:function(t,e,i,n){var o=e.x-t.x,s=e.y-t.y,r=n.min,a=n.max;return 8&i?new c.Point(t.x+o*(a.y-t.y)/s,a.y):4&i?new c.Point(t.x+o*(r.y-t.y)/s,r.y):2&i?new c.Point(a.x,t.y+s*(a.x-t.x)/o):1&i?new c.Point(r.x,t.y+s*(r.x-t.x)/o):void 0},_getBitCode:function(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},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n},_sqClosestPointOnSegment:function(t,e,i,n){var o,s=e.x,r=e.y,a=i.x-s,l=i.y-r,h=a*a+l*l;return h>0&&((o=((t.x-s)*a+(t.y-r)*l)/h)>1?(s=i.x,r=i.y):o>0&&(s+=a*o,r+=l*o)),a=t.x-s,l=t.y-r,n?a*a+l*l:new c.Point(s,r)}},c.Polyline=c.Path.extend({initialize:function(t,e){c.Path.prototype.initialize.call(this,e),this._latlngs=this._convertLatLngs(t)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var t=0,e=this._latlngs.length;t<e;t++)this._originalPoints[t]=this._map.latLngToLayerPoint(this._latlngs[t])},getPathString:function(){for(var t=0,e=this._parts.length,i="";t<e;t++)i+=this._getPathPartStr(this._parts[t]);return i},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._latlngs=this._convertLatLngs(t),this.redraw()},addLatLng:function(t){return this._latlngs.push(c.latLng(t)),this.redraw()},spliceLatLngs:function(){var t=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),t},closestLayerPoint:function(t){for(var e,i,n=1/0,o=this._parts,s=null,r=0,a=o.length;r<a;r++)for(var l=o[r],h=1,u=l.length;h<u;h++){e=l[h-1],i=l[h];var d=c.LineUtil._sqClosestPointOnSegment(t,e,i,!0);d<n&&(n=d,s=c.LineUtil._sqClosestPointOnSegment(t,e,i))}return s&&(s.distance=Math.sqrt(n)),s},getBounds:function(){return new c.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(t,e){var i,n,o=e?t:[];for(i=0,n=t.length;i<n;i++){if(c.Util.isArray(t[i])&&"number"!=typeof t[i][0])return;o[i]=c.latLng(t[i])}return o},_initEvents:function(){c.Path.prototype._initEvents.call(this)},_getPathPartStr:function(t){for(var e,i=c.Path.VML,n=0,o=t.length,s="";n<o;n++)e=t[n],i&&e._round(),s+=(n?"L":"M")+e.x+" "+e.y;return s},_clipPoints:function(){var t,e,i,n=this._originalPoints,o=n.length;if(this.options.noClip)this._parts=[n];else{this._parts=[];var s=this._parts,r=this._map._pathViewport,a=c.LineUtil;for(t=0,e=0;t<o-1;t++)(i=a.clipSegment(n[t],n[t+1],r,t))&&(s[e]=s[e]||[],s[e].push(i[0]),i[1]===n[t+1]&&t!==o-2||(s[e].push(i[1]),e++))}},_simplifyPoints:function(){for(var t=this._parts,e=c.LineUtil,i=0,n=t.length;i<n;i++)t[i]=e.simplify(t[i],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),c.Path.prototype._updatePath.call(this))}}),c.polyline=function(t,e){return new c.Polyline(t,e)},c.PolyUtil={},c.PolyUtil.clipPolygon=function(t,e){var i,n,o,s,r,a,l,h,u,d=[1,4,2,8],p=c.LineUtil;for(n=0,l=t.length;n<l;n++)t[n]._code=p._getBitCode(t[n],e);for(s=0;s<4;s++){for(h=d[s],i=[],n=0,o=(l=t.length)-1;n<l;o=n++)r=t[n],a=t[o],r._code&h?a._code&h||((u=p._getEdgeIntersection(a,r,h,e))._code=p._getBitCode(u,e),i.push(u)):(a._code&h&&((u=p._getEdgeIntersection(a,r,h,e))._code=p._getBitCode(u,e),i.push(u)),i.push(r));t=i}return t},c.Polygon=c.Polyline.extend({options:{fill:!0},initialize:function(t,e){c.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t)},_initWithHoles:function(t){var e,i,n;if(t&&c.Util.isArray(t[0])&&"number"!=typeof t[0][0])for(this._latlngs=this._convertLatLngs(t[0]),this._holes=t.slice(1),e=0,i=this._holes.length;e<i;e++)(n=this._holes[e]=this._convertLatLngs(this._holes[e]))[0].equals(n[n.length-1])&&n.pop();(t=this._latlngs).length>=2&&t[0].equals(t[t.length-1])&&t.pop()},projectLatlngs:function(){var t,e,i,n;if(c.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes)for(t=0,i=this._holes.length;t<i;t++)for(this._holePoints[t]=[],e=0,n=this._holes[t].length;e<n;e++)this._holePoints[t][e]=this._map.latLngToLayerPoint(this._holes[t][e])},setLatLngs:function(t){return t&&c.Util.isArray(t[0])&&"number"!=typeof t[0][0]?(this._initWithHoles(t),this.redraw()):c.Polyline.prototype.setLatLngs.call(this,t)},_clipPoints:function(){var t=this._originalPoints,e=[];
1if(this._parts=[t].concat(this._holePoints),!this.options.noClip){for(var i=0,n=this._parts.length;i<n;i++){var o=c.PolyUtil.clipPolygon(this._parts[i],this._map._pathViewport);o.length&&e.push(o)}this._parts=e}},_getPathPartStr:function(t){return c.Polyline.prototype._getPathPartStr.call(this,t)+(c.Browser.svg?"z":"x")}}),c.polygon=function(t,e){return new c.Polygon(t,e)},function(){function t(t){return c.FeatureGroup.extend({initialize:function(t,e){this._layers={},this._options=e,this.setLatLngs(t)},setLatLngs:function(e){var i=0,n=e.length;for(this.eachLayer((function(t){i<n?t.setLatLngs(e[i++]):this.removeLayer(t)}),this);i<n;)this.addLayer(new t(e[i++],this._options));return this},getLatLngs:function(){var t=[];return this.eachLayer((function(e){t.push(e.getLatLngs())})),t}})}c.MultiPolyline=t(c.Polyline),c.MultiPolygon=t(c.Polygon),c.multiPolyline=function(t,e){return new c.MultiPolyline(t,e)},c.multiPolygon=function(t,e){return new c.MultiPolygon(t,e)}}(),c.Rectangle=c.Polygon.extend({initialize:function(t,e){c.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=c.latLngBounds(t)).getSouthWest
1(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}),c.rectangle=function(t,e){return new c.Rectangle(t,e)},c.Circle=c.Path.extend({initialize:function(t,e,i){c.Path.prototype.initialize.call(this,i),this._latlng=c.latLng(t),this._mRadius=e},options:{fill:!0},setLatLng:function(t){return this._latlng=c.latLng(t),this.redraw()},setRadius:function(t){return this._mRadius=t,this.redraw()},projectLatlngs:function(){var t=this._getLngRadius(),e=this._latlng,i=this._map.latLngToLayerPoint([e.lat,e.lng-t]);this._point=this._map.latLngToLayerPoint(e),this._radius=Math.max(this._point.x-i.x,1)},getBounds:function(){var t=this._getLngRadius(),e=this._mRadius/40075017*360,i=this._latlng;return new c.LatLngBounds([i.lat-e,i.lng-t],[i.lat+e,i.lng+t])},getLatLng:function(){return this._latlng},getPathString:function(){var t=this._point,e=this._radius;return this._checkIfEmpty()?"":c.Browser.svg?"M"+t.x+","+(t.y-e)+"A"+e+","+e+",0,1,1,"+(t.x-.1)+","+(t.y-e)+" z":(t._round(),e=Math.round(e),"AL "+t.x+","+t.y+" "+e+","+e+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(c.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var t=this._map._pathViewport,e=this._radius,i=this._point;return i.x-e>t.max.x||i.y-e>t.max.y||i.x+e<t.min.x||i.y+e<t.min.y}}),c.circle=function(t,e,i){return new c.Circle(t,e,i)},c.CircleMarker=c.Circle.extend({options:{radius:10,weight:2},initialize:function(t,e){c.Circle.prototype.initialize.call(this,t,null,e),this._radius=this.options.radius},projectLatlngs:function(){this._point=this._map.latLngToLayerPoint(this._latlng)},_updateStyle:function(){c.Circle.prototype._updateStyle.call(this),this.setRadius(this.options.radius)},setLatLng:function(t){return c.Circle.prototype.setLatLng.call(this,t),this._popup&&this._popup._isOpen&&this._popup.setLatLng(t),this},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}}),c.circleMarker=function(t,e){return new c.CircleMarker(t,e)},c.Polyline.include(c.Path.CANVAS?{_containsPoint:function(t,e){var i,n,o,s,r,a,l=this.options.weight/2;for(c.Browser.touch&&(l+=10),i=0,s=this._parts.length;i<s;i++)for(n=0,o=(r=(a=this._parts[i]).length)-1;n<r;o=n++)if((e||0!==n)&&c.LineUtil.pointToSegmentDistance(t,a[o],a[n])<=l)return!0;return!1}}:{}),c.Polygon.include(c.Path.CANVAS?{_containsPoint:function(t){var e,i,n,o,s,r,a,l,h=!1;if(c.Polyline.prototype._containsPoint.call(this,t,!0))return!0;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(l=(e=this._parts[o]).length)-1;s<l;r=s++)i=e[s],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(h=!h);return h}}:{}),c.Circle.include(c.Path.CANVAS?{_drawPath:function(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(t){var e=this._point,i=this.options.stroke?this.options.weight/2:0;return t.distanceTo(e)<=this._radius+i}}:{}),c.CircleMarker.include(c.Path.CANVAS?{_updateStyle:function(){c.Path.prototype._updateStyle.call(this)}}:{}),c.GeoJSON=c.FeatureGroup.extend({initialize:function(t,e){c.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=c.Util.isArray(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(o[e]);return this}var s=this.options;if(!s.filter||s.filter(t)){var r=c.GeoJSON.geometryToLayer(t,s.pointToLayer,s.coordsToLatLng,s);return r.feature=c.GeoJSON.asFeature(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)}},resetStyle:function(t){var e=this.options.style;e&&(c.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e))},setStyle:function(t){this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),c.extend(c.GeoJSON,{geometryToLayer:function(t,e,i,n){var o,s,r,a,l="Feature"===t.type?t.geometry:t,h=l.coordinates,u=[];switch(i=i||this.coordsToLatLng,l.type){case"Point":return o=i(h),e?e(t,o):new c.Marker(o);case"MultiPoint":for(r=0,a=h.length;r<a;r++)o=i(h[r]),u.push(e?e(t,o):new c.Marker(o));return new c.FeatureGroup(u);case"LineString":return s=this.coordsToLatLngs(h,0,i),new c.Polyline(s,n);case"Polygon":if(2===h.length&&!h[1].length)throw new Error("Invalid GeoJSON object.");return s=this.coordsToLatLngs(h,1,i),new c.Polygon(s,n);case"MultiLineString":return s=this.coordsToLatLngs(h,1,i),new c.MultiPolyline(s,n);case"MultiPolygon":return s=this.coordsToLatLngs(h,2,i),new c.MultiPolygon(s,n);case"GeometryCollection":for(r=0,a=l.geometries.length;r<a;r++)u.push(this.geometryToLayer({geometry:l.geometries[r],type:"Feature",properties:t.properties},e,i,n));return new c.FeatureGroup(u);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(t){return new c.LatLng(t[1],t[0],t[2])}
1,coordsToLatLngs:function(t,e,i){var n,o,s,r=[];for(o=0,s=t.length;o<s;o++)n=e?this.coordsToLatLngs(t[o],e-1,i):(i||this.coordsToLatLng)(t[o]),r.push(n);return r},latLngToCoords:function(t){var e=[t.lng,t.lat];return t.alt!==a&&e.push(t.alt),e},latLngsToCoords:function(t){for(var e=[],i=0,n=t.length;i<n;i++)e.push(c.GeoJSON.latLngToCoords(t[i]));return e},getFeature:function(t,e){return t.feature?c.extend({},t.feature,{geometry:e}):c.GeoJSON.asFeature(e)},asFeature:function(t){return"Feature"===t.type?t:{type:"Feature",properties:{},geometry:t}}});var z={toGeoJSON:function(){return c.GeoJSON.getFeature(this,{type:"Point",coordinates:c.GeoJSON.latLngToCoords(this.getLatLng())})}};c.Marker.include(z),c.Circle.include(z),c.CircleMarker.include(z),c.Polyline.include({toGeoJSON:function(){return c.GeoJSON.getFeature(this,{type:"LineString",coordinates:c.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),c.Polygon.include({toGeoJSON:function(){var t,e,i,n=[c.GeoJSON.latLngsToCoords(this.getLatLngs())];if(n[0].push(n[0][0]),this._holes)for(t=0,e=this._holes.length;t<e;t++)(i=c.GeoJSON.latLngsToCoords(this._holes[t])).push(i[0]),n.push(i);return c.GeoJSON.getFeature(this,{type:"Polygon",coordinates:n})}}),function(){function t(t){return function(){var e=[];return this.eachLayer((function(t){e.push(t.toGeoJSON().geometry.coordinates)})),c.GeoJSON.getFeature(this,{type:t,coordinates:e})}}c.MultiPolyline.include({toGeoJSON:t("MultiLineString")}),c.MultiPolygon.include({toGeoJSON:t("MultiPolygon")}),c.LayerGroup.include({toGeoJSON:function(){var e,i=this.feature&&this.feature.geometry,n=[];if(i&&"MultiPoint"===i.type)return t("MultiPoint").call(this);var o=i&&"GeometryCollection"===i.type;return this.eachLayer((function(t){t.toGeoJSON&&(e=t.toGeoJSON(),n.push(o?e.geometry:c.GeoJSON.asFeature(e)))})),o?c.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}})}(),c.geoJson=function(t,e){return new c.GeoJSON(t,e)},c.DomEvent={addListener:function(t,e,i,n){var o,s,r,a=c.stamp(i),l="_leaflet_"+e+a;return t[l]?this:(o=function(e){return i.call(n||t,e||c.DomEvent._getEvent())},c.Browser.pointer&&0===e.indexOf("touch")?this.addPointerListener(t,e,o,a):(c.Browser.touch&&"dblclick"===e&&this.addDoubleTapListener&&this.addDoubleTapListener(t,o,a),"addEventListener"in t?"mousewheel"===e?(t.addEventListener("DOMMouseScroll",o,!1),t.addEventListener(e,o,!1)):"mouseenter"===e||"mouseleave"===e?(s=o,r="mouseenter"===e?"mouseover":"mouseout",o=function(e){if(c.DomEvent._checkMouse(t,e))return s(e)},t.addEventListener(r,o,!1)):"click"===e&&c.Browser.android?(s=o,o=function(t){return c.DomEvent._filterClick(t,s)},t.addEventListener(e,o,!1)):t.addEventListener(e,o,!1):"attachEvent"in t&&t.attachEvent("on"+e,o),t[l]=o,this))},removeListener:function(t,e,i){var n=c.stamp(i),o="_leaflet_"+e+n,s=t[o];return s?(c.Browser.pointer&&0===e.indexOf("touch")?this.removePointerListener(t,e,n):c.Browser.touch&&"dblclick"===e&&this.removeDoubleTapListener?this.removeDoubleTapListener(t,n):"removeEventListener"in t?"mousewheel"===e?(t.removeEventListener("DOMMouseScroll",s,!1),t.removeEventListener(e,s,!1)):"mouseenter"===e||"mouseleave"===e?t.removeEventListener("mouseenter"===e?"mouseover":"mouseout",s,!1):t.removeEventListener(e,s,!1):"detachEvent"in t&&t.detachEvent("on"+e,s),t[o]=null,this):this},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,c.DomEvent._skipped(t),this},disableScrollPropagation:function(t){var e=c.DomEvent.stopPropagation;return c.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e)},disableClickPropagation:function(t){for(var e=c.DomEvent.stopPropagation,i=c.Draggable.START.length-1;i>=0;i--)c.DomEvent.on(t,c.Draggable.START[i],e);return c.DomEvent.on(t,"click",c.DomEvent._fakeStop).on(t,"dblclick",e)},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return c.DomEvent.preventDefault(t).stopPropagation(t)},getMousePosition:function(t,e){if(!e)return new c.Point(t.clientX,t.clientY);var i=e.getBoundingClientRect();return new c.Point(t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop)},getWheelDelta:function(t){var e=0;return t.wheelDelta&&(e=t.wheelDelta/120),t.detail&&(e=-t.detail/3),e},_skipEvents:{},_fakeStop:function(t){c.DomEvent._skipEvents[t.type]=!0},_skipped:function(t){var e=this._skipEvents[t.type];return this._skipEvents[t.type]=!1,e},_checkMouse:function(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t},_getEvent:function(){var t=s.event;if(!t)for(var e=arguments.callee.caller;e&&(!(t=e.arguments[0])||s.Event!==t.constructor);)e=e.caller;return t},_filterClick:function(t,e){var i=t.timeStamp||t.originalEvent.timeStamp,n=c.DomEvent._lastClick&&i-c.DomEvent._lastClick;if(!(n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated))return c.DomEvent._lastClick=i,e(t);c.DomEvent.stop(t)}},c.DomEvent.on=c.DomEvent.addListener,c.DomEvent.off=c.DomEvent.removeListener,c.Draggable=c.Class.extend({includes:c.Mixin.Events,statics:{START:c.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(t,e){this._element=t,this._dragStartTarget=e||t},enable:function(){if(!this._enabled){for(var t=c.Draggable.START.length-1;t>=0;t--)c.DomEvent.on(this._dragStartTarget,c.Draggable.START[t],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var t=c.Draggable.START.length-1;t>=0;t--)c.DomEvent.off(this._dragStartTarget,c.Draggable.START[t],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(t){if(this._moved=!1,!t.shiftKey&&(1===t.which||1===t.button||t.touches)&&(c.DomEvent.stopPropagation(t),!c.Draggable._disabled&&(c.DomUtil.disableImageDrag(),c.DomUtil.disableTextSelection(),!this._moving))){var e=t.touches?t.touches[0]:t;this._startPoint=new c.Point(e.clientX,e.clientY),this._startPos=this._newPos=c.DomUtil.getPosition(this._element),c.DomEvent.on(r,c.Draggable.MOVE[t.type],this._onMove,this).on(r,c.Draggable.END[t.type],this._onUp,this)}},_onMove:function(t){if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new c.Point(e.clientX,e.clientY).subtract(this._startPoint);(i.x||i.y)&&(c.Browser.touch&&Math.abs(i.x)+Math.abs(i.y)<3||(c.DomEvent.preventDefault(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=c.DomUtil.getPosition(this._element).subtract(i),c.DomUtil.addClass(r.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,c.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,c.Util.cancelAnimFrame
1(this._animRequest),this._animRequest=c.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)))}},_updatePosition:function(){this.fire("predrag"),c.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(){for(var t in c.DomUtil.removeClass(r.body,"leaflet-dragging"),this._lastTarget&&(c.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),c.Draggable.MOVE)c.DomEvent.off(r,c.Draggable.MOVE[t],this._onMove).off(r,c.Draggable.END[t],this._onUp);c.DomUtil.enableImageDrag(),c.DomUtil.enableTextSelection(),this._moved&&this._moving&&(c.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),c.Handler=c.Class.extend({initialize:function(t){this._map=t},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),c.Map.mergeOptions({dragging:!0,inertia:!c.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:c.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),c.Map.Drag=c.Handler.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new c.Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),t.on("viewreset",this._onViewReset,this),t.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var t=this._map;t._panAnim&&t._panAnim.stop(),t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var t=this._lastTime=+new Date,e=this._lastPos=this._draggable._newPos;this._positions.push(e),this._times.push(t),t-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var t=this._map.getSize()._divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)<Math.abs(s+i)?o:s;this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,i=e.options,n=+new Date-this._lastTime,o=!i.inertia||n>i.inertiaThreshold||!this._positions[0];if(e.fire("dragend",t),o)e.fire("moveend");else{var s=this._lastPos.subtract(this._positions[0]),r=(this._lastTime+n-this._times[0])/1e3,a=i.easeLinearity,l=s.multiplyBy(a/r),h=l.distanceTo([0,0]),u=Math.min(i.inertiaMaxSpeed,h),d=l.multiplyBy(u/h),p=u/(i.inertiaDeceleration*a),_=d.multiplyBy(-p/2).round();_.x&&_.y?(_=e._limitOffset(_,e.options.maxBounds),c.Util.requestAnimFrame((function(){e.panBy(_,{duration:p,easeLinearity:a,noMoveStart:!0})}))):e.fire("moveend")}}}),c.Map.addInitHook("addHandler","dragging",c.Map.Drag),c.Map.mergeOptions({doubleClickZoom:!0}),c.Map.DoubleClickZoom=c.Handler.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()+(t.originalEvent.shiftKey?-1:1);"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}}),c.Map.addInitHook("addHandler","doubleClickZoom",c.Map.DoubleClickZoom),c.Map.mergeOptions({scrollWheelZoom:!0}),c.Map.ScrollWheelZoom=c.Handler.extend({addHooks:function(){c.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),c.DomEvent.on(this._map._container,"MozMousePixelScroll",c.DomEvent.preventDefault),this._delta=0},removeHooks:function(){c.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),c.DomEvent.off(this._map._container,"MozMousePixelScroll",c.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=c.DomEvent.getWheelDelta(t);this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(40-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c.bind(this._performZoom,this),i),c.DomEvent.preventDefault(t),c.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,i=t.getZoom();e=e>0?Math.ceil(e):Math.floor(e),e=Math.max(Math.min(e,4),-4),e=t._limitZoom(i+e)-i,this._delta=0,this._startTime=null,e&&("center"===t.options.scrollWheelZoom?t.setZoom(i+e):t.setZoomAround(this._lastMousePos,i+e))}}),c.Map.addInitHook("addHandler","scrollWheelZoom",c.Map.ScrollWheelZoom),c.extend(c.DomEvent,{_touchstart:c.Browser.msPointer?"MSPointerDown":c.Browser.pointer?"pointerdown":"touchstart",_touchend:c.Browser.msPointer?"MSPointerUp":c.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(t,e,
1i){var n,o,s=!1,a="_leaflet_",l=this._touchstart,h=this._touchend,u=[];function d(t){var e;if(c.Browser.pointer?(u.push(t.pointerId),e=u.length):e=t.touches.length,!(e>1)){var i=Date.now(),r=i-(n||i);o=t.touches?t.touches[0]:t,s=r>0&&r<=250,n=i}}function p(t){if(c.Browser.pointer){var i=u.indexOf(t.pointerId);if(-1===i)return;u.splice(i,1)}if(s){if(c.Browser.pointer){var r,a={};for(var l in o)r=o[l],a[l]="function"==typeof r?r.bind(o):r;o=a}o.type="dblclick",e(o),n=null}}t[a+l+i]=d,t[a+h+i]=p;var _=c.Browser.pointer?r.documentElement:t;return t.addEventListener(l,d,!1),_.addEventListener(h,p,!1),c.Browser.pointer&&_.addEventListener(c.DomEvent.POINTER_CANCEL,p,!1),this},removeDoubleTapListener:function(t,e){var i="_leaflet_";return t.removeEventListener(this._touchstart,t[i+this._touchstart+e],!1),(c.Browser.pointer?r.documentElement:t).removeEventListener(this._touchend,t[i+this._touchend+e],!1),c.Browser.pointer&&r.documentElement.removeEventListener(c.DomEvent.POINTER_CANCEL,t[i+this._touchend+e],!1),this}}),c.extend(c.DomEvent,{POINTER_DOWN:c.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:c.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:c.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:c.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(t,e,i,n){switch(e){case"touchstart":return this.addPointerListenerStart(t,e,i,n);case"touchend":return this.addPointerListenerEnd(t,e,i,n);case"touchmove":return this.addPointerListenerMove(t,e,i,n);default:throw"Unknown touch event type"}},addPointerListenerStart:function(t,e,i,n){var o=this._pointers,s=function(t){"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&c.DomEvent.preventDefault(t);for(var e=!1,n=0;n<o.length;n++)if(o[n].pointerId===t.pointerId){e=!0;break}e||o.push(t),t.touches=o.slice(),t.changedTouches=[t],i(t)};if(t["_leaflet_touchstart"+n]=s,t.addEventListener(this.POINTER_DOWN,s,!1),!this._pointerDocumentListener){var a=function(t){for(var e=0;e<o.length;e++)if(o[e].pointerId===t.pointerId){o.splice(e,1);break}};r.documentElement.addEventListener(this.POINTER_UP,a,!1),r.documentElement.addEventListener(this.POINTER_CANCEL,a,!1),this._pointerDocumentListener=!0}return this},addPointerListenerMove:function(t,e,i,n){var o=this._pointers;function s(t){if(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons){for(var e=0;e<o.length;e++)if(o[e].pointerId===t.pointerId){o[e]=t;break}t.touches=o.slice(),t.changedTouches=[t],i(t)}}return t["_leaflet_touchmove"+n]=s,t.addEventListener(this.POINTER_MOVE,s,!1),this},addPointerListenerEnd:function(t,e,i,n){var o=this._pointers,s=function(t){for(var e=0;e<o.length;e++)if(o[e].pointerId===t.pointerId){o.splice(e,1);break}t.touches=o.slice(),t.changedTouches=[t],i(t)};return t["_leaflet_touchend"+n]=s,t.addEventListener(this.POINTER_UP,s,!1),t.addEventListener(this.POINTER_CANCEL,s,!1),this},removePointerListener:function(t,e,i){var n=t["_leaflet_"+e+i];switch(e){case"touchstart":t.removeEventListener(this.POINTER_DOWN,n,!1);break;case"touchmove":t.removeEventListener(this.POINTER_MOVE,n,!1);break;case"touchend":t.removeEventListener(this.POINTER_UP,n,!1),t.removeEventListener(this.POINTER_CANCEL,n,!1)}return this}}),c.Map.mergeOptions({touchZoom:c.Browser.touch&&!c.Browser.android23,bounceAtZoomLimits:!0}),c.Map.TouchZoom=c.Handler.extend({addHooks:function(){c.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){c.DomEvent.off(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.mouseEventToLayerPoint(t.touches[0]),n=e.mouseEventToLayerPoint(t.touches[1]),o=e._getCenterLayerPoint();this._startCenter=i.add(n)._divideBy(2),this._startDist=i.distanceTo(n),this._moved=!1,this._zooming=!0,this._centerOffset=o.subtract(this._startCenter),e._panAnim&&e._panAnim.stop(),c.DomEvent.on(r,"touchmove",this._onTouchMove,this).on(r,"touchend",this._onTouchEnd,this),c.DomEvent.preventDefault(t)}},_onTouchMove:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&this._zooming){var i=e.mouseEventToLayerPoint(t.touches[0]),n=e.mouseEventToLayerPoint(t.touches[1]);this._scale=i.distanceTo(n)/this._startDist,this._delta=i._add(n)._divideBy(2)._subtract(this._startCenter),1!==this._scale&&(!e.options.bounceAtZoomLimits&&(e.getZoom()===e.getMin
1Zoom()&&this._scale<1||e.getZoom()===e.getMaxZoom()&&this._scale>1)||(this._moved||(c.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved=!0),c.Util.cancelAnimFrame(this._animRequest),this._animRequest=c.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),c.DomEvent.preventDefault(t)))}},_updateOnMove:function(){var t=this._map,e=this._getScaleOrigin(),i=t.layerPointToLatLng(e),n=t.getScaleZoom(this._scale);t._animateZoom(i,n,this._startCenter,this._scale,this._delta,!1,!0)},_onTouchEnd:function(){if(this._moved&&this._zooming){var t=this._map;this._zooming=!1,c.DomUtil.removeClass(t._mapPane,"leaflet-touching"),c.Util.cancelAnimFrame(this._animRequest),c.DomEvent.off(r,"touchmove",this._onTouchMove).off(r,"touchend",this._onTouchEnd);var e=this._getScaleOrigin(),i=t.layerPointToLatLng(e),n=t.getZoom(),o=t.getScaleZoom(this._scale)-n,s=o>0?Math.ceil(o):Math.floor(o),a=t._limitZoom(n+s),l=t.getZoomScale(a)/this._scale;t._animateZoom(i,a,e,l)}else this._zooming=!1},_getScaleOrigin:function(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t)}}),c.Map.addInitHook("addHandler","touchZoom",c.Map.TouchZoom),c.Map.mergeOptions({tap:!0,tapTolerance:15}),c.Map.Tap=c.Handler.extend({addHooks:function(){c.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){c.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(c.DomEvent.preventDefault(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],i=e.target;this._startPos=this._newPos=new c.Point(e.clientX,e.clientY),i.tagName&&"a"===i.tagName.toLowerCase()&&c.DomUtil.addClass(i,"leaflet-active"),this._holdTimeout=setTimeout(c.bind((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),c.DomEvent.on(r,"touchmove",this._onMove,this).on(r,"touchend",this._onUp,this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),c.DomEvent.off(r,"touchmove",this._onMove,this).off(r,"touchend",this._onUp,this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&c.DomUtil.removeClass(i,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new c.Point(e.clientX,e.clientY)},_simulateEvent:function(t,e){var i=r.createEvent("MouseEvents");i._simulated=!0,e.target._simulatedClick=!0,i.initMouseEvent(t,!0,!0,s,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}}),c.Browser.touch&&!c.Browser.pointer&&c.Map.addInitHook("addHandler","tap",c.Map.Tap),c.Map.mergeOptions({boxZoom:!0}),c.Map.BoxZoom=c.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._moved=!1},addHooks:function(){c.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){c.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(t){if(this._moved=!1,!t.shiftKey||1!==t.which&&1!==t.button)return!1;c.DomUtil.disableTextSelection(),c.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(t),c.DomEvent.on(r,"mousemove",this._onMouseMove,this).on(r,"mouseup",this._onMouseUp,this).on(r,"keydown",this._onKeyDown,this)},_onMouseMove:function(t){this._moved||(this._box=c.DomUtil.create("div","leaflet-zoom-box",this._pane),c.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var e=this._startLayerPoint,i=this._box,n=this._map.mouseEventToLayerPoint(t),o=n.subtract(e),s=new c.Point(Math.min(n.x,e.x),Math.min(n.y,e.y));c.DomUtil.setPosition(i,s),this._moved=!0,i.style.width=Math.max(0,Math.abs(o.x)-4)+"px",i.style.height=Math.max(0,Math.abs(o.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),c.DomUtil.enableTextSelection(),c.DomUtil.enableImageDrag(),c.DomEvent.off(r,"mousemove",this._onMouseMove).off(r,"mouseup",this._onMouseUp).off(r,"keydown",this._onKeyDown)},_onMouseUp:function(t){this._finish();var e=this._map,i=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(i)){var n=new c.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(i));e.fitBounds(n),e.fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}}),c.Map.addInitHook("addHandler","boxZoom",c.Map.BoxZoom),c.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),c.Map.Keyboard=c.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(t){this._map=t,this._setPanOffset(t.options.keyboardPanOffset),this._setZoomOffset(t.options.keyboardZoomOffset)},addHooks:function(){var t=this._map._container;-1===t.tabIndex&&(t.tabIndex="0"),c.DomEvent.on(t,"focus",this._onFocus,this).on(t,"blur",this._onBlur,this).on(t,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var t=this._map._container;c.DomEvent.off(t,"focus",this._onFocus,this).off(t,"blur",this._onBlur,this).off(t,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var t=r.body,e=r.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),s.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;e++)n[o.up[e]]=[0,-1*t]},_setZoomOffset:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;e<i;e++)n[o.zoomIn[e]]=t;
1for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){c.DomEvent.on(r,"keydown",this._onKeyDown,this)},_removeHooks:function(){c.DomEvent.off(r,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){var e=t.keyCode,i=this._map;if(e in this._panKeys){if(i._panAnim&&i._panAnim._inProgress)return;i.panBy(this._panKeys[e]),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds)}else{if(!(e in this._zoomKeys))return;i.setZoom(i.getZoom()+this._zoomKeys[e])}c.DomEvent.stop(t)}}),c.Map.addInitHook("addHandler","keyboard",c.Map.Keyboard),c.Handler.MarkerDrag=c.Handler.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new c.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),c.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),c.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var t=this._marker,e=t._shadow,i=c.DomUtil.getPosition(t._icon),n=t._map.layerPointToLatLng(i);e&&c.DomUtil.setPosition(e,i),t._latlng=n,t.fire("move",{latlng:n}).fire("drag")},_onDragEnd:function(t){this._marker.fire("moveend").fire("dragend",t)}}),c.Control=c.Class.extend({options:{position:"topright"},initialize:function(t){c.setOptions(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._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return c.DomUtil.addClass(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this},removeFrom:function(t){var e=this.getPosition();return t._controlCorners[e].removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(t),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),c.control=function(t){return new c.Control(t)},c.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.removeFrom(this),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=c.DomUtil.create("div",e+"control-container",this._container);function n(n,o){var s=e+n+" "+e+o;t[n+o]=c.DomUtil.create("div",s,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),c.Control.Zoom=c.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=c.DomUtil.create("div",e+" leaflet-bar");return this._map=t,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,e+"-in",i,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,e+"-out",i,this._zoomOut,this),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(t){this._map.zoomIn(t.shiftKey?3:1)},_zoomOut:function(t){this._map.zoomOut(t.shiftKey?3:1)},_createButton:function(t,e,i,n,o,s){var r=c.DomUtil.create("a",i,n);r.innerHTML=t,r.href="#",r.title=e;var a=c.DomEvent.stopPropagation;return c.DomEvent.on(r,"click",a).on(r,"mousedown",a).on(r,"dblclick",a).on(r,"click",c.DomEvent.preventDefault).on(r,"click",o,s).on(r,"click",this._refocusOnMap,s),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";c.DomUtil.removeClass(this._zoomInButton,e),c.DomUtil.removeClass(this._zoomOutButton,e),t._zoom===t.getMinZoom()&&c.DomUtil.addClass(this._zoomOutButton,e),t._zoom===t.getMaxZoom()&&c.DomUtil.addClass(this._zoomInButton,e)}}),c.Map.mergeOptions({zoomControl:!0}),c.Map.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new c.Control.Zoom,this.addControl(this.zoomControl))})),c.control.zoom=function(t){return new c.Control.Zoom(t)},c.Control.Attribution=c.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){c.setOptions(this,t),this._attributions={}},onAdd:function(t){for(var e in this._container=c.DomUtil.create("div","leaflet-control-attribution"),c.DomEvent.disableClickPropagation(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){if(t)return this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this},removeAttribution:function(t){if(t)return this._attributions[t]&&(this._attributions[t]--,this._update()),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(" | ")}},_onLayerAdd:function(t){t.layer.getAttribution&&this.addAttribution(t.layer.getAttribution())},_onLayerRemove:function(t){t.layer.getAttribution&&this.removeAttribution(t.layer.getAttribution())}}),c.Map.mergeOptions({attributionControl:!0}),c.Map.addInitHook((function(){this.options.attributionControl&&(this.attributionControl
1=(new c.Control.Attribution).addTo(this))})),c.control.attribution=function(t){return new c.Control.Attribution(t)},c.Control.Scale=c.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(t){this._map=t;var e="leaflet-control-scale",i=c.DomUtil.create("div",e),n=this.options;return this._addScales(n,e,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=c.DomUtil.create("div",e+"-line",i)),t.imperial&&(this._iScale=c.DomUtil.create("div",e+"-line",i))},_update:function(){var t=this._map.getBounds(),e=t.getCenter().lat,i=6378137*Math.PI*Math.cos(e*Math.PI/180)*(t.getNorthEast().lng-t.getSouthWest().lng)/180,n=this._map.getSize(),o=this.options,s=0;n.x>0&&(s=i*(o.maxWidth/n.x)),this._updateScales(o,s)},_updateScales:function(t,e){t.metric&&e&&this._updateMetric(e),t.imperial&&e&&this._updateImperial(e)},_updateMetric:function(t){var e=this._getRoundNum(t);this._mScale.style.width=this._getScaleWidth(e/t)+"px",this._mScale.innerHTML=e<1e3?e+" m":e/1e3+" km"},_updateImperial:function(t){var e,i,n,o=3.2808399*t,s=this._iScale;o>5280?(e=o/5280,i=this._getRoundNum(e),s.style.width=this._getScaleWidth(i/e)+"px",s.innerHTML=i+" mi"):(n=this._getRoundNum(o),s.style.width=this._getScaleWidth(n/o)+"px",s.innerHTML=n+" ft")},_getScaleWidth:function(t){return Math.round(this.options.maxWidth*t)-10},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),c.control.scale=function(t){return new c.Control.Scale(t)},c.Control.Layers=c.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(t,e,i){for(var n in c.setOptions(this,i),this._layers={},this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){return this._initLayout(),this._update(),t.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(t){t.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._update(),this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._update(),this},removeLayer:function(t){var e=c.stamp(t);return delete this._layers[e],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=c.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),c.Browser.touch?c.DomEvent.on(e,"click",c.DomEvent.stopPropagation):c.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var i=this._form=c.DomUtil.create("form",t+"-list");if(this.options.collapsed){c.Browser.android||c.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var n=this._layersLink=c.DomUtil.create("a",t+"-toggle",e);n.href="#",n.title="Layers",c.Browser.touch?c.DomEvent.on(n,"click",c.DomEvent.stop).on(n,"click",this._expand,this):c.DomEvent.on(n,"focus",this._expand,this),c.DomEvent.on(i,"click",(function(){setTimeout(c.bind(this._onInputClick,this),0)}),this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=c.DomUtil.create("div",t+"-base",i),this._separator=c.DomUtil.create("div",t+"-separator",i),this._overlaysList=c.DomUtil.create("div",t+"-overlays",i),e.appendChild(i)},_addLayer:function(t,e,i){var n=c.stamp(t);this._layers[n]={layer:t,name:e,overlay:i},this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var t,e,i=!1,n=!1;for(t in this._layers)e=this._layers[t],this._addItem(e),n=n||e.overlay,i=i||!e.overlay;this._separator.style.display=n&&i?"":"none"}},_onLayerChange:function(t){var e=this._layers[c.stamp(t.layer)];if(e){this._handlingClick||this._update();var i=e.overlay?"layeradd"===t.type?"overlayadd":"overlayremove":"layeradd"===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&&(i+=' checked="checked"'),i+="/>";var n=r.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=r.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=r.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers",n),e.layerId=c.stamp(t.layer),c.DomEvent.on(e,"click",this._onInputClick,this);var o=r.createElement("span");return o.innerHTML=" "+t.name,i.appendChild(e),i.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),i},_onInputClick:function(){var t,e,i,n=this._form.getElementsByTagName("input"),o=n.length;for(this._handlingClick=!0,t=0;t<o;t++)e=n[t],i=this._layers[e.layerId],e.checked&&!this._map.hasLayer(i.layer)?this._map.addLayer(i.layer):!e.checked&&this._map.hasLayer(i.layer)&&this._map.removeLayer(i.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){c.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}
1),c.control.layers=function(t,e,i){return new c.Control.Layers(t,e,i)},c.PosAnimation=c.Class.extend({includes:c.Mixin.Events,run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._newPos=e,this.fire("start"),t.style[c.DomUtil.TRANSITION]="all "+(i||.25)+"s cubic-bezier(0,0,"+(n||.5)+",1)",c.DomEvent.on(t,c.DomUtil.TRANSITION_END,this._onTransitionEnd,this),c.DomUtil.setPosition(t,e),c.Util.falseFn(t.offsetWidth),this._stepTimer=setInterval(c.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(c.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),c.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var t=this._getPos();t?(this._el._leaflet_pos=t,this.fire("step")):this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var t,e,i,n=this._el,o=s.getComputedStyle(n);if(c.Browser.any3d){if(!(i=o[c.DomUtil.TRANSFORM].match(this._transformRe)))return;t=parseFloat(i[1]),e=parseFloat(i[2])}else t=parseFloat(o.left),e=parseFloat(o.top);return new c.Point(t,e,!0)},_onTransitionEnd:function(){c.DomEvent.off(this._el,c.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[c.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}
1),c.Map.include({setView:function(t,e,i){if((e=e===a?this._zoom:this._limitZoom(e),t=this._limitCenter(c.latLng(t),e,this.options.maxBounds),i=i||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!i.reset&&!0!==i)&&(i.animate!==a&&(i.zoom=c.extend({animate:i.animate},i.zoom),i.pan=c.extend({animate:i.animate},i.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan)))return clearTimeout(this._sizeTimer),this;return this._resetView(t,e),this},panBy:function(t,e){if(e=e||{},!(t=c.point(t).round()).x&&!t.y)return this;if(this._panAnim||(this._panAnim=new c.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){c.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t);this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){c.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._floor();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i))&&(this.panBy(i,e),!0)}}),c.PosAnimation=c.DomUtil.TRANSITION?c.PosAnimation:c.PosAnimation.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=c.DomUtil.getPosition(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=c.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var t=+new Date-this._startTime,e=1e3*this._duration;t<e?this._runFrame(this._easeOut(t/e)):(this._runFrame(1),this._complete())},_runFrame:function(t){var e=this._startPos.add(this._offset.multiplyBy(t));c.DomUtil.setPosition(this._el,e),this.fire("step")},_complete:function(){c.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),c.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),c.DomUtil.TRANSITION&&c.Map.addInitHook((function(){this._zoomAnimated=this.options.zoomAnimation&&c.DomUtil.TRANSITION&&c.Browser.any3d&&!c.Browser.android23&&!c.Browser.mobileOpera,this._zoomAnimated&&c.DomEvent.on(this._mapPane,c.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)})),c.Map.include(c.DomUtil.TRANSITION?{_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),o=this._getCenterOffset(t)._divideBy(1-1/n),s=this._getCenterLayerPoint()._add(o);return!(!0!==i.animate&&!this.getSize().contains(o))&&(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,s,n,null,!0),!0)},_animateZoom:function(t,e,i,n,o,s,r){r||(this._animatingZoom=!0),c.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,c.Draggable&&(c.Draggable._disabled=!0),c.Util.requestAnimFrame((function(){this.fire("zoomanim",{center:t,zoom:e,origin:i,scale:n,delta:o,backwards:s}),setTimeout(c.bind(this._onZoomTransitionEnd,this),250)}),this)},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._animatingZoom=!1,c.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),c.Util.requestAnimFrame((function(){this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),c.Draggable&&(c.Draggable._disabled=!1)}),this))}}:{}),c.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,i=c.DomUtil.TRANSFORM,n=t.delta?c.DomUtil.getTranslateString(t.delta):e.style[i],o=c.DomUtil.getScaleStr
1ing(t.scale,t.origin);e.style[i]=t.backwards?o+" "+n:n+" "+o},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility="",t.parentNode.appendChild(t),c.Util.falseFn(e.offsetWidth);var i=this._map.getZoom();(i>this.options.maxZoom||i<this.options.minZoom)&&this._clearBgBuffer(),this._animating=!1},_clearBgBuffer:function(){var t=this._map;!t||t._animatingZoom||t.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[c.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,e=this._bgBuffer,i=this._getLoadedTilesPercentage(e),n=this._getLoadedTilesPercentage(t);if(e&&i>.5&&n<.5)return t.style.visibility="hidden",void this._stopLoadingImages(t);e.style.visibility="hidden",e.style[c.DomUtil.TRANSFORM]="",this._tileContainer=e,e=this._bgBuffer=t,this._stopLoadingImages(e),clearTimeout(this._clearBgBufferTimer)},_getLoadedTilesPercentage:function(t){var e,i,n=t.getElementsByTagName("img"),o=0;for(e=0,i=n.length;e<i;e++)n[e].complete&&o++;return o/i},_stopLoadingImages:function(t){var e,i,n,o=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e=0,i=o.length;e<i;e++)(n=o[e]).complete||(n.onload=c.Util.falseFn,n.onerror=c.Util.falseFn,n.src=c.Util.emptyImageUrl,n.parentNode.removeChild(n))}}),c.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(t){if(t=this._locateOptions=c.extend(this._defaultLocateOptions,t),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=c.bind(this._handleGeolocationResponse,this),i=c.bind(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(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){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){var e=t.coords.latitude,i=t.coords.longitude,n=new c.LatLng(e,i),o=180*t.coords.accuracy/40075017,s=o/Math.cos(c.LatLng.DEG_TO_RAD*e),r=c.latLngBounds([e-o,i-s],[e+o,i+s]),a=this._locateOptions;if(a.setView){var l=Math.min(this.getBoundsZoom(r),a.maxZoom);this.setView(n,l)}var h={latlng:n,bounds:r,timestamp:t.timestamp};for(var u in t.coords)"number"==typeof t.coords[u]&&(h[u]=t.coords[u]);this.fire("locationfound",h)}})}(window,document)},7854:t=>{var e={};function i(t,e){t=Math.round(t*e),(t<<=1)<0&&(t=~t);for(var i="";t>=32;)i+=String.fromCharCode(63+(32|31&t)),t>>=5;return i+=String.fromCharCode(t+63)}e.decode=function(t,e){for(var i,n=0,o=0,s=0,r=[],a=0,l=0,h=null,u=Math.pow(10,e||5);n<t.length;){h=null,a=0,l=0;do{l|=(31&(h=t.charCodeAt(n++)-63))<<a,a+=5}while(h>=32);i=1&l?~(l>>1):l>>1,a=l=0;do{l|=(31&(h=t.charCodeAt(n++)-63))<<a,a+=5}while(h>=32);o+=i,s+=1&l?~(l>>1):l>>1,r.push([o/u,s/u])}return r},e.encode=function(t,e){if(!t.length)return"";for(var n=Math.pow(10,e||5),o=i(t[0][0],n)+i(t[0][1],n),s=1;s<t.length;s++){var r=t[s],a=t[s-1];o+=i(r[0]-a[0],n),o+=i(r[1]-a[1],n)}return o},t.exports=e}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.