!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="./",t(t.s=268)}([function(e,t,n){var r=n(4),o=n(29),i=n(20),a=n(21),s=n(30),l=function(e,t,n){var u,c,p,f,d=e&l.F,h=e&l.G,m=e&l.S,g=e&l.P,y=e&l.B,v=h?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),w=b.prototype||(b.prototype={});h&&(n=t);for(u in n)c=!d&&v&&void 0!==v[u],p=(c?v:n)[u],f=y&&c?s(p,r):g&&"function"==typeof p?s(Function.call,p):p,v&&a(v,u,p,e&l.U),b[u]!=p&&i(b,u,f),g&&w[u]!=p&&(w[u]=p)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";e.exports=n(477)},function(e,t,n){e.exports=n(481)()},function(e,t,n){var r=n(7);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){!function(e,n){n(t)}(0,function(e){"use strict";function t(e){var t,n,r,o;for(n=1,r=arguments.length;n=0}function M(e,t,n,r){return"touchstart"===t?D(e,n,r):"touchmove"===t?F(e,n,r):"touchend"===t&&B(e,n,r),this}function I(e,t,n){var r=e["_leaflet_"+t+n];return"touchstart"===t?e.removeEventListener(yn,r,!1):"touchmove"===t?e.removeEventListener(vn,r,!1):"touchend"===t&&(e.removeEventListener(bn,r,!1),e.removeEventListener(wn,r,!1)),this}function D(e,t,r){var o=n(function(e){if("mouse"!==e.pointerType&&e.MSPOINTER_TYPE_MOUSE&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE){if(!(_n.indexOf(e.target.tagName)<0))return;xe(e)}z(e,t)});e["_leaflet_touchstart"+r]=o,e.addEventListener(yn,o,!1),Cn||(document.documentElement.addEventListener(yn,N,!0),document.documentElement.addEventListener(vn,A,!0),document.documentElement.addEventListener(bn,q,!0),document.documentElement.addEventListener(wn,q,!0),Cn=!0)}function N(e){xn[e.pointerId]=e,Pn++}function A(e){xn[e.pointerId]&&(xn[e.pointerId]=e)}function q(e){delete xn[e.pointerId],Pn--}function z(e,t){e.touches=[];for(var n in xn)e.touches.push(xn[n]);e.changedTouches=[e],t(e)}function F(e,t,n){var r=function(e){(e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType||0!==e.buttons)&&z(e,t)};e["_leaflet_touchmove"+n]=r,e.addEventListener(vn,r,!1)}function B(e,t,n){var r=function(e){z(e,t)};e["_leaflet_touchend"+n]=r,e.addEventListener(bn,r,!1),e.addEventListener(wn,r,!1)}function U(e,t,n){function r(e){var t;if(sn){if(!qt||"mouse"===e.pointerType)return;t=Pn}else t=e.touches.length;if(!(t>1)){var n=Date.now(),r=n-(i||n);a=e.touches?e.touches[0]:e,s=r>0&&r<=l,i=n}}function o(e){if(s&&!a.cancelBubble){if(sn){if(!qt||"mouse"===e.pointerType)return;var n,r,o={};for(r in a)n=a[r],o[r]=n&&n.bind?n.bind(a):n;a=o}a.type="dblclick",a.button=0,t(a),i=null}}var i,a,s=!1,l=250;return e[On+Sn+n]=r,e[On+En+n]=o,e[On+"dblclick"+n]=t,e.addEventListener(Sn,r,!!fn&&{passive:!1}),e.addEventListener(En,o,!!fn&&{passive:!1}),e.addEventListener("dblclick",t,!1),this}function H(e,t){var n=e[On+Sn+t],r=e[On+En+t],o=e[On+"dblclick"+t];return e.removeEventListener(Sn,n,!!fn&&{passive:!1}),e.removeEventListener(En,r,!!fn&&{passive:!1}),qt||e.removeEventListener("dblclick",o,!1),this}function W(e){return"string"===typeof e?document.getElementById(e):e}function Q(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function $(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function G(e){var t=e.parentNode;t&&t.removeChild(e)}function Z(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function K(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function Y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=ne(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function X(e,t){if(void 0!==e.classList)for(var n=u(t),r=0,o=n.length;r100&&r<500||e.target._simulatedClick&&!e._simulated)return void Ce(e);Mn=n,t(e)}function je(e,t){return new Fn(e,t)}function Ve(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=De(e,n),e=Me(e,n)}function Le(e,t,n){return Math.sqrt(Fe(e,t,n,!0))}function Re(e,t,n){return Fe(e,t,n)}function Me(e,t){var n=e.length,r=typeof Uint8Array!==void 0+""?Uint8Array:Array,o=new r(n);o[0]=o[n-1]=1,Ie(e,o,t,0,n-1);var i,a=[];for(i=0;il&&(i=a,l=s);l>n&&(t[i]=1,Ie(e,t,n,r,i),Ie(e,t,n,i,o))}function De(e,t){for(var n=[e[0]],r=1,o=0,i=e.length;rt&&(n.push(e[r]),o=r);return ot.max.x&&(n|=2),e.yt.max.y&&(n|=8),n}function ze(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function Fe(e,t,n,r){var o,i=t.x,a=t.y,s=n.x-i,l=n.y-a,u=s*s+l*l;return u>0&&(o=((e.x-i)*s+(e.y-a)*l)/u,o>1?(i=n.x,a=n.y):o>0&&(i+=s*o,a+=l*o)),s=e.x-i,l=e.y-a,r?s*s+l*l:new w(i,a)}function Be(e){return!bt(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function Ue(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Be(e)}function He(e,t,n){var r,o,i,a,s,l,u,c,p,f=[1,4,2,8];for(o=0,u=e.length;o0?Math.floor(e):Math.ceil(e)};w.prototype={clone:function(){return new w(this.x,this.y)},add:function(e){return this.clone()._add(_(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(_(e))},_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 w(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new w(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=Ot(this.x),this.y=Ot(this.y),this},distanceTo:function(e){e=_(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=_(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=_(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+s(this.x)+", "+s(this.y)+")"}},x.prototype={extend:function(e){return e=_(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new w((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},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(e){var t,n;return e="number"===typeof e[0]||e instanceof w?_(e):C(e),e instanceof x?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=C(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>=t.x&&r.x<=n.x,a=o.y>=t.y&&r.y<=n.y;return i&&a},overlaps:function(e){e=C(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>t.x&&r.xt.y&&r.y=r.lat&&n.lat<=o.lat&&t.lng>=r.lng&&n.lng<=o.lng},intersects:function(e){e=S(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>=t.lat&&r.lat<=n.lat,a=o.lng>=t.lng&&r.lng<=n.lng;return i&&a},overlaps:function(e){e=S(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>t.lat&&r.latt.lng&&r.lng1,fn=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",a,t),window.removeEventListener("testPassiveEventSupport",a,t)}catch(e){}return e},dn=function(){return!!document.createElement("canvas").getContext}(),hn=!(!document.createElementNS||!j("svg").createSVGRect),mn=!hn&&function(){try{var e=document.createElement("div");e.innerHTML='';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(e){return!1}}(),gn=(Object.freeze||Object)({ie:Nt,ielt9:At,edge:qt,webkit:zt,android:Ft,android23:Bt,androidStock:Ht,opera:Wt,chrome:Qt,gecko:$t,safari:Gt,phantom:Zt,opera12:Jt,win:Kt,ie3d:Yt,webkit3d:Xt,gecko3d:en,any3d:tn,mobile:nn,mobileWebkit:rn,mobileWebkit3d:on,msPointer:an,pointer:sn,touch:ln,mobileOpera:un,mobileGecko:cn,retina:pn,passiveEvents:fn,canvas:dn,svg:hn,vml:mn}),yn=an?"MSPointerDown":"pointerdown",vn=an?"MSPointerMove":"pointermove",bn=an?"MSPointerUp":"pointerup",wn=an?"MSPointerCancel":"pointercancel",_n=["INPUT","SELECT","OPTION"],xn={},Cn=!1,Pn=0,Sn=an?"MSPointerDown":sn?"pointerdown":"touchstart",En=an?"MSPointerUp":sn?"pointerup":"touchend",On="_leaflet_",Tn=ie(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),kn=ie(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),jn="webkitTransition"===kn||"OTransition"===kn?kn+"End":"transitionend";if("onselectstart"in document)Vt=function(){me(window,"selectstart",xe)},Lt=function(){ge(window,"selectstart",xe)};else{var Vn=ie(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Vt=function(){if(Vn){var e=document.documentElement.style;Rt=e[Vn],e[Vn]="none"}},Lt=function(){Vn&&(document.documentElement.style[Vn]=Rt,Rt=void 0)}}var Ln,Rn,Mn,In=(Object.freeze||Object)({TRANSFORM:Tn,TRANSITION:kn,TRANSITION_END:jn,get:W,getStyle:Q,create:$,remove:G,empty:Z,toFront:J,toBack:K,hasClass:Y,addClass:X,removeClass:ee,setClass:te,getClass:ne,setOpacity:re,testProp:ie,setTransform:ae,setPosition:se,getPosition:le,disableTextSelection:Vt,enableTextSelection:Lt,disableImageDrag:ue,enableImageDrag:ce,preventOutline:pe,restoreOutline:fe,getSizedParentNode:de,getScale:he}),Dn="_leaflet_events",Nn=Kt&&Qt?2*window.devicePixelRatio:$t?window.devicePixelRatio:1,An={},qn=(Object.freeze||Object)({on:me,off:ge,stopPropagation:be,disableScrollPropagation:we,disableClickPropagation:_e,preventDefault:xe,stop:Ce,getMousePosition:Pe,getWheelDelta:Se,fakeStop:Ee,skipped:Oe,isExternalTarget:Te,addListener:me,removeListener:ge}),zn=Et.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=le(e),this._offset=t.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=g(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;tthis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,S(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){t=t||{};var n=_(t.paddingTopLeft||t.padding||[0,0]),r=_(t.paddingBottomRight||t.padding||[0,0]),o=this.getCenter(),i=this.project(o),a=this.project(e),s=this.getPixelBounds(),l=s.getSize().divideBy(2),u=C([s.min.add(n),s.max.subtract(r)]);if(!u.contains(a)){this._enforcingBounds=!0;var c=i.subtract(a),p=_(a.x+c.x,a.y+c.y);(a.xu.max.x)&&(p.x=i.x-c.x,c.x>0?p.x+=l.x-n.x:p.x-=l.x-r.x),(a.yu.max.y)&&(p.y=i.y-c.y,c.y>0?p.y+=l.y-n.y:p.y-=l.y-r.y),this.panTo(this.unproject(p),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var r=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),i=r.divideBy(2).round(),a=o.divideBy(2).round(),s=i.subtract(a);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:r,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var r=n(this._handleGeolocationResponse,this),o=n(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(r,o,e):navigator.geolocation.getCurrentPosition(r,o,e),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 t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(e){var t=e.coords.latitude,n=e.coords.longitude,r=new E(t,n),o=r.toBounds(2*e.coords.accuracy),i=this._locateOptions;if(i.setView){var a=this.getBoundsZoom(o);this.setView(r,i.maxZoom?Math.min(a,i.maxZoom):a)}var s={latlng:r,bounds:o,timestamp:e.timestamp};for(var l in e.coords)"number"===typeof e.coords[l]&&(s[l]=e.coords[l]);this.fire("locationfound",s)},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),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(e){this._container._leaflet_id=void 0,this._containerId=void 0}void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),G(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(y(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var e;for(e in this._layers)this._layers[e].remove();for(e in this._panes)G(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),r=$("div",n,t||this._mapPane);return e&&(this._panes[e]=r),r},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new P(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=S(e),n=_(n||[0,0]);var r=this.getZoom()||0,o=this.getMinZoom(),i=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),u=C(this.project(s,r),this.project(a,r)).getSize(),c=tn?this.options.zoomSnap:1,p=l.x/u.x,f=l.y/u.y,d=t?Math.max(p,f):Math.min(p,f);return r=this.getScaleZoom(d,r),c&&(r=Math.round(r/(c/100))*(c/100),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(o,Math.min(i,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(e,t){var n=this._getTopLeftPoint(e,t);return new x(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(O(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(_(e),t)},layerPointToLatLng:function(e){var t=_(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(O(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(O(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(S(e))},distance:function(e,t){return this.options.crs.distance(O(e),O(t))},containerPointToLayerPoint:function(e){return _(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return _(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(_(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(O(e)))},mouseEventToContainerPoint:function(e){return Pe(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=W(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");me(t,"scroll",this._onScroll,this),this._containerId=r(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&tn,X(e,"leaflet-container"+(ln?" leaflet-touch":"")+(pn?" leaflet-retina":"")+(At?" leaflet-oldie":"")+(Gt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=Q(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(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),se(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||(X(e.markerPane,"leaflet-zoom-hide"),X(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){se(this._mapPane,new w(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var r=this._zoom!==t;this._moveStart(r,!1)._move(e,t)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return y(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){se(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={},this._targets[r(this._container)]=this;var t=e?ge:me;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),tn&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){y(this._resizeRequest),this._resizeRequest=g(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,t){for(var n,o=[],i="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,s=!1;a;){if((n=this._targets[r(a)])&&("click"===t||"preclick"===t)&&!e._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(i&&!Te(a,e))break;if(o.push(n),i)break}if(a===this._container)break;a=a.parentNode}return o.length||s||i||!Te(a,e)||(o=[this]),o},_handleDOMEvent:function(e){if(this._loaded&&!Oe(e)){var t=e.type;"mousedown"!==t&&"keypress"!==t&&"keyup"!==t&&"keydown"!==t||pe(e.target||e.srcElement),this._fireDOMEvent(e,t)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,r){if("click"===e.type){var o=t({},e);o.type="preclick",this._fireDOMEvent(o,o.type,r)}if(!e._stopped&&(r=(r||[]).concat(this._findEventTargets(e,n)),r.length)){var i=r[0];"contextmenu"===n&&i.listens(n,!0)&&xe(e);var a={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var s=i.getLatLng&&(!i._radius||i._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(i.getLatLng()):this.mouseEventToContainerPoint(e),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?i.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var l=0;l0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=tn?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ee(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=$("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(e){var t=Tn,n=this._proxy.style[t];ae(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){G(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();ae(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),o=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(o))&&(g(function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,r,o){this._mapPane&&(r&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,X(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:o}),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ee(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),g(function(){this._moveEnd(!0)},this))}}),Bn=v.extend({options:{position:"topright"},initialize:function(e){c(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return X(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(G(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),Un=function(e){return new Bn(e)};Fn.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){function e(e,o){var i=n+e+" "+n+o;t[e+o]=$("div",i,r)}var t=this._controlCorners={},n="leaflet-",r=this._controlContainer=$("div",n+"control-container",this._container);e("top","left"),e("top","right"),e("bottom","left"),e("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)G(this._controlCorners[e]);G(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Hn=Bn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(r(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),o=this._map.hasLayer(e.layer);e.overlay?(t=document.createElement("input"),t.type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=o):t=this._createRadioElement("leaflet-base-layers_"+r(this),o),this._layerControlInputs.push(t),t.layerId=r(e.layer),me(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(t),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,r=[],o=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||o.push(t);for(i=0;i=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&rt.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Wn=function(e,t,n){return new Hn(e,t,n)},Qn=Bn.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=$("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},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._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,o){var i=$("a",n,r);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),_e(i),me(i,"click",Ce),me(i,"click",o,this),me(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";ee(this._zoomInButton,t),ee(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMinZoom())&&X(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMaxZoom())&&X(this._zoomInButton,t)}});Fn.mergeOptions({zoomControl:!0}),Fn.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Qn,this.addControl(this.zoomControl))});var $n=function(e){return new Qn(e)},Gn=Bn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=$("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-line",t),e.on(n.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),t},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=$("div",t,n)),e.imperial&&(this._iScale=$("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,o=3.2808399*e;o>5280?(t=o/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(o),this._updateScale(this._iScale,r+" ft",r/o))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,t*n}}),Zn=function(e){return new Gn(e)},Jn=Bn.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(e){c(this,e),this._attributions={}},onAdd:function(e){e.attributionControl=this,this._container=$("div","leaflet-control-attribution"),_e(this._container);for(var t in e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),this._container},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):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(" | ")}}});Fn.mergeOptions({attributionControl:!0}),Fn.addInitHook(function(){this.options.attributionControl&&(new Jn).addTo(this)});var Kn=function(e){return new Jn(e)};Bn.Layers=Hn,Bn.Zoom=Qn,Bn.Scale=Gn,Bn.Attribution=Jn,Un.layers=Wn,Un.zoom=$n,Un.scale=Zn,Un.attribution=Kn;var Yn=v.extend({initialize:function(e){this._map=e},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}});Yn.addTo=function(e,t){return e.addHandler(t,this),this};var Xn,er={Events:St},tr=ln?"touchstart mousedown":"mousedown",nr={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},rr={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},or=Et.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){c(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(me(this._dragStartTarget,tr,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(or._dragging===this&&this.finishDrag(),ge(this._dragStartTarget,tr,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!e._simulated&&this._enabled&&(this._moved=!1,!Y(this._element,"leaflet-zoom-anim")&&!(or._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(or._dragging=this,this._preventOutline&&pe(this._element),ue(),Vt(),!this._moving))){this.fire("down");var t=e.touches?e.touches[0]:e,n=de(this._element);this._startPoint=new w(t.clientX,t.clientY),this._parentScale=he(n),me(document,rr[e.type],this._onMove,this),me(document,nr[e.type],this._onUp,this)}},_onMove:function(e){if(!e._simulated&&this._enabled){if(e.touches&&e.touches.length>1)return void(this._moved=!0);var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new w(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)1e-7;l++)t=i*Math.sin(s),t=Math.pow((1-t)/(1+t),i/2),u=Math.PI/2-2*Math.atan(a*t)-s,s+=u;return new E(s*n,e.x*n/r)}},ur=(Object.freeze||Object)({LonLat:sr,Mercator:lr,SphericalMercator:jt}),cr=t({},kt,{code:"EPSG:3395",projection:lr,transformation:function(){var e=.5/(Math.PI*lr.R);return k(e,.5,-e,.5)}()}),pr=t({},kt,{code:"EPSG:4326",projection:sr,transformation:k(1/180,1,-1/180,.5)}),fr=t({},Tt,{projection:sr,transformation:k(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});Tt.Earth=kt,Tt.EPSG3395=cr,Tt.EPSG3857=Mt,Tt.EPSG900913=It,Tt.EPSG4326=pr,Tt.Simple=fr;var dr=Et.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[r(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[r(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",function(){t.off(n,this)},this)}this.onAdd(t),this.getAttribution&&t.attributionControl&&t.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),t.fire("layeradd",{layer:this})}}});Fn.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=r(e);return this._layers[t]?this:(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var t=r(e);return this._layers[t]?(this._loaded&&e.onRemove(this),e.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(e.getAttribution()),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return!!e&&r(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?bt(e)?e:[e]:[];for(var t=0,n=e.length;tthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t)return a=(r-t)/n,this._map.layerPointToLatLng([i.x-a*(i.x-o.x),i.y-a*(i.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=O(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new P,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Be(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=Be(e),r=0,o=e.length;r=2&&t[0]instanceof E&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){Sr.prototype._setLatLngs.call(this,e),Be(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Be(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new w(t,t);if(e=new x(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip)return void(this._parts=this._rings);for(var r,o=0,i=this._rings.length;oe.y!==r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||Sr.prototype._containsPoint.call(this,e,!0)}}),Or=gr.extend({initialize:function(e,t){c(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,o=bt(e)?e:e.features;if(o){for(t=0,n=o.length;t0?o:[t.src])}bt(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&t.style.hasOwnProperty("objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop;for(var s=0;so?(t.height=o+"px",X(e,"leaflet-popup-scrolled")):ee(e,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();se(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var e=this._map,t=parseInt(Q(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,o=new w(this._containerLeft,-n-this._containerBottom);o._add(le(this._container));var i=e.layerPointToContainerPoint(o),a=_(this.options.autoPanPadding),s=_(this.options.autoPanPaddingTopLeft||a),l=_(this.options.autoPanPaddingBottomRight||a),u=e.getSize(),c=0,p=0;i.x+r+l.x>u.x&&(c=i.x+r-u.x+l.x),i.x-c-s.x<0&&(c=i.x-s.x),i.y+n+l.y>u.y&&(p=i.y+n-u.y+l.y),i.y-p-s.y<0&&(p=i.y-s.y),(c||p)&&e.fire("autopanstart").panBy([c,p])}},_onCloseButtonClick:function(e){this._close(),Ce(e)},_getAnchor:function(){return _(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Dr=function(e,t){return new Ir(e,t)};Fn.mergeOptions({closePopupOnClick:!0}),Fn.include({openPopup:function(e,t,n){return e instanceof Ir||(e=new Ir(n).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=e,this.addLayer(e))},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&this.removeLayer(e),this}}),dr.include({bindPopup:function(e,t){return e instanceof Ir?(c(e,t),this._popup=e,e._source=this):(this._popup&&!t||(this._popup=new Ir(t,this)),this._popup.setContent(e)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e,t){return this._popup&&this._map&&(t=this._popup._prepareOpen(this,e,t),this._map.openPopup(this._popup,t)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(e){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(e)),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 t=e.layer||e.target;if(this._popup&&this._map){if(Ce(e),t instanceof xr)return void this.openPopup(e.layer||e.target,e.latlng);this._map.hasLayer(this._popup)&&this._popup._source===t?this.closePopup():this.openPopup(t,e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Nr=Mr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(e){Mr.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(e){Mr.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var e=Mr.prototype.getEvents.call(this);return ln&&!this.options.permanent&&(e.preclick=this._close),e},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=$("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t=this._map,n=this._container,r=t.latLngToContainerPoint(t.getCenter()),o=t.layerPointToContainerPoint(e),i=this.options.direction,a=n.offsetWidth,s=n.offsetHeight,l=_(this.options.offset),u=this._getAnchor();"top"===i?e=e.add(_(-a/2+l.x,-s+l.y+u.y,!0)):"bottom"===i?e=e.subtract(_(a/2-l.x,-l.y,!0)):"center"===i?e=e.subtract(_(a/2+l.x,s/2-u.y+l.y,!0)):"right"===i||"auto"===i&&o.xthis.options.maxZoom||nr&&this._retainParent(o,i,a,r))},_retainChildren:function(e,t,n,r){for(var o=2*e;o<2*e+2;o++)for(var i=2*t;i<2*t+2;i++){var a=new w(o,i);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)return void this._setView(e,n);for(var p=o.min.y;p<=o.max.y;p++)for(var f=o.min.x;f<=o.max.x;f++){var d=new w(f,p);if(d.z=this._tileZoom,this._isValidTile(d)){var h=this._tiles[this._tileCoordsToKey(d)];h?h.current=!0:a.push(d)}}if(a.sort(function(e,t){return e.distanceTo(i)-t.distanceTo(i)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(f=0;fn.max.x)||!t.wrapLat&&(e.yn.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return S(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),o=r.add(n);return[t.unproject(r,e.z),t.unproject(o,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new P(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new w(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(G(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){X(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=a,e.onmousemove=a,At&&this.options.opacity<1&&re(e,this.options.opacity),Ft&&!Bt&&(e.style.WebkitBackfaceVisibility="hidden")},_addTile:function(e,t){var r=this._getTilePos(e),o=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),n(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&g(n(this._tileReady,this,e,null,i)),se(i,r),this._tiles[o]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,r){t&&this.fire("tileerror",{error:t,tile:r,coords:e});var o=this._tileCoordsToKey(e);(r=this._tiles[o])&&(r.loaded=+new Date,this._map._fadeAnimated?(re(r.el,0),y(this._fadeFrame),this._fadeFrame=g(this._updateOpacity,this)):(r.active=!0,this._pruneTiles()),t||(X(r.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:r.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),At||!this._map._fadeAnimated?g(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new w(this._wrapX?i(e.x,this._wrapX):e.x,this._wrapY?i(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new x(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),Fr=zr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(e,t){this._url=e,t=c(this,t),t.detectRetina&&pn&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),Ft||this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var r=document.createElement("img");return me(r,"load",n(this._tileOnLoad,this,t,r)),me(r,"error",n(this._tileOnError,this,t,r)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r.alt="",r.setAttribute("role","presentation"),r.src=this.getTileUrl(e),r},getTileUrl:function(e){var n={r:pn?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=r),n["-y"]=r}return f(this._url,t(n,this.options))},_tileOnLoad:function(e,t){At?setTimeout(n(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom,n=this.options.zoomReverse,r=this.options.zoomOffset;return n&&(e=t-e),e+r},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&(t=this._tiles[e].el,t.onload=a,t.onerror=a,t.complete||(t.src=wt,G(t),delete this._tiles[e]))},_removeTile:function(e){var t=this._tiles[e];if(t)return Ht||t.el.setAttribute("src",wt),zr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==wt))return zr.prototype._tileReady.call(this,e,t,n)}}),Br=Fr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r=t({},this.defaultWmsParams);for(var o in n)o in this.options||(r[o]=n[o]);n=c(this,n);var i=n.detectRetina&&pn?2:1,a=this.getTileSize();r.width=a.x*i,r.height=a.y*i,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Fr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=C(n.project(t[0]),n.project(t[1])),o=r.min,i=r.max,a=(this._wmsVersion>=1.3&&this._crs===pr?[o.y,o.x,i.y,i.x]:[o.x,o.y,i.x,i.y]).join(","),s=Fr.prototype.getTileUrl.call(this,e);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});Fr.WMS=Br,ct.wms=pt;var Ur=dr.extend({options:{padding:.1,tolerance:0},initialize:function(e){c(this,e),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&X(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,t){var n=this._map.getZoomScale(t,this._zoom),r=le(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=this._map.project(e,t),s=a.subtract(i),l=o.multiplyBy(-n).add(r).add(o).subtract(s);tn?ae(this._container,l,n):se(this._container,l)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var e in 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,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new x(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hr=Ur.extend({getEvents:function(){var e=Ur.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ur.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");me(e,"mousemove",this._onMouseMove,this),me(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),me(e,"mouseout",this._handleMouseOut,this),this._ctx=e.getContext("2d")},_destroyContainer:function(){y(this._redrawRequest),delete this._ctx,G(this._container),ge(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;this._redrawBounds=null;for(var t in this._layers)e=this._layers[t],e._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ur.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=pn?2:1;se(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",pn&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Ur.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[r(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,o=t.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete e._order,delete this._layers[r(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("string"===typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),o=[];for(n=0;n')}}catch(e){return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Qr={_initContainer:function(){this._container=$("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ur.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Wr("shape");X(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Wr("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[r(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;G(t),e.removeInteractiveTarget(t),delete this._layers[r(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,o=e._container;o.stroked=!!r.stroke,o.filled=!!r.fill,r.stroke?(t||(t=e._stroke=Wr("stroke")),o.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=bt(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(o.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=Wr("fill")),o.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(o.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){J(e._container)},_bringToBack:function(e){K(e._container)}},$r=mn?Wr:j,Gr=Ur.extend({getEvents:function(){var e=Ur.prototype.getEvents.call(this);return e.zoomstart=this._onZoomStart,e},_initContainer:function(){this._container=$r("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$r("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){G(this._container),ge(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ur.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),se(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=$r("path");e.options.className&&X(t,e.options.className),e.options.interactive&&X(t,"leaflet-interactive"),this._updateStyle(e),this._layers[r(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){G(e._path),e.removeInteractiveTarget(e._path),delete this._layers[r(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,V(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r=Math.max(Math.round(e._radiusY),1)||n,o="a"+n+","+r+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+o+2*n+",0 "+o+2*-n+",0 ";this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){J(e._path)},_bringToBack:function(e){K(e._path)}});mn&&Gr.include(Qr),Fn.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&ft(e)||dt(e)}});var Zr=Er.extend({initialize:function(e,t){Er.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=S(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});Gr.create=$r,Gr.pointsToPath=V,Or.geometryToLayer=Ke,Or.coordsToLatLng=Xe,Or.coordsToLatLngs=et,Or.latLngToCoords=tt,Or.latLngsToCoords=nt,Or.getFeature=rt,Or.asFeature=ot,Fn.mergeOptions({boxZoom:!0});var Jr=Yn.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(){me(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ge(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){G(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),Vt(),ue(),this._startPoint=this._map.mouseEventToContainerPoint(e),me(document,{contextmenu:Ce,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=$("div","leaflet-zoom-box",this._container),X(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new x(this._point,this._startPoint),n=t.getSize();se(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(G(this._box),ee(this._container,"leaflet-crosshair")),Lt(),ce(),ge(document,{contextmenu:Ce,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var t=new P(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}});Fn.addInitHook("addHandler","boxZoom",Jr),Fn.mergeOptions({doubleClickZoom:!0});var Kr=Yn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,o=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(o):t.setZoomAround(e.containerPoint,o)}});Fn.addInitHook("addHandler","doubleClickZoom",Kr),Fn.mergeOptions({dragging:!0,inertia:!Bt,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Yr=Yn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new or(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))}X(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ee(this._map._container,"leaflet-grab"),ee(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=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=S(this._map.options.maxBounds);this._offsetLimit=C(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.xt.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,o=(r-t+n)%e+t-n,i=(r+t+n)%e-t-n,a=Math.abs(o+n)0?i:-i))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});Fn.addInitHook("addHandler","scrollWheelZoom",eo),Fn.mergeOptions({tap:!0,tapTolerance:15});var to=Yn.extend({addHooks:function(){me(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ge(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(xe(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var t=e.touches[0],r=t.target;this._startPos=this._newPos=new w(t.clientX,t.clientY),r.tagName&&"a"===r.tagName.toLowerCase()&&X(r,"leaflet-active"),this._holdTimeout=setTimeout(n(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",t))},this),1e3),this._simulateEvent("mousedown",t),me(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),ge(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&e&&e.changedTouches){var t=e.changedTouches[0],n=t.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&ee(n,"leaflet-active"),this._simulateEvent("mouseup",t),this._isTapValid()&&this._simulateEvent("click",t)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new w(t.clientX,t.clientY),this._simulateEvent("mousemove",t)},_simulateEvent:function(e,t){var n=document.createEvent("MouseEvents");n._simulated=!0,t.target._simulatedClick=!0,n.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}});ln&&!sn&&Fn.addInitHook("addHandler","tap",to),Fn.mergeOptions({touchZoom:ln&&!Bt,bounceAtZoomLimits:!0});var no=Yn.extend({addHooks:function(){X(this._map._container,"leaflet-touch-zoom"),me(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ee(this._map._container,"leaflet-touch-zoom"),ge(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),me(document,"touchmove",this._onTouchMove,this),me(document,"touchend",this._onTouchEnd,this),xe(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,r=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]),i=r.distanceTo(o)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoomt.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=r._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),y(this._animRequest);var s=n(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=g(s,this,!0),xe(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming)return void(this._zooming=!1);this._zooming=!1,y(this._animRequest),ge(document,"touchmove",this._onTouchMove),ge(document,"touchend",this._onTouchEnd),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))}});Fn.addInitHook("addHandler","touchZoom",no),Fn.BoxZoom=Jr,Fn.DoubleClickZoom=Kr,Fn.Drag=Yr,Fn.Keyboard=Xr,Fn.ScrollWheelZoom=eo,Fn.Tap=to,Fn.TouchZoom=no,Object.freeze=mt,e.version="1.6.0",e.Control=Bn,e.control=Un,e.Browser=gn,e.Evented=Et,e.Mixin=er,e.Util=Pt,e.Class=v,e.Handler=Yn,e.extend=t,e.bind=n,e.stamp=r,e.setOptions=c,e.DomEvent=qn,e.DomUtil=In,e.PosAnimation=zn,e.Draggable=or,e.LineUtil=ir,e.PolyUtil=ar,e.Point=w,e.point=_,e.Bounds=x,e.bounds=C,e.Transformation=T,e.transformation=k,e.Projection=ur,e.LatLng=E,e.latLng=O,e.LatLngBounds=P,e.latLngBounds=S,e.CRS=Tt,e.GeoJSON=Or,e.geoJSON=it,e.geoJson=kr,e.Layer=dr,e.LayerGroup=hr,e.layerGroup=mr,e.FeatureGroup=gr,e.featureGroup=yr,e.ImageOverlay=jr,e.imageOverlay=Vr,e.VideoOverlay=Lr,e.videoOverlay=at,e.SVGOverlay=Rr,e.svgOverlay=st,e.DivOverlay=Mr,e.Popup=Ir,e.popup=Dr,e.Tooltip=Nr,e.tooltip=Ar,e.Icon=vr,e.icon=We,e.DivIcon=qr,e.divIcon=lt,e.Marker=_r,e.marker=Qe,e.TileLayer=Fr,e.tileLayer=ct,e.GridLayer=zr,e.gridLayer=ut,e.SVG=Gr,e.svg=dt,e.Renderer=Ur,e.Canvas=Hr,e.canvas=ft,e.Path=xr,e.CircleMarker=Cr,e.circleMarker=$e,e.Circle=Pr,e.circle=Ge,e.Polyline=Sr,e.polyline=Ze,e.Polygon=Er,e.polygon=Je,e.Rectangle=Zr,e.rectangle=ht,e.Map=Fn,e.map=je;var ro=window.L;e.noConflict=function(){return window.L=ro,this},window.L=e})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){var r=n(79)("wks"),o=n(51),i=n(4).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(32),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n6?s-6:0),u=6;u>",a=a||r,null==n[r]){if(t){var s=null===n[r]?"null":"undefined";return new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+s+"`.")}return null}return e.apply(void 0,[n,r,o,i,a].concat(l))})}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function g(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}function y(e){var t=r(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":g(t,e)?"symbol":t}function v(e){var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e,t){return m(function(n,r,o,i,a){return Object(G.q)(function(){if(e&&y(n[r])===t.toLowerCase())return null;var i;switch(t){case"Array":i=G.j;break;case"Object":i=G.l;break;case"Map":i=G.k;break;default:throw new Error("Unexpected mobxType: ".concat(t))}var s=n[r];if(!i(s)){var l=v(s),u=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+u+".")}return null})})}function w(e,t){return m(function(n,r,o,i,a){for(var s=arguments.length,l=new Array(s>5?s-5:0),u=5;u2?r-2:0),i=2;i2?r-2:0),i=2;i",o=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalInstance&&this._reactInternalInstance._debugID||this._reactInternalFiber&&this._reactInternalFiber._debugID;L(this,Ee,!1),L(this,Oe,!1);var i=e.bind(this),a=!1,s=new G.b("".concat(r,"#").concat(o,".render()"),function(){if(!a&&(a=!0,"function"===typeof n.componentWillReact&&n.componentWillReact(),!0!==n[we])){var e=!0;try{L(n,Oe,!0),n[Ee]||Z.Component.prototype.forceUpdate.call(n),e=!1}finally{L(n,Oe,!1),e&&s.dispose()}}});return s.reactComponent=this,t[be]=s,this.render=t,t.call(this)}function z(e,t){function n(){return this[o]||L(this,o,Object(G.h)("reactive "+t)),this[o]}var r=C("reactProp_".concat(t,"_valueHolder")),o=C("reactProp_".concat(t,"_atomHolder"));Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return n.call(this).reportObserved(),this[r]},set:function(e){this[Oe]||N(this[r],e)?L(this,r,e):(L(this,r,e),L(this,Ee,!0),n.call(this).reportChanged(),L(this,Ee,!1))}})}function F(e,t){if("string"===typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return Ce||(Ce=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?V.apply(null,e)(F(t)):function(t){return F(e,t)};var n=e;if(!0===n.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),n.__proto__===Z.PureComponent&&console.warn("Mobx observer: You are using 'observer' on React.PureComponent. These two achieve two opposite goals and should not be used together"),Te&&n.$$typeof===Te){var r=n.render;if("function"!==typeof r)throw new Error("render property of ForwardRef was not a function");return Object(Z.forwardRef)(function(){var e=arguments;return J.a.createElement(Ve,null,function(){return r.apply(void 0,e)})})}if("function"===typeof n&&(!n.prototype||!n.prototype.render)&&!n.isReactClass&&!Z.Component.isPrototypeOf(n)){var i,s,c=F((s=i=function(e){function t(){return o(this,t),f(this,u(t).apply(this,arguments))}return l(t,e),a(t,[{key:"render",value:function(){return n.call(this,this.props,this.context)}}]),t}(Z.Component),i.displayName=n.displayName||n.name,i.contextTypes=n.contextTypes,i.propTypes=n.propTypes,i.defaultProps=n.defaultProps,s));return ce(c,n),c}if(!n)throw new Error("Please pass a valid component to 'observer'");var p=n.prototype||n;B(p),n.isMobXReactObserver=!0,z(p,"props"),z(p,"state");var d=p.render;return p.render=function(){return q.call(this,d)},n}function B(e){["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach(function(t){D(e,t)}),e.shouldComponentUpdate?e.shouldComponentUpdate!==je.shouldComponentUpdate&&console.warn("Use `shouldComponentUpdate` in an `observer` based component breaks the behavior of `observer` and might lead to unexpected results. Manually implementing `sCU` should not be needed when using mobx-react."):e.shouldComponentUpdate=je.shouldComponentUpdate}function U(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function H(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function W(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function Q(e,t){if(e)for(var n in e)$(n)&&(t[n]=e[n])}function $(e){return!Re[e]&&"suppressChangedStoreWarning"!==e}n.d(t,"c",function(){return F}),n.d(t,"a",function(){return Me}),n.d(t,"b",function(){return V});var G=n(61),Z=n(1),J=n.n(Z),K=n(103),Y=(n.n(K),d(function(e,t){function n(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case s:case u:case l:return e;default:switch(e=e&&e.$$typeof){case p:case h:case c:return e;default:return t}}case a:return t}}}function r(e){return n(e)===d}Object.defineProperty(t,"__esModule",{value:!0});var o="function"===typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.memo"):60115,y=o?Symbol.for("react.lazy"):60116;t.typeOf=n,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=p,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=s,t.Profiler=u,t.Portal=a,t.StrictMode=l,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===s||e===d||e===u||e===l||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===c||e.$$typeof===p||e.$$typeof===h)},t.isAsyncMode=function(e){return r(e)||n(e)===f},t.isConcurrentMode=r,t.isContextConsumer=function(e){return n(e)===p},t.isContextProvider=function(e){return n(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return n(e)===h},t.isFragment=function(e){return n(e)===s},t.isProfiler=function(e){return n(e)===u},t.isPortal=function(e){return n(e)===a},t.isStrictMode=function(e){return n(e)===l}}));!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Y);var X=(Y.typeOf,Y.AsyncMode,Y.ConcurrentMode,Y.ContextConsumer,Y.ContextProvider,Y.Element,Y.ForwardRef,Y.Fragment,Y.Profiler,Y.Portal,Y.StrictMode,Y.isValidElementType,Y.isAsyncMode,Y.isConcurrentMode,Y.isContextConsumer,Y.isContextProvider,Y.isElement,Y.isForwardRef,Y.isFragment,Y.isProfiler,Y.isPortal,Y.isStrictMode,d(function(e){e.exports=Y})),ee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},te={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ne={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},re={};re[X.ForwardRef]=ne;var oe=Object.defineProperty,ie=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,le=Object.getPrototypeOf,ue=Object.prototype,ce=h,pe=function(){function e(){o(this,e),this.listeners=[]}return a(e,[{key:"on",value:function(e){var t=this;return this.listeners.push(e),function(){var n=t.listeners.indexOf(e);-1!==n&&t.listeners.splice(n,1)}}},{key:"emit",value:function(e){this.listeners.forEach(function(t){return t(e)})}}]),e}(),fe=(b(!1,"Array"),w.bind(null,!1),b(!1,"Map"),b(!1,"Object"),b(!0,"Array"),w.bind(null,!0),b(!0,"Object")),de=0,he={},me=C("patchMixins"),ge=C("patchedDefinition"),ye={mobxStores:fe};Object.seal(ye);var ve={contextTypes:{get:function(){return ye},set:function(e){console.warn("Mobx Injector: you are trying to attach `contextTypes` on an component decorated with `inject` (or `observer`) HOC. Please specify the contextTypes on the wrapped component instead. It is accessible through the `wrappedComponent`")},configurable:!0,enumerable:!1},isMobxInjector:{value:!0,writable:!0,configurable:!0,enumerable:!0}},be=G.a||"$mobx",we=C("isUnmounted"),_e=!1,xe=!1,Ce=!1,Pe="undefined"!==typeof WeakMap?new WeakMap:void 0,Se=new pe,Ee=C("skipRender"),Oe=C("isForcingUpdate"),Te="function"===typeof Z.forwardRef&&Object(Z.forwardRef)(function(e,t){}).$$typeof,ke=new pe,je={componentWillUnmount:function(){if(!0!==xe&&(this.render[be]&&this.render[be].dispose(),this[we]=!0,_e)){var e=R(this);e&&Pe&&Pe.delete(e),Se.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){_e&&M(this)},componentDidUpdate:function(){_e&&M(this)},shouldComponentUpdate:function(e,t){return xe&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!N(this.props,e)}},Ve=F(function(e){var t=e.children,n=e.inject,r=e.render,o=t||r;if("undefined"===typeof o)return null;if(!n)return o();console.warn(" is no longer supported. Please use inject on the enclosing component instead");var i=V(n)(o);return J.a.createElement(i,null)});Ve.displayName="Observer";var Le=function(e,t,n,o,i){var a="children"===t?"render":"children";if("function"===typeof e[t]&&"function"===typeof e[a])return new Error("Invalid prop,do not use children and render in the same time in`"+n);if("function"!==typeof e[t]&&"function"!==typeof e[a])return new Error("Invalid prop `"+i+"` of type `"+r(e[t])+"` supplied to `"+n+"`, expected `function`.")};Ve.propTypes={render:Le,children:Le},U.__suppressDeprecationWarning=!0,H.__suppressDeprecationWarning=!0,W.__suppressDeprecationWarning=!0;var Re={children:!0,key:!0,ref:!0},Me=function(e){function t(e,n){var r;return o(this,t),r=f(this,u(t).call(this,e,n)),r.state={},Q(e,r.state),r}return l(t,e),a(t,[{key:"render",value:function(){return Z.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={};return Q(this.context.mobxStores,e),Q(this.props,e),{mobxStores:e}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!e)return null;if(!t)return e;if(Object.keys(e).filter($).length!==Object.keys(t).filter($).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var n in e)$(n)&&t[n]!==e[n]&&console.warn("MobX Provider: Provided store '"+n+"' has changed. Please avoid replacing stores as the change might not propagate to all children");return e}}]),t}(Z.Component);Me.contextTypes={mobxStores:fe},Me.childContextTypes={mobxStores:fe.isRequired},function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?o="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=U,t.componentWillReceiveProps=H),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=W;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}}(Me);C("disposeOnUnmount");if(!Z.Component)throw new Error("mobx-react requires React to be available");if(!G.p)throw new Error("mobx-react requires mobx to be available");"function"===typeof K.unstable_batchedUpdates&&Object(G.g)({reactionScheduler:K.unstable_batchedUpdates});if("object"===("undefined"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":r(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var Ie={spy:G.p,extras:{getDebugName:G.i}},De={renderReporter:Se,componentByNodeRegistry:Pe,componentByNodeRegistery:Pe,trackComponents:I};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(De,Ie)}},function(e,t,n){e.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(3),o=n(185),i=n(34),a=Object.defineProperty;t.f=n(11)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"===typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",u(t,e.attrs),i(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",u(t,e.attrs),i(e,t),t}function u(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var u=v++;n=y||(y=s(t)),r=p.bind(null,n,u,!1),o=p.bind(null,n,u,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(n=l(t),r=d.bind(null,n,t),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function p(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=w(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var h={},m=function(e){var t;return function(){return"undefined"===typeof t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){if("undefined"===typeof t[n]){var r=e.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[n]=r}return t[n]}}(function(e){return document.querySelector(e)}),y=null,v=0,b=[],w=n(681);e.exports=function(e,t){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"===typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=o(e,t);return r(n,t),function(e){for(var i=[],a=0;a=0&&p.indexOf(">")>=0&&(p=a(p)),t[u]=p}}try{return new i(l,o,s).format(t)}catch(t){return this.options.warningHandler("react-intl-universal format message failed for key='"+e+"'.",t.message),l}}},{key:"getHTML",value:function(e,t){var n=this.get(e,t);if(n){var r=o.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),i=function(){return r};return Object.assign({defaultMessage:i,d:i},r)}return""}},{key:"formatMessage",value:function(e,t){var n=e.id,r=e.defaultMessage;return this.get(n,t).defaultMessage(r)}},{key:"formatHTMLMessage",value:function(e,t){var n=e.id,r=e.defaultMessage;return this.getHTML(n,t).defaultMessage(r)}},{key:"determineLocale",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getLocaleFromURL(e)||this.getLocaleFromCookie(e)||this.getLocaleFromBrowser()}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(t.currentLocale,"options.currentLocale is required"),c(t.locales,"options.locales is required"),Object.assign(this.options,t),this.options.formats=Object.assign({},this.options.formats,g),new Promise(function(t,n){var r=e.options.currentLocale.split("-")[0].split("_")[0],o=e.options.commonLocaleDataUrls[r];w?o?u(o,function(e,r){e?n(e):t()}):(e.options.warningHandler('Language "'+r+'" is not supported. Check https://github.com/alibaba/react-intl-universal/releases/tag/1.12.0'),t()):t()})}},{key:"getInitOptions",value:function(){return this.options}},{key:"load",value:function(e){p(this.options.locales,e)}},{key:"getLocaleFromCookie",value:function(e){var t=e.cookieLocaleKey;if(t){var n=s.parse(document.cookie);return n&&n[t]}}},{key:"getLocaleFromURL",value:function(e){var t=e.urlLocaleKey;if(t){var n=location.search.split("?");if(n.length>=2){var r=l.parse(n[1]);return r&&r[t]}}}},{key:"getDescendantProp",value:function(e,t){return e[t]?e[t]:t.split(".").reduce(function(e,t){return void 0!=e?e[t]:e},e)}},{key:"getLocaleFromBrowser",value:function(){return navigator.language||navigator.userLanguage}}]),e}();e.exports=new _,t.ReactIntlUniversal=_},function(e,t,n){"use strict";var r=n(2),o=n.n(r);t.a=o.a.oneOfType([o.a.arrayOf(o.a.node),o.a.node])},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(12),o=n(50);e.exports=n(11)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(4),o=n(20),i=n(23),a=n(51)("src"),s=n(278),l=(""+s).split("toString");n(29).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(0),o=n(6),i=n(35),a=/"/g,s=function(e,t,n,r){var o=String(i(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(80),o=n(35);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(81),o=n(50),i=n(24),a=n(34),s=n(23),l=n(185),u=Object.getOwnPropertyDescriptor;t.f=n(11)?u:function(e,t){if(e=i(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(23),o=n(15),i=n(118)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";function r(e,t){var n=f.a.point(e[0],e[1]);return t.layerPointToLatLng(n)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-1?e:"./icons/"+e}function u(e){return e.indexOf("://")>-1?e:"./imgs/"+e}function c(e,t){return new f.a.divIcon({className:t?"mouse-attached":"pending-icon",html:function(e){return'\n \n '+e.text+' Marker\n '}(e),iconAnchor:[6,36]})}n.d(t,"g",function(){return d}),n.d(t,"f",function(){return h}),t.a=r,t.h=o,t.c=i,t.i=a,t.b=s,t.d=l,t.e=u,t.j=c;var p=n(5),f=n.n(p),d={ENTER:13},h={polygon:"polygon",polyline:"polyline",marker:"icon"}},function(e,t,n){"use strict";var r=Array.isArray;t.a=r},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(19);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(7);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(0),o=n(29),i=n(6);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(30),o=n(80),i=n(15),a=n(9),s=n(134);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,p=6==e,f=5==e||p,d=t||s;return function(t,s,h){for(var m,g,y=i(t),v=o(y),b=r(s,h,3),w=a(v.length),_=0,x=n?d(t,w):l?d(t,0):void 0;w>_;_++)if((f||_ in v)&&(m=v[_],g=b(m,_,y),e))if(n)x[_]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:x.push(m)}else if(c)return!1;return p?-1:u||c?c:x}}},function(e,t,n){"use strict";var r=n(230),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";if(n(11)){var r=n(42),o=n(4),i=n(6),a=n(0),s=n(99),l=n(142),u=n(30),c=n(57),p=n(50),f=n(20),d=n(59),h=n(32),m=n(9),g=n(213),y=n(53),v=n(34),b=n(23),w=n(67),_=n(7),x=n(15),C=n(131),P=n(54),S=n(26),E=n(55).f,O=n(133),T=n(51),k=n(8),j=n(37),V=n(89),L=n(83),R=n(136),M=n(69),I=n(94),D=n(56),N=n(135),A=n(202),q=n(12),z=n(25),F=q.f,B=z.f,U=o.RangeError,H=o.TypeError,W=o.Uint8Array,Q=Array.prototype,$=l.ArrayBuffer,G=l.DataView,Z=j(0),J=j(2),K=j(3),Y=j(4),X=j(5),ee=j(6),te=V(!0),ne=V(!1),re=R.values,oe=R.keys,ie=R.entries,ae=Q.lastIndexOf,se=Q.reduce,le=Q.reduceRight,ue=Q.join,ce=Q.sort,pe=Q.slice,fe=Q.toString,de=Q.toLocaleString,he=k("iterator"),me=k("toStringTag"),ge=T("typed_constructor"),ye=T("def_constructor"),ve=s.CONSTR,be=s.TYPED,we=s.VIEW,_e=j(1,function(e,t){return Ee(L(e,e[ye]),t)}),xe=i(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Ce=!!W&&!!W.prototype.set&&i(function(){new W(1).set({})}),Pe=function(e,t){var n=h(e);if(n<0||n%t)throw U("Wrong offset!");return n},Se=function(e){if(_(e)&&be in e)return e;throw H(e+" is not a typed array!")},Ee=function(e,t){if(!(_(e)&&ge in e))throw H("It is not a typed array constructor!");return new e(t)},Oe=function(e,t){return Te(L(e,e[ye]),t)},Te=function(e,t){for(var n=0,r=t.length,o=Ee(e,r);r>n;)o[n]=t[n++];return o},ke=function(e,t,n){F(e,t,{get:function(){return this._d[n]}})},je=function(e){var t,n,r,o,i,a,s=x(e),l=arguments.length,c=l>1?arguments[1]:void 0,p=void 0!==c,f=O(s);if(void 0!=f&&!C(f)){for(a=f.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(p&&l>2&&(c=u(c,arguments[2],2)),t=0,n=m(s.length),o=Ee(this,n);n>t;t++)o[t]=p?c(s[t],t):s[t];return o},Ve=function(){for(var e=0,t=arguments.length,n=Ee(this,t);t>e;)n[e]=arguments[e++];return n},Le=!!W&&i(function(){de.call(new W(1))}),Re=function(){return de.apply(Le?pe.call(Se(this)):Se(this),arguments)},Me={copyWithin:function(e,t){return A.call(Se(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Y(Se(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(Se(this),arguments)},filter:function(e){return Oe(this,J(Se(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return X(Se(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Se(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Z(Se(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Se(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Se(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Se(this),arguments)},lastIndexOf:function(e){return ae.apply(Se(this),arguments)},map:function(e){return _e(Se(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Se(this),arguments)},reduceRight:function(e){return le.apply(Se(this),arguments)},reverse:function(){for(var e,t=this,n=Se(t).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(e){return ce.call(Se(this),e)},subarray:function(e,t){var n=Se(this),r=n.length,o=y(e,r);return new(L(n,n[ye]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?r:y(t,r))-o))}},Ie=function(e,t){return Oe(this,pe.call(Se(this),e,t))},De=function(e){Se(this);var t=Pe(arguments[1],1),n=this.length,r=x(e),o=m(r.length),i=0;if(o+t>n)throw U("Wrong length!");for(;i255?255:255&r),o.v[d](n*t+o.o,r,xe)},k=function(e,t){F(e,t,{get:function(){return O(this,t)},set:function(e){return T(this,t,e)},enumerable:!0})};b?(h=n(function(e,n,r,o){c(e,h,u,"_d");var i,a,s,l,p=0,d=0;if(_(n)){if(!(n instanceof $||"ArrayBuffer"==(l=w(n))||"SharedArrayBuffer"==l))return be in n?Te(h,n):je.call(h,n);i=n,d=Pe(r,t);var y=n.byteLength;if(void 0===o){if(y%t)throw U("Wrong length!");if((a=y-d)<0)throw U("Wrong length!")}else if((a=m(o)*t)+d>y)throw U("Wrong length!");s=a/t}else s=g(n),a=s*t,i=new $(a);for(f(e,"_d",{b:i,o:d,l:a,e:s,v:new G(i)});p=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(1),i=n.n(o),a=function(e){var t=e.children,n=r(e,["children"]);return i.a.createElement("button",Object.assign({className:"button"},n),t)};t.a=a},function(e,t){e.exports=!1},function(e,t,n){var r=n(51)("meta"),o=n(7),i=n(23),a=n(12).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(6)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},f=function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return u&&h.NEED&&l(e)&&!i(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},function(e,t,n){var r=n(8)("unscopables"),o=Array.prototype;void 0==o[r]&&n(20)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){"use strict";var r=n(2),o=n.n(r);t.a=o.a.oneOfType([o.a.arrayOf(o.a.number),o.a.shape({lat:o.a.number,lng:o.a.number}),o.a.shape({lat:o.a.number,lon:o.a.number})])},function(e,t,n){"use strict";var r=n(2),o=n.n(r);t.a=o.a.object},function(e,t,n){"use strict";var r=n(5),o=(n.n(r),n(2)),i=n.n(o);t.a=i.a.instanceOf(r.Map)},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};this.leafletElement.setStyle(e)},t.prototype.setStyleIfChanged=function(e,t){var n=this.getPathOptions(t);Object(l.a)(n,this.getPathOptions(e))||this.setStyle(n)},t}(u.a);d.childContextTypes={children:c.a,popupContainer:p.a},t.a=d},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(187),o=n(119);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(32),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(3),o=n(188),i=n(119),a=n(118)("IE_PROTO"),s=function(){},l=function(){var e,t=n(116)("iframe"),r=i.length;for(t.style.display="none",n(120).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("