-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscripts.2ace2ef63a0d659d.js
More file actions
1 lines (1 loc) · 156 KB
/
Copy pathscripts.2ace2ef63a0d659d.js
File metadata and controls
1 lines (1 loc) · 156 KB
1
!function(l,b){"object"==typeof exports&&typeof module<"u"?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):b((l=typeof globalThis<"u"?globalThis:l||self).leaflet={})}(this,function(l){"use strict";function b(t){for(var i,e,n=1,o=arguments.length;n<o;n++)for(i in e=arguments[n])t[i]=e[i];return t}var $=Object.create||function(t){return nt.prototype=t,new nt};function nt(){}function S(t,i){var e,n=Array.prototype.slice;return t.bind?t.bind.apply(t,n.call(arguments,1)):(e=n.call(arguments,2),function(){return t.apply(i,e.length?e.concat(n.call(arguments)):arguments)})}var wt=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++wt),t._leaflet_id}function d(t,i,e){var n,o,s=function(){n=!1,o&&(r.apply(e,o),o=!1)},r=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(s,i),n=!0)};return r}function m(t,o,e){var n=o[1],s=n-(o=o[0]);return t===n&&e?t:((t-o)%s+s)%s+o}function f(){return!1}function z(t,i){return!1===i?t:(i=Math.pow(10,void 0===i?6:i),Math.round(t*i)/i)}function tt(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ot(t){return tt(t).split(/\s+/)}function E(t,i){for(var e in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?$(t.options):{}),i)t.options[e]=i[e];return t.options}function ae(t,i,e){var n,o=[];for(n in t)o.push(encodeURIComponent(e?n.toUpperCase():n)+"="+encodeURIComponent(t[n]));return(i&&-1!==i.indexOf("?")?"&":"?")+o.join("&")}var nn=/\{ *([\w_ -]+) *\}/g;function re(t,i){return t.replace(nn,function(e,n){if(void 0===(n=i[n]))throw new Error("No value provided for variable "+e);return"function"==typeof n?n(i):n})}var it=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Ei(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}var ei="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Oi(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var he=0;function le(t){var i=+new Date,e=Math.max(0,16-(i-he));return he=i+e,window.setTimeout(t,e)}var Bi=window.requestAnimationFrame||Oi("RequestAnimationFrame")||le,ue=window.cancelAnimationFrame||Oi("CancelAnimationFrame")||Oi("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function F(t,i,e){if(!e||Bi!==le)return Bi.call(window,S(t,i));t.call(i)}function X(t){t&&ue.call(window,t)}var on={__proto__:null,extend:b,create:$,bind:S,get lastId(){return wt},stamp:h,throttle:d,wrapNum:m,falseFn:f,formatNum:z,trim:tt,splitWords:ot,setOptions:E,getParamString:ae,template:re,isArray:it,indexOf:Ei,emptyImageUrl:ei,requestFn:Bi,cancelFn:ue,requestAnimFrame:F,cancelAnimFrame:X};function lt(){}lt.extend=function(t){function i(){E(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var e,n=i.__super__=this.prototype,o=$(n);for(e in(o.constructor=i).prototype=o,this)Object.prototype.hasOwnProperty.call(this,e)&&"prototype"!==e&&"__super__"!==e&&(i[e]=this[e]);if(t.statics&&b(i,t.statics),t.includes){var s=t.includes;if(typeof L<"u"&&L&&L.Mixin){s=it(s)?s:[s];for(var r=0;r<s.length;r++)s[r]===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)}b.apply(null,[o].concat(t.includes))}return b(o,t),delete o.statics,delete o.includes,o.options&&(o.options=n.options?$(n.options):{},b(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var a=0,u=o._initHooks.length;a<u;a++)o._initHooks[a].call(this)}},i},lt.include=function(t){var i=this.prototype.options;return b(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},lt.mergeOptions=function(t){return b(this.prototype.options,t),this},lt.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var q={on:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i);else for(var o=0,s=(t=ot(t)).length;o<s;o++)this._on(t[o],i,e);return this},off:function(t,i,e){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],i);else{t=ot(t);for(var o=1===arguments.length,s=0,r=t.length;s<r;s++)o?this._off(t[s]):this._off(t[s],i,e)}else delete this._events;return this},_on:function(t,i,e,n){"function"!=typeof i?console.warn("wrong listener type: "+typeof i):!1===this._listens(t,i,e)&&(i={fn:i,ctx:e=e===this?void 0:e},n&&(i.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(i))},_off:function(t,i,e){var n,o,s;if(this._events&&(n=this._events[t]))if(1===arguments.length){if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=f;delete this._events[t]}else"function"!=typeof i?console.warn("wrong listener type: "+typeof i):!1!==(i=this._listens(t,i,e))&&(e=n[i],this._firingCount&&(e.fn=f,this._events[t]=n=n.slice()),n.splice(i,1))},fire:function(t,i,e){if(this.listens(t,e)){var n=b({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,r=o.length;s<r;s++){var a=o[s],u=a.fn;a.once&&this.off(t,u,a.ctx),u.call(a.ctx||this,n)}this._firingCount--}}e&&this._propagateEvent(n)}return this},listens:function(t,i,e,n){"string"!=typeof t&&console.warn('"string" type argument expected');var o=i,s=("function"!=typeof i&&(n=!!i,e=o=void 0),this._events&&this._events[t]);if(s&&s.length&&!1!==this._listens(t,o,e))return!0;if(n)for(var r in this._eventParents)if(this._eventParents[r].listens(t,i,e,n))return!0;return!1},_listens:function(t,i,e){if(this._events){var n=this._events[t]||[];if(!i)return!!n.length;e===this&&(e=void 0);for(var o=0,s=n.length;o<s;o++)if(n[o].fn===i&&n[o].ctx===e)return o}return!1},once:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i,!0);else for(var o=0,s=(t=ot(t)).length;o<s;o++)this._on(t[o],i,e,!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,b({layer:t.target,propagatedFrom:t.target},t),!0)}},Nt=(q.addEventListener=q.on,q.removeEventListener=q.clearAllEventListeners=q.off,q.addOneTimeEventListener=q.once,q.fireEvent=q.fire,q.hasEventListeners=q.listens,lt.extend(q));function v(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}var ce=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function g(t,i,e){return t instanceof v?t:it(t)?new v(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new v(t.x,t.y):new v(t,i,e)}function B(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function W(t,i){return!t||t instanceof B?t:new B(t,i)}function V(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function N(t,i){return t instanceof V?t:new V(t,i)}function k(t,i,e){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==e&&(this.alt=+e)}function T(t,i,e){return t instanceof k?t:it(t)&&"object"!=typeof t[0]?3===t.length?new k(t[0],t[1],t[2]):2===t.length?new k(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new k(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new k(t,i,e)}v.prototype={clone:function(){return new v(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 v(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new v(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=ce(this.x),this.y=ce(this.y),this},distanceTo:function(e){var i=(e=g(e)).x-this.x;return e=e.y-this.y,Math.sqrt(i*i+e*e)},equals:function(t){return(t=g(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("+z(this.x)+", "+z(this.y)+")"}},B.prototype={extend:function(t){var i,e;if(t){if(t instanceof v||"number"==typeof t[0]||"x"in t)i=e=g(t);else if(i=(t=W(t)).min,e=t.max,!i||!e)return this;this.min||this.max?(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=i.clone(),this.max=e.clone())}return 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,e;return(t=("number"==typeof t[0]||t instanceof v?g:W)(t))instanceof B?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(s){s=W(s);var i=this.min,e=this.max,n=s.min,o=(s=s.max).x>=i.x&&n.x<=e.x;return s=s.y>=i.y&&n.y<=e.y,o&&s},overlaps:function(s){s=W(s);var i=this.min,e=this.max,n=s.min,o=(s=s.max).x>i.x&&n.x<e.x;return s=s.y>i.y&&n.y<e.y,o&&s},isValid:function(){return!(!this.min||!this.max)},pad:function(o){var i=this.min,e=this.max,n=Math.abs(i.x-e.x)*o;return o=Math.abs(i.y-e.y)*o,W(g(i.x-n,i.y-o),g(e.x+n,e.y+o))},equals:function(t){return!!t&&(t=W(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},V.prototype={extend:function(t){var i,e,n=this._southWest,o=this._northEast;if(t instanceof k)e=i=t;else{if(!(t instanceof V))return t?this.extend(T(t)||N(t)):this;if(e=t._northEast,!(i=t._southWest)||!e)return this}return n||o?(n.lat=Math.min(i.lat,n.lat),n.lng=Math.min(i.lng,n.lng),o.lat=Math.max(e.lat,o.lat),o.lng=Math.max(e.lng,o.lng)):(this._southWest=new k(i.lat,i.lng),this._northEast=new k(e.lat,e.lng)),this},pad:function(o){var i=this._southWest,e=this._northEast,n=Math.abs(i.lat-e.lat)*o;return o=Math.abs(i.lng-e.lng)*o,new V(new k(i.lat-n,i.lng-o),new k(e.lat+n,e.lng+o))},getCenter:function(){return new k((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 k(this.getNorth(),this.getWest())},getSouthEast:function(){return new k(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof k||"lat"in t?T:N)(t);var i,e,n=this._southWest,o=this._northEast;return t instanceof V?(i=t.getSouthWest(),e=t.getNorthEast()):i=e=t,i.lat>=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(s){s=N(s);var i=this._southWest,e=this._northEast,n=s.getSouthWest(),o=(s=s.getNorthEast()).lat>=i.lat&&n.lat<=e.lat;return s=s.lng>=i.lng&&n.lng<=e.lng,o&&s},overlaps:function(s){s=N(s);var i=this._southWest,e=this._northEast,n=s.getSouthWest(),o=(s=s.getNorthEast()).lat>i.lat&&n.lat<e.lat;return s=s.lng>i.lng&&n.lng<e.lng,o&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=N(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}};var ut={latLngToPoint:function(t,i){return t=this.projection.project(t),i=this.scale(i),this.transformation._transform(t,i)},pointToLatLng:function(t,i){return i=this.scale(i),t=this.transformation.untransform(t,i),this.projection.unproject(t)},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){var i;return this.infinite?null:(i=this.projection.bounds,t=this.scale(t),new B(this.transformation.transform(i.min,t),this.transformation.transform(i.max,t)))},infinite:!(k.prototype={equals:function(t,i){return!!t&&(t=T(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return"LatLng("+z(this.lat,t)+", "+z(this.lng,t)+")"},distanceTo:function(t){return ft.distance(this,T(t))},wrap:function(){return ft.wrapLatLng(this)},toBounds:function(i){var e=(i=180*i/40075017)/Math.cos(Math.PI/180*this.lat);return N([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new k(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var i=this.wrapLng?m(t.lng,this.wrapLng,!0):t.lng;return new k(this.wrapLat?m(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var n=t.getCenter(),i=this.wrapLatLng(n),e=n.lat-i.lat;return n=n.lng-i.lng,0==e&&0==n?t:(i=t.getSouthWest(),t=t.getNorthEast(),new V(new k(i.lat-e,i.lng-n),new k(t.lat-e,t.lng-n)))}},ft=b({},ut,{wrapLng:[-180,180],R:6371e3,distance:function(r,s){var a=Math.PI/180,e=r.lat*a,n=s.lat*a,o=Math.sin((s.lat-r.lat)*a/2);return s=Math.sin((s.lng-r.lng)*a/2),r=o*o+Math.cos(e)*Math.cos(n)*s*s,a=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r)),this.R*a}}),st={R:st=6378137,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE;return e=Math.max(Math.min(e,t.lat),-e),e=Math.sin(e*i),new v(this.R*t.lng*i,this.R*Math.log((1+e)/(1-e))/2)},unproject:function(t){var i=180/Math.PI;return new k((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:new B([-(st*=Math.PI),-st],[st,st])};function Ai(t,i,e,n){it(t)?(this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3]):(this._a=t,this._b=i,this._c=e,this._d=n)}function Rt(t,i,e,n){return new Ai(t,i,e,n)}Ai.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return t.x=(i=i||1)*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return new v((t.x/(i=i||1)-this._b)/this._a,(t.y/i-this._d)/this._c)}};var jt=b({},ft,{code:"EPSG:3857",projection:st,transformation:Rt(jt=.5/(Math.PI*st.R),.5,-jt,.5)}),sn=b({},jt,{code:"EPSG:900913"});function _e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function de(t,i){for(var e,n,o,s,r="",a=0,u=t.length;a<u;a++){for(e=0,n=(o=t[a]).length;e<n;e++)r+=(e?"L":"M")+(s=o[e]).x+" "+s.y;r+=i?p.svg?"z":"x":""}return r||"M0 0"}var mt=document.documentElement.style,zt="ActiveXObject"in window,Ji=zt&&!document.addEventListener,G="msLaunchUri"in navigator&&!("documentMode"in document),Gt=at("webkit"),_i=at("android"),pi=at("android 2")||at("android 3"),Mt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ct=(Mt=_i&&at("Google")&&Mt<537&&!("AudioNode"in window),!!window.opera),mi=!G&&at("chrome"),ni=at("gecko")&&!Gt&&!Ct&&!zt,ee=!mi&&at("safari"),fi=at("phantom"),U="OTransition"in mt,Ht=0===navigator.platform.indexOf("Win"),Li=zt&&"transition"in mt,Jt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!pi,zi=(mt="MozPerspective"in mt,!window.L_DISABLE_3D&&(Li||Jt||mt)&&!U&&!fi),ki=(yt=typeof orientation<"u"||at("mobile"))&&Gt,Si=yt&&Jt,ti=!window.PointerEvent&&window.MSPointerEvent,ii=!(!window.PointerEvent&&!ti),pe="ontouchstart"in window||!!window.TouchEvent,an=!window.L_NO_TOUCH&&(pe||ii),rn=yt&&Ct,hn=yt&&ni,ln=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),un=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",f,i),window.removeEventListener("testPassiveEventSupport",f,i)}catch{}return t}(),cn=!!document.createElement("canvas").getContext,Ii=!(!document.createElementNS||!_e("svg").createSVGRect),oi=!!Ii&&((oi=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(oi.firstChild&&oi.firstChild.namespaceURI));function at(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var p={ie:zt,ielt9:Ji,edge:G,webkit:Gt,android:_i,android23:pi,androidStock:Mt,opera:Ct,chrome:mi,gecko:ni,safari:ee,phantom:fi,opera12:U,win:Ht,ie3d:Li,webkit3d:Jt,gecko3d:mt,any3d:zi,mobile:yt,mobileWebkit:ki,mobileWebkit3d:Si,msPointer:ti,pointer:ii,touch:an,touchNative:pe,mobileOpera:rn,mobileGecko:hn,retina:ln,passiveEvents:un,canvas:cn,svg:Ii,vml:!Ii&&function(){try{var t=document.createElement("div"),i=(t.innerHTML='<v:shape adj="1"/>',t.firstChild);return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch{return!1}}(),inlineSvg:oi,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},me=p.msPointer?"MSPointerDown":"pointerdown",fe=p.msPointer?"MSPointerMove":"pointermove",ge=p.msPointer?"MSPointerUp":"pointerup",ve=p.msPointer?"MSPointerCancel":"pointercancel",Di={touchstart:me,touchmove:fe,touchend:ge,touchcancel:ve},ye={touchstart:function(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&j(i),si(t,i)},touchmove:si,touchend:si,touchcancel:si},kt={},we=!1;function dn(t){kt[t.pointerId]=t}function pn(t){kt[t.pointerId]&&(kt[t.pointerId]=t)}function xe(t){delete kt[t.pointerId]}function si(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){for(var e in i.touches=[],kt)i.touches.push(kt[e]);i.changedTouches=[i],t(i)}}var Ni,St,Ft,ai,ri,Ri,ji=ui(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Wt=ui(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),be="webkitTransition"===Wt||"OTransition"===Wt?Wt+"End":"transitionend";function Le(t){return"string"==typeof t?document.getElementById(t):t}function Vt(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];return"auto"===(e=e&&"auto"!==e||!document.defaultView?e:(t=document.defaultView.getComputedStyle(t,null))?t[i]:null)?null:e}function C(t,i,e){return(t=document.createElement(t)).className=i||"",e&&e.appendChild(t),t}function A(t){var i=t.parentNode;i&&i.removeChild(t)}function hi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Zt(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function Et(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function Hi(t,i){return void 0!==t.classList?t.classList.contains(i):0<(t=li(t)).length&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(t)}function P(t,i){var e;if(void 0!==t.classList)for(var n=ot(i),o=0,s=n.length;o<s;o++)t.classList.add(n[o]);else Hi(t,i)||Fi(t,((e=li(t))?e+" ":"")+i)}function I(t,i){void 0!==t.classList?t.classList.remove(i):Fi(t,tt((" "+li(t)+" ").replace(" "+i+" "," ")))}function Fi(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function li(t){return void 0===(t=t.correspondingElement?t.correspondingElement:t).className.baseVal?t.className:t.className.baseVal}function J(t,i){if("opacity"in t.style)t.style.opacity=i;else if("filter"in t.style){var e=!1,n="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(n)}catch{if(1===i)return}i=Math.round(100*i),e?(e.Enabled=100!==i,e.Opacity=i):t.style.filter+=" progid:"+n+"(opacity="+i+")"}}function ui(t){for(var i=document.documentElement.style,e=0;e<t.length;e++)if(t[e]in i)return t[e];return!1}function xt(t,i,e){i=i||new v(0,0),t.style[ji]=(p.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(e?" scale("+e+")":"")}function R(t,i){t._leaflet_pos=i,p.any3d?xt(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function bt(t){return t._leaflet_pos||new v(0,0)}function Wi(){y(window,"dragstart",j)}function Vi(){Z(window,"dragstart",j)}function Ui(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(ci(),Ri=(ri=t).style.outlineStyle,t.style.outlineStyle="none",y(window,"keydown",ci))}function ci(){ri&&(ri.style.outlineStyle=Ri,Ri=ri=void 0,Z(window,"keydown",ci))}function Pe(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function qi(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}function y(t,i,e,n){if(i&&"object"==typeof i)for(var o in i)Ki(t,o,i[o],e);else for(var s=0,r=(i=ot(i)).length;s<r;s++)Ki(t,i[s],e,n);return this}ai="onselectstart"in document?(Ft=function(){y(window,"selectstart",j)},function(){Z(window,"selectstart",j)}):(St=ui(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Ft=function(){var t;St&&(t=document.documentElement.style,Ni=t[St],t[St]="none")},function(){St&&(document.documentElement.style[St]=Ni,Ni=void 0)}),zt={__proto__:null,TRANSFORM:ji,TRANSITION:Wt,TRANSITION_END:be,get:Le,getStyle:Vt,create:C,remove:A,empty:hi,toFront:Zt,toBack:Et,hasClass:Hi,addClass:P,removeClass:I,setClass:Fi,getClass:li,setOpacity:J,testProp:ui,setTransform:xt,setPosition:R,getPosition:bt,get disableTextSelection(){return Ft},get enableTextSelection(){return ai},disableImageDrag:Wi,enableImageDrag:Vi,preventOutline:Ui,restoreOutline:ci,getSizedParentNode:Pe,getScale:qi};var rt="_leaflet_events";function Z(t,i,e,n){if(1===arguments.length)Te(t),delete t[rt];else if(i&&"object"==typeof i)for(var o in i)Yi(t,o,i[o],e);else if(i=ot(i),2===arguments.length)Te(t,function(a){return-1!==Ei(i,a)});else for(var s=0,r=i.length;s<r;s++)Yi(t,i[s],e,n);return this}function Te(t,i){for(var e in t[rt]){var n=e.split(/\d/)[0];i&&!i(n)||Yi(t,n,null,null,e)}}var Gi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ki(t,i,e,n){var o,s,r=i+h(e)+(n?"_"+h(n):"");t[rt]&&t[rt][r]||(s=o=function(a){return e.call(n||t,a||window.event)},!p.touchNative&&p.pointer&&0===i.indexOf("touch")?o=function _n(t,i,e){return"touchstart"!==i||we||(document.addEventListener(me,dn,!0),document.addEventListener(fe,pn,!0),document.addEventListener(ge,xe,!0),document.addEventListener(ve,xe,!0),we=!0),ye[i]?(e=ye[i].bind(this,e),t.addEventListener(Di[i],e,!1),e):(console.warn("wrong event specified:",i),f)}(t,i,o):p.touch&&"dblclick"===i?o=function fn(t,i){t.addEventListener("dblclick",i);var e,n=0;function o(s){var r;1!==s.detail?e=s.detail:"mouse"===s.pointerType||s.sourceCapabilities&&!s.sourceCapabilities.firesTouchEvents||(r=Me(s)).some(function(a){return a instanceof HTMLLabelElement&&a.attributes.for})&&!r.some(function(a){return a instanceof HTMLInputElement||a instanceof HTMLSelectElement})||((r=Date.now())-n<=200?2===++e&&i(function(a){var u,c,_={};for(c in a)_[c]=(u=a[c])&&u.bind?u.bind(a):u;return(a=_).type="dblclick",_.detail=2,_.isTrusted=!1,_._simulated=!0,_}(s)):e=1,n=r)}return t.addEventListener("click",o),{dblclick:i,simDblclick:o}}(t,o):"addEventListener"in t?"touchstart"===i||"touchmove"===i||"wheel"===i||"mousewheel"===i?t.addEventListener(Gi[i]||i,o,!!p.passiveEvents&&{passive:!1}):"mouseenter"===i||"mouseleave"===i?t.addEventListener(Gi[i],o=function(a){a=a||window.event,Xi(t,a)&&s(a)},!1):t.addEventListener(i,s,!1):t.attachEvent("on"+i,o),t[rt]=t[rt]||{},t[rt][r]=o)}function Yi(t,i,a,n,o){var s,r;o=o||i+h(a)+(n?"_"+h(n):""),(a=t[rt]&&t[rt][o])&&(!p.touchNative&&p.pointer&&0===i.indexOf("touch")?(n=t,r=a,Di[s=i]?n.removeEventListener(Di[s],r,!1):console.warn("wrong event specified:",s)):p.touch&&"dblclick"===i?((r=t).removeEventListener("dblclick",(n=a).dblclick),r.removeEventListener("click",n.simDblclick)):"removeEventListener"in t?t.removeEventListener(Gi[i]||i,a,!1):t.detachEvent("on"+i,a),t[rt][o]=null)}function Lt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function $i(t){return Ki(t,"wheel",Lt),this}function Ut(t){return y(t,"mousedown touchstart dblclick contextmenu",Lt),t._leaflet_disable_click=!0,this}function j(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Pt(t){return j(t),Lt(t),this}function Me(t){if(t.composedPath)return t.composedPath();for(var i=[],e=t.target;e;)i.push(e),e=e.parentNode;return i}function Ce(t,i){var e,n;return i?(n=(e=qi(i)).boundingClientRect,new v((t.clientX-n.left)/e.x-i.clientLeft,(t.clientY-n.top)/e.y-i.clientTop)):new v(t.clientX,t.clientY)}var gn=p.linux&&p.chrome?window.devicePixelRatio:p.mac?3*window.devicePixelRatio:0<window.devicePixelRatio?2*window.devicePixelRatio:1;function ze(t){return p.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/gn:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Xi(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch{return!1}return e!==t}Ji={__proto__:null,on:y,off:Z,stopPropagation:Lt,disableScrollPropagation:$i,disableClickPropagation:Ut,preventDefault:j,stop:Pt,getPropagationPath:Me,getMousePosition:Ce,getWheelDelta:ze,isExternalTarget:Xi,addListener:y,removeListener:Z};var ke=Nt.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=bt(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=F(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,e=1e3*this._duration;i<e?this._runFrame(this._easeOut(i/e),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){t=this._startPos.add(this._offset.multiplyBy(t)),i&&t._round(),R(this._el,t),this.fire("step")},_complete:function(){X(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),M=Nt.extend({options:{crs:jt,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=E(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=S(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(T(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Wt&&p.any3d&&!p.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),y(this._proxy,be,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,e){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(T(t),i,this.options.maxBounds),e=e||{},this._stop(),this._loaded&&!e.reset&&!0!==e&&(void 0!==e.animate&&(e.zoom=b({animate:e.animate},e.zoom),e.pan=b({animate:e.animate,duration:e.duration},e.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,e.zoom):this._tryAnimatedPan(t,e.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i,e.pan&&e.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 this.setZoom(this._zoom+(t=t||(p.any3d?this.options.zoomDelta:1)),i)},zoomOut:function(t,i){return this.setZoom(this._zoom-(t=t||(p.any3d?this.options.zoomDelta:1)),i)},setZoomAround:function(o,i,e){var s=this.getZoomScale(i),n=this.getSize().divideBy(2);return o=(o instanceof v?o:this.latLngToContainerPoint(o)).subtract(n).multiplyBy(1-1/s),s=this.containerPointToLatLng(n.add(o)),this.setView(s,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():N(t);var e=g(i.paddingTopLeft||i.padding||[0,0]),n=g(i.paddingBottomRight||i.padding||[0,0]),o=this.getBoundsZoom(t,!1,e.add(n));return(o="number"==typeof i.maxZoom?Math.min(i.maxZoom,o):o)===1/0?{center:t.getCenter(),zoom:o}:(i=n.subtract(e).divideBy(2),n=this.project(t.getSouthWest(),o),e=this.project(t.getNorthEast(),o),{center:this.unproject(n.add(e).divideBy(2).add(i),o),zoom:o})},fitBounds:function(t,i){if((t=N(t)).isValid())return t=this._getBoundsCenterZoom(t,i),this.setView(t.center,t.zoom,i);throw new Error("Bounds are not valid.")},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){var e;return i=i||{},(t=g(t).round()).x||t.y?(!0===i.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new ke,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),!1!==i.animate?(P(this._mapPane,"leaflet-pan-anim"),e=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend")},flyTo:function(t,i,e){if(!1===(e=e||{}).animate||!p.any3d)return this.setView(t,i,e);this._stop();var n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),r=this._zoom,a=(t=T(t),i=void 0===i?r:i,Math.max(s.x,s.y)),u=a*this.getZoomScale(r,i),c=o.distanceTo(n)||1,_=1.42,w=_*_;function x(D){return D=(u*u-a*a+(D?-1:1)*w*w*c*c)/(2*(D?u:a)*w*c),(D=Math.sqrt(D*D+1)-D)<1e-9?-18:Math.log(D)}function O(D){return(Math.exp(D)-Math.exp(-D))/2}function K(D){return(Math.exp(D)+Math.exp(-D))/2}var H=x(0),yn=Date.now(),tn=(x(1)-H)/_,wn=e.duration?1e3*e.duration:1e3*tn*.8;return this._moveStart(!0,e.noMoveStart),function D(){var Zi=(Date.now()-yn)/wn,en=(1-Math.pow(1-Zi,1.5))*tn;Zi<=1?(this._flyToFrame=F(D,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(function Y(D){return a*(K(H)*(O(D=H+_*D)/K(D))-O(H))/w}(en)/c)),r),this.getScaleZoom(a/(Zi=en,a*(K(H)/K(H+_*Zi))),r),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,i){return t=this._getBoundsCenterZoom(t,i),this.flyTo(t.center,t.zoom,i)},setMaxBounds:function(t){return t=N(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(n,i){this._enforcingBounds=!0;var e=this.getCenter();return n=this._limitCenter(e,this._zoom,N(n)),e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},panInside:function(o,i){var s=g((i=i||{}).paddingTopLeft||i.padding||[0,0]),e=g(i.paddingBottomRight||i.padding||[0,0]),n=this.project(this.getCenter()),r=(o=this.project(o),(s=W([(r=this.getPixelBounds()).min.add(s),r.max.subtract(e)])).getSize());return s.contains(o)||(this._enforcingBounds=!0,e=o.subtract(s.getCenter()),s=s.extend(o).getSize().subtract(r),n.x+=e.x<0?-s.x:s.x,n.y+=e.y<0?-s.y:s.y,this.panTo(this.unproject(n),i),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=b({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize(),e=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),o=i.divideBy(2).round(),n=e.divideBy(2).round();return(o=o.subtract(n)).x||o.y?(t.animate&&t.pan?this.panBy(o):(t.pan&&this._rawPanBy(o),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(S(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:e})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){var i,e;return t=this._locateOptions=b({timeout:1e4,watch:!1},t),"geolocation"in navigator?(i=S(this._handleGeolocationResponse,this),e=S(this._handleGeolocationError,this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,e,t):navigator.geolocation.getCurrentPosition(i,e,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i;this._container._leaflet_id&&(i=t.code,t=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i,e,n=new k(t.coords.latitude,t.coords.longitude),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions,r=(s.setView&&(i=this.getBoundsZoom(o),this.setView(n,s.maxZoom?Math.min(i,s.maxZoom):i)),{latlng:n,bounds:o,timestamp:t.timestamp});for(e in t.coords)"number"==typeof t.coords[e]&&(r[e]=t.coords[e]);this.fire("locationfound",r)}},addHandler:function(t,i){return i&&(i=this[t]=new i(this),this._handlers.push(i),this.options[t]&&i.enable()),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),A(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(X(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)A(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){return i=C("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane),t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new V(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,i,a){u=N(u),a=g(a||[0,0]);var c=this.getZoom()||0,n=this.getMinZoom(),o=this.getMaxZoom(),s=u.getNorthWest(),r=(u=u.getSouthEast(),a=this.getSize().subtract(a),u=W(this.project(u,c),this.project(s,c)).getSize(),s=p.any3d?this.options.zoomSnap:1,a.x/u.x);return a=a.y/u.y,u=i?Math.max(r,a):Math.min(r,a),c=this.getScaleZoom(u,c),s&&(c=Math.round(c/(s/100))*(s/100),c=i?Math.ceil(c/s)*s:Math.floor(c/s)*s),Math.max(n,Math.min(o,c))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new v(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){return new B(t=this._getTopLeftPoint(t,i),t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(n,i){var e=this.options.crs;return n=e.zoom(n*e.scale(i=void 0===i?this._zoom:i)),isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(T(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(g(t),i)},layerPointToLatLng:function(t){return t=g(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint:function(t){return this.project(T(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(T(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,i){return this.options.crs.distance(T(t),T(i))},containerPointToLayerPoint:function(t){return g(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return g(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){return t=this.containerPointToLayerPoint(g(t)),this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(T(t)))},mouseEventToContainerPoint:function(t){return Ce(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){if(!(t=this._container=Le(t)))throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");y(t,"scroll",this._onScroll,this),this._containerId=h(t)},_initLayout:function(){var t=this._container,i=(this._fadeAnimated=this.options.fadeAnimation&&p.any3d,P(t,"leaflet-container"+(p.touch?" leaflet-touch":"")+(p.retina?" leaflet-retina":"")+(p.ielt9?" leaflet-oldie":"")+(p.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),Vt(t,"position"));"absolute"!==i&&"relative"!==i&&"fixed"!==i&&"sticky"!==i&&(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),R(this._mapPane,new v(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(P(t.markerPane,"leaflet-zoom-hide"),P(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,e){R(this._mapPane,new v(0,0));var n=!this._loaded,o=(this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset"),this._zoom!==i);this._moveStart(o,e)._move(t,i)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e,n){void 0===i&&(i=this._zoom);var o=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?e&&e.pinch&&this.fire("zoom",e):((o||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return X(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){R(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={};var i=t?Z:y;i((this._targets[h(this._container)]=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),p.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){X(this._resizeRequest),this._resizeRequest=F(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 e,n=[],o="mouseout"===i||"mouseover"===i,s=t.target||t.srcElement,r=!1;s;){if((e=this._targets[h(s)])&&("click"===i||"preclick"===i)&&this._draggableMoved(e)){r=!0;break}if(e&&e.listens(i,!0)&&(o&&!Xi(s,t)||(n.push(e),o))||s===this._container)break;s=s.parentNode}return n.length||r||o||!this.listens(i,!0)?n:[this]},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i,e=t.target||t.srcElement;!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e)||("mousedown"===(i=t.type)&&Ui(e),this._fireDOMEvent(t,i))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,e){"click"===t.type&&((a=b({},t)).type="preclick",this._fireDOMEvent(a,a.type,e));var n=this._findEventTargets(t,i);if(e){for(var o=[],s=0;s<e.length;s++)e[s].listens(i,!0)&&o.push(e[s]);n=o.concat(n)}if(n.length){"contextmenu"===i&&j(t);var r,a=n[0],u={originalEvent:t};for("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(u.containerPoint=(r=a.getLatLng&&(!a._radius||a._radius<=10))?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=r?a.getLatLng():this.layerPointToLatLng(u.layerPoint)),s=0;s<n.length;s++)if(n[s].fire(i,u,!0),u.originalEvent._stopped||!1===n[s].options.bubblingMouseEvents&&-1!==Ei(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,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 bt(this._mapPane)||new v(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){return e=this._getNewPixelOrigin(e,i),this.project(t,i)._subtract(e)},_latLngBoundsToNewLayerBounds:function(t,i,e){return e=this._getNewPixelOrigin(e,i),W([this.project(t.getSouthWest(),i)._subtract(e),this.project(t.getNorthWest(),i)._subtract(e),this.project(t.getSouthEast(),i)._subtract(e),this.project(t.getNorthEast(),i)._subtract(e)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){var n,o;return!e||(n=this.project(t,i),o=this.getSize().divideBy(2),o=new B(n.subtract(o),n.add(o)),o=this._getBoundsOffset(o,e,i),Math.abs(o.x)<=1&&Math.abs(o.y)<=1)?t:this.unproject(n.add(o),i)},_limitOffset:function(t,i){var e;return i?(e=new B((e=this.getPixelBounds()).min.add(t),e.max.add(t)),t.add(this._getBoundsOffset(e,i))):t},_getBoundsOffset:function(t,i,e){return e=(i=W(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e))).min.subtract(t.min),i=i.max.subtract(t.max),new v(this._rebound(e.x,-i.x),this._rebound(e.y,-i.y))},_rebound:function(t,i){return 0<t+i?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=p.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){I(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){return t=this._getCenterOffset(t)._trunc(),!(!0!==(i&&i.animate)&&!this.getSize().contains(t)||(this.panBy(t,i),0))},_createAnimProxy:function(){var t=this._proxy=C("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(i){var e=ji,n=this._proxy.style[e];xt(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){A(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();xt(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(!this._animatingZoom){if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i);if(n=this._getCenterOffset(t)._divideBy(1-1/n),!0!==e.animate&&!this.getSize().contains(n))return!1;F(function(){this._moveStart(!0,e.noMoveStart||!1)._animateZoom(t,i,!0)},this)}return!0},_animateZoom:function(t,i,e,n){this._mapPane&&(e&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,P(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(S(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&I(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 qt(t){return new et(t)}var Ae,et=lt.extend({options:{position:"topright"},initialize:function(t){E(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(n){this.remove(),this._map=n;var i=this._container=this.onAdd(n),e=this.getPosition();return n=n._controlCorners[e],P(i,"leaflet-control"),-1!==e.indexOf("bottom")?n.insertBefore(i,n.firstChild):n.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(A(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}}),Se=(M.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",e=this._controlContainer=C("div",i+"control-container",this._container);function n(o,s){t[o+s]=C("div",i+o+" "+i+s,e)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)A(this._controlCorners[t]);A(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),et.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e<n?-1:n<e?1:0}},initialize:function(t,i,e){for(var n in E(this,e),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in i)this._addLayer(i[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=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 et.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){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(h(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){P(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?(P(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):I(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return I(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=C("div",t),e=this.options.collapsed,n=(i.setAttribute("aria-haspopup",!0),Ut(i),$i(i),this._section=C("section",t+"-list")),o=(e&&(this._map.on("click",this.collapse,this),y(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)),this._layersLink=C("a",t+"-toggle",i));o.href="#",o.title="Layers",o.setAttribute("role","button"),y(o,{keydown:function(s){13===s.keyCode&&this._expandSafely()},click:function(s){j(s),this._expandSafely()}},this),e||this.expand(),this._baseLayersList=C("div",t+"-base",n),this._separator=C("div",t+"-separator",n),this._overlaysList=C("div",t+"-overlays",n),i.appendChild(n)},_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,e){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:e}),this.options.sortLayers&&this._layers.sort(S(function(n,o){return this.options.sortFunction(n.layer,o.layer,n.name,o.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(this._container){hi(this._baseLayersList),hi(this._overlaysList),this._layerControlInputs=[];for(var t,i,e,n=0,o=0;o<this._layers.length;o++)this._addItem(e=this._layers[o]),i=i||e.overlay,t=t||!e.overlay,n+=e.overlay?0:1;this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&1<n)?"":"none"),this._separator.style.display=i&&t?"":"none"}return this},_onLayerChange:function(e){this._handlingClick||this._update();var i=this._getLayer(h(e.target));(e=i.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null)&&this._map.fire(e,i)},_createRadioElement:function(t,i){return t='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",(i=document.createElement("div")).innerHTML=t,i.firstChild},_addItem:function(t){var i,e=document.createElement("label"),n=this._map.hasLayer(t.layer),o=((t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=n):i=this._createRadioElement("leaflet-base-layers_"+h(this),n),this._layerControlInputs.push(i),i.layerId=h(t.layer),y(i,"click",this._onInputClick,this),n=document.createElement("span")).innerHTML=" "+t.name,document.createElement("span"));return e.appendChild(o),o.appendChild(i),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;0<=s;s--)i=this._getLayer((t=e[s]).layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,i,e=this._layerControlInputs,n=this._map.getZoom(),o=e.length-1;0<=o;o--)i=this._getLayer((t=e[o]).layerId).layer,t.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section,i=(this._preventClick=!0,y(t,"click",j),this.expand(),this);setTimeout(function(){Z(t,"click",j),i._preventClick=!1})}})),Qi=et.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=C("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},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,e,n,o){return(e=C("a",e,n)).innerHTML=t,e.href="#",e.title=i,e.setAttribute("role","button"),e.setAttribute("aria-label",i),Ut(e),y(e,"click",Pt),y(e,"click",o,this),y(e,"click",this._refocusOnMap,this),e},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";I(this._zoomInButton,i),I(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(P(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(P(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Ze=(M.mergeOptions({zoomControl:!0}),M.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Qi,this.addControl(this.zoomControl))}),et.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=C("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=C("div",i,e)),t.imperial&&(this._iScale=C("div",i,e))},_update:function(){var t=(i=this._map).getSize().y/2,i=i.distance(i.containerPointToLatLng([0,t]),i.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(i)},_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);this._updateScale(this._mScale,i<1e3?i+" m":i/1e3+" km",i/t)},_updateImperial:function(n){var i,e;5280<(n*=3.2808399)?(e=this._getRoundNum(i=n/5280),this._updateScale(this._iScale,e+" mi",e/i)):(e=this._getRoundNum(n),this._updateScale(this._iScale,e+" ft",e/n))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(e){var i=Math.pow(10,(Math.floor(e)+"").length-1);return i*(10<=(e/=i)?10:5<=e?5:3<=e?3:2<=e?2:1)}})),te=et.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(p.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){E(this,t),this._attributions={}},onAdd:function(t){for(var i in(t.attributionControl=this)._container=C("div","leaflet-control-attribution"),Ut(this._container),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},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,i=[];for(t in this._attributions)this._attributions[t]&&i.push(t);var e=[];this.options.prefix&&e.push(this.options.prefix),i.length&&e.push(i.join(", ")),this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> ')}}}),Ee=((M.mergeOptions({attributionControl:!0}),M.addInitHook(function(){this.options.attributionControl&&(new te).addTo(this)}),et.Layers=Se,et.Zoom=Qi,et.Scale=Ze,et.Attribution=te,qt.layers=function(t,i,e){return new Se(t,i,e)},qt.zoom=function(t){return new Qi(t)},qt.scale=function(t){return new Ze(t)},qt.attribution=function(t){return new te(t)},G=lt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})).addTo=function(t,i){return t.addHandler(i,this),this},Gt={Events:q},p.touch?"touchstart mousedown":"mousedown"),gt=Nt.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){E(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(y(this._dragStartTarget,Ee,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(gt._dragging===this&&this.finishDrag(!0),Z(this._dragStartTarget,Ee,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var i,e;this._enabled&&(this._moved=!1,Hi(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?gt._dragging===this&&this.finishDrag():gt._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((gt._dragging=this)._preventOutline&&Ui(this._element),Wi(),Ft(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,i=Pe(this._element),this._startPoint=new v(e.clientX,e.clientY),this._startPos=bt(this._element),this._parentScale=qi(i),e="mousedown"===t.type,y(document,e?"mousemove":"touchmove",this._onMove,this),y(document,e?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var i;this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:!(i=new v((i=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,i.clientY)._subtract(this._startPoint)).x&&!i.y||Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,j(t),this._moved||(this.fire("dragstart"),this._moved=!0,P(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),P(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),R(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){I(document.body,"leaflet-dragging"),this._lastTarget&&(I(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Z(document,"mousemove touchmove",this._onMove,this),Z(document,"mouseup touchend touchcancel",this._onUp,this),Vi(),ai();var i=this._moved&&this._moving;this._moving=!1,gt._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Oe(t,i,e){for(var n,o,s,r,a,u,c,_=[1,4,2,8],w=0,x=t.length;w<x;w++)t[w]._code=Tt(t[w],i);for(s=0;s<4;s++){for(u=_[s],n=[],w=0,o=(x=t.length)-1;w<x;o=w++)a=t[o],(r=t[w])._code&u?a._code&u||((c=di(a,r,u,i,e))._code=Tt(c,i),n.push(c)):(a._code&u&&((c=di(a,r,u,i,e))._code=Tt(c,i),n.push(c)),n.push(r));t=n}return t}function Be(t,i){var e,n,o,s,r,a,u;if(!t||0===t.length)throw new Error("latlngs not passed");Q(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);for(var c=T([0,0]),_=N(t),w=(_.getNorthWest().distanceTo(_.getSouthWest())*_.getNorthEast().distanceTo(_.getNorthWest())<1700&&(c=ie(t)),t.length),x=[],O=0;O<w;O++){var K=T(t[O]);x.push(i.project(T([K.lat-c.lat,K.lng-c.lng])))}for(O=r=a=u=0,e=w-1;O<w;e=O++)a+=((n=x[O]).x+(o=x[e]).x)*(s=n.y*o.x-o.y*n.x),u+=(n.y+o.y)*s,r+=3*s;return T([(_=i.unproject(g(_=0===r?x[0]:[a/r,u/r]))).lat+c.lat,_.lng+c.lng])}function ie(t){for(var i=0,e=0,n=0,o=0;o<t.length;o++){var s=T(t[o]);i+=s.lat,e+=s.lng,n++}return T([i/n,e/n])}function Ie(t,i){if(i&&t.length){var e=t=function(a,u){for(var c=[a[0]],_=1,w=0,x=a.length;_<x;_++)(function(O,Y){var H=Y.x-O.x;return H*H+(Y=Y.y-O.y)*Y})(a[_],a[w])>u&&(c.push(a[_]),w=_);return w<x-1&&c.push(a[x-1]),c}(t,i*=i),n=e.length,o=new(typeof Uint8Array<"u"?Uint8Array:Array)(n);o[0]=o[n-1]=1,function a(u,c,_,w,x){var O,K,H,Y=0;for(K=w+1;K<=x-1;K++)Y<(H=Kt(u[K],u[w],u[x],!0))&&(O=K,Y=H);_<Y&&(c[O]=1,a(u,c,_,w,O),a(u,c,_,O,x))}(e,o,i,0,n-1);var s,r=[];for(s=0;s<n;s++)o[s]&&r.push(e[s]);return r}return t.slice()}function De(t,i,e){return Math.sqrt(Kt(t,i,e,!0))}function Ne(t,i,e,n,o){var s,r,a,u=n?Ae:Tt(t,e),c=Tt(i,e);for(Ae=c;;){if(!(u|c))return[t,i];if(u&c)return!1;a=Tt(r=di(t,i,s=u||c,e,o),e),s===u?(t=r,u=a):(i=r,c=a)}}function di(t,u,e,_,o){var s,r,a=u.x-t.x,c=(u=u.y-t.y,_.min);return _=_.max,8&e?(s=t.x+a*(_.y-t.y)/u,r=_.y):4&e?(s=t.x+a*(c.y-t.y)/u,r=c.y):2&e?(s=_.x,r=t.y+u*(_.x-t.x)/a):1&e&&(s=c.x,r=t.y+u*(c.x-t.x)/a),new v(s,r,o)}function Tt(t,i){var e=0;return t.x<i.min.x?e|=1:t.x>i.max.x&&(e|=2),t.y<i.min.y?e|=4:t.y>i.max.y&&(e|=8),e}function Kt(t,s,e,n){var o=s.x,r=e.x-o,a=e.y-(s=s.y),u=r*r+a*a;return 0<u&&(1<(u=((t.x-o)*r+(t.y-s)*a)/u)?(o=e.x,s=e.y):0<u&&(o+=r*u,s+=a*u)),r=t.x-o,a=t.y-s,n?r*r+a*a:new v(o,s)}function Q(t){return!it(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Re(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Q(t)}function je(t,i){var e,n,o,s,r,a;if(!t||0===t.length)throw new Error("latlngs not passed");Q(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);for(var u=T([0,0]),c=N(t),_=(c.getNorthWest().distanceTo(c.getSouthWest())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(u=ie(t)),t.length),w=[],x=0;x<_;x++){var O=T(t[x]);w.push(i.project(T([O.lat-u.lat,O.lng-u.lng])))}for(e=x=0;x<_-1;x++)e+=w[x].distanceTo(w[x+1])/2;if(0===e)a=w[0];else for(n=x=0;x<_-1;x++)if(e<(n+=r=(o=w[x]).distanceTo(s=w[x+1]))){a=[s.x-(r=(n-e)/r)*(s.x-o.x),s.y-r*(s.y-o.y)];break}return T([(c=i.unproject(g(a))).lat+u.lat,c.lng+u.lng])}_i={__proto__:null,clipPolygon:Oe,polygonCenter:Be,centroid:ie},pi={__proto__:null,simplify:Ie,pointToSegmentDistance:De,closestPointOnSegment:function(t,i,e){return Kt(t,i,e)},clipSegment:Ne,_getEdgeIntersection:di,_getBitCode:Tt,_sqClosestPointOnSegment:Kt,isFlat:Q,_flat:Re,polylineCenter:je},mi={__proto__:null,LonLat:Mt={project:function(t){return new v(t.lng,t.lat)},unproject:function(t){return new k(t.y,t.x)},bounds:new B([-180,-90],[180,90])},Mercator:Ct={R:6378137,R_MINOR:6356752.314245179,bounds:new B([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,s=t.lat*i,n=this.R_MINOR/e,o=(n=Math.sqrt(1-n*n))*Math.sin(s);return o=Math.tan(Math.PI/4-s/2)/Math.pow((1-o)/(1+o),n/2),s=-e*Math.log(Math.max(o,1e-10)),new v(t.lng*i*e,s)},unproject:function(t){for(var i,e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),u=0,c=.1;u<15&&1e-7<Math.abs(c);u++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=c=Math.PI/2-2*Math.atan(r*i)-a;return new k(a*e,t.x*e/n)}},SphericalMercator:st},ee=b({},ft,{code:"EPSG:3395",projection:Ct,transformation:Rt(ni=.5/(Math.PI*Ct.R),.5,-ni,.5)});var He=b({},ft,{code:"EPSG:4326",projection:Mt,transformation:Rt(1/180,1,-1/180,.5)}),Ot=(fi=b({},ut,{projection:Mt,transformation:Rt(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,n){var e=n.lng-t.lng;return n=n.lat-t.lat,Math.sqrt(e*e+n*n)},infinite:!0}),ut.Earth=ft,ut.EPSG3395=ee,ut.EPSG3857=jt,ut.EPSG900913=sn,ut.EPSG4326=He,ut.Simple=fi,U=Nt.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},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i,e=t.target;e.hasLayer(this)&&(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents&&(i=this.getEvents(),e.on(i,this),this.once("remove",function(){e.off(i,this)},this)),this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this}))}}),M.include({addLayer:function(t){var i;if(t._layerAdd)return i=h(t),this._layers[i]||((this._layers[i]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this;throw new Error("The provided object is not a Layer.")},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},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?it(t)?t:[t]:[]).length;i<e;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){t=h(t),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var t,i=1/0,e=-1/0,n=this._getZoomSpan();for(t in this._zoomBoundLayers){var o=this._zoomBoundLayers[t].options;i=void 0===o.minZoom?i:Math.min(i,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=i===1/0?void 0:i,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),U.extend({initialize:function(t,i){var e,n;if(E(this,i),this._layers={},t)for(e=0,n=t.length;e<n;e++)this.addLayer(t[e])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)(e=this._layers[i])[t]&&e[t].apply(e,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);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:h})),ct=Ot.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ot.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),Ot.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,i=new V;for(t in this._layers){var e=this._layers[t];i.extend(e.getBounds?e.getBounds():e.getLatLng())}return i}}),Bt=lt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){E(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(e)return e=this._createImg(e,i&&"IMG"===i.tagName?i:null),this._setIconStyles(e,t),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),e;if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(t,i){var e=this.options,n=g(n="number"==typeof(n=e[i+"Size"])?[n,n]:n),o=g("shadow"===i&&e.shadowAnchor||e.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")},_createImg:function(t,i){return(i=i||document.createElement("img")).src=t,i},_getIconUrl:function(t){return p.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Yt=Bt.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Yt.imagePath&&(Yt.imagePath=this._detectIconPath()),(this.options.imagePath||Yt.imagePath)+Bt.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){function i(e,n,o){return(n=n.exec(e))&&n[o]}return(t=i(t,/^url\((['"])?(.+)\1\)$/,2))&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=C("div","leaflet-default-icon-path",document.body),i=Vt(t,"background-image")||Vt(t,"backgroundImage");return document.body.removeChild(t),(i=this._stripUrl(i))?i:(t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-11-1):""}}),Fe=G.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new gt(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),P(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&&I(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,e=i._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=bt(i._icon),r=e.getPixelBounds(),a=e.getPixelOrigin();(a=W(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o))).contains(s)||(o=g((Math.max(a.max.x,s.x)-a.max.x)/(r.max.x-a.max.x)-(Math.min(a.min.x,s.x)-a.min.x)/(r.min.x-a.min.x),(Math.max(a.max.y,s.y)-a.max.y)/(r.max.y-a.max.y)-(Math.min(a.min.y,s.y)-a.min.y)/(r.min.y-a.min.y)).multiplyBy(n),e.panBy(o,{animate:!1}),this._draggable._newPos._add(o),this._draggable._startPos._add(o),R(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=F(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&&(X(this._panRequest),this._panRequest=F(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,e=i._shadow,n=bt(i._icon),o=i._map.layerPointToLatLng(n);e&&R(e,n),i._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){X(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),gi=U.extend({options:{icon:new Yt,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){E(this,i),this._latlng=T(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=T(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(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var n,t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),e=!1,o=!1;(n=t.icon.createIcon(this._icon))!==this._icon&&(this._icon&&this._removeIcon(),e=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),P(n,i),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&y(n,"focus",this._panOnFocus,this),(n=t.icon.createShadow(this._shadow))!==this._shadow&&(this._removeShadow(),o=!0),n&&(P(n,i),n.alt=""),this._shadow=n,t.opacity<1&&this._updateOpacity(),e&&this.getPane().appendChild(this._icon),this._initInteraction(),n&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Z(this._icon,"focus",this._panOnFocus,this),A(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&A(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&R(this._icon,t),this._shadow&&R(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){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction:function(){var t;this.options.interactive&&(P(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Fe&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Fe(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&&J(this._icon,t),this._shadow&&J(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t,i,e=this._map;e&&(t=(i=this.options.icon.options).iconSize?g(i.iconSize):g(0,0),i=i.iconAnchor?g(i.iconAnchor):g(0,0),e.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:t.subtract(i)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),vt=U.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 E(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)}}),vi=vt.extend({options:{fill:!0,radius:10},initialize:function(t,i){E(this,i),this._latlng=T(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=T(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 vt.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,i=this._clickTolerance();this._pxBounds=new B(this._point.subtract(e=[e+i,t+i]),this._point.add(e))},_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()}}),ne=vi.extend({initialize:function(t,i,e){if(E(this,i="number"==typeof i?b({},e,{radius:i}):i),this._latlng=T(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 V(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:vt.prototype.setStyle,_project:function(){var t,i,e,n,o,s=this._latlng.lng,r=this._latlng.lat,a=this._map,u=a.options.crs;u.distance===ft.distance?(n=Math.PI/180,t=a.project([r+(o=this._mRadius/ft.R/n),s]),i=a.project([r-o,s]),i=t.add(i).divideBy(2),e=a.unproject(i).lat,n=Math.acos((Math.cos(o*n)-Math.sin(r*n)*Math.sin(e*n))/(Math.cos(r*n)*Math.cos(e*n)))/n,!isNaN(n)&&0!==n||(n=o/Math.cos(Math.PI/180*r)),this._point=i.subtract(a.getPixelOrigin()),this._radius=isNaN(n)?0:i.x-a.project([e,s-n]).x,this._radiusY=i.y-t.y):(o=u.unproject(u.project(this._latlng).subtract([this._mRadius,0])),this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(o).x),this._updateBounds()}}),_t=vt.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){E(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,e=null,n=Kt,o=0,s=this._parts.length;o<s;o++)for(var r=this._parts[o],a=1,u=r.length;a<u;a++){var c,_,w=n(t,c=r[a-1],_=r[a],!0);w<i&&(i=w,e=n(t,c,_))}return e&&(e.distance=Math.sqrt(i)),e},getCenter:function(){if(this._map)return je(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=T(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new V,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Q(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=Q(t),n=0,o=t.length;n<o;n++)e?(i[n]=T(t[n]),this._bounds.extend(i[n])):i[n]=this._convertLatLngs(t[n]);return i},_project:function(){var t=new B;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=new v(t=this._clickTolerance(),t);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(t,i,e){var n,o,r=t.length;if(t[0]instanceof k){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),e.extend(o[n]);i.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],i,e)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,e,n,o,s=this._parts,r=0,a=0,u=this._rings.length;r<u;r++)for(i=0,e=(o=this._rings[r]).length;i<e-1;i++)(n=Ne(o[i],o[i+1],t,i,!0))&&(s[a]=s[a]||[],s[a].push(n[0]),n[1]===o[i+1]&&i!==e-2||(s[a].push(n[1]),a++))},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,e=0,n=t.length;e<n;e++)t[e]=Ie(t[e],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,n,o,s,r,a,u=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(t))for(e=0,s=this._parts.length;e<s;e++)for(n=0,o=(r=(a=this._parts[e]).length)-1;n<r;o=n++)if((i||0!==n)&&De(t,a[o],a[n])<=u)return!0;return!1}});_t._flat=Re;var At=_t.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(this._map)return Be(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},_convertLatLngs:function(i){var e=(i=_t.prototype._convertLatLngs.call(this,i)).length;return 2<=e&&i[0]instanceof k&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){_t.prototype._setLatLngs.call(this,t),Q(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(Q(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var i=this._renderer._bounds,t=new v(t=this.options.weight,t);if(i=new B(i.min.subtract(t),i.max.add(t)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(i))if(this.options.noClip)this._parts=this._rings;else for(var e,n=0,o=this._rings.length;n<o;n++)(e=Oe(this._rings[n],i,!0)).length&&this._parts.push(e)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,e,n,o,s,r,a,u,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(u=(i=this._parts[o]).length)-1;s<u;r=s++)(e=i[s]).y>t.y!=(n=i[r]).y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(c=!c);return c||_t.prototype._containsPoint.call(this,t,!0)}}),dt=ct.extend({initialize:function(t,i){E(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=it(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)((n=o[i]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s,r=this.options;return r.filter&&!r.filter(t)||!(s=yi(t,r))?this:(s.feature=bi(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s))},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=b({},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&&("function"==typeof i&&(i=i(t.feature)),t.setStyle(i))}});function yi(t,i){var e,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,u=[],c=i&&i.pointToLayer,_=i&&i.coordsToLatLng||oe;if(!a&&!r)return null;switch(r.type){case"Point":return We(c,t,e=_(a),i);case"MultiPoint":for(o=0,s=a.length;o<s;o++)e=_(a[o]),u.push(We(c,t,e,i));return new ct(u);case"LineString":case"MultiLineString":return n=wi(a,"LineString"===r.type?0:1,_),new _t(n,i);case"Polygon":case"MultiPolygon":return n=wi(a,"Polygon"===r.type?1:2,_),new At(n,i);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var w=yi({geometry:r.geometries[o],type:"Feature",properties:t.properties},i);w&&u.push(w)}return new ct(u);case"FeatureCollection":for(o=0,s=r.features.length;o<s;o++){var x=yi(r.features[o],i);x&&u.push(x)}return new ct(u);default:throw new Error("Invalid GeoJSON object.")}}function We(t,i,e,n){return t?t(i,e):new gi(e,n&&n.markersInheritOptions&&n)}function oe(t){return new k(t[1],t[0],t[2])}function wi(t,i,e){for(var n,o=[],s=0,r=t.length;s<r;s++)n=i?wi(t[s],i-1,e):(e||oe)(t[s]),o.push(n);return o}function se(t,i){return void 0!==(t=T(t)).alt?[z(t.lng,i),z(t.lat,i),z(t.alt,i)]:[z(t.lng,i),z(t.lat,i)]}function xi(t,i,e,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(i?xi(t[s],Q(t[s])?0:i-1,e,n):se(t[s],n));return!i&&e&&0<o.length&&o.push(o[0].slice()),o}function It(t,i){return t.feature?b({},t.feature,{geometry:i}):bi(i)}function bi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function Ve(t,i){return new dt(t,i)}gi.include(Ht={toGeoJSON:function(t){return It(this,{type:"Point",coordinates:se(this.getLatLng(),t)})}}),ne.include(Ht),vi.include(Ht),_t.include({toGeoJSON:function(t){var i=!Q(this._latlngs);return It(this,{type:(i?"Multi":"")+"LineString",coordinates:xi(this._latlngs,i?1:0,!1,t)})}}),At.include({toGeoJSON:function(n){var i=!Q(this._latlngs),e=i&&!Q(this._latlngs[0]);return n=xi(this._latlngs,e?2:i?1:0,!0,n),It(this,{type:(e?"Multi":"")+"Polygon",coordinates:n=i?n:[n]})}}),Ot.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}),It(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i,e,n=this.feature&&this.feature.geometry&&this.feature.geometry.type;return"MultiPoint"===n?this.toMultiPoint(t):(i="GeometryCollection"===n,e=[],this.eachLayer(function(o){o.toGeoJSON&&(o=o.toGeoJSON(t),i?e.push(o.geometry):"FeatureCollection"===(o=bi(o)).type?e.push.apply(e,o.features):e.push(o))}),i?It(this,{geometries:e,type:"GeometryCollection"}):{type:"FeatureCollection",features:e})}}),Li=Ve;var Pi=U.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t,this._bounds=N(i),E(this,e)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(P(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){A(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&&Zt(this._image),this},bringToBack:function(){return this._map&&Et(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=N(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,i=this._image=t?this._url:C("img");P(i,"leaflet-image-layer"),this._zoomAnimated&&P(i,"leaflet-zoom-animated"),this.options.className&&P(i,this.options.className),i.onselectstart=f,i.onmousemove=f,i.onload=S(this.fire,this,"load"),i.onerror=S(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(e){var i=this._map.getZoomScale(e.zoom);e=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min,xt(this._image,e,i)},_reset:function(){var t=this._image,i=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();R(t,i.min),t.style.width=e.x+"px",t.style.height=e.y+"px"},_updateOpacity:function(){J(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Ue=Pi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,i=this._image=t?this._url:C("video");if(P(i,"leaflet-image-layer"),this._zoomAnimated&&P(i,"leaflet-zoom-animated"),this.options.className&&P(i,this.options.className),i.onselectstart=f,i.onmousemove=f,i.onloadeddata=S(this.fire,this,"load"),t){for(var e=i.getElementsByTagName("source"),n=[],o=0;o<e.length;o++)n.push(e[o].src);this._url=0<e.length?n:[i.src]}else{it(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 s=0;s<this._url.length;s++){var r=C("source");r.src=this._url[s],i.appendChild(r)}}}}),qe=Pi.extend({_initImage:function(){var t=this._image=this._url;P(t,"leaflet-image-layer"),this._zoomAnimated&&P(t,"leaflet-zoom-animated"),this.options.className&&P(t,this.options.className),t.onselectstart=f,t.onmousemove=f}}),ht=U.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof k||it(t))?(this._latlng=T(t),E(this,i)):(E(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&J(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&J(this._container,1),this.bringToFront(),this.options.interactive&&(P(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(J(this._container,0),this._removeTimeout=setTimeout(S(A,void 0,this._container),200)):A(this._container),this.options.interactive&&(I(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=T(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&&Zt(this._container),this},bringToBack:function(){return this._map&&Et(this._container),this},_prepareOpen:function(t){if(!(e=this._source)._map)return!1;if(e instanceof ct){var i,e=null,n=this._source._layers;for(i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){var t,i,e;this._map&&(i=this._map.latLngToLayerPoint(this._latlng),t=g(this.options.offset),e=this._getAnchor(),this._zoomAnimated?R(this._container,i.add(e)):t=t.add(i).add(e),i=this._containerBottom=-t.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+t.x,this._container.style.bottom=i+"px",this._container.style.left=e+"px")},_getAnchor:function(){return[0,0]}}),Ti=(M.include({_initOverlay:function(t,i,e,n){var o=i;return o instanceof t||(o=new t(n).setContent(i)),e&&o.setLatLng(e),o}}),U.include({_initOverlay:function(t,i,e,n){var o=e;return o instanceof t?(E(o,n),o._source=this):(o=i&&!n?i:new t(n,this)).setContent(e),o}}),ht.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ht.prototype.openOn.call(this,t)},onAdd:function(t){ht.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof vt||this._source.on("preclick",Lt))},onRemove:function(t){ht.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof vt||this._source.off("preclick",Lt))},getEvents:function(){var t=ht.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=C("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),e=this._wrapper=C("div",t+"-content-wrapper",i);this._contentNode=C("div",t+"-content",e),Ut(i),$i(this._contentNode),y(i,"contextmenu",Lt),this._tipContainer=C("div",t+"-tip-container",i),this._tip=C("div",t+"-tip",this._tipContainer),this.options.closeButton&&((e=this._closeButton=C("a",t+"-close-button",i)).setAttribute("role","button"),e.setAttribute("aria-label","Close popup"),e.href="#close",e.innerHTML='<span aria-hidden="true">×</span>',y(e,"click",function(n){j(n),this.close()},this))},_updateLayout:function(){var t=this._contentNode,i=t.style,e=(i.width="",i.whiteSpace="nowrap",t.offsetWidth),n=(e=Math.min(e,this.options.maxWidth),e=Math.max(e,this.options.minWidth),i.width=e+1+"px",i.whiteSpace="",i.height="",e=t.offsetHeight,this.options.maxHeight);(n&&n<e?(i.height=n+"px",P):I)(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){i=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);var e=this._getAnchor();R(this._container,i.add(e))},_adjustPan:function(){var t,i,e,n,o,s,r,a;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning?this._autopanning=!1:(t=this._map,i=parseInt(Vt(this._container,"marginBottom"),10)||0,a=this._containerWidth,(e=new v(this._containerLeft,-(i=this._container.offsetHeight+i)-this._containerBottom))._add(bt(this._container)),e=t.layerPointToContainerPoint(e),o=g(this.options.autoPanPadding),n=g(this.options.autoPanPaddingTopLeft||o),o=g(this.options.autoPanPaddingBottomRight||o),s=t.getSize(),r=0,e.x+a+o.x>s.x&&(r=e.x+a-s.x+o.x),e.x-r-n.x<(a=0)&&(r=e.x-n.x),e.y+i+o.y>s.y&&(a=e.y+i-s.y+o.y),e.y-a-n.y<0&&(a=e.y-n.y),(r||a)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([r,a]))))},_getAnchor:function(){return g(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Mi=(M.mergeOptions({closePopupOnClick:!0}),M.include({openPopup:function(t,i,e){return this._initOverlay(Ti,t,i,e).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),U.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Ti,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 ct||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i;this._popup&&this._map&&(Pt(t),this._popup._source!==(i=t.layer||t.target)||i instanceof vt?(this._popup._source=i,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),ht.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ht.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){ht.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=ht.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){this._contentNode=this._container=C("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e=this._container,n=(c=this._map).latLngToContainerPoint(c.getCenter()),c=c.layerPointToContainerPoint(t),o=this.options.direction,s=e.offsetWidth,r=e.offsetHeight,a=g(this.options.offset),u=this._getAnchor();c="top"===o?(i=s/2,r):"bottom"===o?(i=s/2,0):(i="center"===o?s/2:"right"===o?0:"left"===o?s:c.x<n.x?(o="right",0):(o="left",s+2*(a.x+u.x)),r/2),t=t.subtract(g(i,c,!0)).add(a).add(u),I(e,"leaflet-tooltip-right"),I(e,"leaflet-tooltip-left"),I(e,"leaflet-tooltip-top"),I(e,"leaflet-tooltip-bottom"),P(e,"leaflet-tooltip-"+o),R(e,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&J(this._container,t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor:function(){return g(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),Ge=(M.include({openTooltip:function(t,i,e){return this._initOverlay(Mi,t,i,e).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),U.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Mi,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){var i,e;!t&&this._tooltipHandlersAdded||(i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,e.click=this._openTooltip,this._map?this._addFocusListeners():e.add=this._addFocusListeners),this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),this[i](e),this._tooltipHandlersAdded=!t)},openTooltip:function(t){return this._tooltip&&(this instanceof ct||(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="function"==typeof t.getElement&&t.getElement();i&&(y(i,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),y(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){(t="function"==typeof t.getElement&&t.getElement())&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){var i;this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag?(this._openOnceFlag=!0,(i=this)._map.once("moveend",function(){i._openOnceFlag=!1,i._openTooltip(t)})):(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)))},_moveTooltip:function(t){var i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(t=this._map.mouseEventToContainerPoint(t.originalEvent),t=this._map.containerPointToLayerPoint(t),i=this._map.layerPointToLatLng(t)),this._tooltip.setLatLng(i)}}),Bt.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){i=i&&"DIV"===i.tagName?i:document.createElement("div");var e=this.options;return e.html instanceof Element?(hi(i),i.appendChild(e.html)):i.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=g(e.bgPos),i.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(i,"icon"),i},createShadow:function(){return null}}));Bt.Default=Yt;var $t=U.extend({options:{tileSize:256,opacity:1,updateWhenIdle:p.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){E(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),A(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Zt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Et(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(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),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=d(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 v?t:new v(t,t)},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,e=this.getPane().children,n=-t(-1/0,1/0),o=0,s=e.length;o<s;o++)i=e[o].style.zIndex,e[o]!==this._container&&i&&(n=t(n,+i));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!p.ielt9){J(this._container,this.options.opacity);var t,i=+new Date,e=!1,n=!1;for(t in this._tiles){var o,s=this._tiles[t];s.current&&s.loaded&&(o=Math.min(1,(i-s.loaded)/200),J(s.el,o),o<1?e=!0:(s.active?n=!0:this._onOpaqueTile(s),s.active=!0))}n&&!this._noPrune&&this._pruneTiles(),e&&(X(this._fadeFrame),this._fadeFrame=F(this._updateOpacity,this))}},_onOpaqueTile:f,_initContainer:function(){this._container||(this._container=C("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(void 0!==t){for(var e in this._levels)e=Number(e),this._levels[e].el.children.length||e===t?(this._levels[e].el.style.zIndex=i-Math.abs(t-e),this._onUpdateLevel(e)):(A(this._levels[e].el),this._removeTilesAtZoom(e),this._onRemoveLevel(e),delete this._levels[e]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=C("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=i,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:f,_onRemoveLevel:f,_onCreateLevel:f,_pruneTiles:function(){if(this._map){var t,i,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)(e=this._tiles[t]).current&&!e.active&&(this._retainParent((i=e.coords).x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.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)A(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(o,s,r,n){r-=1;var a=((a=new v(+(o=Math.floor(o/2)),+(s=Math.floor(s/2)))).z=r,this._tileCoordsToKey(a));return(a=this._tiles[a])&&a.active?a.retain=!0:(a&&a.loaded&&(a.retain=!0),n<r&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=((r=new v(o,s)).z=e+1,this._tileCoordsToKey(r));(r=this._tiles[r])&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),e+1<n&&this._retainChildren(o,s,e+1,n))}},_resetView:function(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,e,n){var o=Math.round(i);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o),n&&!(this.options.updateWhenZooming&&o!==this._tileZoom)||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),e||this._pruneTiles(),this._noPrune=!!e),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels)this._setZoomTransform(this._levels[e],t,i)},_setZoomTransform:function(t,o,e){var n=this._map.getZoomScale(e,t.zoom);o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(o,e)).round(),p.any3d?xt(t.el,o,n):R(t.el,o)},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],n).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],n).x/e.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],n).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var i=(n=this._map)._animatingZoom?Math.max(n._animateToZoom,n.getZoom()):n.getZoom(),n=(i=n.getZoomScale(i,this._tileZoom),e=n.project(e,this._tileZoom).floor(),n.getSize().divideBy(2*i));return new B(e.subtract(n),e.add(n))},_update:function(t){if(i=this._map){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n,i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),s=o.getCenter(),r=[],a=(i=this.options.keepBuffer,new B(o.getBottomLeft().subtract([i,-i]),o.getTopRight().add([i,-i])));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(n in this._tiles){var u=this._tiles[n].coords;u.z===this._tileZoom&&a.contains(new v(u.x,u.y))||(this._tiles[n].current=!1)}if(1<Math.abs(e-this._tileZoom))this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var w,x=new v(_,c);x.z=this._tileZoom,this._isValidTile(x)&&((w=this._tiles[this._tileCoordsToKey(x)])?w.current=!0:r.push(x))}if(r.sort(function(H,Y){return H.distanceTo(s)-Y.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var O=document.createDocumentFragment();for(_=0;_<r.length;_++)this._addTile(r[_],O);this._level.el.appendChild(O)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y))return!1}return!this.options.bounds||(i=this._tileCoordsToBounds(t),N(this.options.bounds).overlaps(i))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,n=this.getTileSize(),e=t.scaleBy(n);return n=e.add(n),[i.unproject(e,t.z),i.unproject(n,t.z)]},_tileCoordsToBounds:function(t){return t=new V((t=this._tileCoordsToNwSe(t))[0],t[1]),this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(i){var e=new v(+(i=i.split(":"))[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(A(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){P(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=f,t.onmousemove=f,p.ielt9&&this.options.opacity<1&&J(t,this.options.opacity)},_addTile:function(t,i){var e=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),S(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&F(S(this._tileReady,this,t,null,o)),R(o,e),this._tiles[n]={el:o,coords:t,current:!0},i.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,i,e){i&&this.fire("tileerror",{error:i,tile:e,coords:t});var n=this._tileCoordsToKey(t);(e=this._tiles[n])&&(e.loaded=+new Date,this._map._fadeAnimated?(J(e.el,0),X(this._fadeFrame),this._fadeFrame=F(this._updateOpacity,this)):(e.active=!0,this._pruneTiles()),i||(P(e.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:e.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),p.ielt9||!this._map._fadeAnimated?F(this._pruneTiles,this):setTimeout(S(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new v(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 B(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}}),Dt=$t.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=E(this,i)).detectRetina&&p.retina&&0<i.maxZoom?(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),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var e=document.createElement("img");return y(e,"load",S(this._tileOnLoad,this,i,e)),y(e,"error",S(this._tileOnError,this,i,e)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(e.referrerPolicy=this.options.referrerPolicy),e.alt="",e.src=this.getTileUrl(t),e},getTileUrl:function(t){var i={r:p.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(i.y=t),i["-y"]=t),re(this._url,b(i,this.options))},_tileOnLoad:function(t,i){p.ielt9?setTimeout(S(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute("src")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom;return(t=this.options.zoomReverse?this.options.maxZoom-t:t)+this.options.zoomOffset},_getSubdomain:function(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading:function(){var t,i,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=f,e.onerror=f,e.complete||(e.src=ei,i=this._tiles[t].coords,A(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})))},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",ei),$t.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(this._map&&(!e||e.getAttribute("src")!==ei))return $t.prototype._tileReady.call(this,t,i,e)}});function Ke(t,i){return new Dt(t,i)}var Ye=Dt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(o,i){this._url=o;var e,n=b({},this.defaultWmsParams);for(e in i)e in this.options||(n[e]=i[e]);o=(i=E(this,i)).detectRetina&&p.retina?2:1;var s=this.getTileSize();n.width=s.x*o,n.height=s.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[1.3<=this._wmsVersion?"crs":"srs"]=this._crs.code,Dt.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=(i=(e=W((e=this._crs).project(i[0]),e.project(i[1]))).min,e.max);return i=(1.3<=this._wmsVersion&&this._crs===He?[i.y,i.x,e.y,e.x]:[i.x,i.y,e.x,e.y]).join(","),(e=Dt.prototype.getTileUrl.call(this,t))+ae(this.wmsParams,e,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+i},setParams:function(t,i){return b(this.wmsParams,t),i||this.redraw(),this}});Dt.WMS=Ye,Ke.wms=function(t,i){return new Ye(t,i)};var pt=U.extend({options:{padding:.1},initialize:function(t){E(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),P(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 e=this._map.getZoomScale(i,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),n=this._map.project(this._center,i);o=o.multiplyBy(-e).add(n).subtract(this._map._getNewPixelOrigin(t,i)),p.any3d?xt(this._container,o,e):R(this._container,o)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new B(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),$e=pt.extend({options:{tolerance:0},getEvents:function(){var t=pt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){pt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");y(t,"mousemove",this._onMouseMove,this),y(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),y(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){X(this._redrawRequest),delete this._ctx,A(this._container),Z(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,i,e,n;this._map._animatingZoom&&this._bounds||(pt.prototype._update.call(this),i=this._container,e=(t=this._bounds).getSize(),n=p.retina?2:1,R(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",p.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){pt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),t=(this._layers[h(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=(e=t._order).next,e=e.prev;i?i.prev=e:this._drawLast=e,e?e.next=i:this._drawFirst=i,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("string"==typeof t.options.dashArray){for(var i,e=t.options.dashArray.split(/[, ]+/),n=[],o=0;o<e.length;o++){if(i=Number(e[o]),isNaN(i))return;n.push(i)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||F(this._redraw,this))},_extendRedrawBounds:function(t){var i;t._pxBounds&&(i=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new B,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,i=this._redrawBounds;i?(t=i.getSize(),this._ctx.clearRect(i.min.x,i.min.y,t.x,t.y)):(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,e=this._redrawBounds;this._ctx.save(),e&&(i=e.getSize(),this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var e,n,o,s,r=t._parts,a=r.length,u=this._ctx;if(a){for(u.beginPath(),e=0;e<a;e++){for(n=0,o=r[e].length;n<o;n++)u[n?"lineTo":"moveTo"]((s=r[e][n]).x,s.y);i&&u.closePath()}this._fillStroke(u,t)}}},_updateCircle:function(t){var i,e,n,o;this._drawing&&!t._empty()&&(i=t._point,e=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(e.save(),e.scale(1,o)),e.beginPath(),e.arc(i.x,i.y/o,n,0,2*Math.PI,!1),1!=o&&e.restore(),this._fillStroke(e,t))},_fillStroke:function(t,i){var e=i.options;e.fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor||e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick:function(t){for(var i,e,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(n)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(i)||(e=i));this._fireEvent(!!e&&[e],t)},_onMouseMove:function(t){var i;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(i=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,i))},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(I(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var e,n,o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&(n=e);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(P(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(S(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i,e,n=t._order;n&&(e=n.prev,(i=n.next)&&((i.prev=e)?e.next=i:i&&(this._drawFirst=i),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var i,e,n=t._order;n&&(i=n.next,(e=n.prev)&&((e.next=i)?i.prev=e:e&&(this._drawLast=e),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}});function Xe(t){return p.canvas?new $e(t):null}var Xt=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">')}}(),Ci=(Jt={_initContainer:function(){this._container=C("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(pt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=Xt("shape");P(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=Xt("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;A(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i=i||(t._stroke=Xt("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,i.dashStyle=n.dashArray?it(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):"",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e=e||(t._fill=Xt("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){Zt(t._container)},_bringToBack:function(t){Et(t._container)}},p.vml?Xt:_e),Qt=pt.extend({_initContainer:function(){this._container=Ci("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ci("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){A(this._container),Z(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,i,e;this._map._animatingZoom&&this._bounds||(pt.prototype._update.call(this),i=(t=this._bounds).getSize(),e=this._container,this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),R(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update"))},_initPath:function(t){var i=t._path=Ci("path");t.options.className&&P(i,t.options.className),t.options.interactive&&P(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){A(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(e){var i=e._path;e=e.options,i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,de(t._parts,i))},_updateCircle:function(t){var n=t._point,i=Math.max(Math.round(t._radius),1),e="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ";n=t._empty()?"M0 0":"M"+(n.x-i)+","+n.y+e+2*i+",0 "+e+2*-i+",0 ",this._setPath(t,n)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){Zt(t._path)},_bringToBack:function(t){Et(t._path)}});function Je(t){return p.svg||p.vml?new Qt(t):null}p.vml&&Qt.include(Jt),M.include({getRenderer:function(t){return t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){var i;return"overlayPane"!==t&&void 0!==t&&(void 0===(i=this._paneRenderers[t])&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i)},_createRenderer:function(t){return this.options.preferCanvas&&Xe(t)||Je(t)}});var Qe=At.extend({initialize:function(t,i){At.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=N(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Qt.create=Ci,Qt.pointsToPath=de,dt.geometryToLayer=yi,dt.coordsToLatLng=oe,dt.coordsToLatLngs=wi,dt.latLngToCoords=se,dt.latLngsToCoords=xi,dt.getFeature=It,dt.asFeature=bi,M.mergeOptions({boxZoom:!0}),mt=G.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(){y(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Z(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){A(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Ft(),Wi(),this._startPoint=this._map.mouseEventToContainerPoint(t),y(document,{contextmenu:Pt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=C("div","leaflet-zoom-box",this._container),P(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var e=(i=new B(this._point,this._startPoint)).getSize();R(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(A(this._box),I(this._container,"leaflet-crosshair")),ai(),Vi(),Z(document,{contextmenu:Pt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(S(this._resetState,this),0),t=new V(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),M.addInitHook("addHandler","boxZoom",mt),M.mergeOptions({doubleClickZoom:!0}),zi=G.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,n=i.getZoom(),e=i.options.zoomDelta;n=t.originalEvent.shiftKey?n-e:n+e,"center"===i.options.doubleClickZoom?i.setZoom(n):i.setZoomAround(t.containerPoint,n)}});var yt=(M.addInitHook("addHandler","doubleClickZoom",zi),M.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),G.extend({addHooks:function(){var t;this._draggable||(this._draggable=new gt((t=this._map)._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))),P(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){I(this._map._container,"leaflet-grab"),I(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,i=this._map;i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=N(this._map.options.maxBounds),this._offsetLimit=W(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var i,e;this._map.options.inertia&&(i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(e),this._times.push(i),this._prunePositions(i)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)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(){var t,i;this._viscosity&&this._offsetLimit&&((t=this._draggable._newPos.subtract(this._draggable._startPos)).x<(i=this._offsetLimit).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 o=this._worldWidth,t=Math.round(o/2),i=this._initialWorldOffset,e=((n=this._draggable._newPos.x)-t+i)%o+t-i,n=(n+t+i)%o-t-i;o=Math.abs(e+i)<Math.abs(n+i)?e:n,this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(t){var i,e,n,o,s=this._map,r=s.options,a=!r.inertia||t.noInertia||this._times.length<2;s.fire("dragend",t),!a&&(this._prunePositions(+new Date),a=(t=(t=this._lastPos.subtract(this._positions[0])).multiplyBy((i=r.easeLinearity)/(a=(this._lastTime-this._times[0])/1e3))).distanceTo([0,0]),e=Math.min(r.inertiaMaxSpeed,a),t=t.multiplyBy(e/a),(o=t.multiplyBy(-(n=e/(r.inertiaDeceleration*i))/2).round()).x||o.y)?(o=s._limitOffset(o,s.options.maxBounds),F(function(){s.panBy(o,{duration:n,easeLinearity:i,noMoveStart:!0,animate:!0})})):s.fire("moveend")}})),vn=(M.addInitHook("addHandler","dragging",yt),M.mergeOptions({keyboard:!0,keyboardPanDelta:80}),ki=G.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"),y(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(),Z(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(){var t,i,e;this._focused||(e=document.body,t=document.documentElement,i=e.scrollTop||t.scrollTop,e=e.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(e,i))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var i=this._panKeys={},e=this.keyCodes,n=0,o=e.left.length;n<o;n++)i[e.left[n]]=[-1*t,0];for(n=0,o=e.right.length;n<o;n++)i[e.right[n]]=[t,0];for(n=0,o=e.down.length;n<o;n++)i[e.down[n]]=[0,t];for(n=0,o=e.up.length;n<o;n++)i[e.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var i=this._zoomKeys={},e=this.keyCodes,n=0,o=e.zoomIn.length;n<o;n++)i[e.zoomIn[n]]=t;for(n=0,o=e.zoomOut.length;n<o;n++)i[e.zoomOut[n]]=-t},_addHooks:function(){y(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Z(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,e,n=t.keyCode,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=g(e).multiplyBy(3)),o.options.maxBounds&&(e=o._limitOffset(g(e),o.options.maxBounds)),o.options.worldCopyJump?(i=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(e))),o.panTo(i)):o.panBy(e));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}Pt(t)}}}),M.addInitHook("addHandler","keyboard",ki),M.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),Si=G.extend({addHooks:function(){y(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Z(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ze(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),e=Math.max(i-(+new Date-this._startTime),0),clearTimeout(this._timer),this._timer=setTimeout(S(this._performZoom,this),e),Pt(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0,n=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel));n=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,e=e?Math.ceil(n/e)*e:n,n=t._limitZoom(i+(0<this._delta?e:-e))-i,this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(i+n):t.setZoomAround(this._lastMousePos,i+n))}}),M.addInitHook("addHandler","scrollWheelZoom",Si),M.mergeOptions({tapHold:p.touchNative&&p.safari&&p.mobile,tapTolerance:15}),ti=G.extend({addHooks:function(){y(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Z(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){var i;clearTimeout(this._holdTimeout),1===t.touches.length&&(this._startPos=this._newPos=new v((i=t.touches[0]).clientX,i.clientY),this._holdTimeout=setTimeout(S(function(){this._cancel(),this._isTapValid()&&(y(document,"touchend",j),y(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),600),y(document,"touchend touchcancel contextmenu",this._cancel,this),y(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function t(){Z(document,"touchend",j),Z(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Z(document,"touchend touchcancel contextmenu",this._cancel,this),Z(document,"touchmove",this._onMove,this)},_onMove:function(t){this._newPos=new v((t=t.touches[0]).clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY}))._simulated=!0,i.target.dispatchEvent(t)}}),M.addInitHook("addHandler","tapHold",ti),M.mergeOptions({touchZoom:p.touch,bounceAtZoomLimits:!0}),ii=G.extend({addHooks:function(){P(this._map._container,"leaflet-touch-zoom"),y(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){I(this._map._container,"leaflet-touch-zoom"),Z(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i,e,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(i=n.mouseEventToContainerPoint(t.touches[0]),e=n.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(i.add(e)._divideBy(2))),this._startDist=i.distanceTo(e),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),y(document,"touchmove",this._onTouchMove,this),y(document,"touchend touchcancel",this._onTouchEnd,this),j(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),o=e.distanceTo(n)/this._startDist;if(this._zoom=i.getScaleZoom(o,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&o<1||this._zoom>i.getMaxZoom()&&1<o)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{if(e=e._add(n)._divideBy(2)._subtract(this._centerPoint),1==o&&0===e.x&&0===e.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(e),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),X(this._animRequest),n=S(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=F(n,this,!0),j(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,X(this._animRequest),Z(document,"touchmove",this._onTouchMove,this),Z(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}}),M.addInitHook("addHandler","touchZoom",ii),M.BoxZoom=mt,M.DoubleClickZoom=zi,M.Drag=yt,M.Keyboard=ki,M.ScrollWheelZoom=Si,M.TapHold=ti,M.TouchZoom=ii,l.Bounds=B,l.Browser=p,l.CRS=ut,l.Canvas=$e,l.Circle=ne,l.CircleMarker=vi,l.Class=lt,l.Control=et,l.DivIcon=Ge,l.DivOverlay=ht,l.DomEvent=Ji,l.DomUtil=zt,l.Draggable=gt,l.Evented=Nt,l.FeatureGroup=ct,l.GeoJSON=dt,l.GridLayer=$t,l.Handler=G,l.Icon=Bt,l.ImageOverlay=Pi,l.LatLng=k,l.LatLngBounds=V,l.Layer=U,l.LayerGroup=Ot,l.LineUtil=pi,l.Map=M,l.Marker=gi,l.Mixin=Gt,l.Path=vt,l.Point=v,l.PolyUtil=_i,l.Polygon=At,l.Polyline=_t,l.Popup=Ti,l.PosAnimation=ke,l.Projection=mi,l.Rectangle=Qe,l.Renderer=pt,l.SVG=Qt,l.SVGOverlay=qe,l.TileLayer=Dt,l.Tooltip=Mi,l.Transformation=Ai,l.Util=on,l.VideoOverlay=Ue,l.bind=S,l.bounds=W,l.canvas=Xe,l.circle=function(t,i,e){return new ne(t,i,e)},l.circleMarker=function(t,i){return new vi(t,i)},l.control=qt,l.divIcon=function(t){return new Ge(t)},l.extend=b,l.featureGroup=function(t,i){return new ct(t,i)},l.geoJSON=Ve,l.geoJson=Li,l.gridLayer=function(t){return new $t(t)},l.icon=function(t){return new Bt(t)},l.imageOverlay=function(t,i,e){return new Pi(t,i,e)},l.latLng=T,l.latLngBounds=N,l.layerGroup=function(t,i){return new Ot(t,i)},l.map=function(t,i){return new M(t,i)},l.marker=function(t,i){return new gi(t,i)},l.point=g,l.polygon=function(t,i){return new At(t,i)},l.polyline=function(t,i){return new _t(t,i)},l.popup=function(t,i){return new Ti(t,i)},l.rectangle=function(t,i){return new Qe(t,i)},l.setOptions=E,l.stamp=h,l.svg=Je,l.svgOverlay=function(t,i,e){return new qe(t,i,e)},l.tileLayer=Ke,l.tooltip=function(t,i){return new Mi(t,i)},l.transformation=Rt,l.version="1.9.4",l.videoOverlay=function(t,i,e){return new Ue(t,i,e)},window.L);l.noConflict=function(){return window.L=vn,this},window.L=l}),function(l,b){"function"==typeof define&&define.amd?define(["leaflet"],l):"object"==typeof exports&&(module.exports=l(void 0!==b&&b.L?L:require("leaflet"))),void 0!==b&&b.L&&(b.L.Control.Locate=l(L))}(function(l){const b=(h,d,m)=>{(m=m.split(" ")).forEach(function(f){l.DomUtil[h].call(this,d,f)})},$=(h,d)=>b("addClass",h,d),nt=(h,d)=>b("removeClass",h,d);var S=(wt=l.Marker.extend({initialize(h,d){l.Util.setOptions(this,d),this._latlng=h,this.createIcon()},createIcon(){var h=this.options;let d="";void 0!==h.color&&(d+=`stroke:${h.color};`),void 0!==h.weight&&(d+=`stroke-width:${h.weight};`),void 0!==h.fillColor&&(d+=`fill:${h.fillColor};`),void 0!==h.fillOpacity&&(d+=`fill-opacity:${h.fillOpacity};`),void 0!==h.opacity&&(d+=`opacity:${h.opacity};`),h=this._getIconSVG(h,d),this._locationIcon=l.divIcon({className:h.className,html:h.svg,iconSize:[h.w,h.h]}),this.setIcon(this._locationIcon)},_getIconSVG(f,d){var m=f.radius,z=2*(f=m+f.weight);return{className:"leaflet-control-locate-location",svg:`<svg xmlns="http://www.w3.org/2000/svg" width="${z}" height="${z}" version="1.1" viewBox="-${f} -${f} ${z} ${z}"><circle r="`+m+'" style="'+d+'" /></svg>',w:z,h:z}},setStyle(h){l.Util.setOptions(this,h),this.createIcon()}})).extend({initialize(h,d,m){l.Util.setOptions(this,m),this._latlng=h,this._heading=d,this.createIcon()},setHeading(h){this._heading=h},_getIconSVG(z,d){var f,m=z.width+z.weight;return{className:"leaflet-control-locate-heading",svg:`<svg xmlns="http://www.w3.org/2000/svg" width="${m}" height="${f=2*((f=z.radius)+z.depth+z.weight)}" version="1.1" viewBox="-${m/2} 0 ${m} ${f}" style="transform: rotate(${this._heading}deg)"><path d="`+(z=`M0,0 l${z.width/2},${z.depth} l-${m},0 z`)+'" style="'+d+'" /></svg>',w:m,h:f}}}),wt=l.Control.extend({options:{position:"topleft",layer:void 0,setView:"untilPanOrZoom",keepCurrentZoomLevel:!1,initialZoomLevel:!1,getLocationBounds:h=>h.bounds,flyTo:!1,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:!1,cacheLocation:!0,drawCircle:!0,drawMarker:!0,showCompass:!0,markerClass:wt,compassClass:S,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:!0,createButtonCallback(m,d){var f=((m=l.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",m)).title=d.strings.title,m.href="#",m.setAttribute("role","button"),l.DomUtil.create(d.iconElementTag,d.icon,m));return void 0!==d.strings.text&&(l.DomUtil.create(d.textElementTag,"leaflet-locate-text",m).textContent=d.strings.text,m.classList.add("leaflet-locate-text-active"),m.parentNode.style.display="flex",0<d.icon.length)&&f.classList.add("leaflet-locate-icon"),{link:m,icon:f}},onLocationError(h,d){alert(h.message)},onLocationOutsideMapBounds(h){h.stop(),alert(h.options.strings.outsideMapBoundsMsg)},showPopup:!0,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:1/0,watch:!0,setView:!1}},initialize(h){for(const d in h)"object"==typeof this.options[d]?l.extend(this.options[d],h[d]):this.options[d]=h[d];this.options.followMarkerStyle=l.extend({},this.options.markerStyle,this.options.followMarkerStyle),this.options.followCircleStyle=l.extend({},this.options.circleStyle,this.options.followCircleStyle),this.options.followCompassStyle=l.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd(m){var d=l.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");return this._container=d,this._map=m,this._layer=this.options.layer||new l.LayerGroup,this._layer.addTo(m),this._event=void 0,this._compassHeading=null,this._prevBounds=null,m=this.options.createButtonCallback(d,this.options),this._link=m.link,this._icon=m.icon,l.DomEvent.on(this._link,"click",function(f){l.DomEvent.stopPropagation(f),l.DomEvent.preventDefault(f),this._onClick()},this).on(this._link,"dblclick",l.DomEvent.stopPropagation),this._resetVariables(),this._map.on("unload",this._unload,this),d},_onClick(){this._justClicked=!0;var h=this._isFollowing();if(this._userPanned=!1,this._userZoomed=!1,this._active&&!this._event)this.stop();else if(this._active){var d=this.options.clickBehavior;let m=d.outOfView;switch(m=d[m=this._map.getBounds().contains(this._event.latlng)?h?d.inView:d.inViewNotFollowing:m]?d[m]:m){case"setView":this.setView();break;case"stop":this.stop(),this.options.returnToPrevBounds&&(this.options.flyTo?this._map.flyToBounds:this._map.fitBounds).bind(this._map)(this._prevBounds)}}else this.options.returnToPrevBounds&&(this._prevBounds=this._map.getBounds()),this.start();this._updateContainerStyle()},start(){this._activate(),this._event&&(this._drawMarker(this._map),this.options.setView)&&this.setView(),this._updateContainerStyle()},stop(){this._deactivate(),this._cleanClasses(),this._resetVariables(),this._removeMarker()},stopFollowing(){this._userPanned=!0,this._updateContainerStyle(),this._drawMarker()},_activate(){if(!this._active&&this._map&&(this._map.locate(this.options.locateOptions),this._map.fire("locateactivate",this),this._active=!0,this._map.on("locationfound",this._onLocationFound,this),this._map.on("locationerror",this._onLocationError,this),this._map.on("dragstart",this._onDrag,this),this._map.on("zoomstart",this._onZoom,this),this._map.on("zoomend",this._onZoomEnd,this),this.options.showCompass)){const h="ondeviceorientationabsolute"in window;if(h||"ondeviceorientation"in window){const d=this,m=function(){l.DomEvent.on(window,h?"deviceorientationabsolute":"deviceorientation",d._onDeviceOrientation,d)};DeviceOrientationEvent&&"function"==typeof DeviceOrientationEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(function(f){"granted"===f&&m()}):m()}}},_deactivate(){this._active&&this._map&&(this._map.stopLocate(),this._map.fire("locatedeactivate",this),this._active=!1,this.options.cacheLocation||(this._event=void 0),this._map.off("locationfound",this._onLocationFound,this),this._map.off("locationerror",this._onLocationError,this),this._map.off("dragstart",this._onDrag,this),this._map.off("zoomstart",this._onZoom,this),this._map.off("zoomend",this._onZoomEnd,this),this.options.showCompass)&&(this._compassHeading=null,"ondeviceorientationabsolute"in window?l.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this):"ondeviceorientation"in window&&l.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this))},setView(){var h;this._drawMarker(),this._isOutsideMapBounds()?(this._event=void 0,this.options.onLocationOutsideMapBounds(this)):this._justClicked&&!1!==this.options.initialZoomLevel?(h=this.options.flyTo?this._map.flyTo:this._map.setView).bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel):this.options.keepCurrentZoomLevel?(h=this.options.flyTo?this._map.flyTo:this._map.panTo).bind(this._map)([this._event.latitude,this._event.longitude]):(h=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds,this._ignoreEvent=!0,h.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom}),l.Util.requestAnimFrame(function(){this._ignoreEvent=!1},this))},_drawCompass(){var h,d;this._event&&(h=this._event.latlng,this.options.showCompass&&h&&null!==this._compassHeading&&(d=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle,this._compass?(this._compass.setLatLng(h),this._compass.setHeading(this._compassHeading),this._compass.setStyle&&this._compass.setStyle(d)):this._compass=new this.options.compassClass(h,this._compassHeading,d).addTo(this._layer)),!this._compass||this.options.showCompass&&null!==this._compassHeading||(this._compass.removeFrom(this._layer),this._compass=null))},_drawMarker(){void 0===this._event.accuracy&&(this._event.accuracy=0);var h,d=this._event.accuracy,m=this._event.latlng;let f,z;this.options.drawCircle&&(h=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle,this._circle?this._circle.setLatLng(m).setRadius(d).setStyle(h):this._circle=l.circle(m,d,h).addTo(this._layer)),z=this.options.metric?(f=d.toFixed(0),this.options.strings.metersUnit):(f=(3.2808399*d).toFixed(0),this.options.strings.feetUnit),this.options.drawMarker&&(h=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle,this._marker?(this._marker.setLatLng(m),this._marker.setStyle&&this._marker.setStyle(h)):this._marker=new this.options.markerClass(m,h).addTo(this._layer)),this._drawCompass();const tt=this.options.strings.popup;function ot(){return"string"==typeof tt?l.Util.template(tt,{distance:f,unit:z}):"function"==typeof tt?tt({distance:f,unit:z}):tt}this.options.showPopup&&tt&&this._marker&&this._marker.bindPopup(ot())._popup.setLatLng(m),this.options.showPopup&&tt&&this._compass&&this._compass.bindPopup(ot())._popup.setLatLng(m)},_removeMarker(){this._layer.clearLayers(),this._marker=void 0,this._circle=void 0},_unload(){this.stop(),this._map.off("unload",this._unload,this)},_setCompassHeading(h){!isNaN(parseFloat(h))&&isFinite(h)?(h=Math.round(h),this._compassHeading=h,l.Util.requestAnimFrame(this._drawCompass,this)):this._compassHeading=null},_onCompassNeedsCalibration(){this._setCompassHeading()},_onDeviceOrientation(h){this._active&&(h.webkitCompassHeading?this._setCompassHeading(h.webkitCompassHeading):h.absolute&&h.alpha&&this._setCompassHeading(360-h.alpha))},_onLocationError(h){3==h.code&&this.options.locateOptions.watch||(this.stop(),this.options.onLocationError(h,this))},_onLocationFound(h){if((!this._event||this._event.latlng.lat!==h.latlng.lat||this._event.latlng.lng!==h.latlng.lng||this._event.accuracy!==h.accuracy)&&this._active){switch(this._event=h,this._drawMarker(),this._updateContainerStyle(),this.options.setView){case"once":this._justClicked&&this.setView();break;case"untilPan":this._userPanned||this.setView();break;case"untilPanOrZoom":this._userPanned||this._userZoomed||this.setView();break;case"always":this.setView()}this._justClicked=!1}},_onDrag(){this._event&&!this._ignoreEvent&&(this._userPanned=!0,this._updateContainerStyle(),this._drawMarker())},_onZoom(){this._event&&!this._ignoreEvent&&(this._userZoomed=!0,this._updateContainerStyle(),this._drawMarker())},_onZoomEnd(){this._event&&this._drawCompass(),this._event&&!this._ignoreEvent&&this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())&&(this._userPanned=!0,this._updateContainerStyle(),this._drawMarker())},_isFollowing(){return!!this._active&&("always"===this.options.setView||("untilPan"===this.options.setView?!this._userPanned:"untilPanOrZoom"===this.options.setView?!this._userPanned&&!this._userZoomed:void 0))},_isOutsideMapBounds(){return void 0!==this._event&&this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle(){this._container&&(this._active&&!this._event?this._setClasses("requesting"):this._isFollowing()?this._setClasses("following"):this._active?this._setClasses("active"):this._cleanClasses())},_setClasses(h){"requesting"==h?(nt(this._container,"active following"),$(this._container,"requesting"),nt(this._icon,this.options.icon),$(this._icon,this.options.iconLoading)):"active"==h?(nt(this._container,"requesting following"),$(this._container,"active"),nt(this._icon,this.options.iconLoading),$(this._icon,this.options.icon)):"following"==h&&(nt(this._container,"requesting"),$(this._container,"active following"),nt(this._icon,this.options.iconLoading),$(this._icon,this.options.icon))},_cleanClasses(){l.DomUtil.removeClass(this._container,"requesting"),l.DomUtil.removeClass(this._container,"active"),l.DomUtil.removeClass(this._container,"following"),nt(this._icon,this.options.iconLoading),$(this._icon,this.options.icon)},_resetVariables(){this._active=!1,this._justClicked=!1,this._userPanned=!1,this._userZoomed=!1}});return l.control.locate=h=>new l.Control.Locate(h),wt},window);