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