1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9269],{45243:function(a,b){!function(a,c){c(b)}(this,function(a){"use strict";function b(a){var b,c,d,e;for(c=1,d=arguments.length;c<d;c++)for(b in e=arguments[c])a[b]=e[b];return a}var c=Object.create||function(){function a(){}return function(b){return a.prototype=b,new a()}}();function d(a,b){var c=Array.prototype.slice;if(a.bind)return a.bind.apply(a,c.call(arguments,1));var d=c.call(arguments,2);return function(){return a.apply(b,d.length?d.concat(c.call(arguments)):arguments)}}var e=0;function f(a){return"_leaflet_id"in a||(a["_leaflet_id"]=++e),a._leaflet_id}function g(a,b,c){var d,e,f,g;return g=function(){d=!1,e&&(f.apply(c,e),e=!1)},f=function(){d?e=arguments:(a.apply(c,arguments),setTimeout(g,b),d=!0)}}function h(a,b,c){var d=b[1],e=b[0],f=d-e;return a===d&&c?a:((a-e)%f+f)%f+e}function i(){return!1}function j(a,b){if(!1===b)return a;var c=Math.pow(10,void 0===b?6:b);return Math.round(a*c)/c}function k(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function l(a){return k(a).split(/\s+/)}function m(a,b){for(var d in Object.prototype.hasOwnProperty.call(a,"options")||(a.options=a.options?c(a.options):{}),b)a.options[d]=b[d];return a.options}function n(a,b,c){var d=[];for(var e in a)d.push(encodeURIComponent(c?e.toUpperCase():e)+"="+encodeURIComponent(a[e]));return(b&& -1!==b.indexOf("?")?"&":"?")+d.join("&")}var o=/\{ *([\w_ -]+) *\}/g;function p(a,b){return a.replace(o,function(a,c){var d=b[c];if(void 0===d)throw new Error("No value provided for variable "+a);return"function"==typeof d&&(d=d(b)),d})}var q=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};function r(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return -1}var s="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function t(a){return window["webkit"+a]||window["moz"+a]||window["ms"+a]}var u=0;function v(a){var b=+new Date(),c=Math.max(0,16-(b-u));return u=b+c,window.setTimeout(a,c)}var w=window.requestAnimationFrame||t("RequestAnimationFrame")||v,x=window.cancelAnimationFrame||t("CancelAnimationFrame")||t("CancelRequestAnimationFrame")||function(a){window.clearTimeout(a)};function y(a,b,c){if(!c||w!==v)return w.call(window,d(a,b));a.call(b)}function z(a){a&&x.call(window,a)}var A={__proto__:null,extend:b,create:c,bind:d,get lastId(){return e},stamp:f,throttle:g,wrapNum:h,falseFn:i,formatNum:j,trim:k,splitWords:l,setOptions:m,getParamString:n,template:p,isArray:q,indexOf:r,emptyImageUrl:s,requestFn:w,cancelFn:x,requestAnimFrame:y,cancelAnimFrame:z};function B(){}B.extend=function(a){var d=function(){m(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},e=d.__super__=this.prototype,f=c(e);for(var g in f.constructor=d,d.prototype=f,this)Object.prototype.hasOwnProperty.call(this,g)&&"prototype"!==g&&"__super__"!==g&&(d[g]=this[g]);return a.statics&&b(d,a.statics),a.includes&&((function(a){if("undefined"!=typeof L&&L&&L.Mixin){a=q(a)?a:[a];for(var b=0;b<a.length;
1b++)a[b]===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)}})(a.includes),b.apply(null,[f].concat(a.includes))),b(f,a),delete f.statics,delete f.includes,f.options&&(f.options=e.options?c(e.options):{},b(f.options,a.options)),f._initHooks=[],f.callInitHooks=function(){if(!this._initHooksCalled){e.callInitHooks&&e.callInitHooks.call(this),this._initHooksCalled=!0;for(var a=0,b=f._initHooks.length;a<b;a++)f._initHooks[a].call(this)}},d},B.include=function(a){var c=this.prototype.options;return b(this.prototype,a),a.options&&(this.prototype.options=c,this.mergeOptions(a.options)),this},B.mergeOptions=function(a){return b(this.prototype.options,a),this},B.addInitHook=function(a){var b=Array.prototype.slice.call(arguments,1);return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push("function"==typeof a?a:function(){this[a].apply(this,b)}),this};var C={on:function(a,b,c){if("object"==typeof a)for(var d in a)this._on(d,a[d],b);else{a=l(a);for(var e=0,f=a.length;e<f;e++)this._on(a[e],b,c)}return this},off:function(a,b,c){if(arguments.length)if("object"==typeof a)for(var d in a)this._off(d,a[d],b);else{a=l(a);for(var e=1===arguments.length,f=0,g=a.length;f<g;f++)e?this._off(a[f]):this._off(a[f],b,c)}else delete this._events;return this},_on:function(a,b,c,d){if("function"!=typeof b){console.warn("wrong listener type: "+typeof b);return}if(!1===this._listens(a,b,c)){c===this&&(c=void 0);var e={fn:b,ctx:c};d&&(e.once=!0),this._events=this._events||{},this._events[a]=this._events[a]||[],this._events[a].push(e)}},_off:function(a,b,c){if(this._events&&(d=this._events[a])){if(1===arguments.length){if(this._firingCount)for(e=0,f=d.length;e<f;e++)d[e].fn=i;delete this._events[a];return}if("function"!=typeof b){console.warn("wrong listener type: "+typeof b);return}var d,e,f,g=this._listens(a,b,c);if(!1!==g){var h=d[g];this._firingCount&&(h.fn=i,this._events[a]=d=d.slice()),d.splice(g,1)}}},fire:function(a,c,d){if(!this.listens(a,d))return this;var e=b({},c,{type:a,target:this,sourceTarget:c&&c.sourceTarget||this});if(this._events){var f=this._events[a];if(f){this._firingCount=this._firingCount+1||1;for(var g=0,h=f.length;g<h;g++){var i=f[g],j=i.fn;i.once&&this.off(a,j,i.ctx),j.call(i.ctx||this,e)}this._firingCount--}}return d&&this._propagateEvent(e),this},listens:function(a,b,c,d){"string"!=typeof a&&console.warn("\"string\" type argument expected");var e=b;"function"!=typeof b&&(d=!!b,e=void 0,c=void 0);var f=this._events&&this._events[a];if(f&&f.length&& !1!==this._listens(a,e,c))return!0;if(d){for(var g in this._eventParents)if(this._eventParents[g].listens(a,b,c,d))return!0}return!1},_listens:function(a,b,c){if(!this._events)return!1;var d=this._events[a]||[];if(!b)return!!d.length;c===this&&(c=void 0);for(var e=0,f=d.length;e<f;e++)if(d[e].fn===b&&d[e].ctx===c)return e;return!1},once:function(a,b,c){if("object"==typeof a)for(var d in a)this._on(d,a[d],b,!0);else{a=l(a);for(var e=0,f=a.length;e<f;e++)this._on(a[e],b,c,!0)}return this},addEventParent:function(a){return this._eventParents=this._eventParents||{},this._eventParents[f(a)]=a,this},removeEventParent:function(a){return this._eventParents&&delete this._eventParents[f(a)],this},_propagateEvent:function(a){for(var c in this._eventParents)this._eventParents[c].fire(a.type,b({layer:a.target,propagatedFrom:a.target},a),!0)}};C.addEventListener=C.on,C.removeEventListener=C.clearAllEventListeners=C.off,C.addOneTimeEventListener=C.once,C.fireEvent=C.fire,C.hasEventListeners=C.listens;var D=B.extend(C);function E(a,b,c){this.x=c?Math.round(a):a,this.y=c?Math.round(b):b}var F=Math.trunc||function(a){return a>0?Math.floor(a):Math.ceil(a)};function G(a,b,c){return a instanceof E?a:q(a)?new E(a[0],a[1]):null==a?a:"object"==typeof a&&"x"in a&&"y"in a?new E(a.x,a.y):new E(a,b,c)}function H(a,b){if(a)for(var c=b?[a,b]:a,d=0,e=c.length;d<e;d++)this.extend(c[d])}function I(a,b){return!a||a instanceof H?a:new H(a,b)}function J(a,b){if(a)for(var c=b?[a,b]:a,d=0,e=c.length;d<e;d++)this.extend(c[d])}function K(a,b){return a instanceof J?a:new J(a,b)}function L(a,b,c){if(isNaN(a)||isNaN(b))throw new Error("Invalid LatLng object: ("+a+", "+b+")");this.lat=+a,this.lng=+b,void 0!==c&&(this.alt=+c)}function M(a,b,c){return a instanceof L?a:q(a)&&"object"!=typeof a[0]?3===a.length?new L(a[0],a[1],a[2]):2===a.length?new L(a[0],a[1]):null:null==a?a:"object"==typeof a&&"lat"in a?new L(a.lat,"lng"in a?a.lng:a.lon,a.alt):void 0===b?null:new L(a,b,c)}E.prototype={clone:function(){return new E(this.x,this.y)},add:function(a){return this.clone()._add(G(a))},_add:function(a){return this.x+=a.x,this.y+=a.y,this},subtract:function(a){return this.clone()._subtract(G(a))},_subtract:function(a){return this.x-=a.x,this.y-=a.y,this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){return this.x/=a,this.y/=a,this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){return this.x*=a,this.y*=a,this},scaleBy:function(a){return new E(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new E(this.x/a.x,this.y/a.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=F(this.x),this.y=F(this.y),this},distanceTo:function(a){var b=(a=G(a)).x-this.x,c=a.y-this.y;return Math.sqrt(b*b+c*c)},equals:function(a){return(a=G(a)).x===this.x&&a.y===this.y},contains:function(a){return Math.abs((a=G(a)).x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+j(this.x)+", "+j(this.y)+")"}},H.prototype={extend:function(a){var b,c;if(!a)return this;if(a instanceof E||"number"==typeof a[0]||"x"in a)b=c=G(a);else if(b=(a=I(a)).min,c=a.max,!b||!c)return this;return this.min||this.max?(this.min.x=Math.min(b.x,this.min.x),this.max.x=Math.max(c.x,this.max.x),this.min.y=Math.min(b.y,this.min.y),this.max.y=Math.max(c.y,this.max.y)):(this.min=b.clone(),this.max=c.clone()),this},getCenter:function(a){return G((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,a)},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(a){var b,c;return(a="number"==typeof a[0]||a instanceof E?G(a):I(a))instanceof H?(b=a.min,c=a.max):b=c=a,b.x>=this.min.x&&c.x<=this.max.x&&b.y>=this.min.y&&c.y<=this.max.y},intersects:function(a){a=I(a);
1var b=this.min,c=this.max,d=a.min,e=a.max,f=e.x>=b.x&&d.x<=c.x,g=e.y>=b.y&&d.y<=c.y;return f&&g},overlaps:function(a){a=I(a);var b=this.min,c=this.max,d=a.min,e=a.max,f=e.x>b.x&&d.x<c.x,g=e.y>b.y&&d.y<c.y;return f&&g},isValid:function(){return!!(this.min&&this.max)},pad:function(a){var b=this.min,c=this.max,d=Math.abs(b.x-c.x)*a,e=Math.abs(b.y-c.y)*a;return I(G(b.x-d,b.y-e),G(c.x+d,c.y+e))},equals:function(a){return!!a&&(a=I(a),this.min.equals(a.getTopLeft())&&this.max.equals(a.getBottomRight()))}},J.prototype={extend:function(a){var b,c,d=this._southWest,e=this._northEast;if(a instanceof L)b=a,c=a;else if(!(a instanceof J))return a?this.extend(M(a)||K(a)):this;else if(b=a._southWest,c=a._northEast,!b||!c)return this;return d||e?(d.lat=Math.min(b.lat,d.lat),d.lng=Math.min(b.lng,d.lng),e.lat=Math.max(c.lat,e.lat),e.lng=Math.max(c.lng,e.lng)):(this._southWest=new L(b.lat,b.lng),this._northEast=new L(c.lat,c.lng)),this},pad:function(a){var b=this._southWest,c=this._northEast,d=Math.abs(b.lat-c.lat)*a,e=Math.abs(b.lng-c.lng)*a;return new J(new L(b.lat-d,b.lng-e),new L(c.lat+d,c.lng+e))},getCenter:function(){return new L((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 L(this.getNorth(),this.getWest())},getSouthEast:function(){return new L(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(a){a="number"==typeof a[0]||a instanceof L||"lat"in a?M(a):K(a);var b,c,d=this._southWest,e=this._northEast;
1return a instanceof J?(b=a.getSouthWest(),c=a.getNorthEast()):b=c=a,b.lat>=d.lat&&c.lat<=e.lat&&b.lng>=d.lng&&c.lng<=e.lng},intersects:function(a){a=K(a);var b=this._southWest,c=this._northEast,d=a.getSouthWest(),e=a.getNorthEast(),f=e.lat>=b.lat&&d.lat<=c.lat,g=e.lng>=b.lng&&d.lng<=c.lng;return f&&g},overlaps:function(a){a=K(a);var b=this._southWest,c=this._northEast,d=a.getSouthWest(),e=a.getNorthEast(),f=e.lat>b.lat&&d.lat<c.lat,g=e.lng>b.lng&&d.lng<c.lng;return f&&g},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(a,b){return!!a&&(a=K(a),this._southWest.equals(a.getSouthWest(),b)&&this._northEast.equals(a.getNorthEast(),b))},isValid:function(){return!!(this._southWest&&this._northEast)}},L.prototype={equals:function(a,b){return!!a&&(a=M(a),Math.max(Math.abs(this.lat-a.lat),Math.abs(this.lng-a.lng))<=(void 0===b?1e-9:b))},toString:function(a){return"LatLng("+j(this.lat,a)+", "+j(this.lng,a)+")"},distanceTo:function(a){return V.distance(this,M(a))},wrap:function(){return V.wrapLatLng(this)},toBounds:function(a){var b=180*a/40075017,c=b/Math.cos(Math.PI/180*this.lat);return K([this.lat-b,this.lng-c],[this.lat+b,this.lng+c])},clone:function(){return new L(this.lat,this.lng,this.alt)}};var N,O,P,Q,R,S,T,U={latLngToPoint:function(a,b){var c=this.projection.project(a),d=this.scale(b);return this.transformation._transform(c,d)},pointToLatLng:function(a,b){var c=this.scale(b),d=this.transformation.untransform(a,c);return this.projection.unproject(d)},project:function(a){return this.projection.project(a)},unproject:function(a){return this.projection.unproject(a)},scale:function(a){return 256*Math.pow(2,a)},zoom:function(a){return Math.log(a/256)/Math.LN2},getProjectedBounds:function(a){if(this.infinite)return null;var b=this.projection.bounds,c=this.scale(a),d=this.transformation.transform(b.min,c),e=this.transformation.transform(b.max,c);return new H(d,e)},infinite:!1,wrapLatLng:function(a){var b=this.wrapLng?h(a.lng,this.wrapLng,!0):a.lng,c=this.wrapLat?h(a.lat,this.wrapLat,!0):a.lat,d=a.alt;return new L(c,b,d)},wrapLatLngBounds:function(a){var b=a.getCenter(),c=this.wrapLatLng(b),d=b.lat-c.lat,e=b.lng-c.lng;if(0===d&&0===e)return a;
1var f=a.getSouthWest(),g=a.getNorthEast(),h=new L(f.lat-d,f.lng-e),i=new L(g.lat-d,g.lng-e);return new J(h,i)}},V=b({},U,{wrapLng:[-180,180],R:6371e3,distance:function(a,b){var c=Math.PI/180,d=a.lat*c,e=b.lat*c,f=Math.sin((b.lat-a.lat)*c/2),g=Math.sin((b.lng-a.lng)*c/2),h=f*f+Math.cos(d)*Math.cos(e)*g*g;return this.R*(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)))}}),W={R:6378137,MAX_LATITUDE:85.0511287798,project:function(a){var b=Math.PI/180,c=this.MAX_LATITUDE,d=Math.max(Math.min(c,a.lat),-c),e=Math.sin(d*b);return new E(this.R*a.lng*b,this.R*Math.log((1+e)/(1-e))/2)},unproject:function(a){var b=180/Math.PI;return new L((2*Math.atan(Math.exp(a.y/this.R))-Math.PI/2)*b,a.x*b/this.R)},bounds:(T=6378137*Math.PI,new H([-T,-T],[T,T]))};function X(a,b,c,d){if(q(a)){this._a=a[0],this._b=a[1],this._c=a[2],this._d=a[3];return}this._a=a,this._b=b,this._c=c,this._d=d}function Y(a,b,c,d){return new X(a,b,c,d)}X.prototype={transform:function(a,b){return this._transform(a.clone(),b)},_transform:function(a,b){return b=b||1,a.x=b*(this._a*a.x+this._b),a.y=b*(this._c*a.y+this._d),a},untransform:function(a,b){return b=b||1,new E((a.x/b-this._b)/this._a,(a.y/b-this._d)/this._c)}};var Z,$=b({},V,{code:"EPSG:3857",projection:W,transformation:Y(Z=.5/(Math.PI*W.R),.5,-Z,.5)}),_=b({},$,{code:"EPSG:900913"});function aa(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function ba(a,b){var c,d,e,f,g,h,i="";for(c=0,e=a.length;c<e;c++){for(d=0,f=(g=a[c]).length;d<f;d++)h=g[d],i+=(d?"L":"M")+h.x+" "+h.y;i+=b?La.svg?"z":"x":""}return i||"M0 0"}var ca,da=document.documentElement.style,ea="ActiveXObject"in window,fa=ea&&!document.addEventListener,ga="msLaunchUri"in navigator&&!("documentMode"in document),ha=Ka("webkit"),ia=Ka("android"),ja=Ka("android 2")||Ka("android 3"),ka=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),la=ia&&Ka("Google")&&ka<537&&!("AudioNode"in window),ma=!!window.opera,na=!ga&&Ka("chrome"),oa=Ka("gecko")&&!ha&&!ma&&!ea,pa=!na&&Ka("safari"),qa=Ka("phantom"),ra="OTransition"in da,sa=0===navigator.platform.indexOf("Win"),ta=ea&&"transition"in da,ua="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix()&&!ja,va="MozPerspective"in da,wa=!window.L_DISABLE_3D&&(ta||ua||va)&&!ra&&!qa,xa="undefined"!=typeof orientation||Ka("mobile"),ya=!window.PointerEvent&&window.MSPointerEvent,za=!!(window.PointerEvent||ya),Aa="ontouchstart"in window||!!window.TouchEvent,Ba=!window.L_NO_TOUCH&&(Aa||za),Ca=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Da=function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",i,b),window.removeEventListener("testPassiveEventSupport",i,b)}catch(c){}return a}(),Ea=!!document.createElement("canvas").getContext,Fa=!!(document.createElementNS&&aa("svg").createSVGRect),Ga=!!Fa&&((ca=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(ca.firstChild&&ca.firstChild.namespaceURI)),Ha=!Fa&&function(){try{var a=document.createElement("div");a.innerHTML="<v:shape adj=\"1\"/>";var b=a.firstChild;return b.style.behavior="url(#default#VML)",b&&"object"==typeof b.adj}catch(c){return!1}}(),Ia=0===navigator.platform.indexOf("Mac"),Ja=0===navigator.platform.indexOf("Linux");function Ka(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var La={ie:ea,ielt9:fa,edge:ga,webkit:ha,android:ia,android23:ja,androidStock:la,opera:ma,chrome:na,gecko:oa,safari:pa,phantom:qa,opera12:ra,win:sa,ie3d:ta,webkit3d:ua,gecko3d:va,any3d:wa,mobile:xa,mobileWebkit:xa&&ha,mobileWebkit3d:xa&&ua,msPointer:ya,pointer:za,touch:Ba,touchNative:Aa,mobileOpera:xa&&ma,mobileGecko:xa&&oa,retina:Ca,passiveEvents:Da,canvas:Ea,svg:Fa,vml:Ha,inlineSvg:Ga,mac:Ia,linux:Ja},Ma=La.msPointer?"MSPointerDown":"pointerdown",Na=La.msPointer?"MSPointerMove":"pointermove",Oa=La.msPointer?"MSPointerUp":"pointerup",Pa=La.msPointer?"MSPointerCancel":"pointercancel",Qa={touchstart:Ma,touchmove:Na,touchend:Oa,touchcancel:Pa},Ra={touchstart:function(a,b){b.MSPOINTER_TYPE_TOUCH&&b.pointerType===b.MSPOINTER_TYPE_TOUCH&&Jb(b),Xa(a,b)},touchmove:Xa,touchend:Xa,touchcancel:Xa},Sa={},Ta=!1;function Ua(a){Sa[a.pointerId]=a}
1function Va(a){Sa[a.pointerId]&&(Sa[a.pointerId]=a)}function Wa(a){delete Sa[a.pointerId]}function Xa(a,b){if(b.pointerType!==(b.MSPOINTER_TYPE_MOUSE||"mouse")){for(var c in b.touches=[],Sa)b.touches.push(Sa[c]);b.changedTouches=[b],a(b)}}var Ya=nb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Za=nb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),$a="webkitTransition"===Za||"OTransition"===Za?Za+"End":"transitionend";function _a(a){return"string"==typeof a?document.getElementById(a):a}function ab(a,b){var c=a.style[b]||a.currentStyle&&a.currentStyle[b];if((!c||"auto"===c)&&document.defaultView){var d=document.defaultView.getComputedStyle(a,null);c=d?d[b]:null}return"auto"===c?null:c}function bb(a,b,c){var d=document.createElement(a);return d.className=b||"",c&&c.appendChild(d),d}function cb(a){var b=a.parentNode;b&&b.removeChild(a)}function db(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function eb(a){var b=a.parentNode;b&&b.lastChild!==a&&b.appendChild(a)}function fb(a){var b=a.parentNode;b&&b.firstChild!==a&&b.insertBefore(a,b.firstChild)}function gb(a,b){if(void 0!==a.classList)return a.classList.contains(b);var c=kb(a);return c.length>0&&new RegExp("(^|\\s)"+b+"(\\s|$)").test(c)}function hb(a,b){if(void 0!==a.classList)for(var c=l(b),d=0,e=c.length;d<e;d++)a.classList.add(c[d]);else if(!gb(a,b)){var f=kb(a);jb(a,(f?f+" ":"")+b)}}function ib(a,b){void 0!==a.classList?a.classList.remove(b):jb(a,k((" "+kb(a)+" ").replace(" "+b+" "," ")))}function jb(a,b){void 0===a.className.baseVal?a.className=b:a.className.baseVal=b}function kb(a){return a.correspondingElement&&(a=a.correspondingElement),void 0===a.className.baseVal?a.className:a.className.baseVal}function lb(a,b){"opacity"in a.style?a.style.opacity=b:"filter"in a.style&&mb(a,b)}function mb(a,b){var c=!1,d="DXImageTransform.Microsoft.Alpha";try{c=a.filters.item(d)}catch(e){if(1===b)return}b=Math.round(100*b),c?(c.Enabled=100!==b,c.Opacity=b):a.style.filter+=" progid:"+d+"(opacity="+b+")"}function nb(a){for(var b=document.documentElement.style,c=0;c<a.length;c++)if(a[c]in b)return a[c];return!1}function ob(a,b,c){var d=b||new E(0,0);a.style[Ya]=(La.ie3d?"translate("+d.x+"px,"+d.y+"px)":"translate3d("+d.x+"px,"+d.y+"px,0)")+(c?" scale("+c+")":"")}function pb(a,b){a._leaflet_pos=b,La.any3d?ob(a,b):(a.style.left=b.x+"px",a.style.top=b.y+"px")}function qb(a){return a._leaflet_pos||new E(0,0)}if("onselectstart"in document)N=function(){zb(window,"selectstart",Jb)},O=function(){Bb(window,"selectstart",Jb)};else{var rb=nb(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);N=function(){if(rb){var a=document.documentElement.style;P=a[rb],a[rb]="none"}},O=function(){rb&&(document.documentElement.style[rb]=P,P=void 0)}}function sb(){zb(window,"dragstart",Jb)}function tb(){Bb(window,"dragstart",Jb)}function ub(a){for(;-1===a.tabIndex;)a=a.parentNode;a.style&&(vb(),Q=a,R=a.style.outlineStyle,a.style.outlineStyle="none",zb(window,"keydown",vb))}function vb(){Q&&(Q.style.outlineStyle=R,Q=void 0,R=void 0,Bb(window,"keydown",vb))}function wb(a){do a=a.parentNode;while((!a.offsetWidth||!a.offsetHeight)&&a!==document.body);return a}function xb(a){var b=a.getBoundingClientRect();return{x:b.width/a.offsetWidth||1,y:b.height/a.offsetHeight||1,boundingClientRect:b}}var yb={__proto__:null,TRANSFORM:Ya,TRANSITION:Za,TRANSITION_END:$a,get:_a,getStyle:ab,create:bb,remove:cb,empty:db,toFront:eb,toBack:fb,hasClass:gb,addClass:hb,removeClass:ib,setClass:jb,getClass:kb,setOpacity:lb,testProp:nb,setTransform:ob,setPosition:pb,getPosition:qb,get disableTextSelection(){return N},get enableTextSelection(){return O},disableImageDrag:sb,enableImageDrag:tb,preventOutline:ub,restoreOutline:vb,getSizedParentNode:wb,getScale:xb};function zb(a,b,c,d){if(b&&"object"==typeof b)for(var e in b)Eb(a,e,b[e],c);else{b=l(b);for(var f=0,g=b.length;f<g;f++)Eb(a,b[f],c,d)}return this}var Ab="_leaflet_events";function Bb(a,b,c,d){if(1===arguments.length)Cb(a),delete a[Ab];else if(b&&"object"==typeof b)for(var e in b)Fb(a,e,b[e],c);else if(b=l(b),2===arguments.length)Cb(a,function(a){return -1!==r(b,a)});else for(var f=0,g=b.length;f<g;f++)Fb(a,b[f],c,d);return this}function Cb(a,b){for(var c in a[Ab]){var d=c.split(/\d/)[0];
1(!b||b(d))&&Fb(a,d,null,null,c)}}var Db={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Eb(a,b,c,d){var e,g,h,j=b+f(c)+(d?"_"+f(d):"");if(a[Ab]&&a[Ab][j])return this;var k=function(b){return c.call(d||a,b||window.event)},l=k;!La.touchNative&&La.pointer&&0===b.indexOf("touch")?k=(e=a,g=b,h=k,("touchstart"===g&&(Ta||(document.addEventListener(Ma,Ua,!0),document.addEventListener(Na,Va,!0),document.addEventListener(Oa,Wa,!0),document.addEventListener(Pa,Wa,!0),Ta=!0)),Ra[g])?(h=Ra[g].bind(this,h),e.addEventListener(Qa[g],h,!1),h):(console.warn("wrong event specified:",g),i)):La.touch&&"dblclick"===b?k=(function(a,b){a.addEventListener("dblclick",b);var c,d=0;function e(a){if(1!==a.detail){c=a.detail;return}if("mouse"!==a.pointerType&&(!a.sourceCapabilities||a.sourceCapabilities.firesTouchEvents)){var e=Lb(a);if(!e.some(function(a){return a instanceof HTMLLabelElement&&a.attributes.for})||e.some(function(a){return a instanceof HTMLInputElement||a instanceof HTMLSelectElement})){var f=Date.now();f-d<=200?(c++,2===c&&b(function(a){var b,c,d={};for(c in a)b=a[c],d[c]=b&&b.bind?b.bind(a):b;return a=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}(a))):c=1,d=f}}}return a.addEventListener("click",e),{dblclick:b,simDblclick:e}})(a,k):"addEventListener"in a?"touchstart"===b||"touchmove"===b||"wheel"===b||"mousewheel"===b?a.addEventListener(Db[b]||b,k,!!La.passiveEvents&&{passive:!1}):"mouseenter"===b||"mouseleave"===b?(k=function(b){Pb(a,b=b||window.event)&&l(b)},a.addEventListener(Db[b],k,!1)):a.addEventListener(b,l,!1):a.attachEvent("on"+b,k),a[Ab]=a[Ab]||{},a[Ab][j]=k}function Fb(a,b,c,d,e){e=e||b+f(c)+(d?"_"+f(d):"");var g,h,i=a[Ab]&&a[Ab][e];if(!i)return this;!La.touchNative&&La.pointer&&0===b.indexOf("touch")?(function(a,b,c){if(!Qa[b]){console.warn("wrong event specified:",b);return}a.removeEventListener(Qa[b],c,!1)})(a,b,i):La.touch&&"dblclick"===b?(g=a,h=i,g.removeEventListener("dblclick",h.dblclick),g.removeEventListener("click",h.simDblclick)):"removeEventListener"in a?a.removeEventListener(Db[b]||b,i,!1):a.detachEvent("on"+b,i),a[Ab][e]=null}function Gb(a){return a.stopPropagation?a.stopPropagation():a.originalEvent?a.originalEvent._stopped=!0:a.cancelBubble=!0,this}function Hb(a){return Eb(a,"wheel",Gb),this}function Ib(a){return zb(a,"mousedown touchstart dblclick contextmenu",Gb),a["_leaflet_disable_click"]=!0,this}function Jb(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,this}function Kb(a){return Jb(a),Gb(a),this}function Lb(a){if(a.composedPath)return a.composedPath();for(var b=[],c=a.target;c;)b.push(c),c=c.parentNode;return b}function Mb(a,b){if(!b)return new E(a.clientX,a.clientY);var c=xb(b),d=c.boundingClientRect;return new E((a.clientX-d.left)/c.x-b.clientLeft,(a.clientY-d.top)/c.y-b.clientTop)}var Nb=La.linux&&La.chrome?window.devicePixelRatio:La.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ob(a){return La.edge?a.wheelDeltaY/2:a.deltaY&&0===a.deltaMode?-a.deltaY/Nb:a.deltaY&&1===a.deltaMode?-(20*a.deltaY):a.deltaY&&2===a.deltaMode?-(60*a.deltaY):a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&32765>Math.abs(a.detail)?-(20*a.detail):a.detail?-(60*(a.detail/32765)):0}function Pb(a,b){var c=b.relatedTarget;if(!c)return!0;try{for(;c&&c!==a;)c=c.parentNode}catch(d){return!1}return c!==a}var Qb=D.extend({run:function(a,b,c,d){this.stop(),this._el=a,this._inProgress=!0,this._duration=c||.25,this._easeOutPower=1/Math.max(d||.5,.2),this._startPos=qb(a),this._offset=b.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=y(this._animate,this),this._step()},_step:function(a){var b=+new Date()-this._startTime,c=1e3*this._duration;b<c?this._runFrame(this._easeOut(b/c),a):(this._runFrame(1),this._complete())},_runFrame:function(a,b){var c=this._startPos.add(this._offset.multiplyBy(a));b&&c._round(),pb(this._el,c),this.fire("step")},_complete:function(){z(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(a){return 1-Math.pow(1-a,this._easeOutPower)}}),Rb=D.extend({options:{crs:$,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(a,b){b=m(this,b),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(a),this._initLayout(),this._onResize=d(this._onResize,this),this._initEvents(),b.maxBounds&&this.setMaxBounds(b.maxBounds),void 0!==b.zoom&&(this._zoom=this._limitZoom(b.zoom)),b.center&& void 0!==b.zoom&&this.setView(M(b.center),b.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Za&&La.any3d&&!La.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),zb(this._proxy,$a,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
1,setView:function(a,c,d){return(c=void 0===c?this._zoom:this._limitZoom(c),a=this._limitCenter(M(a),c,this.options.maxBounds),d=d||{},this._stop(),this._loaded&&!d.reset&& !0!==d&&(void 0!==d.animate&&(d.zoom=b({animate:d.animate},d.zoom),d.pan=b({animate:d.animate,duration:d.duration},d.pan)),this._zoom!==c?this._tryAnimatedZoom&&this._tryAnimatedZoom(a,c,d.zoom):this._tryAnimatedPan(a,d.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(a,c,d.pan&&d.pan.noMoveStart),this)},setZoom:function(a,b){return this._loaded?this.setView(this.getCenter(),a,{zoom:b}):(this._zoom=a,this)},zoomIn:function(a,b){return a=a||(La.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+a,b)},zoomOut:function(a,b){return a=a||(La.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-a,b)},setZoomAround:function(a,b,c){var d=this.getZoomScale(b),e=this.getSize().divideBy(2),f=(a instanceof E?a:this.latLngToContainerPoint(a)).subtract(e).multiplyBy(1-1/d),g=this.containerPointToLatLng(e.add(f));return this.setView(g,b,{zoom:c})},_getBoundsCenterZoom:function(a,b){b=b||{},a=a.getBounds?a.getBounds():K(a);var c=G(b.paddingTopLeft||b.padding||[0,0]),d=G(b.paddingBottomRight||b.padding||[0,0]),e=this.getBoundsZoom(a,!1,c.add(d));if((e="number"==typeof b.maxZoom?Math.min(b.maxZoom,e):e)===1/0)return{center:a.getCenter(),zoom:e};
1var f=d.subtract(c).divideBy(2),g=this.project(a.getSouthWest(),e),h=this.project(a.getNorthEast(),e);return{center:this.unproject(g.add(h).divideBy(2).add(f),e),zoom:e}},fitBounds:function(a,b){if(!(a=K(a)).isValid())throw new Error("Bounds are not valid.");var c=this._getBoundsCenterZoom(a,b);return this.setView(c.center,c.zoom,b)},fitWorld:function(a){return this.fitBounds([[-90,-180],[90,180]],a)},panTo:function(a,b){return this.setView(a,this._zoom,{pan:b})},panBy:function(a,b){if(b=b||{},!(a=G(a).round()).x&&!a.y)return this.fire("moveend");if(!0!==b.animate&&!this.getSize().contains(a))return this._resetView(this.unproject(this.project(this.getCenter()).add(a)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Qb(),this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),b.noMoveStart||this.fire("movestart"),!1!==b.animate){hb(this._mapPane,"leaflet-pan-anim");var c=this._getMapPanePos().subtract(a).round();this._panAnim.run(this._mapPane,c,b.duration||.25,b.easeLinearity)}else this._rawPanBy(a),this.fire("move").fire("moveend");return this},flyTo:function(a,b,c){if(!1===(c=c||{}).animate||!La.any3d)return this.setView(a,b,c);this._stop();var d=this.project(this.getCenter()),e=this.project(a),f=this.getSize(),g=this._zoom;a=M(a),b=void 0===b?g:b;var h=Math.max(f.x,f.y),i=h*this.getZoomScale(g,b),j=e.distanceTo(d)||1,k=1.42*1.42;function l(a){var b=(i*i-h*h+(a?-1:1)*k*k*j*j)/(2*(a?i:h)*k*j),c=Math.sqrt(b*b+1)-b;return c<1e-9?-18:Math.log(c)}function m(a){return(Math.exp(a)-Math.exp(-a))/2}function n(a){return(Math.exp(a)+Math.exp(-a))/2}var o=l(0),p=Date.now(),q=(l(1)-o)/1.42,r=c.duration?1e3*c.duration:1e3*q*.8;function s(){var c,f,i,l=(Date.now()-p)/r,t=(1-Math.pow(1-l,1.5))*q;l<=1?(this._flyToFrame=y(s,this),this._move(this.unproject(d.add(e.subtract(d).multiplyBy((c=t,h*(n(o)*(m(f=o+1.42*c)/n(f))-m(o))/k/j))),g),this.getScaleZoom(h/(i=t,h*(n(o)/n(o+1.42*i))),g),{flyTo:!0})):this._move(a,b)._moveEnd(!0)}return this._moveStart(!0,c.noMoveStart),s.call(this),this},flyToBounds:function(a,b){var c=this._getBoundsCenterZoom(a,b);return this.flyTo(c.center,c.zoom,b)},setMaxBounds:function(a){return(a=K(a),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),a.isValid())?(this.options.maxBounds=a,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(a){var b=this.options.minZoom;return(this.options.minZoom=a,this._loaded&&b!==a&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom))?this.setZoom(a):this},setMaxZoom:function(a){var b=this.options.maxZoom;return(this.options.maxZoom=a,this._loaded&&b!==a&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom))?this.setZoom(a):this},panInsideBounds:function(a,b){this._enforcingBounds=!0;var c=this.getCenter(),d=this._limitCenter(c,this._zoom,K(a));return c.equals(d)||this.panTo(d,b),this._enforcingBounds=!1,this},panInside:function(a,b){var c=G((b=b||{}).paddingTopLeft||b.padding||[0,0]),d=G(b.paddingBottomRight||b.padding||[0,0]),e=this.project(this.getCenter()),f=this.project(a),g=this.getPixelBounds(),h=I([g.min.add(c),g.max.subtract(d)]),i=h.getSize();if(!h.contains(f)){this._enforcingBounds=!0;var j=f.subtract(h.getCenter()),k=h.extend(f).getSize().subtract(i);e.x+=j.x<0?-k.x:k.x,e.y+=j.y<0?-k.y:k.y,this.panTo(this.unproject(e),b),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=b({animate:!1,pan:!0},!0===a?{animate:!0}:a);var c=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var e=this.getSize(),f=c.divideBy(2).round(),g=e.divideBy(2).round(),h=f.subtract(g);return h.x||h.y?(a.animate&&a.pan?this.panBy(h):(a.pan&&this._rawPanBy(h),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(d(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:c,newSize:e})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()}
1,locate:function(a){if(a=this._locateOptions=b({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=d(this._handleGeolocationResponse,this),e=d(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,e,a):navigator.geolocation.getCurrentPosition(c,e,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var b=a.code,c=a.message||(1===b?"permission denied":2===b?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:b,message:"Geolocation error: "+c+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var b=a.coords.latitude,c=a.coords.longitude,d=new L(b,c),e=d.toBounds(2*a.coords.accuracy),f=this._locateOptions;if(f.setView){var g=this.getBoundsZoom(e);this.setView(d,f.maxZoom?Math.min(g,f.maxZoom):g)}var h={latlng:d,bounds:e,timestamp:a.timestamp};for(var i in a.coords)"number"==typeof a.coords[i]&&(h[i]=a.coords[i]);this.fire("locationfound",h)}},addHandler:function(a,b){if(!b)return this;var c=this[a]=new b(this);return this._handlers.push(c),this.options[a]&&c.enable(),this},remove:function(){var a;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(b){this._container._leaflet_id=void 0,this._containerId=void 0}for(a in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),cb(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[a].remove();for(a in this._panes)cb(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,b){var c=bb("div","leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),b||this._mapPane);return a&&(this._panes[a]=c),c},getCenter:function(){return(this._checkIfLoaded(),this._lastCenter&&!this._moved())?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),b=this.unproject(a.getBottomLeft()),c=this.unproject(a.getTopRight());return new J(b,c)},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(a,b,c){a=K(a),c=G(c||[0,0]);var d=this.getZoom()||0,e=this.getMinZoom(),f=this.getMaxZoom(),g=a.getNorthWest(),h=a.getSouthEast(),i=this.getSize().subtract(c),j=I(this.project(h,d),this.project(g,d)).getSize(),k=La.any3d?this.options.zoomSnap:1,l=i.x/j.x,m=i.y/j.y,n=b?Math.max(l,m):Math.min(l,m);return d=this.getScaleZoom(n,d),k&&(d=Math.round(d/(k/100))*(k/100),d=b?Math.ceil(d/k)*k:Math.floor(d/k)*k),Math.max(e,Math.min(f,d))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,b){var c=this._getTopLeftPoint(a,b);return new H(c,c.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(void 0===a?this.getZoom():a)},getPane:function(a){return"string"==typeof a?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,b){var c=this.options.crs;return b=void 0===b?this._zoom:b,c.scale(a)/c.scale(b)},getScaleZoom:function(a,b){var c=this.options.crs;b=void 0===b?this._zoom:b;var d=c.zoom(a*c.scale(b));return isNaN(d)?1/0:d},project:function(a,b){return b=void 0===b?this._zoom:b,this.options.crs.latLngToPoint(M(a),b)},unproject:function(a,b){return b=void 0===b?this._zoom:b,this.options.crs.pointToLatLng(G(a),b)},layerPointToLatLng:function(a){var b=G(a).add(this.getPixelOrigin());return this.unproject(b)},latLngToLayerPoint:function(a){return this.project(M(a))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(M(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(K(a))},distance:function(a,b){return this.options.crs.distance(M(a),M(b))},containerPointToLayerPoint:function(a){return G(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return G(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var b=this.containerPointToLayerPoint(G(a));return this.layerPointToLatLng(b)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(M(a)))},mouseEventToContainerPoint:function(a){return Mb(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var b=this._container=_a(a);if(b){if(b._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");zb(b,"scroll",this._onScroll,this),this._containerId=f(b)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&La.any3d,hb(a,"leaflet-container"+(La.touch?" leaflet-touch":"")+(La.retina?" leaflet-retina":"")+(La.ielt9?" leaflet-oldie":"")+(La.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var b=ab(a,"position");"absolute"!==b&&"relative"!==b&&"fixed"!==b&&"sticky"!==b&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),pb(this._mapPane,new E(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(hb(a.markerPane,"leaflet-zoom-hide"),hb(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,b,c){pb(this._mapPane,new E(0,0));var d=!this._loaded;this._loaded=!0,b=this._limitZoom(b),this.fire("viewprereset");var e=this._zoom!==b;this._moveStart(e,c)._move(a,b)._moveEnd(e),this.fire("viewreset"),d&&this.fire("load")},_moveStart:function(a,b){return a&&this.fire("zoomstart"),b||this.fire("movestart"),this},_move:function(a,b,c,d){void 0===b&&(b=this._zoom);var e=this._zoom!==b;return this._zoom=b,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),d?c&&c.pinch&&this.fire("zoom",c):((e||c&&c.pinch)&&this.fire("zoom",c),this.fire("move",c)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){pb(this._mapPane,this._getMapPanePos().subtract(a))},_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(a){this._targets={},this._targets[f(this._container)]=this;var b=a?Bb:zb;b(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&b(window,"resize",this._onResize,this),La.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=y(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,b){for(var c,d=[],e="mouseout"===b||"mouseover"===b,g=a.target||a.srcElement,h=!1;g;){if((c=this._targets[f(g)])&&("click"===b||"preclick"===b)&&this._draggableMoved(c)){h=!0;break}if(c&&c.listens(b,!0)){if(e&&!Pb(g,a))break;if(d.push(c),e)break}if(g===this._container)break;g=g.parentNode}return!d.length&&!h&&!e&&this.listens(b,!0)&&(d=[this]),d},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a["_leaflet_disable_click"])return!0;a=a.parentNode}},_handleDOMEvent:function(a){var b=a.target||a.srcElement;if(!(!this._loaded||b["_leaflet_disable_events"]||"click"===a.type&&this._isCl
1ickDisabled(b))){var c=a.type;"mousedown"===c&&ub(b),this._fireDOMEvent(a,c)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,c,d){if("click"===a.type){var e=b({},a);e.type="preclick",this._fireDOMEvent(e,e.type,d)}var f=this._findEventTargets(a,c);if(d){for(var g=[],h=0;h<d.length;h++)d[h].listens(c,!0)&&g.push(d[h]);f=g.concat(f)}if(f.length){"contextmenu"===c&&Jb(a);var i=f[0],j={originalEvent:a};if("keypress"!==a.type&&"keydown"!==a.type&&"keyup"!==a.type){var k=i.getLatLng&&(!i._radius||i._radius<=10);j.containerPoint=k?this.latLngToContainerPoint(i.getLatLng()):this.mouseEventToContainerPoint(a),j.layerPoint=this.containerPointToLayerPoint(j.containerPoint),j.latlng=k?i.getLatLng():this.layerPointToLatLng(j.layerPoint)}for(h=0;h<f.length;h++)if(f[h].fire(c,j,!0),j.originalEvent._stopped|| !1===f[h].options.bubblingMouseEvents&& -1!==r(this._mouseEvents,c))return}},_draggableMoved:function(a){return(a=a.dragging&&a.dragging.enabled()?a:this).dragging&&a.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var a=0,b=this._handlers.length;a<b;a++)this._handlers[a].disable()},whenReady:function(a,b){return this._loaded?a.call(b||this,{target:this}):this.on("load",a,b),this},_getMapPanePos:function(){return qb(this._mapPane)||new E(0,0)},_moved:function(){var a=this._getMapPanePos();return a&&!a.equals([0,0])},_getTopLeftPoint:function(a,b){return(a&& void 0!==b?this._getNewPixelOrigin(a,b):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(a,b){var c=this.getSize()._divideBy(2);return this.project(a,b)._subtract(c)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(a,b,c){var d=this._getNewPixelOrigin(c,b);return this.project(a,b)._subtract(d)},_latLngBoundsToNewLayerBounds:function(a,b,c){var d=this._getNewPixelOrigin(c,b);
1return I([this.project(a.getSouthWest(),b)._subtract(d),this.project(a.getNorthWest(),b)._subtract(d),this.project(a.getSouthEast(),b)._subtract(d),this.project(a.getNorthEast(),b)._subtract(d)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(a){return this.latLngToLayerPoint(a).subtract(this._getCenterLayerPoint())},_limitCenter:function(a,b,c){if(!c)return a;var d=this.project(a,b),e=this.getSize().divideBy(2),f=new H(d.subtract(e),d.add(e)),g=this._getBoundsOffset(f,c,b);return 1>=Math.abs(g.x)&&1>=Math.abs(g.y)?a:this.unproject(d.add(g),b)},_limitOffset:function(a,b){if(!b)return a;var c=this.getPixelBounds(),d=new H(c.min.add(a),c.max.add(a));return a.add(this._getBoundsOffset(d,b))},_getBoundsOffset:function(a,b,c){var d=I(this.project(b.getNorthEast(),c),this.project(b.getSouthWest(),c)),e=d.min.subtract(a.min),f=d.max.subtract(a.max),g=this._rebound(e.x,-f.x),h=this._rebound(e.y,-f.y);return new E(g,h)},_rebound:function(a,b){return a+b>0?Math.round(a-b)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(b))},_limitZoom:function(a){var b=this.getMinZoom(),c=this.getMaxZoom(),d=La.any3d?this.options.zoomSnap:1;return d&&(a=Math.round(a/d)*d),Math.max(b,Math.min(c,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ib(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,b){var c=this._getCenterOffset(a)._trunc();return!!(!0===(b&&b.animate)||this.getSize().contains(c))&&(this.panBy(c,b),!0)},_createAnimProxy:function(){var a=this._proxy=bb("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(a){var b=Ya,c=this._proxy.style[b];ob(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),c===this._proxy.style[b]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){cb(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),b=this.getZoom();ob(this._proxy,this.project(a,b),this.getZoomScale(b,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,b,c){if(this._animatingZoom)return!0;if(c=c||{},!this._zoomAnimated|| !1===c.animate||this._nothingToAnimate()||Math.abs(b-this._zoom)>this.options.zoomAnimationThreshold)return!1;var d=this.getZoomScale(b),e=this._getCenterOffset(a)._divideBy(1-1/d);return!!(!0===c.animate||this.getSize().contains(e))&&(y(function(){this._moveStart(!0,c.noMoveStart||!1)._animateZoom(a,b,!0)},this),!0)},_animateZoom:function(a,b,c,e){this._mapPane&&(c&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=b,hb(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:b,noUpdate:e}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(d(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ib(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))}}),Sb=B.extend({options:{position:"topright"},initialize:function(a){m(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var b=this._map;return b&&b.removeControl(this),this.options.position=a,b&&b.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var b=this._container=this.onAdd(a),c=this.getPosition(),d=a._controlCorners[c];return hb(b,"leaflet-control"),-1!==c.indexOf("bottom")?d.insertBefore(b,d.firstChild):d.appendChild(b),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(cb(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),Tb=function(a){return new Sb(a)};Rb.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this}
1,_initControlPos:function(){var a=this._controlCorners={},b="leaflet-",c=this._controlContainer=bb("div",b+"control-container",this._container);function d(d,e){a[d+e]=bb("div",b+d+" "+b+e,c)}d("top","left"),d("top","right"),d("bottom","left"),d("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)cb(this._controlCorners[a]);cb(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ub=Sb.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,b,c,d){return c<d?-1:d<c?1:0}},initialize:function(a,b,c){for(var d in m(this,c),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,a)this._addLayer(a[d],d);for(d in b)this._addLayer(b[d],d,!0)},onAdd:function(a){this._initLayout(),this._update(),this._map=a,a.on("zoomend",this._checkDisabledLayers,this);for(var b=0;b<this._layers.length;b++)this._layers[b].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(a){return Sb.prototype.addTo.call(this,a),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(a,b){return this._addLayer(a,b),this._map?this._update():this},addOverlay:function(a,b){return this._addLayer(a,b,!0),this._map?this._update():this},removeLayer:function(a){a.off("add remove",this._onLayerChange,this);var b=this._getLayer(f(a));return b&&this._layers.splice(this._layers.indexOf(b),1),this._map?this._update():this},expand:function(){hb(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var a=this._map.getSize().y-(this._container.offsetTop+50);return a<this._section.clientHeight?(hb(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=a+"px"):ib(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ib(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var a="leaflet-control-layers",b=this._container=bb("div",a),c=this.options.collapsed;b.setAttribute("aria-haspopup",!0),Ib(b),Hb(b);var d=this._section=bb("section",a+"-list");c&&(this._map.on("click",this.collapse,this),zb(b,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var e=this._layersLink=bb("a",a+"-toggle",b);e.href="#",e.title="Layers",e.setAttribute("role","button"),zb(e,{keydown:function(a){13===a.keyCode&&this._expandSafely()},click:function(a){Jb(a),this._expandSafely()}},this),c||this.expand(),this._baseLayersList=bb("div",a+"-base",d),this._separator=bb("div",a+"-separator",d),this._overlaysList=bb("div",a+"-overlays",d),b.appendChild(d)},_getLayer:function(a){for(var b=0;b<this._layers.length;b++)if(this._layers[b]&&f(this._layers[b].layer)===a)return this._layers[b]},_addLayer:function(a,b,c){this._map&&a.on("add remove",this._onLayerChange,this),this._layers.push({layer:a,name:b,overlay:c}),this.options.sortLayers&&this._layers.sort(d(function(a,b){return this.options.sortFunction(a.layer,b.layer,a.name,b.name)},this)),this.options.autoZIndex&&a.setZIndex&&(this._lastZIndex++,a.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;db(this._baseLayersList),db(this._overlaysList),this._layerControlInputs=[];var a,b,c,d,e=0;for(c=0;c<this._layers.length;c++)d=this._layers[c],this._addItem(d),b=b||d.overlay,a=a||!d.overlay,e+=d.overlay?0:1;return this.options.hideSingleBase&&(a=a&&e>1,this._baseLayersList.style.display=a?"":"none"),this._separator.style.display=b&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var b=this._getLayer(f(a.target)),c=b.overlay?"add"===a.type?"overlayadd":"overlayremove":"add"===a.type?"baselayerchange":null;c&&this._map.fire(c,b)},_createRadioElement:function(a,b){var c=document.createElement("div");return c.innerHTML="<input type=\"radio\" class=\"leaflet-control-layers-selector\" name=\""+a+"\""+(b?" checked=\"checked\"":"")+"/>",c.firstChild},_addItem:function(a){var b,c=document.createElement("label"),d=this._map.hasLayer(a.layer);a.overlay?((b=document.createElement("input")).type="checkbox",b.className="leaflet-control-layers-selector",b.defaultChecked=d):b=this._createRadioElement("leaflet-base-layers_"+f(this),d),this._layerControlInputs.push(b),b.layerId=f(a.layer),zb(b,"click",this._onInputClick,this);var e=document.createElement("span");e.innerHTML=" "+a.name;var g=document.createElement("span");return c.appendChild(g),g.appendChild(b),g.appendChild(e),(a.overlay?this._overlaysList:this._baseLayersList).appendChild(c),this._checkDisabledLayers(),c},_onInputClick:function(){if(!this._preventClick){var a,b,c=this._layerControlInputs,d=[],e=[];this._handlingClick=!0;for(var f=c.length-1;f>=0;f--)a=c[f],b=this._getLayer(a.layerId).layer,a.checked?d.push(b):a.checked||e.push(b);for(f=0;f<e.length;f++)this._map.hasLayer(e[f])&&this._map.removeLayer(e[f]);for(f=0;f<d.length;f++)this._map.hasLayer(d[f])||this._map.addLayer(d[f]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var a,b,c=this._layerControlInputs,d=this._map.getZoom(),e=c.length-1;e>=0;e--)a=c[e],b=this._getLayer(a.layerId).layer,a.disabled=void 0!==b.options.minZoom&&d<b.options.minZoom|| void 0!==b.options.maxZoom&&d>b.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;this._preventClick=!0,zb(a,"click",Jb),this.expand();var b=this;setTimeout(function(){Bb(a,"click",Jb),b._preventClick=!1})}}),Vb=Sb.extend({options:{position:"topleft",zoomInText:"<span aria-hidden=\"true\">+</span>",zoomInTitle:"Zoom in",zoomOutText:"<span aria-hidden=\"true\">−</span>",zoomOutTitle:"Zoom out"},onAdd:function(a){var b="leaflet-control-zoom",c=bb("div",b+" leaflet-bar"),d=this.options;return this._zoomInButton=this._createButton(d.zoomInText,d.zoomInTitle,b+"-in",c,this._zoomIn),this._zoomOutButton=this._createButton(d.zoomOutText,d.zoomOutTitle,b+"-out",c,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),c},onRemove:function(a){a.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(a){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(a.shiftKey?3:1))},_zoomOut:function(a){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,b,c,d,e){var f=bb("a",c,d);return f.innerHTML=a,f.href="#",f.title=b,f.setAttribute("role","button"),f.setAttribute("aria-label",b),Ib(f),zb(f,"click",Kb),zb(f,"click",e,this),zb(f,"click",this._refocusOnMap,this),f},_updateDisabled:function(){var a=this._map,b="leaflet-disabled";ib(this._zoomInButton,b),ib(this._zoomOutButton,b),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(hb(this._zoomOutButton,b),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(hb(this._zoomInButton,b),this._zoomInButton.setAttribute("aria-disabled","true"))}});Rb.mergeOptions({zoomControl:!0}),Rb.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Vb(),this.addControl(this.zoomControl))});var Wb=Sb.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var b="leaflet-control-scale",c=bb("div",b),d=this.options;return this._addScales(d,b+"-line",c),a.on(d.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),c},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,b,c){a.metric&&(this._mScale=bb("div",b,c)),a.imperial&&(this._iScale=bb("div",b,c))},_update:function(){var a=this._map,b=a.getSize().y/2,c=a.distance(a.containerPointToLatLng([0,b]),a.containerPointToLatLng([this.options.maxWidth,b]));this._updateScales(c)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var b=this._getRoundNum(a);this._updateScale(this._mScale,b<1e3?b+" m":b/1e3+" km",b/a)},_updateImperial:function(a){var b,c,d,e=3.2808399*a;e>5280?(b=e/5280,c=this._getRoundNum(b),this._updateScale(this._iScale,c+" mi",c/b)):(d=this._getRoundNum(e),this._updateScale(this._iScale,d+" ft",d/e))},_updateScale:function(a,b,c){a.style.width=Math.round(this.options.maxWidth*c)+"px",a.innerHTML=b},_getRoundNum:function(a){var b=Math.pow(10,(Math.floor(a)+"").length-1),c=a/b;return b*(c=c>=10?10:c>=5?5:c>=3?3:c>=2?2:1)}}),Xb=Sb.extend({options:{position:"bottomright",prefix:"<a href=\"https://leafletjs.com\" title=\"A JavaScript library for interactive maps\">"+(La.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(a){m(this,a),this._attributions={}}
1,onAdd:function(a){for(var b in a.attributionControl=this,this._container=bb("div","leaflet-control-attribution"),Ib(this._container),a._layers)a._layers[b].getAttribution&&this.addAttribution(a._layers[b].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a&&(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update()),this},removeAttribution:function(a){return a&&this._attributions[a]&&(this._attributions[a]--,this._update()),this},_update:function(){if(this._map){var a=[];for(var b in this._attributions)this._attributions[b]&&a.push(b);var c=[];this.options.prefix&&c.push(this.options.prefix),a.length&&c.push(a.join(", ")),this._container.innerHTML=c.join(" <span aria-hidden=\"true\">|</span> ")}}});Rb.mergeOptions({attributionControl:!0}),Rb.addInitHook(function(){this.options.attributionControl&&new Xb().addTo(this)}),Sb.Layers=Ub,Sb.Zoom=Vb,Sb.Scale=Wb,Sb.Attribution=Xb,Tb.layers=function(a,b,c){return new Ub(a,b,c)},Tb.zoom=function(a){return new Vb(a)},Tb.scale=function(a){return new Wb(a)},Tb.attribution=function(a){return new Xb(a)};var Yb=B.extend({initialize:function(a){this._map=a},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}});Yb.addTo=function(a,b){return a.addHandler(b,this),this};var Zb=La.touch?"touchstart mousedown":"mousedown",$b=D.extend({options:{clickTolerance:3},initialize:function(a,b,c,d){m(this,d),this._element=a,this._dragStartTarget=b||a,this._preventOutline=c},enable:function(){this._enabled||(zb(this._dragStartTarget,Zb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&($b._dragging===this&&this.finishDrag(!0),Bb(this._dragStartTarget,Zb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!gb(this._element,"leaflet-zoom-anim"))){if(a.touches&&1!==a.touches.length){$b._dragging===this&&this.finishDrag();return}if(!$b._dragging&&!a.shiftKey&&(1===a.which||1===a.button||a.touches)&&($b._dragging=this,this._preventOutline&&ub(this._element),sb(),N(),!this._moving)){this.fire("down");var b=a.touches?a.touches[0]:a,c=wb(this._element);this._startPoint=new E(b.clientX,b.clientY),this._startPos=qb(this._element),this._parentScale=xb(c);var d="mousedown"===a.type;zb(document,d?"mousemove":"touchmove",this._onMove,this),zb(document,d?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1){this._moved=!0;return}var b=a.touches&&1===a.touches.length?a.touches[0]:a,c=new E(b.clientX,b.clientY)._subtract(this._startPoint);(c.x||c.y)&&(Math.abs(c.x)+Math.abs(c.y)<this.options.clickTolerance||(c.x/=this._parentScale.x,c.y/=this._parentScale.y,Jb(a),this._moved||(this.fire("dragstart"),this._moved=!0,hb(document.body,"leaflet-dragging"),this._lastTarget=a.target||a.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),hb(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(c),this._moving=!0,this._lastEvent=a,this._updatePosition()))}},_updatePosition:function(){var a={originalEvent:this._lastEvent};this.fire("predrag",a),pb(this._element,this._newPos),this.fire("drag",a)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(a){ib(document.body,"leaflet-dragging"),this._lastTarget&&(ib(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Bb(document,"mousemove touchmove",this._onMove,this),Bb(document,"mouseup touchend touchcancel",this._onUp,this),tb(),O();var b=this._moved&&this._moving;this._moving=!1,$b._dragging=!1,b&&this.fire("dragend",{noInertia:a,distance:this._newPos.distanceTo(this._startPos)})}});function _b(a,b,c){var d,e,f,g,h,i,j,k,l,m=[1,4,2,8];for(e=0,j=a.length;e<j;e++)a[e]._code=jc(a[e],b);for(g=0;g<4;g++){for(e=0,k=m[g],d=[],f=(j=a.length)-1;e<j;f=e++)h=a[e],i=a[f],h._code&k?i._code&k||((l=ic(i,h,k,b,c))._code=jc(l,b),d.push(l)):(i._code&k&&((l=ic(i,h,k,b,c))._code=jc(l,b),d.push(l)),d.push(h));a=d}return a}function ac(a,b){if(!a||0===a.length)throw new Error("latlngs not passed");mc(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var c,d,e,f,g,h,i,j,k,l=M([0,0]),m=K(a);
1m.getNorthWest().distanceTo(m.getSouthWest())*m.getNorthEast().distanceTo(m.getNorthWest())<1700&&(l=bc(a));var n=a.length,o=[];for(c=0;c<n;c++){var p=M(a[c]);o.push(b.project(M([p.lat-l.lat,p.lng-l.lng])))}for(c=0,h=i=j=0,d=n-1;c<n;d=c++)e=o[c],f=o[d],g=e.y*f.x-f.y*e.x,i+=(e.x+f.x)*g,j+=(e.y+f.y)*g,h+=3*g;k=0===h?o[0]:[i/h,j/h];var q=b.unproject(G(k));return M([q.lat+l.lat,q.lng+l.lng])}function bc(a){for(var b=0,c=0,d=0,e=0;e<a.length;e++){var f=M(a[e]);b+=f.lat,c+=f.lng,d++}return M([b/d,c/d])}function cc(a,b){if(!b||!a.length)return a.slice();var c=b*b;return a=ec(a=gc(a,c),c)}function dc(a,b,c){return Math.sqrt(lc(a,b,c,!0))}function ec(a,b){var c=a.length,d=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(c);d[0]=d[c-1]=1,fc(a,d,b,0,c-1);var e,f=[];for(e=0;e<c;e++)d[e]&&f.push(a[e]);return f}function fc(a,b,c,d,e){var f,g,h,i=0;for(g=d+1;g<=e-1;g++)(h=lc(a[g],a[d],a[e],!0))>i&&(f=g,i=h);i>c&&(b[f]=1,fc(a,b,c,d,f),fc(a,b,c,f,e))}function gc(a,b){for(var c=[a[0]],d=1,e=0,f=a.length;d<f;d++)kc(a[d],a[e])>b&&(c.push(a[d]),e=d);return e<f-1&&c.push(a[f-1]),c}function hc(a,b,c,d,e){var f,g,h,i=d?S:jc(a,c),j=jc(b,c);for(S=j;;){if(!(i|j))return[a,b];if(i&j)return!1;h=jc(g=ic(a,b,f=i||j,c,e),c),f===i?(a=g,i=h):(b=g,j=h)}}function ic(a,b,c,d,e){var f,g,h=b.x-a.x,i=b.y-a.y,j=d.min,k=d.max;return 8&c?(f=a.x+h*(k.y-a.y)/i,g=k.y):4&c?(f=a.x+h*(j.y-a.y)/i,g=j.y):2&c?(f=k.x,g=a.y+i*(k.x-a.x)/h):1&c&&(f=j.x,g=a.y+i*(j.x-a.x)/h),new E(f,g,e)}function jc(a,b){var c=0;return a.x<b.min.x?c|=1:a.x>b.max.x&&(c|=2),a.y<b.min.y?c|=4:a.y>b.max.y&&(c|=8),c}function kc(a,b){var c=b.x-a.x,d=b.y-a.y;return c*c+d*d}function lc(a,b,c,d){var e,f=b.x,g=b.y,h=c.x-f,i=c.y-g,j=h*h+i*i;return j>0&&((e=((a.x-f)*h+(a.y-g)*i)/j)>1?(f=c.x,g=c.y):e>0&&(f+=h*e,g+=i*e)),h=a.x-f,i=a.y-g,d?h*h+i*i:new E(f,g)}function mc(a){return!q(a[0])||"object"!=typeof a[0][0]&& void 0!==a[0][0]}function nc(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),mc(a)}function oc(a,b){if(!a||0===a.length)throw new Error("latlngs not passed");mc(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var c,d,e,f,g,h,i,j,k=M([0,0]),l=K(a);
1l.getNorthWest().distanceTo(l.getSouthWest())*l.getNorthEast().distanceTo(l.getNorthWest())<1700&&(k=bc(a));var m=a.length,n=[];for(c=0;c<m;c++){var o=M(a[c]);n.push(b.project(M([o.lat-k.lat,o.lng-k.lng])))}for(c=0,d=0;c<m-1;c++)d+=n[c].distanceTo(n[c+1])/2;if(0===d)j=n[0];else for(c=0,f=0;c<m-1;c++)if(g=n[c],h=n[c+1],e=g.distanceTo(h),f+=e,f>d){i=(f-d)/e,j=[h.x-i*(h.x-g.x),h.y-i*(h.y-g.y)];break}var p=b.unproject(G(j));return M([p.lat+k.lat,p.lng+k.lng])}var pc,qc={project:function(a){return new E(a.lng,a.lat)},unproject:function(a){return new L(a.y,a.x)},bounds:new H([-180,-90],[180,90])},rc={R:6378137,R_MINOR:6356752.314245179,bounds:new H([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(a){var b=Math.PI/180,c=this.R,d=a.lat*b,e=this.R_MINOR/c,f=Math.sqrt(1-e*e),g=f*Math.sin(d),h=Math.tan(Math.PI/4-d/2)/Math.pow((1-g)/(1+g),f/2);return d=-c*Math.log(Math.max(h,1e-10)),new E(a.lng*b*c,d)},unproject:function(a){for(var b,c=180/Math.PI,d=this.R,e=this.R_MINOR/d,f=Math.sqrt(1-e*e),g=Math.exp(-a.y/d),h=Math.PI/2-2*Math.atan(g),i=0,j=.1;i<15&&Math.abs(j)>1e-7;i++)b=f*Math.sin(h),b=Math.pow((1-b)/(1+b),f/2),j=Math.PI/2-2*Math.atan(g*b)-h,h+=j;return new L(h*c,a.x*c/d)}},sc=b({},V,{code:"EPSG:3395",projection:rc,transformation:Y(pc=.5/(Math.PI*rc.R),.5,-pc,.5)}),tc=b({},V,{code:"EPSG:4326",projection:qc,transformation:Y(1/180,1,-1/180,.5)}),uc=b({},U,{projection:qc,transformation:Y(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,b){var c=b.lng-a.lng,d=b.lat-a.lat;return Math.sqrt(c*c+d*d)},infinite:!0});U.Earth=V,U.EPSG3395=sc,U.EPSG3857=$,U.EPSG900913=_,U.EPSG4326=tc,U.Simple=uc;var vc=D.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[f(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[f(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var b=a.target;if(b.hasLayer(this)){if(this._map=b,this._zoomAnimated=b._zoomAnimated,this.getEvents){var c=this.getEvents();b.on(c,this),this.once("remove",function(){b.off(c,this)},this)}this.onAdd(b),this.fire("add"),b.fire("layeradd",{layer:this})}}});Rb.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var b=f(a);return this._layers[b]||(this._layers[b]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a)),this},removeLayer:function(a){var b=f(a);return this._layers[b]&&(this._loaded&&a.onRemove(this),delete this._layers[b],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null),this},hasLayer:function(a){return f(a) in this._layers},eachLayer:function(a,b){for(var c in this._layers)a.call(b,this._layers[c]);return this},_addLayers:function(a){a=a?q(a)?a:[a]:[];for(var b=0,c=a.length;b<c;b++)this.addLayer(a[b])},_addZoomLimit:function(a){isNaN(a.options.maxZoom)&&isNaN(a.options.minZoom)||(this._zoomBoundLayers[f(a)]=a,this._updateZoomLevels())},_removeZoomLimit:function(a){var b=f(a);this._zoomBoundLayers[b]&&(delete this._zoomBoundLayers[b],this._updateZoomLevels())},_updateZoomLevels:function(){var a=1/0,b=-1/0,c=this._getZoomSpan();for(var d in this._zoomBoundLayers){var e=this._zoomBoundLayers[d].options;a=void 0===e.minZoom?a:Math.min(a,e.minZoom),b=void 0===e.maxZoom?b:Math.max(b,e.maxZoom)}this._layersMaxZoom=b=== -1/0?void 0:b,this._layersMinZoom=a===1/0?void 0:a,c!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var wc=vc.extend({initialize:function(a,b){var c,d;if(m(this,b),this._layers={},a)for(c=0,d=a.length;c<d;c++)this.addLayer(a[c])},addLayer:function(a){var b=this.getLayerId(a);return this._layers[b]=a,this._map&&this._map.addLayer(a),this},removeLayer:function(a){var b=a in this._layers?a:this.getLayerId(a);return this._map&&this._layers[b]&&this._map.removeLayer(this._layers[b]),delete this._layers[b],this},hasLayer:function(a){return("number"==typeof a?a:this.getLayerId(a))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(a){var b,c,d=Array.prototype.slice.call(arguments,1
1);for(b in this._layers)(c=this._layers[b])[a]&&c[a].apply(c,d);return this},onAdd:function(a){this.eachLayer(a.addLayer,a)},onRemove:function(a){this.eachLayer(a.removeLayer,a)},eachLayer:function(a,b){for(var c in this._layers)a.call(b,this._layers[c]);return this},getLayer:function(a){return this._layers[a]},getLayers:function(){var a=[];return this.eachLayer(a.push,a),a},setZIndex:function(a){return this.invoke("setZIndex",a)},getLayerId:function(a){return f(a)}}),xc=wc.extend({addLayer:function(a){return this.hasLayer(a)?this:(a.addEventParent(this),wc.prototype.addLayer.call(this,a),this.fire("layeradd",{layer:a}))},removeLayer:function(a){return this.hasLayer(a)?(a in this._layers&&(a=this._layers[a]),a.removeEventParent(this),wc.prototype.removeLayer.call(this,a),this.fire("layerremove",{layer:a})):this},setStyle:function(a){return this.invoke("setStyle",a)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var a=new J();for(var b in this._layers){var c=this._layers[b];a.extend(c.getBounds?c.getBounds():c.getLatLng())}return a}}),yc=B.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(a){m(this,a)},createIcon:function(a){return this._createIcon("icon",a)},createShadow:function(a){return this._createIcon("shadow",a)},_createIcon:function(a,b){var c=this._getIconUrl(a);if(!c){if("icon"===a)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var d=this._createImg(c,b&&"IMG"===b.tagName?b:null);return this._setIconStyles(d,a),(this.options.crossOrigin||""===this.options.crossOrigin)&&(d.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),d},_setIconStyles:function(a,b){var c=this.options,d=c[b+"Size"];"number"==typeof d&&(d=[d,d]);var e=G(d),f=G("shadow"===b&&c.shadowAnchor||c.iconAnchor||e&&e.divideBy(2,!0));a.className="leaflet-marker-"+b+" "+(c.className||""),f&&(a.style.marginLeft=-f.x+"px",a.style.marginTop=-f.y+"px"),e&&(a.style.width=e.x+"px",a.style.height=e.y+"px")},_createImg:function(a,b){return(b=b||document.createElement("img")).src=a,b},_getIconUrl:function(a){return La.retina&&this.options[a+"RetinaUrl"]||this.options[a+"Url"]}}),zc=yc.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(a){return"string"!=typeof zc.imagePath&&(zc.imagePath=this._detectIconPath()),(this.options.imagePath||zc.imagePath)+yc.prototype._getIconUrl.call(this,a)},_stripUrl:function(a){var b=function(a,b,c){var d=b.exec(a);return d&&d[c]};return(a=b(a,/^url\((['"])?(.+)\1\)$/,2))&&b(a,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var a=bb("div","leaflet-default-icon-path",document.body),b=ab(a,"background-image")||ab(a,"backgroundImage");if(document.body.removeChild(a),b=this._stripUrl(b))return b;var c=document.querySelector("link[href$=\"leaflet.css\"]");return c?c.href.substring(0,c.href.length-11-1):""}}),Ac=Yb.extend({initialize:function(a){this._marker=a},addHooks:function(){var a=this._marker._icon;this._draggable||(this._draggable=new $b(a,a,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),hb(a,"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&&ib(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(a){var b=this._marker,c=b._map,d=this._marker.options.autoPanSpeed,e=this._marker.options.autoPanPadding,f=qb(b._icon),g=c.getPixelBounds(),h=c.getPixelOrigin(),i=I(g.min._subtract(h).add(e),g.max._subtract(h).subtract(e));if(!i.contains(f)){var j=G((Math.max(i.max.x,f.x)-i.max.x)/(g.max.x-i.max.x)-(Math.min(i.min.x,f.x)-i.min.x)/(g.min.x-i.min.x),(Math.max(i.max.y,f.y)-i.max.y)/(g.max.y-i.max.y)-(Math.min(i.min.y,f.y)-i.min.y)/(g.min.y-i.min.y)).multiplyBy(d);c.panBy(j,{animate:!1}),this._draggable._newPos._add(j),this._draggable._startPos._add(j),pb(b._icon,this._draggable._newPos),this._onDrag(a),this._panRequest=y(this._adjustPan.bind(this,a))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(a){this._marker.options.autoPan&&(z(this._panRequest),this._panRequest=y(this._adjustPan.bind(this,a)))},_onDrag:function(a){var b=this._marker,c=b._shadow,d=qb(b._icon),e=b._map.layerPointToLatLng(d);c&&pb(c,d),b._latlng=e,a.latlng=e,a.oldLatLng=this._oldLatLng,b.fire("move",a).fire("drag",a)},_onDragEnd:function(a){z(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",a)}}),Bc=vc.extend({options:{icon:new zc(),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(a,b){m(this,b),this._latlng=M(a)},onAdd:function(a){this._zoomAnimated=this._zoomAnimated&&a.options.markerZoomAnimation,this._zoomAnimated&&a.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(a){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&a.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(a){var b=this._latlng;return this._latlng=M(a),this.update(),this.fire("move",{oldLatLng:b,latlng:this._latlng})},setZIndexOffset:function(a){return this.options.zIndexOffset=a,this.update()},getIcon:function(){return this.options.icon},setIcon:function(a){return this.options.icon=a,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var a=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(a)}return this},_initIcon:function(){var a=this.options,b="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),c=a.icon.createIcon(this._icon),d=!1;c!==this._icon&&(this._icon&&this._removeIcon(),d=!0,a.title&&(c.title=a.title),"IMG"===c.tagName&&(c.alt=a.alt||"")),hb(c,b),a.keyboard&&(c.tabIndex="0",c.setAttribute("role","button")),this._icon=c,a.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&zb(c,"focus",this._panOnFocus,this);var e=a.icon.createShadow(this._shadow),f=!1;e!==this._shadow&&(this._removeShadow(),f=!0),e&&(hb(e,b),e.alt=""),this._shadow=e,a.opacity<1&&this._updateOpacity(),d&&this.getPane().appendChild(this._icon),this._initInteraction(),e&&f&&this.getPane(a.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
1),this.options.autoPanOnFocus&&Bb(this._icon,"focus",this._panOnFocus,this),cb(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&cb(this._shadow),this._shadow=null},_setPos:function(a){this._icon&&pb(this._icon,a),this._shadow&&pb(this._shadow,a),this._zIndex=a.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(a){this._icon&&(this._icon.style.zIndex=this._zIndex+a)},_animateZoom:function(a){var b=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center).round();this._setPos(b)},_initInteraction:function(){if(this.options.interactive&&(hb(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ac)){var a=this.options.draggable;this.dragging&&(a=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ac(this),a&&this.dragging.enable()}},setOpacity:function(a){return this.options.opacity=a,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var a=this.options.opacity;this._icon&&lb(this._icon,a),this._shadow&&lb(this._shadow,a)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var a=this._map;if(a){var b=this.options.icon.options,c=b.iconSize?G(b.iconSize):G(0,0),d=b.iconAnchor?G(b.iconAnchor):G(0,0);a.panInside(this._latlng,{paddingTopLeft:d,paddingBottomRight:c.subtract(d)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Cc=vc.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(a){this._renderer=a.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(a){return m(this,a),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&a&&Object.prototype.hasOwnProperty.call(a,"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)}}),Dc=Cc.extend({options:{fill:!0,radius:10},initialize:function(a,b){m(this,b),this._latlng=M(a),this._radius=this.options.radius},setLatLng:function(a){var b=this._latlng;return this._latlng=M(a),this.redraw(),this.fire("move",{oldLatLng:b,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(a){return this.options.radius=this._radius=a,this.redraw()},getRadius:function(){return this._radius},setStyle:function(a){var b=a&&a.radius||this._radius;return Cc.prototype.setStyle.call(this,a),this.setRadius(b),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var a=this._radius,b=this._radiusY||a,c=this._clickTolerance(),d=[a+c,b+c];this._pxBounds=new H(this._point.subtract(d),this._point.add(d))},_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(a){return a.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Ec=Dc.extend({initialize:function(a,c,d){if("number"==typeof c&&(c=b({},d,{radius:c})),m(this,c),this._latlng=M(a),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(a){return this._mRadius=a,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var a=[this._radius,this._radiusY||this._radius];
1return new J(this._map.layerPointToLatLng(this._point.subtract(a)),this._map.layerPointToLatLng(this._point.add(a)))},setStyle:Cc.prototype.setStyle,_project:function(){var a=this._latlng.lng,b=this._latlng.lat,c=this._map,d=c.options.crs;if(d.distance===V.distance){var e=Math.PI/180,f=this._mRadius/V.R/e,g=c.project([b+f,a]),h=c.project([b-f,a]),i=g.add(h).divideBy(2),j=c.unproject(i).lat,k=Math.acos((Math.cos(f*e)-Math.sin(b*e)*Math.sin(j*e))/(Math.cos(b*e)*Math.cos(j*e)))/e;(isNaN(k)||0===k)&&(k=f/Math.cos(Math.PI/180*b)),this._point=i.subtract(c.getPixelOrigin()),this._radius=isNaN(k)?0:i.x-c.project([j,a-k]).x,this._radiusY=i.y-g.y}else{var l=d.unproject(d.project(this._latlng).subtract([this._mRadius,0]));this._point=c.latLngToLayerPoint(this._latlng),this._radius=this._point.x-c.latLngToLayerPoint(l).x}this._updateBounds()}}),Fc=Cc.extend({options:{smoothFactor:1,noClip:!1},initialize:function(a,b){m(this,b),this._setLatLngs(a)},getLatLngs:function(){return this._latlngs},setLatLngs:function(a){return this._setLatLngs(a),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(a){for(var b,c,d=1/0,e=null,f=lc,g=0,h=this._parts.length;g<h;g++)for(var i=this._parts[g],j=1,k=i.length;j<k;j++){var l=f(a,b=i[j-1],c=i[j],!0);l<d&&(d=l,e=f(a,b,c))}return e&&(e.distance=Math.sqrt(d)),e}
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return oc(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(a,b){return b=b||this._defaultShape(),a=M(a),b.push(a),this._bounds.extend(a),this.redraw()},_setLatLngs:function(a){this._bounds=new J(),this._latlngs=this._convertLatLngs(a)},_defaultShape:function(){return mc(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(a){for(var b=[],c=mc(a),d=0,e=a.length;d<e;d++)c?(b[d]=M(a[d]),this._bounds.extend(b[d])):b[d]=this._convertLatLngs(a[d]);return b},_project:function(){var a=new H();this._rings=[],this._projectLatlngs(this._latlngs,this._rings,a),this._bounds.isValid()&&a.isValid()&&(this._rawPxBounds=a,this._updateBounds())},_updateBounds:function(){var a=this._clickTolerance(),b=new E(a,a);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(b),this._rawPxBounds.max.add(b)]))},_projectLatlngs:function(a,b,c){var d,e,f=a[0]instanceof L,g=a.length;if(f){for(d=0,e=[];d<g;d++)e[d]=this._map.latLngToLayerPoint(a[d]),c.extend(e[d]);b.push(e)}else for(d=0;d<g;d++)this._projectLatlngs(a[d],b,c)},_clipPoints:function(){var a=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(a)){if(this.options.noClip){this._parts=this._rings;return}var b,c,d,e,f,g,h,i=this._parts;for(b=0,d=0,e=this._rings.length;b<e;b++)for(c=0,f=(h=this._rings[b]).length;c<f-1;c++)!!(g=hc(h[c],h[c+1],a,c,!0))&&(i[d]=i[d]||[],i[d].push(g[0]),(g[1]!==h[c+1]||c===f-2)&&(i[d].push(g[1]),d++))}},_simplifyPoints:function(){for(var a=this._parts,b=this.options.smoothFactor,c=0,d=a.length;c<d;c++)a[c]=cc(a[c],b)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(a,b){var c,d,e,f,g,h,i=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(c=0,f=this._parts.length;c<f;c++)for(d=0,e=(g=(h=this._parts[c]).length)-1;d<g;e=d++)if((b||0!==d)&&dc(a,h[e],h[d])<=i)return!0;return!1}});Fc._flat=nc;var Gc=Fc.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ac(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(a){var b=Fc.prototype._convertLatLngs.call(this,a),c=b.length;return c>=2&&b[0]instanceof L&&b[0].equals(b[c-1])&&b.pop(),b},_setLatLngs:function(a){Fc.prototype._setLatLngs.call(this,a),mc(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return mc(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,b=this.options.weight,c=new E(b,b);if(a=new H(a.min.subtract(c),a.max.add(c)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(a)){if(this.options.noClip){this._parts=this._rings;return}for(var d,e=0,f=this._rings.length;e<f;e++)(d=_b(this._rings[e],a,!0)).length&&this._parts.push(d)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(a){var b,c,d,e,f,g,h,i,j=!1;if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(e=0,h=this._parts.length;e<h;e++)for(f=0,g=(i=(b=this._parts[e]).length)-1;f<i;g=f++)c=b[f],d=b[g],c.y>a.y!=d.y>a.y&&a.x<(d.x-c.x)*(a.y-c.y)/(d.y-c.y)+c.x&&(j=!j);return j||Fc.prototype._containsPoint.call(this,a,!0)}}),Hc=xc.extend({initialize:function(a,b){m(this,b),this._layers={},a&&this.addData(a)},addData:function(a){var b,c,d,e=q(a)?a:a.features;if(e){for(b=0,c=e.length;b<c;b++)((d=e[b]).geometries||d.geometry||d.features||d.coordinates)&&this.addData(d);return this}var f=this.options;if(f.filter&&!f.filter(a))return this;var g=Ic(a,f);return g?(g.feature=Pc(a),g.defaultOptions=g.options,this.resetStyle(g),f.onEachFeature&&f.onEachFeature(a,g),this.addLayer(g)):this},resetStyle:function(a){return void 0===a?this.eachLayer(this.resetStyle,this):(a.options=b({},a.defaultOptions),this._setLayerStyle(a,this.options.style),this)},setStyle:function(a){return this.eachLayer(function(b){this._setLayerStyle(b,a)},this)},_setLayerStyle:function(a,b){a.setStyle&&("function"==typeof b&&(b=b(a.feature)),a.setStyle(b))}});function Ic(a,b){var c,d,e,f,g="Feature"===a.type?a.geometry:a,h=g?g.coordinates:null,i=[],j=b&&b.pointToLayer,k=b&&b.coordsToLatLng||Kc;if(!h&&!g)return null;switch(g.type){case"Point":return Jc(j,a,c=k(h),b);case"MultiPoint":for(e=0,f=h.length;e<f;e++)c=k(h[e]),i.push(Jc(j,a,c,b));return new xc(i);case"LineString":case"MultiLineString":return d=Lc(h,"LineString"===g.type?0:1,k),new Fc(d,b);case"Polygon":case"MultiPolygon":return d=Lc(h,"Polygon"===g.type?1:2,k),new Gc(d,b);case"GeometryCollection":for(e=0,f=g.geometries.length;e<f;e++){var l=Ic({geometry:g.geometries[e],type:"Feature",properties:a.properties},b);l&&i.push(l)}return new xc(i);case"FeatureCollection":for(e=0,f=g.features.length;e<f;e++){var m=Ic(g.features[e],b);m&&i.push(m)}return new xc(i);default:throw new Error("Invalid GeoJSON object.")}}function Jc(a,b,c,d){return a?a(b,c):new Bc(c,d&&d.markersInheritOptions&&d)}function Kc(a){return new L(a[1],a[0],a[2])}function Lc(a,b,c){for(var d,e=[],f=0,g=a.length;f<g;f++)d=b?Lc(a[f],b-1,c):(c||Kc)(a[f]),e.push(d);return e}function Mc(a,b){return void 0!==(a=M(a)).alt?[j(a.lng,b),j(a.lat,b),j(a.alt,b)]:[j(a.lng,b),j(a.lat,b)]}function Nc(a,b,c,d){for(var e=[],f=0,g=a.length;f<g;f++)e.push(b?Nc(a[f],mc(a[f])?0:b-1,c,d):Mc(a[f],d));return!b&&c&&e.length>0&&e.push(e[0].slice()),e}function Oc(a,c){return a.feature?b({},a.feature,{geometry:c}):Pc(c)}function Pc(a){return"Feature"===a.type||"FeatureCollection"===a.type?a:{type:"Feature",properties:{},geometry:a}}var Qc={toGeoJSON:function(a){return Oc(this,{type:"Point",coordinates:Mc(this.getLatLng(),a)})}};function Rc(a,b){return new Hc(a,b)}Bc.include(Qc),Ec.include(Qc),Dc.include(Qc),Fc.include({toGeoJSON:function(a){var b=!mc(this._latlngs),c=Nc(this._latlngs,b?1:0,!1,a);return Oc(this,{type:(b?"Multi":"")+"LineString",coordinates:c})}}),Gc.include({toGeoJSON:function(a){var b=!mc(this._latlngs),c=b&&!mc(this._latlngs[0]),d=Nc(this._latlngs,c?2:b?1:0,!0,a);return b||(d=[d]),Oc(this,{type:(c?"Multi":"")+"Polygon",coordinates:d})}}),wc.include({toMultiPoint:function(a){var b=[];return this.eachLayer(function(c){b.push(c.toGeoJSON(a).geometry.coordinates)}),Oc(this,{type:"MultiPoint",coordinates:b})},toGeoJSON:function(a){var b=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===b)return this.toMultiPoint(a);var c="GeometryCollection"===b,d=[];return(this.eachLayer(function(b){if(b.toGeoJSON){var e=b.toGeoJSON(a);if(c)d.push(e.geometry);else{var f=Pc(e);"FeatureCollection"===f.type?d.push.apply(d,f.features):d.push(f)}}}),c)?Oc(this,{geometries:d,type:"GeometryCollection"}):{type:"FeatureCollection",features:d}}});var Sc=vc.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,b,c){this._url=a,this._bounds=K(b),m(this,c)},onAdd:function(){!this._image&&(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(hb(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){cb(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&eb(this._image),this},bringToBack:function(){return this._map&&fb(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=K(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a="IMG"===this._url.tagName,b=this._image=a?this._url:bb("img");if(hb(b,"leaflet-image-layer"),this._zoomAnimated&&hb(b,"leaflet-zoom-animated"),this.options.className&&hb(b,this.options.className),b.onselectstart=i,b.onmousemove=i,b.onload=d(this.fire,this,"load"),b.onerror=d(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(b.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),a){this._url=b.src;return}b.src=this._url,b.alt=this.options.alt},_animateZoom:function(a){var b=this._map.getZoomScale(a.zoom),c=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;ob(this._image,c,b)},_reset:function(){var a=this._image,b=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),c=b.getSize();pb(a,b.min),a.style.width=c.x+"px",a.style.height=c.y+"px"},_updateOpacity:function(){lb(this._image,this.options.opacity)},_updateZIndex:function(){this._image&& void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),Tc=Sc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
1ine:!0},_initImage:function(){var a="VIDEO"===this._url.tagName,b=this._image=a?this._url:bb("video");if(hb(b,"leaflet-image-layer"),this._zoomAnimated&&hb(b,"leaflet-zoom-animated"),this.options.className&&hb(b,this.options.className),b.onselectstart=i,b.onmousemove=i,b.onloadeddata=d(this.fire,this,"load"),a){for(var c=b.getElementsByTagName("source"),e=[],f=0;f<c.length;f++)e.push(c[f].src);this._url=c.length>0?e:[b.src];return}q(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(b.style,"objectFit")&&(b.style.objectFit="fill"),b.autoplay=!!this.options.autoplay,b.loop=!!this.options.loop,b.muted=!!this.options.muted,b.playsInline=!!this.options.playsInline;for(var g=0;g<this._url.length;g++){var h=bb("source");h.src=this._url[g],b.appendChild(h)}}}),Uc=Sc.extend({_initImage:function(){var a=this._image=this._url;hb(a,"leaflet-image-layer"),this._zoomAnimated&&hb(a,"leaflet-zoom-animated"),this.options.className&&hb(a,this.options.className),a.onselectstart=i,a.onmousemove=i}}),Vc=vc.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(a,b){a&&(a instanceof L||q(a))?(this._latlng=M(a),m(this,b)):(m(this,a),this._source=b),this.options.content&&(this._content=this.options.content)},openOn:function(a){return a=arguments.length?a:this._source._map,a.hasLayer(this)||a.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(a){return this._map?this.close():(arguments.length?this._source=a:a=this._source,this._prepareOpen(),this.openOn(a._map)),this},onAdd:function(a){this._zoomAnimated=a._zoomAnimated,this._container||this._initLayout(),a._fadeAnimated&&lb(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),a._fadeAnimated&&lb(this._container,1),this.bringToFront(),this.options.interactive&&(hb(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(a){a._fadeAnimated?(lb(this._container,0),this._removeTimeout=setTimeout(d(cb,void 0,this._container),200)):cb(this._container),this.options.interactive&&(ib(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(a){return this._latlng=M(a),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(a){return this._content=a,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 a={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&eb(this._container),this},bringToBack:function(){return this._map&&fb(this._container),this},_prepareOpen:function(a){var b=this._source;if(!b._map)return!1;if(b instanceof xc){b=null;var c=this._source._layers;for(var d in c)if(c[d]._map){b=c[d];break}if(!b)return!1;this._source=b}if(!a)if(b.getCenter)a=b.getCenter();else if(b.getLatLng)a=b.getLatLng();else if(b.getBounds)a=b.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(a),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var a=this._contentNode,b="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof b)a.innerHTML=b;else{for(;a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(b)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var a=this._map.latLngToLayerPoint(this._latlng),b=G(this.options.offset),c=this._getAnchor();this._zoomAnimated?pb(this._container,a.add(c)):b=b.add(a).add(c);var d=this._containerBottom=-b.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+b.x;this._container.style.bottom=d+"px",this._container.style.left=e+"px"}},_getAnchor:function(){return[0,0]}});Rb.include({_initOverlay:function(a,b,c,d){var e=b;return e instanceof a||(e=new a(d).setContent(b)),c&&e.setLatLng(c),e}}),vc.include({_initOverlay:function(a,b,c,d){var e=c;return e instanceof a?(m(e,d),e._source=this):(e=b&&!d?b:new a(d,this)).setContent(c),e}});var Wc=Vc.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(a){return a=arguments.length?a:this._source._map,!a.hasLayer(this)&&a._popup&&a._popup.options.autoClose&&a.removeLayer(a._popup),a._popup=this,Vc.prototype.openOn.call(this,a)},onAdd:function(a){Vc.prototype.onAdd.call(this,a),a.fire("popupopen",{popup:this}),!this._source||(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Cc||this._source.on("preclick",Gb))},onRemove:function(a){Vc.prototype.onRemove.call(this,a),a.fire("popupclose",{popup:this}),!this._source||(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Cc||this._source.off("preclick",Gb))},getEvents:function(){var a=Vc.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(a.preclick=this.close),this.options.keepInView&&
1(a.moveend=this._adjustPan),a},_initLayout:function(){var a="leaflet-popup",b=this._container=bb("div",a+" "+(this.options.className||"")+" leaflet-zoom-animated"),c=this._wrapper=bb("div",a+"-content-wrapper",b);if(this._contentNode=bb("div",a+"-content",c),Ib(b),Hb(this._contentNode),zb(b,"contextmenu",Gb),this._tipContainer=bb("div",a+"-tip-container",b),this._tip=bb("div",a+"-tip",this._tipContainer),this.options.closeButton){var d=this._closeButton=bb("a",a+"-close-button",b);d.setAttribute("role","button"),d.setAttribute("aria-label","Close popup"),d.href="#close",d.innerHTML="<span aria-hidden=\"true\">×</span>",zb(d,"click",function(a){Jb(a),this.close()},this)}},_updateLayout:function(){var a=this._contentNode,b=a.style;b.width="",b.whiteSpace="nowrap";var c=a.offsetWidth;c=Math.min(c,this.options.maxWidth),c=Math.max(c,this.options.minWidth),b.width=c+1+"px",b.whiteSpace="",b.height="";var d=a.offsetHeight,e=this.options.maxHeight,f="leaflet-popup-scrolled";e&&d>e?(b.height=e+"px",hb(a,f)):ib(a,f),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var b=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),c=this._getAnchor();pb(this._container,b.add(c))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var a=this._map,b=parseInt(ab(this._container,"marginBottom"),10)||0,c=this._container.offsetHeight+b,d=this._containerWidth,e=new E(this._containerLeft,-c-this._containerBottom);e._add(qb(this._container));var f=a.layerPointToContainerPoint(e),g=G(this.options.autoPanPadding),h=G(this.options.autoPanPaddingTopLeft||g),i=G(this.options.autoPanPaddingBottomRight||g),j=a.getSize(),k=0,l=0;f.x+d+i.x>j.x&&(k=f.x+d-j.x+i.x),f.x-k-h.x<0&&(k=f.x-h.x),f.y+c+i.y>j.y&&(l=f.y+c-j.y+i.y),f.y-l-h.y<0&&(l=f.y-h.y),(k||l)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([k,l]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Rb.mergeOptions({closePopupOnClick:!0}),Rb.include({openPopup:function(a,b,c){return this._initOverlay(Wc,a,b,c).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),vc.include({bindPopup:function(a,b){return this._popup=this._initOverlay(Wc,this._popup,a,b),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(a){return this._popup&&(this instanceof xc||(this._popup._source=this),this._popup._prepareOpen(a||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(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(this._popup&&this._map){Kb(a);var b=a.layer||a.target;if(this._popup._source===b&&!(b instanceof Cc)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng);return}this._popup._source=b,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){13===a.originalEvent.keyCode&&this._openPopup(a)}});var Xc=Vc.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){Vc.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){Vc.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=Vc.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){var a="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=bb("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var b,c,d=this._map,e=this._container,f=d.latLngToContainerPoint(d.getCenter()),g=d.layerPointToContainerPoint(a),h=this.options.direction,i=e.offsetWidth,j=e.offsetHeight,k=G(this.options.offset),l=this._getAnchor();
1"top"===h?(b=i/2,c=j):"bottom"===h?(b=i/2,c=0):"center"===h?(b=i/2,c=j/2):"right"===h?(b=0,c=j/2):"left"===h?(b=i,c=j/2):g.x<f.x?(h="right",b=0,c=j/2):(h="left",b=i+(k.x+l.x)*2,c=j/2),a=a.subtract(G(b,c,!0)).add(k).add(l),ib(e,"leaflet-tooltip-right"),ib(e,"leaflet-tooltip-left"),ib(e,"leaflet-tooltip-top"),ib(e,"leaflet-tooltip-bottom"),hb(e,"leaflet-tooltip-"+h),pb(e,a)},_updatePosition:function(){var a=this._map.latLngToLayerPoint(this._latlng);this._setPosition(a)},setOpacity:function(a){this.options.opacity=a,this._container&&lb(this._container,a)},_animateZoom:function(a){var b=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center);this._setPosition(b)},_getAnchor:function(){return G(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Rb.include({openTooltip:function(a,b,c){return this._initOverlay(Xc,a,b,c).openOn(this),this},closeTooltip:function(a){return a.close(),this}}),vc.include({bindTooltip:function(a,b){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Xc,this._tooltip,a,b),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(a){if(a||!this._tooltipHandlersAdded){var b={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?b.add=this._openTooltip:(b.mouseover=this._openTooltip,b.mouseout=this.closeTooltip,b.click=this._openTooltip,this._map?this._addFocusListeners():b.add=this._addFocusListeners),this._tooltip.options.sticky&&(b.mousemove=this._moveTooltip),this[a?"off":"on"](b),this._tooltipHandlersAdded=!a}},openTooltip:function(a){return this._tooltip&&(this instanceof xc||(this._tooltip._source=this),this._tooltip._prepareOpen(a)&&(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(a){return this._tooltip&&this._tooltip.setContent(a),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(a){var b="function"==typeof a.getElement&&a.getElement();b&&(zb(b,"focus",function(){this._tooltip._source=a,this.openTooltip()},this),zb(b,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(a){var b="function"==typeof a.getElement&&a.getElement();b&&b.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(a){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var b=this;this._map.once("moveend",function(){b._openOnceFlag=!1,b._openTooltip(a)});return}this._tooltip._source=a.layer||a.target,this.openTooltip(this._tooltip.options.sticky?a.latlng:void 0)}},_moveTooltip:function(a){var b,c,d=a.latlng;this._tooltip.options.sticky&&a.originalEvent&&(b=this._map.mouseEventToContainerPoint(a.originalEvent),c=this._map.containerPointToLayerPoint(b),d=this._map.layerPointToLatLng(c)),this._tooltip.setLatLng(d)}});var Yc=yc.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(a){var b=a&&"DIV"===a.tagName?a:document.createElement("div"),c=this.options;if(c.html instanceof Element?(db(b),b.appendChild(c.html)):b.innerHTML=!1!==c.html?c.html:"",c.bgPos){var d=G(c.bgPos);b.style.backgroundPosition=-d.x+"px "+ -d.y+"px"}return this._setIconStyles(b,"icon"),b},createShadow:function(){return null}});yc.Default=zc;var Zc=vc.extend({options:{tileSize:256,opacity:1,updateWhenIdle:La.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(a){m(this,a)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(a){a._addZoomLimit(this)},onRemove:function(a){this._removeAllTiles(),cb(this._container),a._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(eb(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(fb(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(a){return this.options.opacity=a,this._updateOpacity(),this},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var a=this._clampZoom(this._map.getZoom());a!==this._tileZoom&&(this._tileZoom=a,this._updateLevels()),this._update()}return this},getEvents:function(){var a={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=g(this._onMoveEnd,this.options.updateInterval,this)),a.move=this._onMove),this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},createTile:function(){return document.createElement("div")},getTileSize:function(){var a=this.options.tileSize;return a instanceof E?a:new E(a,a)},_updateZIndex:function(){this._container&& void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(a){for(var b,c=this.getPane().children,d=-a(-1/0,1/0),e=0,f=c.length;e<f;e++)b=c[e].style.zIndex,c[e]!==this._container&&b&&(d=a(d,+b));isFinite(d)&&(this.options.zIndex=d+a(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!La.ielt9){lb(this._container,this.options.opacity);var a=+new Date(),b=!1,c=!1;for(var d in this._tiles){var e=this._tiles[d];if(e.current&&e.loaded){var f=Math.min(1,(a-e.loaded)/200);lb(e.el,f),f<1?b=!0:(e.active?c=!0:this._onOpaqueTile(e),e.active=!0)}}c&&!this._noPrune&&this._pruneTiles(),b&&(z(this._fadeFrame),this._fadeFrame=y(this._updateOpacity,this))}},_onOpaqueTile:i,_initContainer:function(){this._container||(this._container=bb("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var a=this._tileZoom,b=this.options.maxZoom;if(void 0!==a){for(var c in this._levels)c=Number(c),this._levels[c].el.children.length||c===a?(this._levels[c].el.style.zIndex=b-Math.abs(a-c),this._onUpdateLevel(c)):(cb(this._levels[c].el),this._removeTilesAtZoom(c),this._onRemoveLevel(c),delete this._levels[c]);var d=this._levels[a],e=this._map;return d||((d=this._levels[a]={}).el=bb("div","leaflet-tile-container leaflet-zoom-animated",this._container),d.el.style.zIndex=b,d.origin=e.project(e.unproject(e.getPixelOrigin()),a).roun
vendor: 14,090 bytes, line 1
1d(),d.zoom=a,this._setZoomTransform(d,e.getCenter(),e.getZoom()),i(d.el.offsetWidth),this._onCreateLevel(d)),this._level=d,d}},_onUpdateLevel:i,_onRemoveLevel:i,_onCreateLevel:i,_pruneTiles:function(){if(this._map){var a,b,c=this._map.getZoom();if(c>this.options.maxZoom||c<this.options.minZoom){this._removeAllTiles();return}for(a in this._tiles)(b=this._tiles[a]).retain=b.current;for(a in this._tiles)if((b=this._tiles[a]).current&&!b.active){var d=b.coords;this._retainParent(d.x,d.y,d.z,d.z-5)||this._retainChildren(d.x,d.y,d.z,d.z+2)}for(a in this._tiles)this._tiles[a].retain||this._removeTile(a)}},_removeTilesAtZoom:function(a){for(var b in this._tiles)this._tiles[b].coords.z===a&&this._removeTile(b)},_removeAllTiles:function(){for(var a in this._tiles)this._removeTile(a)},_invalidateAll:function(){for(var a in this._levels)cb(this._levels[a].el),this._onRemoveLevel(Number(a)),delete this._levels[a];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(a,b,c,d){var e=Math.floor(a/2),f=Math.floor(b/2),g=c-1,h=new E(+e,+f);h.z=+g;var i=this._tileCoordsToKey(h),j=this._tiles[i];return j&&j.active?(j.retain=!0,!0):(j&&j.loaded&&(j.retain=!0),g>d&&this._retainParent(e,f,g,d))},_retainChildren:function(a,b,c,d){for(var e=2*a;e<2*a+2;e++)for(var f=2*b;f<2*b+2;f++){var g=new E(e,f);g.z=c+1;var h=this._tileCoordsToKey(g),i=this._tiles[h];if(i&&i.active){i.retain=!0;continue}i&&i.loaded&&(i.retain=!0),c+1<d&&this._retainChildren(e,f,c+1,d)}},_resetView:function(a){var b=a&&(a.pinch||a.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),b,b)},_animateZoom:function(a){this._setView(a.center,a.zoom,!0,a.noUpdate)},_clampZoom:function(a){var b=this.options;return void 0!==b.minNativeZoom&&a<b.minNativeZoom?b.minNativeZoom:void 0!==b.maxNativeZoom&&b.maxNativeZoom<a?b.maxNativeZoom:a},_setView:function(a,b,c,d){var e=Math.round(b);e=void 0!==this.options.maxZoom&&e>this.options.maxZoom|| void 0!==this.options.minZoom&&e<this.options.minZoom?void 0:this._clampZoom(e);var f=this.options.updateWhenZooming&&e!==this._tileZoom;(!d||f)&&(this._tileZoom=e,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==e&&this._update(a),c||this._pruneTiles(),this._noPrune=!!c),this._setZoomTransforms(a,b)},_setZoomTransforms:function(a,b){for(var c in this._levels)this._setZoomTransform(this._levels[c],a,b)},_setZoomTransform:function(a,b,c){var d=this._map.getZoomScale(c,a.zoom),e=a.origin.multiplyBy(d).subtract(this._map._getNewPixelOrigin(b,c)).round();La.any3d?ob(a.el,e,d):pb(a.el,e)},_resetGrid:function(){var a=this._map,b=a.options.crs,c=this._tileSize=this.getTileSize(),d=this._tileZoom,e=this._map.getPixelWorldBounds(this._tileZoom);e&&(this._globalTileRange=this._pxBoundsToTileRange(e)),this._wrapX=b.wrapLng&&!this.options.noWrap&&[Math.floor(a.project([0,b.wrapLng[0]],d).x/c.x),Math.ceil(a.project([0,b.wrapLng[1]],d).x/c.y)],this._wrapY=b.wrapLat&&!this.options.noWrap&&[Math.floor(a.project([b.wrapLat[0],0],d).y/c.x),Math.ceil(a.project([b.wrapLat[1],0],d).y/c.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(a){var b=this._map,c=b._animatingZoom?Math.max(b._animateToZoom,b.getZoom()):b.getZoom(),d=b.getZoomScale(c,this._tileZoom),e=b.project(a,this._tileZoom).floor(),f=b.getSize().divideBy(2*d);return new H(e.subtract(f),e.add(f))},_update:function(a){var b=this._map;if(b){var c=this._clampZoom(b.getZoom());if(void 0===a&&(a=b.getCenter()),void 0!==this._tileZoom){var d=this._getTiledPixelBounds(a),e=this._pxBoundsToTileRange(d),f=e.getCenter(),g=[],h=this.options.keepBuffer,i=new H(e.getBottomLeft().subtract([h,-h]),e.getTopRight().add([h,-h]));if(!(isFinite(e.min.x)&&isFinite(e.min.y)&&isFinite(e.max.x)&&isFinite(e.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var j in this._tiles){var k=this._tiles[j].coords;k.z===this._tileZoom&&i.contains(new E(k.x,k.y))||(this._tiles[j].current=!1)}if(Math.abs(c-this._tileZoom)>1){this._setView(a,c);return}for(var l=e.min.y;l<=e.max.y;l++)for(var m=e.min.x;m<=e.max.x;m++){var n=new E(m,l);if(n.z=this._tileZoom,this._isValidTile(n)){var o=this._tiles[this._tileCoordsToKey(n)];o?o.current=!0:g.push(n)}}if(g.sort(function(a,b){return a.distanceTo(f)-b.distanceTo(f)}),0!==g.length){this._loading||(this._loading=!0,this.fire("loading"));var p=document.createDocumentFragment();for(m=0;m<g.length;m++)this._addTile(g[m],p);this._level.el.appendChild(p)}}}},_isValidTile:function(a){var b=this._map.options.crs;if(!b.infinite){var c=this._globalTileRange;if(!b.wrapLng&&(a.x<c.min.x||a.x>c.max.x)|| !b.wrapLat&&(a.y<c.min.y||a.y>c.max.y))return!1}if(!this.options.bounds)return!0;var d=this._tileCoordsToBounds(a);return K(this.options.bounds).overlaps(d)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var b=this._map,c=this.getTileSize(),d=a.scaleBy(c),e=d.add(c),f=b.unproject(d,a.z),g=b.unproject(e,a.z);return[f,g]},_tileCoordsToBounds:function(a){var b=this._tileCoordsToNwSe(a),c=new J(b[0],b[1]);return this.options.noWrap||(c=this._map.wrapLatLngBounds(c)),c},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var b=a.split(":"),c=new E(+b[0],+b[1]);return c.z=+b[2],c},_removeTile:function(a){var b=this._tiles[a];b&&(cb(b.el),delete this._tiles[a],this.fire("tileunload",{tile:b.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){hb(a,"leaflet-tile");var b=this.getTileSize();a.style.width=b.x+"px",a.style.height=b.y+"px",a.onselectstart=i,a.onmousemove=i,La.ielt9&&this.options.opacity<1&&lb(a,this.options.opacity)},_addTile:function(a,b){var c=this._getTilePos(a),e=this._tileCoordsToKey(a),f=this.createTile(this._wrapCoords(a),d(this._tileReady,this,a));this._initTile(f),this.createTile.length<2&&y(d(this._tileReady,this,a,null,f)),pb(f,c),this._tiles[e]={el:f,coords:a,current:!0},b.appendChild(f),this.fire("tileloadstart",{tile:f,coords:a})},_tileReady:function(a,b,c){b&&this.fire("tileerror",{error:b,tile:c,coords:a});var e=this._tileCoordsToKey(a);!!(c=this._tiles[e])&&(c.loaded=+new Date(),this._map._fadeAnimated?(lb(c.el,0),z(this._fadeFrame),this._fadeFrame=y(this._updateOpacity,this)):(c.active=!0,this._pruneTiles()),b||(hb(c.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:c.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),La.ielt9||!this._map._fadeAnimated?y(this._pruneTiles,this):setTimeout(d(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var b=new E(this._wrapX?h(a.x,this._wrapX):a.x,this._wrapY?h(a.y,this._wrapY):a.y);return b.z=a.z,b},_pxBoundsToTileRange:function(a){var b=this.getTileSize();return new H(a.min.unscaleBy(b).floor(),a.max.unscaleBy(b).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}}),$c=Zc.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,b){this._url=a,(b=m(this,b)).detectRetina&&La.retina&&b.maxZoom>0?(b.tileSize=Math.floor(b.tileSize/2),b.zoomReverse?(b.zoomOffset--,b.minZoom=Math.min(b.maxZoom,b.minZoom+1)):(b.zoomOffset++,b.maxZoom=Math.max(b.minZoom,b.maxZoom-1)),b.minZoom=Math.max(0,b.minZoom)):b.zoomReverse?b.minZoom=Math.min(b.maxZoom,b.minZoom):b.maxZoom=Math.max(b.minZoom,b.maxZoom),"string"==typeof b.subdomains&&(b.subdomains=b.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,b){return this._url===a&& void 0===b&&(b=!0),this._url=a,b||this.redraw(),this},createTile:function(a,b){var c=document.createElement("img");return zb(c,"load",d(this._tileOnLoad,this,b,c)),zb(c,"error",d(this._tileOnError,this,b,c)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(c.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(c.referrerPolicy=this.options.referrerPolicy),c.alt="",c.src=this.getTileUrl(a),c},getTileUrl:function(a){var c={r:La.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var d=this._globalTileRange.max.y-a.y;this.options.tms&&(c.y=d),c["-y"]=d}return p(this._url,b(c,this.options))},_tileOnLoad:function(a,b){La.ielt9?setTimeout(d(a,this,null,b),0):a(null,b)},_tileOnError:function(a,b,c){var d=this.options.errorTileUrl;d&&b.getAttribute("src")!==d&&(b.src=d),a(c,b)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,b=this.options.maxZoom,c=this.options.zoomReverse,d=this.options.zoomOffset;return c&&(a=b-a),a+d},_getSubdomain:function(a){var b=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[b]},_abortLoading:function(){var a,b;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&((b=this._tiles[a].el).onload=i,b.onerror=i,!b.complete)){b.src=s;var c=this._tiles[a].coords;cb(b),delete this._tiles[a],this.fire("tileabort",{tile:b,coords:c})}},_removeTile:function(a){var b=this._tiles[a];if(b)return b.el.setAttribute("src",s),Zc.prototype._removeTile.call(this,a)},_tileReady:function(a,b,c){if(this._map&&(!c||c.getAttribute("src")!==s))return Zc.prototype._tileReady.call(this,a,b,c)}});function _c(a,b){return new $c(a,b)}var ad=$c.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,c){this._url=a;var d=b({},this.defaultWmsParams);for(var e in c)e in this.options||(d[e]=c[e]);var f=(c=m(this,c)).detectRetina&&La.retina?2:1,g=this.getTileSize();d.width=g.x*f,d.height=g.y*f,this.wmsParams=d},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var b=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[b]=this._crs.code,$c.prototype.onAdd.call(this,a)},getTileUrl:function(a){var b=this._tileCoordsToNwSe(a),c=this._crs,d=I(c.project(b[0]),c.project(b[1])),e=d.min,f=d.max,g=(this._wmsVersion>=1.3&&this._crs===tc?[e.y,e.x,f.y,f.x]:[e.x,e.y,f.x,f.y]).join(","),h=$c.prototype.getTileUrl.call(this,a);return h+n(this.wmsParams,h,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+g},setParams:function(a,c){return b(this.wmsParams,a),c||this.redraw(),this}});$c.WMS=ad,_c.wms=function(a,b){return new ad(a,b)};var bd=vc.extend({options:{padding:.1},initialize:function(a){m(this,a),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),hb(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 a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,b){var c=this._map.getZoomScale(b,this._zoom),d=this._map.getSize().multiplyBy(.5+this.options.padding),e=this._map.project(this._center,b),f=d.multiplyBy(-c).add(e).subtract(this._map._getNewPixelOrigin(a,b));La.any3d?ob(this._container,f,c):pb(this._container,f)},_reset:function(){for(var a in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,b=this._map.getSize(),c=this._map.containerPointToLayerPoint(b.multiplyBy(-a)).round();this._bounds=new H(c,c.add(b.multiplyBy(1+2*a)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),cd=bd.extend({options:{tolerance:0},getEvents:function(){var a=bd.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){bd.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");zb(a,"mousemove",this._onMouseMove,this),zb(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),zb(a,"mouseout",this._handleMouseOut,this),a["_leaflet_disable_events"]=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,cb(this._container),Bb(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var a in this._redrawBounds=null,this._layers)this._layers[a]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){bd.prototype._update.call(this);var a=this._bounds,b=this._container,c=a.getSize(),d=La.retina?2:1;pb(b,a.min),b.width=d*c.x,b.height=d*c.y,b.style.width=c.x+"px",b.style.height=c.y+"px",La.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){bd.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[f(a)]=a;var b=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=b),this._drawLast=b,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var b=a._order,c=b.next,d=b.prev;c?c.prev=d:this._drawLast=d,d?d.next=c:this._drawFirst=c,delete a._order,delete this._layers[f(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)}
1,_updateDashArray:function(a){if("string"==typeof a.options.dashArray){var b,c,d=a.options.dashArray.split(/[, ]+/),e=[];for(c=0;c<d.length;c++){if(isNaN(b=Number(d[c])))return;e.push(b)}a.options._dashArray=e}else a.options._dashArray=a.options.dashArray},_requestRedraw:function(a){this._map&&(this._extendRedrawBounds(a),this._redrawRequest=this._redrawRequest||y(this._redraw,this))},_extendRedrawBounds:function(a){if(a._pxBounds){var b=(a.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H(),this._redrawBounds.extend(a._pxBounds.min.subtract([b,b])),this._redrawBounds.extend(a._pxBounds.max.add([b,b]))}},_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 a=this._redrawBounds;if(a){var b=a.getSize();this._ctx.clearRect(a.min.x,a.min.y,b.x,b.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var a,b=this._redrawBounds;if(this._ctx.save(),b){var c=b.getSize();this._ctx.beginPath(),this._ctx.rect(b.min.x,b.min.y,c.x,c.y),this._ctx.clip()}this._drawing=!0;for(var d=this._drawFirst;d;d=d.next)a=d.layer,(!b||a._pxBounds&&a._pxBounds.intersects(b))&&a._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(a,b){if(this._drawing){var c,d,e,f,g=a._parts,h=g.length,i=this._ctx;if(h){for(i.beginPath(),c=0;c<h;c++){for(d=0,e=g[c].length;d<e;d++)f=g[c][d],i[d?"lineTo":"moveTo"](f.x,f.y);b&&i.closePath()}this._fillStroke(i,a)}}},_updateCircle:function(a){if(!(!this._drawing||a._empty())){var b=a._point,c=this._ctx,d=Math.max(Math.round(a._radius),1),e=(Math.max(Math.round(a._radiusY),1)||d)/d;1!==e&&(c.save(),c.scale(1,e)),c.beginPath(),c.arc(b.x,b.y/e,d,0,2*Math.PI,!1),1!==e&&c.restore(),this._fillStroke(c,a)}},_fillStroke:function(a,b){var c=b.options;c.fill&&(a.globalAlpha=c.fillOpacity,a.fillStyle=c.fillColor||c.color,a.fill(c.fillRule||"evenodd")),c.stroke&&0!==c.weight&&(a.setLineDash&&a.setLineDash(b.o
1ptions&&b.options._dashArray||[]),a.globalAlpha=c.opacity,a.lineWidth=c.weight,a.strokeStyle=c.color,a.lineCap=c.lineCap,a.lineJoin=c.lineJoin,a.stroke())},_onClick:function(a){for(var b,c,d=this._map.mouseEventToLayerPoint(a),e=this._drawFirst;e;e=e.next)(b=e.layer).options.interactive&&b._containsPoint(d)&&(("click"===a.type||"preclick"===a.type)&&this._map._draggableMoved(b)||(c=b));this._fireEvent(!!c&&[c],a)},_onMouseMove:function(a){if(!(!this._map||this._map.dragging.moving())&&!this._map._animatingZoom){var b=this._map.mouseEventToLayerPoint(a);this._handleMouseHover(a,b)}},_handleMouseOut:function(a){var b=this._hoveredLayer;b&&(ib(this._container,"leaflet-interactive"),this._fireEvent([b],a,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(a,b){if(!this._mouseHoverThrottled){for(var c,e,f=this._drawFirst;f;f=f.next)(c=f.layer).options.interactive&&c._containsPoint(b)&&(e=c);e!==this._hoveredLayer&&(this._handleMouseOut(a),e&&(hb(this._container,"leaflet-interactive"),this._fireEvent([e],a,"mouseover"),this._hoveredLayer=e)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],a),this._mouseHoverThrottled=!0,setTimeout(d(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(a,b,c){this._map._fireDOMEvent(b,c||b.type,a)},_bringToFront:function(a){var b=a._order;if(b){var c=b.next,d=b.prev;c&&(c.prev=d,d?d.next=c:c&&(this._drawFirst=c),b.prev=this._drawLast,this._drawLast.next=b,b.next=null,this._drawLast=b,this._requestRedraw(a))}},_bringToBack:function(a){var b=a._order;if(b){var c=b.next,d=b.prev;d&&(d.next=c,c?c.prev=d:d&&(this._drawLast=d),b.prev=null,b.next=this._drawFirst,this._drawFirst.prev=b,this._drawFirst=b,this._requestRedraw(a))}}});function dd(a){return La.canvas?new cd(a):null}var ed=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(a){return document.createElement("<lvml:"+a+" class=\"lvml\">")}}catch(a){}return function(a){return document.createElement("<"+a+" xmlns=\"urn:schemas-microsoft.com:vml\" class=\"lvml\">")}}(),fd=La.vml?ed:aa,gd=bd.extend({_initContainer:function(){this._container=fd("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=fd("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){cb(this._container),Bb(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){bd.prototype._update.call(this);var a=this._bounds,b=a.getSize(),c=this._container;this._svgSize&&this._svgSize.equals(b)||(this._svgSize=b,c.setAttribute("width",b.x),c.setAttribute("height",b.y)),pb(c,a.min),c.setAttribute("viewBox",[a.min.x,a.min.y,b.x,b.y].join(" ")),this.fire("update")}},_initPath:function(a){var b=a._path=fd("path");a.options.className&&hb(b,a.options.className),a.options.interactive&&hb(b,"leaflet-interactive"),this._updateStyle(a),this._layers[f(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){cb(a._path),a.removeInteractiveTarget(a._path),delete this._layers[f(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var b=a._path,c=a.options;b&&(c.stroke?(b.setAttribute("stroke",c.color),b.setAttribute("stroke-opacity",c.opacity),b.setAttribute("stroke-width",c.weight),b.setAttribute("stroke-linecap",c.lineCap),b.setAttribute("stroke-linejoin",c.lineJoin),c.dashArray?b.setAttribute("stroke-dasharray",c.dashArray):b.removeAttribute("stroke-dasharray"),c.dashOffset?b.setAttribute("stroke-dashoffset",c.dashOffset):b.removeAttribute("stroke-dashoffset")):b.setAttribute("stroke","none"),c.fill?(b.setAttribute("fill",c.fillColor||c.color),b.setAttribute("fill-opacity",c.fillOpacity),b.setAttribute("fill-rule",c.fillRule||"evenodd")):b.setAttribute("fill","none"))},_updatePoly:function(a,b){this._setPath(a,ba(a._parts,b))},_updateCircle:function(a){var b=a._point,c=Math.max(Math.round(a._radius),1),d=Math.max(Math.round(a._radiusY),1)||c,e="a"+c+","+d+" 0 1,0 ",f=a._empty()?"M0 0":"M"+(b.x-c)+","+b.y+e+2*c+",0 "+e+ -(2*c)+",0 ";this._setPath(a,f)},_setPath:function(a,b){a._path.setAttribute("d",b)},_bringToFront:function(a){eb(a._path)},_bringToBack:function(a){fb(a._path)}});function hd(a){return La.svg||La.vml?new gd(a):null}La.vml&&gd.include({_initContainer:function(){this._container=bb("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(bd.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var b=a._container=ed("shape");
1hb(b,"leaflet-vml-shape "+(this.options.className||"")),b.coordsize="1 1",a._path=ed("path"),b.appendChild(a._path),this._updateStyle(a),this._layers[f(a)]=a},_addPath:function(a){var b=a._container;this._container.appendChild(b),a.options.interactive&&a.addInteractiveTarget(b)},_removePath:function(a){var b=a._container;cb(b),a.removeInteractiveTarget(b),delete this._layers[f(a)]},_updateStyle:function(a){var b=a._stroke,c=a._fill,d=a.options,e=a._container;e.stroked=!!d.stroke,e.filled=!!d.fill,d.stroke?(b||(b=a._stroke=ed("stroke")),e.appendChild(b),b.weight=d.weight+"px",b.color=d.color,b.opacity=d.opacity,d.dashArray?b.dashStyle=q(d.dashArray)?d.dashArray.join(" "):d.dashArray.replace(/( *, *)/g," "):b.dashStyle="",b.endcap=d.lineCap.replace("butt","flat"),b.joinstyle=d.lineJoin):b&&(e.removeChild(b),a._stroke=null),d.fill?(c||(c=a._fill=ed("fill")),e.appendChild(c),c.color=d.fillColor||d.color,c.opacity=d.fillOpacity):c&&(e.removeChild(c),a._fill=null)},_updateCircle:function(a){var b=a._point.round(),c=Math.round(a._radius),d=Math.round(a._radiusY||c);this._setPath(a,a._empty()?"M0 0":"AL "+b.x+","+b.y+" "+c+","+d+" 0,23592600")},_setPath:function(a,b){a._path.v=b},_bringToFront:function(a){eb(a._container)},_bringToBack:function(a){fb(a._container)}}),Rb.include({getRenderer:function(a){var b=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return b||(b=this._renderer=this._createRenderer()),this.hasLayer(b)||this.addLayer(b),b},_getPaneRenderer:function(a){if("overlayPane"===a|| void 0===a)return!1;var b=this._paneRenderers[a];return void 0===b&&(b=this._createRenderer({pane:a}),this._paneRenderers[a]=b),b},_createRenderer:function(a){return this.options.preferCanvas&&dd(a)||hd(a)}});var id=Gc.extend({initialize:function(a,b){Gc.prototype.initialize.call(this,this._boundsToLatLngs(a),b)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))}
1,_boundsToLatLngs:function(a){return[(a=K(a)).getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});gd.create=fd,gd.pointsToPath=ba,Hc.geometryToLayer=Ic,Hc.coordsToLatLng=Kc,Hc.coordsToLatLngs=Lc,Hc.latLngToCoords=Mc,Hc.latLngsToCoords=Nc,Hc.getFeature=Oc,Hc.asFeature=Pc,Rb.mergeOptions({boxZoom:!0});var jd=Yb.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){zb(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Bb(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){cb(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(a){if(!a.shiftKey||1!==a.which&&1!==a.button)return!1;this._clearDeferredResetState(),this._resetState(),N(),sb(),this._startPoint=this._map.mouseEventToContainerPoint(a),zb(document,{contextmenu:Kb,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=bb("div","leaflet-zoom-box",this._container),hb(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var b=new H(this._point,this._startPoint),c=b.getSize();pb(this._box,b.min),this._box.style.width=c.x+"px",this._box.style.height=c.y+"px"},_finish:function(){this._moved&&(cb(this._box),ib(this._container,"leaflet-crosshair")),O(),tb(),Bb(document,{contextmenu:Kb,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if((1===a.which||1===a.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(d(this._resetState,this),0);var b=new J(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(b).fire("boxzoomend",{boxZoomBounds:b})}},_onKeyDown:function(a){27===a.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Rb.addInitHook("addHandler","boxZoom",jd),Rb.mergeOptions({doubleClickZoom:!0});var kd=Yb.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var b=this._map,c=b.getZoom(),d=b.options.zoomDelta,e=a.originalEvent.shiftKey?c-d:c+d;"center"===b.options.doubleClickZoom?b.setZoom(e):b.setZoomAround(a.containerPoint,e)}});Rb.addInitHook("addHandler","doubleClickZoom",kd),Rb.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ld=Yb.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new $b(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}hb(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ib(this._map._container,"leaflet-grab"),ib(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 a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var b=K(this._map.options.maxBounds);this._offsetLimit=I(this._map.latLngToContainerPoint(b.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(b.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])}
1,_onDrag:function(a){if(this._map.options.inertia){var b=this._lastTime=+new Date(),c=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(c),this._times.push(b),this._prunePositions(b)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),b=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=b.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,b){return a-(a-b)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var a=this._draggable._newPos.subtract(this._draggable._startPos),b=this._offsetLimit;a.x<b.min.x&&(a.x=this._viscousLimit(a.x,b.min.x)),a.y<b.min.y&&(a.y=this._viscousLimit(a.y,b.min.y)),a.x>b.max.x&&(a.x=this._viscousLimit(a.x,b.max.x)),a.y>b.max.y&&(a.y=this._viscousLimit(a.y,b.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,b=Math.round(a/2),c=this._initialWorldOffset,d=this._draggable._newPos.x,e=(d-b+c)%a+b-c,f=(d+b+c)%a-b-c;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Math.abs(e+c)<Math.abs(f+c)?e:f},_onDragEnd:function(a){var b=this._map,c=b.options,d=!c.inertia||a.noInertia||this._times.length<2;if(b.fire("dragend",a),d)b.fire("moveend");else{this._prunePositions(+new Date());var e=this._lastPos.subtract(this._positions[0]),f=(this._lastTime-this._times[0])/1e3,g=c.easeLinearity,h=e.multiplyBy(g/f),i=h.distanceTo([0,0]),j=Math.min(c.inertiaMaxSpeed,i),k=h.multiplyBy(j/i),l=j/(c.inertiaDeceleration*g),m=k.multiplyBy(-l/2).round();m.x||m.y?(m=b._limitOffset(m,b.options.maxBounds),y(function(){b.panBy(m,{duration:l,easeLinearity:g,noMoveStart:!0,animate:!0})})):b.fire("moveend")}}});Rb.addInitHook("addHandler","dragging",ld),Rb.mergeOptions({keyboard:!0,keyboardPanDelta:80});var md=Yb.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(a){this._map=a,this._setPanDelta(a.options.keyboardPanDelta),this._setZoomDelta(a.options.zoomDelta)},addHooks:function(){var a=this._map._container;a.tabIndex<=0&&(a.tabIndex="0"),zb(a,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Bb(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var a=document.body,b=document.documentElement,c=a.scrollTop||b.scrollTop,d=a.scrollLeft||b.scrollLeft;this._map._container.focus(),window.scrollTo(d,c)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(a){var b,c,d=this._panKeys={},e=this.keyCodes;for(b=0,c=e.left.length;b<c;b++)d[e.left[b]]=[-1*a,0];for(b=0,c=e.right.length;b<c;b++)d[e.right[b]]=[a,0];for(b=0,c=e.down.length;b<c;b++)d[e.down[b]]=[0,a];for(b=0,c=e.up.length;b<c;b++)d[e.up[b]]=[0,-1*a]},_setZoomDelta:function(a){var b,c,d=this._zoomKeys={},e=this.keyCodes;for(b=0,c=e.zoomIn.length;b<c;b++)d[e.zoomIn[b]]=a;for(b=0,c=e.zoomOut.length;b<c;b++)d[e.zoomOut[b]]=-a},_addHooks:function(){zb(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Bb(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(a){if(!a.altKey&&!a.ctrlKey&&!a.metaKey){var b,c=a.keyCode,d=this._map;if(c in this._panKeys){if(!d._panAnim||!d._panAnim._inProgress)if(b=this._panKeys[c],a.shiftKey&&(b=G(b).multiplyBy(3)),d.options.maxBounds&&(b=d._limitOffset(G(b),d.options.maxBounds)),d.options.worldCopyJump){var e=d.wrapLatLng(d.unproject(d.project(d.getCenter()).add(b)));d.panTo(e)}else d.panBy(b)}else if(c in this._zoomKeys)d.setZoom(d.getZoom()+(a.shiftKey?3:1)*this._zoomKeys[c]);else{if(27!==c||!d._popup||!d._popup.options.closeOnEscapeKey)return;d.closePopup()}Kb(a)}}});Rb.addInitHook("addHandler","keyboard",md),Rb.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nd=Yb.extend({addHooks:function(){zb(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Bb(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(a){var b=Ob(a),c=this._map.options.wheelDebounceTime;this._delta+=b,this._lastMousePos=this._map.mouseEventToContainerPoint(a),this._startTime||(this._startTime=+new Date());var e=Math.max(c-(+new Date()-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(d(this._performZoom,this),e),Kb(a)},_performZoom:function(){var a=this._map,b=a.getZoom(),c=this._map.options.zoomSnap||0;a._stop();var d=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/M
1ath.LN2,e=c?Math.ceil(d/c)*c:d,f=a._limitZoom(b+(this._delta>0?e:-e))-b;this._delta=0,this._startTime=null,f&&("center"===a.options.scrollWheelZoom?a.setZoom(b+f):a.setZoomAround(this._lastMousePos,b+f))}});Rb.addInitHook("addHandler","scrollWheelZoom",nd),Rb.mergeOptions({tapHold:La.touchNative&&La.safari&&La.mobile,tapTolerance:15});var od=Yb.extend({addHooks:function(){zb(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Bb(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),1===a.touches.length){var b=a.touches[0];this._startPos=this._newPos=new E(b.clientX,b.clientY),this._holdTimeout=setTimeout(d(function(){this._cancel(),this._isTapValid()&&(zb(document,"touchend",Jb),zb(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",b))},this),600),zb(document,"touchend touchcancel contextmenu",this._cancel,this),zb(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){Bb(document,"touchend",Jb),Bb(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),Bb(document,"touchend touchcancel contextmenu",this._cancel,this),Bb(document,"touchmove",this._onMove,this)},_onMove:function(a){var b=a.touches[0];this._newPos=new E(b.clientX,b.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,b){var c=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:b.screenX,screenY:b.screenY,clientX:b.clientX,clientY:b.clientY});c._simulated=!0,b.target.dispatchEvent(c)}});Rb.addInitHook("addHandler","tapHold",od),Rb.mergeOptions({touchZoom:La.touch,bounceAtZoomLimits:!0});var pd=Yb.extend({addHooks:function(){hb(this._map._container,"leaflet-touch-zoom"),zb(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ib(this._map._container,"leaflet-touch-zoom"),Bb(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var b=this._map;if(a.touches&&2===a.touches.length&&!b._animatingZoom&&!this._zooming){var c=b.mouseEventToContainerPoint(a.touches[0]),d=b.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=b.getSize()._divideBy(2),this._startLatLng=b.containerPointToLatLng(this._centerPoint),"center"!==b.options.touchZoom&&(this._pinchStartLatLng=b.containerPointToLatLng(c.add(d)._divideBy(2))),this._startDist=c.distanceTo(d),this._startZoom=b.getZoom(),this._moved=!1,this._zooming=!0,b._stop(),zb(document,"touchmove",this._onTouchMove,this),zb(document,"touchend touchcancel",this._onTouchEnd,this),Jb(a)}},_onTouchMove:function(a){if(a.touches&&2===a.touches.length&&this._zooming){var b=this._map,c=b.mouseEventToContainerPoint(a.touches[0]),e=b.mouseEventToContainerPoint(a.touches[1]),f=c.distanceTo(e)/this._startDist;if(this._zoom=b.getScaleZoom(f,this._startZoom),!b.options.bounceAtZoomLimits&&(this._zoom<b.getMinZoom()&&f<1||this._zoom>b.getMaxZoom()&&f>1)&&(this._zoom=b._limitZoom(this._zoom)),"center"===b.options.touchZoom){if(this._center=this._startLatLng,1===f)return}else{var g=c._add(e)._divideBy(2)._subtract(this._centerPoint);if(1===f&&0===g.x&&0===g.y)return;this._center=b.unproject(b.project(this._pinchStartLatLng,this._zoom).subtract(g),this._zoom)}this._moved||(b._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var h=d(b._move,b,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=y(h,this,!0),Jb(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,z(this._animRequest),Bb(document,"touchmove",this._onTouchMove,this),Bb(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))}});Rb.addInitHook("addHandler","touchZoom",pd),Rb.BoxZoom=jd,Rb.DoubleClickZoom=kd,Rb.Drag=ld,Rb.Keyboard=md,Rb.ScrollWheelZoom=nd,Rb.TapHold=od,Rb.TouchZoom=pd,a.Bounds=H,a.Browser=La,a.CRS=U,a.Canvas=cd,a.Circle=Ec,a.CircleMarker=Dc,a.Class=B,a.Control=Sb,a.DivIcon=Yc,a.DivOverlay=Vc,a.DomEvent={__proto__:null,on:zb,off:Bb,stopPropagation:Gb,disableScrollPropagation:Hb,disableClickPropagation:Ib,preventDefault:Jb,stop:Kb,getPropagationPath:Lb,getMousePosition:Mb,getWheelDelta:Ob,isExternalTarget:Pb,addListener:zb,removeListener:Bb},a.DomUtil=yb,a.Draggable=$b,a.Evented=D,a.FeatureGroup=xc,a.GeoJSON=Hc,a.GridLayer=Zc,a.Handler=Yb,a.Icon=yc,a.ImageOverlay=Sc,a.LatLng=L,a.LatLngBounds=J,a.Layer=vc,a.LayerGroup=wc,a.LineUtil={__proto__:null,simplify:cc,pointToSegmentDistance:dc,closestPointOnSegment:function(a,b,c){return lc(a,b,c)},clipSegment:hc,_getEdgeIntersection:ic,_getBitCode:jc,_sqClosestPointOnSegment:lc,isFlat:mc,_flat:nc,polylineCenter:oc},a.Map=Rb,a.Marker=Bc,a.Mixin={Events:C},a.Path=Cc,a.Point=E,a.PolyUtil={__proto__:null,clipPolygon:_b,polygonCenter:ac,centroid:bc},a.Polygon=Gc,a.Polyline=Fc,a.Popup=Wc,a.PosAnimation=Qb,a.Projection={__proto__:null,LonLat:qc,Mercator:rc,SphericalMercator:W},a.Rectangle=id,a.Renderer=bd,a.SVG=gd,a.SVGOverlay=Uc,a.TileLayer=$c,a.Tooltip=Xc,a.Transformation=X,a.Util=A,a.VideoOverlay=Tc,a.bind=d,a.bounds=I,a.canvas=dd,a.circle=function(a,b,c){return new Ec(a,b,c)},a.circleMarker=function(a,b){return new Dc(a,b)},a.control=Tb,a.divIcon=function(a){return new Yc(a)},a.extend=b,a.featureGroup=function(a,b){return new xc(a,b)},a.geoJSON=Rc,a.geoJson=Rc,a.gridLayer=function(a){return new Zc(a)},a.icon=function(a){return new yc(a)},a.imageOverlay=function(a,b,c){return new Sc(a,b,c)},a.latLng=M,a.latLngBounds=K,a.layerGroup=function(a,b){return new wc(a,b)},a.map=function(a,b){return new Rb(a,b)},a.marker=function(a,b){return new Bc(a,b)},a.point=G,a.polygon=function(a,b){return new Gc(a,b)},a.polyline=function(a,b){return new Fc(a,b)},a.popup=function(a,b){return new Wc(a,b)},a.rectangle=function(a,b){return new id(a,b)},a.setOptions=m,a.stamp=f,a.svg=hd,a.svgOverlay=function(a,b,c){return new Uc(a,b,c)},a.tileLayer=_c,a.tooltip=function(a,b){return new Xc(a,b)},a.transformation=Y,a.version="1.9.4",a.videoOverlay=function(a,b,c){return new Tc(a,b,c)};var qd=window.L;a.noConflict=function(){return window.L=qd,this},window.L=a})}}])
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.