UNPKG

pkm-sv-maps

Version:

A repo for Paldea maps.

1 lines 157 kB
"use strict";(()=>{var Yo=Object.create;var Ei=Object.defineProperty;var jo=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Qo=Object.getPrototypeOf,ts=Object.prototype.hasOwnProperty;var a=(u,d)=>Ei(u,"name",{value:d,configurable:!0});var es=(u,d)=>()=>(d||u((d={exports:{}}).exports,d),d.exports);var is=(u,d,g,tt)=>{if(d&&typeof d=="object"||typeof d=="function")for(let T of Xo(d))!ts.call(u,T)&&T!==g&&Ei(u,T,{get:()=>d[T],enumerable:!(tt=jo(d,T))||tt.enumerable});return u};var ns=(u,d,g)=>(g=u!=null?Yo(Qo(u)):{},is(d||!u||!u.__esModule?Ei(g,"default",{value:u,enumerable:!0}):g,u));var Bn=es((Fe,On)=>{(function(u,d){typeof Fe=="object"&&typeof On<"u"?d(Fe):typeof define=="function"&&define.amd?define(["exports"],d):d(u.L={})})(Fe,function(u){"use strict";var d="1.7.1";function g(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++){o=arguments[i];for(e in o)t[e]=o[e]}return t}a(g,"extend");var tt=Object.create||function(){function t(){}return a(t,"F"),function(e){return t.prototype=e,new t}}();function T(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}a(T,"bind");var _e=0;function k(t){return t._leaflet_id=t._leaflet_id||++_e,t._leaflet_id}a(k,"stamp");function me(t,e,i){var n,o,s,r;return r=a(function(){n=!1,o&&(s.apply(i,o),o=!1)},"later"),s=a(function(){n?o=arguments:(t.apply(i,arguments),setTimeout(r,e),n=!0)},"wrapperFn"),s}a(me,"throttle");function zt(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}a(zt,"wrapNum");function F(){return!1}a(F,"falseFn");function p(t,e){var i=Math.pow(10,e===void 0?6:e);return Math.round(t*i)/i}a(p,"formatNum");function x(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}a(x,"trim");function b(t){return x(t).split(/\s+/)}a(b,"splitWords");function _(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?tt(t.options):{});for(var i in e)t.options[i]=e[i];return t.options}a(_,"setOptions");function O(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}a(O,"getParamString");var v=/\{ *([\w_-]+) *\}/g;function y(t,e){return t.replace(v,function(i,n){var o=e[n];if(o===void 0)throw new Error("No value provided for variable "+i);return typeof o=="function"&&(o=o(e)),o})}a(y,"template");var Z=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function V(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}a(V,"indexOf");var K="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function z(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}a(z,"getPrefixed");var J=0;function X(t){var e=+new Date,i=Math.max(0,16-(e-J));return J=e+i,window.setTimeout(t,i)}a(X,"timeoutDefer");var Q=window.requestAnimationFrame||z("RequestAnimationFrame")||X,Y=window.cancelAnimationFrame||z("CancelAnimationFrame")||z("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function D(t,e,i){if(i&&Q===X)t.call(e);else return Q.call(window,T(t,e))}a(D,"requestAnimFrame");function et(t){t&&Y.call(window,t)}a(et,"cancelAnimFrame");var Rn={extend:g,create:tt,bind:T,lastId:_e,stamp:k,throttle:me,wrapNum:zt,falseFn:F,formatNum:p,trim:x,splitWords:b,setOptions:_,getParamString:O,template:y,isArray:Z,indexOf:V,emptyImageUrl:K,requestFn:Q,cancelFn:Y,requestAnimFrame:D,cancelAnimFrame:et};function pt(){}a(pt,"Class"),pt.extend=function(t){var e=a(function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},"NewClass"),i=e.__super__=this.prototype,n=tt(i);n.constructor=e,e.prototype=n;for(var o in this)Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"&&(e[o]=this[o]);return t.statics&&(g(e,t.statics),delete t.statics),t.includes&&(Fn(t.includes),g.apply(null,[n].concat(t.includes)),delete t.includes),n.options&&(t.options=g(tt(n.options),t.options)),g(n,t),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var s=0,r=n._initHooks.length;s<r;s++)n._initHooks[s].call(this)}},e},pt.include=function(t){return g(this.prototype,t),this},pt.mergeOptions=function(t){return g(this.prototype.options,t),this},pt.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};function Fn(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=Z(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}a(Fn,"checkDeprecatedMixinEvents");var nt={on:function(t,e,i){if(typeof t=="object")for(var n in t)this._on(n,t[n],e);else{t=b(t);for(var o=0,s=t.length;o<s;o++)this._on(t[o],e,i)}return this},off:function(t,e,i){if(!t)delete this._events;else if(typeof t=="object")for(var n in t)this._off(n,t[n],e);else{t=b(t);for(var o=0,s=t.length;o<s;o++)this._off(t[o],e,i)}return this},_on:function(t,e,i){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),i===this&&(i=void 0);for(var o={fn:e,ctx:i},s=n,r=0,h=s.length;r<h;r++)if(s[r].fn===e&&s[r].ctx===i)return;s.push(o)},_off:function(t,e,i){var n,o,s;if(!!this._events&&(n=this._events[t],!!n)){if(!e){for(o=0,s=n.length;o<s;o++)n[o].fn=F;delete this._events[t];return}if(i===this&&(i=void 0),n)for(o=0,s=n.length;o<s;o++){var r=n[o];if(r.ctx===i&&r.fn===e){r.fn=F,this._firingCount&&(this._events[t]=n=n.slice()),n.splice(o,1);return}}}},fire:function(t,e,i){if(!this.listens(t,i))return this;var n=g({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,r=o.length;s<r;s++){var h=o[s];h.fn.call(h.ctx||this,n)}this._firingCount--}}return i&&this._propagateEvent(n),this},listens:function(t,e){var i=this._events&&this._events[t];if(i&&i.length)return!0;if(e){for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0}return!1},once:function(t,e,i){if(typeof t=="object"){for(var n in t)this.once(n,t[n],e);return this}var o=T(function(){this.off(t,e,i).off(t,o,i)},this);return this.on(t,e,i).on(t,o,i)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[k(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[k(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,g({layer:t.target,propagatedFrom:t.target},t),!0)}};nt.addEventListener=nt.on,nt.removeEventListener=nt.clearAllEventListeners=nt.off,nt.addOneTimeEventListener=nt.once,nt.fireEvent=nt.fire,nt.hasEventListeners=nt.listens;var Xt=pt.extend(nt);function w(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}a(w,"Point");var Oi=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(S(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(S(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=Oi(this.x),this.y=Oi(this.y),this},distanceTo:function(t){t=S(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=S(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=S(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function S(t,e,i){return t instanceof w?t:Z(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,e,i)}a(S,"toPoint");function N(t,e){if(!!t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}a(N,"Bounds"),N.prototype={extend:function(t){return t=S(t),!this.min&&!this.max?(this.min=t.clone(),this.max=t.clone()):(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)),this},getCenter:function(t){return new w((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new w(this.min.x,this.max.y)},getTopRight:function(){return new w(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return typeof t[0]=="number"||t instanceof w?t=S(t):t=at(t),t instanceof N?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=at(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=at(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.x<i.x,r=o.y>e.y&&n.y<i.y;return s&&r},isValid:function(){return!!(this.min&&this.max)}};function at(t,e){return!t||t instanceof N?t:new N(t,e)}a(at,"toBounds");function it(t,e){if(!!t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}a(it,"LatLngBounds"),it.prototype={extend:function(t){var e=this._southWest,i=this._northEast,n,o;if(t instanceof B)n=t,o=t;else if(t instanceof it){if(n=t._southWest,o=t._northEast,!n||!o)return this}else return t?this.extend(H(t)||j(t)):this;return!e&&!i?(this._southWest=new B(n.lat,n.lng),this._northEast=new B(o.lat,o.lng)):(e.lat=Math.min(n.lat,e.lat),e.lng=Math.min(n.lng,e.lng),i.lat=Math.max(o.lat,i.lat),i.lng=Math.max(o.lng,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new it(new B(e.lat-n,e.lng-o),new B(i.lat+n,i.lng+o))},getCenter:function(){return new B((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 B(this.getNorth(),this.getWest())},getSouthEast:function(){return new B(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 B||"lat"in t?t=H(t):t=j(t);var e=this._southWest,i=this._northEast,n,o;return t instanceof it?(n=t.getSouthWest(),o=t.getNorthEast()):n=o=t,n.lat>=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.lat<i.lat,r=o.lng>e.lng&&n.lng<i.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=j(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function j(t,e){return t instanceof it?t:new it(t,e)}a(j,"toLatLngBounds");function B(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,i!==void 0&&(this.alt=+i)}a(B,"LatLng"),B.prototype={equals:function(t,e){if(!t)return!1;t=H(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===void 0?1e-9:e)},toString:function(t){return"LatLng("+p(this.lat,t)+", "+p(this.lng,t)+")"},distanceTo:function(t){return bt.distance(this,H(t))},wrap:function(){return bt.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return j([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new B(this.lat,this.lng,this.alt)}};function H(t,e,i){return t instanceof B?t:Z(t)&&typeof t[0]!="object"?t.length===3?new B(t[0],t[1],t[2]):t.length===2?new B(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new B(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new B(t,e,i)}a(H,"toLatLng");var gt={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},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 e=this.projection.bounds,i=this.scale(t),n=this.transformation.transform(e.min,i),o=this.transformation.transform(e.max,i);return new N(n,o)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?zt(t.lng,this.wrapLng,!0):t.lng,i=this.wrapLat?zt(t.lat,this.wrapLat,!0):t.lat,n=t.alt;return new B(i,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(n===0&&o===0)return t;var s=t.getSouthWest(),r=t.getNorthEast(),h=new B(s.lat-n,s.lng-o),l=new B(r.lat-n,r.lng-o);return new it(h,l)}},bt=g({},gt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),r=Math.sin((e.lng-t.lng)*i/2),h=s*s+Math.cos(n)*Math.cos(o)*r*r,l=2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h));return this.R*l}}),Bi=6378137,He={R:Bi,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new w(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new B((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=Bi*Math.PI;return new N([-t,-t],[t,t])}()};function We(t,e,i,n){if(Z(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=i,this._d=n}a(We,"Transformation"),We.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new w((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function Qt(t,e,i,n){return new We(t,e,i,n)}a(Qt,"toTransformation");var Ge=g({},bt,{code:"EPSG:3857",projection:He,transformation:function(){var t=.5/(Math.PI*He.R);return Qt(t,.5,-t,.5)}()}),Hn=g({},Ge,{code:"EPSG:900913"});function Di(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}a(Di,"svgCreate");function Ni(t,e){var i="",n,o,s,r,h,l;for(n=0,s=t.length;n<s;n++){for(h=t[n],o=0,r=h.length;o<r;o++)l=h[o],i+=(o?"L":"M")+l.x+" "+l.y;i+=e?ye?"z":"x":""}return i||"M0 0"}a(Ni,"pointsToPath");var Ue=document.documentElement.style,pe="ActiveXObject"in window,Dt=pe&&!document.addEventListener,ge="msLaunchUri"in navigator&&!("documentMode"in document),qe=dt("webkit"),te=dt("android"),ee=dt("android 2")||dt("android 3"),Wn=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ri=te&&dt("Google")&&Wn<537&&!("AudioNode"in window),Ve=!!window.opera,$e=!ge&&dt("chrome"),Ke=dt("gecko")&&!qe&&!Ve&&!pe,ve=!$e&&dt("safari"),Fi=dt("phantom"),Hi="OTransition"in Ue,Wi=navigator.platform.indexOf("Win")===0,Je=pe&&"transition"in Ue,Ye="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ee,Gi="MozPerspective"in Ue,ot=!window.L_DISABLE_3D&&(Je||Ye||Gi)&&!Hi&&!Fi,Nt=typeof orientation<"u"||dt("mobile"),Gn=Nt&&qe,Un=Nt&&Ye,Mt=!window.PointerEvent&&window.MSPointerEvent,ct=!!(window.PointerEvent||Mt),ft=!window.L_NO_TOUCH&&(ct||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Ui=Nt&&Ve,qn=Nt&&Ke,kt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Rt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",F,e),window.removeEventListener("testPassiveEventSupport",F,e)}catch{}return t}(),qi=function(){return!!document.createElement("canvas").getContext}(),ye=!!(document.createElementNS&&Di("svg").createSVGRect),we=!ye&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}();function dt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}a(dt,"userAgentContains");var Vn={ie:pe,ielt9:Dt,edge:ge,webkit:qe,android:te,android23:ee,androidStock:Ri,opera:Ve,chrome:$e,gecko:Ke,safari:ve,phantom:Fi,opera12:Hi,win:Wi,ie3d:Je,webkit3d:Ye,gecko3d:Gi,any3d:ot,mobile:Nt,mobileWebkit:Gn,mobileWebkit3d:Un,msPointer:Mt,pointer:ct,touch:ft,mobileOpera:Ui,mobileGecko:qn,retina:kt,passiveEvents:Rt,canvas:qi,svg:ye,vml:we},je=Mt?"MSPointerDown":"pointerdown",Xe=Mt?"MSPointerMove":"pointermove",Qe=Mt?"MSPointerUp":"pointerup",ti=Mt?"MSPointerCancel":"pointercancel",Ft={},Vi=!1;function $n(t,e,i,n){return e==="touchstart"?Jn(t,i,n):e==="touchmove"?Xn(t,i,n):e==="touchend"&&Qn(t,i,n),this}a($n,"addPointerListener");function Kn(t,e,i){var n=t["_leaflet_"+e+i];return e==="touchstart"?t.removeEventListener(je,n,!1):e==="touchmove"?t.removeEventListener(Xe,n,!1):e==="touchend"&&(t.removeEventListener(Qe,n,!1),t.removeEventListener(ti,n,!1)),this}a(Kn,"removePointerListener");function Jn(t,e,i){var n=T(function(o){o.MSPOINTER_TYPE_TOUCH&&o.pointerType===o.MSPOINTER_TYPE_TOUCH&&rt(o),ei(o,e)});t["_leaflet_touchstart"+i]=n,t.addEventListener(je,n,!1),Vi||(document.addEventListener(je,Yn,!0),document.addEventListener(Xe,jn,!0),document.addEventListener(Qe,$i,!0),document.addEventListener(ti,$i,!0),Vi=!0)}a(Jn,"_addPointerStart");function Yn(t){Ft[t.pointerId]=t}a(Yn,"_globalPointerDown");function jn(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}a(jn,"_globalPointerMove");function $i(t){delete Ft[t.pointerId]}a($i,"_globalPointerUp");function ei(t,e){t.touches=[];for(var i in Ft)t.touches.push(Ft[i]);t.changedTouches=[t],e(t)}a(ei,"_handlePointer");function Xn(t,e,i){var n=a(function(o){o.pointerType===(o.MSPOINTER_TYPE_MOUSE||"mouse")&&o.buttons===0||ei(o,e)},"onMove");t["_leaflet_touchmove"+i]=n,t.addEventListener(Xe,n,!1)}a(Xn,"_addPointerMove");function Qn(t,e,i){var n=a(function(o){ei(o,e)},"onUp");t["_leaflet_touchend"+i]=n,t.addEventListener(Qe,n,!1),t.addEventListener(ti,n,!1)}a(Qn,"_addPointerEnd");var xe=Mt?"MSPointerDown":ct?"pointerdown":"touchstart",Pe=Mt?"MSPointerUp":ct?"pointerup":"touchend",Ht="_leaflet_";function to(t,e,i){var n,o,s=!1,r=250;function h(c){if(ct){if(!c.isPrimary||c.pointerType==="mouse")return}else if(c.touches.length>1)return;var f=Date.now(),m=f-(n||f);o=c.touches?c.touches[0]:c,s=m>0&&m<=r,n=f}a(h,"onTouchStart");function l(c){if(s&&!o.cancelBubble){if(ct){if(c.pointerType==="mouse")return;var f={},m,I;for(I in o)m=o[I],f[I]=m&&m.bind?m.bind(o):m;o=f}o.type="dblclick",o.button=0,e(o),n=null}}return a(l,"onTouchEnd"),t[Ht+xe+i]=h,t[Ht+Pe+i]=l,t[Ht+"dblclick"+i]=e,t.addEventListener(xe,h,Rt?{passive:!1}:!1),t.addEventListener(Pe,l,Rt?{passive:!1}:!1),t.addEventListener("dblclick",e,!1),this}a(to,"addDoubleTapListener");function eo(t,e){var i=t[Ht+xe+e],n=t[Ht+Pe+e],o=t[Ht+"dblclick"+e];return t.removeEventListener(xe,i,Rt?{passive:!1}:!1),t.removeEventListener(Pe,n,Rt?{passive:!1}:!1),t.removeEventListener("dblclick",o,!1),this}a(eo,"removeDoubleTapListener");var ii=be(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ie=be(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ki=ie==="webkitTransition"||ie==="OTransition"?ie+"End":"transitionend";function Ji(t){return typeof t=="string"?document.getElementById(t):t}a(Ji,"get");function ne(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}a(ne,"getStyle");function A(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}a(A,"create$1");function R(t){var e=t.parentNode;e&&e.removeChild(t)}a(R,"remove");function Le(t){for(;t.firstChild;)t.removeChild(t.firstChild)}a(Le,"empty");function Wt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}a(Wt,"toFront");function Gt(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}a(Gt,"toBack");function ni(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=Te(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}a(ni,"hasClass");function P(t,e){if(t.classList!==void 0)for(var i=b(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!ni(t,e)){var s=Te(t);oi(t,(s?s+" ":"")+e)}}a(P,"addClass");function W(t,e){t.classList!==void 0?t.classList.remove(e):oi(t,x((" "+Te(t)+" ").replace(" "+e+" "," ")))}a(W,"removeClass");function oi(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}a(oi,"setClass");function Te(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}a(Te,"getClass");function st(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&io(t,e)}a(st,"setOpacity");function io(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch{if(e===1)return}e=Math.round(e*100),i?(i.Enabled=e!==100,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}a(io,"_setOpacityIE");function be(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}a(be,"testProp");function At(t,e,i){var n=e||new w(0,0);t.style[ii]=(Je?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}a(At,"setTransform");function U(t,e){t._leaflet_pos=e,ot?At(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}a(U,"setPosition");function Ct(t){return t._leaflet_pos||new w(0,0)}a(Ct,"getPosition");var oe,se,si;if("onselectstart"in document)oe=a(function(){M(window,"selectstart",rt)},"disableTextSelection"),se=a(function(){G(window,"selectstart",rt)},"enableTextSelection");else{var re=be(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);oe=a(function(){if(re){var t=document.documentElement.style;si=t[re],t[re]="none"}},"disableTextSelection"),se=a(function(){re&&(document.documentElement.style[re]=si,si=void 0)},"enableTextSelection")}function ri(){M(window,"dragstart",rt)}a(ri,"disableImageDrag");function ai(){G(window,"dragstart",rt)}a(ai,"enableImageDrag");var Me,hi;function ui(t){for(;t.tabIndex===-1;)t=t.parentNode;!t.style||(ke(),Me=t,hi=t.style.outline,t.style.outline="none",M(window,"keydown",ke))}a(ui,"preventOutline");function ke(){!Me||(Me.style.outline=hi,Me=void 0,hi=void 0,G(window,"keydown",ke))}a(ke,"restoreOutline");function Yi(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}a(Yi,"getSizedParentNode");function li(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}a(li,"getScale");var no={TRANSFORM:ii,TRANSITION:ie,TRANSITION_END:Ki,get:Ji,getStyle:ne,create:A,remove:R,empty:Le,toFront:Wt,toBack:Gt,hasClass:ni,addClass:P,removeClass:W,setClass:oi,getClass:Te,setOpacity:st,testProp:be,setTransform:At,setPosition:U,getPosition:Ct,disableTextSelection:oe,enableTextSelection:se,disableImageDrag:ri,enableImageDrag:ai,preventOutline:ui,restoreOutline:ke,getSizedParentNode:Yi,getScale:li};function M(t,e,i,n){if(typeof e=="object")for(var o in e)Ce(t,o,e[o],i);else{e=b(e);for(var s=0,r=e.length;s<r;s++)Ce(t,e[s],i,n)}return this}a(M,"on");var ht="_leaflet_events";function G(t,e,i,n){if(typeof e=="object")for(var o in e)fi(t,o,e[o],i);else if(e){e=b(e);for(var s=0,r=e.length;s<r;s++)fi(t,e[s],i,n)}else{for(var h in t[ht])fi(t,h,t[ht][h]);delete t[ht]}return this}a(G,"off");function ji(){if(ct)return!(ge||ve)}a(ji,"browserFiresNativeDblClick");var ci={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ce(t,e,i,n){var o=e+k(i)+(n?"_"+k(n):"");if(t[ht]&&t[ht][o])return this;var s=a(function(h){return i.call(n||t,h||window.event)},"handler"),r=s;ct&&e.indexOf("touch")===0?$n(t,e,s,o):ft&&e==="dblclick"&&!ji()?to(t,s,o):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(ci[e]||e,s,Rt?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(s=a(function(h){h=h||window.event,Se(t,h)&&r(h)},"handler"),t.addEventListener(ci[e],s,!1)):t.addEventListener(e,r,!1):"attachEvent"in t&&t.attachEvent("on"+e,s),t[ht]=t[ht]||{},t[ht][o]=s}a(Ce,"addOne");function fi(t,e,i,n){var o=e+k(i)+(n?"_"+k(n):""),s=t[ht]&&t[ht][o];if(!s)return this;ct&&e.indexOf("touch")===0?Kn(t,e,o):ft&&e==="dblclick"&&!ji()?eo(t,o):"removeEventListener"in t?t.removeEventListener(ci[e]||e,s,!1):"detachEvent"in t&&t.detachEvent("on"+e,s),t[ht][o]=null}a(fi,"removeOne");function It(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,pi(t),this}a(It,"stopPropagation");function di(t){return Ce(t,"wheel",It),this}a(di,"disableScrollPropagation");function ae(t){return M(t,"mousedown touchstart dblclick",It),Ce(t,"click",mi),this}a(ae,"disableClickPropagation");function rt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}a(rt,"preventDefault");function vt(t){return rt(t),It(t),this}a(vt,"stop");function Xi(t,e){if(!e)return new w(t.clientX,t.clientY);var i=li(e),n=i.boundingClientRect;return new w((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}a(Xi,"getMousePosition");var oo=Wi&&$e?2*window.devicePixelRatio:Ke?window.devicePixelRatio:1;function Qi(t){return ge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/oo: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}a(Qi,"getWheelDelta");var _i={};function mi(t){_i[t.type]=!0}a(mi,"fakeStop");function pi(t){var e=_i[t.type];return _i[t.type]=!1,e}a(pi,"skipped");function Se(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}a(Se,"isExternalTarget");var so={on:M,off:G,stopPropagation:It,disableScrollPropagation:di,disableClickPropagation:ae,preventDefault:rt,stop:vt,getMousePosition:Xi,getWheelDelta:Qi,fakeStop:mi,skipped:pi,isExternalTarget:Se,addListener:M,removeListener:G},tn=Xt.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Ct(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){!this._inProgress||(this._step(!0),this._complete())},_animate:function(){this._animId=D(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),U(this._el,i),this.fire("step")},_complete:function(){et(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),E=Xt.extend({options:{crs:Ge,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=_(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=T(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView(H(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ie&&ot&&!Ui&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),M(this._proxy,Ki,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){if(e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter(H(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&i!==!0){i.animate!==void 0&&(i.zoom=g({animate:i.animate},i.zoom),i.pan=g({animate:i.animate,duration:i.duration},i.pan));var n=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan);if(n)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(ot?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(ot?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),s=t instanceof w?t:this.latLngToContainerPoint(t),r=s.subtract(o).multiplyBy(1-1/n),h=this.containerPointToLatLng(o.add(r));return this.setView(h,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var i=S(e.paddingTopLeft||e.padding||[0,0]),n=S(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if(o=typeof e.maxZoom=="number"?Math.min(e.maxZoom,o):o,o===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),o),h=this.project(t.getNorthEast(),o),l=this.unproject(r.add(h).divideBy(2).add(s),o);return{center:l,zoom:o}},fitBounds:function(t,e){if(t=j(t),!t.isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=S(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(e.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 tn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){P(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(i=i||{},i.animate===!1||!ot)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),r=this._zoom;t=H(t),e=e===void 0?r:e;var h=Math.max(s.x,s.y),l=h*this.getZoomScale(r,e),c=o.distanceTo(n)||1,f=1.42,m=f*f;function I(q){var Re=q?-1:1,Vo=q?l:h,$o=l*l-h*h+Re*m*m*c*c,Ko=2*Vo*m*c,Si=$o/Ko,Zn=Math.sqrt(Si*Si+1)-Si,Jo=Zn<1e-9?-18:Math.log(Zn);return Jo}a(I,"r");function Lt(q){return(Math.exp(q)-Math.exp(-q))/2}a(Lt,"sinh");function Bt(q){return(Math.exp(q)+Math.exp(-q))/2}a(Bt,"cosh");function Ne(q){return Lt(q)/Bt(q)}a(Ne,"tanh");var Et=I(0);function Ci(q){return h*(Bt(Et)/Bt(Et+f*q))}a(Ci,"w");function Wo(q){return h*(Bt(Et)*Ne(Et+f*q)-Lt(Et))/m}a(Wo,"u");function Go(q){return 1-Math.pow(1-q,1.5)}a(Go,"easeOut");var Uo=Date.now(),An=(I(1)-Et)/f,qo=i.duration?1e3*i.duration:1e3*An*.8;function In(){var q=(Date.now()-Uo)/qo,Re=Go(q)*An;q<=1?(this._flyToFrame=D(In,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(Wo(Re)/c)),r),this.getScaleZoom(h/Ci(Re),r),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return a(In,"frame"),this._moveStart(!0,i.noMoveStart),In.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){if(t=j(t),t.isValid())this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds);else return this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds);return this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,j(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=S(e.paddingTopLeft||e.padding||[0,0]),n=S(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),s=this.project(o),r=this.project(t),h=this.getPixelBounds(),l=h.getSize().divideBy(2),c=at([h.min.add(i),h.max.subtract(n)]);if(!c.contains(r)){this._enforcingBounds=!0;var f=s.subtract(r),m=S(r.x+f.x,r.y+f.y);(r.x<c.min.x||r.x>c.max.x)&&(m.x=s.x-f.x,f.x>0?m.x+=l.x-i.x:m.x-=l.x-n.x),(r.y<c.min.y||r.y>c.max.y)&&(m.y=s.y-f.y,f.y>0?m.y+=l.y-i.y:m.y-=l.y-n.y),this.panTo(this.unproject(m),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=g({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),s=n.subtract(o);return!s.x&&!s.y?this:(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(T(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=g({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=T(this._handleGeolocationResponse,this),i=T(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,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){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,i=t.coords.longitude,n=new B(e,i),o=n.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var r=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(r,s.maxZoom):r)}var h={latlng:n,bounds:o,timestamp:t.timestamp};for(var l in t.coords)typeof t.coords[l]=="number"&&(h[l]=t.coords[l]);this.fire("locationfound",h)},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),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(),R(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(et(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)R(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=A("div",i,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new it(e,i)},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,e,i){t=j(t),i=S(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),h=t.getSouthEast(),l=this.getSize().subtract(i),c=at(this.project(h,n),this.project(r,n)).getSize(),f=ot?this.options.zoomSnap:1,m=l.x/c.x,I=l.y/c.y,Lt=e?Math.max(m,I):Math.min(m,I);return n=this.getScaleZoom(Lt,n),f&&(n=Math.round(n/(f/100))*(f/100),n=e?Math.ceil(n/f)*f:Math.floor(n/f)*f),Math.max(o,Math.min(s,n))},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,e){var i=this._getTopLeftPoint(t,e);return new N(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(S(t),e)},layerPointToLatLng:function(t){var e=S(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(H(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return S(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return S(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(S(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Xi(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 e=this._container=Ji(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");M(e,"scroll",this._onScroll,this),this._containerId=k(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ot,P(t,"leaflet-container"+(ft?" leaflet-touch":"")+(kt?" leaflet-retina":"")+(Dt?" leaflet-oldie":"")+(ve?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ne(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&(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),U(this._mapPane,new w(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(P(t.markerPane,"leaflet-zoom-hide"),P(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){U(this._mapPane,new w(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i){e===void 0&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return et(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){U(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[k(this._container)]=this;var e=t?G:M;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),ot&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){et(this._resizeRequest),this._resizeRequest=D(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i=[],n,o=e==="mouseout"||e==="mouseover",s=t.target||t.srcElement,r=!1;s;){if(n=this._targets[k(s)],n&&(e==="click"||e==="preclick")&&!t._simulated&&this._draggableMoved(n)){r=!0;break}if(n&&n.listens(e,!0)&&(o&&!Se(s,t)||(i.push(n),o))||s===this._container)break;s=s.parentNode}return!i.length&&!r&&!o&&Se(s,t)&&(i=[this]),i},_handleDOMEvent:function(t){if(!(!this._loaded||pi(t))){var e=t.type;(e==="mousedown"||e==="keypress"||e==="keyup"||e==="keydown")&&ui(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=g({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}if(!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,e)),!!i.length)){var o=i[0];e==="contextmenu"&&o.listens(e,!0)&&rt(t);var s={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var r=o.getLatLng&&(!o._radius||o._radius<=10);s.containerPoint=r?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=r?o.getLatLng():this.layerPointToLatLng(s.layerPoint)}for(var h=0;h<i.length;h++)if(i[h].fire(e,s,!0),s.originalEvent._stopped||i[h].options.bubblingMouseEvents===!1&&V(this._mouseEvents,e)!==-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,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Ct(this._mapPane)||new w(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return at([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),s=new N(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,i,e);return r.round().equals([0,0])?t:this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new N(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=at(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),s=n.max.subtract(t.max),r=this._rebound(o.x,-s.x),h=this._rebound(o.y,-s.y);return new w(r,h)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=ot?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){W(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=A("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=ii,n=this._proxy.style[i];At(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){R(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();At(this._proxy,this.project(t,e),this.getZoomScale(e,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,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return i.animate!==!0&&!this.getSize().contains(o)?!1:(D(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,n){!this._mapPane||(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,P(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),setTimeout(T(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){!this._animatingZoom||(this._mapPane&&W(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),D(function(){this._moveEnd(!0)},this))}});function ro(t,e){return new E(t,e)}a(ro,"createMap");var ut=pt.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return P(e,"leaflet-control"),i.indexOf("bottom")!==-1?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(R(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),t