react-swipe-map 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -7002,7 +7002,7 @@ Mt.Control.SideBySide = Mt.Control.extend({
7002
7002
  return r.type = "range", r.min = 0, r.max = 1, r.step = "any", r.value = 0.5, r.style.paddingLeft = r.style.paddingRight = this.options.padding + "px", this._addEvents(), this._updateLayers(), this;
7003
7003
  },
7004
7004
  remove: function() {
7005
- return this._map ? (this._leftLayer && (this._leftLayer.getContainer().style.clip = ""), this._rightLayer && (this._rightLayer.getContainer().style.clip = ""), this._removeEvents(), Mt.DomUtil.remove(this._container), this._map = null, this) : this;
7005
+ return this._map ? (this._leftLayer && (this._leftLayer.getPane().style.clip = ""), this._rightLayer && (this._rightLayer.getPane().style.clip = ""), this._removeEvents(), Mt.DomUtil.remove(this._container), this._map = null, this) : this;
7006
7006
  },
7007
7007
  setLeftLayers: function(e) {
7008
7008
  return this._leftLayers = Au(e), this._updateLayers(), this;
@@ -7014,7 +7014,7 @@ Mt.Control.SideBySide = Mt.Control.extend({
7014
7014
  var e = this._map, n = e.containerPointToLayerPoint([0, 0]), r = e.containerPointToLayerPoint(e.getSize()), o = n.x + this.getPosition(), s = this.getPosition();
7015
7015
  this._divider.style.left = s + "px", this.fire("dividermove", { x: s });
7016
7016
  var l = "rect(" + [n.y, o, r.y, n.x].join("px,") + "px)", c = "rect(" + [n.y, r.x, r.y, o].join("px,") + "px)";
7017
- this._leftLayer && (this._leftLayer.getContainer().style.clip = l), this._rightLayer && (this._rightLayer.getContainer().style.clip = c);
7017
+ this._leftLayer && (this._leftLayer.getPane().style.clip = l), this._rightLayer && (this._rightLayer.getPane().style.clip = c);
7018
7018
  },
7019
7019
  _updateLayers: function() {
7020
7020
  if (!this._map)
package/dist/index.umd.js CHANGED
@@ -33,7 +33,7 @@ React keys must be passed directly to JSX without using spread:
33
33
  <%s key={someKey} {...props} />`,Kt,Gt,Qt,Gt),Jt[Gt+Kt]=!0}}return T===o?Vt(et):cn(et),et}}function xt(T,U,re){return Lt(T,U,re,!0)}function ve(T,U,re){return Lt(T,U,re,!1)}var Wt=ve,jt=xt;Lo.Fragment=o,Lo.jsx=Wt,Lo.jsxs=jt}()),Lo}process.env.NODE_ENV==="production"?Ws.exports=om():Ws.exports=im();var Zt=Ws.exports,js={exports:{}};/* @preserve
34
34
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
35
35
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
36
- */(function(e,n){(function(r,o){o(n)})(nm,function(r){var o="1.9.4";function s(t){var i,a,u,p;for(a=1,u=arguments.length;a<u;a++){p=arguments[a];for(i in p)t[i]=p[i]}return t}var l=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function c(t,i){var a=Array.prototype.slice;if(t.bind)return t.bind.apply(t,a.call(arguments,1));var u=a.call(arguments,2);return function(){return t.apply(i,u.length?u.concat(a.call(arguments)):arguments)}}var d=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++d),t._leaflet_id}function g(t,i,a){var u,p,w,O;return O=function(){u=!1,p&&(w.apply(a,p),p=!1)},w=function(){u?p=arguments:(t.apply(a,arguments),setTimeout(O,i),u=!0)},w}function m(t,i,a){var u=i[1],p=i[0],w=u-p;return t===u&&a?t:((t-p)%w+w)%w+p}function v(){return!1}function y(t,i){if(i===!1)return t;var a=Math.pow(10,i===void 0?6:i);return Math.round(t*a)/a}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function _(t){return C(t).split(/\s+/)}function x(t,i){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?l(t.options):{});for(var a in i)t.options[a]=i[a];return t.options}function b(t,i,a){var u=[];for(var p in t)u.push(encodeURIComponent(a?p.toUpperCase():p)+"="+encodeURIComponent(t[p]));return(!i||i.indexOf("?")===-1?"?":"&")+u.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function S(t,i){return t.replace(E,function(a,u){var p=i[u];if(p===void 0)throw new Error("No value provided for variable "+a);return typeof p=="function"&&(p=p(i)),p})}var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function I(t,i){for(var a=0;a<t.length;a++)if(t[a]===i)return a;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var N=0;function R(t){var i=+new Date,a=Math.max(0,16-(i-N));return N=i+a,window.setTimeout(t,a)}var B=window.requestAnimationFrame||k("RequestAnimationFrame")||R,z=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function $(t,i,a){if(a&&B===R)t.call(i);else return B.call(window,c(t,i))}function j(t){t&&z.call(window,t)}var V={__proto__:null,extend:s,create:l,bind:c,get lastId(){return d},stamp:h,throttle:g,wrapNum:m,falseFn:v,formatNum:y,trim:C,splitWords:_,setOptions:x,getParamString:b,template:S,isArray:P,indexOf:I,emptyImageUrl:M,requestFn:B,cancelFn:z,requestAnimFrame:$,cancelAnimFrame:j};function W(){}W.extend=function(t){var i=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=i.__super__=this.prototype,u=l(a);u.constructor=i,i.prototype=u;for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&p!=="prototype"&&p!=="__super__"&&(i[p]=this[p]);return t.statics&&s(i,t.statics),t.includes&&(F(t.includes),s.apply(null,[u].concat(t.includes))),s(u,t),delete u.statics,delete u.includes,u.options&&(u.options=a.options?l(a.options):{},s(u.options,t.options)),u._initHooks=[],u.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var w=0,O=u._initHooks.length;w<O;w++)u._initHooks[w].call(this)}},i},W.include=function(t){var i=this.prototype.options;return s(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},W.mergeOptions=function(t){return s(this.prototype.options,t),this},W.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),a=typeof t=="function"?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(a),this};function F(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var X={on:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a)}return this},off:function(t,i,a){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var u in t)this._off(u,t[u],i);else{t=_(t);for(var p=arguments.length===1,w=0,O=t.length;w<O;w++)p?this._off(t[w]):this._off(t[w],i,a)}return this},_on:function(t,i,a,u){if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,a)===!1){a===this&&(a=void 0);var p={fn:i,ctx:a};u&&(p.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(p)}},_off:function(t,i,a){var u,p,w;if(this._events&&(u=this._events[t],!!u)){if(arguments.length===1){if(this._firingCount)for(p=0,w=u.length;p<w;p++)u[p].fn=v;delete this._events[t];return}if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}var O=this._listens(t,i,a);if(O!==!1){var D=u[O];this._firingCount&&(D.fn=v,this._events[t]=u=u.slice()),u.splice(O,1)}}},fire:function(t,i,a){if(!this.listens(t,a))return this;var u=s({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var p=this._events[t];if(p){this._firingCount=this._firingCount+1||1;for(var w=0,O=p.length;w<O;w++){var D=p[w],H=D.fn;D.once&&this.off(t,H,D.ctx),H.call(D.ctx||this,u)}this._firingCount--}}return a&&this._propagateEvent(u),this},listens:function(t,i,a,u){typeof t!="string"&&console.warn('"string" type argument expected');var p=i;typeof i!="function"&&(u=!!i,p=void 0,a=void 0);var w=this._events&&this._events[t];if(w&&w.length&&this._listens(t,p,a)!==!1)return!0;if(u){for(var O in this._eventParents)if(this._eventParents[O].listens(t,i,a,u))return!0}return!1},_listens:function(t,i,a){if(!this._events)return!1;var u=this._events[t]||[];if(!i)return!!u.length;a===this&&(a=void 0);for(var p=0,w=u.length;p<w;p++)if(u[p].fn===i&&u[p].ctx===a)return p;return!1},once:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i,!0);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,s({layer:t.target,propagatedFrom:t.target},t),!0)}};X.addEventListener=X.on,X.removeEventListener=X.clearAllEventListeners=X.off,X.addOneTimeEventListener=X.once,X.fireEvent=X.fire,X.hasEventListeners=X.listens;var J=W.extend(X);function Z(t,i,a){this.x=a?Math.round(t):t,this.y=a?Math.round(i):i}var le=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(t){return this.clone()._add(G(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(G(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new Z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new Z(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=le(this.x),this.y=le(this.y),this},distanceTo:function(t){t=G(t);var i=t.x-this.x,a=t.y-this.y;return Math.sqrt(i*i+a*a)},equals:function(t){return t=G(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=G(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function G(t,i,a){return t instanceof Z?t:P(t)?new Z(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new Z(t.x,t.y):new Z(t,i,a)}function ie(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}ie.prototype={extend:function(t){var i,a;if(!t)return this;if(t instanceof Z||typeof t[0]=="number"||"x"in t)i=a=G(t);else if(t=ne(t),i=t.min,a=t.max,!i||!a)return this;return!this.min&&!this.max?(this.min=i.clone(),this.max=a.clone()):(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(a.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(a.y,this.max.y)),this},getCenter:function(t){return G((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return G(this.min.x,this.max.y)},getTopRight:function(){return G(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,a;return typeof t[0]=="number"||t instanceof Z?t=G(t):t=ne(t),t instanceof ie?(i=t.min,a=t.max):i=a=t,i.x>=this.min.x&&a.x<=this.max.x&&i.y>=this.min.y&&a.y<=this.max.y},intersects:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>=i.x&&u.x<=a.x,O=p.y>=i.y&&u.y<=a.y;return w&&O},overlaps:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>i.x&&u.x<a.x,O=p.y>i.y&&u.y<a.y;return w&&O},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,a=this.max,u=Math.abs(i.x-a.x)*t,p=Math.abs(i.y-a.y)*t;return ne(G(i.x-u,i.y-p),G(a.x+u,a.y+p))},equals:function(t){return t?(t=ne(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function ne(t,i){return!t||t instanceof ie?t:new ie(t,i)}function de(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}de.prototype={extend:function(t){var i=this._southWest,a=this._northEast,u,p;if(t instanceof ee)u=t,p=t;else if(t instanceof de){if(u=t._southWest,p=t._northEast,!u||!p)return this}else return t?this.extend(K(t)||oe(t)):this;return!i&&!a?(this._southWest=new ee(u.lat,u.lng),this._northEast=new ee(p.lat,p.lng)):(i.lat=Math.min(u.lat,i.lat),i.lng=Math.min(u.lng,i.lng),a.lat=Math.max(p.lat,a.lat),a.lng=Math.max(p.lng,a.lng)),this},pad:function(t){var i=this._southWest,a=this._northEast,u=Math.abs(i.lat-a.lat)*t,p=Math.abs(i.lng-a.lng)*t;return new de(new ee(i.lat-u,i.lng-p),new ee(a.lat+u,a.lng+p))},getCenter:function(){return new ee((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 ee(this.getNorth(),this.getWest())},getSouthEast:function(){return new ee(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){typeof t[0]=="number"||t instanceof ee||"lat"in t?t=K(t):t=oe(t);var i=this._southWest,a=this._northEast,u,p;return t instanceof de?(u=t.getSouthWest(),p=t.getNorthEast()):u=p=t,u.lat>=i.lat&&p.lat<=a.lat&&u.lng>=i.lng&&p.lng<=a.lng},intersects:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>=i.lat&&u.lat<=a.lat,O=p.lng>=i.lng&&u.lng<=a.lng;return w&&O},overlaps:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>i.lat&&u.lat<a.lat,O=p.lng>i.lng&&u.lng<a.lng;return w&&O},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return t?(t=oe(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function oe(t,i){return t instanceof de?t:new de(t,i)}function ee(t,i,a){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,a!==void 0&&(this.alt=+a)}ee.prototype={equals:function(t,i){if(!t)return!1;t=K(t);var a=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return a<=(i===void 0?1e-9:i)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return se.distance(this,K(t))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,a=i/Math.cos(Math.PI/180*this.lat);return oe([this.lat-i,this.lng-a],[this.lat+i,this.lng+a])},clone:function(){return new ee(this.lat,this.lng,this.alt)}};function K(t,i,a){return t instanceof ee?t:P(t)&&typeof t[0]!="object"?t.length===3?new ee(t[0],t[1],t[2]):t.length===2?new ee(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new ee(t.lat,"lng"in t?t.lng:t.lon,t.alt):i===void 0?null:new ee(t,i,a)}var Y={latLngToPoint:function(t,i){var a=this.projection.project(t),u=this.scale(i);return this.transformation._transform(a,u)},pointToLatLng:function(t,i){var a=this.scale(i),u=this.transformation.untransform(t,a);return this.projection.unproject(u)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,a=this.scale(t),u=this.transformation.transform(i.min,a),p=this.transformation.transform(i.max,a);return new ie(u,p)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?m(t.lng,this.wrapLng,!0):t.lng,a=this.wrapLat?m(t.lat,this.wrapLat,!0):t.lat,u=t.alt;return new ee(a,i,u)},wrapLatLngBounds:function(t){var i=t.getCenter(),a=this.wrapLatLng(i),u=i.lat-a.lat,p=i.lng-a.lng;if(u===0&&p===0)return t;var w=t.getSouthWest(),O=t.getNorthEast(),D=new ee(w.lat-u,w.lng-p),H=new ee(O.lat-u,O.lng-p);return new de(D,H)}},se=s({},Y,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var a=Math.PI/180,u=t.lat*a,p=i.lat*a,w=Math.sin((i.lat-t.lat)*a/2),O=Math.sin((i.lng-t.lng)*a/2),D=w*w+Math.cos(u)*Math.cos(p)*O*O,H=2*Math.atan2(Math.sqrt(D),Math.sqrt(1-D));return this.R*H}}),fe=6378137,xe={R:fe,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,a=this.MAX_LATITUDE,u=Math.max(Math.min(a,t.lat),-a),p=Math.sin(u*i);return new Z(this.R*t.lng*i,this.R*Math.log((1+p)/(1-p))/2)},unproject:function(t){var i=180/Math.PI;return new ee((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=fe*Math.PI;return new ie([-t,-t],[t,t])}()};function Se(t,i,a,u){if(P(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=i,this._c=a,this._d=u}Se.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new Z((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function Te(t,i,a,u){return new Se(t,i,a,u)}var Ce=s({},se,{code:"EPSG:3857",projection:xe,transformation:function(){var t=.5/(Math.PI*xe.R);return Te(t,.5,-t,.5)}()}),te=s({},Ce,{code:"EPSG:900913"});function we(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Pe(t,i){var a="",u,p,w,O,D,H;for(u=0,w=t.length;u<w;u++){for(D=t[u],p=0,O=D.length;p<O;p++)H=D[p],a+=(p?"L":"M")+H.x+" "+H.y;a+=i?ve.svg?"z":"x":""}return a||"M0 0"}var Ae=document.documentElement.style,Ze="ActiveXObject"in window,Be=Ze&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),Ge=xt("webkit"),Ke=xt("android"),ze=xt("android 2")||xt("android 3"),De=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=Ke&&xt("Google")&&De<537&&!("AudioNode"in window),St=!!window.opera,pt=!nt&&xt("chrome"),dt=xt("gecko")&&!Ge&&!St&&!Ze,mt=!pt&&xt("safari"),Oe=xt("phantom"),he="OTransition"in Ae,_e=navigator.platform.indexOf("Win")===0,rt=Ze&&"transition"in Ae,$e="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ze,ge="MozPerspective"in Ae,Qe=!window.L_DISABLE_3D&&(rt||$e||ge)&&!he&&!Oe,Ve=typeof orientation<"u"||xt("mobile"),Ye=Ve&&Ge,Nt=Ve&&$e,Ht=!window.PointerEvent&&window.MSPointerEvent,vt=!!(window.PointerEvent||Ht),Et="ontouchstart"in window||!!window.TouchEvent,kt=!window.L_NO_TOUCH&&(Et||vt),Je=Ve&&St,rn=Ve&&dt,mn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,on=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",v,i),window.removeEventListener("testPassiveEventSupport",v,i)}catch{}return t}(),an=function(){return!!document.createElement("canvas").getContext}(),ln=!!(document.createElementNS&&we("svg").createSVGRect),cn=!!ln&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Vt=!ln&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),Jt=navigator.platform.indexOf("Mac")===0,Lt=navigator.platform.indexOf("Linux")===0;function xt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var ve={ie:Ze,ielt9:Be,edge:nt,webkit:Ge,android:Ke,android23:ze,androidStock:ot,opera:St,chrome:pt,gecko:dt,safari:mt,phantom:Oe,opera12:he,win:_e,ie3d:rt,webkit3d:$e,gecko3d:ge,any3d:Qe,mobile:Ve,mobileWebkit:Ye,mobileWebkit3d:Nt,msPointer:Ht,pointer:vt,touch:kt,touchNative:Et,mobileOpera:Je,mobileGecko:rn,retina:mn,passiveEvents:on,canvas:an,svg:ln,vml:Vt,inlineSvg:cn,mac:Jt,linux:Lt},Wt=ve.msPointer?"MSPointerDown":"pointerdown",jt=ve.msPointer?"MSPointerMove":"pointermove",T=ve.msPointer?"MSPointerUp":"pointerup",U=ve.msPointer?"MSPointerCancel":"pointercancel",re={touchstart:Wt,touchmove:jt,touchend:T,touchcancel:U},ue={touchstart:Gt,touchmove:yt,touchend:yt,touchcancel:yt},Ee={},ye=!1;function ae(t,i,a){return i==="touchstart"&&gt(),ue[i]?(a=ue[i].bind(this,a),t.addEventListener(re[i],a,!1),a):(console.warn("wrong event specified:",i),v)}function pe(t,i,a){if(!re[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(re[i],a,!1)}function We(t){Ee[t.pointerId]=t}function Fe(t){Ee[t.pointerId]&&(Ee[t.pointerId]=t)}function et(t){delete Ee[t.pointerId]}function gt(){ye||(document.addEventListener(Wt,We,!0),document.addEventListener(jt,Fe,!0),document.addEventListener(T,et,!0),document.addEventListener(U,et,!0),ye=!0)}function yt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var a in Ee)i.touches.push(Ee[a]);i.changedTouches=[i],t(i)}}function Gt(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&en(i),yt(t,i)}function wt(t){var i={},a,u;for(u in t)a=t[u],i[u]=a&&a.bind?a.bind(t):a;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Kt=200;function Qt(t,i){t.addEventListener("dblclick",i);var a=0,u;function p(w){if(w.detail!==1){u=w.detail;return}if(!(w.pointerType==="mouse"||w.sourceCapabilities&&!w.sourceCapabilities.firesTouchEvents)){var O=vp(w);if(!(O.some(function(H){return H instanceof HTMLLabelElement&&H.attributes.for})&&!O.some(function(H){return H instanceof HTMLInputElement||H instanceof HTMLSelectElement}))){var D=Date.now();D-a<=Kt?(u++,u===2&&i(wt(w))):u=1,a=D}}}return t.addEventListener("click",p),{dblclick:i,simDblclick:p}}function br(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}var ir=Dn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Bn=Dn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_r=Bn==="webkitTransition"||Bn==="OTransition"?Bn+"End":"transitionend";function wo(t){return typeof t=="string"?document.getElementById(t):t}function Me(t,i){var a=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!a||a==="auto")&&document.defaultView){var u=document.defaultView.getComputedStyle(t,null);a=u?u[i]:null}return a==="auto"?null:a}function Ne(t,i,a){var u=document.createElement(t);return u.className=i||"",a&&a.appendChild(u),u}function Ue(t){var i=t.parentNode;i&&i.removeChild(t)}function Tn(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function gn(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function zn(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function Co(t,i){if(t.classList!==void 0)return t.classList.contains(i);var a=me(t);return a.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(a)}function He(t,i){if(t.classList!==void 0)for(var a=_(i),u=0,p=a.length;u<p;u++)t.classList.add(a[u]);else if(!Co(t,i)){var w=me(t);Dr(t,(w?w+" ":"")+i)}}function Ct(t,i){t.classList!==void 0?t.classList.remove(i):Dr(t,C((" "+me(t)+" ").replace(" "+i+" "," ")))}function Dr(t,i){t.className.baseVal===void 0?t.className=i:t.className.baseVal=i}function me(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function ke(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&Yt(t,i)}function Yt(t,i){var a=!1,u="DXImageTransform.Microsoft.Alpha";try{a=t.filters.item(u)}catch{if(i===1)return}i=Math.round(i*100),a?(a.Enabled=i!==100,a.Opacity=i):t.style.filter+=" progid:"+u+"(opacity="+i+")"}function Dn(t){for(var i=document.documentElement.style,a=0;a<t.length;a++)if(t[a]in i)return t[a];return!1}function un(t,i,a){var u=i||new Z(0,0);t.style[ir]=(ve.ie3d?"translate("+u.x+"px,"+u.y+"px)":"translate3d("+u.x+"px,"+u.y+"px,0)")+(a?" scale("+a+")":"")}function Pt(t,i){t._leaflet_pos=i,ve.any3d?un(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function sr(t){return t._leaflet_pos||new Z(0,0)}var xr,pi,mc;if("onselectstart"in document)xr=function(){je(window,"selectstart",en)},pi=function(){bt(window,"selectstart",en)};else{var mi=Dn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);xr=function(){if(mi){var t=document.documentElement.style;mc=t[mi],t[mi]="none"}},pi=function(){mi&&(document.documentElement.style[mi]=mc,mc=void 0)}}function gc(){je(window,"dragstart",en)}function vc(){bt(window,"dragstart",en)}var As,yc;function bc(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Ms(),As=t,yc=t.style.outlineStyle,t.style.outlineStyle="none",je(window,"keydown",Ms))}function Ms(){As&&(As.style.outlineStyle=yc,As=void 0,yc=void 0,bt(window,"keydown",Ms))}function mp(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function _c(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var lw={__proto__:null,TRANSFORM:ir,TRANSITION:Bn,TRANSITION_END:_r,get:wo,getStyle:Me,create:Ne,remove:Ue,empty:Tn,toFront:gn,toBack:zn,hasClass:Co,addClass:He,removeClass:Ct,setClass:Dr,getClass:me,setOpacity:ke,testProp:Dn,setTransform:un,setPosition:Pt,getPosition:sr,get disableTextSelection(){return xr},get enableTextSelection(){return pi},disableImageDrag:gc,enableImageDrag:vc,preventOutline:bc,restoreOutline:Ms,getSizedParentNode:mp,getScale:_c};function je(t,i,a,u){if(i&&typeof i=="object")for(var p in i)wc(t,p,i[p],a);else{i=_(i);for(var w=0,O=i.length;w<O;w++)wc(t,i[w],a,u)}return this}var jn="_leaflet_events";function bt(t,i,a,u){if(arguments.length===1)gp(t),delete t[jn];else if(i&&typeof i=="object")for(var p in i)Cc(t,p,i[p],a);else if(i=_(i),arguments.length===2)gp(t,function(D){return I(i,D)!==-1});else for(var w=0,O=i.length;w<O;w++)Cc(t,i[w],a,u);return this}function gp(t,i){for(var a in t[jn]){var u=a.split(/\d/)[0];(!i||i(u))&&Cc(t,u,null,null,a)}}var xc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function wc(t,i,a,u){var p=i+h(a)+(u?"_"+h(u):"");if(t[jn]&&t[jn][p])return this;var w=function(D){return a.call(u||t,D||window.event)},O=w;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?w=ae(t,i,w):ve.touch&&i==="dblclick"?w=Qt(t,w):"addEventListener"in t?i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"?t.addEventListener(xc[i]||i,w,ve.passiveEvents?{passive:!1}:!1):i==="mouseenter"||i==="mouseleave"?(w=function(D){D=D||window.event,Ec(t,D)&&O(D)},t.addEventListener(xc[i],w,!1)):t.addEventListener(i,O,!1):t.attachEvent("on"+i,w),t[jn]=t[jn]||{},t[jn][p]=w}function Cc(t,i,a,u,p){p=p||i+h(a)+(u?"_"+h(u):"");var w=t[jn]&&t[jn][p];if(!w)return this;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?pe(t,i,w):ve.touch&&i==="dblclick"?br(t,w):"removeEventListener"in t?t.removeEventListener(xc[i]||i,w,!1):t.detachEvent("on"+i,w),t[jn][p]=null}function Fr(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Sc(t){return wc(t,"wheel",Fr),this}function gi(t){return je(t,"mousedown touchstart dblclick contextmenu",Fr),t._leaflet_disable_click=!0,this}function en(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Hr(t){return en(t),Fr(t),this}function vp(t){if(t.composedPath)return t.composedPath();for(var i=[],a=t.target;a;)i.push(a),a=a.parentNode;return i}function yp(t,i){if(!i)return new Z(t.clientX,t.clientY);var a=_c(i),u=a.boundingClientRect;return new Z((t.clientX-u.left)/a.x-i.clientLeft,(t.clientY-u.top)/a.y-i.clientTop)}var cw=ve.linux&&ve.chrome?window.devicePixelRatio:ve.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function bp(t){return ve.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/cw:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Ec(t,i){var a=i.relatedTarget;if(!a)return!0;try{for(;a&&a!==t;)a=a.parentNode}catch{return!1}return a!==t}var uw={__proto__:null,on:je,off:bt,stopPropagation:Fr,disableScrollPropagation:Sc,disableClickPropagation:gi,preventDefault:en,stop:Hr,getPropagationPath:vp,getMousePosition:yp,getWheelDelta:bp,isExternalTarget:Ec,addListener:je,removeListener:bt},_p=J.extend({run:function(t,i,a,u){this.stop(),this._el=t,this._inProgress=!0,this._duration=a||.25,this._easeOutPower=1/Math.max(u||.5,.2),this._startPos=sr(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=$(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,a=this._duration*1e3;i<a?this._runFrame(this._easeOut(i/a),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var a=this._startPos.add(this._offset.multiplyBy(t));i&&a._round(),Pt(this._el,a),this.fire("step")},_complete:function(){j(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),it=J.extend({options:{crs:Ce,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=x(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),i.zoom!==void 0&&(this._zoom=this._limitZoom(i.zoom)),i.center&&i.zoom!==void 0&&this.setView(K(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Bn&&ve.any3d&&!ve.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,_r,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,a){if(i=i===void 0?this._zoom:this._limitZoom(i),t=this._limitCenter(K(t),i,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&a!==!0){a.animate!==void 0&&(a.zoom=s({animate:a.animate},a.zoom),a.pan=s({animate:a.animate,duration:a.duration},a.pan));var u=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,a.zoom):this._tryAnimatedPan(t,a.pan);if(u)return clearTimeout(this._sizeTimer),this}return this._resetView(t,i,a.pan&&a.pan.noMoveStart),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,a){var u=this.getZoomScale(i),p=this.getSize().divideBy(2),w=t instanceof Z?t:this.latLngToContainerPoint(t),O=w.subtract(p).multiplyBy(1-1/u),D=this.containerPointToLatLng(p.add(O));return this.setView(D,i,{zoom:a})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():oe(t);var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.getBoundsZoom(t,!1,a.add(u));if(p=typeof i.maxZoom=="number"?Math.min(i.maxZoom,p):p,p===1/0)return{center:t.getCenter(),zoom:p};var w=u.subtract(a).divideBy(2),O=this.project(t.getSouthWest(),p),D=this.project(t.getNorthEast(),p),H=this.unproject(O.add(D).divideBy(2).add(w),p);return{center:H,zoom:p}},fitBounds:function(t,i){if(t=oe(t),!t.isValid())throw new Error("Bounds are not valid.");var a=this._getBoundsCenterZoom(t,i);return this.setView(a.center,a.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=G(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new _p,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),i.animate!==!1){He(this._mapPane,"leaflet-pan-anim");var a=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,a,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,a){if(a=a||{},a.animate===!1||!ve.any3d)return this.setView(t,i,a);this._stop();var u=this.project(this.getCenter()),p=this.project(t),w=this.getSize(),O=this._zoom;t=K(t),i=i===void 0?O:i;var D=Math.max(w.x,w.y),H=D*this.getZoomScale(O,i),Q=p.distanceTo(u)||1,be=1.42,Re=be*be;function Xe(Bt){var Vs=Bt?-1:1,Xw=Bt?H:D,Jw=H*H-D*D+Vs*Re*Re*Q*Q,eC=2*Xw*Re*Q,$c=Jw/eC,em=Math.sqrt($c*$c+1)-$c,tC=em<1e-9?-18:Math.log(em);return tC}function dn(Bt){return(Math.exp(Bt)-Math.exp(-Bt))/2}function Xt(Bt){return(Math.exp(Bt)+Math.exp(-Bt))/2}function Mn(Bt){return dn(Bt)/Xt(Bt)}var vn=Xe(0);function Ao(Bt){return D*(Xt(vn)/Xt(vn+be*Bt))}function Gw(Bt){return D*(Xt(vn)*Mn(vn+be*Bt)-dn(vn))/Re}function Kw(Bt){return 1-Math.pow(1-Bt,1.5)}var Qw=Date.now(),Xp=(Xe(1)-vn)/be,Yw=a.duration?1e3*a.duration:1e3*Xp*.8;function Jp(){var Bt=(Date.now()-Qw)/Yw,Vs=Kw(Bt)*Xp;Bt<=1?(this._flyToFrame=$(Jp,this),this._move(this.unproject(u.add(p.subtract(u).multiplyBy(Gw(Vs)/Q)),O),this.getScaleZoom(D/Ao(Vs),O),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}return this._moveStart(!0,a.noMoveStart),Jp.call(this),this},flyToBounds:function(t,i){var a=this._getBoundsCenterZoom(t,i);return this.flyTo(a.center,a.zoom,i)},setMaxBounds:function(t){return t=oe(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var a=this.getCenter(),u=this._limitCenter(a,this._zoom,oe(t));return a.equals(u)||this.panTo(u,i),this._enforcingBounds=!1,this},panInside:function(t,i){i=i||{};var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.project(this.getCenter()),w=this.project(t),O=this.getPixelBounds(),D=ne([O.min.add(a),O.max.subtract(u)]),H=D.getSize();if(!D.contains(w)){this._enforcingBounds=!0;var Q=w.subtract(D.getCenter()),be=D.extend(w).getSize().subtract(H);p.x+=Q.x<0?-be.x:be.x,p.y+=Q.y<0?-be.y:be.y,this.panTo(this.unproject(p),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=s({animate:!1,pan:!0},t===!0?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),u=i.divideBy(2).round(),p=a.divideBy(2).round(),w=u.subtract(p);return!w.x&&!w.y?this:(t.animate&&t.pan?this.panBy(w):(t.pan&&this._rawPanBy(w),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:a}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=s({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=c(this._handleGeolocationResponse,this),a=c(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,a,t):navigator.geolocation.getCurrentPosition(i,a,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var i=t.code,a=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+a+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,a=t.coords.longitude,u=new ee(i,a),p=u.toBounds(t.coords.accuracy*2),w=this._locateOptions;if(w.setView){var O=this.getBoundsZoom(p);this.setView(u,w.maxZoom?Math.min(O,w.maxZoom):O)}var D={latlng:u,bounds:p,timestamp:t.timestamp};for(var H in t.coords)typeof t.coords[H]=="number"&&(D[H]=t.coords[H]);this.fire("locationfound",D)}},addHandler:function(t,i){if(!i)return this;var a=this[t]=new i(this);return this._handlers.push(a),this.options[t]&&a.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ue(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)Ue(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var a="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),u=Ne("div",a,i||this._mapPane);return t&&(this._panes[t]=u),u},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),a=this.unproject(t.getTopRight());return new de(i,a)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,a){t=oe(t),a=G(a||[0,0]);var u=this.getZoom()||0,p=this.getMinZoom(),w=this.getMaxZoom(),O=t.getNorthWest(),D=t.getSouthEast(),H=this.getSize().subtract(a),Q=ne(this.project(D,u),this.project(O,u)).getSize(),be=ve.any3d?this.options.zoomSnap:1,Re=H.x/Q.x,Xe=H.y/Q.y,dn=i?Math.max(Re,Xe):Math.min(Re,Xe);return u=this.getScaleZoom(dn,u),be&&(u=Math.round(u/(be/100))*(be/100),u=i?Math.ceil(u/be)*be:Math.floor(u/be)*be),Math.max(p,Math.min(w,u))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var a=this._getTopLeftPoint(t,i);return new ie(a,a.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var a=this.options.crs;return i=i===void 0?this._zoom:i,a.scale(t)/a.scale(i)},getScaleZoom:function(t,i){var a=this.options.crs;i=i===void 0?this._zoom:i;var u=a.zoom(t*a.scale(i));return isNaN(u)?1/0:u},project:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(K(t),i)},unproject:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(G(t),i)},layerPointToLatLng:function(t){var i=G(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(K(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(K(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(oe(t))},distance:function(t,i){return this.options.crs.distance(K(t),K(i))},containerPointToLayerPoint:function(t){return G(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return G(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(G(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(t)))},mouseEventToContainerPoint:function(t){return yp(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 i=this._container=wo(t);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");je(i,"scroll",this._onScroll,this),this._containerId=h(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ve.any3d,He(t,"leaflet-container"+(ve.touch?" leaflet-touch":"")+(ve.retina?" leaflet-retina":"")+(ve.ielt9?" leaflet-oldie":"")+(ve.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=Me(t,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Pt(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(He(t.markerPane,"leaflet-zoom-hide"),He(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,a){Pt(this._mapPane,new Z(0,0));var u=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var p=this._zoom!==i;this._moveStart(p,a)._move(t,i)._moveEnd(p),this.fire("viewreset"),u&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,a,u){i===void 0&&(i=this._zoom);var p=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),u?a&&a.pinch&&this.fire("zoom",a):((p||a&&a.pinch)&&this.fire("zoom",a),this.fire("move",a)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Pt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[h(this._container)]=this;var i=t?bt:je;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),ve.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=$(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var a=[],u,p=i==="mouseout"||i==="mouseover",w=t.target||t.srcElement,O=!1;w;){if(u=this._targets[h(w)],u&&(i==="click"||i==="preclick")&&this._draggableMoved(u)){O=!0;break}if(u&&u.listens(i,!0)&&(p&&!Ec(w,t)||(a.push(u),p))||w===this._container)break;w=w.parentNode}return!a.length&&!O&&!p&&this.listens(i,!0)&&(a=[this]),a},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(i))){var a=t.type;a==="mousedown"&&bc(i),this._fireDOMEvent(t,a)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,a){if(t.type==="click"){var u=s({},t);u.type="preclick",this._fireDOMEvent(u,u.type,a)}var p=this._findEventTargets(t,i);if(a){for(var w=[],O=0;O<a.length;O++)a[O].listens(i,!0)&&w.push(a[O]);p=w.concat(p)}if(p.length){i==="contextmenu"&&en(t);var D=p[0],H={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var Q=D.getLatLng&&(!D._radius||D._radius<=10);H.containerPoint=Q?this.latLngToContainerPoint(D.getLatLng()):this.mouseEventToContainerPoint(t),H.layerPoint=this.containerPointToLayerPoint(H.containerPoint),H.latlng=Q?D.getLatLng():this.layerPointToLatLng(H.layerPoint)}for(O=0;O<p.length;O++)if(p[O].fire(i,H,!0),H.originalEvent._stopped||p[O].options.bubblingMouseEvents===!1&&I(this._mouseEvents,i)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return sr(this._mapPane)||new Z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var a=t&&i!==void 0?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return a.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var a=this.getSize()._divideBy(2);return this.project(t,i)._subtract(a)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return this.project(t,i)._subtract(u)},_latLngBoundsToNewLayerBounds:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return ne([this.project(t.getSouthWest(),i)._subtract(u),this.project(t.getNorthWest(),i)._subtract(u),this.project(t.getSouthEast(),i)._subtract(u),this.project(t.getNorthEast(),i)._subtract(u)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,a){if(!a)return t;var u=this.project(t,i),p=this.getSize().divideBy(2),w=new ie(u.subtract(p),u.add(p)),O=this._getBoundsOffset(w,a,i);return Math.abs(O.x)<=1&&Math.abs(O.y)<=1?t:this.unproject(u.add(O),i)},_limitOffset:function(t,i){if(!i)return t;var a=this.getPixelBounds(),u=new ie(a.min.add(t),a.max.add(t));return t.add(this._getBoundsOffset(u,i))},_getBoundsOffset:function(t,i,a){var u=ne(this.project(i.getNorthEast(),a),this.project(i.getSouthWest(),a)),p=u.min.subtract(t.min),w=u.max.subtract(t.max),O=this._rebound(p.x,-w.x),D=this._rebound(p.y,-w.y);return new Z(O,D)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),a=this.getMaxZoom(),u=ve.any3d?this.options.zoomSnap:1;return u&&(t=Math.round(t/u)*u),Math.max(i,Math.min(a,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ct(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var a=this._getCenterOffset(t)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(a)?!1:(this.panBy(a,i),!0)},_createAnimProxy:function(){var t=this._proxy=Ne("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(i){var a=ir,u=this._proxy.style[a];un(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),u===this._proxy.style[a]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ue(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();un(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,a){if(this._animatingZoom)return!0;if(a=a||{},!this._zoomAnimated||a.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var u=this.getZoomScale(i),p=this._getCenterOffset(t)._divideBy(1-1/u);return a.animate!==!0&&!this.getSize().contains(p)?!1:($(function(){this._moveStart(!0,a.noMoveStart||!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,a,u){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,He(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:u}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ct(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function dw(t,i){return new it(t,i)}var Fn=W.extend({options:{position:"topright"},initialize:function(t){x(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),a=this.getPosition(),u=t._controlCorners[a];return He(i,"leaflet-control"),a.indexOf("bottom")!==-1?u.insertBefore(i,u.firstChild):u.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ue(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),vi=function(t){return new Fn(t)};it.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",a=this._controlContainer=Ne("div",i+"control-container",this._container);function u(p,w){var O=i+p+" "+i+w;t[p+w]=Ne("div",O,a)}u("top","left"),u("top","right"),u("bottom","left"),u("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Ue(this._controlCorners[t]);Ue(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xp=Fn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,a,u){return a<u?-1:u<a?1:0}},initialize:function(t,i,a){x(this,a),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var u in t)this._addLayer(t[u],u);for(u in i)this._addLayer(i[u],u,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Fn.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(h(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){He(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(He(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Ct(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ct(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=Ne("div",t),a=this.options.collapsed;i.setAttribute("aria-haspopup",!0),gi(i),Sc(i);var u=this._section=Ne("section",t+"-list");a&&(this._map.on("click",this.collapse,this),je(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var p=this._layersLink=Ne("a",t+"-toggle",i);p.href="#",p.title="Layers",p.setAttribute("role","button"),je(p,{keydown:function(w){w.keyCode===13&&this._expandSafely()},click:function(w){en(w),this._expandSafely()}},this),a||this.expand(),this._baseLayersList=Ne("div",t+"-base",u),this._separator=Ne("div",t+"-separator",u),this._overlaysList=Ne("div",t+"-overlays",u),i.appendChild(u)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,a){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:a}),this.options.sortLayers&&this._layers.sort(c(function(u,p){return this.options.sortFunction(u.layer,p.layer,u.name,p.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Tn(this._baseLayersList),Tn(this._overlaysList),this._layerControlInputs=[];var t,i,a,u,p=0;for(a=0;a<this._layers.length;a++)u=this._layers[a],this._addItem(u),i=i||u.overlay,t=t||!u.overlay,p+=u.overlay?0:1;return this.options.hideSingleBase&&(t=t&&p>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),a=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;a&&this._map.fire(a,i)},_createRadioElement:function(t,i){var a='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",u=document.createElement("div");return u.innerHTML=a,u.firstChild},_addItem:function(t){var i=document.createElement("label"),a=this._map.hasLayer(t.layer),u;t.overlay?(u=document.createElement("input"),u.type="checkbox",u.className="leaflet-control-layers-selector",u.defaultChecked=a):u=this._createRadioElement("leaflet-base-layers_"+h(this),a),this._layerControlInputs.push(u),u.layerId=h(t.layer),je(u,"click",this._onInputClick,this);var p=document.createElement("span");p.innerHTML=" "+t.name;var w=document.createElement("span");i.appendChild(w),w.appendChild(u),w.appendChild(p);var O=t.overlay?this._overlaysList:this._baseLayersList;return O.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,i,a,u=[],p=[];this._handlingClick=!0;for(var w=t.length-1;w>=0;w--)i=t[w],a=this._getLayer(i.layerId).layer,i.checked?u.push(a):i.checked||p.push(a);for(w=0;w<p.length;w++)this._map.hasLayer(p[w])&&this._map.removeLayer(p[w]);for(w=0;w<u.length;w++)this._map.hasLayer(u[w])||this._map.addLayer(u[w]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,i,a,u=this._map.getZoom(),p=t.length-1;p>=0;p--)i=t[p],a=this._getLayer(i.layerId).layer,i.disabled=a.options.minZoom!==void 0&&u<a.options.minZoom||a.options.maxZoom!==void 0&&u>a.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,je(t,"click",en),this.expand();var i=this;setTimeout(function(){bt(t,"click",en),i._preventClick=!1})}}),fw=function(t,i,a){return new xp(t,i,a)},Pc=Fn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",a=Ne("div",i+" leaflet-bar"),u=this.options;return this._zoomInButton=this._createButton(u.zoomInText,u.zoomInTitle,i+"-in",a,this._zoomIn),this._zoomOutButton=this._createButton(u.zoomOutText,u.zoomOutTitle,i+"-out",a,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),a},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,a,u,p){var w=Ne("a",a,u);return w.innerHTML=t,w.href="#",w.title=i,w.setAttribute("role","button"),w.setAttribute("aria-label",i),gi(w),je(w,"click",Hr),je(w,"click",p,this),je(w,"click",this._refocusOnMap,this),w},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";Ct(this._zoomInButton,i),Ct(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(He(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(He(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});it.mergeOptions({zoomControl:!0}),it.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Pc,this.addControl(this.zoomControl))});var hw=function(t){return new Pc(t)},wp=Fn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",a=Ne("div",i),u=this.options;return this._addScales(u,i+"-line",a),t.on(u.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),a},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,a){t.metric&&(this._mScale=Ne("div",i,a)),t.imperial&&(this._iScale=Ne("div",i,a))},_update:function(){var t=this._map,i=t.getSize().y/2,a=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(a)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),a=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,a,i/t)},_updateImperial:function(t){var i=t*3.2808399,a,u,p;i>5280?(a=i/5280,u=this._getRoundNum(a),this._updateScale(this._iScale,u+" mi",u/a)):(p=this._getRoundNum(i),this._updateScale(this._iScale,p+" ft",p/i))},_updateScale:function(t,i,a){t.style.width=Math.round(this.options.maxWidth*a)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),a=t/i;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:1,i*a}}),pw=function(t){return new wp(t)},mw='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ic=Fn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ve.inlineSvg?mw+" ":"")+"Leaflet</a>"},initialize:function(t){x(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=Ne("div","leaflet-control-attribution"),gi(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var a=[];this.options.prefix&&a.push(this.options.prefix),t.length&&a.push(t.join(", ")),this._container.innerHTML=a.join(' <span aria-hidden="true">|</span> ')}}});it.mergeOptions({attributionControl:!0}),it.addInitHook(function(){this.options.attributionControl&&new Ic().addTo(this)});var gw=function(t){return new Ic(t)};Fn.Layers=xp,Fn.Zoom=Pc,Fn.Scale=wp,Fn.Attribution=Ic,vi.layers=fw,vi.zoom=hw,vi.scale=pw,vi.attribution=gw;var Zn=W.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Zn.addTo=function(t,i){return t.addHandler(i,this),this};var vw={Events:X},Cp=ve.touch?"touchstart mousedown":"mousedown",wr=J.extend({options:{clickTolerance:3},initialize:function(t,i,a,u){x(this,u),this._element=t,this._dragStartTarget=i||t,this._preventOutline=a},enable:function(){this._enabled||(je(this._dragStartTarget,Cp,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(wr._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,Cp,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Co(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){wr._dragging===this&&this.finishDrag();return}if(!(wr._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(wr._dragging=this,this._preventOutline&&bc(this._element),gc(),xr(),!this._moving)){this.fire("down");var i=t.touches?t.touches[0]:t,a=mp(this._element);this._startPoint=new Z(i.clientX,i.clientY),this._startPos=sr(this._element),this._parentScale=_c(a);var u=t.type==="mousedown";je(document,u?"mousemove":"touchmove",this._onMove,this),je(document,u?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,a=new Z(i.clientX,i.clientY)._subtract(this._startPoint);!a.x&&!a.y||Math.abs(a.x)+Math.abs(a.y)<this.options.clickTolerance||(a.x/=this._parentScale.x,a.y/=this._parentScale.y,en(t),this._moved||(this.fire("dragstart"),this._moved=!0,He(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),He(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(a),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Pt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Ct(document.body,"leaflet-dragging"),this._lastTarget&&(Ct(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),vc(),pi();var i=this._moved&&this._moving;this._moving=!1,wr._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Sp(t,i,a){var u,p=[1,4,2,8],w,O,D,H,Q,be,Re,Xe;for(w=0,be=t.length;w<be;w++)t[w]._code=Vr(t[w],i);for(D=0;D<4;D++){for(Re=p[D],u=[],w=0,be=t.length,O=be-1;w<be;O=w++)H=t[w],Q=t[O],H._code&Re?Q._code&Re||(Xe=Ls(Q,H,Re,i,a),Xe._code=Vr(Xe,i),u.push(Xe)):(Q._code&Re&&(Xe=Ls(Q,H,Re,i,a),Xe._code=Vr(Xe,i),u.push(Xe)),u.push(H));t=u}return t}function Ep(t,i){var a,u,p,w,O,D,H,Q,be;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var Re=K([0,0]),Xe=oe(t),dn=Xe.getNorthWest().distanceTo(Xe.getSouthWest())*Xe.getNorthEast().distanceTo(Xe.getNorthWest());dn<1700&&(Re=Tc(t));var Xt=t.length,Mn=[];for(a=0;a<Xt;a++){var vn=K(t[a]);Mn.push(i.project(K([vn.lat-Re.lat,vn.lng-Re.lng])))}for(D=H=Q=0,a=0,u=Xt-1;a<Xt;u=a++)p=Mn[a],w=Mn[u],O=p.y*w.x-w.y*p.x,H+=(p.x+w.x)*O,Q+=(p.y+w.y)*O,D+=O*3;D===0?be=Mn[0]:be=[H/D,Q/D];var Ao=i.unproject(G(be));return K([Ao.lat+Re.lat,Ao.lng+Re.lng])}function Tc(t){for(var i=0,a=0,u=0,p=0;p<t.length;p++){var w=K(t[p]);i+=w.lat,a+=w.lng,u++}return K([i/u,a/u])}var yw={__proto__:null,clipPolygon:Sp,polygonCenter:Ep,centroid:Tc};function Pp(t,i){if(!i||!t.length)return t.slice();var a=i*i;return t=xw(t,a),t=_w(t,a),t}function Ip(t,i,a){return Math.sqrt(yi(t,i,a,!0))}function bw(t,i,a){return yi(t,i,a)}function _w(t,i){var a=t.length,u=typeof Uint8Array!=void 0+""?Uint8Array:Array,p=new u(a);p[0]=p[a-1]=1,Ac(t,p,i,0,a-1);var w,O=[];for(w=0;w<a;w++)p[w]&&O.push(t[w]);return O}function Ac(t,i,a,u,p){var w=0,O,D,H;for(D=u+1;D<=p-1;D++)H=yi(t[D],t[u],t[p],!0),H>w&&(O=D,w=H);w>a&&(i[O]=1,Ac(t,i,a,u,O),Ac(t,i,a,O,p))}function xw(t,i){for(var a=[t[0]],u=1,p=0,w=t.length;u<w;u++)ww(t[u],t[p])>i&&(a.push(t[u]),p=u);return p<w-1&&a.push(t[w-1]),a}var Tp;function Ap(t,i,a,u,p){var w=u?Tp:Vr(t,a),O=Vr(i,a),D,H,Q;for(Tp=O;;){if(!(w|O))return[t,i];if(w&O)return!1;D=w||O,H=Ls(t,i,D,a,p),Q=Vr(H,a),D===w?(t=H,w=Q):(i=H,O=Q)}}function Ls(t,i,a,u,p){var w=i.x-t.x,O=i.y-t.y,D=u.min,H=u.max,Q,be;return a&8?(Q=t.x+w*(H.y-t.y)/O,be=H.y):a&4?(Q=t.x+w*(D.y-t.y)/O,be=D.y):a&2?(Q=H.x,be=t.y+O*(H.x-t.x)/w):a&1&&(Q=D.x,be=t.y+O*(D.x-t.x)/w),new Z(Q,be,p)}function Vr(t,i){var a=0;return t.x<i.min.x?a|=1:t.x>i.max.x&&(a|=2),t.y<i.min.y?a|=4:t.y>i.max.y&&(a|=8),a}function ww(t,i){var a=i.x-t.x,u=i.y-t.y;return a*a+u*u}function yi(t,i,a,u){var p=i.x,w=i.y,O=a.x-p,D=a.y-w,H=O*O+D*D,Q;return H>0&&(Q=((t.x-p)*O+(t.y-w)*D)/H,Q>1?(p=a.x,w=a.y):Q>0&&(p+=O*Q,w+=D*Q)),O=t.x-p,D=t.y-w,u?O*O+D*D:new Z(p,w)}function An(t){return!P(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Mp(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(t)}function Lp(t,i){var a,u,p,w,O,D,H,Q;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var be=K([0,0]),Re=oe(t),Xe=Re.getNorthWest().distanceTo(Re.getSouthWest())*Re.getNorthEast().distanceTo(Re.getNorthWest());Xe<1700&&(be=Tc(t));var dn=t.length,Xt=[];for(a=0;a<dn;a++){var Mn=K(t[a]);Xt.push(i.project(K([Mn.lat-be.lat,Mn.lng-be.lng])))}for(a=0,u=0;a<dn-1;a++)u+=Xt[a].distanceTo(Xt[a+1])/2;if(u===0)Q=Xt[0];else for(a=0,w=0;a<dn-1;a++)if(O=Xt[a],D=Xt[a+1],p=O.distanceTo(D),w+=p,w>u){H=(w-u)/p,Q=[D.x-H*(D.x-O.x),D.y-H*(D.y-O.y)];break}var vn=i.unproject(G(Q));return K([vn.lat+be.lat,vn.lng+be.lng])}var Cw={__proto__:null,simplify:Pp,pointToSegmentDistance:Ip,closestPointOnSegment:bw,clipSegment:Ap,_getEdgeIntersection:Ls,_getBitCode:Vr,_sqClosestPointOnSegment:yi,isFlat:An,_flat:Mp,polylineCenter:Lp},Mc={project:function(t){return new Z(t.lng,t.lat)},unproject:function(t){return new ee(t.y,t.x)},bounds:new ie([-180,-90],[180,90])},Lc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ie([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var i=Math.PI/180,a=this.R,u=t.lat*i,p=this.R_MINOR/a,w=Math.sqrt(1-p*p),O=w*Math.sin(u),D=Math.tan(Math.PI/4-u/2)/Math.pow((1-O)/(1+O),w/2);return u=-a*Math.log(Math.max(D,1e-10)),new Z(t.lng*i*a,u)},unproject:function(t){for(var i=180/Math.PI,a=this.R,u=this.R_MINOR/a,p=Math.sqrt(1-u*u),w=Math.exp(-t.y/a),O=Math.PI/2-2*Math.atan(w),D=0,H=.1,Q;D<15&&Math.abs(H)>1e-7;D++)Q=p*Math.sin(O),Q=Math.pow((1-Q)/(1+Q),p/2),H=Math.PI/2-2*Math.atan(w*Q)-O,O+=H;return new ee(O*i,t.x*i/a)}},Sw={__proto__:null,LonLat:Mc,Mercator:Lc,SphericalMercator:xe},Ew=s({},se,{code:"EPSG:3395",projection:Lc,transformation:function(){var t=.5/(Math.PI*Lc.R);return Te(t,.5,-t,.5)}()}),Op=s({},se,{code:"EPSG:4326",projection:Mc,transformation:Te(1/180,1,-1/180,.5)}),Pw=s({},Y,{projection:Mc,transformation:Te(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var a=i.lng-t.lng,u=i.lat-t.lat;return Math.sqrt(a*a+u*u)},infinite:!0});Y.Earth=se,Y.EPSG3395=Ew,Y.EPSG3857=Ce,Y.EPSG900913=te,Y.EPSG4326=Op,Y.Simple=Pw;var Hn=J.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var a=this.getEvents();i.on(a,this),this.once("remove",function(){i.off(a,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});it.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=h(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var a in this._layers)t.call(i,this._layers[a]);return this},_addLayers:function(t){t=t?P(t)?t:[t]:[];for(var i=0,a=t.length;i<a;i++)this.addLayer(t[i])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=h(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,a=this._getZoomSpan();for(var u in this._zoomBoundLayers){var p=this._zoomBoundLayers[u].options;t=p.minZoom===void 0?t:Math.min(t,p.minZoom),i=p.maxZoom===void 0?i:Math.max(i,p.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,a!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var So=Hn.extend({initialize:function(t,i){x(this,i),this._layers={};var a,u;if(t)for(a=0,u=t.length;a<u;a++)this.addLayer(t[a])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){var i=typeof t=="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),a,u;for(a in this._layers)u=this._layers[a],u[t]&&u[t].apply(u,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var a in this._layers)t.call(i,this._layers[a]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return h(t)}}),Iw=function(t,i){return new So(t,i)},ar=So.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),So.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),So.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new de;for(var i in this._layers){var a=this._layers[i];t.extend(a.getBounds?a.getBounds():a.getLatLng())}return t}}),Tw=function(t,i){return new ar(t,i)},Eo=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){x(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var a=this._getIconUrl(t);if(!a){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var u=this._createImg(a,i&&i.tagName==="IMG"?i:null);return this._setIconStyles(u,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),u},_setIconStyles:function(t,i){var a=this.options,u=a[i+"Size"];typeof u=="number"&&(u=[u,u]);var p=G(u),w=G(i==="shadow"&&a.shadowAnchor||a.iconAnchor||p&&p.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(a.className||""),w&&(t.style.marginLeft=-w.x+"px",t.style.marginTop=-w.y+"px"),p&&(t.style.width=p.x+"px",t.style.height=p.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return ve.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Aw(t){return new Eo(t)}var bi=Eo.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof bi.imagePath!="string"&&(bi.imagePath=this._detectIconPath()),(this.options.imagePath||bi.imagePath)+Eo.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(a,u,p){var w=u.exec(a);return w&&w[p]};return t=i(t,/^url\((['"])?(.+)\1\)$/,2),t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Ne("div","leaflet-default-icon-path",document.body),i=Me(t,"background-image")||Me(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i),i)return i;var a=document.querySelector('link[href$="leaflet.css"]');return a?a.href.substring(0,a.href.length-11-1):""}}),Np=Zn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new wr(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),He(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ct(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,a=i._map,u=this._marker.options.autoPanSpeed,p=this._marker.options.autoPanPadding,w=sr(i._icon),O=a.getPixelBounds(),D=a.getPixelOrigin(),H=ne(O.min._subtract(D).add(p),O.max._subtract(D).subtract(p));if(!H.contains(w)){var Q=G((Math.max(H.max.x,w.x)-H.max.x)/(O.max.x-H.max.x)-(Math.min(H.min.x,w.x)-H.min.x)/(O.min.x-H.min.x),(Math.max(H.max.y,w.y)-H.max.y)/(O.max.y-H.max.y)-(Math.min(H.min.y,w.y)-H.min.y)/(O.min.y-H.min.y)).multiplyBy(u);a.panBy(Q,{animate:!1}),this._draggable._newPos._add(Q),this._draggable._startPos._add(Q),Pt(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=$(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(j(this._panRequest),this._panRequest=$(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,a=i._shadow,u=sr(i._icon),p=i._map.layerPointToLatLng(u);a&&Pt(a,u),i._latlng=p,t.latlng=p,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){j(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Os=Hn.extend({options:{icon:new bi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){x(this,i),this._latlng=K(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=K(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=t.icon.createIcon(this._icon),u=!1;a!==this._icon&&(this._icon&&this._removeIcon(),u=!0,t.title&&(a.title=t.title),a.tagName==="IMG"&&(a.alt=t.alt||"")),He(a,i),t.keyboard&&(a.tabIndex="0",a.setAttribute("role","button")),this._icon=a,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(a,"focus",this._panOnFocus,this);var p=t.icon.createShadow(this._shadow),w=!1;p!==this._shadow&&(this._removeShadow(),w=!0),p&&(He(p,i),p.alt=""),this._shadow=p,t.opacity<1&&this._updateOpacity(),u&&this.getPane().appendChild(this._icon),this._initInteraction(),p&&w&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Ue(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ue(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Pt(this._icon,t),this._shadow&&Pt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(He(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Np)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Np(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ke(this._icon,t),this._shadow&&ke(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,a=i.iconSize?G(i.iconSize):G(0,0),u=i.iconAnchor?G(i.iconAnchor):G(0,0);t.panInside(this._latlng,{paddingTopLeft:u,paddingBottomRight:a.subtract(u)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Mw(t,i){return new Os(t,i)}var Cr=Hn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return x(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ns=Cr.extend({options:{fill:!0,radius:10},initialize:function(t,i){x(this,i),this._latlng=K(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=K(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return Cr.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,a=this._clickTolerance(),u=[t+a,i+a];this._pxBounds=new ie(this._point.subtract(u),this._point.add(u))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Lw(t,i){return new Ns(t,i)}var Oc=Ns.extend({initialize:function(t,i,a){if(typeof i=="number"&&(i=s({},a,{radius:i})),x(this,i),this._latlng=K(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new de(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Cr.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,a=this._map,u=a.options.crs;if(u.distance===se.distance){var p=Math.PI/180,w=this._mRadius/se.R/p,O=a.project([i+w,t]),D=a.project([i-w,t]),H=O.add(D).divideBy(2),Q=a.unproject(H).lat,be=Math.acos((Math.cos(w*p)-Math.sin(i*p)*Math.sin(Q*p))/(Math.cos(i*p)*Math.cos(Q*p)))/p;(isNaN(be)||be===0)&&(be=w/Math.cos(Math.PI/180*i)),this._point=H.subtract(a.getPixelOrigin()),this._radius=isNaN(be)?0:H.x-a.project([Q,t-be]).x,this._radiusY=H.y-O.y}else{var Re=u.unproject(u.project(this._latlng).subtract([this._mRadius,0]));this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(Re).x}this._updateBounds()}});function Ow(t,i,a){return new Oc(t,i,a)}var lr=Cr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){x(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i=1/0,a=null,u=yi,p,w,O=0,D=this._parts.length;O<D;O++)for(var H=this._parts[O],Q=1,be=H.length;Q<be;Q++){p=H[Q-1],w=H[Q];var Re=u(t,p,w,!0);Re<i&&(i=Re,a=u(t,p,w))}return a&&(a.distance=Math.sqrt(i)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Lp(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=K(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new de,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],a=An(t),u=0,p=t.length;u<p;u++)a?(i[u]=K(t[u]),this._bounds.extend(i[u])):i[u]=this._convertLatLngs(t[u]);return i},_project:function(){var t=new ie;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new Z(t,t);this._rawPxBounds&&(this._pxBounds=new ie([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,a){var u=t[0]instanceof ee,p=t.length,w,O;if(u){for(O=[],w=0;w<p;w++)O[w]=this._map.latLngToLayerPoint(t[w]),a.extend(O[w]);i.push(O)}else for(w=0;w<p;w++)this._projectLatlngs(t[w],i,a)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,a,u,p,w,O,D,H;for(a=0,p=0,w=this._rings.length;a<w;a++)for(H=this._rings[a],u=0,O=H.length;u<O-1;u++)D=Ap(H[u],H[u+1],t,u,!0),D&&(i[p]=i[p]||[],i[p].push(D[0]),(D[1]!==H[u+1]||u===O-2)&&(i[p].push(D[1]),p++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,a=0,u=t.length;a<u;a++)t[a]=Pp(t[a],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var a,u,p,w,O,D,H=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,w=this._parts.length;a<w;a++)for(D=this._parts[a],u=0,O=D.length,p=O-1;u<O;p=u++)if(!(!i&&u===0)&&Ip(t,D[p],D[u])<=H)return!0;return!1}});function Nw(t,i){return new lr(t,i)}lr._flat=Mp;var Po=lr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ep(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=lr.prototype._convertLatLngs.call(this,t),a=i.length;return a>=2&&i[0]instanceof ee&&i[0].equals(i[a-1])&&i.pop(),i},_setLatLngs:function(t){lr.prototype._setLatLngs.call(this,t),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,a=new Z(i,i);if(t=new ie(t.min.subtract(a),t.max.add(a)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var u=0,p=this._rings.length,w;u<p;u++)w=Sp(this._rings[u],t,!0),w.length&&this._parts.push(w)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i=!1,a,u,p,w,O,D,H,Q;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(w=0,H=this._parts.length;w<H;w++)for(a=this._parts[w],O=0,Q=a.length,D=Q-1;O<Q;D=O++)u=a[O],p=a[D],u.y>t.y!=p.y>t.y&&t.x<(p.x-u.x)*(t.y-u.y)/(p.y-u.y)+u.x&&(i=!i);return i||lr.prototype._containsPoint.call(this,t,!0)}});function kw(t,i){return new Po(t,i)}var cr=ar.extend({initialize:function(t,i){x(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i=P(t)?t:t.features,a,u,p;if(i){for(a=0,u=i.length;a<u;a++)p=i[a],(p.geometries||p.geometry||p.features||p.coordinates)&&this.addData(p);return this}var w=this.options;if(w.filter&&!w.filter(t))return this;var O=ks(t,w);return O?(O.feature=Bs(t),O.defaultOptions=O.options,this.resetStyle(O),w.onEachFeature&&w.onEachFeature(t,O),this.addLayer(O)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=s({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){t.setStyle&&(typeof i=="function"&&(i=i(t.feature)),t.setStyle(i))}});function ks(t,i){var a=t.type==="Feature"?t.geometry:t,u=a?a.coordinates:null,p=[],w=i&&i.pointToLayer,O=i&&i.coordsToLatLng||Nc,D,H,Q,be;if(!u&&!a)return null;switch(a.type){case"Point":return D=O(u),kp(w,t,D,i);case"MultiPoint":for(Q=0,be=u.length;Q<be;Q++)D=O(u[Q]),p.push(kp(w,t,D,i));return new ar(p);case"LineString":case"MultiLineString":return H=Rs(u,a.type==="LineString"?0:1,O),new lr(H,i);case"Polygon":case"MultiPolygon":return H=Rs(u,a.type==="Polygon"?1:2,O),new Po(H,i);case"GeometryCollection":for(Q=0,be=a.geometries.length;Q<be;Q++){var Re=ks({geometry:a.geometries[Q],type:"Feature",properties:t.properties},i);Re&&p.push(Re)}return new ar(p);case"FeatureCollection":for(Q=0,be=a.features.length;Q<be;Q++){var Xe=ks(a.features[Q],i);Xe&&p.push(Xe)}return new ar(p);default:throw new Error("Invalid GeoJSON object.")}}function kp(t,i,a,u){return t?t(i,a):new Os(a,u&&u.markersInheritOptions&&u)}function Nc(t){return new ee(t[1],t[0],t[2])}function Rs(t,i,a){for(var u=[],p=0,w=t.length,O;p<w;p++)O=i?Rs(t[p],i-1,a):(a||Nc)(t[p]),u.push(O);return u}function kc(t,i){return t=K(t),t.alt!==void 0?[y(t.lng,i),y(t.lat,i),y(t.alt,i)]:[y(t.lng,i),y(t.lat,i)]}function $s(t,i,a,u){for(var p=[],w=0,O=t.length;w<O;w++)p.push(i?$s(t[w],An(t[w])?0:i-1,a,u):kc(t[w],u));return!i&&a&&p.length>0&&p.push(p[0].slice()),p}function Io(t,i){return t.feature?s({},t.feature,{geometry:i}):Bs(i)}function Bs(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Rc={toGeoJSON:function(t){return Io(this,{type:"Point",coordinates:kc(this.getLatLng(),t)})}};Os.include(Rc),Oc.include(Rc),Ns.include(Rc),lr.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=$s(this._latlngs,i?1:0,!1,t);return Io(this,{type:(i?"Multi":"")+"LineString",coordinates:a})}}),Po.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=i&&!An(this._latlngs[0]),u=$s(this._latlngs,a?2:i?1:0,!0,t);return i||(u=[u]),Io(this,{type:(a?"Multi":"")+"Polygon",coordinates:u})}}),So.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(a){i.push(a.toGeoJSON(t).geometry.coordinates)}),Io(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(t);var a=i==="GeometryCollection",u=[];return this.eachLayer(function(p){if(p.toGeoJSON){var w=p.toGeoJSON(t);if(a)u.push(w.geometry);else{var O=Bs(w);O.type==="FeatureCollection"?u.push.apply(u,O.features):u.push(O)}}}),a?Io(this,{geometries:u,type:"GeometryCollection"}):{type:"FeatureCollection",features:u}}});function Rp(t,i){return new cr(t,i)}var Rw=Rp,zs=Hn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,a){this._url=t,this._bounds=oe(i),x(this,a)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(He(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ue(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&gn(this._image),this},bringToBack:function(){return this._map&&zn(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=oe(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",i=this._image=t?this._url:Ne("img");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onload=c(this.fire,this,"load"),i.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),a=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;un(this._image,a,i)},_reset:function(){var t=this._image,i=new ie(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),a=i.getSize();Pt(t,i.min),t.style.width=a.x+"px",t.style.height=a.y+"px"},_updateOpacity:function(){ke(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),$w=function(t,i,a){return new zs(t,i,a)},$p=zs.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",i=this._image=t?this._url:Ne("video");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onloadeddata=c(this.fire,this,"load"),t){for(var a=i.getElementsByTagName("source"),u=[],p=0;p<a.length;p++)u.push(a[p].src);this._url=a.length>0?u:[i.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var w=0;w<this._url.length;w++){var O=Ne("source");O.src=this._url[w],i.appendChild(O)}}});function Bw(t,i,a){return new $p(t,i,a)}var Bp=zs.extend({_initImage:function(){var t=this._image=this._url;He(t,"leaflet-image-layer"),this._zoomAnimated&&He(t,"leaflet-zoom-animated"),this.options.className&&He(t,this.options.className),t.onselectstart=v,t.onmousemove=v}});function zw(t,i,a){return new Bp(t,i,a)}var Un=Hn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof ee||P(t))?(this._latlng=K(t),x(this,i)):(x(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ke(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ke(this._container,1),this.bringToFront(),this.options.interactive&&(He(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ke(this._container,0),this._removeTimeout=setTimeout(c(Ue,void 0,this._container),200)):Ue(this._container),this.options.interactive&&(Ct(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=K(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&gn(this._container),this},bringToBack:function(){return this._map&&zn(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof ar){i=null;var a=this._source._layers;for(var u in a)if(a[u]._map){i=a[u];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else if(i.getBounds)t=i.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof i=="string")t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=G(this.options.offset),a=this._getAnchor();this._zoomAnimated?Pt(this._container,t.add(a)):i=i.add(t).add(a);var u=this._containerBottom=-i.y,p=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=u+"px",this._container.style.left=p+"px"}},_getAnchor:function(){return[0,0]}});it.include({_initOverlay:function(t,i,a,u){var p=i;return p instanceof t||(p=new t(u).setContent(i)),a&&p.setLatLng(a),p}}),Hn.include({_initOverlay:function(t,i,a,u){var p=a;return p instanceof t?(x(p,u),p._source=this):(p=i&&!u?i:new t(u,this),p.setContent(a)),p}});var Ds=Un.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Un.prototype.openOn.call(this,t)},onAdd:function(t){Un.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Cr||this._source.on("preclick",Fr))},onRemove:function(t){Un.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Cr||this._source.off("preclick",Fr))},getEvents:function(){var t=Un.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=Ne("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),a=this._wrapper=Ne("div",t+"-content-wrapper",i);if(this._contentNode=Ne("div",t+"-content",a),gi(i),Sc(this._contentNode),je(i,"contextmenu",Fr),this._tipContainer=Ne("div",t+"-tip-container",i),this._tip=Ne("div",t+"-tip",this._tipContainer),this.options.closeButton){var u=this._closeButton=Ne("a",t+"-close-button",i);u.setAttribute("role","button"),u.setAttribute("aria-label","Close popup"),u.href="#close",u.innerHTML='<span aria-hidden="true">&#215;</span>',je(u,"click",function(p){en(p),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var a=t.offsetWidth;a=Math.min(a,this.options.maxWidth),a=Math.max(a,this.options.minWidth),i.width=a+1+"px",i.whiteSpace="",i.height="";var u=t.offsetHeight,p=this.options.maxHeight,w="leaflet-popup-scrolled";p&&u>p?(i.height=p+"px",He(t,w)):Ct(t,w),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),a=this._getAnchor();Pt(this._container,i.add(a))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,i=parseInt(Me(this._container,"marginBottom"),10)||0,a=this._container.offsetHeight+i,u=this._containerWidth,p=new Z(this._containerLeft,-a-this._containerBottom);p._add(sr(this._container));var w=t.layerPointToContainerPoint(p),O=G(this.options.autoPanPadding),D=G(this.options.autoPanPaddingTopLeft||O),H=G(this.options.autoPanPaddingBottomRight||O),Q=t.getSize(),be=0,Re=0;w.x+u+H.x>Q.x&&(be=w.x+u-Q.x+H.x),w.x-be-D.x<0&&(be=w.x-D.x),w.y+a+H.y>Q.y&&(Re=w.y+a-Q.y+H.y),w.y-Re-D.y<0&&(Re=w.y-D.y),(be||Re)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([be,Re]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Dw=function(t,i){return new Ds(t,i)};it.mergeOptions({closePopupOnClick:!0}),it.include({openPopup:function(t,i,a){return this._initOverlay(Ds,t,i,a).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Hn.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Ds,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof ar||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Hr(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof Cr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=i,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Fs=Un.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Un.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Un.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Un.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ne("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,a,u=this._map,p=this._container,w=u.latLngToContainerPoint(u.getCenter()),O=u.layerPointToContainerPoint(t),D=this.options.direction,H=p.offsetWidth,Q=p.offsetHeight,be=G(this.options.offset),Re=this._getAnchor();D==="top"?(i=H/2,a=Q):D==="bottom"?(i=H/2,a=0):D==="center"?(i=H/2,a=Q/2):D==="right"?(i=0,a=Q/2):D==="left"?(i=H,a=Q/2):O.x<w.x?(D="right",i=0,a=Q/2):(D="left",i=H+(be.x+Re.x)*2,a=Q/2),t=t.subtract(G(i,a,!0)).add(be).add(Re),Ct(p,"leaflet-tooltip-right"),Ct(p,"leaflet-tooltip-left"),Ct(p,"leaflet-tooltip-top"),Ct(p,"leaflet-tooltip-bottom"),He(p,"leaflet-tooltip-"+D),Pt(p,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ke(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return G(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Fw=function(t,i){return new Fs(t,i)};it.include({openTooltip:function(t,i,a){return this._initOverlay(Fs,t,i,a).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Hn.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Fs,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var i=t?"off":"on",a={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?a.add=this._openTooltip:(a.mouseover=this._openTooltip,a.mouseout=this.closeTooltip,a.click=this._openTooltip,this._map?this._addFocusListeners():a.add=this._addFocusListeners),this._tooltip.options.sticky&&(a.mousemove=this._moveTooltip),this[i](a),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof ar||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&(je(i,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),je(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&i.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var i=this;this._map.once("moveend",function(){i._openOnceFlag=!1,i._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var i=t.latlng,a,u;this._tooltip.options.sticky&&t.originalEvent&&(a=this._map.mouseEventToContainerPoint(t.originalEvent),u=this._map.containerPointToLayerPoint(a),i=this._map.layerPointToLatLng(u)),this._tooltip.setLatLng(i)}});var zp=Eo.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),a=this.options;if(a.html instanceof Element?(Tn(i),i.appendChild(a.html)):i.innerHTML=a.html!==!1?a.html:"",a.bgPos){var u=G(a.bgPos);i.style.backgroundPosition=-u.x+"px "+-u.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});function Hw(t){return new zp(t)}Eo.Default=bi;var _i=Hn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ve.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){x(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Ue(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(gn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(zn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=g(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof Z?t:new Z(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i=this.getPane().children,a=-t(-1/0,1/0),u=0,p=i.length,w;u<p;u++)w=i[u].style.zIndex,i[u]!==this._container&&w&&(a=t(a,+w));isFinite(a)&&(this.options.zIndex=a+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ve.ielt9){ke(this._container,this.options.opacity);var t=+new Date,i=!1,a=!1;for(var u in this._tiles){var p=this._tiles[u];if(!(!p.current||!p.loaded)){var w=Math.min(1,(t-p.loaded)/200);ke(p.el,w),w<1?i=!0:(p.active?a=!0:this._onOpaqueTile(p),p.active=!0)}}a&&!this._noPrune&&this._pruneTiles(),i&&(j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=Ne("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t!==void 0){for(var a in this._levels)a=Number(a),this._levels[a].el.children.length||a===t?(this._levels[a].el.style.zIndex=i-Math.abs(t-a),this._onUpdateLevel(a)):(Ue(this._levels[a].el),this._removeTilesAtZoom(a),this._onRemoveLevel(a),delete this._levels[a]);var u=this._levels[t],p=this._map;return u||(u=this._levels[t]={},u.el=Ne("div","leaflet-tile-container leaflet-zoom-animated",this._container),u.el.style.zIndex=i,u.origin=p.project(p.unproject(p.getPixelOrigin()),t).round(),u.zoom=t,this._setZoomTransform(u,p.getCenter(),p.getZoom()),v(u.el.offsetWidth),this._onCreateLevel(u)),this._level=u,u}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var t,i,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var u=i.coords;this._retainParent(u.x,u.y,u.z,u.z-5)||this._retainChildren(u.x,u.y,u.z,u.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)Ue(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,a,u){var p=Math.floor(t/2),w=Math.floor(i/2),O=a-1,D=new Z(+p,+w);D.z=+O;var H=this._tileCoordsToKey(D),Q=this._tiles[H];return Q&&Q.active?(Q.retain=!0,!0):(Q&&Q.loaded&&(Q.retain=!0),O>u?this._retainParent(p,w,O,u):!1)},_retainChildren:function(t,i,a,u){for(var p=2*t;p<2*t+2;p++)for(var w=2*i;w<2*i+2;w++){var O=new Z(p,w);O.z=a+1;var D=this._tileCoordsToKey(O),H=this._tiles[D];if(H&&H.active){H.retain=!0;continue}else H&&H.loaded&&(H.retain=!0);a+1<u&&this._retainChildren(p,w,a+1,u)}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return i.minNativeZoom!==void 0&&t<i.minNativeZoom?i.minNativeZoom:i.maxNativeZoom!==void 0&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,a,u){var p=Math.round(i);this.options.maxZoom!==void 0&&p>this.options.maxZoom||this.options.minZoom!==void 0&&p<this.options.minZoom?p=void 0:p=this._clampZoom(p);var w=this.options.updateWhenZooming&&p!==this._tileZoom;(!u||w)&&(this._tileZoom=p,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),p!==void 0&&this._update(t),a||this._pruneTiles(),this._noPrune=!!a),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var a in this._levels)this._setZoomTransform(this._levels[a],t,i)},_setZoomTransform:function(t,i,a){var u=this._map.getZoomScale(a,t.zoom),p=t.origin.multiplyBy(u).subtract(this._map._getNewPixelOrigin(i,a)).round();ve.any3d?un(t.el,p,u):Pt(t.el,p)},_resetGrid:function(){var t=this._map,i=t.options.crs,a=this._tileSize=this.getTileSize(),u=this._tileZoom,p=this._map.getPixelWorldBounds(this._tileZoom);p&&(this._globalTileRange=this._pxBoundsToTileRange(p)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],u).x/a.x),Math.ceil(t.project([0,i.wrapLng[1]],u).x/a.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],u).y/a.x),Math.ceil(t.project([i.wrapLat[1],0],u).y/a.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var i=this._map,a=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),u=i.getZoomScale(a,this._tileZoom),p=i.project(t,this._tileZoom).floor(),w=i.getSize().divideBy(u*2);return new ie(p.subtract(w),p.add(w))},_update:function(t){var i=this._map;if(i){var a=this._clampZoom(i.getZoom());if(t===void 0&&(t=i.getCenter()),this._tileZoom!==void 0){var u=this._getTiledPixelBounds(t),p=this._pxBoundsToTileRange(u),w=p.getCenter(),O=[],D=this.options.keepBuffer,H=new ie(p.getBottomLeft().subtract([D,-D]),p.getTopRight().add([D,-D]));if(!(isFinite(p.min.x)&&isFinite(p.min.y)&&isFinite(p.max.x)&&isFinite(p.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Q in this._tiles){var be=this._tiles[Q].coords;(be.z!==this._tileZoom||!H.contains(new Z(be.x,be.y)))&&(this._tiles[Q].current=!1)}if(Math.abs(a-this._tileZoom)>1){this._setView(t,a);return}for(var Re=p.min.y;Re<=p.max.y;Re++)for(var Xe=p.min.x;Xe<=p.max.x;Xe++){var dn=new Z(Xe,Re);if(dn.z=this._tileZoom,!!this._isValidTile(dn)){var Xt=this._tiles[this._tileCoordsToKey(dn)];Xt?Xt.current=!0:O.push(dn)}}if(O.sort(function(vn,Ao){return vn.distanceTo(w)-Ao.distanceTo(w)}),O.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Mn=document.createDocumentFragment();for(Xe=0;Xe<O.length;Xe++)this._addTile(O[Xe],Mn);this._level.el.appendChild(Mn)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var a=this._globalTileRange;if(!i.wrapLng&&(t.x<a.min.x||t.x>a.max.x)||!i.wrapLat&&(t.y<a.min.y||t.y>a.max.y))return!1}if(!this.options.bounds)return!0;var u=this._tileCoordsToBounds(t);return oe(this.options.bounds).overlaps(u)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,a=this.getTileSize(),u=t.scaleBy(a),p=u.add(a),w=i.unproject(u,t.z),O=i.unproject(p,t.z);return[w,O]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),a=new de(i[0],i[1]);return this.options.noWrap||(a=this._map.wrapLatLngBounds(a)),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),a=new Z(+i[0],+i[1]);return a.z=+i[2],a},_removeTile:function(t){var i=this._tiles[t];i&&(Ue(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){He(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=v,t.onmousemove=v,ve.ielt9&&this.options.opacity<1&&ke(t,this.options.opacity)},_addTile:function(t,i){var a=this._getTilePos(t),u=this._tileCoordsToKey(t),p=this.createTile(this._wrapCoords(t),c(this._tileReady,this,t));this._initTile(p),this.createTile.length<2&&$(c(this._tileReady,this,t,null,p)),Pt(p,a),this._tiles[u]={el:p,coords:t,current:!0},i.appendChild(p),this.fire("tileloadstart",{tile:p,coords:t})},_tileReady:function(t,i,a){i&&this.fire("tileerror",{error:i,tile:a,coords:t});var u=this._tileCoordsToKey(t);a=this._tiles[u],a&&(a.loaded=+new Date,this._map._fadeAnimated?(ke(a.el,0),j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),i||(He(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ve.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new Z(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new ie(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Vw(t){return new _i(t)}var To=_i.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,i=x(this,i),i.detectRetina&&ve.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&i===void 0&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var a=document.createElement("img");return je(a,"load",c(this._tileOnLoad,this,i,a)),je(a,"error",c(this._tileOnError,this,i,a)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(a.referrerPolicy=this.options.referrerPolicy),a.alt="",a.src=this.getTileUrl(t),a},getTileUrl:function(t){var i={r:ve.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var a=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=a),i["-y"]=a}return S(this._url,s(i,this.options))},_tileOnLoad:function(t,i){ve.ielt9?setTimeout(c(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,a){var u=this.options.errorTileUrl;u&&i.getAttribute("src")!==u&&(i.src=u),t(a,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,a=this.options.zoomReverse,u=this.options.zoomOffset;return a&&(t=i-t),t+u},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=v,i.onerror=v,!i.complete)){i.src=M;var a=this._tiles[t].coords;Ue(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:a})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",M),_i.prototype._removeTile.call(this,t)},_tileReady:function(t,i,a){if(!(!this._map||a&&a.getAttribute("src")===M))return _i.prototype._tileReady.call(this,t,i,a)}});function Dp(t,i){return new To(t,i)}var Fp=To.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var a=s({},this.defaultWmsParams);for(var u in i)u in this.options||(a[u]=i[u]);i=x(this,i);var p=i.detectRetina&&ve.retina?2:1,w=this.getTileSize();a.width=w.x*p,a.height=w.y*p,this.wmsParams=a},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,To.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),a=this._crs,u=ne(a.project(i[0]),a.project(i[1])),p=u.min,w=u.max,O=(this._wmsVersion>=1.3&&this._crs===Op?[p.y,p.x,w.y,w.x]:[p.x,p.y,w.x,w.y]).join(","),D=To.prototype.getTileUrl.call(this,t);return D+b(this.wmsParams,D,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+O},setParams:function(t,i){return s(this.wmsParams,t),i||this.redraw(),this}});function Ww(t,i){return new Fp(t,i)}To.WMS=Fp,Dp.wms=Ww;var ur=Hn.extend({options:{padding:.1},initialize:function(t){x(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),He(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var a=this._map.getZoomScale(i,this._zoom),u=this._map.getSize().multiplyBy(.5+this.options.padding),p=this._map.project(this._center,i),w=u.multiplyBy(-a).add(p).subtract(this._map._getNewPixelOrigin(t,i));ve.any3d?un(this._container,w,a):Pt(this._container,w)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),a=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new ie(a,a.add(i.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hp=ur.extend({options:{tolerance:0},getEvents:function(){var t=ur.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ur.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this),je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,Ue(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ur.prototype._update.call(this);var t=this._bounds,i=this._container,a=t.getSize(),u=ve.retina?2:1;Pt(i,t.min),i.width=u*a.x,i.height=u*a.y,i.style.width=a.x+"px",i.style.height=a.y+"px",ve.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ur.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,a=i.next,u=i.prev;a?a.prev=u:this._drawLast=u,u?u.next=a:this._drawFirst=a,delete t._order,delete this._layers[h(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var i=t.options.dashArray.split(/[, ]+/),a=[],u,p;for(p=0;p<i.length;p++){if(u=Number(i[p]),isNaN(u))return;a.push(u)}t.options._dashArray=a}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||$(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ie,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var a=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,a.x,a.y),this._ctx.clip()}this._drawing=!0;for(var u=this._drawFirst;u;u=u.next)t=u.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var a,u,p,w,O=t._parts,D=O.length,H=this._ctx;if(D){for(H.beginPath(),a=0;a<D;a++){for(u=0,p=O[a].length;u<p;u++)w=O[a][u],H[u?"lineTo":"moveTo"](w.x,w.y);i&&H.closePath()}this._fillStroke(H,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var i=t._point,a=this._ctx,u=Math.max(Math.round(t._radius),1),p=(Math.max(Math.round(t._radiusY),1)||u)/u;p!==1&&(a.save(),a.scale(1,p)),a.beginPath(),a.arc(i.x,i.y/p,u,0,Math.PI*2,!1),p!==1&&a.restore(),this._fillStroke(a,t)}},_fillStroke:function(t,i){var a=i.options;a.fill&&(t.globalAlpha=a.fillOpacity,t.fillStyle=a.fillColor||a.color,t.fill(a.fillRule||"evenodd")),a.stroke&&a.weight!==0&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=a.opacity,t.lineWidth=a.weight,t.strokeStyle=a.color,t.lineCap=a.lineCap,t.lineJoin=a.lineJoin,t.stroke())},_onClick:function(t){for(var i=this._map.mouseEventToLayerPoint(t),a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(a))&&(u=a);this._fireEvent(u?[u]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(Ct(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(u=a);u!==this._hoveredLayer&&(this._handleMouseOut(t),u&&(He(this._container,"leaflet-interactive"),this._fireEvent([u],t,"mouseover"),this._hoveredLayer=u)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,a){this._map._fireDOMEvent(i,a||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(a)a.prev=u;else return;u?u.next=a:a&&(this._drawFirst=a),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t)}},_bringToBack:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(u)u.next=a;else return;a?a.prev=u:u&&(this._drawLast=u),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)}}});function Vp(t){return ve.canvas?new Hp(t):null}var xi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),jw={_initContainer:function(){this._container=Ne("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ur.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=xi("shape");He(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=xi("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;Ue(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,a=t._fill,u=t.options,p=t._container;p.stroked=!!u.stroke,p.filled=!!u.fill,u.stroke?(i||(i=t._stroke=xi("stroke")),p.appendChild(i),i.weight=u.weight+"px",i.color=u.color,i.opacity=u.opacity,u.dashArray?i.dashStyle=P(u.dashArray)?u.dashArray.join(" "):u.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=u.lineCap.replace("butt","flat"),i.joinstyle=u.lineJoin):i&&(p.removeChild(i),t._stroke=null),u.fill?(a||(a=t._fill=xi("fill")),p.appendChild(a),a.color=u.fillColor||u.color,a.opacity=u.fillOpacity):a&&(p.removeChild(a),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),a=Math.round(t._radius),u=Math.round(t._radiusY||a);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+a+","+u+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){gn(t._container)},_bringToBack:function(t){zn(t._container)}},Hs=ve.vml?xi:we,wi=ur.extend({_initContainer:function(){this._container=Hs("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Hs("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ue(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ur.prototype._update.call(this);var t=this._bounds,i=t.getSize(),a=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,a.setAttribute("width",i.x),a.setAttribute("height",i.y)),Pt(a,t.min),a.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Hs("path");t.options.className&&He(i,t.options.className),t.options.interactive&&He(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Ue(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,a=t.options;i&&(a.stroke?(i.setAttribute("stroke",a.color),i.setAttribute("stroke-opacity",a.opacity),i.setAttribute("stroke-width",a.weight),i.setAttribute("stroke-linecap",a.lineCap),i.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?i.setAttribute("stroke-dasharray",a.dashArray):i.removeAttribute("stroke-dasharray"),a.dashOffset?i.setAttribute("stroke-dashoffset",a.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),a.fill?(i.setAttribute("fill",a.fillColor||a.color),i.setAttribute("fill-opacity",a.fillOpacity),i.setAttribute("fill-rule",a.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,Pe(t._parts,i))},_updateCircle:function(t){var i=t._point,a=Math.max(Math.round(t._radius),1),u=Math.max(Math.round(t._radiusY),1)||a,p="a"+a+","+u+" 0 1,0 ",w=t._empty()?"M0 0":"M"+(i.x-a)+","+i.y+p+a*2+",0 "+p+-a*2+",0 ";this._setPath(t,w)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){gn(t._path)},_bringToBack:function(t){zn(t._path)}});ve.vml&&wi.include(jw);function Wp(t){return ve.svg||ve.vml?new wi(t):null}it.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var i=this._paneRenderers[t];return i===void 0&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&Vp(t)||Wp(t)}});var jp=Po.extend({initialize:function(t,i){Po.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=oe(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Zw(t,i){return new jp(t,i)}wi.create=Hs,wi.pointsToPath=Pe,cr.geometryToLayer=ks,cr.coordsToLatLng=Nc,cr.coordsToLatLngs=Rs,cr.latLngToCoords=kc,cr.latLngsToCoords=$s,cr.getFeature=Io,cr.asFeature=Bs,it.mergeOptions({boxZoom:!0});var Zp=Zn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ue(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),xr(),gc(),this._startPoint=this._map.mouseEventToContainerPoint(t),je(document,{contextmenu:Hr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Ne("div","leaflet-zoom-box",this._container),He(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new ie(this._point,this._startPoint),a=i.getSize();Pt(this._box,i.min),this._box.style.width=a.x+"px",this._box.style.height=a.y+"px"},_finish:function(){this._moved&&(Ue(this._box),Ct(this._container,"leaflet-crosshair")),pi(),vc(),bt(document,{contextmenu:Hr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var i=new de(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});it.addInitHook("addHandler","boxZoom",Zp),it.mergeOptions({doubleClickZoom:!0});var Up=Zn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,a=i.getZoom(),u=i.options.zoomDelta,p=t.originalEvent.shiftKey?a-u:a+u;i.options.doubleClickZoom==="center"?i.setZoom(p):i.setZoomAround(t.containerPoint,p)}});it.addInitHook("addHandler","doubleClickZoom",Up),it.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var qp=Zn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new wr(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}He(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ct(this._map._container,"leaflet-grab"),Ct(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=oe(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,a=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(a),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),a=this._initialWorldOffset,u=this._draggable._newPos.x,p=(u-i+a)%t+i-a,w=(u+i+a)%t-i-a,O=Math.abs(p+a)<Math.abs(w+a)?p:w;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=O},_onDragEnd:function(t){var i=this._map,a=i.options,u=!a.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),u)i.fire("moveend");else{this._prunePositions(+new Date);var p=this._lastPos.subtract(this._positions[0]),w=(this._lastTime-this._times[0])/1e3,O=a.easeLinearity,D=p.multiplyBy(O/w),H=D.distanceTo([0,0]),Q=Math.min(a.inertiaMaxSpeed,H),be=D.multiplyBy(Q/H),Re=Q/(a.inertiaDeceleration*O),Xe=be.multiplyBy(-Re/2).round();!Xe.x&&!Xe.y?i.fire("moveend"):(Xe=i._limitOffset(Xe,i.options.maxBounds),$(function(){i.panBy(Xe,{duration:Re,easeLinearity:O,noMoveStart:!0,animate:!0})}))}}});it.addInitHook("addHandler","dragging",qp),it.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Gp=Zn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),je(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),bt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,a=t.scrollTop||i.scrollTop,u=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(u,a)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},a=this.keyCodes,u,p;for(u=0,p=a.left.length;u<p;u++)i[a.left[u]]=[-1*t,0];for(u=0,p=a.right.length;u<p;u++)i[a.right[u]]=[t,0];for(u=0,p=a.down.length;u<p;u++)i[a.down[u]]=[0,t];for(u=0,p=a.up.length;u<p;u++)i[a.up[u]]=[0,-1*t]},_setZoomDelta:function(t){var i=this._zoomKeys={},a=this.keyCodes,u,p;for(u=0,p=a.zoomIn.length;u<p;u++)i[a.zoomIn[u]]=t;for(u=0,p=a.zoomOut.length;u<p;u++)i[a.zoomOut[u]]=-t},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i=t.keyCode,a=this._map,u;if(i in this._panKeys){if(!a._panAnim||!a._panAnim._inProgress)if(u=this._panKeys[i],t.shiftKey&&(u=G(u).multiplyBy(3)),a.options.maxBounds&&(u=a._limitOffset(G(u),a.options.maxBounds)),a.options.worldCopyJump){var p=a.wrapLatLng(a.unproject(a.project(a.getCenter()).add(u)));a.panTo(p)}else a.panBy(u)}else if(i in this._zoomKeys)a.setZoom(a.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else if(i===27&&a._popup&&a._popup.options.closeOnEscapeKey)a.closePopup();else return;Hr(t)}}});it.addInitHook("addHandler","keyboard",Gp),it.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Kp=Zn.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=bp(t),a=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var u=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),u),Hr(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),a=this._map.options.zoomSnap||0;t._stop();var u=this._delta/(this._map.options.wheelPxPerZoomLevel*4),p=4*Math.log(2/(1+Math.exp(-Math.abs(u))))/Math.LN2,w=a?Math.ceil(p/a)*a:p,O=t._limitZoom(i+(this._delta>0?w:-w))-i;this._delta=0,this._startTime=null,O&&(t.options.scrollWheelZoom==="center"?t.setZoom(i+O):t.setZoomAround(this._lastMousePos,i+O))}});it.addInitHook("addHandler","scrollWheelZoom",Kp);var Uw=600;it.mergeOptions({tapHold:ve.touchNative&&ve.safari&&ve.mobile,tapTolerance:15});var Qp=Zn.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var i=t.touches[0];this._startPos=this._newPos=new Z(i.clientX,i.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",en),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),Uw),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){bt(document,"touchend",en),bt(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new Z(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var a=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});a._simulated=!0,i.target.dispatchEvent(a)}});it.addInitHook("addHandler","tapHold",Qp),it.mergeOptions({touchZoom:ve.touch,bounceAtZoomLimits:!0});var Yp=Zn.extend({addHooks:function(){He(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ct(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming)){var a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(a.add(u)._divideBy(2))),this._startDist=a.distanceTo(u),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),en(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var i=this._map,a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]),p=a.distanceTo(u)/this._startDist;if(this._zoom=i.getScaleZoom(p,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&p<1||this._zoom>i.getMaxZoom()&&p>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,p===1)return}else{var w=a._add(u)._divideBy(2)._subtract(this._centerPoint);if(p===1&&w.x===0&&w.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(w),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var O=c(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(O,this,!0),en(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});it.addInitHook("addHandler","touchZoom",Yp),it.BoxZoom=Zp,it.DoubleClickZoom=Up,it.Drag=qp,it.Keyboard=Gp,it.ScrollWheelZoom=Kp,it.TapHold=Qp,it.TouchZoom=Yp,r.Bounds=ie,r.Browser=ve,r.CRS=Y,r.Canvas=Hp,r.Circle=Oc,r.CircleMarker=Ns,r.Class=W,r.Control=Fn,r.DivIcon=zp,r.DivOverlay=Un,r.DomEvent=uw,r.DomUtil=lw,r.Draggable=wr,r.Evented=J,r.FeatureGroup=ar,r.GeoJSON=cr,r.GridLayer=_i,r.Handler=Zn,r.Icon=Eo,r.ImageOverlay=zs,r.LatLng=ee,r.LatLngBounds=de,r.Layer=Hn,r.LayerGroup=So,r.LineUtil=Cw,r.Map=it,r.Marker=Os,r.Mixin=vw,r.Path=Cr,r.Point=Z,r.PolyUtil=yw,r.Polygon=Po,r.Polyline=lr,r.Popup=Ds,r.PosAnimation=_p,r.Projection=Sw,r.Rectangle=jp,r.Renderer=ur,r.SVG=wi,r.SVGOverlay=Bp,r.TileLayer=To,r.Tooltip=Fs,r.Transformation=Se,r.Util=V,r.VideoOverlay=$p,r.bind=c,r.bounds=ne,r.canvas=Vp,r.circle=Ow,r.circleMarker=Lw,r.control=vi,r.divIcon=Hw,r.extend=s,r.featureGroup=Tw,r.geoJSON=Rp,r.geoJson=Rw,r.gridLayer=Vw,r.icon=Aw,r.imageOverlay=$w,r.latLng=K,r.latLngBounds=oe,r.layerGroup=Iw,r.map=dw,r.marker=Mw,r.point=G,r.polygon=kw,r.polyline=Nw,r.popup=Dw,r.rectangle=Zw,r.setOptions=x,r.stamp=h,r.svg=Wp,r.svgOverlay=zw,r.tileLayer=Dp,r.tooltip=Fw,r.transformation=Te,r.version=o,r.videoOverlay=Bw;var qw=window.L;r.noConflict=function(){return window.L=qw,this},window.L=r})})(js,js.exports);var Fc=js.exports;const tn=rm(Fc),oC="",iC="",sC="";var It=Fc,Hc,Vc;function Wc(e){return"oninput"in e?"input":"change"}function Ci(){Hc=this._map.dragging.enabled(),Vc=this._map.tap&&this._map.tap.enabled(),this._map.dragging.disable(),this._map.tap&&this._map.tap.disable()}function Si(e){this._refocusOnMap(e),Hc&&this._map.dragging.enable(),Vc&&this._map.tap.enable()}function jc(e){return e==="undefined"?[]:Array.isArray(e)?e:[e]}function sm(){}It.Control.SideBySide=It.Control.extend({options:{thumbSize:42,padding:0},initialize:function(e,n,r){this.setLeftLayers(e),this.setRightLayers(n),It.setOptions(this,r)},getPosition:function(){var e=this._range.value,n=(.5-e)*(2*this.options.padding+this.options.thumbSize);return this._map.getSize().x*e+n},setPosition:sm,includes:It.Evented.prototype||It.Mixin.Events,addTo:function(e){this.remove(),this._map=e;var n=this._container=It.DomUtil.create("div","leaflet-sbs",e._controlContainer);this._divider=It.DomUtil.create("div","leaflet-sbs-divider",n);var r=this._range=It.DomUtil.create("input","leaflet-sbs-range",n);return r.type="range",r.min=0,r.max=1,r.step="any",r.value=.5,r.style.paddingLeft=r.style.paddingRight=this.options.padding+"px",this._addEvents(),this._updateLayers(),this},remove:function(){return this._map?(this._leftLayer&&(this._leftLayer.getContainer().style.clip=""),this._rightLayer&&(this._rightLayer.getContainer().style.clip=""),this._removeEvents(),It.DomUtil.remove(this._container),this._map=null,this):this},setLeftLayers:function(e){return this._leftLayers=jc(e),this._updateLayers(),this},setRightLayers:function(e){return this._rightLayers=jc(e),this._updateLayers(),this},_updateClip:function(){var e=this._map,n=e.containerPointToLayerPoint([0,0]),r=e.containerPointToLayerPoint(e.getSize()),o=n.x+this.getPosition(),s=this.getPosition();this._divider.style.left=s+"px",this.fire("dividermove",{x:s});var l="rect("+[n.y,o,r.y,n.x].join("px,")+"px)",c="rect("+[n.y,r.x,r.y,o].join("px,")+"px)";this._leftLayer&&(this._leftLayer.getContainer().style.clip=l),this._rightLayer&&(this._rightLayer.getContainer().style.clip=c)},_updateLayers:function(){if(!this._map)return this;var e=this._leftLayer,n=this._rightLayer;this._leftLayer=this._rightLayer=null,this._leftLayers.forEach(function(r){this._map.hasLayer(r)&&(this._leftLayer=r)},this),this._rightLayers.forEach(function(r){this._map.hasLayer(r)&&(this._rightLayer=r)},this),e!==this._leftLayer&&(e&&this.fire("leftlayerremove",{layer:e}),this._leftLayer&&this.fire("leftlayeradd",{layer:this._leftLayer})),n!==this._rightLayer&&(n&&this.fire("rightlayerremove",{layer:n}),this._rightLayer&&this.fire("rightlayeradd",{layer:this._rightLayer})),this._updateClip()},_addEvents:function(){var e=this._range,n=this._map;!n||!e||(n.on("move",this._updateClip,this),n.on("layeradd layerremove",this._updateLayers,this),It.DomEvent.on(e,Wc(e),this._updateClip,this),It.DomEvent.on(e,"touchstart",Ci,this),It.DomEvent.on(e,"touchend",Si,this),It.DomEvent.on(e,"mousedown",Ci,this),It.DomEvent.on(e,"mouseup",Si,this))},_removeEvents:function(){var e=this._range,n=this._map;e&&(It.DomEvent.off(e,Wc(e),this._updateClip,this),It.DomEvent.off(e,"touchstart",Ci,this),It.DomEvent.off(e,"touchend",Si,this),It.DomEvent.off(e,"mousedown",Ci,this),It.DomEvent.off(e,"mouseup",Si,this)),n&&(n.off("layeradd layerremove",this._updateLayers,this),n.off("move",this._updateClip,this))}}),It.control.sideBySide=function(e,n,r){return new It.Control.SideBySide(e,n,r)},It.Control.SideBySide;const Zc=({zoomLevel:e})=>Zt.jsx("div",{style:{width:"30px",height:"30px",backgroundColor:"white",borderRadius:"2px",textAlign:"center",fontSize:"20px"},children:e});function ft(e){const n=f.useRef(e);return n.current=e,f.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},[])}function yn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Uc=process.env.NODE_ENV!=="test"&&yn()?f.useLayoutEffect:f.useEffect,sn=(e,n)=>{const r=f.useRef(!0);Uc(()=>e(r.current),n),Uc(()=>(r.current=!1,()=>{r.current=!0}),[])},Zs=e=>{const n=f.useRef(!1),[r,o]=f.useState(e);f.useEffect(()=>(n.current=!1,()=>{n.current=!0}),[]);function s(l,c){c&&n.current||o(l)}return[r,s]};function qn(e,n){const[r,o]=A.useState(e),s=n!==void 0?n:r;return sn(l=>{l||o(n)},[n]),[s,o]}var Us={exports:{}},at={};/**
36
+ */(function(e,n){(function(r,o){o(n)})(nm,function(r){var o="1.9.4";function s(t){var i,a,u,p;for(a=1,u=arguments.length;a<u;a++){p=arguments[a];for(i in p)t[i]=p[i]}return t}var l=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function c(t,i){var a=Array.prototype.slice;if(t.bind)return t.bind.apply(t,a.call(arguments,1));var u=a.call(arguments,2);return function(){return t.apply(i,u.length?u.concat(a.call(arguments)):arguments)}}var d=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++d),t._leaflet_id}function g(t,i,a){var u,p,w,O;return O=function(){u=!1,p&&(w.apply(a,p),p=!1)},w=function(){u?p=arguments:(t.apply(a,arguments),setTimeout(O,i),u=!0)},w}function m(t,i,a){var u=i[1],p=i[0],w=u-p;return t===u&&a?t:((t-p)%w+w)%w+p}function v(){return!1}function y(t,i){if(i===!1)return t;var a=Math.pow(10,i===void 0?6:i);return Math.round(t*a)/a}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function _(t){return C(t).split(/\s+/)}function x(t,i){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?l(t.options):{});for(var a in i)t.options[a]=i[a];return t.options}function b(t,i,a){var u=[];for(var p in t)u.push(encodeURIComponent(a?p.toUpperCase():p)+"="+encodeURIComponent(t[p]));return(!i||i.indexOf("?")===-1?"?":"&")+u.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function S(t,i){return t.replace(E,function(a,u){var p=i[u];if(p===void 0)throw new Error("No value provided for variable "+a);return typeof p=="function"&&(p=p(i)),p})}var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function I(t,i){for(var a=0;a<t.length;a++)if(t[a]===i)return a;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var N=0;function R(t){var i=+new Date,a=Math.max(0,16-(i-N));return N=i+a,window.setTimeout(t,a)}var B=window.requestAnimationFrame||k("RequestAnimationFrame")||R,z=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function $(t,i,a){if(a&&B===R)t.call(i);else return B.call(window,c(t,i))}function j(t){t&&z.call(window,t)}var V={__proto__:null,extend:s,create:l,bind:c,get lastId(){return d},stamp:h,throttle:g,wrapNum:m,falseFn:v,formatNum:y,trim:C,splitWords:_,setOptions:x,getParamString:b,template:S,isArray:P,indexOf:I,emptyImageUrl:M,requestFn:B,cancelFn:z,requestAnimFrame:$,cancelAnimFrame:j};function W(){}W.extend=function(t){var i=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=i.__super__=this.prototype,u=l(a);u.constructor=i,i.prototype=u;for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&p!=="prototype"&&p!=="__super__"&&(i[p]=this[p]);return t.statics&&s(i,t.statics),t.includes&&(F(t.includes),s.apply(null,[u].concat(t.includes))),s(u,t),delete u.statics,delete u.includes,u.options&&(u.options=a.options?l(a.options):{},s(u.options,t.options)),u._initHooks=[],u.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var w=0,O=u._initHooks.length;w<O;w++)u._initHooks[w].call(this)}},i},W.include=function(t){var i=this.prototype.options;return s(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},W.mergeOptions=function(t){return s(this.prototype.options,t),this},W.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),a=typeof t=="function"?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(a),this};function F(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var X={on:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a)}return this},off:function(t,i,a){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var u in t)this._off(u,t[u],i);else{t=_(t);for(var p=arguments.length===1,w=0,O=t.length;w<O;w++)p?this._off(t[w]):this._off(t[w],i,a)}return this},_on:function(t,i,a,u){if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,a)===!1){a===this&&(a=void 0);var p={fn:i,ctx:a};u&&(p.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(p)}},_off:function(t,i,a){var u,p,w;if(this._events&&(u=this._events[t],!!u)){if(arguments.length===1){if(this._firingCount)for(p=0,w=u.length;p<w;p++)u[p].fn=v;delete this._events[t];return}if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}var O=this._listens(t,i,a);if(O!==!1){var D=u[O];this._firingCount&&(D.fn=v,this._events[t]=u=u.slice()),u.splice(O,1)}}},fire:function(t,i,a){if(!this.listens(t,a))return this;var u=s({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var p=this._events[t];if(p){this._firingCount=this._firingCount+1||1;for(var w=0,O=p.length;w<O;w++){var D=p[w],H=D.fn;D.once&&this.off(t,H,D.ctx),H.call(D.ctx||this,u)}this._firingCount--}}return a&&this._propagateEvent(u),this},listens:function(t,i,a,u){typeof t!="string"&&console.warn('"string" type argument expected');var p=i;typeof i!="function"&&(u=!!i,p=void 0,a=void 0);var w=this._events&&this._events[t];if(w&&w.length&&this._listens(t,p,a)!==!1)return!0;if(u){for(var O in this._eventParents)if(this._eventParents[O].listens(t,i,a,u))return!0}return!1},_listens:function(t,i,a){if(!this._events)return!1;var u=this._events[t]||[];if(!i)return!!u.length;a===this&&(a=void 0);for(var p=0,w=u.length;p<w;p++)if(u[p].fn===i&&u[p].ctx===a)return p;return!1},once:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i,!0);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,s({layer:t.target,propagatedFrom:t.target},t),!0)}};X.addEventListener=X.on,X.removeEventListener=X.clearAllEventListeners=X.off,X.addOneTimeEventListener=X.once,X.fireEvent=X.fire,X.hasEventListeners=X.listens;var J=W.extend(X);function Z(t,i,a){this.x=a?Math.round(t):t,this.y=a?Math.round(i):i}var le=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(t){return this.clone()._add(G(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(G(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new Z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new Z(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=le(this.x),this.y=le(this.y),this},distanceTo:function(t){t=G(t);var i=t.x-this.x,a=t.y-this.y;return Math.sqrt(i*i+a*a)},equals:function(t){return t=G(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=G(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function G(t,i,a){return t instanceof Z?t:P(t)?new Z(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new Z(t.x,t.y):new Z(t,i,a)}function ie(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}ie.prototype={extend:function(t){var i,a;if(!t)return this;if(t instanceof Z||typeof t[0]=="number"||"x"in t)i=a=G(t);else if(t=ne(t),i=t.min,a=t.max,!i||!a)return this;return!this.min&&!this.max?(this.min=i.clone(),this.max=a.clone()):(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(a.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(a.y,this.max.y)),this},getCenter:function(t){return G((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return G(this.min.x,this.max.y)},getTopRight:function(){return G(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,a;return typeof t[0]=="number"||t instanceof Z?t=G(t):t=ne(t),t instanceof ie?(i=t.min,a=t.max):i=a=t,i.x>=this.min.x&&a.x<=this.max.x&&i.y>=this.min.y&&a.y<=this.max.y},intersects:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>=i.x&&u.x<=a.x,O=p.y>=i.y&&u.y<=a.y;return w&&O},overlaps:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>i.x&&u.x<a.x,O=p.y>i.y&&u.y<a.y;return w&&O},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,a=this.max,u=Math.abs(i.x-a.x)*t,p=Math.abs(i.y-a.y)*t;return ne(G(i.x-u,i.y-p),G(a.x+u,a.y+p))},equals:function(t){return t?(t=ne(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function ne(t,i){return!t||t instanceof ie?t:new ie(t,i)}function de(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}de.prototype={extend:function(t){var i=this._southWest,a=this._northEast,u,p;if(t instanceof ee)u=t,p=t;else if(t instanceof de){if(u=t._southWest,p=t._northEast,!u||!p)return this}else return t?this.extend(K(t)||oe(t)):this;return!i&&!a?(this._southWest=new ee(u.lat,u.lng),this._northEast=new ee(p.lat,p.lng)):(i.lat=Math.min(u.lat,i.lat),i.lng=Math.min(u.lng,i.lng),a.lat=Math.max(p.lat,a.lat),a.lng=Math.max(p.lng,a.lng)),this},pad:function(t){var i=this._southWest,a=this._northEast,u=Math.abs(i.lat-a.lat)*t,p=Math.abs(i.lng-a.lng)*t;return new de(new ee(i.lat-u,i.lng-p),new ee(a.lat+u,a.lng+p))},getCenter:function(){return new ee((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 ee(this.getNorth(),this.getWest())},getSouthEast:function(){return new ee(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){typeof t[0]=="number"||t instanceof ee||"lat"in t?t=K(t):t=oe(t);var i=this._southWest,a=this._northEast,u,p;return t instanceof de?(u=t.getSouthWest(),p=t.getNorthEast()):u=p=t,u.lat>=i.lat&&p.lat<=a.lat&&u.lng>=i.lng&&p.lng<=a.lng},intersects:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>=i.lat&&u.lat<=a.lat,O=p.lng>=i.lng&&u.lng<=a.lng;return w&&O},overlaps:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>i.lat&&u.lat<a.lat,O=p.lng>i.lng&&u.lng<a.lng;return w&&O},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return t?(t=oe(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function oe(t,i){return t instanceof de?t:new de(t,i)}function ee(t,i,a){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,a!==void 0&&(this.alt=+a)}ee.prototype={equals:function(t,i){if(!t)return!1;t=K(t);var a=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return a<=(i===void 0?1e-9:i)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return se.distance(this,K(t))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,a=i/Math.cos(Math.PI/180*this.lat);return oe([this.lat-i,this.lng-a],[this.lat+i,this.lng+a])},clone:function(){return new ee(this.lat,this.lng,this.alt)}};function K(t,i,a){return t instanceof ee?t:P(t)&&typeof t[0]!="object"?t.length===3?new ee(t[0],t[1],t[2]):t.length===2?new ee(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new ee(t.lat,"lng"in t?t.lng:t.lon,t.alt):i===void 0?null:new ee(t,i,a)}var Y={latLngToPoint:function(t,i){var a=this.projection.project(t),u=this.scale(i);return this.transformation._transform(a,u)},pointToLatLng:function(t,i){var a=this.scale(i),u=this.transformation.untransform(t,a);return this.projection.unproject(u)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,a=this.scale(t),u=this.transformation.transform(i.min,a),p=this.transformation.transform(i.max,a);return new ie(u,p)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?m(t.lng,this.wrapLng,!0):t.lng,a=this.wrapLat?m(t.lat,this.wrapLat,!0):t.lat,u=t.alt;return new ee(a,i,u)},wrapLatLngBounds:function(t){var i=t.getCenter(),a=this.wrapLatLng(i),u=i.lat-a.lat,p=i.lng-a.lng;if(u===0&&p===0)return t;var w=t.getSouthWest(),O=t.getNorthEast(),D=new ee(w.lat-u,w.lng-p),H=new ee(O.lat-u,O.lng-p);return new de(D,H)}},se=s({},Y,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var a=Math.PI/180,u=t.lat*a,p=i.lat*a,w=Math.sin((i.lat-t.lat)*a/2),O=Math.sin((i.lng-t.lng)*a/2),D=w*w+Math.cos(u)*Math.cos(p)*O*O,H=2*Math.atan2(Math.sqrt(D),Math.sqrt(1-D));return this.R*H}}),fe=6378137,xe={R:fe,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,a=this.MAX_LATITUDE,u=Math.max(Math.min(a,t.lat),-a),p=Math.sin(u*i);return new Z(this.R*t.lng*i,this.R*Math.log((1+p)/(1-p))/2)},unproject:function(t){var i=180/Math.PI;return new ee((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=fe*Math.PI;return new ie([-t,-t],[t,t])}()};function Se(t,i,a,u){if(P(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=i,this._c=a,this._d=u}Se.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new Z((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function Te(t,i,a,u){return new Se(t,i,a,u)}var Ce=s({},se,{code:"EPSG:3857",projection:xe,transformation:function(){var t=.5/(Math.PI*xe.R);return Te(t,.5,-t,.5)}()}),te=s({},Ce,{code:"EPSG:900913"});function we(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Pe(t,i){var a="",u,p,w,O,D,H;for(u=0,w=t.length;u<w;u++){for(D=t[u],p=0,O=D.length;p<O;p++)H=D[p],a+=(p?"L":"M")+H.x+" "+H.y;a+=i?ve.svg?"z":"x":""}return a||"M0 0"}var Ae=document.documentElement.style,Ze="ActiveXObject"in window,Be=Ze&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),Ge=xt("webkit"),Ke=xt("android"),ze=xt("android 2")||xt("android 3"),De=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=Ke&&xt("Google")&&De<537&&!("AudioNode"in window),St=!!window.opera,pt=!nt&&xt("chrome"),dt=xt("gecko")&&!Ge&&!St&&!Ze,mt=!pt&&xt("safari"),Oe=xt("phantom"),he="OTransition"in Ae,_e=navigator.platform.indexOf("Win")===0,rt=Ze&&"transition"in Ae,$e="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ze,ge="MozPerspective"in Ae,Qe=!window.L_DISABLE_3D&&(rt||$e||ge)&&!he&&!Oe,Ve=typeof orientation<"u"||xt("mobile"),Ye=Ve&&Ge,Nt=Ve&&$e,Ht=!window.PointerEvent&&window.MSPointerEvent,vt=!!(window.PointerEvent||Ht),Et="ontouchstart"in window||!!window.TouchEvent,kt=!window.L_NO_TOUCH&&(Et||vt),Je=Ve&&St,rn=Ve&&dt,mn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,on=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",v,i),window.removeEventListener("testPassiveEventSupport",v,i)}catch{}return t}(),an=function(){return!!document.createElement("canvas").getContext}(),ln=!!(document.createElementNS&&we("svg").createSVGRect),cn=!!ln&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Vt=!ln&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),Jt=navigator.platform.indexOf("Mac")===0,Lt=navigator.platform.indexOf("Linux")===0;function xt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var ve={ie:Ze,ielt9:Be,edge:nt,webkit:Ge,android:Ke,android23:ze,androidStock:ot,opera:St,chrome:pt,gecko:dt,safari:mt,phantom:Oe,opera12:he,win:_e,ie3d:rt,webkit3d:$e,gecko3d:ge,any3d:Qe,mobile:Ve,mobileWebkit:Ye,mobileWebkit3d:Nt,msPointer:Ht,pointer:vt,touch:kt,touchNative:Et,mobileOpera:Je,mobileGecko:rn,retina:mn,passiveEvents:on,canvas:an,svg:ln,vml:Vt,inlineSvg:cn,mac:Jt,linux:Lt},Wt=ve.msPointer?"MSPointerDown":"pointerdown",jt=ve.msPointer?"MSPointerMove":"pointermove",T=ve.msPointer?"MSPointerUp":"pointerup",U=ve.msPointer?"MSPointerCancel":"pointercancel",re={touchstart:Wt,touchmove:jt,touchend:T,touchcancel:U},ue={touchstart:Gt,touchmove:yt,touchend:yt,touchcancel:yt},Ee={},ye=!1;function ae(t,i,a){return i==="touchstart"&&gt(),ue[i]?(a=ue[i].bind(this,a),t.addEventListener(re[i],a,!1),a):(console.warn("wrong event specified:",i),v)}function pe(t,i,a){if(!re[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(re[i],a,!1)}function We(t){Ee[t.pointerId]=t}function Fe(t){Ee[t.pointerId]&&(Ee[t.pointerId]=t)}function et(t){delete Ee[t.pointerId]}function gt(){ye||(document.addEventListener(Wt,We,!0),document.addEventListener(jt,Fe,!0),document.addEventListener(T,et,!0),document.addEventListener(U,et,!0),ye=!0)}function yt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var a in Ee)i.touches.push(Ee[a]);i.changedTouches=[i],t(i)}}function Gt(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&en(i),yt(t,i)}function wt(t){var i={},a,u;for(u in t)a=t[u],i[u]=a&&a.bind?a.bind(t):a;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Kt=200;function Qt(t,i){t.addEventListener("dblclick",i);var a=0,u;function p(w){if(w.detail!==1){u=w.detail;return}if(!(w.pointerType==="mouse"||w.sourceCapabilities&&!w.sourceCapabilities.firesTouchEvents)){var O=vp(w);if(!(O.some(function(H){return H instanceof HTMLLabelElement&&H.attributes.for})&&!O.some(function(H){return H instanceof HTMLInputElement||H instanceof HTMLSelectElement}))){var D=Date.now();D-a<=Kt?(u++,u===2&&i(wt(w))):u=1,a=D}}}return t.addEventListener("click",p),{dblclick:i,simDblclick:p}}function br(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}var ir=Dn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Bn=Dn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_r=Bn==="webkitTransition"||Bn==="OTransition"?Bn+"End":"transitionend";function wo(t){return typeof t=="string"?document.getElementById(t):t}function Me(t,i){var a=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!a||a==="auto")&&document.defaultView){var u=document.defaultView.getComputedStyle(t,null);a=u?u[i]:null}return a==="auto"?null:a}function Ne(t,i,a){var u=document.createElement(t);return u.className=i||"",a&&a.appendChild(u),u}function Ue(t){var i=t.parentNode;i&&i.removeChild(t)}function Tn(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function gn(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function zn(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function Co(t,i){if(t.classList!==void 0)return t.classList.contains(i);var a=me(t);return a.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(a)}function He(t,i){if(t.classList!==void 0)for(var a=_(i),u=0,p=a.length;u<p;u++)t.classList.add(a[u]);else if(!Co(t,i)){var w=me(t);Dr(t,(w?w+" ":"")+i)}}function Ct(t,i){t.classList!==void 0?t.classList.remove(i):Dr(t,C((" "+me(t)+" ").replace(" "+i+" "," ")))}function Dr(t,i){t.className.baseVal===void 0?t.className=i:t.className.baseVal=i}function me(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function ke(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&Yt(t,i)}function Yt(t,i){var a=!1,u="DXImageTransform.Microsoft.Alpha";try{a=t.filters.item(u)}catch{if(i===1)return}i=Math.round(i*100),a?(a.Enabled=i!==100,a.Opacity=i):t.style.filter+=" progid:"+u+"(opacity="+i+")"}function Dn(t){for(var i=document.documentElement.style,a=0;a<t.length;a++)if(t[a]in i)return t[a];return!1}function un(t,i,a){var u=i||new Z(0,0);t.style[ir]=(ve.ie3d?"translate("+u.x+"px,"+u.y+"px)":"translate3d("+u.x+"px,"+u.y+"px,0)")+(a?" scale("+a+")":"")}function Pt(t,i){t._leaflet_pos=i,ve.any3d?un(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function sr(t){return t._leaflet_pos||new Z(0,0)}var xr,pi,mc;if("onselectstart"in document)xr=function(){je(window,"selectstart",en)},pi=function(){bt(window,"selectstart",en)};else{var mi=Dn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);xr=function(){if(mi){var t=document.documentElement.style;mc=t[mi],t[mi]="none"}},pi=function(){mi&&(document.documentElement.style[mi]=mc,mc=void 0)}}function gc(){je(window,"dragstart",en)}function vc(){bt(window,"dragstart",en)}var As,yc;function bc(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Ms(),As=t,yc=t.style.outlineStyle,t.style.outlineStyle="none",je(window,"keydown",Ms))}function Ms(){As&&(As.style.outlineStyle=yc,As=void 0,yc=void 0,bt(window,"keydown",Ms))}function mp(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function _c(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var lw={__proto__:null,TRANSFORM:ir,TRANSITION:Bn,TRANSITION_END:_r,get:wo,getStyle:Me,create:Ne,remove:Ue,empty:Tn,toFront:gn,toBack:zn,hasClass:Co,addClass:He,removeClass:Ct,setClass:Dr,getClass:me,setOpacity:ke,testProp:Dn,setTransform:un,setPosition:Pt,getPosition:sr,get disableTextSelection(){return xr},get enableTextSelection(){return pi},disableImageDrag:gc,enableImageDrag:vc,preventOutline:bc,restoreOutline:Ms,getSizedParentNode:mp,getScale:_c};function je(t,i,a,u){if(i&&typeof i=="object")for(var p in i)wc(t,p,i[p],a);else{i=_(i);for(var w=0,O=i.length;w<O;w++)wc(t,i[w],a,u)}return this}var jn="_leaflet_events";function bt(t,i,a,u){if(arguments.length===1)gp(t),delete t[jn];else if(i&&typeof i=="object")for(var p in i)Cc(t,p,i[p],a);else if(i=_(i),arguments.length===2)gp(t,function(D){return I(i,D)!==-1});else for(var w=0,O=i.length;w<O;w++)Cc(t,i[w],a,u);return this}function gp(t,i){for(var a in t[jn]){var u=a.split(/\d/)[0];(!i||i(u))&&Cc(t,u,null,null,a)}}var xc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function wc(t,i,a,u){var p=i+h(a)+(u?"_"+h(u):"");if(t[jn]&&t[jn][p])return this;var w=function(D){return a.call(u||t,D||window.event)},O=w;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?w=ae(t,i,w):ve.touch&&i==="dblclick"?w=Qt(t,w):"addEventListener"in t?i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"?t.addEventListener(xc[i]||i,w,ve.passiveEvents?{passive:!1}:!1):i==="mouseenter"||i==="mouseleave"?(w=function(D){D=D||window.event,Ec(t,D)&&O(D)},t.addEventListener(xc[i],w,!1)):t.addEventListener(i,O,!1):t.attachEvent("on"+i,w),t[jn]=t[jn]||{},t[jn][p]=w}function Cc(t,i,a,u,p){p=p||i+h(a)+(u?"_"+h(u):"");var w=t[jn]&&t[jn][p];if(!w)return this;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?pe(t,i,w):ve.touch&&i==="dblclick"?br(t,w):"removeEventListener"in t?t.removeEventListener(xc[i]||i,w,!1):t.detachEvent("on"+i,w),t[jn][p]=null}function Fr(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Sc(t){return wc(t,"wheel",Fr),this}function gi(t){return je(t,"mousedown touchstart dblclick contextmenu",Fr),t._leaflet_disable_click=!0,this}function en(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Hr(t){return en(t),Fr(t),this}function vp(t){if(t.composedPath)return t.composedPath();for(var i=[],a=t.target;a;)i.push(a),a=a.parentNode;return i}function yp(t,i){if(!i)return new Z(t.clientX,t.clientY);var a=_c(i),u=a.boundingClientRect;return new Z((t.clientX-u.left)/a.x-i.clientLeft,(t.clientY-u.top)/a.y-i.clientTop)}var cw=ve.linux&&ve.chrome?window.devicePixelRatio:ve.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function bp(t){return ve.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/cw:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Ec(t,i){var a=i.relatedTarget;if(!a)return!0;try{for(;a&&a!==t;)a=a.parentNode}catch{return!1}return a!==t}var uw={__proto__:null,on:je,off:bt,stopPropagation:Fr,disableScrollPropagation:Sc,disableClickPropagation:gi,preventDefault:en,stop:Hr,getPropagationPath:vp,getMousePosition:yp,getWheelDelta:bp,isExternalTarget:Ec,addListener:je,removeListener:bt},_p=J.extend({run:function(t,i,a,u){this.stop(),this._el=t,this._inProgress=!0,this._duration=a||.25,this._easeOutPower=1/Math.max(u||.5,.2),this._startPos=sr(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=$(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,a=this._duration*1e3;i<a?this._runFrame(this._easeOut(i/a),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var a=this._startPos.add(this._offset.multiplyBy(t));i&&a._round(),Pt(this._el,a),this.fire("step")},_complete:function(){j(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),it=J.extend({options:{crs:Ce,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=x(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),i.zoom!==void 0&&(this._zoom=this._limitZoom(i.zoom)),i.center&&i.zoom!==void 0&&this.setView(K(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Bn&&ve.any3d&&!ve.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,_r,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,a){if(i=i===void 0?this._zoom:this._limitZoom(i),t=this._limitCenter(K(t),i,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&a!==!0){a.animate!==void 0&&(a.zoom=s({animate:a.animate},a.zoom),a.pan=s({animate:a.animate,duration:a.duration},a.pan));var u=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,a.zoom):this._tryAnimatedPan(t,a.pan);if(u)return clearTimeout(this._sizeTimer),this}return this._resetView(t,i,a.pan&&a.pan.noMoveStart),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,a){var u=this.getZoomScale(i),p=this.getSize().divideBy(2),w=t instanceof Z?t:this.latLngToContainerPoint(t),O=w.subtract(p).multiplyBy(1-1/u),D=this.containerPointToLatLng(p.add(O));return this.setView(D,i,{zoom:a})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():oe(t);var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.getBoundsZoom(t,!1,a.add(u));if(p=typeof i.maxZoom=="number"?Math.min(i.maxZoom,p):p,p===1/0)return{center:t.getCenter(),zoom:p};var w=u.subtract(a).divideBy(2),O=this.project(t.getSouthWest(),p),D=this.project(t.getNorthEast(),p),H=this.unproject(O.add(D).divideBy(2).add(w),p);return{center:H,zoom:p}},fitBounds:function(t,i){if(t=oe(t),!t.isValid())throw new Error("Bounds are not valid.");var a=this._getBoundsCenterZoom(t,i);return this.setView(a.center,a.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=G(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new _p,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),i.animate!==!1){He(this._mapPane,"leaflet-pan-anim");var a=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,a,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,a){if(a=a||{},a.animate===!1||!ve.any3d)return this.setView(t,i,a);this._stop();var u=this.project(this.getCenter()),p=this.project(t),w=this.getSize(),O=this._zoom;t=K(t),i=i===void 0?O:i;var D=Math.max(w.x,w.y),H=D*this.getZoomScale(O,i),Q=p.distanceTo(u)||1,be=1.42,Re=be*be;function Xe(Bt){var Vs=Bt?-1:1,Xw=Bt?H:D,Jw=H*H-D*D+Vs*Re*Re*Q*Q,eC=2*Xw*Re*Q,$c=Jw/eC,em=Math.sqrt($c*$c+1)-$c,tC=em<1e-9?-18:Math.log(em);return tC}function dn(Bt){return(Math.exp(Bt)-Math.exp(-Bt))/2}function Xt(Bt){return(Math.exp(Bt)+Math.exp(-Bt))/2}function Mn(Bt){return dn(Bt)/Xt(Bt)}var vn=Xe(0);function Ao(Bt){return D*(Xt(vn)/Xt(vn+be*Bt))}function Gw(Bt){return D*(Xt(vn)*Mn(vn+be*Bt)-dn(vn))/Re}function Kw(Bt){return 1-Math.pow(1-Bt,1.5)}var Qw=Date.now(),Xp=(Xe(1)-vn)/be,Yw=a.duration?1e3*a.duration:1e3*Xp*.8;function Jp(){var Bt=(Date.now()-Qw)/Yw,Vs=Kw(Bt)*Xp;Bt<=1?(this._flyToFrame=$(Jp,this),this._move(this.unproject(u.add(p.subtract(u).multiplyBy(Gw(Vs)/Q)),O),this.getScaleZoom(D/Ao(Vs),O),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}return this._moveStart(!0,a.noMoveStart),Jp.call(this),this},flyToBounds:function(t,i){var a=this._getBoundsCenterZoom(t,i);return this.flyTo(a.center,a.zoom,i)},setMaxBounds:function(t){return t=oe(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var a=this.getCenter(),u=this._limitCenter(a,this._zoom,oe(t));return a.equals(u)||this.panTo(u,i),this._enforcingBounds=!1,this},panInside:function(t,i){i=i||{};var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.project(this.getCenter()),w=this.project(t),O=this.getPixelBounds(),D=ne([O.min.add(a),O.max.subtract(u)]),H=D.getSize();if(!D.contains(w)){this._enforcingBounds=!0;var Q=w.subtract(D.getCenter()),be=D.extend(w).getSize().subtract(H);p.x+=Q.x<0?-be.x:be.x,p.y+=Q.y<0?-be.y:be.y,this.panTo(this.unproject(p),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=s({animate:!1,pan:!0},t===!0?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),u=i.divideBy(2).round(),p=a.divideBy(2).round(),w=u.subtract(p);return!w.x&&!w.y?this:(t.animate&&t.pan?this.panBy(w):(t.pan&&this._rawPanBy(w),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:a}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=s({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=c(this._handleGeolocationResponse,this),a=c(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,a,t):navigator.geolocation.getCurrentPosition(i,a,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var i=t.code,a=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+a+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,a=t.coords.longitude,u=new ee(i,a),p=u.toBounds(t.coords.accuracy*2),w=this._locateOptions;if(w.setView){var O=this.getBoundsZoom(p);this.setView(u,w.maxZoom?Math.min(O,w.maxZoom):O)}var D={latlng:u,bounds:p,timestamp:t.timestamp};for(var H in t.coords)typeof t.coords[H]=="number"&&(D[H]=t.coords[H]);this.fire("locationfound",D)}},addHandler:function(t,i){if(!i)return this;var a=this[t]=new i(this);return this._handlers.push(a),this.options[t]&&a.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ue(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)Ue(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var a="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),u=Ne("div",a,i||this._mapPane);return t&&(this._panes[t]=u),u},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),a=this.unproject(t.getTopRight());return new de(i,a)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,a){t=oe(t),a=G(a||[0,0]);var u=this.getZoom()||0,p=this.getMinZoom(),w=this.getMaxZoom(),O=t.getNorthWest(),D=t.getSouthEast(),H=this.getSize().subtract(a),Q=ne(this.project(D,u),this.project(O,u)).getSize(),be=ve.any3d?this.options.zoomSnap:1,Re=H.x/Q.x,Xe=H.y/Q.y,dn=i?Math.max(Re,Xe):Math.min(Re,Xe);return u=this.getScaleZoom(dn,u),be&&(u=Math.round(u/(be/100))*(be/100),u=i?Math.ceil(u/be)*be:Math.floor(u/be)*be),Math.max(p,Math.min(w,u))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var a=this._getTopLeftPoint(t,i);return new ie(a,a.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var a=this.options.crs;return i=i===void 0?this._zoom:i,a.scale(t)/a.scale(i)},getScaleZoom:function(t,i){var a=this.options.crs;i=i===void 0?this._zoom:i;var u=a.zoom(t*a.scale(i));return isNaN(u)?1/0:u},project:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(K(t),i)},unproject:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(G(t),i)},layerPointToLatLng:function(t){var i=G(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(K(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(K(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(oe(t))},distance:function(t,i){return this.options.crs.distance(K(t),K(i))},containerPointToLayerPoint:function(t){return G(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return G(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(G(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(t)))},mouseEventToContainerPoint:function(t){return yp(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 i=this._container=wo(t);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");je(i,"scroll",this._onScroll,this),this._containerId=h(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ve.any3d,He(t,"leaflet-container"+(ve.touch?" leaflet-touch":"")+(ve.retina?" leaflet-retina":"")+(ve.ielt9?" leaflet-oldie":"")+(ve.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=Me(t,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Pt(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(He(t.markerPane,"leaflet-zoom-hide"),He(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,a){Pt(this._mapPane,new Z(0,0));var u=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var p=this._zoom!==i;this._moveStart(p,a)._move(t,i)._moveEnd(p),this.fire("viewreset"),u&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,a,u){i===void 0&&(i=this._zoom);var p=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),u?a&&a.pinch&&this.fire("zoom",a):((p||a&&a.pinch)&&this.fire("zoom",a),this.fire("move",a)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Pt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[h(this._container)]=this;var i=t?bt:je;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),ve.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=$(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var a=[],u,p=i==="mouseout"||i==="mouseover",w=t.target||t.srcElement,O=!1;w;){if(u=this._targets[h(w)],u&&(i==="click"||i==="preclick")&&this._draggableMoved(u)){O=!0;break}if(u&&u.listens(i,!0)&&(p&&!Ec(w,t)||(a.push(u),p))||w===this._container)break;w=w.parentNode}return!a.length&&!O&&!p&&this.listens(i,!0)&&(a=[this]),a},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(i))){var a=t.type;a==="mousedown"&&bc(i),this._fireDOMEvent(t,a)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,a){if(t.type==="click"){var u=s({},t);u.type="preclick",this._fireDOMEvent(u,u.type,a)}var p=this._findEventTargets(t,i);if(a){for(var w=[],O=0;O<a.length;O++)a[O].listens(i,!0)&&w.push(a[O]);p=w.concat(p)}if(p.length){i==="contextmenu"&&en(t);var D=p[0],H={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var Q=D.getLatLng&&(!D._radius||D._radius<=10);H.containerPoint=Q?this.latLngToContainerPoint(D.getLatLng()):this.mouseEventToContainerPoint(t),H.layerPoint=this.containerPointToLayerPoint(H.containerPoint),H.latlng=Q?D.getLatLng():this.layerPointToLatLng(H.layerPoint)}for(O=0;O<p.length;O++)if(p[O].fire(i,H,!0),H.originalEvent._stopped||p[O].options.bubblingMouseEvents===!1&&I(this._mouseEvents,i)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return sr(this._mapPane)||new Z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var a=t&&i!==void 0?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return a.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var a=this.getSize()._divideBy(2);return this.project(t,i)._subtract(a)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return this.project(t,i)._subtract(u)},_latLngBoundsToNewLayerBounds:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return ne([this.project(t.getSouthWest(),i)._subtract(u),this.project(t.getNorthWest(),i)._subtract(u),this.project(t.getSouthEast(),i)._subtract(u),this.project(t.getNorthEast(),i)._subtract(u)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,a){if(!a)return t;var u=this.project(t,i),p=this.getSize().divideBy(2),w=new ie(u.subtract(p),u.add(p)),O=this._getBoundsOffset(w,a,i);return Math.abs(O.x)<=1&&Math.abs(O.y)<=1?t:this.unproject(u.add(O),i)},_limitOffset:function(t,i){if(!i)return t;var a=this.getPixelBounds(),u=new ie(a.min.add(t),a.max.add(t));return t.add(this._getBoundsOffset(u,i))},_getBoundsOffset:function(t,i,a){var u=ne(this.project(i.getNorthEast(),a),this.project(i.getSouthWest(),a)),p=u.min.subtract(t.min),w=u.max.subtract(t.max),O=this._rebound(p.x,-w.x),D=this._rebound(p.y,-w.y);return new Z(O,D)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),a=this.getMaxZoom(),u=ve.any3d?this.options.zoomSnap:1;return u&&(t=Math.round(t/u)*u),Math.max(i,Math.min(a,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ct(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var a=this._getCenterOffset(t)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(a)?!1:(this.panBy(a,i),!0)},_createAnimProxy:function(){var t=this._proxy=Ne("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(i){var a=ir,u=this._proxy.style[a];un(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),u===this._proxy.style[a]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ue(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();un(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,a){if(this._animatingZoom)return!0;if(a=a||{},!this._zoomAnimated||a.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var u=this.getZoomScale(i),p=this._getCenterOffset(t)._divideBy(1-1/u);return a.animate!==!0&&!this.getSize().contains(p)?!1:($(function(){this._moveStart(!0,a.noMoveStart||!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,a,u){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,He(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:u}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ct(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function dw(t,i){return new it(t,i)}var Fn=W.extend({options:{position:"topright"},initialize:function(t){x(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),a=this.getPosition(),u=t._controlCorners[a];return He(i,"leaflet-control"),a.indexOf("bottom")!==-1?u.insertBefore(i,u.firstChild):u.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ue(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),vi=function(t){return new Fn(t)};it.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",a=this._controlContainer=Ne("div",i+"control-container",this._container);function u(p,w){var O=i+p+" "+i+w;t[p+w]=Ne("div",O,a)}u("top","left"),u("top","right"),u("bottom","left"),u("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Ue(this._controlCorners[t]);Ue(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xp=Fn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,a,u){return a<u?-1:u<a?1:0}},initialize:function(t,i,a){x(this,a),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var u in t)this._addLayer(t[u],u);for(u in i)this._addLayer(i[u],u,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Fn.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(h(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){He(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(He(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Ct(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ct(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=Ne("div",t),a=this.options.collapsed;i.setAttribute("aria-haspopup",!0),gi(i),Sc(i);var u=this._section=Ne("section",t+"-list");a&&(this._map.on("click",this.collapse,this),je(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var p=this._layersLink=Ne("a",t+"-toggle",i);p.href="#",p.title="Layers",p.setAttribute("role","button"),je(p,{keydown:function(w){w.keyCode===13&&this._expandSafely()},click:function(w){en(w),this._expandSafely()}},this),a||this.expand(),this._baseLayersList=Ne("div",t+"-base",u),this._separator=Ne("div",t+"-separator",u),this._overlaysList=Ne("div",t+"-overlays",u),i.appendChild(u)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,a){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:a}),this.options.sortLayers&&this._layers.sort(c(function(u,p){return this.options.sortFunction(u.layer,p.layer,u.name,p.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Tn(this._baseLayersList),Tn(this._overlaysList),this._layerControlInputs=[];var t,i,a,u,p=0;for(a=0;a<this._layers.length;a++)u=this._layers[a],this._addItem(u),i=i||u.overlay,t=t||!u.overlay,p+=u.overlay?0:1;return this.options.hideSingleBase&&(t=t&&p>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),a=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;a&&this._map.fire(a,i)},_createRadioElement:function(t,i){var a='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",u=document.createElement("div");return u.innerHTML=a,u.firstChild},_addItem:function(t){var i=document.createElement("label"),a=this._map.hasLayer(t.layer),u;t.overlay?(u=document.createElement("input"),u.type="checkbox",u.className="leaflet-control-layers-selector",u.defaultChecked=a):u=this._createRadioElement("leaflet-base-layers_"+h(this),a),this._layerControlInputs.push(u),u.layerId=h(t.layer),je(u,"click",this._onInputClick,this);var p=document.createElement("span");p.innerHTML=" "+t.name;var w=document.createElement("span");i.appendChild(w),w.appendChild(u),w.appendChild(p);var O=t.overlay?this._overlaysList:this._baseLayersList;return O.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,i,a,u=[],p=[];this._handlingClick=!0;for(var w=t.length-1;w>=0;w--)i=t[w],a=this._getLayer(i.layerId).layer,i.checked?u.push(a):i.checked||p.push(a);for(w=0;w<p.length;w++)this._map.hasLayer(p[w])&&this._map.removeLayer(p[w]);for(w=0;w<u.length;w++)this._map.hasLayer(u[w])||this._map.addLayer(u[w]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,i,a,u=this._map.getZoom(),p=t.length-1;p>=0;p--)i=t[p],a=this._getLayer(i.layerId).layer,i.disabled=a.options.minZoom!==void 0&&u<a.options.minZoom||a.options.maxZoom!==void 0&&u>a.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,je(t,"click",en),this.expand();var i=this;setTimeout(function(){bt(t,"click",en),i._preventClick=!1})}}),fw=function(t,i,a){return new xp(t,i,a)},Pc=Fn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",a=Ne("div",i+" leaflet-bar"),u=this.options;return this._zoomInButton=this._createButton(u.zoomInText,u.zoomInTitle,i+"-in",a,this._zoomIn),this._zoomOutButton=this._createButton(u.zoomOutText,u.zoomOutTitle,i+"-out",a,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),a},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,a,u,p){var w=Ne("a",a,u);return w.innerHTML=t,w.href="#",w.title=i,w.setAttribute("role","button"),w.setAttribute("aria-label",i),gi(w),je(w,"click",Hr),je(w,"click",p,this),je(w,"click",this._refocusOnMap,this),w},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";Ct(this._zoomInButton,i),Ct(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(He(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(He(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});it.mergeOptions({zoomControl:!0}),it.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Pc,this.addControl(this.zoomControl))});var hw=function(t){return new Pc(t)},wp=Fn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",a=Ne("div",i),u=this.options;return this._addScales(u,i+"-line",a),t.on(u.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),a},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,a){t.metric&&(this._mScale=Ne("div",i,a)),t.imperial&&(this._iScale=Ne("div",i,a))},_update:function(){var t=this._map,i=t.getSize().y/2,a=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(a)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),a=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,a,i/t)},_updateImperial:function(t){var i=t*3.2808399,a,u,p;i>5280?(a=i/5280,u=this._getRoundNum(a),this._updateScale(this._iScale,u+" mi",u/a)):(p=this._getRoundNum(i),this._updateScale(this._iScale,p+" ft",p/i))},_updateScale:function(t,i,a){t.style.width=Math.round(this.options.maxWidth*a)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),a=t/i;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:1,i*a}}),pw=function(t){return new wp(t)},mw='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ic=Fn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ve.inlineSvg?mw+" ":"")+"Leaflet</a>"},initialize:function(t){x(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=Ne("div","leaflet-control-attribution"),gi(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var a=[];this.options.prefix&&a.push(this.options.prefix),t.length&&a.push(t.join(", ")),this._container.innerHTML=a.join(' <span aria-hidden="true">|</span> ')}}});it.mergeOptions({attributionControl:!0}),it.addInitHook(function(){this.options.attributionControl&&new Ic().addTo(this)});var gw=function(t){return new Ic(t)};Fn.Layers=xp,Fn.Zoom=Pc,Fn.Scale=wp,Fn.Attribution=Ic,vi.layers=fw,vi.zoom=hw,vi.scale=pw,vi.attribution=gw;var Zn=W.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Zn.addTo=function(t,i){return t.addHandler(i,this),this};var vw={Events:X},Cp=ve.touch?"touchstart mousedown":"mousedown",wr=J.extend({options:{clickTolerance:3},initialize:function(t,i,a,u){x(this,u),this._element=t,this._dragStartTarget=i||t,this._preventOutline=a},enable:function(){this._enabled||(je(this._dragStartTarget,Cp,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(wr._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,Cp,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Co(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){wr._dragging===this&&this.finishDrag();return}if(!(wr._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(wr._dragging=this,this._preventOutline&&bc(this._element),gc(),xr(),!this._moving)){this.fire("down");var i=t.touches?t.touches[0]:t,a=mp(this._element);this._startPoint=new Z(i.clientX,i.clientY),this._startPos=sr(this._element),this._parentScale=_c(a);var u=t.type==="mousedown";je(document,u?"mousemove":"touchmove",this._onMove,this),je(document,u?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,a=new Z(i.clientX,i.clientY)._subtract(this._startPoint);!a.x&&!a.y||Math.abs(a.x)+Math.abs(a.y)<this.options.clickTolerance||(a.x/=this._parentScale.x,a.y/=this._parentScale.y,en(t),this._moved||(this.fire("dragstart"),this._moved=!0,He(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),He(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(a),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Pt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Ct(document.body,"leaflet-dragging"),this._lastTarget&&(Ct(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),vc(),pi();var i=this._moved&&this._moving;this._moving=!1,wr._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Sp(t,i,a){var u,p=[1,4,2,8],w,O,D,H,Q,be,Re,Xe;for(w=0,be=t.length;w<be;w++)t[w]._code=Vr(t[w],i);for(D=0;D<4;D++){for(Re=p[D],u=[],w=0,be=t.length,O=be-1;w<be;O=w++)H=t[w],Q=t[O],H._code&Re?Q._code&Re||(Xe=Ls(Q,H,Re,i,a),Xe._code=Vr(Xe,i),u.push(Xe)):(Q._code&Re&&(Xe=Ls(Q,H,Re,i,a),Xe._code=Vr(Xe,i),u.push(Xe)),u.push(H));t=u}return t}function Ep(t,i){var a,u,p,w,O,D,H,Q,be;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var Re=K([0,0]),Xe=oe(t),dn=Xe.getNorthWest().distanceTo(Xe.getSouthWest())*Xe.getNorthEast().distanceTo(Xe.getNorthWest());dn<1700&&(Re=Tc(t));var Xt=t.length,Mn=[];for(a=0;a<Xt;a++){var vn=K(t[a]);Mn.push(i.project(K([vn.lat-Re.lat,vn.lng-Re.lng])))}for(D=H=Q=0,a=0,u=Xt-1;a<Xt;u=a++)p=Mn[a],w=Mn[u],O=p.y*w.x-w.y*p.x,H+=(p.x+w.x)*O,Q+=(p.y+w.y)*O,D+=O*3;D===0?be=Mn[0]:be=[H/D,Q/D];var Ao=i.unproject(G(be));return K([Ao.lat+Re.lat,Ao.lng+Re.lng])}function Tc(t){for(var i=0,a=0,u=0,p=0;p<t.length;p++){var w=K(t[p]);i+=w.lat,a+=w.lng,u++}return K([i/u,a/u])}var yw={__proto__:null,clipPolygon:Sp,polygonCenter:Ep,centroid:Tc};function Pp(t,i){if(!i||!t.length)return t.slice();var a=i*i;return t=xw(t,a),t=_w(t,a),t}function Ip(t,i,a){return Math.sqrt(yi(t,i,a,!0))}function bw(t,i,a){return yi(t,i,a)}function _w(t,i){var a=t.length,u=typeof Uint8Array!=void 0+""?Uint8Array:Array,p=new u(a);p[0]=p[a-1]=1,Ac(t,p,i,0,a-1);var w,O=[];for(w=0;w<a;w++)p[w]&&O.push(t[w]);return O}function Ac(t,i,a,u,p){var w=0,O,D,H;for(D=u+1;D<=p-1;D++)H=yi(t[D],t[u],t[p],!0),H>w&&(O=D,w=H);w>a&&(i[O]=1,Ac(t,i,a,u,O),Ac(t,i,a,O,p))}function xw(t,i){for(var a=[t[0]],u=1,p=0,w=t.length;u<w;u++)ww(t[u],t[p])>i&&(a.push(t[u]),p=u);return p<w-1&&a.push(t[w-1]),a}var Tp;function Ap(t,i,a,u,p){var w=u?Tp:Vr(t,a),O=Vr(i,a),D,H,Q;for(Tp=O;;){if(!(w|O))return[t,i];if(w&O)return!1;D=w||O,H=Ls(t,i,D,a,p),Q=Vr(H,a),D===w?(t=H,w=Q):(i=H,O=Q)}}function Ls(t,i,a,u,p){var w=i.x-t.x,O=i.y-t.y,D=u.min,H=u.max,Q,be;return a&8?(Q=t.x+w*(H.y-t.y)/O,be=H.y):a&4?(Q=t.x+w*(D.y-t.y)/O,be=D.y):a&2?(Q=H.x,be=t.y+O*(H.x-t.x)/w):a&1&&(Q=D.x,be=t.y+O*(D.x-t.x)/w),new Z(Q,be,p)}function Vr(t,i){var a=0;return t.x<i.min.x?a|=1:t.x>i.max.x&&(a|=2),t.y<i.min.y?a|=4:t.y>i.max.y&&(a|=8),a}function ww(t,i){var a=i.x-t.x,u=i.y-t.y;return a*a+u*u}function yi(t,i,a,u){var p=i.x,w=i.y,O=a.x-p,D=a.y-w,H=O*O+D*D,Q;return H>0&&(Q=((t.x-p)*O+(t.y-w)*D)/H,Q>1?(p=a.x,w=a.y):Q>0&&(p+=O*Q,w+=D*Q)),O=t.x-p,D=t.y-w,u?O*O+D*D:new Z(p,w)}function An(t){return!P(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Mp(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(t)}function Lp(t,i){var a,u,p,w,O,D,H,Q;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var be=K([0,0]),Re=oe(t),Xe=Re.getNorthWest().distanceTo(Re.getSouthWest())*Re.getNorthEast().distanceTo(Re.getNorthWest());Xe<1700&&(be=Tc(t));var dn=t.length,Xt=[];for(a=0;a<dn;a++){var Mn=K(t[a]);Xt.push(i.project(K([Mn.lat-be.lat,Mn.lng-be.lng])))}for(a=0,u=0;a<dn-1;a++)u+=Xt[a].distanceTo(Xt[a+1])/2;if(u===0)Q=Xt[0];else for(a=0,w=0;a<dn-1;a++)if(O=Xt[a],D=Xt[a+1],p=O.distanceTo(D),w+=p,w>u){H=(w-u)/p,Q=[D.x-H*(D.x-O.x),D.y-H*(D.y-O.y)];break}var vn=i.unproject(G(Q));return K([vn.lat+be.lat,vn.lng+be.lng])}var Cw={__proto__:null,simplify:Pp,pointToSegmentDistance:Ip,closestPointOnSegment:bw,clipSegment:Ap,_getEdgeIntersection:Ls,_getBitCode:Vr,_sqClosestPointOnSegment:yi,isFlat:An,_flat:Mp,polylineCenter:Lp},Mc={project:function(t){return new Z(t.lng,t.lat)},unproject:function(t){return new ee(t.y,t.x)},bounds:new ie([-180,-90],[180,90])},Lc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ie([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var i=Math.PI/180,a=this.R,u=t.lat*i,p=this.R_MINOR/a,w=Math.sqrt(1-p*p),O=w*Math.sin(u),D=Math.tan(Math.PI/4-u/2)/Math.pow((1-O)/(1+O),w/2);return u=-a*Math.log(Math.max(D,1e-10)),new Z(t.lng*i*a,u)},unproject:function(t){for(var i=180/Math.PI,a=this.R,u=this.R_MINOR/a,p=Math.sqrt(1-u*u),w=Math.exp(-t.y/a),O=Math.PI/2-2*Math.atan(w),D=0,H=.1,Q;D<15&&Math.abs(H)>1e-7;D++)Q=p*Math.sin(O),Q=Math.pow((1-Q)/(1+Q),p/2),H=Math.PI/2-2*Math.atan(w*Q)-O,O+=H;return new ee(O*i,t.x*i/a)}},Sw={__proto__:null,LonLat:Mc,Mercator:Lc,SphericalMercator:xe},Ew=s({},se,{code:"EPSG:3395",projection:Lc,transformation:function(){var t=.5/(Math.PI*Lc.R);return Te(t,.5,-t,.5)}()}),Op=s({},se,{code:"EPSG:4326",projection:Mc,transformation:Te(1/180,1,-1/180,.5)}),Pw=s({},Y,{projection:Mc,transformation:Te(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var a=i.lng-t.lng,u=i.lat-t.lat;return Math.sqrt(a*a+u*u)},infinite:!0});Y.Earth=se,Y.EPSG3395=Ew,Y.EPSG3857=Ce,Y.EPSG900913=te,Y.EPSG4326=Op,Y.Simple=Pw;var Hn=J.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var a=this.getEvents();i.on(a,this),this.once("remove",function(){i.off(a,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});it.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=h(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var a in this._layers)t.call(i,this._layers[a]);return this},_addLayers:function(t){t=t?P(t)?t:[t]:[];for(var i=0,a=t.length;i<a;i++)this.addLayer(t[i])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=h(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,a=this._getZoomSpan();for(var u in this._zoomBoundLayers){var p=this._zoomBoundLayers[u].options;t=p.minZoom===void 0?t:Math.min(t,p.minZoom),i=p.maxZoom===void 0?i:Math.max(i,p.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,a!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var So=Hn.extend({initialize:function(t,i){x(this,i),this._layers={};var a,u;if(t)for(a=0,u=t.length;a<u;a++)this.addLayer(t[a])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){var i=typeof t=="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),a,u;for(a in this._layers)u=this._layers[a],u[t]&&u[t].apply(u,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var a in this._layers)t.call(i,this._layers[a]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return h(t)}}),Iw=function(t,i){return new So(t,i)},ar=So.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),So.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),So.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new de;for(var i in this._layers){var a=this._layers[i];t.extend(a.getBounds?a.getBounds():a.getLatLng())}return t}}),Tw=function(t,i){return new ar(t,i)},Eo=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){x(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var a=this._getIconUrl(t);if(!a){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var u=this._createImg(a,i&&i.tagName==="IMG"?i:null);return this._setIconStyles(u,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),u},_setIconStyles:function(t,i){var a=this.options,u=a[i+"Size"];typeof u=="number"&&(u=[u,u]);var p=G(u),w=G(i==="shadow"&&a.shadowAnchor||a.iconAnchor||p&&p.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(a.className||""),w&&(t.style.marginLeft=-w.x+"px",t.style.marginTop=-w.y+"px"),p&&(t.style.width=p.x+"px",t.style.height=p.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return ve.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Aw(t){return new Eo(t)}var bi=Eo.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof bi.imagePath!="string"&&(bi.imagePath=this._detectIconPath()),(this.options.imagePath||bi.imagePath)+Eo.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(a,u,p){var w=u.exec(a);return w&&w[p]};return t=i(t,/^url\((['"])?(.+)\1\)$/,2),t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Ne("div","leaflet-default-icon-path",document.body),i=Me(t,"background-image")||Me(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i),i)return i;var a=document.querySelector('link[href$="leaflet.css"]');return a?a.href.substring(0,a.href.length-11-1):""}}),Np=Zn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new wr(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),He(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ct(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,a=i._map,u=this._marker.options.autoPanSpeed,p=this._marker.options.autoPanPadding,w=sr(i._icon),O=a.getPixelBounds(),D=a.getPixelOrigin(),H=ne(O.min._subtract(D).add(p),O.max._subtract(D).subtract(p));if(!H.contains(w)){var Q=G((Math.max(H.max.x,w.x)-H.max.x)/(O.max.x-H.max.x)-(Math.min(H.min.x,w.x)-H.min.x)/(O.min.x-H.min.x),(Math.max(H.max.y,w.y)-H.max.y)/(O.max.y-H.max.y)-(Math.min(H.min.y,w.y)-H.min.y)/(O.min.y-H.min.y)).multiplyBy(u);a.panBy(Q,{animate:!1}),this._draggable._newPos._add(Q),this._draggable._startPos._add(Q),Pt(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=$(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(j(this._panRequest),this._panRequest=$(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,a=i._shadow,u=sr(i._icon),p=i._map.layerPointToLatLng(u);a&&Pt(a,u),i._latlng=p,t.latlng=p,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){j(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Os=Hn.extend({options:{icon:new bi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){x(this,i),this._latlng=K(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=K(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=t.icon.createIcon(this._icon),u=!1;a!==this._icon&&(this._icon&&this._removeIcon(),u=!0,t.title&&(a.title=t.title),a.tagName==="IMG"&&(a.alt=t.alt||"")),He(a,i),t.keyboard&&(a.tabIndex="0",a.setAttribute("role","button")),this._icon=a,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(a,"focus",this._panOnFocus,this);var p=t.icon.createShadow(this._shadow),w=!1;p!==this._shadow&&(this._removeShadow(),w=!0),p&&(He(p,i),p.alt=""),this._shadow=p,t.opacity<1&&this._updateOpacity(),u&&this.getPane().appendChild(this._icon),this._initInteraction(),p&&w&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Ue(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ue(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Pt(this._icon,t),this._shadow&&Pt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(He(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Np)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Np(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ke(this._icon,t),this._shadow&&ke(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,a=i.iconSize?G(i.iconSize):G(0,0),u=i.iconAnchor?G(i.iconAnchor):G(0,0);t.panInside(this._latlng,{paddingTopLeft:u,paddingBottomRight:a.subtract(u)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Mw(t,i){return new Os(t,i)}var Cr=Hn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return x(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ns=Cr.extend({options:{fill:!0,radius:10},initialize:function(t,i){x(this,i),this._latlng=K(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=K(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return Cr.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,a=this._clickTolerance(),u=[t+a,i+a];this._pxBounds=new ie(this._point.subtract(u),this._point.add(u))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Lw(t,i){return new Ns(t,i)}var Oc=Ns.extend({initialize:function(t,i,a){if(typeof i=="number"&&(i=s({},a,{radius:i})),x(this,i),this._latlng=K(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new de(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Cr.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,a=this._map,u=a.options.crs;if(u.distance===se.distance){var p=Math.PI/180,w=this._mRadius/se.R/p,O=a.project([i+w,t]),D=a.project([i-w,t]),H=O.add(D).divideBy(2),Q=a.unproject(H).lat,be=Math.acos((Math.cos(w*p)-Math.sin(i*p)*Math.sin(Q*p))/(Math.cos(i*p)*Math.cos(Q*p)))/p;(isNaN(be)||be===0)&&(be=w/Math.cos(Math.PI/180*i)),this._point=H.subtract(a.getPixelOrigin()),this._radius=isNaN(be)?0:H.x-a.project([Q,t-be]).x,this._radiusY=H.y-O.y}else{var Re=u.unproject(u.project(this._latlng).subtract([this._mRadius,0]));this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(Re).x}this._updateBounds()}});function Ow(t,i,a){return new Oc(t,i,a)}var lr=Cr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){x(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i=1/0,a=null,u=yi,p,w,O=0,D=this._parts.length;O<D;O++)for(var H=this._parts[O],Q=1,be=H.length;Q<be;Q++){p=H[Q-1],w=H[Q];var Re=u(t,p,w,!0);Re<i&&(i=Re,a=u(t,p,w))}return a&&(a.distance=Math.sqrt(i)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Lp(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=K(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new de,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],a=An(t),u=0,p=t.length;u<p;u++)a?(i[u]=K(t[u]),this._bounds.extend(i[u])):i[u]=this._convertLatLngs(t[u]);return i},_project:function(){var t=new ie;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new Z(t,t);this._rawPxBounds&&(this._pxBounds=new ie([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,a){var u=t[0]instanceof ee,p=t.length,w,O;if(u){for(O=[],w=0;w<p;w++)O[w]=this._map.latLngToLayerPoint(t[w]),a.extend(O[w]);i.push(O)}else for(w=0;w<p;w++)this._projectLatlngs(t[w],i,a)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,a,u,p,w,O,D,H;for(a=0,p=0,w=this._rings.length;a<w;a++)for(H=this._rings[a],u=0,O=H.length;u<O-1;u++)D=Ap(H[u],H[u+1],t,u,!0),D&&(i[p]=i[p]||[],i[p].push(D[0]),(D[1]!==H[u+1]||u===O-2)&&(i[p].push(D[1]),p++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,a=0,u=t.length;a<u;a++)t[a]=Pp(t[a],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var a,u,p,w,O,D,H=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,w=this._parts.length;a<w;a++)for(D=this._parts[a],u=0,O=D.length,p=O-1;u<O;p=u++)if(!(!i&&u===0)&&Ip(t,D[p],D[u])<=H)return!0;return!1}});function Nw(t,i){return new lr(t,i)}lr._flat=Mp;var Po=lr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ep(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=lr.prototype._convertLatLngs.call(this,t),a=i.length;return a>=2&&i[0]instanceof ee&&i[0].equals(i[a-1])&&i.pop(),i},_setLatLngs:function(t){lr.prototype._setLatLngs.call(this,t),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,a=new Z(i,i);if(t=new ie(t.min.subtract(a),t.max.add(a)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var u=0,p=this._rings.length,w;u<p;u++)w=Sp(this._rings[u],t,!0),w.length&&this._parts.push(w)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i=!1,a,u,p,w,O,D,H,Q;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(w=0,H=this._parts.length;w<H;w++)for(a=this._parts[w],O=0,Q=a.length,D=Q-1;O<Q;D=O++)u=a[O],p=a[D],u.y>t.y!=p.y>t.y&&t.x<(p.x-u.x)*(t.y-u.y)/(p.y-u.y)+u.x&&(i=!i);return i||lr.prototype._containsPoint.call(this,t,!0)}});function kw(t,i){return new Po(t,i)}var cr=ar.extend({initialize:function(t,i){x(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i=P(t)?t:t.features,a,u,p;if(i){for(a=0,u=i.length;a<u;a++)p=i[a],(p.geometries||p.geometry||p.features||p.coordinates)&&this.addData(p);return this}var w=this.options;if(w.filter&&!w.filter(t))return this;var O=ks(t,w);return O?(O.feature=Bs(t),O.defaultOptions=O.options,this.resetStyle(O),w.onEachFeature&&w.onEachFeature(t,O),this.addLayer(O)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=s({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){t.setStyle&&(typeof i=="function"&&(i=i(t.feature)),t.setStyle(i))}});function ks(t,i){var a=t.type==="Feature"?t.geometry:t,u=a?a.coordinates:null,p=[],w=i&&i.pointToLayer,O=i&&i.coordsToLatLng||Nc,D,H,Q,be;if(!u&&!a)return null;switch(a.type){case"Point":return D=O(u),kp(w,t,D,i);case"MultiPoint":for(Q=0,be=u.length;Q<be;Q++)D=O(u[Q]),p.push(kp(w,t,D,i));return new ar(p);case"LineString":case"MultiLineString":return H=Rs(u,a.type==="LineString"?0:1,O),new lr(H,i);case"Polygon":case"MultiPolygon":return H=Rs(u,a.type==="Polygon"?1:2,O),new Po(H,i);case"GeometryCollection":for(Q=0,be=a.geometries.length;Q<be;Q++){var Re=ks({geometry:a.geometries[Q],type:"Feature",properties:t.properties},i);Re&&p.push(Re)}return new ar(p);case"FeatureCollection":for(Q=0,be=a.features.length;Q<be;Q++){var Xe=ks(a.features[Q],i);Xe&&p.push(Xe)}return new ar(p);default:throw new Error("Invalid GeoJSON object.")}}function kp(t,i,a,u){return t?t(i,a):new Os(a,u&&u.markersInheritOptions&&u)}function Nc(t){return new ee(t[1],t[0],t[2])}function Rs(t,i,a){for(var u=[],p=0,w=t.length,O;p<w;p++)O=i?Rs(t[p],i-1,a):(a||Nc)(t[p]),u.push(O);return u}function kc(t,i){return t=K(t),t.alt!==void 0?[y(t.lng,i),y(t.lat,i),y(t.alt,i)]:[y(t.lng,i),y(t.lat,i)]}function $s(t,i,a,u){for(var p=[],w=0,O=t.length;w<O;w++)p.push(i?$s(t[w],An(t[w])?0:i-1,a,u):kc(t[w],u));return!i&&a&&p.length>0&&p.push(p[0].slice()),p}function Io(t,i){return t.feature?s({},t.feature,{geometry:i}):Bs(i)}function Bs(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Rc={toGeoJSON:function(t){return Io(this,{type:"Point",coordinates:kc(this.getLatLng(),t)})}};Os.include(Rc),Oc.include(Rc),Ns.include(Rc),lr.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=$s(this._latlngs,i?1:0,!1,t);return Io(this,{type:(i?"Multi":"")+"LineString",coordinates:a})}}),Po.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=i&&!An(this._latlngs[0]),u=$s(this._latlngs,a?2:i?1:0,!0,t);return i||(u=[u]),Io(this,{type:(a?"Multi":"")+"Polygon",coordinates:u})}}),So.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(a){i.push(a.toGeoJSON(t).geometry.coordinates)}),Io(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(t);var a=i==="GeometryCollection",u=[];return this.eachLayer(function(p){if(p.toGeoJSON){var w=p.toGeoJSON(t);if(a)u.push(w.geometry);else{var O=Bs(w);O.type==="FeatureCollection"?u.push.apply(u,O.features):u.push(O)}}}),a?Io(this,{geometries:u,type:"GeometryCollection"}):{type:"FeatureCollection",features:u}}});function Rp(t,i){return new cr(t,i)}var Rw=Rp,zs=Hn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,a){this._url=t,this._bounds=oe(i),x(this,a)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(He(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ue(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&gn(this._image),this},bringToBack:function(){return this._map&&zn(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=oe(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",i=this._image=t?this._url:Ne("img");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onload=c(this.fire,this,"load"),i.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),a=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;un(this._image,a,i)},_reset:function(){var t=this._image,i=new ie(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),a=i.getSize();Pt(t,i.min),t.style.width=a.x+"px",t.style.height=a.y+"px"},_updateOpacity:function(){ke(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),$w=function(t,i,a){return new zs(t,i,a)},$p=zs.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",i=this._image=t?this._url:Ne("video");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onloadeddata=c(this.fire,this,"load"),t){for(var a=i.getElementsByTagName("source"),u=[],p=0;p<a.length;p++)u.push(a[p].src);this._url=a.length>0?u:[i.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var w=0;w<this._url.length;w++){var O=Ne("source");O.src=this._url[w],i.appendChild(O)}}});function Bw(t,i,a){return new $p(t,i,a)}var Bp=zs.extend({_initImage:function(){var t=this._image=this._url;He(t,"leaflet-image-layer"),this._zoomAnimated&&He(t,"leaflet-zoom-animated"),this.options.className&&He(t,this.options.className),t.onselectstart=v,t.onmousemove=v}});function zw(t,i,a){return new Bp(t,i,a)}var Un=Hn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof ee||P(t))?(this._latlng=K(t),x(this,i)):(x(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ke(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ke(this._container,1),this.bringToFront(),this.options.interactive&&(He(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ke(this._container,0),this._removeTimeout=setTimeout(c(Ue,void 0,this._container),200)):Ue(this._container),this.options.interactive&&(Ct(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=K(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&gn(this._container),this},bringToBack:function(){return this._map&&zn(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof ar){i=null;var a=this._source._layers;for(var u in a)if(a[u]._map){i=a[u];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else if(i.getBounds)t=i.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof i=="string")t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=G(this.options.offset),a=this._getAnchor();this._zoomAnimated?Pt(this._container,t.add(a)):i=i.add(t).add(a);var u=this._containerBottom=-i.y,p=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=u+"px",this._container.style.left=p+"px"}},_getAnchor:function(){return[0,0]}});it.include({_initOverlay:function(t,i,a,u){var p=i;return p instanceof t||(p=new t(u).setContent(i)),a&&p.setLatLng(a),p}}),Hn.include({_initOverlay:function(t,i,a,u){var p=a;return p instanceof t?(x(p,u),p._source=this):(p=i&&!u?i:new t(u,this),p.setContent(a)),p}});var Ds=Un.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Un.prototype.openOn.call(this,t)},onAdd:function(t){Un.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Cr||this._source.on("preclick",Fr))},onRemove:function(t){Un.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Cr||this._source.off("preclick",Fr))},getEvents:function(){var t=Un.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=Ne("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),a=this._wrapper=Ne("div",t+"-content-wrapper",i);if(this._contentNode=Ne("div",t+"-content",a),gi(i),Sc(this._contentNode),je(i,"contextmenu",Fr),this._tipContainer=Ne("div",t+"-tip-container",i),this._tip=Ne("div",t+"-tip",this._tipContainer),this.options.closeButton){var u=this._closeButton=Ne("a",t+"-close-button",i);u.setAttribute("role","button"),u.setAttribute("aria-label","Close popup"),u.href="#close",u.innerHTML='<span aria-hidden="true">&#215;</span>',je(u,"click",function(p){en(p),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var a=t.offsetWidth;a=Math.min(a,this.options.maxWidth),a=Math.max(a,this.options.minWidth),i.width=a+1+"px",i.whiteSpace="",i.height="";var u=t.offsetHeight,p=this.options.maxHeight,w="leaflet-popup-scrolled";p&&u>p?(i.height=p+"px",He(t,w)):Ct(t,w),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),a=this._getAnchor();Pt(this._container,i.add(a))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,i=parseInt(Me(this._container,"marginBottom"),10)||0,a=this._container.offsetHeight+i,u=this._containerWidth,p=new Z(this._containerLeft,-a-this._containerBottom);p._add(sr(this._container));var w=t.layerPointToContainerPoint(p),O=G(this.options.autoPanPadding),D=G(this.options.autoPanPaddingTopLeft||O),H=G(this.options.autoPanPaddingBottomRight||O),Q=t.getSize(),be=0,Re=0;w.x+u+H.x>Q.x&&(be=w.x+u-Q.x+H.x),w.x-be-D.x<0&&(be=w.x-D.x),w.y+a+H.y>Q.y&&(Re=w.y+a-Q.y+H.y),w.y-Re-D.y<0&&(Re=w.y-D.y),(be||Re)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([be,Re]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Dw=function(t,i){return new Ds(t,i)};it.mergeOptions({closePopupOnClick:!0}),it.include({openPopup:function(t,i,a){return this._initOverlay(Ds,t,i,a).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Hn.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Ds,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof ar||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Hr(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof Cr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=i,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Fs=Un.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Un.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Un.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Un.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ne("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,a,u=this._map,p=this._container,w=u.latLngToContainerPoint(u.getCenter()),O=u.layerPointToContainerPoint(t),D=this.options.direction,H=p.offsetWidth,Q=p.offsetHeight,be=G(this.options.offset),Re=this._getAnchor();D==="top"?(i=H/2,a=Q):D==="bottom"?(i=H/2,a=0):D==="center"?(i=H/2,a=Q/2):D==="right"?(i=0,a=Q/2):D==="left"?(i=H,a=Q/2):O.x<w.x?(D="right",i=0,a=Q/2):(D="left",i=H+(be.x+Re.x)*2,a=Q/2),t=t.subtract(G(i,a,!0)).add(be).add(Re),Ct(p,"leaflet-tooltip-right"),Ct(p,"leaflet-tooltip-left"),Ct(p,"leaflet-tooltip-top"),Ct(p,"leaflet-tooltip-bottom"),He(p,"leaflet-tooltip-"+D),Pt(p,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ke(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return G(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Fw=function(t,i){return new Fs(t,i)};it.include({openTooltip:function(t,i,a){return this._initOverlay(Fs,t,i,a).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Hn.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Fs,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var i=t?"off":"on",a={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?a.add=this._openTooltip:(a.mouseover=this._openTooltip,a.mouseout=this.closeTooltip,a.click=this._openTooltip,this._map?this._addFocusListeners():a.add=this._addFocusListeners),this._tooltip.options.sticky&&(a.mousemove=this._moveTooltip),this[i](a),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof ar||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&(je(i,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),je(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&i.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var i=this;this._map.once("moveend",function(){i._openOnceFlag=!1,i._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var i=t.latlng,a,u;this._tooltip.options.sticky&&t.originalEvent&&(a=this._map.mouseEventToContainerPoint(t.originalEvent),u=this._map.containerPointToLayerPoint(a),i=this._map.layerPointToLatLng(u)),this._tooltip.setLatLng(i)}});var zp=Eo.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),a=this.options;if(a.html instanceof Element?(Tn(i),i.appendChild(a.html)):i.innerHTML=a.html!==!1?a.html:"",a.bgPos){var u=G(a.bgPos);i.style.backgroundPosition=-u.x+"px "+-u.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});function Hw(t){return new zp(t)}Eo.Default=bi;var _i=Hn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ve.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){x(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Ue(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(gn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(zn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=g(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof Z?t:new Z(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i=this.getPane().children,a=-t(-1/0,1/0),u=0,p=i.length,w;u<p;u++)w=i[u].style.zIndex,i[u]!==this._container&&w&&(a=t(a,+w));isFinite(a)&&(this.options.zIndex=a+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ve.ielt9){ke(this._container,this.options.opacity);var t=+new Date,i=!1,a=!1;for(var u in this._tiles){var p=this._tiles[u];if(!(!p.current||!p.loaded)){var w=Math.min(1,(t-p.loaded)/200);ke(p.el,w),w<1?i=!0:(p.active?a=!0:this._onOpaqueTile(p),p.active=!0)}}a&&!this._noPrune&&this._pruneTiles(),i&&(j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=Ne("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t!==void 0){for(var a in this._levels)a=Number(a),this._levels[a].el.children.length||a===t?(this._levels[a].el.style.zIndex=i-Math.abs(t-a),this._onUpdateLevel(a)):(Ue(this._levels[a].el),this._removeTilesAtZoom(a),this._onRemoveLevel(a),delete this._levels[a]);var u=this._levels[t],p=this._map;return u||(u=this._levels[t]={},u.el=Ne("div","leaflet-tile-container leaflet-zoom-animated",this._container),u.el.style.zIndex=i,u.origin=p.project(p.unproject(p.getPixelOrigin()),t).round(),u.zoom=t,this._setZoomTransform(u,p.getCenter(),p.getZoom()),v(u.el.offsetWidth),this._onCreateLevel(u)),this._level=u,u}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var t,i,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var u=i.coords;this._retainParent(u.x,u.y,u.z,u.z-5)||this._retainChildren(u.x,u.y,u.z,u.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)Ue(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,a,u){var p=Math.floor(t/2),w=Math.floor(i/2),O=a-1,D=new Z(+p,+w);D.z=+O;var H=this._tileCoordsToKey(D),Q=this._tiles[H];return Q&&Q.active?(Q.retain=!0,!0):(Q&&Q.loaded&&(Q.retain=!0),O>u?this._retainParent(p,w,O,u):!1)},_retainChildren:function(t,i,a,u){for(var p=2*t;p<2*t+2;p++)for(var w=2*i;w<2*i+2;w++){var O=new Z(p,w);O.z=a+1;var D=this._tileCoordsToKey(O),H=this._tiles[D];if(H&&H.active){H.retain=!0;continue}else H&&H.loaded&&(H.retain=!0);a+1<u&&this._retainChildren(p,w,a+1,u)}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return i.minNativeZoom!==void 0&&t<i.minNativeZoom?i.minNativeZoom:i.maxNativeZoom!==void 0&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,a,u){var p=Math.round(i);this.options.maxZoom!==void 0&&p>this.options.maxZoom||this.options.minZoom!==void 0&&p<this.options.minZoom?p=void 0:p=this._clampZoom(p);var w=this.options.updateWhenZooming&&p!==this._tileZoom;(!u||w)&&(this._tileZoom=p,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),p!==void 0&&this._update(t),a||this._pruneTiles(),this._noPrune=!!a),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var a in this._levels)this._setZoomTransform(this._levels[a],t,i)},_setZoomTransform:function(t,i,a){var u=this._map.getZoomScale(a,t.zoom),p=t.origin.multiplyBy(u).subtract(this._map._getNewPixelOrigin(i,a)).round();ve.any3d?un(t.el,p,u):Pt(t.el,p)},_resetGrid:function(){var t=this._map,i=t.options.crs,a=this._tileSize=this.getTileSize(),u=this._tileZoom,p=this._map.getPixelWorldBounds(this._tileZoom);p&&(this._globalTileRange=this._pxBoundsToTileRange(p)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],u).x/a.x),Math.ceil(t.project([0,i.wrapLng[1]],u).x/a.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],u).y/a.x),Math.ceil(t.project([i.wrapLat[1],0],u).y/a.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var i=this._map,a=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),u=i.getZoomScale(a,this._tileZoom),p=i.project(t,this._tileZoom).floor(),w=i.getSize().divideBy(u*2);return new ie(p.subtract(w),p.add(w))},_update:function(t){var i=this._map;if(i){var a=this._clampZoom(i.getZoom());if(t===void 0&&(t=i.getCenter()),this._tileZoom!==void 0){var u=this._getTiledPixelBounds(t),p=this._pxBoundsToTileRange(u),w=p.getCenter(),O=[],D=this.options.keepBuffer,H=new ie(p.getBottomLeft().subtract([D,-D]),p.getTopRight().add([D,-D]));if(!(isFinite(p.min.x)&&isFinite(p.min.y)&&isFinite(p.max.x)&&isFinite(p.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Q in this._tiles){var be=this._tiles[Q].coords;(be.z!==this._tileZoom||!H.contains(new Z(be.x,be.y)))&&(this._tiles[Q].current=!1)}if(Math.abs(a-this._tileZoom)>1){this._setView(t,a);return}for(var Re=p.min.y;Re<=p.max.y;Re++)for(var Xe=p.min.x;Xe<=p.max.x;Xe++){var dn=new Z(Xe,Re);if(dn.z=this._tileZoom,!!this._isValidTile(dn)){var Xt=this._tiles[this._tileCoordsToKey(dn)];Xt?Xt.current=!0:O.push(dn)}}if(O.sort(function(vn,Ao){return vn.distanceTo(w)-Ao.distanceTo(w)}),O.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Mn=document.createDocumentFragment();for(Xe=0;Xe<O.length;Xe++)this._addTile(O[Xe],Mn);this._level.el.appendChild(Mn)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var a=this._globalTileRange;if(!i.wrapLng&&(t.x<a.min.x||t.x>a.max.x)||!i.wrapLat&&(t.y<a.min.y||t.y>a.max.y))return!1}if(!this.options.bounds)return!0;var u=this._tileCoordsToBounds(t);return oe(this.options.bounds).overlaps(u)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,a=this.getTileSize(),u=t.scaleBy(a),p=u.add(a),w=i.unproject(u,t.z),O=i.unproject(p,t.z);return[w,O]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),a=new de(i[0],i[1]);return this.options.noWrap||(a=this._map.wrapLatLngBounds(a)),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),a=new Z(+i[0],+i[1]);return a.z=+i[2],a},_removeTile:function(t){var i=this._tiles[t];i&&(Ue(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){He(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=v,t.onmousemove=v,ve.ielt9&&this.options.opacity<1&&ke(t,this.options.opacity)},_addTile:function(t,i){var a=this._getTilePos(t),u=this._tileCoordsToKey(t),p=this.createTile(this._wrapCoords(t),c(this._tileReady,this,t));this._initTile(p),this.createTile.length<2&&$(c(this._tileReady,this,t,null,p)),Pt(p,a),this._tiles[u]={el:p,coords:t,current:!0},i.appendChild(p),this.fire("tileloadstart",{tile:p,coords:t})},_tileReady:function(t,i,a){i&&this.fire("tileerror",{error:i,tile:a,coords:t});var u=this._tileCoordsToKey(t);a=this._tiles[u],a&&(a.loaded=+new Date,this._map._fadeAnimated?(ke(a.el,0),j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),i||(He(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ve.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new Z(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new ie(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Vw(t){return new _i(t)}var To=_i.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,i=x(this,i),i.detectRetina&&ve.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&i===void 0&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var a=document.createElement("img");return je(a,"load",c(this._tileOnLoad,this,i,a)),je(a,"error",c(this._tileOnError,this,i,a)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(a.referrerPolicy=this.options.referrerPolicy),a.alt="",a.src=this.getTileUrl(t),a},getTileUrl:function(t){var i={r:ve.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var a=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=a),i["-y"]=a}return S(this._url,s(i,this.options))},_tileOnLoad:function(t,i){ve.ielt9?setTimeout(c(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,a){var u=this.options.errorTileUrl;u&&i.getAttribute("src")!==u&&(i.src=u),t(a,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,a=this.options.zoomReverse,u=this.options.zoomOffset;return a&&(t=i-t),t+u},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=v,i.onerror=v,!i.complete)){i.src=M;var a=this._tiles[t].coords;Ue(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:a})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",M),_i.prototype._removeTile.call(this,t)},_tileReady:function(t,i,a){if(!(!this._map||a&&a.getAttribute("src")===M))return _i.prototype._tileReady.call(this,t,i,a)}});function Dp(t,i){return new To(t,i)}var Fp=To.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var a=s({},this.defaultWmsParams);for(var u in i)u in this.options||(a[u]=i[u]);i=x(this,i);var p=i.detectRetina&&ve.retina?2:1,w=this.getTileSize();a.width=w.x*p,a.height=w.y*p,this.wmsParams=a},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,To.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),a=this._crs,u=ne(a.project(i[0]),a.project(i[1])),p=u.min,w=u.max,O=(this._wmsVersion>=1.3&&this._crs===Op?[p.y,p.x,w.y,w.x]:[p.x,p.y,w.x,w.y]).join(","),D=To.prototype.getTileUrl.call(this,t);return D+b(this.wmsParams,D,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+O},setParams:function(t,i){return s(this.wmsParams,t),i||this.redraw(),this}});function Ww(t,i){return new Fp(t,i)}To.WMS=Fp,Dp.wms=Ww;var ur=Hn.extend({options:{padding:.1},initialize:function(t){x(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),He(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var a=this._map.getZoomScale(i,this._zoom),u=this._map.getSize().multiplyBy(.5+this.options.padding),p=this._map.project(this._center,i),w=u.multiplyBy(-a).add(p).subtract(this._map._getNewPixelOrigin(t,i));ve.any3d?un(this._container,w,a):Pt(this._container,w)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),a=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new ie(a,a.add(i.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hp=ur.extend({options:{tolerance:0},getEvents:function(){var t=ur.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ur.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this),je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,Ue(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ur.prototype._update.call(this);var t=this._bounds,i=this._container,a=t.getSize(),u=ve.retina?2:1;Pt(i,t.min),i.width=u*a.x,i.height=u*a.y,i.style.width=a.x+"px",i.style.height=a.y+"px",ve.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ur.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,a=i.next,u=i.prev;a?a.prev=u:this._drawLast=u,u?u.next=a:this._drawFirst=a,delete t._order,delete this._layers[h(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var i=t.options.dashArray.split(/[, ]+/),a=[],u,p;for(p=0;p<i.length;p++){if(u=Number(i[p]),isNaN(u))return;a.push(u)}t.options._dashArray=a}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||$(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ie,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var a=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,a.x,a.y),this._ctx.clip()}this._drawing=!0;for(var u=this._drawFirst;u;u=u.next)t=u.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var a,u,p,w,O=t._parts,D=O.length,H=this._ctx;if(D){for(H.beginPath(),a=0;a<D;a++){for(u=0,p=O[a].length;u<p;u++)w=O[a][u],H[u?"lineTo":"moveTo"](w.x,w.y);i&&H.closePath()}this._fillStroke(H,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var i=t._point,a=this._ctx,u=Math.max(Math.round(t._radius),1),p=(Math.max(Math.round(t._radiusY),1)||u)/u;p!==1&&(a.save(),a.scale(1,p)),a.beginPath(),a.arc(i.x,i.y/p,u,0,Math.PI*2,!1),p!==1&&a.restore(),this._fillStroke(a,t)}},_fillStroke:function(t,i){var a=i.options;a.fill&&(t.globalAlpha=a.fillOpacity,t.fillStyle=a.fillColor||a.color,t.fill(a.fillRule||"evenodd")),a.stroke&&a.weight!==0&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=a.opacity,t.lineWidth=a.weight,t.strokeStyle=a.color,t.lineCap=a.lineCap,t.lineJoin=a.lineJoin,t.stroke())},_onClick:function(t){for(var i=this._map.mouseEventToLayerPoint(t),a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(a))&&(u=a);this._fireEvent(u?[u]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(Ct(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(u=a);u!==this._hoveredLayer&&(this._handleMouseOut(t),u&&(He(this._container,"leaflet-interactive"),this._fireEvent([u],t,"mouseover"),this._hoveredLayer=u)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,a){this._map._fireDOMEvent(i,a||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(a)a.prev=u;else return;u?u.next=a:a&&(this._drawFirst=a),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t)}},_bringToBack:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(u)u.next=a;else return;a?a.prev=u:u&&(this._drawLast=u),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)}}});function Vp(t){return ve.canvas?new Hp(t):null}var xi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),jw={_initContainer:function(){this._container=Ne("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ur.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=xi("shape");He(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=xi("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;Ue(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,a=t._fill,u=t.options,p=t._container;p.stroked=!!u.stroke,p.filled=!!u.fill,u.stroke?(i||(i=t._stroke=xi("stroke")),p.appendChild(i),i.weight=u.weight+"px",i.color=u.color,i.opacity=u.opacity,u.dashArray?i.dashStyle=P(u.dashArray)?u.dashArray.join(" "):u.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=u.lineCap.replace("butt","flat"),i.joinstyle=u.lineJoin):i&&(p.removeChild(i),t._stroke=null),u.fill?(a||(a=t._fill=xi("fill")),p.appendChild(a),a.color=u.fillColor||u.color,a.opacity=u.fillOpacity):a&&(p.removeChild(a),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),a=Math.round(t._radius),u=Math.round(t._radiusY||a);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+a+","+u+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){gn(t._container)},_bringToBack:function(t){zn(t._container)}},Hs=ve.vml?xi:we,wi=ur.extend({_initContainer:function(){this._container=Hs("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Hs("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ue(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ur.prototype._update.call(this);var t=this._bounds,i=t.getSize(),a=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,a.setAttribute("width",i.x),a.setAttribute("height",i.y)),Pt(a,t.min),a.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Hs("path");t.options.className&&He(i,t.options.className),t.options.interactive&&He(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Ue(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,a=t.options;i&&(a.stroke?(i.setAttribute("stroke",a.color),i.setAttribute("stroke-opacity",a.opacity),i.setAttribute("stroke-width",a.weight),i.setAttribute("stroke-linecap",a.lineCap),i.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?i.setAttribute("stroke-dasharray",a.dashArray):i.removeAttribute("stroke-dasharray"),a.dashOffset?i.setAttribute("stroke-dashoffset",a.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),a.fill?(i.setAttribute("fill",a.fillColor||a.color),i.setAttribute("fill-opacity",a.fillOpacity),i.setAttribute("fill-rule",a.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,Pe(t._parts,i))},_updateCircle:function(t){var i=t._point,a=Math.max(Math.round(t._radius),1),u=Math.max(Math.round(t._radiusY),1)||a,p="a"+a+","+u+" 0 1,0 ",w=t._empty()?"M0 0":"M"+(i.x-a)+","+i.y+p+a*2+",0 "+p+-a*2+",0 ";this._setPath(t,w)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){gn(t._path)},_bringToBack:function(t){zn(t._path)}});ve.vml&&wi.include(jw);function Wp(t){return ve.svg||ve.vml?new wi(t):null}it.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var i=this._paneRenderers[t];return i===void 0&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&Vp(t)||Wp(t)}});var jp=Po.extend({initialize:function(t,i){Po.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=oe(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Zw(t,i){return new jp(t,i)}wi.create=Hs,wi.pointsToPath=Pe,cr.geometryToLayer=ks,cr.coordsToLatLng=Nc,cr.coordsToLatLngs=Rs,cr.latLngToCoords=kc,cr.latLngsToCoords=$s,cr.getFeature=Io,cr.asFeature=Bs,it.mergeOptions({boxZoom:!0});var Zp=Zn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ue(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),xr(),gc(),this._startPoint=this._map.mouseEventToContainerPoint(t),je(document,{contextmenu:Hr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Ne("div","leaflet-zoom-box",this._container),He(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new ie(this._point,this._startPoint),a=i.getSize();Pt(this._box,i.min),this._box.style.width=a.x+"px",this._box.style.height=a.y+"px"},_finish:function(){this._moved&&(Ue(this._box),Ct(this._container,"leaflet-crosshair")),pi(),vc(),bt(document,{contextmenu:Hr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var i=new de(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});it.addInitHook("addHandler","boxZoom",Zp),it.mergeOptions({doubleClickZoom:!0});var Up=Zn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,a=i.getZoom(),u=i.options.zoomDelta,p=t.originalEvent.shiftKey?a-u:a+u;i.options.doubleClickZoom==="center"?i.setZoom(p):i.setZoomAround(t.containerPoint,p)}});it.addInitHook("addHandler","doubleClickZoom",Up),it.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var qp=Zn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new wr(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}He(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ct(this._map._container,"leaflet-grab"),Ct(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=oe(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,a=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(a),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),a=this._initialWorldOffset,u=this._draggable._newPos.x,p=(u-i+a)%t+i-a,w=(u+i+a)%t-i-a,O=Math.abs(p+a)<Math.abs(w+a)?p:w;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=O},_onDragEnd:function(t){var i=this._map,a=i.options,u=!a.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),u)i.fire("moveend");else{this._prunePositions(+new Date);var p=this._lastPos.subtract(this._positions[0]),w=(this._lastTime-this._times[0])/1e3,O=a.easeLinearity,D=p.multiplyBy(O/w),H=D.distanceTo([0,0]),Q=Math.min(a.inertiaMaxSpeed,H),be=D.multiplyBy(Q/H),Re=Q/(a.inertiaDeceleration*O),Xe=be.multiplyBy(-Re/2).round();!Xe.x&&!Xe.y?i.fire("moveend"):(Xe=i._limitOffset(Xe,i.options.maxBounds),$(function(){i.panBy(Xe,{duration:Re,easeLinearity:O,noMoveStart:!0,animate:!0})}))}}});it.addInitHook("addHandler","dragging",qp),it.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Gp=Zn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),je(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),bt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,a=t.scrollTop||i.scrollTop,u=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(u,a)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},a=this.keyCodes,u,p;for(u=0,p=a.left.length;u<p;u++)i[a.left[u]]=[-1*t,0];for(u=0,p=a.right.length;u<p;u++)i[a.right[u]]=[t,0];for(u=0,p=a.down.length;u<p;u++)i[a.down[u]]=[0,t];for(u=0,p=a.up.length;u<p;u++)i[a.up[u]]=[0,-1*t]},_setZoomDelta:function(t){var i=this._zoomKeys={},a=this.keyCodes,u,p;for(u=0,p=a.zoomIn.length;u<p;u++)i[a.zoomIn[u]]=t;for(u=0,p=a.zoomOut.length;u<p;u++)i[a.zoomOut[u]]=-t},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i=t.keyCode,a=this._map,u;if(i in this._panKeys){if(!a._panAnim||!a._panAnim._inProgress)if(u=this._panKeys[i],t.shiftKey&&(u=G(u).multiplyBy(3)),a.options.maxBounds&&(u=a._limitOffset(G(u),a.options.maxBounds)),a.options.worldCopyJump){var p=a.wrapLatLng(a.unproject(a.project(a.getCenter()).add(u)));a.panTo(p)}else a.panBy(u)}else if(i in this._zoomKeys)a.setZoom(a.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else if(i===27&&a._popup&&a._popup.options.closeOnEscapeKey)a.closePopup();else return;Hr(t)}}});it.addInitHook("addHandler","keyboard",Gp),it.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Kp=Zn.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=bp(t),a=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var u=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),u),Hr(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),a=this._map.options.zoomSnap||0;t._stop();var u=this._delta/(this._map.options.wheelPxPerZoomLevel*4),p=4*Math.log(2/(1+Math.exp(-Math.abs(u))))/Math.LN2,w=a?Math.ceil(p/a)*a:p,O=t._limitZoom(i+(this._delta>0?w:-w))-i;this._delta=0,this._startTime=null,O&&(t.options.scrollWheelZoom==="center"?t.setZoom(i+O):t.setZoomAround(this._lastMousePos,i+O))}});it.addInitHook("addHandler","scrollWheelZoom",Kp);var Uw=600;it.mergeOptions({tapHold:ve.touchNative&&ve.safari&&ve.mobile,tapTolerance:15});var Qp=Zn.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var i=t.touches[0];this._startPos=this._newPos=new Z(i.clientX,i.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",en),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),Uw),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){bt(document,"touchend",en),bt(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new Z(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var a=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});a._simulated=!0,i.target.dispatchEvent(a)}});it.addInitHook("addHandler","tapHold",Qp),it.mergeOptions({touchZoom:ve.touch,bounceAtZoomLimits:!0});var Yp=Zn.extend({addHooks:function(){He(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ct(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming)){var a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(a.add(u)._divideBy(2))),this._startDist=a.distanceTo(u),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),en(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var i=this._map,a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]),p=a.distanceTo(u)/this._startDist;if(this._zoom=i.getScaleZoom(p,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&p<1||this._zoom>i.getMaxZoom()&&p>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,p===1)return}else{var w=a._add(u)._divideBy(2)._subtract(this._centerPoint);if(p===1&&w.x===0&&w.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(w),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var O=c(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(O,this,!0),en(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});it.addInitHook("addHandler","touchZoom",Yp),it.BoxZoom=Zp,it.DoubleClickZoom=Up,it.Drag=qp,it.Keyboard=Gp,it.ScrollWheelZoom=Kp,it.TapHold=Qp,it.TouchZoom=Yp,r.Bounds=ie,r.Browser=ve,r.CRS=Y,r.Canvas=Hp,r.Circle=Oc,r.CircleMarker=Ns,r.Class=W,r.Control=Fn,r.DivIcon=zp,r.DivOverlay=Un,r.DomEvent=uw,r.DomUtil=lw,r.Draggable=wr,r.Evented=J,r.FeatureGroup=ar,r.GeoJSON=cr,r.GridLayer=_i,r.Handler=Zn,r.Icon=Eo,r.ImageOverlay=zs,r.LatLng=ee,r.LatLngBounds=de,r.Layer=Hn,r.LayerGroup=So,r.LineUtil=Cw,r.Map=it,r.Marker=Os,r.Mixin=vw,r.Path=Cr,r.Point=Z,r.PolyUtil=yw,r.Polygon=Po,r.Polyline=lr,r.Popup=Ds,r.PosAnimation=_p,r.Projection=Sw,r.Rectangle=jp,r.Renderer=ur,r.SVG=wi,r.SVGOverlay=Bp,r.TileLayer=To,r.Tooltip=Fs,r.Transformation=Se,r.Util=V,r.VideoOverlay=$p,r.bind=c,r.bounds=ne,r.canvas=Vp,r.circle=Ow,r.circleMarker=Lw,r.control=vi,r.divIcon=Hw,r.extend=s,r.featureGroup=Tw,r.geoJSON=Rp,r.geoJson=Rw,r.gridLayer=Vw,r.icon=Aw,r.imageOverlay=$w,r.latLng=K,r.latLngBounds=oe,r.layerGroup=Iw,r.map=dw,r.marker=Mw,r.point=G,r.polygon=kw,r.polyline=Nw,r.popup=Dw,r.rectangle=Zw,r.setOptions=x,r.stamp=h,r.svg=Wp,r.svgOverlay=zw,r.tileLayer=Dp,r.tooltip=Fw,r.transformation=Te,r.version=o,r.videoOverlay=Bw;var qw=window.L;r.noConflict=function(){return window.L=qw,this},window.L=r})})(js,js.exports);var Fc=js.exports;const tn=rm(Fc),oC="",iC="",sC="";var It=Fc,Hc,Vc;function Wc(e){return"oninput"in e?"input":"change"}function Ci(){Hc=this._map.dragging.enabled(),Vc=this._map.tap&&this._map.tap.enabled(),this._map.dragging.disable(),this._map.tap&&this._map.tap.disable()}function Si(e){this._refocusOnMap(e),Hc&&this._map.dragging.enable(),Vc&&this._map.tap.enable()}function jc(e){return e==="undefined"?[]:Array.isArray(e)?e:[e]}function sm(){}It.Control.SideBySide=It.Control.extend({options:{thumbSize:42,padding:0},initialize:function(e,n,r){this.setLeftLayers(e),this.setRightLayers(n),It.setOptions(this,r)},getPosition:function(){var e=this._range.value,n=(.5-e)*(2*this.options.padding+this.options.thumbSize);return this._map.getSize().x*e+n},setPosition:sm,includes:It.Evented.prototype||It.Mixin.Events,addTo:function(e){this.remove(),this._map=e;var n=this._container=It.DomUtil.create("div","leaflet-sbs",e._controlContainer);this._divider=It.DomUtil.create("div","leaflet-sbs-divider",n);var r=this._range=It.DomUtil.create("input","leaflet-sbs-range",n);return r.type="range",r.min=0,r.max=1,r.step="any",r.value=.5,r.style.paddingLeft=r.style.paddingRight=this.options.padding+"px",this._addEvents(),this._updateLayers(),this},remove:function(){return this._map?(this._leftLayer&&(this._leftLayer.getPane().style.clip=""),this._rightLayer&&(this._rightLayer.getPane().style.clip=""),this._removeEvents(),It.DomUtil.remove(this._container),this._map=null,this):this},setLeftLayers:function(e){return this._leftLayers=jc(e),this._updateLayers(),this},setRightLayers:function(e){return this._rightLayers=jc(e),this._updateLayers(),this},_updateClip:function(){var e=this._map,n=e.containerPointToLayerPoint([0,0]),r=e.containerPointToLayerPoint(e.getSize()),o=n.x+this.getPosition(),s=this.getPosition();this._divider.style.left=s+"px",this.fire("dividermove",{x:s});var l="rect("+[n.y,o,r.y,n.x].join("px,")+"px)",c="rect("+[n.y,r.x,r.y,o].join("px,")+"px)";this._leftLayer&&(this._leftLayer.getPane().style.clip=l),this._rightLayer&&(this._rightLayer.getPane().style.clip=c)},_updateLayers:function(){if(!this._map)return this;var e=this._leftLayer,n=this._rightLayer;this._leftLayer=this._rightLayer=null,this._leftLayers.forEach(function(r){this._map.hasLayer(r)&&(this._leftLayer=r)},this),this._rightLayers.forEach(function(r){this._map.hasLayer(r)&&(this._rightLayer=r)},this),e!==this._leftLayer&&(e&&this.fire("leftlayerremove",{layer:e}),this._leftLayer&&this.fire("leftlayeradd",{layer:this._leftLayer})),n!==this._rightLayer&&(n&&this.fire("rightlayerremove",{layer:n}),this._rightLayer&&this.fire("rightlayeradd",{layer:this._rightLayer})),this._updateClip()},_addEvents:function(){var e=this._range,n=this._map;!n||!e||(n.on("move",this._updateClip,this),n.on("layeradd layerremove",this._updateLayers,this),It.DomEvent.on(e,Wc(e),this._updateClip,this),It.DomEvent.on(e,"touchstart",Ci,this),It.DomEvent.on(e,"touchend",Si,this),It.DomEvent.on(e,"mousedown",Ci,this),It.DomEvent.on(e,"mouseup",Si,this))},_removeEvents:function(){var e=this._range,n=this._map;e&&(It.DomEvent.off(e,Wc(e),this._updateClip,this),It.DomEvent.off(e,"touchstart",Ci,this),It.DomEvent.off(e,"touchend",Si,this),It.DomEvent.off(e,"mousedown",Ci,this),It.DomEvent.off(e,"mouseup",Si,this)),n&&(n.off("layeradd layerremove",this._updateLayers,this),n.off("move",this._updateClip,this))}}),It.control.sideBySide=function(e,n,r){return new It.Control.SideBySide(e,n,r)},It.Control.SideBySide;const Zc=({zoomLevel:e})=>Zt.jsx("div",{style:{width:"30px",height:"30px",backgroundColor:"white",borderRadius:"2px",textAlign:"center",fontSize:"20px"},children:e});function ft(e){const n=f.useRef(e);return n.current=e,f.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},[])}function yn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Uc=process.env.NODE_ENV!=="test"&&yn()?f.useLayoutEffect:f.useEffect,sn=(e,n)=>{const r=f.useRef(!0);Uc(()=>e(r.current),n),Uc(()=>(r.current=!1,()=>{r.current=!0}),[])},Zs=e=>{const n=f.useRef(!1),[r,o]=f.useState(e);f.useEffect(()=>(n.current=!1,()=>{n.current=!0}),[]);function s(l,c){c&&n.current||o(l)}return[r,s]};function qn(e,n){const[r,o]=A.useState(e),s=n!==void 0?n:r;return sn(l=>{l||o(n)},[n]),[s,o]}var Us={exports:{}},at={};/**
37
37
  * @license React
38
38
  * react-is.production.min.js
39
39
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-swipe-map",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "A React component that displays two leaflet maps side by side",
6
6
  "main": "./dist/index.umd.js",
@@ -32,6 +32,6 @@
32
32
  "antd": "^6.2.3",
33
33
  "leaflet": "^1.9.4",
34
34
  "leaflet-side-by-side": "^2.2.0",
35
- "react-swipe-map": "^1.0.0"
35
+ "react-swipe-map": "^1.0.1"
36
36
  }
37
37
  }