function Qo(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}var ne={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade */var $o=ne.exports,wn;function ts(){return wn||(wn=1,(function(X,N){(function(y,J){J(N)})($o,(function(y){var J="1.9.4";function T(t){var e,i,n,o;for(i=1,n=arguments.length;i"u"||!L||!L.Mixin)){t=F(t)?t:[t];for(var e=0;e0?Math.floor(t):Math.ceil(t)};S.prototype={clone:function(){return new S(this.x,this.y)},add:function(t){return this.clone()._add(M(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(M(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new S(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new S(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ui(this.x),this.y=ui(this.y),this},distanceTo:function(t){t=M(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=M(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=M(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+g(this.x)+", "+g(this.y)+")"}};function M(t,e,i){return t instanceof S?t:F(t)?new S(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new S(t.x,t.y):new S(t,e,i)}function G(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=tt(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,u=o.y>=e.y&&n.y<=i.y;return r&&u},overlaps:function(t){t=tt(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.xe.y&&n.y=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=q(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,u=o.lng>=e.lng&&n.lng<=i.lng;return r&&u},overlaps:function(t){t=q(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.late.lng&&n.lng1,Hn=(function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",f,e),window.removeEventListener("testPassiveEventSupport",f,e)}catch{}return t})(),Fn=(function(){return!!document.createElement("canvas").getContext})(),Ze=!!(document.createElementNS&&ci("svg").createSVGRect),Gn=!!Ze&&(function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Wn=!Ze&&(function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}})(),Un=navigator.platform.indexOf("Mac")===0,qn=navigator.platform.indexOf("Linux")===0;function ct(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var C={ie:re,ielt9:Sn,edge:fi,webkit:Oe,android:_i,android23:pi,androidStock:On,opera:ze,chrome:mi,gecko:gi,safari:zn,phantom:vi,opera12:yi,win:En,ie3d:Li,webkit3d:Ee,gecko3d:wi,any3d:Zn,mobile:Ut,mobileWebkit:In,mobileWebkit3d:Bn,msPointer:xi,pointer:Pi,touch:An,touchNative:Ci,mobileOpera:Nn,mobileGecko:Rn,retina:Dn,passiveEvents:Hn,canvas:Fn,svg:Ze,vml:Wn,inlineSvg:Gn,mac:Un,linux:qn},bi=C.msPointer?"MSPointerDown":"pointerdown",Mi=C.msPointer?"MSPointerMove":"pointermove",Ti=C.msPointer?"MSPointerUp":"pointerup",Si=C.msPointer?"MSPointerCancel":"pointercancel",Ie={touchstart:bi,touchmove:Mi,touchend:Ti,touchcancel:Si},ki={touchstart:Jn,touchmove:ae,touchend:ae,touchcancel:ae},Et={},Oi=!1;function jn(t,e,i){return e==="touchstart"&&Xn(),ki[e]?(i=ki[e].bind(this,i),t.addEventListener(Ie[e],i,!1),i):(console.warn("wrong event specified:",e),f)}function Vn(t,e,i){if(!Ie[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ie[e],i,!1)}function Kn(t){Et[t.pointerId]=t}function Yn(t){Et[t.pointerId]&&(Et[t.pointerId]=t)}function zi(t){delete Et[t.pointerId]}function Xn(){Oi||(document.addEventListener(bi,Kn,!0),document.addEventListener(Mi,Yn,!0),document.addEventListener(Ti,zi,!0),document.addEventListener(Si,zi,!0),Oi=!0)}function ae(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in Et)e.touches.push(Et[i]);e.changedTouches=[e],t(e)}}function Jn(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Y(e),ae(t,e)}function Qn(t){var e={},i,n;for(n in t)i=t[n],e[n]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var $n=200;function to(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(r){if(r.detail!==1){n=r.detail;return}if(!(r.pointerType==="mouse"||r.sourceCapabilities&&!r.sourceCapabilities.firesTouchEvents)){var u=Ai(r);if(!(u.some(function(_){return _ instanceof HTMLLabelElement&&_.attributes.for})&&!u.some(function(_){return _ instanceof HTMLInputElement||_ instanceof HTMLSelectElement}))){var c=Date.now();c-i<=$n?(n++,n===2&&e(Qn(r))):n=1,i=c}}}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function eo(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Be=le(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qt=le(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ei=qt==="webkitTransition"||qt==="OTransition"?qt+"End":"transitionend";function Zi(t){return typeof t=="string"?document.getElementById(t):t}function jt(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function B(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function W(t){var e=t.parentNode;e&&e.removeChild(t)}function he(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Zt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function It(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Ae(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=ue(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function z(t,e){if(t.classList!==void 0)for(var i=P(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function Ri(t){return C.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/oo:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Ke(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var so={__proto__:null,on:k,off:D,stopPropagation:kt,disableScrollPropagation:Ve,disableClickPropagation:Xt,preventDefault:Y,stop:Ot,getPropagationPath:Ai,getMousePosition:Ni,getWheelDelta:Ri,isExternalTarget:Ke,addListener:k,removeListener:D},Di=Gt.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=St(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=$(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,q(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=M(e.paddingTopLeft||e.padding||[0,0]),n=M(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),u=this.getPixelBounds(),c=tt([u.min.add(i),u.max.subtract(n)]),_=c.getSize();if(!c.contains(r)){this._enforcingBounds=!0;var v=r.subtract(c.getCenter()),x=c.extend(r).getSize().subtract(_);o.x+=v.x<0?-x.x:x.x,o.y+=v.y<0?-x.y:x.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=T({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),r=n.subtract(o);return!r.x&&!r.y?this:(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=T({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=a(this._handleGeolocationResponse,this),i=a(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=new A(e,i),o=n.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){var u=this.getBoundsZoom(o);this.setView(n,r.maxZoom?Math.min(u,r.maxZoom):u)}var c={latlng:n,bounds:o,timestamp:t.timestamp};for(var _ in t.coords)typeof t.coords[_]=="number"&&(c[_]=t.coords[_]);this.fire("locationfound",c)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),W(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(st(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)W(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=B("div",i,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new et(e,i)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=q(t),i=M(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),u=t.getNorthWest(),c=t.getSouthEast(),_=this.getSize().subtract(i),v=tt(this.project(c,n),this.project(u,n)).getSize(),x=C.any3d?this.options.zoomSnap:1,b=_.x/v.x,E=_.y/v.y,Q=e?Math.max(b,E):Math.min(b,E);return n=this.getScaleZoom(Q,n),x&&(n=Math.round(n/(x/100))*(x/100),n=e?Math.ceil(n/x)*x:Math.floor(n/x)*x),Math.max(o,Math.min(r,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new S(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new G(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(Z(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(M(t),e)},layerPointToLatLng:function(t){var e=M(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(Z(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(q(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(e))},containerPointToLayerPoint:function(t){return M(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return M(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(M(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t)))},mouseEventToContainerPoint:function(t){return Ni(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Zi(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");k(e,"scroll",this._onScroll,this),this._containerId=l(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&C.any3d,z(t,"leaflet-container"+(C.touch?" leaflet-touch":"")+(C.retina?" leaflet-retina":"")+(C.ielt9?" leaflet-oldie":"")+(C.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=jt(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),j(this._mapPane,new S(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(z(t.markerPane,"leaflet-zoom-hide"),z(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){j(this._mapPane,new S(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){e===void 0&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return st(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){j(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[l(this._container)]=this;var e=t?D:k;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),C.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){st(this._resizeRequest),this._resizeRequest=$(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i=[],n,o=e==="mouseout"||e==="mouseover",r=t.target||t.srcElement,u=!1;r;){if(n=this._targets[l(r)],n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){u=!0;break}if(n&&n.listens(e,!0)&&(o&&!Ke(r,t)||(i.push(n),o))||r===this._container)break;r=r.parentNode}return!i.length&&!u&&!o&&this.listens(e,!0)&&(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var i=t.type;i==="mousedown"&&Ge(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=T({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}var o=this._findEventTargets(t,e);if(i){for(var r=[],u=0;u0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=C.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){U(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=B("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=Be,n=this._proxy.style[i];Tt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){W(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Tt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return i.animate!==!0&&!this.getSize().contains(o)?!1:($(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,z(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&U(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ro(t,e){return new I(t,e)}var ut=mt.extend({options:{position:"topright"},initialize:function(t){w(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return z(e,"leaflet-control"),i.indexOf("bottom")!==-1?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(W(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Jt=function(t){return new ut(t)};I.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=B("div",e+"control-container",this._container);function n(o,r){var u=e+o+" "+e+r;t[o+r]=B("div",u,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)W(this._controlCorners[t]);W(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Hi=ut.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(l(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;t.overlay?(n=document.createElement("input"),n.type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers_"+l(this),i),this._layerControlInputs.push(n),n.layerId=l(t.layer),k(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("span");e.appendChild(r),r.appendChild(n),r.appendChild(o);var u=t.overlay?this._overlaysList:this._baseLayersList;return u.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,i,n=[],o=[];this._handlingClick=!0;for(var r=t.length-1;r>=0;r--)e=t[r],i=this._getLayer(e.layerId).layer,e.checked?n.push(i):e.checked||o.push(i);for(r=0;r=0;o--)e=t[o],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,k(t,"click",Y),this.expand();var e=this;setTimeout(function(){D(t,"click",Y),e._preventClick=!1})}}),ao=function(t,e,i){return new Hi(t,e,i)},Ye=ut.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=B("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var r=B("a",i,n);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Xt(r),k(r,"click",Ot),k(r,"click",o,this),k(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";U(this._zoomInButton,e),U(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(z(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(z(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});I.mergeOptions({zoomControl:!0}),I.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ye,this.addControl(this.zoomControl))});var ho=function(t){return new Ye(t)},Fi=ut.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=B("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=B("div",e,i)),t.imperial&&(this._iScale=B("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;e>5280?(i=e/5280,n=this._getRoundNum(i),this._updateScale(this._iScale,n+" mi",n/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,o+" ft",o/e))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),uo=function(t){return new Fi(t)},lo='',Xe=ut.extend({options:{position:"bottomright",prefix:''+(C.inlineSvg?lo+" ":"")+"Leaflet"},initialize:function(t){w(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=B("div","leaflet-control-attribution"),Xt(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});I.mergeOptions({attributionControl:!0}),I.addInitHook(function(){this.options.attributionControl&&new Xe().addTo(this)});var co=function(t){return new Xe(t)};ut.Layers=Hi,ut.Zoom=Ye,ut.Scale=Fi,ut.Attribution=Xe,Jt.layers=ao,Jt.zoom=ho,Jt.scale=uo,Jt.attribution=co;var ft=mt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ft.addTo=function(t,e){return t.addHandler(e,this),this};var fo={Events:ot},Gi=C.touch?"touchstart mousedown":"mousedown",bt=Gt.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){w(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(k(this._dragStartTarget,Gi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(bt._dragging===this&&this.finishDrag(!0),D(this._dragStartTarget,Gi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Ae(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){bt._dragging===this&&this.finishDrag();return}if(!(bt._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(bt._dragging=this,this._preventOutline&&Ge(this._element),De(),Vt(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ii(this._element);this._startPoint=new S(e.clientX,e.clientY),this._startPos=St(this._element),this._parentScale=We(i);var n=t.type==="mousedown";k(document,n?"mousemove":"touchmove",this._onMove,this),k(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new S(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)r&&(u=c,r=_);r>i&&(e[u]=1,Qe(t,e,i,n,u),Qe(t,e,i,u,o))}function go(t,e){for(var i=[t[0]],n=1,o=0,r=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function vo(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Qt(t,e,i,n){var o=e.x,r=e.y,u=i.x-o,c=i.y-r,_=u*u+c*c,v;return _>0&&(v=((t.x-o)*u+(t.y-r)*c)/_,v>1?(o=i.x,r=i.y):v>0&&(o+=u*v,r+=c*v)),u=t.x-o,c=t.y-r,n?u*u+c*c:new S(o,r)}function at(t){return!F(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Yi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),at(t)}function Xi(t,e){var i,n,o,r,u,c,_,v;if(!t||t.length===0)throw new Error("latlngs not passed");at(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var x=Z([0,0]),b=q(t),E=b.getNorthWest().distanceTo(b.getSouthWest())*b.getNorthEast().distanceTo(b.getNorthWest());E<1700&&(x=Je(t));var Q=t.length,K=[];for(i=0;in){_=(r-n)/o,v=[c.x-_*(c.x-u.x),c.y-_*(c.y-u.y)];break}var it=e.unproject(M(v));return Z([it.lat+x.lat,it.lng+x.lng])}var yo={__proto__:null,simplify:qi,pointToSegmentDistance:ji,closestPointOnSegment:po,clipSegment:Ki,_getEdgeIntersection:fe,_getBitCode:zt,_sqClosestPointOnSegment:Qt,isFlat:at,_flat:Yi,polylineCenter:Xi},$e={project:function(t){return new S(t.lng,t.lat)},unproject:function(t){return new A(t.y,t.x)},bounds:new G([-180,-90],[180,90])},ti={R:6378137,R_MINOR:6356752314245179e-9,bounds:new G([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),u=r*Math.sin(n),c=Math.tan(Math.PI/4-n/2)/Math.pow((1-u)/(1+u),r/2);return n=-i*Math.log(Math.max(c,1e-10)),new S(t.lng*e*i,n)},unproject:function(t){for(var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),r=Math.exp(-t.y/i),u=Math.PI/2-2*Math.atan(r),c=0,_=.1,v;c<15&&Math.abs(_)>1e-7;c++)v=o*Math.sin(u),v=Math.pow((1-v)/(1+v),o/2),_=Math.PI/2-2*Math.atan(r*v)-u,u+=_;return new A(u*e,t.x*e/i)}},Lo={__proto__:null,LonLat:$e,Mercator:ti,SphericalMercator:Me},wo=T({},Ct,{code:"EPSG:3395",projection:ti,transformation:(function(){var t=.5/(Math.PI*ti.R);return Wt(t,.5,-t,.5)})()}),Ji=T({},Ct,{code:"EPSG:4326",projection:$e,transformation:Wt(1/180,1,-1/180,.5)}),xo=T({},gt,{projection:$e,transformation:Wt(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});gt.Earth=Ct,gt.EPSG3395=wo,gt.EPSG3857=Se,gt.EPSG900913=Tn,gt.EPSG4326=Ji,gt.Simple=xo;var lt=Gt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[l(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[l(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});I.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=l(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=l(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return l(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){t=t?F(t)?t:[t]:[];for(var e=0,i=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof A&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){yt.prototype._setLatLngs.call(this,t),at(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return at(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new S(e,e);if(t=new G(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,r;nt.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(e=!e);return e||yt.prototype._containsPoint.call(this,t,!0)}});function Oo(t,e){return new Nt(t,e)}var Lt=vt.extend({initialize:function(t,e){w(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=F(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i0&&o.push(o[0].slice()),o}function Rt(t,e){return t.feature?T({},t.feature,{geometry:e}):ye(e)}function ye(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var oi={toGeoJSON:function(t){return Rt(this,{type:"Point",coordinates:ni(this.getLatLng(),t)})}};_e.include(oi),ei.include(oi),pe.include(oi),yt.include({toGeoJSON:function(t){var e=!at(this._latlngs),i=ve(this._latlngs,e?1:0,!1,t);return Rt(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),Nt.include({toGeoJSON:function(t){var e=!at(this._latlngs),i=e&&!at(this._latlngs[0]),n=ve(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Rt(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Bt.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Rt(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var i=e==="GeometryCollection",n=[];return this.eachLayer(function(o){if(o.toGeoJSON){var r=o.toGeoJSON(t);if(i)n.push(r.geometry);else{var u=ye(r);u.type==="FeatureCollection"?n.push.apply(n,u.features):n.push(u)}}}),i?Rt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});function tn(t,e){return new Lt(t,e)}var zo=tn,Le=lt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=q(e),w(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(z(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){W(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Zt(this._image),this},bringToBack:function(){return this._map&&It(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=q(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:B("img");if(z(e,"leaflet-image-layer"),this._zoomAnimated&&z(e,"leaflet-zoom-animated"),this.options.className&&z(e,this.options.className),e.onselectstart=f,e.onmousemove=f,e.onload=a(this.fire,this,"load"),e.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Tt(this._image,i,e)},_reset:function(){var t=this._image,e=new G(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();j(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){rt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Eo=function(t,e,i){return new Le(t,e,i)},en=Le.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:B("video");if(z(e,"leaflet-image-layer"),this._zoomAnimated&&z(e,"leaflet-zoom-animated"),this.options.className&&z(e,this.options.className),e.onselectstart=f,e.onmousemove=f,e.onloadeddata=a(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o0?n:[e.src];return}F(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;ro?(e.height=o+"px",z(t,r)):U(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();j(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(jt(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new S(this._containerLeft,-i-this._containerBottom);o._add(St(this._container));var r=t.layerPointToContainerPoint(o),u=M(this.options.autoPanPadding),c=M(this.options.autoPanPaddingTopLeft||u),_=M(this.options.autoPanPaddingBottomRight||u),v=t.getSize(),x=0,b=0;r.x+n+_.x>v.x&&(x=r.x+n-v.x+_.x),r.x-x-c.x<0&&(x=r.x-c.x),r.y+i+_.y>v.y&&(b=r.y+i-v.y+_.y),r.y-b-c.y<0&&(b=r.y-c.y),(x||b)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([x,b]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Bo=function(t,e){return new we(t,e)};I.mergeOptions({closePopupOnClick:!0}),I.include({openPopup:function(t,e,i){return this._initOverlay(we,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),lt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(we,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof vt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Ot(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Mt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var xe=_t.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){_t.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){_t.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=_t.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=B("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,r=n.latLngToContainerPoint(n.getCenter()),u=n.layerPointToContainerPoint(t),c=this.options.direction,_=o.offsetWidth,v=o.offsetHeight,x=M(this.options.offset),b=this._getAnchor();c==="top"?(e=_/2,i=v):c==="bottom"?(e=_/2,i=0):c==="center"?(e=_/2,i=v/2):c==="right"?(e=0,i=v/2):c==="left"?(e=_,i=v/2):u.xthis.options.maxZoom||in?this._retainParent(o,r,u,n):!1)},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var u=new S(o,r);u.z=i+1;var c=this._tileCoordsToKey(u),_=this._tiles[c];if(_&&_.active){_.retain=!0;continue}else _&&_.loaded&&(_.retain=!0);i+1this.options.maxZoom||this.options.minZoom!==void 0&&o1){this._setView(t,i);return}for(var b=o.min.y;b<=o.max.y;b++)for(var E=o.min.x;E<=o.max.x;E++){var Q=new S(E,b);if(Q.z=this._tileZoom,!!this._isValidTile(Q)){var K=this._tiles[this._tileCoordsToKey(Q)];K?K.current=!0:u.push(Q)}}if(u.sort(function(it,Ht){return it.distanceTo(r)-Ht.distanceTo(r)}),u.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ht=document.createDocumentFragment();for(E=0;Ei.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return q(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),r=e.unproject(n,t.z),u=e.unproject(o,t.z);return[r,u]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new et(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new S(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(W(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){z(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=f,t.onmousemove=f,C.ielt9&&this.options.opacity<1&&rt(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),a(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&$(a(this._tileReady,this,t,null,o)),j(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);i=this._tiles[n],i&&(i.loaded=+new Date,this._map._fadeAnimated?(rt(i.el,0),st(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(z(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),C.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new S(this._wrapX?p(t.x,this._wrapX):t.x,this._wrapY?p(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new G(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Ro(t){return new te(t)}var Dt=te.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=w(this,e),e.detectRetina&&C.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return k(i,"load",a(this._tileOnLoad,this,e,i)),k(i,"error",a(this._tileOnError,this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:C.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return H(this._url,T(e,this.options))},_tileOnLoad:function(t,e){C.ielt9?setTimeout(a(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;return i&&(t=e-t),t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=f,e.onerror=f,!e.complete)){e.src=nt;var i=this._tiles[t].coords;W(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",nt),te.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===nt))return te.prototype._tileReady.call(this,t,e,i)}});function sn(t,e){return new Dt(t,e)}var rn=Dt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=T({},this.defaultWmsParams);for(var n in e)n in this.options||(i[n]=e[n]);e=w(this,e);var o=e.detectRetina&&C.retina?2:1,r=this.getTileSize();i.width=r.x*o,i.height=r.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Dt.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=tt(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,u=(this._wmsVersion>=1.3&&this._crs===Ji?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),c=Dt.prototype.getTileUrl.call(this,t);return c+R(this.wmsParams,c,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+u},setParams:function(t,e){return T(this.wmsParams,t),e||this.redraw(),this}});function Do(t,e){return new rn(t,e)}Dt.WMS=rn,sn.wms=Do;var wt=lt.extend({options:{padding:.1},initialize:function(t){w(this,t),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),z(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));C.any3d?Tt(this._container,r,i):j(this._container,r)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new G(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),an=wt.extend({options:{tolerance:0},getEvents:function(){var t=wt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){wt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");k(t,"mousemove",this._onMouseMove,this),k(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),k(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){st(this._redrawRequest),delete this._ctx,W(this._container),D(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){wt.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=C.retina?2:1;j(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",C.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){wt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[l(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[l(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Ho={_initContainer:function(){this._container=B("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(wt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ee("shape");z(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ee("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;W(e),t.removeInteractiveTarget(e),delete this._layers[l(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=ee("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=F(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=ee("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Zt(t._container)},_bringToBack:function(t){It(t._container)}},Pe=C.vml?ee:ci,ie=wt.extend({_initContainer:function(){this._container=Pe("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Pe("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){W(this._container),D(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){wt.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),j(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Pe("path");t.options.className&&z(e,t.options.className),t.options.interactive&&z(e,"leaflet-interactive"),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){W(t._path),t.removeInteractiveTarget(t._path),delete this._layers[l(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,di(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Zt(t._path)},_bringToBack:function(t){It(t._path)}});C.vml&&ie.include(Ho);function un(t){return C.svg||C.vml?new ie(t):null}I.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&hn(t)||un(t)}});var ln=Nt.extend({initialize:function(t,e){Nt.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=q(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Fo(t,e){return new ln(t,e)}ie.create=Pe,ie.pointsToPath=di,Lt.geometryToLayer=me,Lt.coordsToLatLng=ii,Lt.coordsToLatLngs=ge,Lt.latLngToCoords=ni,Lt.latLngsToCoords=ve,Lt.getFeature=Rt,Lt.asFeature=ye,I.mergeOptions({boxZoom:!0});var cn=ft.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){k(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){D(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){W(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Vt(),De(),this._startPoint=this._map.mouseEventToContainerPoint(t),k(document,{contextmenu:Ot,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=B("div","leaflet-zoom-box",this._container),z(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new G(this._point,this._startPoint),i=e.getSize();j(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(W(this._box),U(this._container,"leaflet-crosshair")),Kt(),He(),D(document,{contextmenu:Ot,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var e=new et(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});I.addInitHook("addHandler","boxZoom",cn),I.mergeOptions({doubleClickZoom:!0});var dn=ft.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});I.addInitHook("addHandler","doubleClickZoom",dn),I.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var fn=ft.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new bt(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}z(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){U(this._map._container,"leaflet-grab"),U(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=q(this._map.options.maxBounds);this._offsetLimit=tt(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,u=Math.abs(o+i)0?r:-r))-e;this._delta=0,this._startTime=null,u&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+u):t.setZoomAround(this._lastMousePos,e+u))}});I.addInitHook("addHandler","scrollWheelZoom",pn);var Go=600;I.mergeOptions({tapHold:C.touchNative&&C.safari&&C.mobile,tapTolerance:15});var mn=ft.extend({addHooks:function(){k(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){D(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new S(e.clientX,e.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(k(document,"touchend",Y),k(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),Go),k(document,"touchend touchcancel contextmenu",this._cancel,this),k(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){D(document,"touchend",Y),D(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),D(document,"touchend touchcancel contextmenu",this._cancel,this),D(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new S(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});I.addInitHook("addHandler","tapHold",mn),I.mergeOptions({touchZoom:C.touch,bounceAtZoomLimits:!0});var gn=ft.extend({addHooks:function(){z(this._map._container,"leaflet-touch-zoom"),k(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){U(this._map._container,"leaflet-touch-zoom"),D(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),k(document,"touchmove",this._onTouchMove,this),k(document,"touchend touchcancel",this._onTouchEnd,this),Y(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,o===1)return}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&r.x===0&&r.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),st(this._animRequest);var u=a(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(u,this,!0),Y(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,st(this._animRequest),D(document,"touchmove",this._onTouchMove,this),D(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});I.addInitHook("addHandler","touchZoom",gn),I.BoxZoom=cn,I.DoubleClickZoom=dn,I.Drag=fn,I.Keyboard=_n,I.ScrollWheelZoom=pn,I.TapHold=mn,I.TouchZoom=gn,y.Bounds=G,y.Browser=C,y.CRS=gt,y.Canvas=an,y.Circle=ei,y.CircleMarker=pe,y.Class=mt,y.Control=ut,y.DivIcon=on,y.DivOverlay=_t,y.DomEvent=so,y.DomUtil=no,y.Draggable=bt,y.Evented=Gt,y.FeatureGroup=vt,y.GeoJSON=Lt,y.GridLayer=te,y.Handler=ft,y.Icon=At,y.ImageOverlay=Le,y.LatLng=A,y.LatLngBounds=et,y.Layer=lt,y.LayerGroup=Bt,y.LineUtil=yo,y.Map=I,y.Marker=_e,y.Mixin=fo,y.Path=Mt,y.Point=S,y.PolyUtil=_o,y.Polygon=Nt,y.Polyline=yt,y.Popup=we,y.PosAnimation=Di,y.Projection=Lo,y.Rectangle=ln,y.Renderer=wt,y.SVG=ie,y.SVGOverlay=nn,y.TileLayer=Dt,y.Tooltip=xe,y.Transformation=Te,y.Util=bn,y.VideoOverlay=en,y.bind=a,y.bounds=tt,y.canvas=hn,y.circle=So,y.circleMarker=To,y.control=Jt,y.divIcon=No,y.extend=T,y.featureGroup=Co,y.geoJSON=tn,y.geoJson=zo,y.gridLayer=Ro,y.icon=bo,y.imageOverlay=Eo,y.latLng=Z,y.latLngBounds=q,y.layerGroup=Po,y.map=ro,y.marker=Mo,y.point=M,y.polygon=Oo,y.polyline=ko,y.popup=Bo,y.rectangle=Fo,y.setOptions=w,y.stamp=l,y.svg=un,y.svgOverlay=Io,y.tileLayer=sn,y.tooltip=Ao,y.transformation=Wt,y.version=J,y.videoOverlay=Zo;var Wo=window.L;y.noConflict=function(){return window.L=Wo,this},window.L=y}))})(ne,ne.exports)),ne.exports}var es=ts();const xt=Qo(es);var oe={exports:{}},is=oe.exports,xn;function ns(){return xn||(xn=1,(function(X,N){(function(y,J){J(N)})(is,function(y){var J=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(s){L.Util.setOptions(this,s),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var a=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,a?this._withAnimation:this._noAnimation),this._markerCluster=a?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(s){if(s instanceof L.LayerGroup)return this.addLayers([s]);if(!s.getLatLng)return this._nonPointGroup.addLayer(s),this.fire("layeradd",{layer:s}),this;if(!this._map)return this._needsClustering.push(s),this.fire("layeradd",{layer:s}),this;if(this.hasLayer(s))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(s,this._maxZoom),this.fire("layeradd",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var a=s,h=this._zoom;if(s.__parent)for(;a.__parent._zoom>=h;)a=a.__parent;return this._currentShownBounds.contains(a.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(s,a):this._animationAddLayerNonAnimated(s,a)),this},removeLayer:function(s){return s instanceof L.LayerGroup?this.removeLayers([s]):s.getLatLng?this._map?s.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(s)),this._removeLayer(s,!0),this.fire("layerremove",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),s.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(s)&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,s)&&this.hasLayer(s)&&this._needsRemoving.push({layer:s,latlng:s._latlng}),this.fire("layerremove",{layer:s}),this):(this._nonPointGroup.removeLayer(s),this.fire("layerremove",{layer:s}),this)},addLayers:function(s,a){if(!L.Util.isArray(s))return this.addLayer(s);var h=this._featureGroup,l=this._nonPointGroup,d=this.options.chunkedLoading,p=this.options.chunkInterval,f=this.options.chunkProgress,g=s.length,m=0,P=!0,w;if(this._map){var R=new Date().getTime(),O=L.bind(function(){var F=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();mp)break}if(w=s[m],w instanceof L.LayerGroup){P&&(s=s.slice(),P=!1),this._extractNonGroupLayers(w,s),g=s.length;continue}if(!w.getLatLng){l.addLayer(w),a||this.fire("layeradd",{layer:w});continue}if(!this.hasLayer(w)&&(this._addLayer(w,this._maxZoom),a||this.fire("layeradd",{layer:w}),w.__parent&&w.__parent.getChildCount()===2)){var nt=w.__parent.getAllChildMarkers(),Ft=nt[0]===w?nt[1]:nt[0];h.removeLayer(Ft)}}f&&f(m,g,new Date().getTime()-R),m===g?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(O,this.options.chunkDelay)},this);O()}else for(var H=this._needsClustering;m=0;a--)s.extend(this._needsClustering[a].getLatLng());return s.extend(this._nonPointGroup.getBounds()),s},eachLayer:function(s,a){var h=this._needsClustering.slice(),l=this._needsRemoving,d,p,f;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(h),p=h.length-1;p>=0;p--){for(d=!0,f=l.length-1;f>=0;f--)if(l[f].layer===h[p]){d=!1;break}d&&s.call(a,h[p])}this._nonPointGroup.eachLayer(s,a)},getLayers:function(){var s=[];return this.eachLayer(function(a){s.push(a)}),s},getLayer:function(s){var a=null;return s=parseInt(s,10),this.eachLayer(function(h){L.stamp(h)===s&&(a=h)}),a},hasLayer:function(s){if(!s)return!1;var a,h=this._needsClustering;for(a=h.length-1;a>=0;a--)if(h[a]===s)return!0;for(h=this._needsRemoving,a=h.length-1;a>=0;a--)if(h[a].layer===s)return!1;return!!(s.__parent&&s.__parent._group===this)||this._nonPointGroup.hasLayer(s)},zoomToShowLayer:function(s,a){var h=this._map;typeof a!="function"&&(a=function(){});var l=function(){(h.hasLayer(s)||h.hasLayer(s.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",l,this),this.off("animationend",l,this),h.hasLayer(s)?a():s.__parent._icon&&(this.once("spiderfied",a,this),s.__parent.spiderfy()))};s._icon&&this._map.getBounds().contains(s.getLatLng())?a():s.__parent._zoom=0;h--)if(s[h]===a)return s.splice(h,1),!0},_removeFromGridUnclustered:function(s,a){for(var h=this._map,l=this._gridUnclustered,d=Math.floor(this._map.getMinZoom());a>=d&&l[a].removeObject(s,h.project(s.getLatLng(),a));a--);},_childMarkerDragStart:function(s){s.target.__dragStart=s.target._latlng},_childMarkerMoved:function(s){if(!this._ignoreMove&&!s.target.__dragStart){var a=s.target._popup&&s.target._popup.isOpen();this._moveChild(s.target,s.oldLatLng,s.latlng),a&&s.target.openPopup()}},_moveChild:function(s,a,h){s._latlng=a,this.removeLayer(s),s._latlng=h,this.addLayer(s)},_childMarkerDragEnd:function(s){var a=s.target.__dragStart;delete s.target.__dragStart,a&&this._moveChild(s.target,a,s.target._latlng)},_removeLayer:function(s,a,h){var l=this._gridClusters,d=this._gridUnclustered,p=this._featureGroup,f=this._map,g=Math.floor(this._map.getMinZoom());a&&this._removeFromGridUnclustered(s,this._maxZoom);var m=s.__parent,P=m._markers,w;for(this._arraySplice(P,s);m&&(m._childCount--,m._boundsNeedUpdate=!0,!(m._zoom"+a+"",className:"marker-cluster"+h,iconSize:new L.Point(40,40)})},_bindEvents:function(){var s=this._map,a=this.options.spiderfyOnMaxZoom,h=this.options.showCoverageOnHover,l=this.options.zoomToBoundsOnClick,d=this.options.spiderfyOnEveryZoom;(a||l||d)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),h&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),s.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(s){var a=s.layer,h=a;if(!(s.type==="clusterkeypress"&&s.originalEvent&&s.originalEvent.keyCode!==13)){for(;h._childClusters.length===1;)h=h._childClusters[0];h._zoom===this._maxZoom&&h._childCount===a._childCount&&this.options.spiderfyOnMaxZoom?a.spiderfy():this.options.zoomToBoundsOnClick&&a.zoomToBounds(),this.options.spiderfyOnEveryZoom&&a.spiderfy(),s.originalEvent&&s.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(s){var a=this._map;this._inZoomAnimation||(this._shownPolygon&&a.removeLayer(this._shownPolygon),s.layer.getChildCount()>2&&s.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(s.layer.getConvexHull(),this.options.polygonOptions),a.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var s=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,h=this.options.zoomToBoundsOnClick,l=this.options.spiderfyOnEveryZoom,d=this._map;(s||h||l)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),d.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var s=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,s),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),s),this._currentShownBounds=s}},_generateInitialClusters:function(){var s=Math.ceil(this._map.getMaxZoom()),a=Math.floor(this._map.getMinZoom()),h=this.options.maxClusterRadius,l=h;typeof h!="function"&&(l=function(){return h}),this.options.disableClusteringAtZoom!==null&&(s=this.options.disableClusteringAtZoom-1),this._maxZoom=s,this._gridClusters={},this._gridUnclustered={};for(var d=s;d>=a;d--)this._gridClusters[d]=new L.DistanceGrid(l(d)),this._gridUnclustered[d]=new L.DistanceGrid(l(d));this._topClusterLevel=new this._markerCluster(this,a-1)},_addLayer:function(s,a){var h=this._gridClusters,l=this._gridUnclustered,d=Math.floor(this._map.getMinZoom()),p,f;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(s),s.on(this._childMarkerEventHandlers,this);a>=d;a--){p=this._map.project(s.getLatLng(),a);var g=h[a].getNearObject(p);if(g){g._addChild(s),s.__parent=g;return}if(g=l[a].getNearObject(p),g){var m=g.__parent;m&&this._removeLayer(g,!1);var P=new this._markerCluster(this,a,g,s);h[a].addObject(P,this._map.project(P._cLatLng,a)),g.__parent=P,s.__parent=P;var w=P;for(f=a-1;f>m._zoom;f--)w=new this._markerCluster(this,f,w),h[f].addObject(w,this._map.project(g.getLatLng(),f));m._addChild(w),this._removeFromGridUnclustered(g,a);return}l[a].addObject(s,p)}this._topClusterLevel._addChild(s),s.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(s){s instanceof L.MarkerCluster&&s._iconNeedsUpdate&&s._updateIcon()})},_enqueue:function(s){this._queue.push(s),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var s=0;ss?(this._animationStart(),this._animationZoomOut(this._zoom,s)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(s){var a=this._maxLat;return a!==void 0&&(s.getNorth()>=a&&(s._northEast.lat=1/0),s.getSouth()<=-a&&(s._southWest.lat=-1/0)),s},_animationAddLayerNonAnimated:function(s,a){if(a===s)this._featureGroup.addLayer(s);else if(a._childCount===2){a._addToMap();var h=a.getAllChildMarkers();this._featureGroup.removeLayer(h[0]),this._featureGroup.removeLayer(h[1])}else a._updateIcon()},_extractNonGroupLayers:function(s,a){var h=s.getLayers(),l=0,d;for(a=a||[];l=0;p--)P=m[p],h.contains(P._latlng)||l.removeLayer(P)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(h,a),l.eachLayer(function(f){!(f instanceof L.MarkerCluster)&&f._icon&&f.clusterShow()}),this._topClusterLevel._recursively(h,s,a,function(f){f._recursivelyRestoreChildPositions(a)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(h,s,d,function(f){l.removeLayer(f),f.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(s,a){this._animationZoomOutSingle(this._topClusterLevel,s-1,a),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s,this._getExpandedVisibleBounds())},_animationAddLayer:function(s,a){var h=this,l=this._featureGroup;l.addLayer(s),a!==s&&(a._childCount>2?(a._updateIcon(),this._forceLayout(),this._animationStart(),s._setPos(this._map.latLngToLayerPoint(a.getLatLng())),s.clusterHide(),this._enqueue(function(){l.removeLayer(s),s.clusterShow(),h._animationEnd()})):(this._forceLayout(),h._animationStart(),h._animationZoomOutSingle(a,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(s,a,h){var l=this._getExpandedVisibleBounds(),d=Math.floor(this._map.getMinZoom());s._recursivelyAnimateChildrenInAndAddSelfToMap(l,d,a+1,h);var p=this;this._forceLayout(),s._recursivelyBecomeVisible(l,h),this._enqueue(function(){if(s._childCount===1){var f=s._markers[0];this._ignoreMove=!0,f.setLatLng(f.getLatLng()),this._ignoreMove=!1,f.clusterShow&&f.clusterShow()}else s._recursively(l,h,d,function(g){g._recursivelyRemoveChildrenFromMap(l,d,a+1)});p._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(s){return new L.MarkerClusterGroup(s)};var T=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(s,a,h,l){L.Marker.prototype.initialize.call(this,h?h._cLatLng||h.getLatLng():new L.LatLng(0,0),{icon:this,pane:s.options.clusterPane}),this._group=s,this._zoom=a,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,h&&this._addChild(h),l&&this._addChild(l)},getAllChildMarkers:function(s,a){s=s||[];for(var h=this._childClusters.length-1;h>=0;h--)this._childClusters[h].getAllChildMarkers(s,a);for(var l=this._markers.length-1;l>=0;l--)a&&this._markers[l].__dragStart||s.push(this._markers[l]);return s},getChildCount:function(){return this._childCount},zoomToBounds:function(s){for(var a=this._childClusters.slice(),h=this._group._map,l=h.getBoundsZoom(this._bounds),d=this._zoom+1,p=h.getZoom(),f;a.length>0&&l>d;){d++;var g=[];for(f=0;fd?this._group._map.setView(this._latlng,d):l<=p?this._group._map.setView(this._latlng,p+1):this._group._map.fitBounds(this._bounds,s)},getBounds:function(){var s=new L.LatLngBounds;return s.extend(this._bounds),s},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(s,a){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(s),s instanceof L.MarkerCluster?(a||(this._childClusters.push(s),s.__parent=this),this._childCount+=s._childCount):(a||this._markers.push(s),this._childCount++),this.__parent&&this.__parent._addChild(s,!0)},_setClusterCenter:function(s){this._cLatLng||(this._cLatLng=s._cLatLng||s._latlng)},_resetBounds:function(){var s=this._bounds;s._southWest&&(s._southWest.lat=1/0,s._southWest.lng=1/0),s._northEast&&(s._northEast.lat=-1/0,s._northEast.lng=-1/0)},_recalculateBounds:function(){var s=this._markers,a=this._childClusters,h=0,l=0,d=this._childCount,p,f,g,m;if(d!==0){for(this._resetBounds(),p=0;p=0;p--)f=d[p],f._icon&&(f._setPos(a),f.clusterHide())},function(l){var d=l._childClusters,p,f;for(p=d.length-1;p>=0;p--)f=d[p],f._icon&&(f._setPos(a),f.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(s,a,h,l){this._recursively(s,l,a,function(d){d._recursivelyAnimateChildrenIn(s,d._group._map.latLngToLayerPoint(d.getLatLng()).round(),h),d._isSingleParent()&&h-1===l?(d.clusterShow(),d._recursivelyRemoveChildrenFromMap(s,a,h)):d.clusterHide(),d._addToMap()})},_recursivelyBecomeVisible:function(s,a){this._recursively(s,this._group._map.getMinZoom(),a,null,function(h){h.clusterShow()})},_recursivelyAddChildrenToMap:function(s,a,h){this._recursively(h,this._group._map.getMinZoom()-1,a,function(l){if(a!==l._zoom)for(var d=l._markers.length-1;d>=0;d--){var p=l._markers[d];h.contains(p._latlng)&&(s&&(p._backupLatlng=p.getLatLng(),p.setLatLng(s),p.clusterHide&&p.clusterHide()),l._group._featureGroup.addLayer(p))}},function(l){l._addToMap(s)})},_recursivelyRestoreChildPositions:function(s){for(var a=this._markers.length-1;a>=0;a--){var h=this._markers[a];h._backupLatlng&&(h.setLatLng(h._backupLatlng),delete h._backupLatlng)}if(s-1===this._zoom)for(var l=this._childClusters.length-1;l>=0;l--)this._childClusters[l]._restorePosition();else for(var d=this._childClusters.length-1;d>=0;d--)this._childClusters[d]._recursivelyRestoreChildPositions(s)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(s,a,h,l){var d,p;this._recursively(s,a-1,h-1,function(f){for(p=f._markers.length-1;p>=0;p--)d=f._markers[p],(!l||!l.contains(d._latlng))&&(f._group._featureGroup.removeLayer(d),d.clusterShow&&d.clusterShow())},function(f){for(p=f._childClusters.length-1;p>=0;p--)d=f._childClusters[p],(!l||!l.contains(d._latlng))&&(f._group._featureGroup.removeLayer(d),d.clusterShow&&d.clusterShow())})},_recursively:function(s,a,h,l,d){var p=this._childClusters,f=this._zoom,g,m;if(a<=f&&(l&&l(this),d&&f===h&&d(this)),f=0;g--)m=p[g],m._boundsNeedUpdate&&m._recalculateBounds(),s.intersects(m._bounds)&&m._recursively(s,a,h,l,d)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var s=this.options.opacity;return this.setOpacity(0),this.options.opacity=s,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(s){this._cellSize=s,this._sqCellSize=s*s,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(s,a){var h=this._getCoord(a.x),l=this._getCoord(a.y),d=this._grid,p=d[l]=d[l]||{},f=p[h]=p[h]||[],g=L.Util.stamp(s);this._objectPoint[g]=a,f.push(s)},updateObject:function(s,a){this.removeObject(s),this.addObject(s,a)},removeObject:function(s,a){var h=this._getCoord(a.x),l=this._getCoord(a.y),d=this._grid,p=d[l]=d[l]||{},f=p[h]=p[h]||[],g,m;for(delete this._objectPoint[L.Util.stamp(s)],g=0,m=f.length;g=0;p--){if(f=a[p],g=this.getDistant(f,s),g>0)d.push(f);else continue;g>h&&(h=g,l=f)}return{maxPoint:l,newPoints:d}},buildConvexHull:function(s,a){var h=[],l=this.findMostDistantPointFromBaseLine(s,a);return l.maxPoint?(h=h.concat(this.buildConvexHull([s[0],l.maxPoint],l.newPoints)),h=h.concat(this.buildConvexHull([l.maxPoint,s[1]],l.newPoints)),h):[s[0]]},getConvexHull:function(s){var a=!1,h=!1,l=!1,d=!1,p=null,f=null,g=null,m=null,P=null,w=null,R;for(R=s.length-1;R>=0;R--){var O=s[R];(a===!1||O.lat>a)&&(p=O,a=O.lat),(h===!1||O.latl)&&(g=O,l=O.lng),(d===!1||O.lng=0;l--)h=s[l].getLatLng(),a.push(h);return L.QuickHull.getConvexHull(a)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var s=this.getAllChildMarkers(null,!0),a=this._group,h=a._map,l=h.latLngToLayerPoint(this._latlng),d;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?d=this._group.options.spiderfyShapePositions(s.length,l):s.length>=this._circleSpiralSwitchover?d=this._generatePointsSpiral(s.length,l):(l.y+=10,d=this._generatePointsCircle(s.length,l)),this._animationSpiderfy(s,d)}},unspiderfy:function(s){this._group._inZoomAnimation||(this._animationUnspiderfy(s),this._group._spiderfied=null)},_generatePointsCircle:function(s,a){var h=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+s),l=h/this._2PI,d=this._2PI/s,p=[],f,g;for(l=Math.max(l,35),p.length=s,f=0;f=0;m--)m=0;p--)d=l[p],h.removeLayer(d),d._preSpiderfyLatlng&&(d.setLatLng(d._preSpiderfyLatlng),delete d._preSpiderfyLatlng),d.setZIndexOffset&&d.setZIndexOffset(0),d._spiderLeg&&(a.removeLayer(d._spiderLeg),delete d._spiderLeg);s.fire("unspiderfied",{cluster:this,markers:l}),s._ignoreMove=!1,s._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(s,a){var h=this._group,l=h._map,d=h._featureGroup,p=this._group.options.spiderLegPolylineOptions,f,g,m,P;for(h._ignoreMove=!0,f=0;f=0;R--)nt=d.layerPointToLatLng(a[R]),O=s[R],O._preSpiderfyLatlng=O._latlng,O.setLatLng(nt),O.clusterShow&&O.clusterShow(),m&&(H=O._spiderLeg,F=H._path,F.style.strokeDashoffset=0,H.setStyle({opacity:w}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout(function(){l._animationEnd(),l.fire("spiderfied",{cluster:h,markers:s})},200)},_animationUnspiderfy:function(s){var a=this,h=this._group,l=h._map,d=h._featureGroup,p=s?l._latLngToNewLayerPoint(this._latlng,s.zoom,s.center):l.latLngToLayerPoint(this._latlng),f=this.getAllChildMarkers(null,!0),g=L.Path.SVG,m,P,w,R,O,H;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),P=f.length-1;P>=0;P--)m=f[P],m._preSpiderfyLatlng&&(m.closePopup(),m.setLatLng(m._preSpiderfyLatlng),delete m._preSpiderfyLatlng,H=!0,m._setPos&&(m._setPos(p),H=!1),m.clusterHide&&(m.clusterHide(),H=!1),H&&d.removeLayer(m),g&&(w=m._spiderLeg,R=w._path,O=R.getTotalLength()+.1,R.style.strokeDashoffset=O,w.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout(function(){var F=0;for(P=f.length-1;P>=0;P--)m=f[P],m._spiderLeg&&F++;for(P=f.length-1;P>=0;P--)m=f[P],m._spiderLeg&&(m.clusterShow&&m.clusterShow(),m.setZIndexOffset&&m.setZIndexOffset(0),F>1&&d.removeLayer(m),l.removeLayer(m._spiderLeg),delete m._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:a,markers:f})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(s){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(s))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(s){this._spiderfied&&this._spiderfied.unspiderfy(s)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(s){s._spiderLeg&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow(),s.setZIndexOffset&&s.setZIndexOffset(0),this._map.removeLayer(s._spiderLeg),delete s._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(s){return s?s instanceof L.MarkerClusterGroup?s=s._topClusterLevel.getAllChildMarkers():s instanceof L.LayerGroup?s=s._layers:s instanceof L.MarkerCluster?s=s.getAllChildMarkers():s instanceof L.Marker&&(s=[s]):s=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(s),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(s),this},_flagParentsIconsNeedUpdate:function(s){var a,h;for(a in s)for(h=s[a].__parent;h;)h._iconNeedsUpdate=!0,h=h.__parent},_refreshSingleMarkerModeMarkers:function(s){var a,h;for(a in s)h=s[a],this.hasLayer(h)&&h.setIcon(this._overrideMarkerIcon(h))}}),L.Marker.include({refreshIconOptions:function(s,a){var h=this.options.icon;return L.setOptions(h,s),this.setIcon(h),a&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),y.MarkerClusterGroup=J,y.MarkerCluster=T,Object.defineProperty(y,"__esModule",{value:!0})})})(oe,oe.exports)),oe.exports}ns();const Pn=[{lat:39.997013,lng:116.314468,city:"beijing",name:"Peking University International Hospital",rating:4.8,img:"../assets/1-Peking-University-International-Hospital-1-1024x683.jpg",depts:["urology","tcm","stem-cell","rehab","pediatrics","orthopedics","oncology","ophthalmology","nephrology","neurology","neurosurgery","cardiology"]},{lat:39.856181,lng:116.336457,city:"beijing",name:"Beijing GoBroad Hospital",rating:4.6,img:"../assets/Image-2.jpg",depts:["oncology","neurosurgery","hematology"]},{lat:40.208483,lng:116.224516,city:"beijing",name:"Beijing GoBroad Boren Hospital",rating:4.7,img:"../assets/Screenshot_2024-12-02_at_14.53.31-removebg-preview-e1733238355336-136x150.png",depts:["oncology","hematology"]},{lat:39.918095,lng:116.414034,city:"beijing",name:"Beijing Angel Children's Hospital",rating:4.9,img:"../assets/Angel-Hospital-Logo-150x150.jpg",depts:["rehab","tcm","pediatrics","neurology"]},{lat:32.105078,lng:118.688025,city:"nanjing",name:"Nanjing International Hospital",rating:4.8,img:"../assets/Screenshot-2024-12-04-at-00.02.32-1024x498.png",depts:["gastroenterology","oncology","ophthalmology","gynecology","tcm","rehab","orthopedics","neurology","nephrology","cardiology"]},{lat:31.317481,lng:121.608296,city:"shanghai",name:"Shanghai GoBroad Cancer Hospital",rating:4.7,img:"../assets/Image-2.jpg",depts:["oncology"]},{lat:39.936904,lng:116.795127,city:"beijing",name:"Hebei Yanda Hospital",rating:4.6,img:"../assets/1-1024x724.jpg",depts:["urology","tcm","stem-cell","rehab","pulmonology","orthopedics","oncology","nephrology","neurology","neurosurgery","cardiology","gastroenterology","endocrinology"]},{lat:39.875415,lng:116.404502,city:"beijing",name:"Beijing Puhua International Hospital",rating:4.7,img:"../assets/1469451658_Beijing-Puhua-International-Hospital_banner-150x150.png",depts:["stem-cell","neurosurgery","oncology","rehab"]},{lat:39.548478,lng:116.079292,city:"zhuozhou",name:"Yizhou Cancer Hospital",rating:4.8,img:"https://placehold.co/300x200?text=Yizhou",depts:["proton-therapy","oncology"]}];let Pt,se;function os(){document.getElementById("map")&&(Pt=xt.map("map",{scrollWheelZoom:!1,zoomControl:!1}).setView([35.8617,104.1954],4),xt.control.zoom({position:"bottomright"}).addTo(Pt),xt.tileLayer("https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",{attribution:"© CARTO",maxZoom:19}).addTo(Pt),se=xt.markerClusterGroup({showCoverageOnHover:!1,zoomToBoundsOnClick:!0,spiderfyOnMaxZoom:!0,iconCreateFunction:function(N){return xt.divIcon({html:'
'+N.getChildCount()+"
",className:"custom-marker-cluster",iconSize:[44,44]})}}),Pt.addLayer(se),Cn(Pn))}function Cn(X){se&&(se.clearLayers(),X.forEach(N=>{const y=xt.divIcon({className:"custom-pin",html:'
',iconSize:[30,40],iconAnchor:[15,40],popupAnchor:[0,-40]}),J=xt.marker([N.lat,N.lng],{icon:y}),T=`
${N.name}
★ ${N.rating}
${N.city}

${N.name}

${N.depts?N.depts.slice(0,3).map(s=>`${s}`).join(""):""} ${N.depts&&N.depts.length>3?`+${N.depts.length-3}`:""}
View Details
`;J.bindPopup(T,{minWidth:260,maxWidth:260,closeButton:!1}),se.addLayer(J)}))}function ss(){const X=document.querySelectorAll(".filter-toggle"),N=document.querySelectorAll(".filter-content");X.forEach(a=>{a.addEventListener("click",h=>{h.stopPropagation();const l=a.dataset.filter,d=document.querySelector(`[data-filter-content="${l}"]`);N.forEach(p=>{p!==d&&(p.classList.add("hidden"),p.classList.remove("opacity-100","translate-y-0"))}),d.classList.contains("hidden")?(d.classList.remove("hidden"),setTimeout(()=>d.classList.add("opacity-100","translate-y-0"),10)):(d.classList.remove("opacity-100","translate-y-0"),setTimeout(()=>d.classList.add("hidden"),200))})}),document.addEventListener("click",a=>{a.target.closest(".filter-group")||N.forEach(h=>{h.classList.remove("opacity-100","translate-y-0"),setTimeout(()=>h.classList.add("hidden"),200)})}),N.forEach(a=>{a.addEventListener("click",h=>h.stopPropagation())});const y=document.querySelectorAll(".city-filter"),J=document.querySelectorAll(".dept-filter"),T=document.querySelector(".all-depts-filter");function s(){const a=Array.from(document.querySelectorAll(".city-filter:checked")).map(d=>d.value.toLowerCase()),h=Array.from(document.querySelectorAll(".dept-filter:checked")).map(d=>d.value.toLowerCase()),l=Pn.filter(d=>{const p=a.length===0||a.includes(d.city.toLowerCase()),f=h.length===0||T&&T.checked||d.depts.some(g=>h.includes(g.toLowerCase()));return p&&f});if(Cn(l),l.length>0&&Pt){const d=new xt.featureGroup(l.map(p=>xt.marker([p.lat,p.lng])));l.length>1?Pt.fitBounds(d.getBounds().pad(.1)):Pt.setView([l[0].lat,l[0].lng],10)}}y.forEach(a=>a.addEventListener("change",s)),J.forEach(a=>a.addEventListener("change",()=>{T&&(T.checked=!1),s()})),T&&T.addEventListener("change",function(){this.checked&&J.forEach(a=>a.checked=!1),s()}),document.getElementById("reset-filters")?.addEventListener("click",()=>{document.querySelectorAll('input[type="checkbox"]').forEach(a=>a.checked=!1),T&&(T.checked=!1),s(),Pt&&Pt.setView([35.8617,104.1954],4)})}if(typeof window<"u"){const X=()=>{const N=document.getElementById("map");if(!N||N.classList.contains("leaflet-container"))return;new IntersectionObserver((J,T)=>{J[0].isIntersecting&&(requestAnimationFrame(()=>{os(),ss()}),T.disconnect())},{root:null,rootMargin:"300px",threshold:0}).observe(N)};document.addEventListener("DOMContentLoaded",X),document.addEventListener("astro:page-load",X)}