1(()=>{var os=Object.create;var Mo=Object.defineProperty;var ss=Object.getOwnPropertyDescriptor;var rs=Object.getOwnPropertyNames;var as=Object.getPrototypeOf,hs=Object.prototype.hasOwnProperty;var io=(d,k)=>()=>(k||d((k={exports:{}}).exports,k),k.exports);var ls=(d,k,R,ht)=>{if(k&&typeof k=="object"||typeof k=="function")for(let S of rs(k))!hs.call(d,S)&&S!==R&&Mo(d,S,{get:()=>k[S],enumerable:!(ht=ss(k,S))||ht.enumerable});return d};var no=(d,k,R)=>(R=d!=null?os(as(d)):{},ls(k||!d||!d.__esModule?Mo(R,"default",{value:d,enumerable:!0}):R,d));var ko=io((Vn,zo)=>{(function(d,k){typeof Vn=="object"&&typeof zo<"u"?k(Vn):typeof define=="function"&&define.amd?define(["exports"],k):k((d=typeof globalThis<"u"?globalThis:d||self).leaflet={})})(Vn,function(d){"use strict";function k(e){for(var n,o,a=1,h=arguments.length;a<h;a++)for(n in o=arguments[a])e[n]=o[n];return e}var R=Object.create||function(e){return ht.prototype=e,new ht};function ht(){}function S(e,n){var o,a=Array.prototype.slice;return e.bind?e.bind.apply(e,a.call(arguments,1)):(o=a.call(arguments,2),function(){return e.apply(n,o.length?o.concat(a.call(arguments)):arguments)})}var Ce=0;function P(e){return"_leaflet_id"in e||(e._leaflet_id=++Ce),e._leaflet_id}function jt(e,n,o){var a,h,c=function(){a=!1,h&&(p.apply(o,h),h=!1)},p=function(){a?h=arguments:(e.apply(o,arguments),setTimeout(c,n),a=!0)};return p}function Ut(e,h,o){var a=h[1],h=h[0],c=a-h;return e===a&&o?e:((e-h)%c+c)%c+h}function V(){return!1}function ft(e,n){return n===!1?e:(n=Math.pow(10,n===void 0?6:n),Math.round(e*n)/n)}function Xe(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Et(e){return Xe(e).split(/\s+/)}function E(e,n){for(var o in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?R(e.options):{}),n)e.options[o]=n[o];return e.options}function Vi(e,n,o){var a,h=[];for(a in e)h.push(encodeURIComponent(o?a.toUpperCase():a)+"="+encodeURIComponent(e[a]));return(n&&n.indexOf("?")!==-1?"&":"?")+h.join("&")}var Gn=/\{ *([\w_ -]+) *\}/g;function qi(e,n){return e.replace(Gn,function(o,a){if(a=n[a],a===void 0)throw new Error("No value provided for variable "+o);return a=typeof a=="function"?a(n):a})}var ut=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function Je(e,n){for(var o=0;o<e.length;o++)if(e[o]===n)return o;return-1}var fe="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function $e(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var Gi=0;function Ki(e){var n=+new Date,o=Math.max(0,16-(n-Gi));return Gi=n+o,window.setTimeout(e,o)}var Qe=window.requestAnimationFrame||$e("RequestAnimationFrame")||Ki,Yi=window.cancelAnimationFrame||$e("CancelAnimationFrame")||$e("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function $(e,n,o){if(!o||Qe!==Ki)return Qe.call(window,S(e,n));e.call(n)}function at(e){e&&Yi.call(window,e)}var Kn={__proto__:null,extend:k,create:R,bind:S,get lastId(){return Ce},stamp:P,throttle:jt,wrapNum:Ut,falseFn:V,formatNum:ft,trim:Xe,splitWords:Et,setOptions:E,getParamString:Vi,template:qi,isArray:ut,indexOf:Je,emptyImageUrl:fe,requestFn:Qe,cancelFn:Yi,requestAnimFrame:$,cancelAnimFrame:at};function xt(){}xt.extend=function(e){function n(){E(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var o,a=n.__super__=this.prototype,h=R(a);for(o in(h.constructor=n).prototype=h,this)Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"&&(n[o]=this[o]);if(e.statics&&k(n,e.statics),e.includes){var c=e.includes;if(typeof L<"u"&&L&&L.Mixin){c=ut(c)?c:[c];for(var p=0;p<c.length;
1p++)c[p]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}k.apply(null,[h].concat(e.includes))}return k(h,e),delete h.statics,delete h.includes,h.options&&(h.options=a.options?R(a.options):{},k(h.options,e.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var f=0,v=h._initHooks.length;f<v;f++)h._initHooks[f].call(this)}},n},xt.include=function(e){var n=this.prototype.options;return k(this.prototype,e),e.options&&(this.prototype.options=n,this.mergeOptions(e.options)),this},xt.mergeOptions=function(e){return k(this.prototype.options,e),this},xt.addInitHook=function(e){var n=Array.prototype.slice.call(arguments,1),o=typeof e=="function"?e:function(){this[e].apply(this,n)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(o),this};var Ot={on:function(e,n,o){if(typeof e=="object")for(var a in e)this._on(a,e[a],n);else for(var h=0,c=(e=Et(e)).length;h<c;h++)this._on(e[h],n,o);return this},off:function(e,n,o){if(arguments.length)if(typeof e=="object")for(var a in e)this._off(a,e[a],n);else{e=Et(e);for(var h=arguments.length===1,c=0,p=e.length;c<p;c++)h?this._off(e[c]):this._off(e[c],n,o)}else delete this._events;return this},_on:function(e,n,o,a){typeof n!="function"?console.warn("wrong listener type: "+typeof n):this._listens(e,n,o)===!1&&(n={fn:n,ctx:o=o===this?void 0:o},a&&(n.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(n))},_off:function(e,n,o){var a,h,c;if(this._events&&(a=this._events[e]))if(arguments.length===1){if(this._firingCount)for(h=0,c=a.length;h<c;h++)a[h].fn=V;delete this._events[e]}else typeof n!="function"?console.warn("wrong listener type: "+typeof n):(n=this._listens(e,n,o))!==!1&&(o=a[n],this._firingCount&&(o.fn=V,this._events[e]=a=a.slice()),a.splice(n,1))},fire:function(e,n,o){if(this.listens(e,o)){var a=k({},n,{type:e,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var h=this._events[e];if(h){this._firingCount=this._firingCount+1||1;for(var c=0,p=h.length;c<p;c++){var f=h[c],v=f.fn;f.once&&this.off(e,v,f.ctx),v.call(f.ctx||this,a)}this._firingCount--}}o&&this._propagateEvent(a)}return this},listens:function(e,n,o,a){typeof e!="string"&&console.warn('"string" type argument expected');var h=n,c=(typeof n!="function"&&(a=!!n,o=h=void 0),this._events&&this._events[e]);if(c&&c.length&&this._listens(e,h,o)!==!1)return!0;if(a){for(var p in this._eventParents)if(this._eventParents[p].listens(e,n,o,a))return!0}return!1},_listens:function(e,n,o){if(this._events){var a=this._events[e]||[];if(!n)return!!a.length;o===this&&(o=void 0);for(var h=0,c=a.length;h<c;h++)if(a[h].fn===n&&a[h].ctx===o)return h}return!1},once:function(e,n,o){if(typeof e=="object")for(var a in e)this._on(a,e[a],n,!0);else for(var h=0,c=(e=Et(e)).length;h<c;h++)this._on(e[h],n,o,!0);return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[P(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[P(e)],this},_propagateEvent:function(e){for(var n in this._eventParents)this._eventParents[n].fire(e.type,k({layer:e.target,propagatedFrom:e.target},e),!0)}},wt=(Ot.addEventListener=Ot.on,Ot.removeEventListener=Ot.clearAllEventListeners=Ot.off,Ot.addOneTimeEventListener=Ot.once,Ot.fireEvent=Ot.fire,Ot.hasEventListeners=Ot.listens,xt.extend(Ot));function I(e,n,o){this.x=o?Math.round(e):e,this.y=o?Math.round(n):n}var W=Math.trunc||function(e){return 0<e?Math.floor(e):Math.ceil(e)};function D(e,n,o){return e instanceof I?e:ut(e)?new I(e[0],e[1]):e==null?e:typeof e=="object"&&"x"in e&&"y"in e?new I(e.x,e.y):new I(e,n,o)}function M(e,n){if(e)for(var o=n?[e,n]:e,a=0,h=o.length;a<h;a++)this.extend(o[a])}function K(e,n){return!e||e instanceof M?e:new M(e,n)}function Q(e,n){if(e)for(var o=n?[e,n]:e,a=0,h=o.length;a<h;a++)this.extend(o[a])}function J(e,n){return e instanceof Q?e:new Q(e,n)}function O(e,n,o){if(isNaN(e)||isNaN(n))throw new Error("Invalid LatLng object: ("+e+", "+n+")");this.lat=+e,this.lng=+n,o!==void 0&&(this.alt=+o)}function z(e,n,o){return e instanceof O?e:ut(e)&&typeof e[0]!="object"?e.length===3?new O(e[0],e[1],e[2]):e.length===2?new O(e[0],e[1]):null:e==null?e:typeof e=="object"&&"lat"in e?new O(e.lat,"lng"in e?e.lng:e.lon,e.alt):n===void 0?null:new O(e,n,o)}I.prototype={clone:function(){return new I(this.x,this.y)},add:function(e){return this.clone()._add(D(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(D(e))}
vendor: 10,097 bytes, line 1
1,_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new I(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new I(this.x/e.x,this.y/e.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=W(this.x),this.y=W(this.y),this},distanceTo:function(o){var n=(o=D(o)).x-this.x,o=o.y-this.y;return Math.sqrt(n*n+o*o)},equals:function(e){return(e=D(e)).x===this.x&&e.y===this.y},contains:function(e){return e=D(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+ft(this.x)+", "+ft(this.y)+")"}},M.prototype={extend:function(e){var n,o;if(e){if(e instanceof I||typeof e[0]=="number"||"x"in e)n=o=D(e);else if(n=(e=K(e)).min,o=e.max,!n||!o)return this;this.min||this.max?(this.min.x=Math.min(n.x,this.min.x),this.max.x=Math.max(o.x,this.max.x),this.min.y=Math.min(n.y,this.min.y),this.max.y=Math.max(o.y,this.max.y)):(this.min=n.clone(),this.max=o.clone())}return this},getCenter:function(e){return D((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},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(e){var n,o;return(e=(typeof e[0]=="number"||e instanceof I?D:K)(e))instanceof M?(n=e.min,o=e.max):n=o=e,n.x>=this.min.x&&o.x<=this.max.x&&n.y>=this.min.y&&o.y<=this.max.y},intersects:function(c){c=K(c);var n=this.min,o=this.max,a=c.min,c=c.max,h=c.x>=n.x&&a.x<=o.x,c=c.y>=n.y&&a.y<=o.y;return h&&c},overlaps:function(c){c=K(c);var n=this.min,o=this.max,a=c.min,c=c.max,h=c.x>n.x&&a.x<o.x,c=c.y>n.y&&a.y<o.y;return h&&c},isValid:function(){return!(!this.min||!this.max)},pad:function(h){var n=this.min,o=this.max,a=Math.abs(n.x-o.x)*h,h=Math.abs(n.y-o.y)*h;return K(D(n.x-a,n.y-h),D(o.x+a,o.y+h))},equals:function(e){return!!e&&(e=K(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},Q.prototype={extend:function(e){var n,o,a=this._southWest,h=this._northEast;if(e instanceof O)o=n=e;else{if(!(e instanceof Q))return e?this.extend(z(e)||J(e)):this;if(n=e._southWest,o=e._northEast,!n||!o)return this}return a||h?(a.lat=Math.min(n.lat,a.lat),a.lng=Math.min(n.lng,a.lng),h.lat=Math.max(o.lat,h.lat),h.lng=Math.max(o.lng,h.lng)):(this._southWest=new O(n.lat,n.lng),this._northEast=new O(o.lat,o.lng)),this},pad:function(h){var n=this._southWest,o=this._northEast,a=Math.abs(n.lat-o.lat)*h,h=Math.abs(n.lng-o.lng)*h;return new Q(new O(n.lat-a,n.lng-h),new O(o.lat+a,o.lng+h))},getCenter:function(){return new O((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 O(this.getNorth(),this.getWest())},getSouthEast:function(){return new O(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(e){e=(typeof e[0]=="number"||e instanceof O||"lat"in e?z:J)(e);var n,o,a=this._southWest,h=this._northEast;return e instanceof Q?(n=e.getSouthWest(),o=e.getNorthEast()):n=o=e,n.lat>=a.lat&&o.lat<=h.lat&&n.lng>=a.lng&&o.lng<=h.lng},intersects:function(c){c=J(c);var n=this._southWest,o=this._northEast,a=c.getSouthWest(),c=c.getNorthEast(),h=c.lat>=n.lat&&a.lat<=o.lat,c=c.lng>=n.lng&&a.lng<=o.lng;return h&&c},overlaps:function(c){c=J(c);var n=this._southWest,o=this._northEast,a=c.getSouthWest(),c=c.getNorthEast(),h=c.lat>n.lat&&a.lat<o.lat,c=c.lng>n.lng&&a.lng<o.lng;return h&&c},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,n){return!!e&&(e=J(e),this._southWest.equals(e.getSouthWest(),n)&&this._northEast.equals(e.getNorthEast(),n))},isValid:function(){return!(!this._southWest||!this._northEast)}};var j={latLngToPoint:function(e,n){return e=this.projection.project(e),n=this.scale(n),this.transformation._transform(e,n)},pointToLatLng:function(e,n){return n=this.scale(n),e=this.transformation.untransform(e,n),this.projection.unproject(e)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){var n;return this.infinite?null:(n=this.projection.bounds,e=this.scale(e),new M(this.transformation.transform(n.min,e),this.transformation.transform(n.max,e)))},infinite:!(O.prototype={equals:function(e,n){return!!e&&(e=z(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(n===void 0?1e-9:n))},toString:function(e){return"LatLng("+ft(this.lat,e)+", "+ft(this.lng,e)+")"},distanceTo:function(e){return Pt.distance(this,z(e))},wrap:function(){return Pt.wrapLatLng(this)},toBounds:function(n){var n=180*n/40075017,o=n/Math.cos(Math.PI/180*this.lat);return J([this.lat-n,this.lng-o],[this.lat+n,this.lng+o])},clone:function(){return new O(this.lat,this.lng,this.alt)}}),wrapLatLng:function(e){var n=this.wrapLng?Ut(e.lng,this.wrapLng,!0):e.lng;return new O(this.wrapLat?Ut(e.lat,this.wrapLat,!0):e.lat,n,e.alt)},wrapLatLngBounds:function(e){var a=e.getCenter(),n=this.wrapLatLng(a),o=a.lat-n.lat,a=a.lng-n.lng;return o==0&&a==0?e:(n=e.getSouthWest(),e=e.getNorthEast(),new Q(new O(n.lat-o,n.lng-a),new O(e.lat-o,e.lng-a)))}},Pt=k({},j,{wrapLng:[-180,180],R:6371e3,distance:function(p,c){var f=Math.PI/180,o=p.lat*f,a=c.lat*f,h=Math.sin((c.lat-p.lat)*f/2),c=Math.sin((c.lng-p.lng)*f/2),p=h*h+Math.cos(o)*Math.cos(a)*c*c,f=2*Math.atan2(Math.sqrt(p),Math.sqrt(1-p));return this.R*f}}),bt=6378137,bt={R:bt,MAX_LATITUDE:85.0511287798,project:function(e){var n=Math.PI/180,o=this.MAX_LATITUDE,o=Math.max(Math.min(o,e.lat),-o),o=Math.sin(o*n);return new I(this.R*e.lng*n,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(e){var n=180/Math.PI;return new O((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*n,e.x*n/this.R)},bounds:new M([-(bt=bt*Math.PI),-bt],[bt,bt])};function bi(e,n,o,a){ut(e)?(this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3]):(this._a=e,this._b=n,this._c=o,this._d=a)}function pe(e,n,o,a){return new bi(e,n,o,a)}bi.prototype={transform:function(e,n){return this._transform(e.clone(),n)},_transform:function(e,n){return e.x=(n=n||1)*(this._a*e.x+this._b),e.y=n*(this._c*e.y+this._d),e},untransform:function(e,n){return new I((e.x/(n=n||1)-this._b)/this._a,(e.y/n-this._d)/this._c)}};var me=k({},Pt,{code:"EPSG:3857",projection:bt,transformation:pe(me=.5/(Math.PI*bt.R),.5,-me,.5)}),ti=k({},me,{code:"EPSG:900913"});function Pi(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Pn(e,n){for(var o,a,h,c,p="",f=0,v=e.length;f<v;f++){for(o=0,a=(h=e[f]).length;o<a;o++)p+=(o?"L":"M")+(c=h[o]).x+" "+c.y;p+=n?C.svg?"z":"x":""}return p||"M0 0"}var te=document.documentElement.style,ge="ActiveXObject"in window,Ae=ge&&!document.addEventListener,Mt="msLaunchUri"in navigator&&!("documentMode"in document),le=Vt("webkit"),H=Vt("android"),_t=Vt("android 2")||Vt("android 3"),It=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),It=H&&Vt("Google")&&It<537&&!("AudioNode"in window),ue=!!window.opera,fi=!Mt&&Vt("chrome"),ei=Vt("gecko")&&!le&&!ue&&!ge,cn=!fi&&Vt("safari"),De=Vt("phantom"),Ct="OTransition"in te,ve=navigator.platform.indexOf("Win")===0,Di=ge&&"transition"in te,vi="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!_t,te="MozPerspective"in te,Fi=!window.L_DISABLE_3D&&(Di||vi||te)&&!Ct&&!De,gt=typeof orientation<"u"||Vt("mobile"),se=gt&&le,Wi=gt&&vi,Rt=!window.PointerEvent&&window.MSPointerEvent,yi=!(!window.PointerEvent&&!Rt),ii="ontouchstart"in window||!!window.TouchEvent,Yn=!window.L_NO_TOUCH&&(ii||yi),Ln=gt&&ue,Xi=gt&&ei,Tn=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Mn=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",V,n),window.removeEventListener("testPassiveEventSupport",V,n)}catch{}return e}(),Xn=!!document.createElement("canvas").getContext,Ji=!(!document.createElementNS||!Pi("svg").createSVGRect),Ze=!!Ji&&((Ze=document.createElement("div")).innerHTML="<svg/>",(Ze.firstChild&&Ze.firstChild.namespaceURI)==="http://www.w3.org/2000/svg");function Vt(e){return 0<=navigator.userAgent.toLowerCase().indexOf(e)}var C={ie:ge,ielt9:Ae,edge:Mt,webkit:le,android:H,android23:_t,androidStock:It,opera:ue,chrome:fi,gecko:ei,safari:cn,phantom:De,opera12:Ct,win:ve,ie3d:Di,webkit3d:vi,gecko3d:te,any3d:Fi,mobile:gt,mobileWebkit:se,mobileWebkit3d:Wi,msPointer:Rt,pointer:yi,touch:Yn,touchNative:ii,mobileOpera:Ln,mobileGecko:Xi,retina:Tn,passiveEvents:Mn,canvas:Xn,svg:Ji,vml:!Ji&&function(){try{var e=document.createElement("div"),n=(e.innerHTML='<v:shape adj="1"/>',e.firstChild);return n.style.behavior="url(#default#VML)",n&&typeof n.adj=="object"}catch{return!1}}(),inlineSvg:Ze,mac:navigator.platform.indexOf("Mac")===0,linux:navigator.platform.indexOf("Linux")===0},zn=C.msPointer?"MSPointerDown":"pointerdown",$i=C.msPointer?"MSPointerMove":"pointermove",Qi=C.msPointer?"MSPointerUp":"pointerup",kn=C.msPointer?"MSPointerCancel":"pointercancel",Li={touchstart:zn,touchmove:$i,touchend:Qi,touchcancel:kn}
1,Ti={touchstart:function(e,n){n.MSPOINTER_TYPE_TOUCH&&n.pointerType===n.MSPOINTER_TYPE_TOUCH&&pt(n),oi(e,n)},touchmove:oi,touchend:oi,touchcancel:oi},ye={},Sn=!1;function ni(e,n,o){return n!=="touchstart"||Sn||(document.addEventListener(zn,Jn,!0),document.addEventListener($i,$n,!0),document.addEventListener(Qi,tn,!0),document.addEventListener(kn,tn,!0),Sn=!0),Ti[n]?(o=Ti[n].bind(this,o),e.addEventListener(Li[n],o,!1),o):(console.warn("wrong event specified:",n),V)}function Jn(e){ye[e.pointerId]=e}function $n(e){ye[e.pointerId]&&(ye[e.pointerId]=e)}function tn(e){delete ye[e.pointerId]}function oi(e,n){if(n.pointerType!==(n.MSPOINTER_TYPE_MOUSE||"mouse")){for(var o in n.touches=[],ye)n.touches.push(ye[o]);n.changedTouches=[n],e(n)}}var Cn=200;function Qn(e,n){e.addEventListener("dblclick",n);var o,a=0;function h(c){var p;c.detail!==1?o=c.detail:c.pointerType==="mouse"||c.sourceCapabilities&&!c.sourceCapabilities.firesTouchEvents||(p=lt(c)).some(function(f){return f instanceof HTMLLabelElement&&f.attributes.for})&&!p.some(function(f){return f instanceof HTMLInputElement||f instanceof HTMLSelectElement})||((p=Date.now())-a<=Cn?++o===2&&n(function(f){var v,w,b={};for(w in f)v=f[w],b[w]=v&&v.bind?v.bind(f):v;return(f=b).type="dblclick",b.detail=2,b.isTrusted=!1,b._simulated=!0,b}(c)):o=1,a=p)}return e.addEventListener("click",h),{dblclick:n,simDblclick:h}}var en,Ee,si,Mi,zi,ri,nn=Ci(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ai=Ci(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Zn=ai==="webkitTransition"||ai==="OTransition"?ai+"End":"transitionend";function En(e){return typeof e=="string"?document.getElementById(e):e}function kt(e,n){var o=e.style[n]||e.currentStyle&&e.currentStyle[n];return(o=o&&o!=="auto"||!document.defaultView?o:(e=document.defaultView.getComputedStyle(e,null))?e[n]:null)==="auto"?null:o}function x(e,n,o){return e=document.createElement(e),e.className=n||"",o&&o.appendChild(e),e}function ot(e){var n=e.parentNode;n&&n.removeChild(e)}function hi(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function xe(e){var n=e.parentNode;n&&n.lastChild!==e&&n.appendChild(e)}function we(e){var n=e.parentNode;n&&n.firstChild!==e&&n.insertBefore(e,n.firstChild)}function li(e,n){return e.classList!==void 0?e.classList.contains(n):0<(e=Si(e)).length&&new RegExp("(^|\\s)"+n+"(\\s|$)").test(e)}function q(e,n){var o;if(e.classList!==void 0)for(var a=Et(n),h=0,c=a.length;h<c;h++)e.classList.add(a[h]);else li(e,n)||ki(e,((o=Si(e))?o+" ":"")+n)}function it(e,n){e.classList!==void 0?e.classList.remove(n):ki(e,Xe((" "+Si(e)+" ").replace(" "+n+" "," ")))}function ki(e,n){e.className.baseVal===void 0?e.className=n:e.className.baseVal=n}function Si(e){return(e=e.correspondingElement?e.correspondingElement:e).className.baseVal===void 0?e.className:e.className.baseVal}function Ht(e,n){if("opacity"in e.style)e.style.opacity=n;else if("filter"in e.style){var o=!1,a="DXImageTransform.Microsoft.Alpha";try{o=e.filters.item(a)}catch{if(n===1)return}n=Math.round(100*n),o?(o.Enabled=n!==100,o.Opacity=n):e.style.filter+=" progid:"+a+"(opacity="+n+")"}}function Ci(e){for(var n=document.documentElement.style,o=0;o<e.length;o++)if(e[o]in n)return e[o];return!1}function be(e,n,o){n=n||new I(0,0),e.style[nn]=(C.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(o?" scale("+o+")":"")}function ct(e,n){e._leaflet_pos=n,C.any3d?be(e,n):(e.style.left=n.x+"px",e.style.top=n.y+"px")}function Pe(e){return e._leaflet_pos||new I(0,0)}function Oe(){F(window,"dragstart",pt)}function on(){tt(window,"dragstart",pt)}function sn(e){for(;e.tabIndex===-1;)e=e.parentNode;e.style&&(Zi(),ri=(zi=e).style.outlineStyle,e.style.outlineStyle="none",F(window,"keydown",Zi))}function Zi(){zi&&(zi.style.outlineStyle=ri,ri=zi=void 0,tt(window,"keydown",Zi))}function On(e){for(;!((e=e.parentNode).offsetWidth&&e.offsetHeight||e===document.body););return e}function rn(e){var n=e.getBoundingClientRect();return{x:n.width/e.offsetWidth||1,y:n.height/e.offsetHeight||1,boundingClientRect:n}}Mi="onselectstart"in document?(si=function(){F(window,"selectstart",pt)},function(){tt(window,"selectstart",pt)}):(Ee=Ci(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),si=function(){var e;Ee&&(e=document.documentElement.style,en=e[Ee],e[Ee]="none")},function(){Ee&&(document.documentElement.style[Ee]=en,en=void 0)}),ge={__proto__:null,TRANSFORM:nn,TRANSITION:ai,TRANSITION_END:Zn,get:En,getStyle:kt,create:x,remove:ot,empty:hi,toFront:xe,toBack:we,hasClass:li,addClass:q,removeClass:it,setClass:ki,getClass:Si,setOpacity:Ht,testProp:Ci,setTransform:be,setPosition:ct,getPosition:Pe,get disableTextSelection(){return si}
vendor: 4,353 bytes, line 1
1,get enableTextSelection(){return Mi},disableImageDrag:Oe,enableImageDrag:on,preventOutline:sn,restoreOutline:Zi,getSizedParentNode:On,getScale:rn};function F(e,n,o,a){if(n&&typeof n=="object")for(var h in n)X(e,h,n[h],o);else for(var c=0,p=(n=Et(n)).length;c<p;c++)X(e,n[c],o,a);return this}var St="_leaflet_events";function tt(e,n,o,a){if(arguments.length===1)an(e),delete e[St];else if(n&&typeof n=="object")for(var h in n)nt(e,h,n[h],o);else if(n=Et(n),arguments.length===2)an(e,function(f){return Je(n,f)!==-1});else for(var c=0,p=n.length;c<p;c++)nt(e,n[c],o,a);return this}function an(e,n){for(var o in e[St]){var a=o.split(/\d/)[0];n&&!n(a)||nt(e,a,null,null,o)}}var Le={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function X(e,n,o,a){var h,c,p=n+P(o)+(a?"_"+P(a):"");e[St]&&e[St][p]||(c=h=function(f){return o.call(a||e,f||window.event)},!C.touchNative&&C.pointer&&n.indexOf("touch")===0?h=ni(e,n,h):C.touch&&n==="dblclick"?h=Qn(e,h):"addEventListener"in e?n==="touchstart"||n==="touchmove"||n==="wheel"||n==="mousewheel"?e.addEventListener(Le[n]||n,h,!!C.passiveEvents&&{passive:!1}):n==="mouseenter"||n==="mouseleave"?e.addEventListener(Le[n],h=function(f){f=f||window.event,hn(e,f)&&c(f)},!1):e.addEventListener(n,c,!1):e.attachEvent("on"+n,h),e[St]=e[St]||{},e[St][p]=h)}function nt(e,n,f,a,h){h=h||n+P(f)+(a?"_"+P(a):"");var c,p,f=e[St]&&e[St][h];f&&(!C.touchNative&&C.pointer&&n.indexOf("touch")===0?(a=e,p=f,Li[c=n]?a.removeEventListener(Li[c],p,!1):console.warn("wrong event specified:",c)):C.touch&&n==="dblclick"?(a=f,(p=e).removeEventListener("dblclick",a.dblclick),p.removeEventListener("click",a.simDblclick)):"removeEventListener"in e?e.removeEventListener(Le[n]||n,f,!1):e.detachEvent("on"+n,f),e[St][h]=null)}function Yt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function ae(e){return X(e,"wheel",Yt),this}function Xt(e){return F(e,"mousedown touchstart dblclick contextmenu",Yt),e._leaflet_disable_click=!0,this}function pt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function B(e){return pt(e),Yt(e),this}function lt(e){if(e.composedPath)return e.composedPath();for(var n=[],o=e.target;o;)n.push(o),o=o.parentNode;return n}function Ei(e,n){var o,a;return n?(a=(o=rn(n)).boundingClientRect,new I((e.clientX-a.left)/o.x-n.clientLeft,(e.clientY-a.top)/o.y-n.clientTop)):new I(e.clientX,e.clientY)}var Oi=C.linux&&C.chrome?window.devicePixelRatio:C.mac?3*window.devicePixelRatio:0<window.devicePixelRatio?2*window.devicePixelRatio:1;function At(e){return C.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/Oi:e.deltaY&&e.deltaMode===1?20*-e.deltaY:e.deltaY&&e.deltaMode===2?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function hn(e,n){var o=n.relatedTarget;if(!o)return!0;try{for(;o&&o!==e;)o=o.parentNode}catch{return!1}return o!==e}var Ae={__proto__:null,on:F,off:tt,stopPropagation:Yt,disableScrollPropagation:ae,disableClickPropagation:Xt,preventDefault:pt,stop:B,getPropagationPath:lt,getMousePosition:Ei,getWheelDelta:At,isExternalTarget:hn,addListener:F,removeListener:tt},he=wt.extend({run:function(e,n,o,a){this.stop(),this._el=e,this._inProgress=!0,this._duration=o||.25,this._easeOutPower=1/Math.max(a||.5,.2),this._startPos=Pe(e),this._offset=n.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=$(this._animate,this),this._step()},_step:function(e){var n=+new Date-this._startTime,o=1e3*this._duration;n<o?this._runFrame(this._easeOut(n/o),e):(this._runFrame(1),this._complete())},_runFrame:function(e,n){e=this._startPos.add(this._offset.multiplyBy(e)),n&&e._round(),ct(this._el,e),this.fire("step")},_complete:function(){at(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Z=wt.extend({options:{crs:me,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}
1,initialize:function(e,n){n=E(this,n),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=S(this._onResize,this),this._initEvents(),n.maxBounds&&this.setMaxBounds(n.maxBounds),n.zoom!==void 0&&(this._zoom=this._limitZoom(n.zoom)),n.center&&n.zoom!==void 0&&this.setView(z(n.center),n.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ai&&C.any3d&&!C.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),F(this._proxy,Zn,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,n,o){return n=n===void 0?this._zoom:this._limitZoom(n),e=this._limitCenter(z(e),n,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&o!==!0&&(o.animate!==void 0&&(o.zoom=k({animate:o.animate},o.zoom),o.pan=k({animate:o.animate,duration:o.duration},o.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,n,o.zoom):this._tryAnimatedPan(e,o.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,n,o.pan&&o.pan.noMoveStart),this)},setZoom:function(e,n){return this._loaded?this.setView(this.getCenter(),e,{zoom:n}):(this._zoom=e,this)},zoomIn:function(e,n){return e=e||(C.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,n)},zoomOut:function(e,n){return e=e||(C.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,n)},setZoomAround:function(h,n,o){var c=this.getZoomScale(n),a=this.getSize().divideBy(2),h=(h instanceof I?h:this.latLngToContainerPoint(h)).subtract(a).multiplyBy(1-1/c),c=this.containerPointToLatLng(
vendor: 7,337 bytes, line 1
1a.add(h));return this.setView(c,n,{zoom:o})},_getBoundsCenterZoom:function(e,n){n=n||{},e=e.getBounds?e.getBounds():J(e);var o=D(n.paddingTopLeft||n.padding||[0,0]),a=D(n.paddingBottomRight||n.padding||[0,0]),h=this.getBoundsZoom(e,!1,o.add(a));return(h=typeof n.maxZoom=="number"?Math.min(n.maxZoom,h):h)===1/0?{center:e.getCenter(),zoom:h}:(n=a.subtract(o).divideBy(2),a=this.project(e.getSouthWest(),h),o=this.project(e.getNorthEast(),h),{center:this.unproject(a.add(o).divideBy(2).add(n),h),zoom:h})},fitBounds:function(e,n){if((e=J(e)).isValid())return e=this._getBoundsCenterZoom(e,n),this.setView(e.center,e.zoom,n);throw new Error("Bounds are not valid.")},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,n){return this.setView(e,this._zoom,{pan:n})},panBy:function(e,n){var o;return n=n||{},(e=D(e).round()).x||e.y?(n.animate===!0||this.getSize().contains(e)?(this._panAnim||(this._panAnim=new he,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),n.noMoveStart||this.fire("movestart"),n.animate!==!1?(q(this._mapPane,"leaflet-pan-anim"),o=this._getMapPanePos().subtract(e).round(),this._panAnim.run(this._mapPane,o,n.duration||.25,n.easeLinearity)):(this._rawPanBy(e),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this):this.fire("moveend")},flyTo:function(e,n,o){if((o=o||{}).animate===!1||!C.any3d)return this.setView(e,n,o);this._stop();var a=this.project(this.getCenter()),h=this.project(e),c=this.getSize(),p=this._zoom,f=(e=z(e),n=n===void 0?p:n,Math.max(c.x,c.y)),v=f*this.getZoomScale(p,n),w=h.distanceTo(a)||1,b=1.42,G=b*b;function N(rt){return rt=(v*v-f*f+(rt?-1:1)*G*G*w*w)/(2*(rt?v:f)*G*w),rt=Math.sqrt(rt*rt+1)-rt,rt<1e-9?-18:Math.log(rt)}function st(rt){return(Math.exp(rt)-Math.exp(-rt))/2}function dt(rt){return(Math.exp(rt)+Math.exp(-rt))/2}var vt=N(0);function Zt(rt){return f*(dt(vt)*(st(rt=vt+b*rt)/dt(rt))-st(vt))/G}var gn=Date.now(),xi=(N(1)-vt)/b,vn=o.duration?1e3*o.duration:1e3*xi*.8;return this._moveStart(!0,o.noMoveStart),function rt(){var re=(Date.now()-gn)/vn,wi=(1-Math.pow(1-re,1.5))*xi;re<=1?(this._flyToFrame=$(rt,this),this._move(this.unproject(a.add(h.subtract(a).multiplyBy(Zt(wi)/w)),p),this.getScaleZoom(f/(re=wi,f*(dt(vt)/dt(vt+b*re))),p),{flyTo:!0})):this._move(e,n)._moveEnd(!0)}.call(this),this},flyToBounds:function(e,n){return e=this._getBoundsCenterZoom(e,n),this.flyTo(e.center,e.zoom,n)},setMaxBounds:function(e){return e=J(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var n=this.options.minZoom;return this.options.minZoom=e,this._loaded&&n!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var n=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&n!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(a,n){this._enforcingBounds=!0;var o=this.getCenter(),a=this._limitCenter(o,this._zoom,J(a));return o.equals(a)||this.panTo(a,n),this._enforcingBounds=!1,this},panInside:function(h,n){var c=D((n=n||{}).paddingTopLeft||n.padding||[0,0]),o=D(n.paddingBottomRight||n.padding||[0,0]),a=this.project(this.getCenter()),h=this.project(h),p=this.getPixelBounds(),c=K([p.min.add(c),p.max.subtract(o)]),p=c.getSize();return c.contains(h)||(this._enforcingBounds=!0,o=h.subtract(c.getCenter()),c=c.extend(h).getSize().subtract(p),a.x+=o.x<0?-c.x:c.x,a.y+=o.y<0?-c.y:c.y,this.panTo(this.unproject(a),n),this._enforcingBounds=!1),this},invalidateSize:function(e){if(!this._loaded)return this;e=k({animate:!1,pan:!0},e===!0?{animate:!0}:e);var n=this.getSize(),o=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),h=n.divideBy(2).round(),a=o.divideBy(2).round(),h=h.subtract(a);return h.x||h.y?(e.animate&&e.pan?this.panBy(h):(e.pan&&this._rawPanBy(h),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(S(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){var n,o;return e=this._locateOptions=k({timeout:1e4,watch:!1},e),"geolocation"in navigator?(n=S(this._handleGeolocationResponse,this),o=S(this._handleGeolocationError,this),e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,e):navigator.geolocation.getCurrentPosition(n,o,e)):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(e){var n;this._container._leaflet_id&&(n=e.code,e=e.message||(n===1?"permission denied":n===2?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:n,message:"Geolocation error: "+e+"."}))},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var n,o,a=new O(e.coords.latitude,e.coords.longitude),h=a.toBounds(2*e.coords.accuracy),c=this._locateOptions,p=(c.setView&&(n=this.getBoundsZoom(h),this.setView(a,c.maxZoom?Math.min(n,c.maxZoom):n)),{latlng:a,bounds:h,timestamp:e.timestamp});for(o in e.coords)typeof e.coords[o]=="number"&&(p[o]=e.coords[o]);this.fire("locationfound",p)}},addHandler:function(e,n){return n&&(n=this[e]=new n(this),this._handlers.push(n),this.options[e]&&n.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 e in this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ot(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(at(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)ot(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,n){return n=x("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),n||this._mapPane),e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new Q(this.unproject(e.getBottomLeft()),this.unproject(e.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
vendor: 6,206 bytes, line 1
1om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(v,n,f){v=J(v),f=D(f||[0,0]);var w=this.getZoom()||0,a=this.getMinZoom(),h=this.getMaxZoom(),c=v.getNorthWest(),v=v.getSouthEast(),f=this.getSize().subtract(f),v=K(this.project(v,w),this.project(c,w)).getSize(),c=C.any3d?this.options.zoomSnap:1,p=f.x/v.x,f=f.y/v.y,v=n?Math.max(p,f):Math.min(p,f),w=this.getScaleZoom(v,w);return c&&(w=Math.round(w/(c/100))*(c/100),w=n?Math.ceil(w/c)*c:Math.floor(w/c)*c),Math.max(a,Math.min(h,w))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,n){return e=this._getTopLeftPoint(e,n),new M(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e=="string"?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,n){var o=this.options.crs;return n=n===void 0?this._zoom:n,o.scale(e)/o.scale(n)},getScaleZoom:function(a,n){var o=this.options.crs,a=(n=n===void 0?this._zoom:n,o.zoom(a*o.scale(n)));return isNaN(a)?1/0:a},project:function(e,n){return n=n===void 0?this._zoom:n,this.options.crs.latLngToPoint(z(e),n)},unproject:function(e,n){return n=n===void 0?this._zoom:n,this.options.crs.pointToLatLng(D(e),n)},layerPointToLatLng:function(e){return e=D(e).add(this.getPixelOrigin()),this.unproject(e)},latLngToLayerPoint:function(e){return this.project(z(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(z(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(J(e))},distance:function(e,n){return this.options.crs.distance(z(e),z(n))},containerPointToLayerPoint:function(e){return D(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return D(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){return e=this.containerPointToLayerPoint(D(e)),this.layerPointToLatLng(e)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(z(e)))},mouseEventToContainerPoint:function(e){return Ei(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){if(e=this._container=En(e),!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");F(e,"scroll",this._onScroll,this),this._containerId=P(e)},_initLayout:function(){var e=this._container,n=(this._fadeAnimated=this.options.fadeAnimation&&C.any3d,q(e,"leaflet-container"+(C.touch?" leaflet-touch":"")+(C.retina?" leaflet-retina":"")+(C.ielt9?" leaflet-oldie":"")+(C.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),kt(e,"position"));n!=="absolute"&&n!=="relative"&&n!=="fixed"&&n!=="sticky"&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ct(this._mapPane,new I(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(q(e.markerPane,"leaflet-zoom-hide"),q(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,n,o){ct(this._mapPane,new I(0,0));var a=!this._loaded,h=(this._loaded=!0,n=this._limitZoom(n),this.fire("viewprereset"),this._zoom!==n);this._moveStart(h,o)._move(e,n)._moveEnd(h),this.fire("viewreset"),a&&this.fire("load")},_moveStart:function(e,n){return e&&this.fire("zoomstart"),n||this.fire("movestart"),this},_move:function(e,n,o,a){n===void 0&&(n=this._zoom);var h=this._zoom!==n;return this._zoom=n,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),a?o&&o.pinch&&this.fire("zoom",o):((h||o&&o.pinch)&&this.fire("zoom",o),this.fire("move",o)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return at(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){ct(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={};var n=e?tt:F;n((this._targets[P(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&n(window,"resize",this._onResize,this),C.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){at(this._resizeRequest),this._resizeRequest=$(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,n){for(var o,a=[],h=n==="mouseout"||n==="mouseover",c=e.target||e.srcElement,p=!1;c;){if((o=this._targets[P(c)])&&(n==="click"||n==="preclick")&&this._draggableMoved(o)){p=!0;break}if(o&&o.listens(n,!0)&&(h&&!hn(c,e)||(a.push(o),h))||c===this._container)break;c=c.parentNode}return a=a.length||p||h||!this.listens(n,!0)?a:[this]},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var n,o=e.target||e.srcElement;!this._loaded||o._leaflet_disable_events||e.type==="click"&&this._isCl
1ickDisabled(o)||((n=e.type)==="mousedown"&&sn(o),this._fireDOMEvent(e,n))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,o){e.type==="click"&&((f=k({},e)).type="preclick",this._fireDOMEvent(f,f.type,o));var a=this._findEventTargets(e,n);if(o){for(var h=[],c=0;c<o.length;c++)o[c].listens(n,!0)&&h.push(o[c]);a=h.concat(a)}if(a.length){n==="contextmenu"&&pt(e);var p,f=a[0],v={originalEvent:e};for(e.type!=="keypress"&&e.type!=="keydown"&&e.type!=="keyup"&&(p=f.getLatLng&&(!f._radius||f._radius<=10),v.containerPoint=p?this.latLngToContainerPoint(f.getLatLng()):this.mouseEventToContainerPoint(e),v.layerPoint=this.containerPointToLayerPoint(v.containerPoint),v.latlng=p?f.getLatLng():this.layerPointToLatLng(v.layerPoint)),c=0;c<a.length;c++)if(a[c].fire(n,v,!0),v.originalEvent._stopped||a[c].options.bubblingMouseEvents===!1&&Je(this._mouseEvents,n)!==-1)return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,n=this._handlers.length;e<n;e++)this._handlers[e].disable()},whenReady:function(e,n){return this._loaded?e.call(n||this,{target:this}):this.on("load",e,n),this},_getMapPanePos:function(){return Pe(this._mapPane)||new I(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,n){return(e&&n!==void 0?this._getNewPixelOrigin(e,n):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,n){var o=this.getSize()._divideBy(2);return this.project(e,n)._subtract(o)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,n,o){return o=this._getNewPixelOrigin(o,n),this.project(e,n)._subtract(o)},_latLngBoundsToNewLayerBounds:function(e,n,o){return o=this._getNewPixelOrigin(o,n),K([this.project(e.getSouthWest
vendor: 41,073 bytes, line 1
1(),n)._subtract(o),this.project(e.getNorthWest(),n)._subtract(o),this.project(e.getSouthEast(),n)._subtract(o),this.project(e.getNorthEast(),n)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,n,o){var a,h;return!o||(a=this.project(e,n),h=this.getSize().divideBy(2),h=new M(a.subtract(h),a.add(h)),h=this._getBoundsOffset(h,o,n),Math.abs(h.x)<=1&&Math.abs(h.y)<=1)?e:this.unproject(a.add(h),n)},_limitOffset:function(e,n){var o;return n?(o=new M((o=this.getPixelBounds()).min.add(e),o.max.add(e)),e.add(this._getBoundsOffset(o,n))):e},_getBoundsOffset:function(e,n,o){return n=K(this.project(n.getNorthEast(),o),this.project(n.getSouthWest(),o)),o=n.min.subtract(e.min),n=n.max.subtract(e.max),new I(this._rebound(o.x,-n.x),this._rebound(o.y,-n.y))},_rebound:function(e,n){return 0<e+n?Math.round(e-n)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(n))},_limitZoom:function(e){var n=this.getMinZoom(),o=this.getMaxZoom(),a=C.any3d?this.options.zoomSnap:1;return a&&(e=Math.round(e/a)*a),Math.max(n,Math.min(o,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){it(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,n){return e=this._getCenterOffset(e)._trunc(),!((n&&n.animate)!==!0&&!this.getSize().contains(e))&&(this.panBy(e,n),!0)},_createAnimProxy:function(){var e=this._proxy=x("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(n){var o=nn,a=this._proxy.style[o];be(this._proxy,this.project(n.center,n.zoom),this.getZoomScale(n.zoom,1)),a===this._proxy.style[o]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ot(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),n=this.getZoom();be(this._proxy,this.project(e,n),this.getZoomScale(n,1))},_catchTransitionEnd:function(e){this._animatingZoom&&0<=e.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,n,o){if(!this._animatingZoom){if(o=o||{},!this._zoomAnimated||o.animate===!1||this._nothingToAnimate()||Math.abs(n-this._zoom)>this.options.zoomAnimationThreshold)return!1;var a=this.getZoomScale(n),a=this._getCenterOffset(e)._divideBy(1-1/a);if(o.animate!==!0&&!this.getSize().contains(a))return!1;$(function(){this._moveStart(!0,o.noMoveStart||!1)._animateZoom(e,n,!0)},this)}return!0},_animateZoom:function(e,n,o,a){this._mapPane&&(o&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=n,q(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:n,noUpdate:a}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(S(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&it(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function qt(e){return new Tt(e)}var Tt=xt.extend({options:{position:"topright"},initialize:function(e){E(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var n=this._map;return n&&n.removeControl(this),this.options.position=e,n&&n.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var n=this._container=this.onAdd(a),o=this.getPosition(),a=a._controlCorners[o];return q(n,"leaflet-control"),o.indexOf("bottom")!==-1?a.insertBefore(n,a.firstChild):a.appendChild(n),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(ot(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(e){this._map&&e&&0<e.screenX&&0<e.screenY&&this._map.getContainer().focus()}}),Ie=(Z.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},n="leaflet-",o=this._controlContainer=x("div",n+"control-container",this._container);function a(h,c){e[h+c]=x("div",n+h+" "+n+c,o)}a("top","left"),a("top","right"),a("bottom","left"),a("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)ot(this._controlCorners[e]);ot(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),Tt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,n,o,a){return o<a?-1:a<o?1:0}},initialize:function(e,n,o){for(var a in E(this,o),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[a],a);for(a in n)this._addLayer(n[a],a,!0)},onAdd:function(e){this._initLayout(),this._update(),(this._map=e).on("zoomend",this._checkDisabledLayers,this);for(var n=0;n<this._layers.length;n++)this._layers[n].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return Tt.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,n){return this._addLayer(e,n),this._map?this._update():this},addOverlay:function(e,n){return this._addLayer(e,n,!0),this._map?this._update():this},removeLayer:function(e){return e.off("add remove",this._onLayerChange,this),e=this._getLayer(P(e)),e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){q(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(q(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):it(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return it(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",n=this._container=x("div",e),o=this.options.collapsed,a=(n.setAttribute("aria-haspopup",!0),Xt(n),ae(n),this._section=x("section",e+"-list")),h=(o&&(this._map.on("click",this.collapse,this),F(n,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)),this._layersLink=x("a",e+"-toggle",n));h.href="#",h.title="Layers",h.setAttribute("role","button"),F(h,{keydown:function(c){c.keyCode===13&&this._expandSafely()},click:function(c){pt(c),this._expandSafely()}},this),o||this.expand(),this._baseLayersList=x("div",e+"-base",a),this._separator=x("div",e+"-separator",a),this._overlaysList=x("div",e+"-overlays",a),n.appendChild(a)},_getLayer:function(e){for(var n=0;n<this._layers.length;n++)if(this._layers[n]&&P(this._layers[n].layer)===e)return this._layers[n]},_addLayer:function(e,n,o){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:n,overlay:o}),this.options.sortLayers&&this._layers.sort(S(function(a,h){return this.options.sortFunction(a.layer,h.layer,a.name,h.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(this._container){hi(this._baseLayersList),hi(this._overlaysList),this._layerControlInputs=[];for(var e,n,o,a=0,h=0;h<this._layers.length;h++)o=this._layers[h],this._addItem(o),n=n||o.overlay,e=e||!o.overlay,a+=o.overlay?0:1;this.options.hideSingleBase&&(this._baseLayersList.style.display=(e=e&&1<a)?"":"none"),this._separator.style.display=n&&e?"":"none"}return this},_onLayerChange:function(o){this._handlingClick||this._update();var n=this._getLayer(P(o.target)),o=n.overlay?o.type==="add"?"overlayadd":"overlayremove":o.type==="add"?"baselayerchange":null;o&&this._map.fire(o,n)},_createRadioElement:function(e,n){return e='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(n?' checked="checked"':"")+"/>",n=document.createElement("div"),n.innerHTML=e,n.firstChild},_addItem:function(e){var n,o=document.createElement("label"),a=this._map.hasLayer(e.layer),a=(e.overlay?((n=document.createElement("input")).type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=a):n=this._createRadioElement("leaflet-base-layers_"+P(this),a),this._layerControlInputs.push(n),n.layerId=P(e.layer),F(n,"click",this._onInputClick,this),document.createElement("span")),h=(a.innerHTML=" "+e.name,document.createElement("span"));return o.appendChild(h),h.appendChild(n),h.appendChild(a),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(o),this._checkDisabledLayers(),o},_onInputClick:function(){if(!this._preventClick){var e,n,o=this._layerControlInputs,a=[],h=[];this._handlingClick=!0;for(var c=o.length-1;0<=c;c--)e=o[c],n=this._getLayer(e.layerId).layer,e.checked?a.push(n):e.checked||h.push(n);for(c=0;c<h.length;c++)this._map.hasLayer(h[c])&&this._map.removeLayer(h[c]);for(c=0;c<a.length;c++)this._map.hasLayer(a[c])||this._map.addLayer(a[c]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,n,o=this._layerControlInputs,a=this._map.getZoom(),h=o.length-1;0<=h;h--)e=o[h],n=this._getLayer(e.layerId).layer,e.disabled=n.options.minZoom!==void 0&&a<n.options.minZoom||n.options.maxZoom!==void 0&&a>n.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section,n=(this._preventClick=!0,F(e,"click",pt),this.expand(),this);setTimeout(function(){tt(e,"click",pt),n._preventClick=!1})}})),ui=Tt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var n="leaflet-control-zoom",o=x("div",n+" leaflet-bar"),a=this.options;return this._zoomInButton=this._createButton(a.zoomInText,a.zoomInTitle,n+"-in",o,this._zoomIn),this._zoomOutButton=this._createButton(a.zoomOutText,a.zoomOutTitle,n+"-out",o,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),o},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,n,o,a,h){return o=x("a",o,a),o.innerHTML=e,o.href="#",o.title=n,o.setAttribute("role","button"),o.setAttribute("aria-label",n),Xt(o),F(o,"click",B),F(o,"click",h,this),F(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var e=this._map,n="leaflet-disabled";it(this._zoomInButton,n),it(this._zoomOutButton,n),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&e._zoom!==e.getMinZoom()||(q(this._zoomOutButton,n),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&e._zoom!==e.getMaxZoom()||(q(this._zoomInButton,n),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Be=(Z.mergeOptions({zoomControl:!0}),Z.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ui,this.addControl(this.zoomControl))}),Tt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var n="leaflet-control-scale",o=x("div",n),a=this.options;return this._addScales(a,n+"-line",o),e.on(a.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),o},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,n,o){e.metric&&(this._mScale=x("div",n,o)),e.imperial&&(this._iScale=x("div",n,o))},_update:function(){var n=this._map,e=n.getSize().y/2,n=n.distance(n.containerPointToLatLng([0,e]),n.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var n=this._getRoundNum(e);this._updateScale(this._mScale,n<1e3?n+" m":n/1e3+" km",n/e)},_updateImperial:function(a){var n,o,a=3.2808399*a;5280<a?(o=this._getRoundNum(n=a/5280),this._updateScale(this._iScale,o+" mi",o/n)):(o=this._getRoundNum(a),this._updateScale(this._iScale,o+" ft",o/a))},_updateScale:function(e,n,o){e.style.width=Math.round(this.options.maxWidth*o)+"px",e.innerHTML=n},_getRoundNum:function(o){var n=Math.pow(10,(Math.floor(o)+"").length-1),o=o/n;return n*(o=10<=o?10:5<=o?5:3<=o?3:2<=o?2:1)}})),ci=Tt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(C.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(e){E(this,e),this._attributions={}},onAdd:function(e){for(var n in(e.attributionControl=this)._container=x("div","leaflet-control-attribution"),Xt(this._container),e._layers)e._layers[n].getAttribution&&this.addAttribution(e._layers[n].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e&&(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update()),this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e,n=[];for(e in this._attributions)this._attributions[e]&&n.push(e);var o=[];this.options.prefix&&o.push(this.options.prefix),n.length&&o.push(n.join(", ")),this._container.innerHTML=o.join(' <span aria-hidden="true">|</span> ')}}}),Mt=(Z.mergeOptions({attributionControl:!0}),Z.addInitHook(function(){this.options.attributionControl&&new ci().addTo(this)}),Tt.Layers=Ie,Tt.Zoom=ui,Tt.Scale=Be,Tt.Attribution=ci,qt.layers=function(e,n,o){return new Ie(e,n,o)},qt.zoom=function(e){return new ui(e)},qt.scale=function(e){return new Be(e)},qt.attribution=function(e){return new ci(e)},xt.extend({initialize:function(e){this._map=e},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}})),le=(Mt.addTo=function(e,n){return e.addHandler(n,this),this},{Events:Ot}),Ai=C.touch?"touchstart mousedown":"mousedown",Jt=wt.extend({options:{clickTolerance:3},initialize:function(e,n,o,a){E(this,a),this._element=e,this._dragStartTarget=n||e,this._preventOutline=o},enable:function(){this._enabled||(F(this._dragStartTarget,Ai,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Jt._dragging===this&&this.finishDrag(!0),tt(this._dragStartTarget,Ai,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){var n,o;this._enabled&&(this._moved=!1,li(this._element,"leaflet-zoom-anim")||(e.touches&&e.touches.length!==1?Jt._dragging===this&&this.finishDrag():Jt._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches||((Jt._dragging=this)._preventOutline&&sn(this._element),Oe(),si(),this._moving||(this.fire("down"),o=e.touches?e.touches[0]:e,n=On(this._element),this._startPoint=new I(o.clientX,o.clientY),this._startPos=Pe(this._element),this._parentScale=rn(n),o=e.type==="mousedown",F(document,o?"mousemove":"touchmove",this._onMove,this),F(document,o?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(e){var n;this._enabled&&(e.touches&&1<e.touches.length?this._moved=!0:!(n=new I((n=e.touches&&e.touches.length===1?e.touches[0]:e).clientX,n.clientY)._subtract(this._startPoint)).x&&!n.y||Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,pt(e),this._moved||(this.fire("dragstart"),this._moved=!0,q(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),q(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),ct(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){it(document.body,"leaflet-dragging"),this._lastTarget&&(it(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),tt(document,"mousemove touchmove",this._onMove,this),tt(document,"mouseup touchend touchcancel",this._onUp,this),on(),Mi();var n=this._moved&&this._moving;this._moving=!1,Jt._dragging=!1,n&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function di(e,n,o){for(var a,h,c,p,f,v,w,b=[1,4,2,8],G=0,N=e.length;G<N;G++)e[G]._code=ie(e[G],n);for(c=0;c<4;c++){for(v=b[c],a=[],G=0,h=(N=e.length)-1;G<N;h=G++)p=e[G],f=e[h],p._code&v?f._code&v||((w=Ne(f,p,v,n,o))._code=ie(w,n),a.push(w)):(f._code&v&&((w=Ne(f,p,v,n,o))._code=ie(w,n),a.push(w)),a.push(p));e=a}return e}function ln(e,n){var o,a,h,c,p,f,v;if(!e||e.length===0)throw new Error("latlngs not passed");mt(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);for(var w=z([0,0]),b=J(e),G=(b.getNorthWest().distanceTo(b.getSouthWest())*b.getNorthEast().distanceTo(b.getNorthWest())<1700&&(w=_i(e)),e.length),N=[],st=0;st<G;st++){var dt=z(e[st]);N.push(n.project(z([dt.lat-w.lat,dt.lng-w.lng])))}for(st=p=f=v=0,o=G-1;st<G;o=st++)a=N[st],h=N[o],c=a.y*h.x-h.y*a.x,f+=(a.x+h.x)*c,v+=(a.y+h.y)*c,p+=3*c;return b=p===0?N[0]:[f/p,v/p],b=n.unproject(D(b)),z([b.lat+w.lat,b.lng+w.lng])}function _i(e){for(var n=0,o=0,a=0,h=0;h<e.length;h++){var c=z(e[h]);n+=c.lat,o+=c.lng,a++}return z([n/a,o/a])}var An,H={__proto__:null,clipPolygon:di,polygonCenter:ln,centroid:_i};function Gt(e,n){if(n&&e.length){var o=e=function(f,v){for(var w=[f[0]],b=1,G=0,N=f.length;b<N;b++)(function(st,Zt){var vt=Zt.x-st.x,Zt=Zt.y-st.y;return vt*vt+Zt*Zt})(f[b],f[G])>v&&(w.push(f[b]),G=b);return G<N-1&&w.push(f[N-1]),w}(e,n=n*n),a=o.length,h=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(a);h[0]=h[a-1]=1,function f(v,w,b,G,N){var st,dt,vt,Zt=0;for(dt=G+1;dt<=N-1;dt++)vt=Te(v[dt],v[G],v[N],!0),Zt<vt&&(st=dt,Zt=vt);b<Zt&&(w[st]=1,f(v,w,b,G,st),f(v,w,b,st,N))}(o,h,n,0,a-1);var c,p=[];for(c=0;c<a;c++)h[c]&&p.push(o[c]);return p}return e.slice()}function et(e,n,o){return Math.sqrt(Te(e,n,o,!0))}function un(e,n,o,a,h){var c,p,f,v=a?An:ie(e,o),w=ie(n,o);for(An=w;;){if(!(v|w))return[e,n];if(v&w)return!1;f=ie(p=Ne(e,n,c=v||w,o,h),o),c===v?(e=p,v=f):(n=p,w=f)}}function Ne(e,v,o,b,h){var c,p,f=v.x-e.x,v=v.y-e.y,w=b.min,b=b.max;return 8&o?(c=e.x+f*(b.y-e.y)/v,p=b.y):4&o?(c=e.x+f*(w.y-e.y)/v,p=w.y):2&o?(c=b.x,p=e.y+v*(b.x-e.x)/f):1&o&&(c=w.x,p=e.y+v*(w.x-e.x)/f),new I(c,p,h)}function ie(e,n){var o=0;return e.x<n.min.x?o|=1:e.x>n.max.x&&(o|=2),e.y<n.min.y?o|=4:e.y>n.max.y&&(o|=8),o}function Te(e,c,o,a){var h=c.x,c=c.y,p=o.x-h,f=o.y-c,v=p*p+f*f;return 0<v&&(1<(v=((e.x-h)*p+(e.y-c)*f)/v)?(h=o.x,c=o.y):0<v&&(h+=p*v,c+=f*v)),p=e.x-h,f=e.y-c,a?p*p+f*f:new I(h,c)}function mt(e){return!ut(e[0])||typeof e[0][0]!="object"&&e[0][0]!==void 0}function Ii(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),mt(e)}function Re(e,n){var o,a,h,c,p,f;if(!e||e.length===0)throw new Error("latlngs not passed");mt(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);for(var v=z([0,0]),w=J(e),b=(w.getNorthWest().distanceTo(w.getSouthWest())*w.getNorthEast().distanceTo(w.getNorthWest())<1700&&(v=_i(e)),e.length),G=[],N=0;N<b;N++){var st=z(e[N]);G.push(n.project(z([st.lat-v.lat,st.lng-v.lng])))}for(o=N=0;N<b-1;N++)o+=G[N].distanceTo(G[N+1])/2;if(o===0)f=G[0];else for(a=N=0;N<b-1;N++)if(h=G[N],c=G[N+1],o<(a+=p=h.distanceTo(c))){f=[c.x-(p=(a-o)/p)*(c.x-h.x),c.y-p*(c.y-h.y)];break}return w=n.unproject(D(f)),z([w.lat+v.lat,w.lng+v.lng])}var _t={__proto__:null,simplify:Gt,pointToSegmentDistance:et,closestPointOnSegment:function(e,n,o){return Te(e,n,o)},clipSegment:un,_getEdgeIntersection:Ne,_getBitCode:ie,_sqClosestPointOnSegment:Te,isFlat:mt,_flat:Ii,polylineCenter:Re},It={project:function(e){return new I(e.lng,e.lat)},unproject:function(e){return new O(e.y,e.x)},bounds:new M([-180,-90],[180,90])},ue={R:6378137,R_MINOR:6356752314245179e-9,bounds:new M([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(e){var n=Math.PI/180,o=this.R,c=e.lat*n,a=this.R_MINOR/o,a=Math.sqrt(1-a*a),h=a*Math.sin(c),h=Math.tan(Math.PI/4-c/2)/Math.pow((1-h)/(1+h),a/2),c=-o*Math.log(Math.max(h,1e-10));return new I(e.lng*n*o,c)},unproject:function(e){for(var n,o=180/Math.PI,a=this.R,h=this.R_MINOR/a,c=Math.sqrt(1-h*h),p=Math.exp(-e.y/a),f=Math.PI/2-2*Math.atan(p),v=0,w=.1;v<15&&1e-7<Math.abs(w);v++)n=c*Math.sin(f),n=Math.pow((1-n)/(1+n),c/2),f+=w=Math.PI/2-2*Math.atan(p*n)-f;return new O(f*o,e.x*o/a)}},fi={__proto__:null,LonLat:It,Mercator:ue,SphericalMercator:bt},cn=k({},Pt,{code:"EPSG:3395",projection:ue,transformation:pe(ei=.5/(Math.PI*ue.R),.5,-ei,.5)}),dn=k({},Pt,{code:"EPSG:4326",projection:It,transformation:pe(1/180,1,-1/180,.5)}),De=k({},j,{projection:It,transformation:pe(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,a){var o=a.lng-e.lng,a=a.lat-e.lat;return Math.sqrt(o*o+a*a)},infinite:!0}),Ct=(j.Earth=Pt,j.EPSG3395=cn,j.EPSG3857=me,j.EPSG900913=ti,j.EPSG4326=dn,j.Simple=De,wt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[P(e)]=this},removeInteractiveTarget:function(e){return delete this._map._targets[P(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var n,o=e.target;o.hasLayer(this)&&(this._map=o,this._zoomAnimated=o._zoomAnimated,this.getEvents&&(n=this.getEvents(),o.on(n,this),this.once("remove",function(){o.off(n,this)},this)),this.onAdd(o),this.fire("add"),o.fire("layeradd",{layer:this}))}})),Me=(Z.include({addLayer:function(e){var n;if(e._layerAdd)return n=P(e),this._layers[n]||((this._layers[n]=e)._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this;throw new Error("The provided object is not a Layer.")},removeLayer:function(e){var n=P(e);return this._layers[n]&&(this._loaded&&e.onRemove(this),delete this._layers[n],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null),this},hasLayer:function(e){return P(e)in this._layers},eachLayer:function(e,n){for(var o in this._layers)e.call(n,this._layers[o]);return this},_addLayers:function(e){for(var n=0,o=(e=e?ut(e)?e:[e]:[]).length;n<o;n++)this.addLayer(e[n])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[P(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){e=P(e),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var e,n=1/0,o=-1/0,a=this._getZoomSpan();for(e in this._zoomBoundLayers)var h=this._zoomBoundLayers[e].options,n=h.minZoom===void 0?n:Math.min(n,h.minZoom),o=h.maxZoom===void 0?o:Math.max(o,h.maxZoom);this._layersMaxZoom=o===-1/0?void 0:o,this._layersMinZoom=n===1/0?void 0:n,a!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),Ct.extend({initialize:function(e,n){var o,a;if(E(this,n),this._layers={},e)for(o=0,a=e.length;o<a;o++)this.addLayer(e[o])},addLayer:function(e){var n=this.getLayerId(e);return this._layers[n]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){return e=e in this._layers?e:this.getLayerId(e),this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(e){return(typeof e=="number"?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var n,o,a=Array.prototype.slice.call(arguments,1);for(n in this._layers)(o=this._layers[n])[e]&&o[e].apply(o,a);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,n){for(var o in this._layers)e.call(n,this._layers[o]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:P})),U=Me.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Me.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?((e=e in this._layers?this._layers[e]:e).removeEventParent(this),Me.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e,n=new Q;for(e in this._layers){var o=this._layers[e];n.extend(o.getBounds?o.getBounds():o.getLatLng())}return n}}),He=xt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){E(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,n){var o=this._getIconUrl(e);if(o)return o=this._createImg(o,n&&n.tagName==="IMG"?n:null),this._setIconStyles(o,e),!this.options.crossOrigin&&this.options.crossOrigin!==""||(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),o;if(e==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(e,n){var o=this.options,a=o[n+"Size"],a=D(a=typeof a=="number"?[a,a]:a),h=D(n==="shadow"&&o.shadowAnchor||o.iconAnchor||a&&a.divideBy(2,!0));e.className="leaflet-marker-"+n+" "+(o.className||""),h&&(e.style.marginLeft=-h.x+"px",e.style.marginTop=-h.y+"px"),a&&(e.style.width=a.x+"px",e.style.height=a.y+"px")},_createImg:function(e,n){return(n=n||document.createElement("img")).src=e,n},_getIconUrl:function(e){return C.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}}),zt=He.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(e){return typeof zt.imagePath!="string"&&(zt.imagePath=this._detectIconPath()),(this.options.imagePath||zt.imagePath)+He.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){function n(o,a,h){return(a=a.exec(o))&&a[h]}return(e=n(e,/^url\((['"])?(.+)\1\)$/,2))&&n(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=x("div","leaflet-default-icon-path",document.body),n=kt(e,"background-image")||kt(e,"backgroundImage");return document.body.removeChild(e),(n=this._stripUrl(n))?n:(e=document.querySelector('link[href$="leaflet.css"]'))?e.href.substring(0,e.href.length-11-1):""}}),Fe=Mt.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new Jt(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),q(e,"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&&it(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var n=this._marker,o=n._map,a=this._marker.options.autoPanSpeed,h=this._marker.options.autoPanPadding,c=Pe(n._icon),p=o.getPixelBounds(),f=o.getPixelOrigin(),f=K(p.min._subtract(f).add(h),p.max._subtract(f).subtract(h));f.contains(c)||(h=D((Math.max(f.max.x,c.x)-f.max.x)/(p.max.x-f.max.x)-(Math.min(f.min.x,c.x)-f.min.x)/(p.min.x-f.min.x),(Math.max(f.max.y,c.y)-f.max.y)/(p.max.y-f.max.y)-(Math.min(f.min.y,c.y)-f.min.y)/(p.min.y-f.min.y)).multiplyBy(a),o.panBy(h,{animate:!1}),this._draggable._newPos._add(h),this._draggable._startPos._add(h),ct(n._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=$(this._adjustPan.bind(this,e)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(at(this._panRequest),this._panRequest=$(this._adjustPan.bind(this,e)))},_onDrag:function(e){var n=this._marker,o=n._shadow,a=Pe(n._icon),h=n._map.layerPointToLatLng(a);o&&ct(o,a),n._latlng=h,e.latlng=h,e.oldLatLng=this._oldLatLng,n.fire("move",e).fire("drag",e)},_onDragEnd:function(e){at(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),pi=Ct.extend({options:{icon:new zt,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(e,n){E(this,n),this._latlng=z(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.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(e){var n=this._latlng;return this._latlng=z(e),this.update(),this.fire("move",{oldLatLng:n,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var e;return this._icon&&this._map&&(e=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(e)),this},_initIcon:function(){var e=this.options,n="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=e.icon.createIcon(this._icon),o=!1,a=(a!==this._icon&&(this._icon&&this._removeIcon(),o=!0,e.title&&(a.title=e.title),a.tagName==="IMG"&&(a.alt=e.alt||"")),q(a,n),e.keyboard&&(a.tabIndex="0",a.setAttribute("role","button")),this._icon=a,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&F(a,"focus",this._panOnFocus,this),e.icon.createShadow(this._shadow)),h=!1;a!==this._shadow&&(this._removeShadow(),h=!0),a&&(q(a,n),a.alt=""),this._shadow=a,e.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),a&&h&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&tt(this._icon,"focus",this._panOnFocus,this),ot(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ot(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&ct(this._icon,e),this._shadow&&ct(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round(),this._setPos(e)},_initInteraction:function(){var e;this.options.interactive&&(q(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Fe&&(e=this.options.draggable,this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Fe(this),e&&this.dragging.enable()))},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&Ht(this._icon,e),this._shadow&&Ht(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e,n,o=this._map;o&&(e=(n=this.options.icon.options).iconSize?D(n.iconSize):D(0,0),n=n.iconAnchor?D(n.iconAnchor):D(0,0),o.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:e.subtract(n)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),ce=Ct.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(e){this._renderer=e.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(e){return E(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"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)}}),We=ce.extend({options:{fill:!0,radius:10},initialize:function(e,n){E(this,n),this._latlng=z(e),this._radius=this.options.radius},setLatLng:function(e){var n=this._latlng;return this._latlng=z(e),this.redraw(),this.fire("move",{oldLatLng:n,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var n=e&&e.radius||this._radius;return ce.prototype.setStyle.call(this,e),this.setRadius(n),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var o=this._radius,e=this._radiusY||o,n=this._clickTolerance(),o=[o+n,e+n];this._pxBounds=new M(this._point.subtract(o),this._point.add(o))},_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(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),_n=We.extend({initialize:function(e,n,o){if(E(this,n=typeof n=="number"?k({},o,{radius:n}):n),this._latlng=z(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new Q(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:ce.prototype.setStyle,_project:function(){var e,n,o,a,h,c=this._latlng.lng,p=this._latlng.lat,f=this._map,v=f.options.crs;v.distance===Pt.distance?(a=Math.PI/180,h=this._mRadius/Pt.R/a,e=f.project([p+h,c]),n=f.project([p-h,c]),n=e.add(n).divideBy(2),o=f.unproject(n).lat,a=Math.acos((Math.cos(h*a)-Math.sin(p*a)*Math.sin(o*a))/(Math.cos(p*a)*Math.cos(o*a)))/a,!isNaN(a)&&a!==0||(a=h/Math.cos(Math.PI/180*p)),this._point=n.subtract(f.getPixelOrigin()),this._radius=isNaN(a)?0:n.x-f.project([o,c-a]).x,this._radiusY=n.y-e.y):(h=v.unproject(v.project(this._latlng).subtract([this._mRadius,0])),this._point=f.latLngToLayerPoint(this._latlng),this._radius=this._point.x-f.latLngToLayerPoint(h).x),this._updateBounds()}}),$t=ce.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,n){E(this,n),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var n=1/0,o=null,a=Te,h=0,c=this._parts.length;h<c;h++)for(var p=this._parts[h],f=1,v=p.length;f<v;f++){var w,b,G=a(e,w=p[f-1],b=p[f],!0);G<n&&(n=G,o=a(e,w,b))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(this._map)return Re(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},getBounds:function(){return this._bounds},addLatLng:function(e,n){return n=n||this._defaultShape(),e=z(e),n.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new Q,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return mt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var n=[],o=mt(e),a=0,h=e.length;a<h;a++)o?(n[a]=z(e[a]),this._bounds.extend(n[a])):n[a]=this._convertLatLngs(e[a]);return n},_project:function(){var e=new M;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),e=new I(e,e);this._rawPxBounds&&(this._pxBounds=new M([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(e,n,o){var a,h,c=e[0]instanceof O,p=e.length;if(c){for(h=[],a=0;a<p;a++)h[a]=this._map.latLngToLayerPoint(e[a]),o.extend(h[a]);n.push(h)}else for(a=0;a<p;a++)this._projectLatlngs(e[a],n,o)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var n,o,a,h,c=this._parts,p=0,f=0,v=this._rings.length;p<v;p++)for(n=0,o=(h=this._rings[p]).length;n<o-1;n++)(a=un(h[n],h[n+1],e,n,!0))&&(c[f]=c[f]||[],c[f].push(a[0]),a[1]===h[n+1]&&n!==o-2||(c[f].push(a[1]),f++))},_simplifyPoints:function(){for(var e=this._parts,n=this.options.smoothFactor,o=0,a=e.length;o<a;o++)e[o]=Gt(e[o],n)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,n){var o,a,h,c,p,f,v=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(e)){for(o=0,c=this._parts.length;o<c;o++)for(a=0,h=(p=(f=this._parts[o]).length)-1;a<p;h=a++)if((n||a!==0)&&et(e,f[h],f[a])<=v)return!0}return!1}});$t._flat=Ii;var je=$t.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(this._map)return ln(this._defaultShape(),this._map.options.crs);
vendor: 6,745 bytes, line 1
1throw new Error("Must add layer to map before using getCenter()")},_convertLatLngs:function(n){var n=$t.prototype._convertLatLngs.call(this,n),o=n.length;return 2<=o&&n[0]instanceof O&&n[0].equals(n[o-1])&&n.pop(),n},_setLatLngs:function(e){$t.prototype._setLatLngs.call(this,e),mt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(mt(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var n=this._renderer._bounds,e=this.options.weight,e=new I(e,e),n=new M(n.min.subtract(e),n.max.add(e));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(n))if(this.options.noClip)this._parts=this._rings;else for(var o,a=0,h=this._rings.length;a<h;a++)(o=di(this._rings[a],n,!0)).length&&this._parts.push(o)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var n,o,a,h,c,p,f,v,w=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(h=0,f=this._parts.length;h<f;h++)for(c=0,p=(v=(n=this._parts[h]).length)-1;c<v;p=c++)o=n[c],a=n[p],o.y>e.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(w=!w);return w||$t.prototype._containsPoint.call(this,e,!0)}}),ne=U.extend({initialize:function(e,n){E(this,n),this._layers={},e&&this.addData(e)},addData:function(e){var n,o,a,h=ut(e)?e:e.features;if(h){for(n=0,o=h.length;n<o;n++)((a=h[n]).geometries||a.geometry||a.features||a.coordinates)&&this.addData(a);return this}var c,p=this.options;return(!p.filter||p.filter(e))&&(c=Ue(e,p))?(c.feature=mi(e),c.defaultOptions=c.options,this.resetStyle(c),p.onEachFeature&&p.onEachFeature(e,c),this.addLayer(c)):this},resetStyle:function(e){return e===void 0?this.eachLayer(this.resetStyle,this):(e.options=k({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(n){this._setLayerStyle(n,e)},this)},_setLayerStyle:function(e,n){e.setStyle&&(typeof n=="function"&&(n=n(e.feature)),e.setStyle(n))}});function Ue(e,n){var o,a,h,c,p=e.type==="Feature"?e.geometry:e,f=p?p.coordinates:null,v=[],w=n&&n.pointToLayer,b=n&&n.coordsToLatLng||Ft;if(!f&&!p)return null;switch(p.type){case"Point":return In(w,e,o=b(f),n);case"MultiPoint":for(h=0,c=f.length;h<c;h++)o=b(f[h]),v.push(In(w,e,o,n));return new U(v);case"LineString":case"MultiLineString":return a=Bi(f,p.type==="LineString"?0:1,b),new $t(a,n);case"Polygon":case"MultiPolygon":return a=Bi(f,p.type==="Polygon"?1:2,b),new je(a,n);case"GeometryCollection":for(h=0,c=p.geometries.length;h<c;h++){var G=Ue({geometry:p.geometries[h],type:"Feature",properties:e.properties},n);G&&v.push(G)}return new U(v);case"FeatureCollection":for(h=0,c=p.features.length;h<c;h++){var N=Ue(p.features[h],n);N&&v.push(N)}return new U(v);default:throw new Error("Invalid GeoJSON object.")}}function In(e,n,o,a){return e?e(n,o):new pi(o,a&&a.markersInheritOptions&&a)}function Ft(e){return new O(e[1],e[0],e[2])}function Bi(e,n,o){for(var a,h=[],c=0,p=e.length;c<p;c++)a=n?Bi(e[c],n-1,o):(o||Ft)(e[c]),h.push(a);return h}function Ni(e,n){return(e=z(e)).alt!==void 0?[ft(e.lng,n),ft(e.lat,n),ft(e.alt,n)]:[ft(e.lng,n),ft(e.lat,n)]}function Kt(e,n,o,a){for(var h=[],c=0,p=e.length;c<p;c++)h.push(n?Kt(e[c],mt(e[c])?0:n-1,o,a):Ni(e[c],a));return!n&&o&&0<h.length&&h.push(h[0].slice()),h}function ze(e,n){return e.feature?k({},e.feature,{geometry:n}):mi(n)}function mi(e){return e.type==="Feature"||e.type==="FeatureCollection"?e:{type:"Feature",properties:{},geometry:e}}ve={toGeoJSON:function(e){return ze(this,{type:"Point",coordinates:Ni(this.getLatLng(),e)})}};function Ri(e,n){return new ne(e,n)}pi.include(ve),_n.include(ve),We.include(ve),$t.include({toGeoJSON:function(e){var n=!mt(this._latlngs);return ze(this,{type:(n?"Multi":"")+"LineString",coordinates:Kt(this._latlngs,n?1:0,!1,e)})}}),je.include({toGeoJSON:function(a){var n=!mt(this._latlngs),o=n&&!mt(this._latlngs[0]),a=Kt(this._latlngs,o?2:n?1:0,!0,a);return ze(this,{type:(o?"Multi":"")+"Polygon",coordinates:a=n?a:[a]})}}),Me.include({toMultiPoint:function(e){var n=[];return this.eachLayer(function(o){n.push(o.toGeoJSON(e).geometry.coordinates)}),ze(this,{type:"MultiPoint",coordinates:n})},toGeoJSON:function(e){var n,o,a=this.feature&&this.feature.geometry&&this.feature.geometry.type;return a==="MultiPoint"?this.toMultiPoint(e):(n=a==="GeometryCollection",o=[],this.eachLayer(function(h){h.toGeoJSON&&(h=h.toGeoJSON(e),n?o.push(h.geometry):(h=mi(h)).type==="FeatureCollection"?o.push.apply(o,h.features):o.push(h))}),n?ze(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o})}});var Di=Ri,gi=Ct.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,n,o){this._url=e,this._bounds=J(n),E(this,o)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(q(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ot(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&xe(this._image),this},bringToBack:function(){return this._map&&we(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=J(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName==="IMG",n=this._image=e?this._url:x("img");q(n,"leaflet-image-layer"),this._zoomAnimated&&q(n,"leaflet-zoom-animated"),this.options.className&&q(n,this.options.className),n.onselectstart=V,n.onmousemove=V,n.onload=S(this.fire,this,"load"),n.onerror=S(this._overlayOnError,this,"error"),!this.options.crossOrigin&&this.options.crossOrigin!==""||(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=n.src:(n.src=this._url,n.alt=this.options.alt)},_animateZoom:function(o){var n=this._map.getZoomScale(o.zoom),o=this._map._latLngBoundsToNewLayerBounds(this._bounds,o.zoom,o.center).min;be(this._image,o,n)},_reset:function(){var e=this._image,n=new M(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),o=n.get
vendor: 6,120 bytes, line 1
1Size();ct(e,n.min),e.style.width=o.x+"px",e.style.height=o.y+"px"},_updateOpacity:function(){Ht(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 e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),fn=gi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName==="VIDEO",n=this._image=e?this._url:x("video");if(q(n,"leaflet-image-layer"),this._zoomAnimated&&q(n,"leaflet-zoom-animated"),this.options.className&&q(n,this.options.className),n.onselectstart=V,n.onmousemove=V,n.onloadeddata=S(this.fire,this,"load"),e){for(var o=n.getElementsByTagName("source"),a=[],h=0;h<o.length;h++)a.push(o[h].src);this._url=0<o.length?a:[n.src]}else{ut(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(n.style,"objectFit")&&(n.style.objectFit="fill"),n.autoplay=!!this.options.autoplay,n.loop=!!this.options.loop,n.muted=!!this.options.muted,n.playsInline=!!this.options.playsInline;for(var c=0;c<this._url.length;c++){var p=x("source");p.src=this._url[c],n.appendChild(p)}}}}),Bn=gi.extend({_initImage:function(){var e=this._image=this._url;q(e,"leaflet-image-layer"),this._zoomAnimated&&q(e,"leaflet-zoom-animated"),this.options.className&&q(e,this.options.className),e.onselectstart=V,e.onmousemove=V}}),Qt=Ct.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,n){e&&(e instanceof O||ut(e))?(this._latlng=z(e),E(this,n)):(E(this,e),this._source=n),this.options.content&&(this._content=this.options.content)},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&Ht(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&Ht(this._container,1),this.bringToFront(),this.options.interactive&&(q(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(Ht(this._container,0),this._removeTimeout=setTimeout(S(ot,void 0,this._container),200)):ot(this._container),this.options.interactive&&(it(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=z(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,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 e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&xe(this._container),this},bringToBack:function(){return this._map&&we(this._container),this},_prepareOpen:function(e){if(!(o=this._source)._map)return!1;if(o instanceof U){var n,o=null,a=this._source._layers;for(n in a)if(a[n]._map){o=a[n];break}if(!o)return!1;this._source=o}if(!e)if(o.getCenter)e=o.getCenter();else if(o.getLatLng)e=o.getLatLng();else{if(!o.getBounds)throw new Error("Unable to get source layer LatLng.");e=o.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,n=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof n=="string")e.innerHTML=n;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(n)}this.fire("contentupdate")}},_updatePosition:function(){var e,n,o;this._map&&(n=this._map.latLngToLayerPoint(this._latlng),e=D(this.options.offset),o=this._getAnchor(),this._zoomAnimated?ct(this._container,n.add(o)):e=e.add(n).add(o),n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x,this._container.style.bottom=n+"px",this._container.style.left=o+"px")},_getAnchor:function(){return[0,0]}}),Ve=(Z.include({_initOverlay:function(e,n,o,a){var h=n;return h instanceof e||(h=new e(a).setContent(n)),o&&h.setLatLng(o),h}}),Ct.include({_initOverlay:function(e,n,o,a){var h=o;return h instanceof e?(E(h,a),h._source=this):(h=n&&!a?n:new e(a,this)).setContent(o),h}}),Qt.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(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Qt.prototype.openOn.call(this,e)},onAdd:function(e){Qt.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ce||this._source.on("preclick",Yt))},onRemove:function(e){Qt.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ce||this._source.off("preclick",Yt))},getEvents:function(){var e=Qt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&
vendor: 23,483 bytes, line 1
1(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",n=this._container=x("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),o=this._wrapper=x("div",e+"-content-wrapper",n);this._contentNode=x("div",e+"-content",o),Xt(n),ae(this._contentNode),F(n,"contextmenu",Yt),this._tipContainer=x("div",e+"-tip-container",n),this._tip=x("div",e+"-tip",this._tipContainer),this.options.closeButton&&((o=this._closeButton=x("a",e+"-close-button",n)).setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">×</span>',F(o,"click",function(a){pt(a),this.close()},this))},_updateLayout:function(){var e=this._contentNode,n=e.style,o=(n.width="",n.whiteSpace="nowrap",e.offsetWidth),o=Math.min(o,this.options.maxWidth),o=(o=Math.max(o,this.options.minWidth),n.width=o+1+"px",n.whiteSpace="",n.height="",e.offsetHeight),a=this.options.maxHeight,h="leaflet-popup-scrolled";(a&&a<o?(n.height=a+"px",q):it)(e,h),this._containerWidth=this._container.offsetWidth},_animateZoom:function(n){var n=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center),o=this._getAnchor();ct(this._container,n.add(o))},_adjustPan:function(){var e,n,o,a,h,c,p,f;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning?this._autopanning=!1:(e=this._map,n=parseInt(kt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+n,f=this._containerWidth,(o=new I(this._containerLeft,-n-this._containerBottom))._add(Pe(this._container)),o=e.layerPointToContainerPoint(o),h=D(this.options.autoPanPadding),a=D(this.options.autoPanPaddingTopLeft||h),h=D(this.options.autoPanPaddingBottomRight||h),c=e.getSize(),p=0,o.x+f+h.x>c.x&&(p=o.x+f-c.x+h.x),o.x-p-a.x<(f=0)&&(p=o.x-a.x),o.y+n+h.y>c.y&&(f=o.y+n-c.y+h.y),o.y-f-a.y<0&&(f=o.y-a.y),(p||f)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([p,f]))))},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Hi=(Z.mergeOptions({closePopupOnClick:!0}),Z.include({openPopup:function(e,n,o){return this._initOverlay(Ve,e,n,o).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Ct.include({bindPopup:function(e,n){return this._popup=this._initOverlay(Ve,this._popup,e,n),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(e){return this._popup&&(this instanceof U||(this._popup._source=this),this._popup._prepareOpen(e||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(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var n;this._popup&&this._map&&(B(e),n=e.layer||e.target,this._popup._source!==n||n instanceof ce?(this._popup._source=n,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}}),Qt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Qt.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Qt.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Qt.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=x("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+P(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var n,w=this._map,o=this._container,a=w.latLngToContainerPoint(w.getCenter()),w=w.layerPointToContainerPoint(e),h=this.options.direction,c=o.offsetWidth,p=o.offsetHeight,f=D(this.options.offset),v=this._getAnchor(),w=h==="top"?(n=c/2,p):h==="bottom"?(n=c/2,0):(n=h==="center"?c/2:h==="right"?0:h==="left"?c:w.x<a.x?(h="right",0):(h="left",c+2*(f.x+v.x)),p/2);e=e.subtract(D(n,w,!0)).add(f).add(v),it(o,"leaflet-tooltip-right"),it(o,"leaflet-tooltip-left"),it(o,"leaflet-tooltip-top"),it(o,"leaflet-tooltip-bottom"),q(o,"leaflet-tooltip-"+h),ct(o,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&Ht(this._container,e)},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),this._setPosition(e)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),pn=(Z.include({openTooltip:function(e,n,o){return this._initOverlay(Hi,e,n,o).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Ct.include({bindTooltip:function(e,n){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Hi,this._tooltip,e,n),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(e){var n,o;!e&&this._tooltipHandlersAdded||(n=e?"off":"on",o={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?o.add=this._openTooltip:(o.mouseover=this._openTooltip,o.mouseout=this.closeTooltip,o.click=this._openTooltip,this._map?this._addFocusListeners():o.add=this._addFocusListeners),this._tooltip.options.sticky&&(o.mousemove=this._moveTooltip),this[n](o),this._tooltipHandlersAdded=!e)},openTooltip:function(e){return this._tooltip&&(this instanceof U||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(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(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var n=typeof e.getElement=="function"&&e.getElement();n&&(F(n,"focus",function(){this._tooltip._source=e,this.openTooltip()},this),F(n,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){e=typeof e.getElement=="function"&&e.getElement(),e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){var n;this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag?(this._openOnceFlag=!0,(n=this)._map.once("moveend",function(){n._openOnceFlag=!1,n._openTooltip(e)})):(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)))},_moveTooltip:function(e){var n=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(e=this._map.mouseEventToContainerPoint(e.originalEvent),e=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(n)}}),He.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(n){var n=n&&n.tagName==="DIV"?n:document.createElement("div"),o=this.options;return o.html instanceof Element?(hi(n),n.appendChild(o.html)):n.innerHTML=o.html!==!1?o.html:"",o.bgPos&&(o=D(o.bgPos),n.style.backgroundPosition=-o.x+"px "+-o.y+"px"),this._setIconStyles(n,"icon"),n},createShadow:function(){return null}}));He.Default=zt;var qe=Ct.extend({options:{tileSize:256,opacity:1,updateWhenIdle:C.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(e){E(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),ot(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(xe(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(we(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var e;return this._map&&(this._removeAllTiles(),(e=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()),this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=jt(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof I?e:new I(e,e)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var n,o=this.getPane().children,a=-e(-1/0,1/0),h=0,c=o.length;h<c;h++)n=o[h].style.zIndex,o[h]!==this._container&&n&&(a=e(a,+n));isFinite(a)&&(this.options.zIndex=a+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!C.ielt9){Ht(this._container,this.options.opacity);var e,n=+new Date,o=!1,a=!1;for(e in this._tiles){var h,c=this._tiles[e];c.current&&c.loaded&&(h=Math.min(1,(n-c.loaded)/200),Ht(c.el,h),h<1?o=!0:(c.active?a=!0:this._onOpaqueTile(c),c.active=!0))}a&&!this._noPrune&&this._pruneTiles(),o&&(at(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this))}},_onOpaqueTile:V,_initContainer:function(){this._container||(this._container=x("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,n=this.options.maxZoom;if(e!==void 0){for(var o in this._levels)o=Number(o),this._levels[o].el.children.length||o===e?(this._levels[o].el.style.zIndex=n-Math.abs(e-o),this._onUpdateLevel(o)):(ot(this._levels[o].el),this._removeTilesAtZoom(o),this._onRemoveLevel(o),delete this._levels[o]);var a=this._levels[e],h=this._map;return a||((a=this._levels[e]={}).el=x("div","leaflet-tile-container leaflet-zoom-animated",this._container),a.el.style.zIndex=n,a.origin=h.project(h.unproject(h.getPixelOrigin()),e).round(),a.zoom=e,this._setZoomTransform(a,h.getCenter(),h.getZoom()),V(a.el.offsetWidth),this._onCreateLevel(a)),this._level=a}},_onUpdateLevel:V,_onRemoveLevel:V,_onCreateLevel:V,_pruneTiles:function(){if(this._map){var e,n,o,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(o=this._tiles[e]).retain=o.current;for(e in this._tiles)(o=this._tiles[e]).current&&!o.active&&(n=o.coords,this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2));for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var n in this._tiles)this._tiles[n].coords.z===e&&this._removeTile(n)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)ot(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(h,c,p,a){var h=Math.floor(h/2),c=Math.floor(c/2),p=p-1,f=new I(+h,+c),f=(f.z=p,this._tileCoordsToKey(f)),f=this._tiles[f];return f&&f.active?f.retain=!0:(f&&f.loaded&&(f.retain=!0),a<p&&this._retainParent(h,c,p,a))},_retainChildren:function(e,n,o,a){for(var h=2*e;h<2*e+2;h++)for(var c=2*n;c<2*n+2;c++){var p=new I(h,c),p=(p.z=o+1,this._tileCoordsToKey(p)),p=this._tiles[p];p&&p.active?p.retain=!0:(p&&p.loaded&&(p.retain=!0),o+1<a&&this._retainChildren(h,c,o+1,a))}},_resetView:function(e){e=e&&(e.pinch||e.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var n=this.options;return n.minNativeZoom!==void 0&&e<n.minNativeZoom?n.minNativeZoom:n.maxNativeZoom!==void 0&&n.maxNativeZoom<e?n.maxNativeZoom:e},_setView:function(e,n,o,a){var h=Math.round(n),h=this.options.maxZoom!==void 0&&h>this.options.maxZoom||this.options.minZoom!==void 0&&h<this.options.minZoom?void 0:this._clampZoom(h),c=this.options.updateWhenZooming&&h!==this._tileZoom;a&&!c||(this._tileZoom=h,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),h!==void 0&&this._update(e),o||this._pruneTiles(),this._noPrune=!!o),this._setZoomTransforms(e,n)},_setZoomTransforms:function(e,n){for(var o in this._levels)this._setZoomTransform(this._levels[o],e,n)},_setZoomTransform:function(e,h,o){var a=this._map.getZoomScale(o,e.zoom),h=e.origin.multiplyBy(a).subtract(this._map._getNewPixelOrigin(h,o)).round();C.any3d?be(e.el,h,a):ct(e.el,h)},_resetGrid:function(){var e=this._map,n=e.options.crs,o=this._tileSize=this.getTileSize(),a=this._tileZoom,h=this._map.getPixelWorldBounds(this._tileZoom);h&&(this._globalTileRange=this._pxBoundsToTileRange(h)),this._wrapX=n.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,n.wrapLng[0]],a).x/o.x),Math.ceil(e.project([0,n.wrapLng[1]],a).x/o.y)],this._wrapY=n.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([n.wrapLat[0],0],a).y/o.x),Math.ceil(e.project([n.wrapLat[1],0],a).y/o.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(o){var a=this._map,n=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),n=a.getZoomScale(n,this._tileZoom),o=a.project(o,this._tileZoom).floor(),a=a.getSize().divideBy(2*n);return new M(o.subtract(a),o.add(a))},_update:function(e){var n=this._map;if(n){var o=this._clampZoom(n.getZoom());if(e===void 0&&(e=n.getCenter()),this._tileZoom!==void 0){var a,n=this._getTiledPixelBounds(e),h=this._pxBoundsToTileRange(n),c=h.getCenter(),p=[],n=this.options.keepBuffer,f=new M(h.getBottomLeft().subtract([n,-n]),h.getTopRight().add([n,-n]));if(!(isFinite(h.min.x)&&isFinite(h.min.y)&&isFinite(h.max.x)&&isFinite(h.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(a in this._tiles){var v=this._tiles[a].coords;v.z===this._tileZoom&&f.contains(new I(v.x,v.y))||(this._tiles[a].current=!1)}if(1<Math.abs(o-this._tileZoom))this._setView(e,o);else{for(var w=h.min.y;w<=h.max.y;w++)for(var b=h.min.x;b<=h.max.x;b++){var G,N=new I(b,w);N.z=this._tileZoom,this._isValidTile(N)&&((G=this._tiles[this._tileCoordsToKey(N)])?G.current=!0:p.push(N))}if(p.sort(function(vt,Zt){return vt.distanceTo(c)-Zt.distanceTo(c)}),p.length!==0){this._loading||(this._loading=!0,this.fire("loading"));for(var st=document.createDocumentFragment(),b=0;b<p.length;b++)this._addTile(p[b],st);this._level.el.appendChild(st)}}}}},_isValidTile:function(e){var n=this._map.options.crs;if(!n.infinite){var o=this._globalTileRange;if(!n.wrapLng&&(e.x<o.min.x||e.x>o.max.x)||!n.wrapLat&&(e.y<o.min.y||e.y>o.max.y))return!1}return!this.options.bounds||(n=this._tileCoordsToBounds(e),J(this.options.bounds).overlaps(n))},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var n=this._map,a=this.getTileSize(),o=e.scaleBy(a),a=o.add(a);return[n.unproject(o,e.z),n.unproject(a,e.z)]},_tileCoordsToBounds:function(e){return e=this._tileCoordsToNwSe(e),e=new Q(e[0],e[1]),e=this.options.noWrap?e:this._map.wrapLatLngBounds(e)},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(n){var n=n.split(":"),o=new I(+n[0],+n[1]);return o.z=+n[2],o},_removeTile:function(e){var n=this._tiles[e];n&&(ot(n.el),delete this._tiles[e],this.fire("tileunload",{tile:n.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){q(e,"leaflet-tile");var n=this.getTileSize();e.style.width=n.x+"px",e.style.height=n.y+"px",e.onselectstart=V,e.onmousemove=V,C.ielt9&&this.options.opacity<1&&Ht(e,this.options.opacity)},_addTile:function(e,n){var o=this._getTilePos(e),a=this._tileCoordsToKey(e),h=this.createTile(this._wrapCoords(e),S(this._tileReady,this,e));this._initTile(h),this.createTile.length<2&&$(S(this._tileReady,this,e,null,h)),ct(h,o),this._tiles[a]={el:h,coords:e,current:!0},n.appendChild(h),this.fire("tileloadstart",{tile:h,coords:e})},_tileReady:function(e,n,o){n&&this.fire("tileerror",{error:n,tile:o,coords:e});var a=this._tileCoordsToKey(e);(o=this._tiles[a])&&(o.loaded=+new Date,this._map._fadeAnimated?(Ht(o.el,0),at(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(o.active=!0,this._pruneTiles()),n||(q(o.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:o.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),C.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(S(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var n=new I(this._wrapX?Ut(e.x,this._wrapX):e.x,this._wrapY?Ut(e.y,this._wrapY):e.y);return n.z=e.z,n},_pxBoundsToTileRange:function(e){var n=this.getTileSize();return new M(e.min.unscaleBy(n).floor(),e.max.unscaleBy(n).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),oe=qe.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,n){this._url=e,(n=E(this,n)).detectRetina&&C.retina&&0<n.maxZoom?(n.tileSize=Math.floor(n.tileSize/2),n.zoomReverse?(n.zoomOffset--,n.minZoom=Math.min(n.maxZoom,n.minZoom+1)):(n.zoomOffset++,n.maxZoom=Math.max(n.minZoom,n.maxZoom-1)),n.minZoom=Math.max(0,n.minZoom)):n.zoomReverse?n.minZoom=Math.min(n.maxZoom,n.minZoom):n.maxZoom=Math.max(n.minZoom,n.maxZoom),typeof n.subdomains=="string"&&(n.subdomains=n.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,n){return this._url===e&&n===void 0&&(n=!0),this._url=e,n||this.redraw(),this},createTile:function(e,n){var o=document.createElement("img");return F(o,"load",S(this._tileOnLoad,this,n,o)),F(o,"error",S(this._tileOnError,this,n,o)),!this.options.crossOrigin&&this.options.crossOrigin!==""||(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(o.referrerPolicy=this.options.referrerPolicy),o.alt="",o.src=this.getTileUrl(e),o},getTileUrl:function(e){var n={r:C.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(e=this._globalTileRange.max.y-e.y,this.options.tms&&(n.y=e),n["-y"]=e),qi(this._url,k(n,this.options))},_tileOnLoad:function(e,n){C.ielt9?setTimeout(S(e,this,null,n),0):e(null,n)},_tileOnError:function(e,n,o){var a=this.options.errorTileUrl;a&&n.getAttribute("src")!==a&&(n.src=a),e(o,n)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,n=this.options.maxZoom;return(e=this.options.zoomReverse?n-e:e)+this.options.zoomOffset},_getSubdomain:function(e){return e=Math.abs(e.x+e.y)%this.options.subdomains.length,this.options.subdomains[e]},_abortLoading:function(){var e,n,o;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((o=this._tiles[e].el).onload=V,o.onerror=V,o.complete||(o.src=fe,n=this._tiles[e].coords,ot(o),delete this._tiles[e],this.fire("tileabort",{tile:o,coords:n})))},_removeTile:function(e){var n=this._tiles[e];if(n)return n.el.setAttribute("src",fe),qe.prototype._removeTile.call(this,e)},_tileReady:function(e,n,o){if(this._map&&(!o||o.getAttribute("src")!==fe))return qe.prototype._tileReady.call(this,e,n,o)}});function de(e,n){return new oe(e,n)}var Nn=oe.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(h,n){this._url=h;var o,a=k({},this.defaultWmsParams);for(o in n)o in this.options||(a[o]=n[o]);var h=(n=E(this,n)).detectRetina&&C.retina?2:1,c=this.getTileSize();a.width=c.x*h,a.height=c.y*h,this.wmsParams=a},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var n=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[n]=this._crs.code,oe.prototype.onAdd.call(this,e)},getTileUrl:function(e){var n=this._tileCoordsToNwSe(e),o=this._crs,o=K(o.project(n[0]),o.project(n[1])),n=o.min,o=o.max,n=(1.3<=this._wmsVersion&&this._crs===dn?[n.y,n.x,o.y,o.x]:[n.x,n.y,o.x,o.y]).join(","),o=oe.prototype.getTileUrl.call(this,e);return o+Vi(this.wmsParams,o,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+n},setParams:function(e,n){return k(this.wmsParams,e),n||this.redraw(),this}});oe.WMS=Nn,de.wms=function(e,n){return new Nn(e,n)};var Bt=Ct.extend({options:{padding:.1},initialize:function(e){E(this,e),P(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),q(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,n){var o=this._map.getZoomScale(n,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,n),h=h.multiplyBy(-o).add(a).subtract(this._map._getNewPixelOrigin(e,n));
vendor: 4,424 bytes, line 1
1C.any3d?be(this._container,h,o):ct(this._container,h)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,n=this._map.getSize(),o=this._map.containerPointToLayerPoint(n.multiplyBy(-e)).round();this._bounds=new M(o,o.add(n.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Nt=Bt.extend({options:{tolerance:0},getEvents:function(){var e=Bt.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Bt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");F(e,"mousemove",this._onMouseMove,this),F(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),F(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){at(this._redrawRequest),delete this._ctx,ot(this._container),tt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){var e,n,o,a;this._map._animatingZoom&&this._bounds||(Bt.prototype._update.call(this),e=this._bounds,n=this._container,o=e.getSize(),a=C.retina?2:1,ct(n,e.min),n.width=a*o.x,n.height=a*o.y,n.style.width=o.x+"px",n.style.height=o.y+"px",C.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update"))},_reset:function(){Bt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),e=(this._layers[P(e)]=e)._order={layer:e,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var o=e._order,n=o.next,o=o.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete e._order,delete this._layers[P(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray=="string"){for(var n,o=e.options.dashArray.split(/[, ]+/),a=[],h=0;h<o.length;h++){if(n=Number(o[h]),isNaN(n))return;a.push(n)}e.options._dashArray=a}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||$(this._redraw,this))},_extendRedrawBounds:function(e){var n;e._pxBounds&&(n=(e.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new M,this._redrawBounds.extend(e._pxBounds.min.subtract([n,n])),this._redrawBounds.extend(e._pxBounds.max.add([n,n])))},_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 e,n=this._redrawBounds;n?(e=n.getSize(),this._ctx.clearRect(n.min.x,n.min.y,e.x,e.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 e,n,o=this._redrawBounds;this._ctx.save(),o&&(n=o.getSize(),this._ctx.beginPath(),this._ctx.rect(o.min.x,o.min.y,n.x,n.y),this._ctx.clip()),this._drawing=!0;for(var a=this._drawFirst;a;a=a.next)e=a.layer,(!o||e._pxBounds&&e._pxBounds.intersects(o))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,n){if(this._drawing){var o,a,h,c,p=e._parts,f=p.length,v=this._ctx;if(f){for(v.beginPath(),o=0;o<f;o++){for(a=0,h=p[o].length;a<h;a++)c=p[o][a],v[a?"lineTo":"moveTo"](c.x,c.y);n&&v.closePath()}this._fillStroke(v,e)}}},_updateCircle:function(e){var n,o,a,h;this._drawing&&!e._empty()&&(n=e._point,o=this._ctx,a=Math.max(Math.round(e._radius),1),(h=(Math.max(Math.round(e._radiusY),1)||a)/a)!=1&&(o.save(),o.scale(1,h)),o.beginPath(),o.arc(n.x,n.y/h,a,0,2*Math.PI,!1),h!=1&&o.restore(
vendor: 5,717 bytes, line 1
1),this._fillStroke(o,e))},_fillStroke:function(e,n){var o=n.options;o.fill&&(e.globalAlpha=o.fillOpacity,e.fillStyle=o.fillColor||o.color,e.fill(o.fillRule||"evenodd")),o.stroke&&o.weight!==0&&(e.setLineDash&&e.setLineDash(n.options&&n.options._dashArray||[]),e.globalAlpha=o.opacity,e.lineWidth=o.weight,e.strokeStyle=o.color,e.lineCap=o.lineCap,e.lineJoin=o.lineJoin,e.stroke())},_onClick:function(e){for(var n,o,a=this._map.mouseEventToLayerPoint(e),h=this._drawFirst;h;h=h.next)(n=h.layer).options.interactive&&n._containsPoint(a)&&((e.type==="click"||e.type==="preclick")&&this._map._draggableMoved(n)||(o=n));this._fireEvent(!!o&&[o],e)},_onMouseMove:function(e){var n;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(n=this._map.mouseEventToLayerPoint(e),this._handleMouseHover(e,n))},_handleMouseOut:function(e){var n=this._hoveredLayer;n&&(it(this._container,"leaflet-interactive"),this._fireEvent([n],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,n){if(!this._mouseHoverThrottled){for(var o,a,h=this._drawFirst;h;h=h.next)(o=h.layer).options.interactive&&o._containsPoint(n)&&(a=o);a!==this._hoveredLayer&&(this._handleMouseOut(e),a&&(q(this._container,"leaflet-interactive"),this._fireEvent([a],e,"mouseover"),this._hoveredLayer=a)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(S(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,n,o){this._map._fireDOMEvent(n,o||n.type,e)},_bringToFront:function(e){var n,o,a=e._order;a&&(n=a.next,o=a.prev,n&&((n.prev=o)?o.next=n:n&&(this._drawFirst=n),a.prev=this._drawLast,(this._drawLast.next=a).next=null,this._drawLast=a,this._requestRedraw(e)))},_bringToBack:function(e){var n,o,a=e._order;a&&(n=a.next,(o=a.prev)&&((o.next=n)?n.prev=o:o&&(this._drawLast=o),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(e)))}});function mn(e){return C.canvas?new Nt(e):null}var Ge=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch{}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),vi={_initContainer:function(){this._container=x("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Bt.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var n=e._container=Ge("shape");q(n,"leaflet-vml-shape "+(this.options.className||"")),n.coordsize="1 1",e._path=Ge("path"),n.appendChild(e._path),this._updateStyle(e),this._layers[P(e)]=e},_addPath:function(e){var n=e._container;this._container.appendChild(n),e.options.interactive&&e.addInteractiveTarget(n)},_removePath:function(e){var n=e._container;ot(n),e.removeInteractiveTarget(n),delete this._layers[P(e)]},_updateStyle:function(e){var n=e._stroke,o=e._fill,a=e.options,h=e._container;h.stroked=!!a.stroke,h.filled=!!a.fill,a.stroke?(n=n||(e._stroke=Ge("stroke")),h.appendChild(n),n.weight=a.weight+"px",n.color=a.color,n.opacity=a.opacity,a.dashArray?n.dashStyle=ut(a.dashArray)?a.dashArray.join(" "):a.dashArray.replace(/( *, *)/g," "):n.dashStyle="",n.endcap=a.lineCap.replace("butt","flat"),n.joinstyle=a.lineJoin):n&&(h.removeChild(n),e._stroke=null),a.fill?(o=o||(e._fill=Ge("fill")),h.appendChild(o),o.color=a.fillColor||a.color,o.opacity=a.fillOpacity):o&&(h.removeChild(o),e._fill=null)},_updateCircle:function(e){var n=e._point.round(),o=Math.round(e._radius),a=Math.round(e._radiusY||o);this._setPath(e,e._empty()?"M0 0":"AL "+n.x+","+n.y+" "+o+","+a+" 0,23592600")},_setPath:function(e,n){e._path.v=n},_bringToFront:function(e){xe(e._container)},_bringToBack:function(e){we(e._container)}},Ke=C.vml?Ge:Pi,ke=Bt.extend({_initContainer:function(){this._container=Ke("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ke("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ot(this._container),tt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var e,n,o;this._map._animatingZoom&&this._bounds||(Bt.prototype._update.call(this),n=(e=this._bounds).getSize(),o=this._container,this._svgSize&&this._svgSize.equals(n)||(this._svgSize=n,o.setAttribute("width",n.x),o.setAttribute("height",n.y)),ct(o,e.min),o.setAttribute("viewBox",[e.min.x,e.min.y,n.x,n.y].join(" ")),this.fire("update"))},_initPath:function(e){var n=e._path=Ke("path");e.options.className&&q(n,e.options.className),e.options.interactive&&q(n,"leaflet-interactive"),this._updateStyle(e),this._layers[P(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){ot(e._path),e.removeInteractiveTarget(e._path),delete this._layers[P(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(o){var n=o._path,o=o.options;n&&(o.stroke?(n.setAttribute("stroke",o.color),n.setAttribute("stroke-opacity",o.opacity),n.setAttribute("stroke-width",o.weight),n.setAttribute("stroke-linecap",o.lineCap),n.setAttribute("stroke-linejoin",o.lineJoin),o.dashArray?n.setAttribute("stroke-dasharray",o.dashArray):n.removeAttribute("stroke-dasharray"),o.dashOffset?n.setAttribute("stroke-dashoffset",o.dashOffset):n.removeAttribute("stroke-dashoffset")):n.setAttribute("stroke","none"),o.fill?(n.setAttribute("fill",o.fillColor||o.color),n.setAttribute("fill-opacity",o.fillOpacity),n.setAttribute("fill-rule",o.fillRule||"evenodd")):n.setAttribute("fill","none"))},_updatePoly:function(e,n){this._setPath(e,Pn(e._parts,n))}
vendor: 1,082 bytes, line 1
1,_updateCircle:function(e){var a=e._point,n=Math.max(Math.round(e._radius),1),o="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",a=e._empty()?"M0 0":"M"+(a.x-n)+","+a.y+o+2*n+",0 "+o+2*-n+",0 ";this._setPath(e,a)},_setPath:function(e,n){e._path.setAttribute("d",n)},_bringToFront:function(e){xe(e._path)},_bringToBack:function(e){we(e._path)}});function Rn(e){return C.svg||C.vml?new ke(e):null}C.vml&&ke.include(vi),Z.include({getRenderer:function(e){return e=(e=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(e){var n;return e!=="overlayPane"&&e!==void 0&&((n=this._paneRenderers[e])===void 0&&(n=this._createRenderer({pane:e}),this._paneRenderers[e]=n),n)},_createRenderer:function(e){return this.options.preferCanvas&&mn(e)||Rn(e)}});var Dn=je.extend({initialize:function(e,n){je.prototype.initialize.call(this,this._boundsToLatLngs(e),n)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))}
vendor: 6,125 bytes, line 1
1,_boundsToLatLngs:function(e){return[(e=J(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});ke.create=Ke,ke.pointsToPath=Pn,ne.geometryToLayer=Ue,ne.coordsToLatLng=Ft,ne.coordsToLatLngs=Bi,ne.latLngToCoords=Ni,ne.latLngsToCoords=Kt,ne.getFeature=ze,ne.asFeature=mi,Z.mergeOptions({boxZoom:!0});var te=Mt.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){F(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){tt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ot(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(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),si(),Oe(),this._startPoint=this._map.mouseEventToContainerPoint(e),F(document,{contextmenu:B,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(n){this._moved||(this._moved=!0,this._box=x("div","leaflet-zoom-box",this._container),q(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(n);var n=new M(this._point,this._startPoint),o=n.getSize();ct(this._box,n.min),this._box.style.width=o.x+"px",this._box.style.height=o.y+"px"},_finish:function(){this._moved&&(ot(this._box),it(this._container,"leaflet-crosshair")),Mi(),on(),tt(document,{contextmenu:B,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){e.which!==1&&e.button!==1||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(S(this._resetState,this),0),e=new Q(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})))},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Fi=(Z.addInitHook("addHandler","boxZoom",te),Z.mergeOptions({doubleClickZoom:!0}),Mt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var n=this._map,a=n.getZoom(),o=n.options.zoomDelta,a=e.originalEvent.shiftKey?a-o:a+o;n.options.doubleClickZoom==="center"?n.setZoom(a):n.setZoomAround(e.containerPoint,a)}})),gt=(Z.addInitHook("addHandler","doubleClickZoom",Fi),Z.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),Mt.extend({addHooks:function(){var e;this._draggable||(e=this._map,this._draggable=new Jt(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))),q(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){it(this._map._container,"leaflet-grab"),it(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 e,n=this._map;n._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(e=J(this._map.options.maxBounds),this._offsetLimit=K(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,n.fire("movestart").fire("dragstart"),n.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){var n,o;this._map.options.inertia&&(n=this._lastTime=+new Date,o=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(o),this._times.push(n),this._prunePositions(n)),this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;1<this._positions.length&&50<e-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),n=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=n.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,n){return e-(e-n)*this._viscosity},_onPreDragLimit:function(){var e,n;this._viscosity&&this._offsetLimit&&(e=this._draggable._newPos.subtract(this._draggable._startPos),n=this._offsetLimit,e.x<n.min.x&&(e.x=this._viscousLimit(e.x,n.min.x)),e.y<n.min.y&&(e.y=this._viscousLimit(e.y,n.min.y)),e.x>n.max.x&&(e.x=this._viscousLimit(e.x,n.max.x)),e.y>n.max.y&&(e.y=this._viscousLimit(e.y,n.max.y)),this._draggable._newPos=this._draggable._startPos.add(e))},_onPreDragWrap:function(){var h=this._worldWidth,e=Math.round(h/2),n=this._initialWorldOffset,a=this._draggable._newPos.x,o=(a-e+n)%h+e-n,a=(a+e+n)%h-e-n,h=Math.abs(o+n)<Math.abs(a+n)?o:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=h},_onDragEnd:function(e){var n,o,a,h,c=this._map,p=c.options,f=!p.inertia||e.noInertia||this._times.length<2;c.fire("dragend",e),!f&&(this._prunePositions(+new Date),e=this._lastPos.subtract(this._positions[0]),f=(this._lastTime-this._times[0])/1e3,n=p.easeLinearity,f=(e=e.multiplyBy(n/f)).distanceTo([0,0]),o=Math.min(p.inertiaMaxSpeed,f),e=e.multiplyBy(o/f),a=o/(p.inertiaDeceleration*n),(h=e.multiplyBy(-a/2).round()).x||h.y)?(h=c._limitOffset(h,c.options.maxBounds),$(function(){c.panBy(h,{duration:a,easeLinearity:n,noMoveStart:!0,animate:!0})}
vendor: 9,310 bytes, line 1
1)):c.fire("moveend")}})),se=(Z.addInitHook("addHandler","dragging",gt),Z.mergeOptions({keyboard:!0,keyboardPanDelta:80}),Mt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),F(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),tt(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 e,n,o;this._focused||(o=document.body,e=document.documentElement,n=o.scrollTop||e.scrollTop,o=o.scrollLeft||e.scrollLeft,this._map._container.focus(),window.scrollTo(o,n))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){for(var n=this._panKeys={},o=this.keyCodes,a=0,h=o.left.length;a<h;a++)n[o.left[a]]=[-1*e,0];for(a=0,h=o.right.length;a<h;a++)n[o.right[a]]=[e,0];for(a=0,h=o.down.length;a<h;a++)n[o.down[a]]=[0,e];for(a=0,h=o.up.length;a<h;a++)n[o.up[a]]=[0,-1*e]},_setZoomDelta:function(e){for(var n=this._zoomKeys={},o=this.keyCodes,a=0,h=o.zoomIn.length;a<h;a++)n[o.zoomIn[a]]=e;for(a=0,h=o.zoomOut.length;a<h;a++)n[o.zoomOut[a]]=-e},_addHooks:function(){F(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){tt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var n,o,a=e.keyCode,h=this._map;if(a in this._panKeys)h._panAnim&&h._panAnim._inProgress||(o=this._panKeys[a],e.shiftKey&&(o=D(o).multiplyBy(3)),h.options.maxBounds&&(o=h._limitOffset(D(o),h.options.maxBounds)),h.options.worldCopyJump?(n=h.wrapLatLng(h.unproject(h.project(h.getCenter()).add(o))),h.panTo(n)):h.panBy(o));else if(a in this._zoomKeys)h.setZoom(h.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[a]);else{if(a!==27||!h._popup||!h._popup.options.closeOnEscapeKey)return;h.closePopup()}B(e)}}})),Wi=(Z.addInitHook("addHandler","keyboard",se),Z.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),Mt.extend({addHooks:function(){F(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){tt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var o=At(e),n=this._map.options.wheelDebounceTime,o=(this._delta+=o,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date),Math.max(n-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(S(this._performZoom,this),o),B(e)},_performZoom:function(){var e=this._map,n=e.getZoom(),o=this._map.options.zoomSnap||0,a=(e._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),a=4*Math.log(2/(1+Math.exp(-Math.abs(a))))/Math.LN2,o=o?Math.ceil(a/o)*o:a,a=e._limitZoom(n+(0<this._delta?o:-o))-n;this._delta=0,this._startTime=null,a&&(e.options.scrollWheelZoom==="center"?e.setZoom(n+a):e.setZoomAround(this._lastMousePos,n+a))}})),Rt=(Z.addInitHook("addHandler","scrollWheelZoom",Wi),Z.mergeOptions({tapHold:C.touchNative&&C.safari&&C.mobile,tapTolerance:15}),Mt.extend({addHooks:function(){F(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){tt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){var n;clearTimeout(this._holdTimeout),e.touches.length===1&&(n=e.touches[0],this._startPos=this._newPos=new I(n.clientX,n.clientY),this._holdTimeout=setTimeout(S(function(){this._cancel(),this._isTapValid()&&(F(document,"touchend",pt),F(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",n))},this),600),F(document,"touchend touchcancel contextmenu",this._cancel,this),F(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function e(){tt(document,"touchend",pt),tt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),tt(document,"touchend touchcancel contextmenu",this._cancel,this),tt(document,"touchmove",this._onMove,this)},_onMove:function(e){e=e.touches[0],this._newPos=new I(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,n){e=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY}),e._simulated=!0,n.target.dispatchEvent(e)}})),yi=(Z.addInitHook("addHandler","tapHold",Rt),Z.mergeOptions({touchZoom:C.touch,bounceAtZoomLimits:!0}),Mt.extend({addHooks:function(){q(this._map._container,"leaflet-touch-zoom"),F(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){it(this._map._container,"leaflet-touch-zoom"),tt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var n,o,a=this._map;!e.touches||e.touches.length!==2||a._animatingZoom||this._zooming||(n=a.mouseEventToContainerPoint(e.touches[0]),o=a.mouseEventToContainerPoint(e.touches[1]),this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),F(document,"touchmove",this._onTouchMove,this),F(document,"touchend touchcancel",this._onTouchEnd,this),pt(e))},_onTouchMove:function(e){if(e.touches&&e.touches.length===2&&this._zooming){var n=this._map,o=n.mouseEventToContainerPoint(e.touches[0]),a=n.mouseEventToContainerPoint(e.touches[1]),h=o.distanceTo(a)/this._startDist;if(this._zoom=n.getScaleZoom(h,this._startZoom),!n.options.bounceAtZoomLimits&&(this._zoom<n.getMinZoom()&&h<1||this._zoom>n.getMaxZoom()&&1<h)&&(this._zoom=n._limitZoom(this._zoom)),n.options.touchZoom==="center"){if(this._center=this._startLatLng,h==1)return}else{if(o=o._add(a)._divideBy(2)._subtract(this._centerPoint),h==1&&o.x===0&&o.y===0)return;this._center=n.unproject(n.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(n._moveStart(!0,!1),this._moved=!0),at(this._animRequest),a=S(n._move,n,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=$(a,this,!0),pt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,at(this._animRequest),tt(document,"touchmove",this._onTouchMove,this),tt(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}})),Ye=(Z.addInitHook("addHandler","touchZoom",yi),Z.BoxZoom=te,Z.DoubleClickZoom=Fi,Z.Drag=gt,Z.Keyboard=se,Z.ScrollWheelZoom=Wi,Z.TapHold=Rt,Z.TouchZoom=yi,d.Bounds=M,d.Browser=C,d.CRS=j,d.Canvas=Nt,d.Circle=_n,d.CircleMarker=We,d.Class=xt,d.Control=Tt,d.DivIcon=pn,d.DivOverlay=Qt,d.DomEvent=Ae,d.DomUtil=ge,d.Draggable=Jt,d.Evented=wt,d.FeatureGroup=U,d.GeoJSON=ne,d.GridLayer=qe,d.Handler=Mt,d.Icon=He,d.ImageOverlay=gi,d.LatLng=O,d.LatLngBounds=Q,d.Layer=Ct,d.LayerGroup=Me,d.LineUtil=_t,d.Map=Z,d.Marker=pi,d.Mixin=le,d.Path=ce,d.Point=I,d.PolyUtil=H,d.Polygon=je,d.Polyline=$t,d.Popup=Ve,d.PosAnimation=he,d.Projection=fi,d.Rectangle=Dn,d.Renderer=Bt,d.SVG=ke,d.SVGOverlay=Bn,d.TileLayer=oe,d.Tooltip=Hi,d.Transformation=bi,d.Util=Kn,d.VideoOverlay=fn,d.bind=S,d.bounds=K,d.canvas=mn,d.circle=function(e,n,o){return new _n(e,n,o)},d.circleMarker=function(e,n){return new We(e,n)},d.control=qt,d.divIcon=function(e){return new pn(e)},d.extend=k,d.featureGroup=function(e,n){return new U(e,n)},d.geoJSON=Ri,d.geoJson=Di,d.gridLayer=function(e){return new qe(e)},d.icon=function(e){return new He(e)},d.imageOverlay=function(e,n,o){return new gi(e,n,o)},d.latLng=z,d.latLngBounds=J,d.layerGroup=function(e,n){return new Me(e,n)},d.map=function(e,n){return new Z(e,n)},d.marker=function(e,n){return new pi(e,n)},d.point=D,d.polygon=function(e,n){return new je(e,n)},d.polyline=function(e,n){return new $t(e,n)},d.popup=function(e,n){return new Ve(e,n)},d.rectangle=function(e,n){return new Dn(e,n)},d.setOptions=E,d.stamp=P,d.svg=Rn,d.svgOverlay=function(e,n,o){return new Bn(e,n,o)},d.tileLayer=de,d.tooltip=function(e,n){return new Hi(e,n)},d.transformation=pe,d.version="1.9.4",d.videoOverlay=function(e,n,o){return new fn(e,n,o)},window.L);d.noConflict=function(){return window.L=Ye,this},window.L=d})});var Co=io((Ls,So)=>{So.exports=window.wp.i18n});var Eo=io((qn,Zo)=>{(function(d,k){typeof qn=="object"&&typeof Zo<"u"?k(qn):typeof define=="function"&&define.amd?define(["exports"],k):(d=typeof globalThis<"u"?globalThis:d||self,k(d.leaflet={}))})(qn,function(d){"use strict";var k="1.9.4";function R(t){var i,s,r,l;for(s=1,r=arguments.length;s<r;s++){l=arguments[s];for(i in l)t[i]=l[i]}return t}var ht=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function S(t,i){var s=Array.prototype.slice;
1if(t.bind)return t.bind.apply(t,s.call(arguments,1));var r=s.call(arguments,2);return function(){return t.apply(i,r.length?r.concat(s.call(arguments)):arguments)}}var Ce=0;function P(t){return"_leaflet_id"in t||(t._leaflet_id=++Ce),t._leaflet_id}function jt(t,i,s){var r,l,u,_;return _=function(){r=!1,l&&(u.apply(s,l),l=!1)},u=function(){r?l=arguments:(t.apply(s,arguments),setTimeout(_,i),r=!0)},u}function Ut(t,i,s){var r=i[1],l=i[0],u=r-l;return t===r&&s?t:((t-l)%u+u)%u+l}function V(){return!1}function ft(t,i){if(i===!1)return t;var s=Math.pow(10,i===void 0?6:i);return Math.round(t*s)/s}function Xe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Et(t){return Xe(t).split(/\s+/)}function E(t,i){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?ht(t.options):{});for(var s in i)t.options[s]=i[s];return t.options}function Vi(t,i,s){var r=[];for(var l in t)r.push(encodeURIComponent(s?l.toUpperCase():l)+"="+encodeURIComponent(t[l]));return(!i||i.indexOf("?")===-1?"?":"&")+r.join("&")}var Gn=/\{ *([\w_ -]+) *\}/g;function qi(t,i){return t.replace(Gn,function(s,r){var l=i[r];if(l===void 0)throw new Error("No value provided for variable "+s);return typeof l=="function"&&(l=l(i)),l})}var ut=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function Je(t,i){for(var s=0;s<t.length;s++)if(t[s]===i)return s;return-1}var fe="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function $e(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var Gi=0;function Ki(t){var i=+new Date,s=Math.max(0,16-(i-Gi));return Gi=i+s,window.setTimeout(t,s)}var Qe=window.requestAnimationFrame||$e("RequestAnimationFrame")||Ki,Yi=window.cancelAnimationFrame||$e("CancelAnimationFrame")||$e("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function $(t,i,s){if(s&&Qe===Ki)t.call(i);else return Qe.call(window,S(t,i))}function at(t){t&&Yi.call(window,t)}var Kn={__proto__:null,extend:R,create:ht,bind:S,get lastId(){return Ce},stamp:P,throttle:jt,wrapNum:Ut,falseFn:V,formatNum:ft,trim:Xe,splitWords:Et,setOptions:E,getParamString:Vi,template:qi,isArray:ut,indexOf:Je,emptyImageUrl:fe,requestFn:Qe,cancelFn:Yi,requestAnimFrame:$,cancelAnimFrame:at};function xt(){}xt.extend=function(t){var i=function(){E(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},s=i.__super__=this.prototype,r=ht(s);r.constructor=i,i.prototype=r;for(var l in this)Object.prototype.hasOwnProperty.call(this,l)&&l!=="prototype"&&l!=="__super__"&&(i[l]=this[l]);return t.statics&&R(i,t.statics),t.includes&&(Ot(t.includes),R.apply(null,[r].concat(t.includes))),R(r,t),delete r.statics,delete r.includes,r.options&&(r.options=s.options?ht(s.options):{},R(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){s.callInitHooks&&s.callInitHooks.call(this),this._initHooksCalled=!0;for(var u=0,_=r._initHooks.length;u<_;u++)r._initHooks[u].call(this)}},i},xt.include=function(t){var i=this.prototype.options;return R(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},xt.mergeOptions=function(t){return R(this.prototype.options,t),this},xt.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),s=typeof t=="function"?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(s),this};function Ot(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=ut(t)?t:[t];for(var i=0;i<t.length;
1i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var wt={on:function(t,i,s){if(typeof t=="object")for(var r in t)this._on(r,t[r],i);else{t=Et(t);for(var l=0,u=t.length;l<u;l++)this._on(t[l],i,s)}return this},off:function(t,i,s){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var r in t)this._off(r,t[r],i);else{t=Et(t);for(var l=arguments.length===1,u=0,_=t.length;u<_;u++)l?this._off(t[u]):this._off(t[u],i,s)}return this},_on:function(t,i,s,r){if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,s)===!1){s===this&&(s=void 0);var l={fn:i,ctx:s};r&&(l.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(l)}},_off:function(t,i,s){var r,l,u;if(this._events&&(r=this._events[t],!!r)){if(arguments.length===1){if(this._firingCount)for(l=0,u=r.length;l<u;l++)r[l].fn=V;delete this._events[t];return}if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}var _=this._listens(t,i,s);if(_!==!1){var m=r[_];this._firingCount&&(m.fn=V,this._events[t]=r=r.slice()),r.splice(_,1)}}},fire:function(t,i,s){if(!this.listens(t,s))return this;var r=R({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var l=this._events[t];if(l){this._firingCount=this._firingCount+1||1;for(var u=0,_=l.length;u<_;u++){var m=l[u],g=m.fn;m.once&&this.off(t,g,m.ctx),g.call(m.ctx||this,r)}this._firingCount--}}return s&&this._propagateEvent(r),this},listens:function(t,i,s,r){typeof t!="string"&&console.warn('"string" type argument expected');var l=i;typeof i!="function"&&(r=!!i,l=void 0,s=void 0);var u=this._events&&this._events[t];if(u&&u.length&&this._listens(t,l,s)!==!1)return!0;if(r){for(var _ in this._eventParents)if(this._eventParents[_].listens(t,i,s,r))return!0}return!1},_listens:function(t,i,s){if(!this._events)return!1;var r=this._events[t]||[];if(!i)return!!r.length;s===this&&(s=void 0);for(var l=0,u=r.length;l<u;l++)if(r[l].fn===i&&r[l].ctx===s)return l;return!1},once:function(t,i,s){if(typeof t=="object")for(var r in t)this._on(r,t[r],i,!0);else{t=Et(t);for(var l=0,u=t.length;l<u;l++)this._on(t[l],i,s,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[P(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[P(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,R({layer:t.target,propagatedFrom:t.target},t),!0)}};wt.addEventListener=wt.on,wt.removeEventListener=wt.clearAllEventListeners=wt.off,wt.addOneTimeEventListener=wt.once,wt.fireEvent=wt.fire,wt.hasEventListeners=wt.listens;var I=xt.extend(wt);function W(t,i,s){this.x=s?Math.round(t):t,this.y=s?Math.round(i):i}var D=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};W.prototype={clone:function(){return new W(this.x,this.y)},add:function(t){return this.clone()._add(M(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(M(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 W(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new W(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=D(this.x),this.y=D(this.y),this},distanceTo:function(t){t=M(t);var i=t.x-this.x,s=t.y-this.y;return Math.sqrt(i*i+s*s)},equals:function(t){return t=M(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=M(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+ft(this.x)+", "+ft(this.y)+")"}};function M(t,i,s){return t instanceof W?t:ut(t)?new W(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new W(t.x,t.y):new W(t,i,s)}function K(t,i){if(t)for(var s=i?[t,i]:t,r=0,l=s.length;r<l;r++)this.extend(s[r])}K.prototype={extend:function(t){var i,s;if(!t)return this;if(t instanceof W||typeof t[0]=="number"||"x"in t)i=s=M(t);else if(t=Q(t),i=t.min,s=t.max,!i||!s)return this;return!this.min&&!this.max?(this.min=i.clone(),this.max=s.clone()):(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(s.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(s.y,this.max.y)),this},getCenter:function(t){return M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return M(this.min.x,this.max.y)},getTopRight:function(){return M(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,s;return typeof t[0]=="number"||t instanceof W?t=M(t):t=Q(t),t instanceof K?(i=t.min,s=t.max):i=s=t,i.x>=this.min.x&&s.x<=this.max.x&&i.y>=this.min.y&&s.y<=this.max.y},intersects:function(t){t=Q(t);var i=this.min,s=this.max,r=t.min,l=t.max,u=l.x>=i.x&&r.x<=s.x,_=l.y>=i.y&&r.y<=s.y;return u&&_},overlaps:function(t){t=Q(t);var i=this.min,s=this.max,r=t.min,l=t.max,u=l.x>i.x&&r.x<s.x,_=l.y>i.y&&r.y<s.y;return u&&_},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,s=this.max,r=Math.abs(i.x-s.x)*t,l=Math.abs(i.y-s.y)*t;return Q(M(i.x-r,i.y-l),M(s.x+r,s.y+l))},equals:function(t){return t?(t=Q(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function Q(t,i){return!t||t instanceof K?t:new K(t,i)}function J(t,i){if(t)for(var s=i?[t,i]:t,r=0,l=s.length;r<l;r++)this.extend(s[r])}J.prototype={extend:function(t){var i=this._southWest,s=this._northEast,r,l;if(t instanceof z)r=t,l=t;else if(t instanceof J){if(r=t._southWest,l=t._northEast,!r||!l)return this}else return t?this.extend(j(t)||O(t)):this;return!i&&!s?(this._southWest=new z(r.lat,r.lng),this._northEast=new z(l.lat,l.lng)):(i.lat=Math.min(r.lat,i.lat),i.lng=Math.min(r.lng,i.lng),s.lat=Math.max(l.lat,s.lat),s.lng=Math.max(l.lng,s.lng)),this},pad:function(t){var i=this._southWest,s=this._northEast,r=Math.abs(i.lat-s.lat)*t,l=Math.abs(i.lng-s.lng)*t;
1return new J(new z(i.lat-r,i.lng-l),new z(s.lat+r,s.lng+l))},getCenter:function(){return new z((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 z(this.getNorth(),this.getWest())},getSouthEast:function(){return new z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof z||"lat"in t?t=j(t):t=O(t);var i=this._southWest,s=this._northEast,r,l;return t instanceof J?(r=t.getSouthWest(),l=t.getNorthEast()):r=l=t,r.lat>=i.lat&&l.lat<=s.lat&&r.lng>=i.lng&&l.lng<=s.lng},intersects:function(t){t=O(t);var i=this._southWest,s=this._northEast,r=t.getSouthWest(),l=t.getNorthEast(),u=l.lat>=i.lat&&r.lat<=s.lat,_=l.lng>=i.lng&&r.lng<=s.lng;return u&&_},overlaps:function(t){t=O(t);
1var i=this._southWest,s=this._northEast,r=t.getSouthWest(),l=t.getNorthEast(),u=l.lat>i.lat&&r.lat<s.lat,_=l.lng>i.lng&&r.lng<s.lng;return u&&_},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return t?(t=O(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function O(t,i){return t instanceof J?t:new J(t,i)}function z(t,i,s){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,s!==void 0&&(this.alt=+s)}z.prototype={equals:function(t,i){if(!t)return!1;t=j(t);var s=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return s<=(i===void 0?1e-9:i)},toString:function(t){return"LatLng("+ft(this.lat,t)+", "+ft(this.lng,t)+")"},distanceTo:function(t){return bt.distance(this,j(t))},wrap:function(){return bt.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,s=i/Math.cos(Math.PI/180*this.lat);return O([this.lat-i,this.lng-s],[this.lat+i,this.lng+s])},clone:function(){return new z(this.lat,this.lng,this.alt)}};function j(t,i,s){return t instanceof z?t:ut(t)&&typeof t[0]!="object"?t.length===3?new z(t[0],t[1],t[2]):t.length===2?new z(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new z(t.lat,"lng"in t?t.lng:t.lon,t.alt):i===void 0?null:new z(t,i,s)}var Pt={latLngToPoint:function(t,i){var s=this.projection.project(t),r=this.scale(i);return this.transformation._transform(s,r)},pointToLatLng:function(t,i){var s=this.scale(i),r=this.transformation.untransform(t,s);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,s=this.scale(t),r=this.transformation.transform(i.min,s),l=this.transformation.transform(i.max,s);return new K(r,l)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?Ut(t.lng,this.wrapLng,!0):t.lng,s=this.wrapLat?Ut(t.lat,this.wrapLat,!0):t.lat,r=t.alt;return new z(s,i,r)},wrapLatLngBounds:function(t){var i=t.getCenter(),s=this.wrapLatLng(i),r=i.lat-s.lat,l=i.lng-s.lng;if(r===0&&l===0)return t;
1var u=t.getSouthWest(),_=t.getNorthEast(),m=new z(u.lat-r,u.lng-l),g=new z(_.lat-r,_.lng-l);return new J(m,g)}},bt=R({},Pt,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var s=Math.PI/180,r=t.lat*s,l=i.lat*s,u=Math.sin((i.lat-t.lat)*s/2),_=Math.sin((i.lng-t.lng)*s/2),m=u*u+Math.cos(r)*Math.cos(l)*_*_,g=2*Math.atan2(Math.sqrt(m),Math.sqrt(1-m));return this.R*g}}),bi=6378137,pe={R:bi,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,s=this.MAX_LATITUDE,r=Math.max(Math.min(s,t.lat),-s),l=Math.sin(r*i);return new W(this.R*t.lng*i,this.R*Math.log((1+l)/(1-l))/2)},unproject:function(t){var i=180/Math.PI;return new z((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=bi*Math.PI;return new K([-t,-t],[t,t])}()};function me(t,i,s,r){if(ut(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=i,this._c=s,this._d=r}me.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new W((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function ti(t,i,s,r){return new me(t,i,s,r)}var Pi=R({},bt,{code:"EPSG:3857",projection:pe,transformation:function(){var t=.5/(Math.PI*pe.R);return ti(t,.5,-t,.5)}()}),Pn=R({},Pi,{code:"EPSG:900913"});function ge(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ei(t,i){var s="",r,l,u,_,m,g;for(r=0,u=t.length;r<u;r++){for(m=t[r],l=0,_=m.length;l<_;l++)g=m[l],s+=(l?"L":"M")+g.x+" "+g.y;s+=i?x.svg?"z":"x":""}return s||"M0 0"}var ve=document.documentElement.style,ii="ActiveXObject"in window,Yn=ii&&!document.addEventListener,Ln="msLaunchUri"in navigator&&!("documentMode"in document),Xi=kt("webkit"),Tn=kt("android"),Mn=kt("android 2")||kt("android 3"),Xn=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ji=Tn&&kt("Google")&&Xn<537&&!("AudioNode"in window),Ze=!!window.opera,Vt=!Ln&&kt("chrome"),C=kt("gecko")&&!Xi&&!Ze&&!ii,zn=!Vt&&kt("safari"),$i=kt("phantom"),Qi="OTransition"in ve,kn=navigator.platform.indexOf("Win")===0,Li=ii&&"transition"in ve,Ti="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Mn,ye="MozPerspective"in ve,Sn=!window.L_DISABLE_3D&&(Li||Ti||ye)&&!Qi&&!$i,ni=typeof orientation<"u"||kt("mobile"),Jn=ni&&Xi,$n=ni&&Ti,tn=!window.PointerEvent&&window.MSPointerEvent,oi=!!(window.PointerEvent||tn),Cn="ontouchstart"in window||!!window.TouchEvent,Qn=!window.L_NO_TOUCH&&(Cn||oi),en=ni&&Ze,Ee=ni&&C,si=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Mi=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",V,i),window.removeEventListener("testPassiveEventSupport",V,i)}catch{}return t}(),zi=function(){return!!document.createElement("canvas").getContext}(),ri=!!(document.createElementNS&&ge("svg").createSVGRect),nn=!!ri&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),ai=!ri&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),Zn=navigator.platform.indexOf("Mac")===0,En=navigator.platform.indexOf("Linux")===0;function kt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var x={ie:ii,ielt9:Yn,edge:Ln,webkit:Xi,android:Tn,android23:Mn,androidStock:Ji,opera:Ze,chrome:Vt,gecko:C,safari:zn,phantom:$i,opera12:Qi,win:kn,ie3d:Li,webkit3d:Ti,gecko3d:ye,any3d:Sn,mobile:ni,mobileWebkit:Jn,mobileWebkit3d:$n,msPointer:tn,pointer:oi,touch:Qn,touchNative:Cn,mobileOpera:en,mobileGecko:Ee,retina:si,passiveEvents:Mi,canvas:zi,svg:ri,vml:ai,inlineSvg:nn,mac:Zn,linux:En},ot=x.msPointer?"MSPointerDown":"pointerdown",hi=x.msPointer?"MSPointerMove":"pointermove",xe=x.msPointer?"MSPointerUp":"pointerup",we=x.msPointer?"MSPointerCancel":"pointercancel",li={touchstart:ot,touchmove:hi,touchend:xe,touchcancel:we},q={touchstart:on,touchmove:Oe,touchend:Oe,touchcancel:Oe},it={},ki=!1;function Si(t,i,s){return i==="touchstart"&&Pe(),q[i]?(s=q[i].bind(this,s),t.addEventListener(li[i],s,!1),s):(console.warn("wrong event specified:",i),V
1)}function Ht(t,i,s){if(!li[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(li[i],s,!1)}function Ci(t){it[t.pointerId]=t}function be(t){it[t.pointerId]&&(it[t.pointerId]=t)}function ct(t){delete it[t.pointerId]}function Pe(){ki||(document.addEventListener(ot,Ci,!0),document.addEventListener(hi,be,!0),document.addEventListener(xe,ct,!0),document.addEventListener(we,ct,!0),ki=!0)}function Oe(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var s in it)i.touches.push(it[s]);i.changedTouches=[i],t(i)}}function on(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&_t(i),Oe(t,i)}function sn(t){var i={},s,r;for(r in t)s=t[r],i[r]=s&&s.bind?s.bind(t):s;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Zi=200;function On(t,i){t.addEventListener("dblclick",i);var s=0,r;function l(u){if(u.detail!==1){r=u.detail;return}if(!(u.pointerType==="mouse"||u.sourceCapabilities&&!u.sourceCapabilities.firesTouchEvents)){var _=ue(u);if(!(_.some(function(g){return g instanceof HTMLLabelElement&&g.attributes.for})&&!_.some(function(g){return g instanceof HTMLInputElement||g instanceof HTMLSelectElement}))){var m=Date.now();m-s<=Zi?(r++,r===2&&i(sn(u))):r=1,s=m}}}return t.addEventListener("click",l),{dblclick:i,simDblclick:l}}function rn(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}var F=Ae(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),St=Ae(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),tt=St==="webkitTransition"||St==="OTransition"?St+"End":"transitionend";function an(t){return typeof t=="string"?document.getElementById(t):t}function Le(t,i){var s=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!s||s==="auto")&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);s=r?r[i]:null}return s==="auto"?null:s}function X(t,i,s){var r=document.createElement(t);return r.className=i||"",s&&s.appendChild(r),r}function nt(t){var i=t.parentNode;i&&i.removeChild(t)}function Yt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ae(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function Xt(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function pt(t,i){if(t.classList!==void 0)return t.classList.contains(i);var s=Oi(t);return s.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(s)}function B(t,i){if(t.classList!==void 0)for(var s=Et(i),r=0,l=s.length;r<l;r++)t.classList.add(s[r]);else if(!pt(t,i)){var u=Oi(t);Ei(t,(u?u+" ":"")+i)}}function lt(t,i){t.classList!==void 0?t.classList.remove(i):Ei(t,Xe((" "+Oi(t)+" ").replace(" "+i+" "," ")))}function Ei(t,i){t.className.baseVal===void 0?t.className=i:t.className.baseVal=i}function Oi(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function At(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&hn(t,i)}function hn(t,i){var s=!1,r="DXImageTransform.Microsoft.Alpha";try{s=t.filters.item(r)}catch{if(i===1)return}i=Math.round(i*100),s?(s.Enabled=i!==100,s.Opacity=i):t.style.filter+=" progid:"+r+"(opacity="+i+")"}function Ae(t){for(var i=document.documentElement.style,s=0;s<t.length;s++)if(t[s]in i)return t[s];return!1}function he(t,i,s){var r=i||new W(0,0);t.style[F]=(x.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(s?" scale("+s+")":"")}
1function Z(t,i){t._leaflet_pos=i,x.any3d?he(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function qt(t){return t._leaflet_pos||new W(0,0)}var Tt,Ie,ui;if("onselectstart"in document)Tt=function(){H(window,"selectstart",_t)},Ie=function(){et(window,"selectstart",_t)};else{var Be=Ae(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Tt=function(){if(Be){var t=document.documentElement.style;ui=t[Be],t[Be]="none"}},Ie=function(){Be&&(document.documentElement.style[Be]=ui,ui=void 0)}}function ci(){H(window,"dragstart",_t)}function Mt(){et(window,"dragstart",_t)}var le,Ai;function Jt(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(di(),le=t,Ai=t.style.outlineStyle,t.style.outlineStyle="none",H(window,"keydown",di))}function di(){le&&(le.style.outlineStyle=Ai,le=void 0,Ai=void 0,et(window,"keydown",di))}function ln(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function _i(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var An={__proto__:null,TRANSFORM:F,TRANSITION:St,TRANSITION_END:tt,get:an,getStyle:Le,create:X,remove:nt,empty:Yt,toFront:ae,toBack:Xt,hasClass:pt,addClass:B,removeClass:lt,setClass:Ei,getClass:Oi,setOpacity:At,testProp:Ae,setTransform:he,setPosition:Z,getPosition:qt,get disableTextSelection(){return Tt},get enableTextSelection(){return Ie},disableImageDrag:ci,enableImageDrag:Mt,preventOutline:Jt,restoreOutline:di,getSizedParentNode:ln,getScale:_i};function H(t,i,s,r){if(i&&typeof i=="object")for(var l in i)ie(t,l,i[l],s);else{i=Et(i);for(var u=0,_=i.length;u<_;u++)ie(t,i[u],s,r)}return this}var Gt="_leaflet_events";function et(t,i,s,r){if(arguments.length===1)un(t),delete t[Gt];else if(i&&typeof i=="object")for(var l in i)Te(t,l,i[l],s);else if(i=Et(i),arguments.length===2)un(t,function(m){return Je(i,m)!==-1});else for(var u=0,_=i.length;u<_;u++)Te(t,i[u],s,r);return this}function un(t,i){for(var s in t[Gt]){var r=s.split(/\d/)[0];(!i||i(r))&&Te(t,r,null,null,s)}}
1var Ne={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ie(t,i,s,r){var l=i+P(s)+(r?"_"+P(r):"");if(t[Gt]&&t[Gt][l])return this;var u=function(m){return s.call(r||t,m||window.event)},_=u;!x.touchNative&&x.pointer&&i.indexOf("touch")===0?u=Si(t,i,u):x.touch&&i==="dblclick"?u=On(t,u):"addEventListener"in t?i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"?t.addEventListener(Ne[i]||i,u,x.passiveEvents?{passive:!1}:!1):i==="mouseenter"||i==="mouseleave"?(u=function(m){m=m||window.event,De(t,m)&&_(m)},t.addEventListener(Ne[i],u,!1)):t.addEventListener(i,_,!1):t.attachEvent("on"+i,u),t[Gt]=t[Gt]||{},t[Gt][l]=u}function Te(t,i,s,r,l){l=l||i+P(s)+(r?"_"+P(r):"");var u=t[Gt]&&t[Gt][l];if(!u)return this;!x.touchNative&&x.pointer&&i.indexOf("touch")===0?Ht(t,i,u):x.touch&&i==="dblclick"?rn(t,u):"removeEventListener"in t?t.removeEventListener(Ne[i]||i,u,!1):t.detachEvent("on"+i,u),t[Gt][l]=null}function mt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ii(t){return ie(t,"wheel",mt),this}function Re(t){return H(t,"mousedown touchstart dblclick contextmenu",mt),t._leaflet_disable_click=!0,this}function _t(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function It(t){return _t(t),mt(t),this}function ue(t){if(t.composedPath)return t.composedPath();for(var i=[],s=t.target;s;)i.push(s),s=s.parentNode;return i}function fi(t,i){if(!i)return new W(t.clientX,t.clientY);var s=_i(i),r=s.boundingClientRect;return new W((t.clientX-r.left)/s.x-i.clientLeft,(t.clientY-r.top)/s.y-i.clientTop)}var cn=x.linux&&x.chrome?window.devicePixelRatio:x.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function dn(t){return x.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/cn:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function De(t,i){var s=i.relatedTarget;if(!s)return!0;try{for(;s&&s!==t;)s=s.parentNode}catch{return!1}return s!==t}var Ct={__proto__:null,on:H,off:et,stopPropagation:mt,disableScrollPropagation:Ii,disableClickPropagation:Re,preventDefault:_t,stop:It,getPropagationPath:ue,getMousePosition:fi,getWheelDelta:dn,isExternalTarget:De,addListener:H,removeListener:et},Me=I.extend({run:function(t,i,s,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=s||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=qt(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=$(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,s=this._duration*1e3;i<s?this._runFrame(this._easeOut(i/s),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var s=this._startPos.add(this._offset.multiplyBy(t));i&&s._round(),Z(this._el,s),this.fire("step")},_complete:function(){at(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),U=I.extend({options:{crs:Pi,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=E(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=S(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),i.zoom!==void 0&&(this._zoom=this._limitZoom(i.zoom)),i.center&&i.zoom!==void 0&&this.setView(j(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=St&&x.any3d&&!x.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),H(this._proxy,tt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 6,818 bytes, line 1
1,setView:function(t,i,s){if(i=i===void 0?this._zoom:this._limitZoom(i),t=this._limitCenter(j(t),i,this.options.maxBounds),s=s||{},this._stop(),this._loaded&&!s.reset&&s!==!0){s.animate!==void 0&&(s.zoom=R({animate:s.animate},s.zoom),s.pan=R({animate:s.animate,duration:s.duration},s.pan));var r=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,s.zoom):this._tryAnimatedPan(t,s.pan);if(r)return clearTimeout(this._sizeTimer),this}return this._resetView(t,i,s.pan&&s.pan.noMoveStart),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(x.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(x.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,s){var r=this.getZoomScale(i),l=this.getSize().divideBy(2),u=t instanceof W?t:this.latLngToContainerPoint(t),_=u.subtract(l).multiplyBy(1-1/r),m=this.containerPointToLatLng(l.add(_));return this.setView(m,i,{zoom:s})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():O(t);var s=M(i.paddingTopLeft||i.padding||[0,0]),r=M(i.paddingBottomRight||i.padding||[0,0]),l=this.getBoundsZoom(t,!1,s.add(r));if(l=typeof i.maxZoom=="number"?Math.min(i.maxZoom,l):l,l===1/0)return{center:t.getCenter(),zoom:l};var u=r.subtract(s).divideBy(2),_=this.project(t.getSouthWest(),l),m=this.project(t.getNorthEast(),l),g=this.unproject(_.add(m).divideBy(2).add(u),l);return{center:g,zoom:l}},fitBounds:function(t,i){if(t=O(t),!t.isValid())throw new Error("Bounds are not valid.");var s=this._getBoundsCenterZoom(t,i);return this.setView(s.center,s.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=M(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Me,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),i.animate!==!1){B(this._mapPane,"leaflet-pan-anim");var s=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,s,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,s){if(s=s||{},s.animate===!1||!x.any3d)return this.setView(t,i,s);this._stop();var r=this.project(this.getCenter()),l=this.project(t),u=this.getSize(),_=this._zoom;t=j(t),i=i===void 0?_:i;var m=Math.max(u.x,u.y),g=m*this.getZoomScale(_,i),y=l.distanceTo(r)||1,T=1.42,A=T*T;function Y(yt){var Un=yt?-1:1,ts=yt?g:m,es=g*g-m*m+Un*A*A*y*y,is=2*ts*A*y,eo=es/is,To=Math.sqrt(eo*eo+1)-eo,ns=To<1e-9?-18:Math.log(To);return ns}function Dt(yt){return(Math.exp(yt)-Math.exp(-yt))/2}function Lt(yt){return(Math.exp(yt)+Math.exp(-yt))/2}function ee(yt){return Dt(yt)/Lt(yt)}var Wt=Y(0);function Ui(yt){return m*(Lt(Wt)/Lt(Wt+T*yt))}function Xo(yt){return m*(Lt(Wt)*ee(Wt+T*yt)-Dt(Wt))/A}function Jo(yt){return 1-Math.pow(1-yt,1.5)}var $o=Date.now(),Po=(Y(1)-Wt)/T,Qo=s.duration?1e3*s.duration:1e3*Po*.8;function Lo(){var yt=(Date.now()-$o)/Qo,Un=Jo(yt)*Po;yt<=1?(this._flyToFrame=$(Lo,this),this._move(this.unproject(r.add(l.subtract(r).multiplyBy(Xo(Un)/y)),_),this.getScaleZoom(m/Ui(Un),_),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}return this._moveStart(!0,s.noMoveStart),Lo.call(this),this},flyToBounds:function(t,i){var s=this._getBoundsCenterZoom(t,i);return this.flyTo(s.center,s.zoom,i)},setMaxBounds:function(t){return t=O(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var s=this.getCenter(),r=this._limitCenter(s,this._zoom,O(t));return s.equals(r)||this.panTo(r,i),this._enforcingBounds=!1,this},panInside:function(t,i){i=i||{};var s=M(i.paddingTopLeft||i.padding||[0,0]),r=M(i.paddingBottomRight||i.padding||[0,0]),l=this.project(this.getCenter()),u=this.project(t),_=this.getPixelBounds(),m=Q([_.min.add(s),_.max.subtract(r)]),g=m.getSize();if(!m.contains(u)){this._enforcingBounds=!0;var y=u.subtract(m.getCenter()),T=m.extend(u).getSize().subtract(g);l.x+=y.x<0?-T.x:T.x,l.y+=y.y<0?-T.y:T.y,this.panTo(this.unproject(l),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=R({animate:!1,pan:!0},t===!0?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var s=this.getSize(),r=i.divideBy(2).round(),l=s.divideBy(2).round(),u=r.subtract(l);return!u.x&&!u.y?this:(t.animate&&t.pan?this.panBy(u):(t.pan&&this._rawPanBy(u),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(S(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:s}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=R({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=S(this._handleGeolocationResponse,this),s=S(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,s,t):navigator.geolocation.getCurrentPosition(i,s,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var i=t.code,s=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+s+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,s=t.coords.longitude,r=new z(i,s),l=r.toBounds(t.coords.accuracy*2),u=this._locateOptions;if(u.setView){var _=this.getBoundsZoom(l);this.setView(r,u.maxZoom?Math.min(_,u.maxZoom):_)}
1var m={latlng:r,bounds:l,timestamp:t.timestamp};for(var g in t.coords)typeof t.coords[g]=="number"&&(m[g]=t.coords[g]);this.fire("locationfound",m)}},addHandler:function(t,i){if(!i)return this;var s=this[t]=new i(this);return this._handlers.push(s),this.options[t]&&s.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),nt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(at(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)nt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var s="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),r=X("div",s,i||this._mapPane);return t&&(this._panes[t]=r),r},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),s=this.unproject(t.getTopRight());return new J(i,s)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,s){t=O(t),s=M(s||[0,0]);var r=this.getZoom()||0,l=this.getMinZoom(),u=this.getMaxZoom(),_=t.getNorthWest(),m=t.getSouthEast(),g=this.getSize().subtract(s),y=Q(this.project(m,r),this.project(_,r)).getSize(),T=x.any3d?this.options.zoomSnap:1,A=g.x/y.x,Y=g.y/y.y,Dt=i?Math.max(A,Y):Math.min(A,Y);return r=this.getScaleZoom(Dt,r),T&&(r=Math.round(r/(T/100))*(T/100),r=i?Math.ceil(r/T)*T:Math.floor(r/T)*T),Math.max(l,Math.min(u,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new W(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var s=this._getTopLeftPoint(t,i);return new K(s,s.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var s=this.options.crs;return i=i===void 0?this._zoom:i,s.scale(t)/s.scale(i)},getScaleZoom:function(t,i){var s=this.options.crs;i=i===void 0?this._zoom:i;var r=s.zoom(t*s.scale(i));return isNaN(r)?1/0:r},project:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(j(t),i)},unproject:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(M(t),i)},layerPointToLatLng:function(t){var i=M(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(j(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(j(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(O(t))},distance:function(t,i){return this.options.crs.distance(j(t),j(i))},containerPointToLayerPoint:function(t){return M(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return M(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(M(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))},mouseEventToContainerPoint:function(t){return fi(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=an(t);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");H(i,"scroll",this._onScroll,this),this._containerId=P(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&x.any3d,B(t,"leaflet-container"+(x.touch?" leaflet-touch":"")+(x.retina?" leaflet-retina":"")+(x.ielt9?" leaflet-oldie":"")+(x.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=Le(t,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Z(this._mapPane,new W(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(B(t.markerPane,"leaflet-zoom-hide"),B(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,s){Z(this._mapPane,new W(0,0));var r=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var l=this._zoom!==i;this._moveStart(l,s)._move(t,i)._moveEnd(l),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,s,r){i===void 0&&(i=this._zoom);var l=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),r?s&&s.pinch&&this.fire("zoom",s):((l||s&&s.pinch)&&this.fire("zoom",s),this.fire("move",s)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return at(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Z(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[P(this._container)]=this;var i=t?et:H;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),x.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){at(this._resizeRequest),this._resizeRequest=$(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var s=[],r,l=i==="mouseout"||i==="mouseover",u=t.target||t.srcElement,_=!1;u;){if(r=this._targets[P(u)],r&&(i==="click"||i==="preclick")&&this._draggableMoved(r)){_=!0;break}if(r&&r.listens(i,!0)&&(l&&!De(u,t)||(s.push(r),l))||u===this._container)break;u=u.parentNode}return!s.length&&!_&&!l&&this.listens(i,!0)&&(s=[this]),s},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||t.type==="click"&&this._isCl
1ickDisabled(i))){var s=t.type;s==="mousedown"&&Jt(i),this._fireDOMEvent(t,s)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,s){if(t.type==="click"){var r=R({},t);r.type="preclick",this._fireDOMEvent(r,r.type,s)}var l=this._findEventTargets(t,i);if(s){for(var u=[],_=0;_<s.length;_++)s[_].listens(i,!0)&&u.push(s[_]);l=u.concat(l)}if(l.length){i==="contextmenu"&&_t(t);var m=l[0],g={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var y=m.getLatLng&&(!m._radius||m._radius<=10);g.containerPoint=y?this.latLngToContainerPoint(m.getLatLng()):this.mouseEventToContainerPoint(t),g.layerPoint=this.containerPointToLayerPoint(g.containerPoint),g.latlng=y?m.getLatLng():this.layerPointToLatLng(g.layerPoint)}for(_=0;_<l.length;_++)if(l[_].fire(i,g,!0),g.originalEvent._stopped||l[_].options.bubblingMouseEvents===!1&&Je(this._mouseEvents,i)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return qt(this._mapPane)||new W(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var s=t&&i!==void 0?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return s.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var s=this.getSize()._divideBy(2);return this.project(t,i)._subtract(s)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,s){var r=this._getNewPixelOrigin(s,i);return this.project(t,i)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,i,s){var r=this._getNewPixelOrigin(s,i);
vendor: 3,603 bytes, line 1
1return Q([this.project(t.getSouthWest(),i)._subtract(r),this.project(t.getNorthWest(),i)._subtract(r),this.project(t.getSouthEast(),i)._subtract(r),this.project(t.getNorthEast(),i)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,s){if(!s)return t;var r=this.project(t,i),l=this.getSize().divideBy(2),u=new K(r.subtract(l),r.add(l)),_=this._getBoundsOffset(u,s,i);return Math.abs(_.x)<=1&&Math.abs(_.y)<=1?t:this.unproject(r.add(_),i)},_limitOffset:function(t,i){if(!i)return t;var s=this.getPixelBounds(),r=new K(s.min.add(t),s.max.add(t));return t.add(this._getBoundsOffset(r,i))},_getBoundsOffset:function(t,i,s){var r=Q(this.project(i.getNorthEast(),s),this.project(i.getSouthWest(),s)),l=r.min.subtract(t.min),u=r.max.subtract(t.max),_=this._rebound(l.x,-u.x),m=this._rebound(l.y,-u.y);return new W(_,m)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),s=this.getMaxZoom(),r=x.any3d?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(i,Math.min(s,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){lt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var s=this._getCenterOffset(t)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(s)?!1:(this.panBy(s,i),!0)},_createAnimProxy:function(){var t=this._proxy=X("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(i){var s=F,r=this._proxy.style[s];he(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),r===this._proxy.style[s]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){nt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();he(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,s){if(this._animatingZoom)return!0;if(s=s||{},!this._zoomAnimated||s.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(i),l=this._getCenterOffset(t)._divideBy(1-1/r);return s.animate!==!0&&!this.getSize().contains(l)?!1:($(function(){this._moveStart(!0,s.noMoveStart||!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,s,r){this._mapPane&&(s&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,B(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(S(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&<(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))}});
vendor: 10,677 bytes, line 1
1function He(t,i){return new U(t,i)}var zt=xt.extend({options:{position:"topright"},initialize:function(t){E(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),s=this.getPosition(),r=t._controlCorners[s];return B(i,"leaflet-control"),s.indexOf("bottom")!==-1?r.insertBefore(i,r.firstChild):r.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(nt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Fe=function(t){return new zt(t)};U.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",s=this._controlContainer=X("div",i+"control-container",this._container);function r(l,u){var _=i+l+" "+i+u;t[l+u]=X("div",_,s)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)nt(this._controlCorners[t]);nt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var pi=zt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,s,r){return s<r?-1:r<s?1:0}},initialize:function(t,i,s){E(this,s),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var r in t)this._addLayer(t[r],r);for(r in i)this._addLayer(i[r],r,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return zt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(P(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){B(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?(B(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):lt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return lt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=X("div",t),s=this.options.collapsed;i.setAttribute("aria-haspopup",!0),Re(i),Ii(i);var r=this._section=X("section",t+"-list");s&&(this._map.on("click",this.collapse,this),H(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var l=this._layersLink=X("a",t+"-toggle",i);l.href="#",l.title="Layers",l.setAttribute("role","button"),H(l,{keydown:function(u){u.keyCode===13&&this._expandSafely()},click:function(u){_t(u),this._expandSafely()}},this),s||this.expand(),this._baseLayersList=X("div",t+"-base",r),this._separator=X("div",t+"-separator",r),this._overlaysList=X("div",t+"-overlays",r),i.appendChild(r)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&P(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,s){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:s}),this.options.sortLayers&&this._layers.sort(S(function(r,l){return this.options.sortFunction(r.layer,l.layer,r.name,l.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Yt(this._baseLayersList),Yt(this._overlaysList),this._layerControlInputs=[];var t,i,s,r,l=0;for(s=0;s<this._layers.length;s++)r=this._layers[s],this._addItem(r),i=i||r.overlay,t=t||!r.overlay,l+=r.overlay?0:1;return this.options.hideSingleBase&&(t=t&&l>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(P(t.target)),s=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;s&&this._map.fire(s,i)},_createRadioElement:function(t,i){var s='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=s,r.firstChild},_addItem:function(t){var i=document.createElement("label"),s=this._map.hasLayer(t.layer),r;t.overlay?(r=document.createElement("input"),r.type="checkbox",r.className="leaflet-control-layers-selector",r.defaultChecked=s):r=this._createRadioElement("leaflet-base-layers_"+P(this),s),this._layerControlInputs.push(r),r.layerId=P(t.layer),H(r,"click",this._onInputClick,this);var l=document.createElement("span");l.innerHTML=" "+t.name;var u=document.createElement("span");i.appendChild(u),u.appendChild(r),u.appendChild(l);var _=t.overlay?this._overlaysList:this._baseLayersList;return _.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,i,s,r=[],l=[];this._handlingClick=!0;for(var u=t.length-1;u>=0;u--)i=t[u],s=this._getLayer(i.layerId).layer,i.checked?r.push(s):i.checked||l.push(s);for(u=0;u<l.length;u++)this._map.hasLayer(l[u])&&this._map.removeLayer(l[u]);for(u=0;u<r.length;u++)this._map.hasLayer(r[u])||this._map.addLayer(r[u]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,i,s,r=this._map.getZoom(),l=t.length-1;l>=0;l--)i=t[l],s=this._getLayer(i.layerId).layer,i.disabled=s.options.minZoom!==void 0&&r<s.options.minZoom||s.options.maxZoom!==void 0&&r>s.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,H(t,"click",_t),this.expand();var i=this;setTimeout(function(){et(t,"click",_t),i._preventClick=!1})}}),ce=function(t,i,s){return new pi(t,i,s)},We=zt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",s=X("div",i+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,i+"-in",s,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,i+"-out",s,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),s},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,s,r,l){var u=X("a",s,r);return u.innerHTML=t,u.href="#",u.title=i,u.setAttribute("role","button"),u.setAttribute("aria-label",i),Re(u),H(u,"click",It),H(u,"click",l,this),H(u,"click",this._refocusOnMap,this),u},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";lt(this._zoomInButton,i),lt(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(B(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(B(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});U.mergeOptions({zoomControl:!0}),U.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new We,this.addControl(this.zoomControl))});var _n=function(t){return new We(t)},$t=zt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",s=X("div",i),r=this.options;return this._addScales(r,i+"-line",s),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),s},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,s){t.metric&&(this._mScale=X("div",i,s)),t.imperial&&(this._iScale=X("div",i,s))},_update:function(){var t=this._map,i=t.getSize().y/2,s=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(s)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),s=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,s,i/t)},_updateImperial:function(t){var i=t*3.2808399,s,r,l;i>5280?(s=i/5280,r=this._getRoundNum(s),this._updateScale(this._iScale,r+" mi",r/s)):(l=this._getRoundNum(i),this._updateScale(this._iScale,l+" ft",l/i))},_updateScale:function(t,i,s){t.style.width=Math.round(this.options.maxWidth*s)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),s=t/i;return s=s>=10?10:s>=5?5:s>=3?3:s>=2?2:1,i*s}}),je=function(t){return new $t(t)},ne='<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>',Ue=zt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(x.inlineSvg?ne+" ":"")+"Leaflet</a>"},initialize:function(t){E(this,t),this._attributions={}}
1,onAdd:function(t){t.attributionControl=this,this._container=X("div","leaflet-control-attribution"),Re(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var s=[];this.options.prefix&&s.push(this.options.prefix),t.length&&s.push(t.join(", ")),this._container.innerHTML=s.join(' <span aria-hidden="true">|</span> ')}}});U.mergeOptions({attributionControl:!0}),U.addInitHook(function(){this.options.attributionControl&&new Ue().addTo(this)});var In=function(t){return new Ue(t)};zt.Layers=pi,zt.Zoom=We,zt.Scale=$t,zt.Attribution=Ue,Fe.layers=ce,Fe.zoom=_n,Fe.scale=je,Fe.attribution=In;var Ft=xt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ft.addTo=function(t,i){return t.addHandler(i,this),this};var Bi={Events:wt},Ni=x.touch?"touchstart mousedown":"mousedown",Kt=I.extend({options:{clickTolerance:3},initialize:function(t,i,s,r){E(this,r),this._element=t,this._dragStartTarget=i||t,this._preventOutline=s},enable:function(){this._enabled||(H(this._dragStartTarget,Ni,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Kt._dragging===this&&this.finishDrag(!0),et(this._dragStartTarget,Ni,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!pt(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){Kt._dragging===this&&this.finishDrag();return}if(!(Kt._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(Kt._dragging=this,this._preventOutline&&Jt(this._element),ci(),Tt(),!this._moving)){this.fire("down");var i=t.touches?t.touches[0]:t,s=ln(this._element);this._startPoint=new W(i.clientX,i.clientY),this._startPos=qt(this._element),this._parentScale=_i(s);var r=t.type==="mousedown";H(document,r?"mousemove":"touchmove",this._onMove,this),H(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,s=new W(i.clientX,i.clientY)._subtract(this._startPoint);!s.x&&!s.y||Math.abs(s.x)+Math.abs(s.y)<this.options.clickTolerance||(s.x/=this._parentScale.x,s.y/=this._parentScale.y,_t(t),this._moved||(this.fire("dragstart"),this._moved=!0,B(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),B(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(s),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Z(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){lt(document.body,"leaflet-dragging"),this._lastTarget&&(lt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),et(document,"mousemove touchmove",this._onMove,this),et(document,"mouseup touchend touchcancel",this._onUp,this),Mt(),Ie();var i=this._moved&&this._moving;this._moving=!1,Kt._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function ze(t,i,s){var r,l=[1,4,2,8],u,_,m,g,y,T,A,Y;for(u=0,T=t.length;u<T;u++)t[u]._code=de(t[u],i);for(m=0;m<4;m++){for(A=l[m],r=[],u=0,T=t.length,_=T-1;u<T;_=u++)g=t[u],y=t[_],g._code&A?y._code&A||(Y=oe(y,g,A,i,s),Y._code=de(Y,i),r.push(Y)):(y._code&A&&(Y=oe(y,g,A,i,s),Y._code=de(Y,i),r.push(Y)),r.push(g));t=r}return t}function mi(t,i){var s,r,l,u,_,m,g,y,T;if(!t||t.length===0)throw new Error("latlngs not passed");Nt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var A=j([0,0]),Y=O(t),Dt=Y.getNorthWest().distanceTo(Y.getSouthWest
1())*Y.getNorthEast().distanceTo(Y.getNorthWest());Dt<1700&&(A=Ri(t));var Lt=t.length,ee=[];for(s=0;s<Lt;s++){var Wt=j(t[s]);ee.push(i.project(j([Wt.lat-A.lat,Wt.lng-A.lng])))}for(m=g=y=0,s=0,r=Lt-1;s<Lt;r=s++)l=ee[s],u=ee[r],_=l.y*u.x-u.y*l.x,g+=(l.x+u.x)*_,y+=(l.y+u.y)*_,m+=_*3;m===0?T=ee[0]:T=[g/m,y/m];var Ui=i.unproject(M(T));return j([Ui.lat+A.lat,Ui.lng+A.lng])}function Ri(t){for(var i=0,s=0,r=0,l=0;l<t.length;l++){var u=j(t[l]);i+=u.lat,s+=u.lng,r++}return j([i/r,s/r])}var Di={__proto__:null,clipPolygon:ze,polygonCenter:mi,centroid:Ri};function gi(t,i){if(!i||!t.length)return t.slice();var s=i*i;return t=Hi(t,s),t=Qt(t,s),t}function fn(t,i,s){return Math.sqrt(Bt(t,i,s,!0))}function Bn(t,i,s){return Bt(t,i,s)}function Qt(t,i){var s=t.length,r=typeof Uint8Array!=void 0+""?Uint8Array:Array,l=new r(s);l[0]=l[s-1]=1,Ve(t,l,i,0,s-1);var u,_=[];for(u=0;u<s;u++)l[u]&&_.push(t[u]);return _}function Ve(t,i,s,r,l){var u=0,_,m,g;for(m=r+1;m<=l-1;m++)g=Bt(t[m],t[r],t[l],!0),g>u&&(_=m,u=g);u>s&&(i[_]=1,Ve(t,i,s,r,_),Ve(t,i,s,_,l))}function Hi(t,i){for(var s=[t[0]],r=1,l=0,u=t.length;r<u;r++)Nn(t[r],t[l])>i&&(s.push(t[r]),l=r);return l<u-1&&s.push(t[u-1]),s}var pn;function qe(t,i,s,r,l){var u=r?pn:de(t,s),_=de(i,s),m,g,y;for(pn=_;;){if(!(u|_))return[t,i];if(u&_)return!1;m=u||_,g=oe(t,i,m,s,l),y=de(g,s),m===u?(t=g,u=y):(i=g,_=y)}}function oe(t,i,s,r,l){var u=i.x-t.x,_=i.y-t.y,m=r.min,g=r.max,y,T;return s&8?(y=t.x+u*(g.y-t.y)/_,T=g.y):s&4?(y=t.x+u*(m.y-t.y)/_,T=m.y):s&2?(y=g.x,T=t.y+_*(g.x-t.x)/u):s&1&&(y=m.x,T=t.y+_*(m.x-t.x)/u),new W(y,T,l)}function de(t,i){var s=0;return t.x<i.min.x?s|=1:t.x>i.max.x&&(s|=2),t.y<i.min.y?s|=4:t.y>i.max.y&&(s|=8),s}function Nn(t,i){var s=i.x-t.x,r=i.y-t.y;return s*s+r*r}function Bt(t,i,s,r){var l=i.x,u=i.y,_=s.x-l,m=s.y-u,g=_*_+m*m,y;return g>0&&(y=((t.x-l)*_+(t.y-u)*m)/g,y>1?(l=s.x,u=s.y):y>0&&(l+=_*y,u+=m*y)),_=t.x-l,m=t.y-u,r?_*_+m*m:new W(l,u)}function Nt(t){return!ut(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function mn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Nt(t)}function Ge(t,i){var s,r,l,u,_,m,g,y;if(!t||t.length===0)throw new Error("latlngs not passed");Nt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var T=j([0,0]),A=O(t),Y=A.getNorthWest().distanceTo(A.getSouthWest
vendor: 4,208 bytes, line 1
1())*A.getNorthEast().distanceTo(A.getNorthWest());Y<1700&&(T=Ri(t));var Dt=t.length,Lt=[];for(s=0;s<Dt;s++){var ee=j(t[s]);Lt.push(i.project(j([ee.lat-T.lat,ee.lng-T.lng])))}for(s=0,r=0;s<Dt-1;s++)r+=Lt[s].distanceTo(Lt[s+1])/2;if(r===0)y=Lt[0];else for(s=0,u=0;s<Dt-1;s++)if(_=Lt[s],m=Lt[s+1],l=_.distanceTo(m),u+=l,u>r){g=(u-r)/l,y=[m.x-g*(m.x-_.x),m.y-g*(m.y-_.y)];break}var Wt=i.unproject(M(y));return j([Wt.lat+T.lat,Wt.lng+T.lng])}var vi={__proto__:null,simplify:gi,pointToSegmentDistance:fn,closestPointOnSegment:Bn,clipSegment:qe,_getEdgeIntersection:oe,_getBitCode:de,_sqClosestPointOnSegment:Bt,isFlat:Nt,_flat:mn,polylineCenter:Ge},Ke={project:function(t){return new W(t.lng,t.lat)},unproject:function(t){return new z(t.y,t.x)},bounds:new K([-180,-90],[180,90])},ke={R:6378137,R_MINOR:6356752314245179e-9,bounds:new K([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var i=Math.PI/180,s=this.R,r=t.lat*i,l=this.R_MINOR/s,u=Math.sqrt(1-l*l),_=u*Math.sin(r),m=Math.tan(Math.PI/4-r/2)/Math.pow((1-_)/(1+_),u/2);return r=-s*Math.log(Math.max(m,1e-10)),new W(t.lng*i*s,r)},unproject:function(t){for(var i=180/Math.PI,s=this.R,r=this.R_MINOR/s,l=Math.sqrt(1-r*r),u=Math.exp(-t.y/s),_=Math.PI/2-2*Math.atan(u),m=0,g=.1,y;m<15&&Math.abs(g)>1e-7;m++)y=l*Math.sin(_),y=Math.pow((1-y)/(1+y),l/2),g=Math.PI/2-2*Math.atan(u*y)-_,_+=g;return new z(_*i,t.x*i/s)}},Rn={__proto__:null,LonLat:Ke,Mercator:ke,SphericalMercator:pe},Dn=R({},bt,{code:"EPSG:3395",projection:ke,transformation:function(){var t=.5/(Math.PI*ke.R);return ti(t,.5,-t,.5)}()}),te=R({},bt,{code:"EPSG:4326",projection:Ke,transformation:ti(1/180,1,-1/180,.5)}),Fi=R({},Pt,{projection:Ke,transformation:ti(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var s=i.lng-t.lng,r=i.lat-t.lat;return Math.sqrt(s*s+r*r)},infinite:!0});Pt.Earth=bt,Pt.EPSG3395=Dn,Pt.EPSG3857=Pi,Pt.EPSG900913=Pn,Pt.EPSG4326=te,Pt.Simple=Fi;var gt=I.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[P(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[P(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var s=this.getEvents();i.on(s,this),this.once("remove",function(){i.off(s,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});U.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=P(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=P(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return P(t)in this._layers},eachLayer:function(t,i){for(var s in this._layers)t.call(i,this._layers[s]);return this},_addLayers:function(t){t=t?ut(t)?t:[t]:[];for(var i=0,s=t.length;i<s;i++)this.addLayer(t[i])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[P(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=P(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,s=this._getZoomSpan();for(var r in this._zoomBoundLayers){var l=this._zoomBoundLayers[r].options;t=l.minZoom===void 0?t:Math.min(t,l.minZoom),i=l.maxZoom===void 0?i:Math.max(i,l.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,s!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
vendor: 13,872 bytes, line 1
1om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var se=gt.extend({initialize:function(t,i){E(this,i),this._layers={};var s,r;if(t)for(s=0,r=t.length;s<r;s++)this.addLayer(t[s])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){var i=typeof t=="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),s,r;for(s in this._layers)r=this._layers[s],r[t]&&r[t].apply(r,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var s in this._layers)t.call(i,this._layers[s]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return P(t)}}),Wi=function(t,i){return new se(t,i)},Rt=se.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),se.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),se.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new J;for(var i in this._layers){var s=this._layers[i];t.extend(s.getBounds?s.getBounds():s.getLatLng())}return t}}),yi=function(t,i){return new Rt(t,i)},Ye=xt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){E(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var s=this._getIconUrl(t);if(!s){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(s,i&&i.tagName==="IMG"?i:null);return this._setIconStyles(r,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(r.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),r},_setIconStyles:function(t,i){var s=this.options,r=s[i+"Size"];typeof r=="number"&&(r=[r,r]);var l=M(r),u=M(i==="shadow"&&s.shadowAnchor||s.iconAnchor||l&&l.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(s.className||""),u&&(t.style.marginLeft=-u.x+"px",t.style.marginTop=-u.y+"px"),l&&(t.style.width=l.x+"px",t.style.height=l.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return x.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function e(t){return new Ye(t)}var n=Ye.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 n.imagePath!="string"&&(n.imagePath=this._detectIconPath()),(this.options.imagePath||n.imagePath)+Ye.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(s,r,l){var u=r.exec(s);return u&&u[l]};return t=i(t,/^url\((['"])?(.+)\1\)$/,2),t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=X("div","leaflet-default-icon-path",document.body),i=Le(t,"background-image")||Le(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i),i)return i;var s=document.querySelector('link[href$="leaflet.css"]');return s?s.href.substring(0,s.href.length-11-1):""}}),o=Ft.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Kt(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),B(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&<(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,s=i._map,r=this._marker.options.autoPanSpeed,l=this._marker.options.autoPanPadding,u=qt(i._icon),_=s.getPixelBounds(),m=s.getPixelOrigin(),g=Q(_.min._subtract(m).add(l),_.max._subtract(m).subtract(l));if(!g.contains(u)){var y=M((Math.max(g.max.x,u.x)-g.max.x)/(_.max.x-g.max.x)-(Math.min(g.min.x,u.x)-g.min.x)/(_.min.x-g.min.x),(Math.max(g.max.y,u.y)-g.max.y)/(_.max.y-g.max.y)-(Math.min(g.min.y,u.y)-g.min.y)/(_.min.y-g.min.y)).multiplyBy(r);s.panBy(y,{animate:!1}),this._draggable._newPos._add(y),this._draggable._startPos._add(y),Z(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=$(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(at(this._panRequest),this._panRequest=$(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,s=i._shadow,r=qt(i._icon),l=i._map.layerPointToLatLng(r);s&&Z(s,r),i._latlng=l,t.latlng=l,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){at(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),a=gt.extend({options:{icon:new n,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){E(this,i),this._latlng=j(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=j(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),s=t.icon.createIcon(this._icon),r=!1;s!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(s.title=t.title),s.tagName==="IMG"&&(s.alt=t.alt||"")),B(s,i),t.keyboard&&(s.tabIndex="0",s.setAttribute("role","button")),this._icon=s,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&H(s,"focus",this._panOnFocus,this);var l=t.icon.createShadow(this._shadow),u=!1;l!==this._shadow&&(this._removeShadow(),u=!0),l&&(B(l,i),l.alt=""),this._shadow=l,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),l&&u&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&et(this._icon,"focus",this._panOnFocus,this),nt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&nt(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Z(this._icon,t),this._shadow&&Z(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(B(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),o)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new o(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&&At(this._icon,t),this._shadow&&At(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,s=i.iconSize?M(i.iconSize):M(0,0),r=i.iconAnchor?M(i.iconAnchor):M(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:s.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function h(t,i){return new a(t,i)}var c=gt.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return E(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),p=c.extend({options:{fill:!0,radius:10},initialize:function(t,i){E(this,i),this._latlng=j(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=j(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return c.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,s=this._clickTolerance(),r=[t+s,i+s];this._pxBounds=new K(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function f(t,i){return new p(t,i)}var v=p.extend({initialize:function(t,i,s){if(typeof i=="number"&&(i=R({},s,{radius:i})),E(this,i),this._latlng=j(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 J(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:c.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,s=this._map,r=s.options.crs;if(r.distance===bt.distance){var l=Math.PI/180,u=this._mRadius/bt.R/l,_=s.project([i+u,t]),m=s.project([i-u,t]),g=_.add(m).divideBy(2),y=s.unproject(g).lat,T=Math.acos((Math.cos(u*l)-Math.sin(i*l)*Math.sin(y*l))/(Math.cos(i*l)*Math.cos(y*l)))/l;(isNaN(T)||T===0)&&(T=u/Math.cos(Math.PI/180*i)),this._point=g.subtract(s.getPixelOrigin()),this._radius=isNaN(T)?0:g.x-s.project([y,t-T]).x,this._radiusY=g.y-_.y}else{var A=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=s.latLngToLayerPoint(this._latlng),this._radius=this._point.x-s.latLngToLayerPoint(A).x}this._updateBounds()}});function w(t,i,s){return new v(t,i,s)}var b=c.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){E(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i=1/0,s=null,r=Bt,l,u,_=0,m=this._parts.length;_<m;_++)for(var g=this._parts[_],y=1,T=g.length;y<T;y++){l=g[y-1],u=g[y];var A=r(t,l,u,!0);A<i&&(i=A,s=r(t,l,u))}return s&&(s.distance=Math.sqrt(i)),s}
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ge(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=j(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new J,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Nt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],s=Nt(t),r=0,l=t.length;r<l;r++)s?(i[r]=j(t[r]),this._bounds.extend(i[r])):i[r]=this._convertLatLngs(t[r]);return i},_project:function(){var t=new K;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new W(t,t);this._rawPxBounds&&(this._pxBounds=new K([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,s){var r=t[0]instanceof z,l=t.length,u,_;if(r){for(_=[],u=0;u<l;u++)_[u]=this._map.latLngToLayerPoint(t[u]),s.extend(_[u]);i.push(_)}else for(u=0;u<l;u++)this._projectLatlngs(t[u],i,s)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,s,r,l,u,_,m,g;for(s=0,l=0,u=this._rings.length;s<u;s++)for(g=this._rings[s],r=0,_=g.length;r<_-1;r++)m=qe(g[r],g[r+1],t,r,!0),m&&(i[l]=i[l]||[],i[l].push(m[0]),(m[1]!==g[r+1]||r===_-2)&&(i[l].push(m[1]),l++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,s=0,r=t.length;s<r;s++)t[s]=gi(t[s],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var s,r,l,u,_,m,g=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,u=this._parts.length;s<u;s++)for(m=this._parts[s],r=0,_=m.length,l=_-1;r<_;l=r++)if(!(!i&&r===0)&&fn(t,m[l],m[r])<=g)return!0;return!1}});function G(t,i){return new b(t,i)}b._flat=mn;var N=b.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 27,010 bytes, line 1
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return mi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=b.prototype._convertLatLngs.call(this,t),s=i.length;return s>=2&&i[0]instanceof z&&i[0].equals(i[s-1])&&i.pop(),i},_setLatLngs:function(t){b.prototype._setLatLngs.call(this,t),Nt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Nt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,s=new W(i,i);if(t=new K(t.min.subtract(s),t.max.add(s)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var r=0,l=this._rings.length,u;r<l;r++)u=ze(this._rings[r],t,!0),u.length&&this._parts.push(u)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i=!1,s,r,l,u,_,m,g,y;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(u=0,g=this._parts.length;u<g;u++)for(s=this._parts[u],_=0,y=s.length,m=y-1;_<y;m=_++)r=s[_],l=s[m],r.y>t.y!=l.y>t.y&&t.x<(l.x-r.x)*(t.y-r.y)/(l.y-r.y)+r.x&&(i=!i);return i||b.prototype._containsPoint.call(this,t,!0)}});function st(t,i){return new N(t,i)}var dt=Rt.extend({initialize:function(t,i){E(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i=ut(t)?t:t.features,s,r,l;if(i){for(s=0,r=i.length;s<r;s++)l=i[s],(l.geometries||l.geometry||l.features||l.coordinates)&&this.addData(l);return this}var u=this.options;if(u.filter&&!u.filter(t))return this;var _=vt(t,u);return _?(_.feature=wi(t),_.defaultOptions=_.options,this.resetStyle(_),u.onEachFeature&&u.onEachFeature(t,_),this.addLayer(_)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=R({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){t.setStyle&&(typeof i=="function"&&(i=i(t.feature)),t.setStyle(i))}});function vt(t,i){var s=t.type==="Feature"?t.geometry:t,r=s?s.coordinates:null,l=[],u=i&&i.pointToLayer,_=i&&i.coordsToLatLng||gn,m,g,y,T;if(!r&&!s)return null;switch(s.type){case"Point":return m=_(r),Zt(u,t,m,i);case"MultiPoint":for(y=0,T=r.length;y<T;y++)m=_(r[y]),l.push(Zt(u,t,m,i));return new Rt(l);case"LineString":case"MultiLineString":return g=xi(r,s.type==="LineString"?0:1,_),new b(g,i);case"Polygon":case"MultiPolygon":return g=xi(r,s.type==="Polygon"?1:2,_),new N(g,i);case"GeometryCollection":for(y=0,T=s.geometries.length;y<T;y++){var A=vt({geometry:s.geometries[y],type:"Feature",properties:t.properties},i);A&&l.push(A)}return new Rt(l);case"FeatureCollection":for(y=0,T=s.features.length;y<T;y++){var Y=vt(s.features[y],i);Y&&l.push(Y)}return new Rt(l);default:throw new Error("Invalid GeoJSON object.")}}function Zt(t,i,s,r){return t?t(i,s):new a(s,r&&r.markersInheritOptions&&r)}function gn(t){return new z(t[1],t[0],t[2])}function xi(t,i,s){for(var r=[],l=0,u=t.length,_;l<u;l++)_=i?xi(t[l],i-1,s):(s||gn)(t[l]),r.push(_);return r}function vn(t,i){return t=j(t),t.alt!==void 0?[ft(t.lng,i),ft(t.lat,i),ft(t.alt,i)]:[ft(t.lng,i),ft(t.lat,i)]}function rt(t,i,s,r){for(var l=[],u=0,_=t.length;u<_;u++)l.push(i?rt(t[u],Nt(t[u])?0:i-1,s,r):vn(t[u],r));return!i&&s&&l.length>0&&l.push(l[0].slice()),l}function re(t,i){return t.feature?R({},t.feature,{geometry:i}):wi(i)}function wi(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var to={toGeoJSON:function(t){return re(this,{type:"Point",coordinates:vn(this.getLatLng(),t)})}};a.include(to),v.include(to),p.include(to),b.include({toGeoJSON:function(t){var i=!Nt(this._latlngs),s=rt(this._latlngs,i?1:0,!1,t);return re(this,{type:(i?"Multi":"")+"LineString",coordinates:s})}}),N.include({toGeoJSON:function(t){var i=!Nt(this._latlngs),s=i&&!Nt(this._latlngs[0]),r=rt(this._latlngs,s?2:i?1:0,!0,t);return i||(r=[r]),re(this,{type:(s?"Multi":"")+"Polygon",coordinates:r})}}),se.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(s){i.push(s.toGeoJSON(t).geometry.coordinates)}),re(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(t);var s=i==="GeometryCollection",r=[];return this.eachLayer(function(l){if(l.toGeoJSON){var u=l.toGeoJSON(t);if(s)r.push(u.geometry);else{var _=wi(u);_.type==="FeatureCollection"?r.push.apply(r,_.features):r.push(_)}}}),s?re(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});function so(t,i){return new dt(t,i)}var No=so,Hn=gt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,s){this._url=t,this._bounds=O(i),E(this,s)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(B(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){nt(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&&ae(this._image),this},bringToBack:function(){return this._map&&Xt(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=O(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",i=this._image=t?this._url:X("img");if(B(i,"leaflet-image-layer"),this._zoomAnimated&&B(i,"leaflet-zoom-animated"),this.options.className&&B(i,this.options.className),i.onselectstart=V,i.onmousemove=V,i.onload=S(this.fire,this,"load"),i.onerror=S(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),s=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;he(this._image,s,i)},_reset:function(){var t=this._image,i=new K(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),s=i.getSize();Z(t,i.min),t.style.width=s.x+"px",t.style.height=s.y+"px"},_updateOpacity:function(){At(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()}}),Ro=function(t,i,s){return new Hn(t,i,s)},ro=Hn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",i=this._image=t?this._url:X("video");if(B(i,"leaflet-image-layer"),this._zoomAnimated&&B(i,"leaflet-zoom-animated"),this.options.className&&B(i,this.options.className),i.onselectstart=V,i.onmousemove=V,i.onloadeddata=S(this.fire,this,"load"),t){for(var s=i.getElementsByTagName("source"),r=[],l=0;l<s.length;l++)r.push(s[l].src);this._url=s.length>0?r:[i.src];return}ut(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var u=0;u<this._url.length;u++){var _=X("source");_.src=this._url[u],i.appendChild(_)}}});function Do(t,i,s){return new ro(t,i,s)}var ao=Hn.extend({_initImage:function(){var t=this._image=this._url;B(t,"leaflet-image-layer"),this._zoomAnimated&&B(t,"leaflet-zoom-animated"),this.options.className&&B(t,this.options.className),t.onselectstart=V,t.onmousemove=V}});function Ho(t,i,s){return new ao(t,i,s)}var _e=gt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof z||ut(t))?(this._latlng=j(t),E(this,i)):(E(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&At(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&At(this._container,1),this.bringToFront(),this.options.interactive&&(B(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(At(this._container,0),this._removeTimeout=setTimeout(S(nt,void 0,this._container),200)):nt(this._container),this.options.interactive&&(lt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=j(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&&ae(this._container),this},bringToBack:function(){return this._map&&Xt(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof Rt){i=null;var s=this._source._layers;for(var r in s)if(s[r]._map){i=s[r];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else if(i.getBounds)t=i.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof i=="string")t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=M(this.options.offset),s=this._getAnchor();this._zoomAnimated?Z(this._container,t.add(s)):i=i.add(t).add(s);var r=this._containerBottom=-i.y,l=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=r+"px",this._container.style.left=l+"px"}},_getAnchor:function(){return[0,0]}});U.include({_initOverlay:function(t,i,s,r){var l=i;return l instanceof t||(l=new t(r).setContent(i)),s&&l.setLatLng(s),l}}),gt.include({_initOverlay:function(t,i,s,r){var l=s;return l instanceof t?(E(l,r),l._source=this):(l=i&&!r?i:new t(r,this),l.setContent(s)),l}});var Fn=_e.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,_e.prototype.openOn.call(this,t)},onAdd:function(t){_e.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof c||this._source.on("preclick",mt))},onRemove:function(t){_e.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof c||this._source.off("preclick",mt))},getEvents:function(){var t=_e.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=X("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),s=this._wrapper=X("div",t+"-content-wrapper",i);if(this._contentNode=X("div",t+"-content",s),Re(i),Ii(this._contentNode),H(i,"contextmenu",mt),this._tipContainer=X("div",t+"-tip-container",i),this._tip=X("div",t+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=X("a",t+"-close-button",i);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">×</span>',H(r,"click",function(l){_t(l),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var s=t.offsetWidth;s=Math.min(s,this.options.maxWidth),s=Math.max(s,this.options.minWidth),i.width=s+1+"px",i.whiteSpace="",i.height="";var r=t.offsetHeight,l=this.options.maxHeight,u="leaflet-popup-scrolled";l&&r>l?(i.height=l+"px",B(t,u)):lt(t,u),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),s=this._getAnchor();Z(this._container,i.add(s))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,i=parseInt(Le(this._container,"marginBottom"),10)||0,s=this._container.offsetHeight+i,r=this._containerWidth,l=new W(this._containerLeft,-s-this._containerBottom);l._add(qt(this._container));var u=t.layerPointToContainerPoint(l),_=M(this.options.autoPanPadding),m=M(this.options.autoPanPaddingTopLeft||_),g=M(this.options.autoPanPaddingBottomRight||_),y=t.getSize(),T=0,A=0;u.x+r+g.x>y.x&&(T=u.x+r-y.x+g.x),u.x-T-m.x<0&&(T=u.x-m.x),u.y+s+g.y>y.y&&(A=u.y+s-y.y+g.y),u.y-A-m.y<0&&(A=u.y-m.y),(T||A)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([T,A]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Fo=function(t,i){return new Fn(t,i)};U.mergeOptions({closePopupOnClick:!0}),U.include({openPopup:function(t,i,s){return this._initOverlay(Fn,t,i,s).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),gt.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Fn,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Rt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){It(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof c)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=i,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Wn=_e.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){_e.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){_e.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=_e.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=X("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+P(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,s,r=this._map,l=this._container,u=r.latLngToContainerPoint(r.getCenter()),_=r.layerPointToContainerPoint(t),m=this.options.direction,g=l.offsetWidth,y=l.offsetHeight,T=M(this.options.offset),A=this._getAnchor();m==="top"?(i=g/2,s=y):m==="bottom"?(i=g/2,s=0):m==="center"?(i=g/2,s=y/2):m==="right"?(i=0,s=y/2):m==="left"?(i=g,s=y/2):_.x<u.x?(m="right",i=0,s=y/2):(m="left",i=g+(T.x+A.x)*2,s=y/2),t=t.subtract(M(i,s,!0)).add(T).add(A),lt(l,"leaflet-tooltip-right"),lt(l,"leaflet-tooltip-left"),lt(l,"leaflet-tooltip-top"),lt(l,"leaflet-tooltip-bottom"),B(l,"leaflet-tooltip-"+m),Z(l,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&At(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Wo=function(t,i){return new Wn(t,i)};U.include({openTooltip:function(t,i,s){return this._initOverlay(Wn,t,i,s).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),gt.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Wn,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var i=t?"off":"on",s={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?s.add=this._openTooltip:(s.mouseover=this._openTooltip,s.mouseout=this.closeTooltip,s.click=this._openTooltip,this._map?this._addFocusListeners():s.add=this._addFocusListeners),this._tooltip.options.sticky&&(s.mousemove=this._moveTooltip),this[i](s),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Rt||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&(H(i,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),H(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&i.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var i=this;this._map.once("moveend",function(){i._openOnceFlag=!1,i._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var i=t.latlng,s,r;this._tooltip.options.sticky&&t.originalEvent&&(s=this._map.mouseEventToContainerPoint(t.originalEvent),r=this._map.containerPointToLayerPoint(s),i=this._map.layerPointToLatLng(r)),this._tooltip.setLatLng(i)}});var ho=Ye.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),s=this.options;if(s.html instanceof Element?(Yt(i),i.appendChild(s.html)):i.innerHTML=s.html!==!1?s.html:"",s.bgPos){var r=M(s.bgPos);i.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});function jo(t){return new ho(t)}Ye.Default=n;var yn=gt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:x.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){E(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),nt(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ae(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Xt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=jt(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 W?t:new W(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i=this.getPane().children,s=-t(-1/0,1/0),r=0,l=i.length,u;r<l;r++)u=i[r].style.zIndex,i[r]!==this._container&&u&&(s=t(s,+u));isFinite(s)&&(this.options.zIndex=s+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!x.ielt9){At(this._container,this.options.opacity);var t=+new Date,i=!1,s=!1;for(var r in this._tiles){var l=this._tiles[r];if(!(!l.current||!l.loaded)){var u=Math.min(1,(t-l.loaded)/200);At(l.el,u),u<1?i=!0:(l.active?s=!0:this._onOpaqueTile(l),l.active=!0)}}s&&!this._noPrune&&this._pruneTiles(),i&&(at(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this))}},_onOpaqueTile:V,_initContainer:function(){this._container||(this._container=X("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t!==void 0){for(var s in this._levels)s=Number(s),this._levels[s].el.children.length||s===t?(this._levels[s].el.style.zIndex=i-Math.abs(t-s),this._onUpdateLevel(s)):(nt(this._levels[s].el),this._removeTilesAtZoom(s),this._onRemoveLevel(s),delete this._levels[s]);var r=this._levels[t],l=this._map;return r||(r=this._levels[t]={},r.el=X("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=i,r.origin=l.project(l.unproject(l.getPixelOrigin()),t).round(),r.zoom=t,this._setZoomTransform(r,l.getCenter(),l.getZoom()),V(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:V,_onRemoveLevel:V,_onCreateLevel:V,_pruneTiles:function(){if(this._map){var t,i,s=this._map.getZoom();if(s>this.options.maxZoom||s<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var r=i.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)nt(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,s,r){var l=Math.floor(t/2),u=Math.floor(i/2),_=s-1,m=new W(+l,+u);m.z=+_;var g=this._tileCoordsToKey(m),y=this._tiles[g];return y&&y.active?(y.retain=!0,!0):(y&&y.loaded&&(y.retain=!0),_>r?this._retainParent(l,u,_,r):!1)},_retainChildren:function(t,i,s,r){for(var l=2*t;l<2*t+2;l++)for(var u=2*i;u<2*i+2;u++){var _=new W(l,u);_.z=s+1;var m=this._tileCoordsToKey(_),g=this._tiles[m];if(g&&g.active){g.retain=!0;continue}else g&&g.loaded&&(g.retain=!0);s+1<r&&this._retainChildren(l,u,s+1,r)}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);
vendor: 5,854 bytes, line 1
1this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return i.minNativeZoom!==void 0&&t<i.minNativeZoom?i.minNativeZoom:i.maxNativeZoom!==void 0&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,s,r){var l=Math.round(i);this.options.maxZoom!==void 0&&l>this.options.maxZoom||this.options.minZoom!==void 0&&l<this.options.minZoom?l=void 0:l=this._clampZoom(l);var u=this.options.updateWhenZooming&&l!==this._tileZoom;(!r||u)&&(this._tileZoom=l,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),l!==void 0&&this._update(t),s||this._pruneTiles(),this._noPrune=!!s),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var s in this._levels)this._setZoomTransform(this._levels[s],t,i)},_setZoomTransform:function(t,i,s){var r=this._map.getZoomScale(s,t.zoom),l=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(i,s)).round();x.any3d?he(t.el,l,r):Z(t.el,l)},_resetGrid:function(){var t=this._map,i=t.options.crs,s=this._tileSize=this.getTileSize(),r=this._tileZoom,l=this._map.getPixelWorldBounds(this._tileZoom);l&&(this._globalTileRange=this._pxBoundsToTileRange(l)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],r).x/s.x),Math.ceil(t.project([0,i.wrapLng[1]],r).x/s.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],r).y/s.x),Math.ceil(t.project([i.wrapLat[1],0],r).y/s.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var i=this._map,s=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),r=i.getZoomScale(s,this._tileZoom),l=i.project(t,this._tileZoom).floor(),u=i.getSize().divideBy(r*2);return new K(l.subtract(u),l.add(u))},_update:function(t){var i=this._map;if(i){var s=this._clampZoom(i.getZoom());if(t===void 0&&(t=i.getCenter()),this._tileZoom!==void 0){var r=this._getTiledPixelBounds(t),l=this._pxBoundsToTileRange(r),u=l.getCenter(),_=[],m=this.options.keepBuffer,g=new K(l.getBottomLeft().subtract([m,-m]),l.getTopRight().add([m,-m]));if(!(isFinite(l.min.x)&&isFinite(l.min.y)&&isFinite(l.max.x)&&isFinite(l.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var y in this._tiles){var T=this._tiles[y].coords;(T.z!==this._tileZoom||!g.contains(new W(T.x,T.y)))&&(this._tiles[y].current=!1)}if(Math.abs(s-this._tileZoom)>1){this._setView(t,s);return}for(var A=l.min.y;A<=l.max.y;A++)for(var Y=l.min.x;Y<=l.max.x;Y++){var Dt=new W(Y,A);if(Dt.z=this._tileZoom,!!this._isValidTile(Dt)){var Lt=this._tiles[this._tileCoordsToKey(Dt)];Lt?Lt.current=!0:_.push(Dt)}}if(_.sort(function(Wt,Ui){return Wt.distanceTo(u)-Ui.distanceTo(u)}),_.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ee=document.createDocumentFragment();for(Y=0;Y<_.length;Y++)this._addTile(_[Y],ee);this._level.el.appendChild(ee)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var s=this._globalTileRange;if(!i.wrapLng&&(t.x<s.min.x||t.x>s.max.x)||!i.wrapLat&&(t.y<s.min.y||t.y>s.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return O(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,s=this.getTileSize(),r=t.scaleBy(s),l=r.add(s),u=i.unproject(r,t.z),_=i.unproject(l,t.z);return[u,_]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),s=new J(i[0],i[1]);return this.options.noWrap||(s=this._map.wrapLatLngBounds(s)),s},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),s=new W(+i[0],+i[1]);return s.z=+i[2],s},_removeTile:function(t){var i=this._tiles[t];i&&(nt(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){B(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=V,t.onmousemove=V,x.ielt9&&this.options.opacity<1&&At(t,this.options.opacity)},_addTile:function(t,i){var s=this._getTilePos(t),r=this._tileCoordsToKey(t),l=this.createTile(this._wrapCoords(t),S(this._tileReady,this,t));this._initTile(l),this.createTile.length<2&&$(S(this._tileReady,this,t,null,l)),Z(l,s),this._tiles[r]={el:l,coords:t,current:!0},i.appendChild(l),this.fire("tileloadstart",{tile:l,coords:t})},_tileReady:function(t,i,s){i&&this.fire("tileerror",{error:i,tile:s,coords:t});var r=this._tileCoordsToKey(t);s=this._tiles[r],s&&(s.loaded=+new Date,this._map._fadeAnimated?(At(s.el,0),at(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(s.active=!0,this._pruneTiles()),i||(B(s.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:s.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),x.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(S(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new W(this._wrapX?Ut(t.x,this._wrapX):t.x,this._wrapY?Ut(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new K(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Uo(t){return new yn(t)}var ji=yn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,i=E(this,i),i.detectRetina&&x.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZ
vendor: 4,691 bytes, line 1
1oom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&i===void 0&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var s=document.createElement("img");return H(s,"load",S(this._tileOnLoad,this,i,s)),H(s,"error",S(this._tileOnError,this,i,s)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(s.referrerPolicy=this.options.referrerPolicy),s.alt="",s.src=this.getTileUrl(t),s},getTileUrl:function(t){var i={r:x.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var s=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=s),i["-y"]=s}return qi(this._url,R(i,this.options))},_tileOnLoad:function(t,i){x.ielt9?setTimeout(S(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,s){var r=this.options.errorTileUrl;r&&i.getAttribute("src")!==r&&(i.src=r),t(s,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,s=this.options.zoomReverse,r=this.options.zoomOffset;return s&&(t=i-t),t+r},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=V,i.onerror=V,!i.complete)){i.src=fe;var s=this._tiles[t].coords;nt(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:s})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",fe),yn.prototype._removeTile.call(this,t)},_tileReady:function(t,i,s){if(!(!this._map||s&&s.getAttribute("src")===fe))return yn.prototype._tileReady.call(this,t,i,s)}});function lo(t,i){return new ji(t,i)}var uo=ji.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var s=R({},this.defaultWmsParams);for(var r in i)r in this.options||(s[r]=i[r]);i=E(this,i);var l=i.detectRetina&&x.retina?2:1,u=this.getTileSize();s.width=u.x*l,s.height=u.y*l,this.wmsParams=s},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,ji.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),s=this._crs,r=Q(s.project(i[0]),s.project(i[1])),l=r.min,u=r.max,_=(this._wmsVersion>=1.3&&this._crs===te?[l.y,l.x,u.y,u.x]:[l.x,l.y,u.x,u.y]).join(","),m=ji.prototype.getTileUrl.call(this,t);return m+Vi(this.wmsParams,m,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+_},setParams:function(t,i){return R(this.wmsParams,t),i||this.redraw(),this}});function Vo(t,i){return new uo(t,i)}ji.WMS=uo,lo.wms=Vo;var Se=gt.extend({options:{padding:.1},initialize:function(t){E(this,t),P(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),B(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var s=this._map.getZoomScale(i,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),l=this._map.project(this._center,i),u=r.multiplyBy(-s).add(l).subtract(this._map._getNewPixelOrigin(t,i));x.any3d?he(this._container,u,s):Z(this._container,u)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),s=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).roun
vendor: 10,160 bytes, line 1
1d();this._bounds=new K(s,s.add(i.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),co=Se.extend({options:{tolerance:0},getEvents:function(){var t=Se.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Se.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");H(t,"mousemove",this._onMouseMove,this),H(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),H(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){at(this._redrawRequest),delete this._ctx,nt(this._container),et(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Se.prototype._update.call(this);var t=this._bounds,i=this._container,s=t.getSize(),r=x.retina?2:1;Z(i,t.min),i.width=r*s.x,i.height=r*s.y,i.style.width=s.x+"px",i.style.height=s.y+"px",x.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Se.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[P(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,s=i.next,r=i.prev;s?s.prev=r:this._drawLast=r,r?r.next=s:this._drawFirst=s,delete t._order,delete this._layers[P(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var i=t.options.dashArray.split(/[, ]+/),s=[],r,l;for(l=0;l<i.length;l++){if(r=Number(i[l]),isNaN(r))return;s.push(r)}t.options._dashArray=s}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||$(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new K,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var s=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,s.x,s.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)t=r.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var s,r,l,u,_=t._parts,m=_.length,g=this._ctx;if(m){for(g.beginPath(),s=0;s<m;s++){for(r=0,l=_[s].length;r<l;r++)u=_[s][r],g[r?"lineTo":"moveTo"](u.x,u.y);i&&g.closePath()}this._fillStroke(g,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var i=t._point,s=this._ctx,r=Math.max(Math.round(t._radius),1),l=(Math.max(Math.round(t._radiusY),1)||r)/r;l!==1&&(s.save(),s.scale(1,l)),s.beginPath(),s.arc(i.x,i.y/l,r,0,Math.PI*2,!1),l!==1&&s.restore(),this._fillStroke(s,t)}},_fillStroke:function(t,i){var s=i.options;s.fill&&(t.globalAlpha=s.fillOpacity,t.fillStyle=s.fillColor||s.color,t.fill(s.fillRule||"evenodd")),s.stroke&&s.weight!==0&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=s.opacity,t.lineWidth=s.weight,t.strokeStyle=s.color,t.lineCap=s.lineCap,t.lineJoin=s.lineJoin,t.stroke())},_onClick:function(t){for(var i=this._map.mouseEventToLayerPoint(t),s,r,l=this._drawFirst;l;l=l.next)s=l.layer,s.options.interactive&&s._containsPoint(i)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(s))&&(r=s);this._fireEvent(r?[r]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(lt(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var s,r,l=this._drawFirst;l;l=l.next)s=l.layer,s.options.interactive&&s._containsPoint(i)&&(r=s);r!==this._hoveredLayer&&(this._handleMouseOut(t),r&&(B(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseover"),this._hoveredLayer=r)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(S(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,s){this._map._fireDOMEvent(i,s||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var s=i.next,r=i.prev;if(s)s.prev=r;else return;r?r.next=s:s&&(this._drawFirst=s),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t)}},_bringToBack:function(t){var i=t._order;if(i){var s=i.next,r=i.prev;if(r)r.next=s;else return;s?s.prev=r:r&&(this._drawLast=r),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)}}});function _o(t){return x.canvas?new co(t):null}var xn=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">')}}(),qo={_initContainer:function(){this._container=X("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Se.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=xn("shape");B(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=xn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[P(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;nt(i),t.removeInteractiveTarget(i),delete this._layers[P(t)]},_updateStyle:function(t){var i=t._stroke,s=t._fill,r=t.options,l=t._container;l.stroked=!!r.stroke,l.filled=!!r.fill,r.stroke?(i||(i=t._stroke=xn("stroke")),l.appendChild(i),i.weight=r.weight+"px",i.color=r.color,i.opacity=r.opacity,r.dashArray?i.dashStyle=ut(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=r.lineCap.replace("butt","flat"),i.joinstyle=r.lineJoin):i&&(l.removeChild(i),t._stroke=null),r.fill?(s||(s=t._fill=xn("fill")),l.appendChild(s),s.color=r.fillColor||r.color,s.opacity=r.fillOpacity):s&&(l.removeChild(s),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),s=Math.round(t._radius),r=Math.round(t._radiusY||s);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+s+","+r+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ae(t._container)},_bringToBack:function(t){Xt(t._container)}},jn=x.vml?xn:ge,wn=Se.extend({_initContainer:function(){this._container=jn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=jn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){nt(this._container),et(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Se.prototype._update.call(this);var t=this._bounds,i=t.getSize(),s=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,s.setAttribute("width",i.x),s.setAttribute("height",i.y)),Z(s,t.min),s.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=jn("path");t.options.className&&B(i,t.options.className),t.options.interactive&&B(i,"leaflet-interactive"),this._updateStyle(t),this._layers[P(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){nt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[P(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,s=t.options;i&&(s.stroke?(i.setAttribute("stroke",s.color),i.setAttribute("stroke-opacity",s.opacity),i.setAttribute("stroke-width",s.weight),i.setAttribute("stroke-linecap",s.lineCap),i.setAttribute("stroke-linejoin",s.lineJoin),s.dashArray?i.setAttribute("stroke-dasharray",s.dashArray):i.removeAttribute("stroke-dasharray"),s.dashOffset?i.setAttribute("stroke-dashoffset",s.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),s.fill?(i.setAttribute("fill",s.fillColor||s.color),i.setAttribute("fill-opacity",s.fillOpacity),i.setAttribute("fill-rule",s.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,ei(t._parts,i))},_updateCircle:function(t){var i=t._point,s=Math.max(Math.round(t._radius),1),r=Math.max(Math.round(t._radiusY),1)||s,l="a"+s+","+r+" 0 1,0 ",u=t._empty()?"M0 0":"M"+(i.x-s)+","+i.y+l+s*2+",0 "+l+-s*2+",0 ";this._setPath(t,u)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ae(t._path)},_bringToBack:function(t){Xt(t._path)}});x.vml&&wn.include(qo);function fo(t){return x.svg||x.vml?new wn(t):null}
1U.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var i=this._paneRenderers[t];return i===void 0&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&_o(t)||fo(t)}});var po=N.extend({initialize:function(t,i){N.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=O(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Go(t,i){return new po(t,i)}wn.create=jn,wn.pointsToPath=ei,dt.geometryToLayer=vt,dt.coordsToLatLng=gn,dt.coordsToLatLngs=xi,dt.latLngToCoords=vn,dt.latLngsToCoords=rt,dt.getFeature=re,dt.asFeature=wi,U.mergeOptions({boxZoom:!0});var mo=Ft.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(){H(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){et(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){nt(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(),Tt(),ci(),this._startPoint=this._map.mouseEventToContainerPoint(t),H(document,{contextmenu:It,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=X("div","leaflet-zoom-box",this._container),B(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new K(this._point,this._startPoint),s=i.getSize();Z(this._box,i.min),this._box.style.width=s.x+"px",this._box.style.height=s.y+"px"},_finish:function(){this._moved&&(nt(this._box),lt(this._container,"leaflet-crosshair")),Ie(),Mt(),et(document,{contextmenu:It,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(S(this._resetState,this),0);var i=new J(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});U.addInitHook("addHandler","boxZoom",mo),U.mergeOptions({doubleClickZoom:!0});var go=Ft.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,s=i.getZoom(),r=i.options.zoomDelta,l=t.originalEvent.shiftKey?s-r:s+r;i.options.doubleClickZoom==="center"?i.setZoom(l):i.setZoomAround(t.containerPoint,l)}});U.addInitHook("addHandler","doubleClickZoom",go),U.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var vo=Ft.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Kt(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))}B(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){lt(this._map._container,"leaflet-grab"),lt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved}
vendor: 7,802 bytes, line 1
1,moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=O(this._map.options.maxBounds);this._offsetLimit=Q(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,s=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(s),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),s=this._initialWorldOffset,r=this._draggable._newPos.x,l=(r-i+s)%t+i-s,u=(r+i+s)%t-i-s,_=Math.abs(l+s)<Math.abs(u+s)?l:u;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=_},_onDragEnd:function(t){var i=this._map,s=i.options,r=!s.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),r)i.fire("moveend");else{this._prunePositions(+new Date);var l=this._lastPos.subtract(this._positions[0]),u=(this._lastTime-this._times[0])/1e3,_=s.easeLinearity,m=l.multiplyBy(_/u),g=m.distanceTo([0,0]),y=Math.min(s.inertiaMaxSpeed,g),T=m.multiplyBy(y/g),A=y/(s.inertiaDeceleration*_),Y=T.multiplyBy(-A/2).round();!Y.x&&!Y.y?i.fire("moveend"):(Y=i._limitOffset(Y,i.options.maxBounds),$(function(){i.panBy(Y,{duration:A,easeLinearity:_,noMoveStart:!0,animate:!0})}))}}});U.addInitHook("addHandler","dragging",vo),U.mergeOptions({keyboard:!0,keyboardPanDelta:80});var yo=Ft.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"),H(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(),et(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,s=t.scrollTop||i.scrollTop,r=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(r,s)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},s=this.keyCodes,r,l;for(r=0,l=s.left.length;r<l;r++)i[s.left[r]]=[-1*t,0];for(r=0,l=s.right.length;r<l;r++)i[s.right[r]]=[t,0];for(r=0,l=s.down.length;r<l;r++)i[s.down[r]]=[0,t];for(r=0,l=s.up.length;r<l;r++)i[s.up[r]]=[0,-1*t]},_setZoomDelta:function(t){var i=this._zoomKeys={},s=this.keyCodes,r,l;for(r=0,l=s.zoomIn.length;r<l;r++)i[s.zoomIn[r]]=t;for(r=0,l=s.zoomOut.length;r<l;r++)i[s.zoomOut[r]]=-t},_addHooks:function(){H(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){et(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i=t.keyCode,s=this._map,r;if(i in this._panKeys){if(!s._panAnim||!s._panAnim._inProgress)if(r=this._panKeys[i],t.shiftKey&&(r=M(r).multiplyBy(3)),s.options.maxBounds&&(r=s._limitOffset(M(r),s.options.maxBounds)),s.options.worldCopyJump){var l=s.wrapLatLng(s.unproject(s.project(s.getCenter()).add(r)));s.panTo(l)}else s.panBy(r)}else if(i in this._zoomKeys)s.setZoom(s.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else if(i===27&&s._popup&&s._popup.options.closeOnEscapeKey)s.closePopup();else return;It(t)}}});U.addInitHook("addHandler","keyboard",yo),U.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var xo=Ft.extend({addHooks:function(){H(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){et(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=dn(t),s=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var r=Math.max(s-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(S(this._performZoom,this),r),It(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),s=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(this._map.options.wheelPxPerZoomLevel*4),l=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,u=s?Math.ceil(l/s)*s:l,_=t._limitZoom(i+(this._delta>0?u:-u))-i;this._delta=0,this._startTime=null,_&&(t.options.scrollWheelZoom==="center"?t.setZoom(i+_):t.setZoomAround(this._lastMousePos,i+_))}});U.addInitHook("addHandler","scrollWheelZoom",xo);var Ko=600;U.mergeOptions({tapHold:x.touchNative&&x.safari&&x.mobile,tapTolerance:15});var wo=Ft.extend({addHooks:function(){H(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){et(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var i=t.touches[0];this._startPos=this._newPos=new W(i.clientX,i.clientY),this._holdTimeout=setTimeout(S(function(){this._cancel(),this._isTapValid()&&(H(document,"touchend",_t),H(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),Ko),H(document,"touchend touchcancel contextmenu",this._cancel,this),H(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){et(document,"touchend",_t),et(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),et(document,"touchend touchcancel contextmenu",this._cancel,this),et(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new W(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var s=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});s._simulated=!0,i.target.dispatchEvent(s)}});U.addInitHook("addHandler","tapHold",wo),U.mergeOptions({touchZoom:x.touch,bounceAtZoomLimits:!0});var bo=Ft.extend({addHooks:function(){B(this._map._container,"leaflet-touch-zoom"),H(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){lt(this._map._container,"leaflet-touch-zoom"),et(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming)){var s=i.mouseEventToContainerPoint(t.touches[0]),r
1=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(s.add(r)._divideBy(2))),this._startDist=s.distanceTo(r),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),H(document,"touchmove",this._onTouchMove,this),H(document,"touchend touchcancel",this._onTouchEnd,this),_t(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var i=this._map,s=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),l=s.distanceTo(r)/this._startDist;if(this._zoom=i.getScaleZoom(l,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&l<1||this._zoom>i.getMaxZoom()&&l>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,l===1)return}else{var u=s._add(r)._divideBy(2)._subtract(this._centerPoint);if(l===1&&u.x===0&&u.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(u),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),at(this._animRequest);var _=S(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(_,this,!0),_t(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,at(this._animRequest),et(document,"touchmove",this._onTouchMove,this),et(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))}});U.addInitHook("addHandler","touchZoom",bo),U.BoxZoom=mo,U.DoubleClickZoom=go,U.Drag=vo,U.Keyboard=yo,U.ScrollWheelZoom=xo,U.TapHold=wo,U.TouchZoom=bo,d.Bounds=K,d.Browser=x,d.CRS=Pt,d.Canvas=co,d.Circle=v,d.CircleMarker=p,d.Class=xt,d.Control=zt,d.DivIcon=ho,d.DivOverlay=_e,d.DomEvent=Ct,d.DomUtil=An,d.Draggable=Kt,d.Evented=I,d.FeatureGroup=Rt,d.GeoJSON=dt,d.GridLayer=yn,d.Handler=Ft,d.Icon=Ye,d.ImageOverlay=Hn,d.LatLng=z,d.LatLngBounds=J,d.Layer=gt,d.LayerGroup=se,d.LineUtil=vi,d.Map=U,d.Marker=a,d.Mixin=Bi,d.Path=c,d.Point=W,d.PolyUtil=Di,d.Polygon=N,d.Polyline=b,d.Popup=Fn,d.PosAnimation=Me,d.Projection=Rn,d.Rectangle=po,d.Renderer=Se,d.SVG=wn,d.SVGOverlay=ao,d.TileLayer=ji,d.Tooltip=Wn,d.Transformation=me,d.Util=Kn,d.VideoOverlay=ro,d.bind=S,d.bounds=Q,d.canvas=_o,d.circle=w,d.circleMarker=f,d.control=Fe,d.divIcon=jo,d.extend=R,d.featureGroup=yi,d.geoJSON=so,d.geoJson=No,d.gridLayer=Uo,d.icon=e,d.imageOverlay=Ro,d.latLng=j,d.latLngBounds=O,d.layerGroup=Wi,d.map=He,d.marker=h,d.point=M,d.polygon=st,d.polyline=G,d.popup=Fo,d.rectangle=Go,d.setOptions=E,d.stamp=P,d.svg=fo,d.svgOverlay=Ho,d.tileLayer=lo,d.tooltip=Wo,d.transformation=ti,d.version=k,d.videoOverlay=Do;var Yo=window.L;d.noConflict=function(){return window.L=Yo,this},window.L=d})});var ks=no(ko()),Bo=no(Co());var bn=no(Eo()),us=` 2<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 3 <path d="M50.01,0C31.59,0,16.66,14.91,16.66,33.33c0,5.93,1.59,11.47,4.3,16.26.46.83,29.05,50.41,29.05,50.41,0,0,28.59-49.59,29.05-50.41,2.7-4.79,4.28-10.33,4.28-16.26C83.34,14.91,68.43,0,50.01,0ZM50.01,49.61c-8.57,0-15.52-6.95-15.52-15.52s6.95-15.52,15.52-15.52,15.5,6.95,15.5,15.52-6.94,15.52-15.5,15.52Z" stroke-width="0"/> 4</svg> 5`,cs=` 6<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 7 <path d="M50.01,77.65c-2.12,0-4.24.08-6.32.22.79,1.36,1.53,2.65,2.21,3.82,1.32-.07,2.7-.09,4.11-.09s2.79.03,4.11.09c.68-1.17,1.42-2.46,2.21-3.82-2.08-.14-4.2-.22-6.32-.22ZM59.19,78.12c-.75,1.32
7-1.47,2.58-2.15,3.75,12.27.99,19.78,4.45,19.78,6.95,0,2.95-10.45,7.23-26.83,7.23s-26.84-4.28-26.84-7.23c0-2.5,7.52-5.96,19.8-6.95-.68-1.17-1.41-2.44-2.16-3.75-11.74,1.22-21.59,4.86-21.59,10.7,0,7.33,15.48,11.18,30.79,11.18s30.78-3.84,30.78-11.18c0-5.84-9.85-9.48-21.59-10.7Z" stroke-width="0"/> 8 <path d="M50.01,0c-16.36,0-29.62,13.24-29.62,29.6,0,5.25,1.41,10.18,3.82,14.44.28.5,11.94,20.73,19.48,33.83.79,1.36,1.53,2.65,2.21,3.82,2.46,4.28,4.11,7.13,4.11,7.13,0,0,1.65-2.86,4.11-7.13.68-1.17,1.42-2.46,2.21-3.82,7.54-13.1,19.19-33.33,19.47-33.83,2.41-4.26,3.82-9.19,3.82-14.44,0-16.36-13.26-29.6-29.6-29.6ZM49.99,44.19c-7.67,0-13.9-6.23-13.9-13.9s6.23-13.9,13.9-13.9,13.91,6.21,13.91,13.9-6.23,13.9-13.91,13.9Z" stroke-width="0"/> 9</svg> 10`,ds=` 11<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 12 <path d="M80.38,18.43h-.01c-4.18-8.03-11.39-14.08-20.02-16.84h0c-3.25-1.04-6.73-1.6-10.34-1.6-10.5,0-19.92,4.75-26.21,12.21-5.19,6.16-8.02,13.95-8.02,22,0,6.43,1.27,11.66,3.38,16.32h0c3.57,7.9,9.47,14.24,15.55,22.21h.03c1.93,2.54,3.88,5.24,5.78,8.22,6.93,10.73,5.02,19.03,9.49,19.03s2.57-8.32,9.49-19.06c11.44-17.85,24.74-25.97,24.74-46.73,0-5.69-1.4-11.06-3.85-15.78ZM50,52.58c-10.13,0-18.33-8.22-18.33-18.35s8.2-18.33,18.33-18.33,18.35,8.2,18.35,18.33-8.22,18.35-18.35,18.35Z" stroke-width="0"/> 13</svg> 14`,_s=` 15<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 16 <path d="M50,0C29.48,0,12.84,16.65,12.84,37.16s22.94,48.6,37.18,62.84c14.25-14.23,37.15-41.48,37.15-62.84S70.53,0,50,0ZM50,61.14c-12.32,0-22.32-9.99-22.32-22.32s9.99-22.32,22.32-22.32,22.32,9.98,22.32,22.32-9.99,22.32-22.32,22.32Z" stroke-width="0"/> 17 <path d="M64.97,38.83c0,8.26-6.7,14.96-14.97,14.96s-14.97-6.7-14.97-14.96,6.7-14.97,14.97-14.97,14.97,6.7,14.97,14.97Z" stroke-width="0"/> 18</svg> 19`,fs=` 20<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 21 <path d="M92.14,14.68v43.03l-1.84-1.19c-9.52-6.12-21.74-6.13-31.27,0l-1.84,1.18h0s-1.84,1.19-1.84,1.19c-9.52,6.13-21.75,6.13-31.27,0l-1.84-1.18V14.68l1.84,1.19c9.52,6.12,21.74,6.13,31.27,0l1.84-1.18h0s0,0,0,0l1.84-1.18c9.52-6.13,21.75-6.13,31.27,0l1.84,1.18Z" stroke-width="0"/> 22 <path d="M20.41,6.28c0,2.17-1.09,4.08-2.77,5.22v86.47c0,1.12-1.57,2.04-3.51,2.04s-3.49-.91-3.49-2.04V11.51c-1.68-1.14-2.77-3.06-2.77-5.23,0-3.46,2.8-6.28,6.26-6.28s6.28,2.82,6.28,6.28Z" stroke-width="0"/> 23</svg> 24`,ps=` 25<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 26 <path d="M71.3,51.95H28.7c1.3-5.5,4.68-10.2,9.26-13.2l5.09-30.86h-1.67c-2.18,0-3.94-1.76-3.94-3.94,0-1.1.45-2.07,1.15-2.79.72-.72,1.71-1.16,2.79-1.16h17.24c2.18,0,3.94,1.77,3.94,3.95,0,1.1-.43,2.07-1.15,2.79s-1.69,1.15-2.79,1.15h-1.67l5.09,30.84c1.25.83,2.4,1.77,3.45,2.82,2.82,2.82,4.87,6.39,5.81,10.4Z" stroke-width="0"/> 27 <path d="M48.84,98.89l-3.76-40.69h9.83l-3.76,40.69c-.13,1.41-2.18,1.41-2.31,0Z" stroke-width="0"/> 28</svg> 29`,ms=` 30<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 31 <g> 32 <path d="M54.02,98.5h-.07c.05.08.07.16.07.24,0,.71-1.8,1.3-4.02,1.3s-4.02-.59-4.02-1.3c0-.08.02-.16.07-.24h-.07v-47.01c1.31.19,2.65.3,4.02.3s2.71-.1,4.02-.3v47.01Z" stroke-width="0"/> 33 <path d="M74.15,24.19c0,11.97-8.71,21.9-20.14,23.82-1.3.22-2.65.33-4.02.33s-2.71-.11-4.02-.33c-11.43-1.9-20.14-11.84-20.14-23.82C25.85,10.85,36.66.04,50,.04s24.15,10.81,24.15,24.15Z" stroke-width="0"/> 34 </g> 35 <circle cx="59.29" cy="18.35" r="5.85" fill="#fff" stroke-width="0"/> 36</svg> 37`,gs=` 38<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 39 <path d="M50,18.59V0C31.57.01,16.66,14.91,16.66,33.34c0,5.93,1.59,11.47,4.3,16.26.46.82,28.16,48.89,29.04,50.4v-50.37c-8.57-.01-15.51-6.95-15.51-15.52s6.94-15.51,15.51-15.52Z" style="stroke-width: 0px;"/> 40 <path d="M65.51,34.11c0,8.57-6.94,15.51-15.51,15.52v50.37c.87-1.51,28.58-49.58,29.04-50.4,2.71-4.79,4.3-10.33,4.3-16.26,0-18.43-14.91-33.32-33.34-33.34v18.59c8.57.01,15.51,6.95,15.51,15.52Z" style="fill: #000001; stroke-width: 0px;"/> 41 <g style="opacity: .7;"> 42 <path d="M65.51,34.11c0,8.57-6.94,15.51-15.51,15.52v50.37c.87-1.51,28.58-49.58,29.04-50.4,2.71-4.79,4.3-10.33,4.3-16.26,0-18.43-14.91-33.32-33.34-33.34v18.59c8.57.01,15.51,6.95,15.51,15.52Z" style="stroke-width: 0px;"/> 43 </g> 44</svg> 45`,vs=` 46<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 47 <path d="M50,55.9c-12.02,0-21.8-9.78-21.8-21.8s9.78-21.8,21.8-21.8,21.8,9.78,21.8,21.8-9.78,21.8-21.8,21.8ZM50,19.71c-
477.93,0-14.39,6.45-14.39,14.39s6.45,14.39,14.39,14.39,14.39-6.45,14.39-14.39-6.45-14.39-14.39-14.39Z" style="fill: #000001; stroke-width: 0px;"/> 48 <g style="opacity: .7;"> 49 <path d="M50,55.9c-12.02,0-21.8-9.78-21.8-21.8s9.78-21.8,21.8-21.8,21.8,9.78,21.8,21.8-9.78,21.8-21.8,21.8ZM50,19.71c-7.93,0-14.39,6.45-14.39,14.39s6.45,14.39,14.39,14.39,14.39-6.45,14.39-14.39-6.45-14.39-14.39-14.39Z" style="stroke-width: 0px;"/> 50 </g> 51 <path d="M50.01,0C31.59,0,16.66,14.91,16.66,33.33c0,5.93,1.59,11.47,4.3,16.26.46.83,29.05,50.41,29.05,50.41,0,0,28.59-49.59,29.05-50.41,2.7-4.79,4.28-10.33,4.28-16.26C83.34,14.91,68.43,0,50.01,0ZM49.99,55.9c-12.02,0-21.8-9.78-21.8-21.8s9.78-21.8,21.8-21.8,21.8,9.78,21.8,21.8-9.77,21.8-21.8,21.8Z" style="stroke-width: 0px;"/> 52</svg> 53`,ys=[us,cs,ds,_s,fs,ps,ms,gs,vs];function Oo(d){let k=null;if(d.media.hasOwnProperty("icon")){let ht=[[.5,1],[.5,.875],[.5,1],[.5,1],[.14,1],[.5,1],[.5,1],[.5,1],[.5,1]][d.media.icon];k=bn.default.divIcon({className:"cm4all-maps-marker",dataTest:"bollo",html:oo(d,ys[d.media.icon]),iconSize:[d.size,d.size],iconAnchor:[d.size*ht[0],d.size*ht[1]],popupAnchor:[0,-d.size]})}else d.media.hasOwnProperty("xml")?k=bn.default.divIcon({className:"cm4all-maps-marker",html:oo(d,d.media.xml),iconSize:[d.size,d.size],iconAnchor:[d.size/2,d.size],popupAnchor:[0,-d.size]}):d.media.hasOwnProperty("url")&&(k=bn.default.divIcon({className:"cm4all-maps-marker",html:oo(d,`<img src="${d.media.url}" style="width:100%" />`),iconSize:[d.size,d.size],iconAnchor:[d.size/2,d.size],popupAnchor:[0,-d.size]}));return k}function oo(d,k){return bn.default.Util.template(`<div title="${d.name}" aria-label="${d.name} ${d.text}" 54 role="img" style="fill:${d.color}; filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, ${d.shadow/100}));">${k}</div>`)}var Ao=["https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"],Io='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';window.addEventListener("load",()=>{xs.init()});var xs={mapsData:{},init(){this.update(),this.createMaps(),this.removeHandles()},removeHandles(){document.querySelector(".cm4all-maps .components-resizable-box__container").classList.remove("has-show-handle");let d=document.querySelector(".cm4all-maps .components-resizable-box__handle").parentElement;d!==null&&d.remove()},update(){this.mapsData=[];let d=document.querySelectorAll(".cm4all-maps .container");document.querySelectorAll("[href^='#skip-map-']").forEach(R=>{R.innerText=(0,Bo.__)("Skip the following map","cm4all-maps")}),[...d].forEach(R=>{let ht=R.dataset,S={api:ht.api,mapStyle:parseInt(ht.mapStyle,10),filter:ht.filter,location:ht.location.split(",").map(P=>parseFloat(P,10)),zoom:parseInt(ht.zoom,10),marker:[],element:R};[...R.querySelectorAll("figure")].forEach(P=>{let jt=P.dataset;S.marker.push({position:jt.position.split(",").map(Ut=>parseFloat(Ut,10)),text:jt.text,name:jt.name,media:JSON.parse(jt.media),color:jt.color,shadow:parseInt(jt.shadow),size:parseInt(jt.size)})}),this.mapsData.push(S)})},createMaps(){[...this.mapsData].forEach(d=>{if(d.api==="openStreetMap"){let k=window.L.map(d.element).setView({lat:d.location[0],lng:d.location[1]},d.zoom),R=Ao[d.mapStyle];window.L.tileLayer(R,{attribution:Io}).addTo(k),[...d.marker].forEach(ht=>{let S=Oo(ht),Ce=ht.text.split(` 55`).map(P=>`<p class="text">${P}</p>`).join("");window.L.marker(ht.position,{icon:S}).addTo(k).bindPopup(`<div class='cm4all-maps-popup'> 56 <p class="name">${ht.name}</p> 57 ${Ce} 58 </div>`)})}})}};})(); 59/*! Bundled license information: 60 61leaflet/dist/leaflet.js: 62 (* @preserve 63 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com 64 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade 65 *) 66 67leaflet/dist/leaflet-src.js: 68 (* @preserve 69 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com 70 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade 71 *) 72*/
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.