const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/leaflet-src-BRgqcJ1x.js","assets/main-D6qyxymd.js","assets/main-DYIv07g8.css"])))=>i.map(i=>d[i]); import{_ as D,i as F,c as A,o as j,b as V,a as q,j as W,m as $,e as I,d as w,w as U,f as Q,k as K,g as Y,l as E,h as M}from"./main-D6qyxymd.js";import{e as X}from"./wwElement-CIffNYMW.js";import{e as J,a as ee,b as te,c as ie,d as ne,f as re,g as se}from"./wwElement-DQHs103p.js";import{e as oe}from"./wwElement-DWiiT5l6.js";import{e as ae}from"./wwElement-Dpq-6M0l.js";/* empty css */import{s as ue}from"./wwSection-CQpGyXbr.js";var B={exports:{}},le=B.exports,R;function he(){return R||(R=1,(function(y,x){(function(S,c){c(x)})(le,function(S){var c=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(e){L.Util.setOptions(this,e),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 t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):e.getLatLng?this._map?e.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e}),this):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e}),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i=this._featureGroup,n=this._nonPointGroup,r=this.options.chunkedLoading,o=this.options.chunkInterval,s=this.options.chunkProgress,u=e.length,a=0,_=!0,h;if(this._map){var p=new Date().getTime(),d=L.bind(function(){var v=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();ao)break}if(h=e[a],h instanceof L.LayerGroup){_&&(e=e.slice(),_=!1),this._extractNonGroupLayers(h,e),u=e.length;continue}if(!h.getLatLng){n.addLayer(h),t||this.fire("layeradd",{layer:h});continue}if(!this.hasLayer(h)&&(this._addLayer(h,this._maxZoom),t||this.fire("layeradd",{layer:h}),h.__parent&&h.__parent.getChildCount()===2)){var b=h.__parent.getAllChildMarkers(),T=b[0]===h?b[1]:b[0];i.removeLayer(T)}}s&&s(a,u,new Date().getTime()-p),a===u?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)},this);d()}else for(var m=this._needsClustering;a=0;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i=this._needsClustering.slice(),n=this._needsRemoving,r,o,s;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(i),o=i.length-1;o>=0;o--){for(r=!0,s=n.length-1;s>=0;s--)if(n[s].layer===i[o]){r=!1;break}r&&e.call(t,i[o])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer(function(t){e.push(t)}),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer(function(i){L.stamp(i)===e&&(t=i)}),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;t>=0;t--)if(i[t]===e)return!0;for(i=this._needsRemoving,t=i.length-1;t>=0;t--)if(i[t].layer===e)return!1;return!!(e.__parent&&e.__parent._group===this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;typeof t!="function"&&(t=function(){});var n=function(){(i.hasLayer(e)||i.hasLayer(e.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",n,this),this.off("animationend",n,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom=0;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,n=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());t>=r&&n[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var n=this._gridClusters,r=this._gridUnclustered,o=this._featureGroup,s=this._map,u=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var a=e.__parent,_=a._markers,h;for(this._arraySplice(_,e);a&&(a._childCount--,a._boundsNeedUpdate=!0,!(a._zoom"+t+"",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom;(t||n||r)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if(!(e.type==="clusterkeypress"&&e.originalEvent&&e.originalEvent.keyCode!==13)){for(;i._childClusters.length===1;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&e.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),e.layer.getChildCount()>2&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom,r=this._map;(e||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),r.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 e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;typeof i!="function"&&(n=function(){return i}),this.options.disableClusteringAtZoom!==null&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var r=e;r>=t;r--)this._gridClusters[r]=new L.DistanceGrid(n(r)),this._gridUnclustered[r]=new L.DistanceGrid(n(r));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i=this._gridClusters,n=this._gridUnclustered,r=Math.floor(this._map.getMinZoom()),o,s;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);t>=r;t--){o=this._map.project(e.getLatLng(),t);var u=i[t].getNearObject(o);if(u){u._addChild(e),e.__parent=u;return}if(u=n[t].getNearObject(o),u){var a=u.__parent;a&&this._removeLayer(u,!1);var _=new this._markerCluster(this,t,u,e);i[t].addObject(_,this._map.project(_._cLatLng,t)),u.__parent=_,e.__parent=_;var h=_;for(s=t-1;s>a._zoom;s--)h=new this._markerCluster(this,s,h),i[s].addObject(h,this._map.project(u.getLatLng(),s));a._addChild(h),this._removeFromGridUnclustered(u,t);return}n[t].addObject(e,o)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()})},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;ee?(this._animationStart(),this._animationZoomOut(this._zoom,e)):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(e){var t=this._maxLat;return t!==void 0&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(t._childCount===2){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i=e.getLayers(),n=0,r;for(t=t||[];n=0;o--)_=a[o],i.contains(_._latlng)||n.removeLayer(_)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(i,t),n.eachLayer(function(s){!(s instanceof L.MarkerCluster)&&s._icon&&s.clusterShow()}),this._topClusterLevel._recursively(i,e,t,function(s){s._recursivelyRestoreChildPositions(t)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(i,e,r,function(s){n.removeLayer(s),s.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,n=this._featureGroup;n.addLayer(e),t!==e&&(t._childCount>2?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue(function(){n.removeLayer(e),e.clusterShow(),i._animationEnd()})):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var n=this._getExpandedVisibleBounds(),r=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(n,r,t+1,i);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(n,i),this._enqueue(function(){if(e._childCount===1){var s=e._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else e._recursively(n,i,r,function(u){u._recursivelyRemoveChildrenFromMap(n,r,t+1)});o._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(e){return new L.MarkerClusterGroup(e)};var k=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var n=this._markers.length-1;n>=0;n--)t&&this._markers[n].__dragStart||e.push(this._markers[n]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t=this._childClusters.slice(),i=this._group._map,n=i.getBoundsZoom(this._bounds),r=this._zoom+1,o=i.getZoom(),s;t.length>0&&n>r;){r++;var u=[];for(s=0;sr?this._group._map.setView(this._latlng,r):n<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_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(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e=this._markers,t=this._childClusters,i=0,n=0,r=this._childCount,o,s,u,a;if(r!==0){for(this._resetBounds(),o=0;o=0;o--)s=r[o],s._icon&&(s._setPos(t),s.clusterHide())},function(n){var r=n._childClusters,o,s;for(o=r.length-1;o>=0;o--)s=r[o],s._icon&&(s._setPos(t),s.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,n){this._recursively(e,n,t,function(r){r._recursivelyAnimateChildrenIn(e,r._group._map.latLngToLayerPoint(r.getLatLng()).round(),i),r._isSingleParent()&&i-1===n?(r.clusterShow(),r._recursivelyRemoveChildrenFromMap(e,t,i)):r.clusterHide(),r._addToMap()})},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,function(i){i.clusterShow()})},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,function(n){if(t!==n._zoom)for(var r=n._markers.length-1;r>=0;r--){var o=n._markers[r];i.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),n._group._featureGroup.addLayer(o))}},function(n){n._addToMap(e)})},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;t>=0;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,n){var r,o;this._recursively(e,t-1,i-1,function(s){for(o=s._markers.length-1;o>=0;o--)r=s._markers[o],(!n||!n.contains(r._latlng))&&(s._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())},function(s){for(o=s._childClusters.length-1;o>=0;o--)r=s._childClusters[o],(!n||!n.contains(r._latlng))&&(s._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())})},_recursively:function(e,t,i,n,r){var o=this._childClusters,s=this._zoom,u,a;if(t<=s&&(n&&n(this),r&&s===i&&r(this)),s=0;u--)a=o[u],a._boundsNeedUpdate&&a._recalculateBounds(),e.intersects(a._bounds)&&a._recursively(e,t,i,n,r)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),n=this._getCoord(t.y),r=this._grid,o=r[n]=r[n]||{},s=o[i]=o[i]||[],u=L.Util.stamp(e);this._objectPoint[u]=t,s.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i=this._getCoord(t.x),n=this._getCoord(t.y),r=this._grid,o=r[n]=r[n]||{},s=o[i]=o[i]||[],u,a;for(delete this._objectPoint[L.Util.stamp(e)],u=0,a=s.length;u=0;o--){if(s=t[o],u=this.getDistant(s,e),u>0)r.push(s);else continue;u>i&&(i=u,n=s)}return{maxPoint:n,newPoints:r}},buildConvexHull:function(e,t){var i=[],n=this.findMostDistantPointFromBaseLine(e,t);return n.maxPoint?(i=i.concat(this.buildConvexHull([e[0],n.maxPoint],n.newPoints)),i=i.concat(this.buildConvexHull([n.maxPoint,e[1]],n.newPoints)),i):[e[0]]},getConvexHull:function(e){var t=!1,i=!1,n=!1,r=!1,o=null,s=null,u=null,a=null,_=null,h=null,p;for(p=e.length-1;p>=0;p--){var d=e[p];(t===!1||d.lat>t)&&(o=d,t=d.lat),(i===!1||d.latn)&&(u=d,n=d.lng),(r===!1||d.lng=0;n--)i=e[n].getLatLng(),t.push(i);return L.QuickHull.getConvexHull(t)}}),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 e=this.getAllChildMarkers(null,!0),t=this._group,i=t._map,n=i.latLngToLayerPoint(this._latlng),r;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?r=this._group.options.spiderfyShapePositions(e.length,n):e.length>=this._circleSpiralSwitchover?r=this._generatePointsSpiral(e.length,n):(n.y+=10,r=this._generatePointsCircle(e.length,n)),this._animationSpiderfy(e,r)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e),n=i/this._2PI,r=this._2PI/e,o=[],s,u;for(n=Math.max(n,35),o.length=e,s=0;s=0;a--)a=0;o--)r=n[o],i.removeLayer(r),r._preSpiderfyLatlng&&(r.setLatLng(r._preSpiderfyLatlng),delete r._preSpiderfyLatlng),r.setZIndexOffset&&r.setZIndexOffset(0),r._spiderLeg&&(t.removeLayer(r._spiderLeg),delete r._spiderLeg);e.fire("unspiderfied",{cluster:this,markers:n}),e._ignoreMove=!1,e._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i=this._group,n=i._map,r=i._featureGroup,o=this._group.options.spiderLegPolylineOptions,s,u,a,_;for(i._ignoreMove=!0,s=0;s=0;p--)b=r.layerPointToLatLng(t[p]),d=e[p],d._preSpiderfyLatlng=d._latlng,d.setLatLng(b),d.clusterShow&&d.clusterShow(),a&&(m=d._spiderLeg,v=m._path,v.style.strokeDashoffset=0,m.setStyle({opacity:h}));this.setOpacity(.3),n._ignoreMove=!1,setTimeout(function(){n._animationEnd(),n.fire("spiderfied",{cluster:i,markers:e})},200)},_animationUnspiderfy:function(e){var t=this,i=this._group,n=i._map,r=i._featureGroup,o=e?n._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):n.latLngToLayerPoint(this._latlng),s=this.getAllChildMarkers(null,!0),u=L.Path.SVG,a,_,h,p,d,m;for(i._ignoreMove=!0,i._animationStart(),this.setOpacity(1),_=s.length-1;_>=0;_--)a=s[_],a._preSpiderfyLatlng&&(a.closePopup(),a.setLatLng(a._preSpiderfyLatlng),delete a._preSpiderfyLatlng,m=!0,a._setPos&&(a._setPos(o),m=!1),a.clusterHide&&(a.clusterHide(),m=!1),m&&r.removeLayer(a),u&&(h=a._spiderLeg,p=h._path,d=p.getTotalLength()+.1,p.style.strokeDashoffset=d,h.setStyle({opacity:0})));i._ignoreMove=!1,setTimeout(function(){var v=0;for(_=s.length-1;_>=0;_--)a=s[_],a._spiderLeg&&v++;for(_=s.length-1;_>=0;_--)a=s[_],a._spiderLeg&&(a.clusterShow&&a.clusterShow(),a.setZIndexOffset&&a.setZIndexOffset(0),v>1&&r.removeLayer(a),n.removeLayer(a._spiderLeg),delete a._spiderLeg);i._animationEnd(),i.fire("unspiderfied",{cluster:t,markers:s})},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(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),S.MarkerClusterGroup=c,S.MarkerCluster=k,Object.defineProperty(S,"__esModule",{value:!0})})})(B,B.exports)),B.exports}he();const _e={props:{uid:{type:String,required:!0},content:{type:Object,required:!0}},emits:["trigger-event"],setup(y,{emit:x}){const S=I(null),c=I(null),k=I([]),e=I(null),t=I(null),i=w(()=>{var l;return((l=y.content)==null?void 0:l.mapProvider)||"osm"}),n=w(()=>{var l;return((l=y.content)==null?void 0:l.apiKey2GIS)||""}),r=w(()=>{var l;return((l=y.content)==null?void 0:l.apiKeyYandex)||""}),o=w(()=>{var l;return((l=y.content)==null?void 0:l.initialZoom)||10}),s=w(()=>{var l;return((l=y.content)==null?void 0:l.initialCenterLat)||0}),u=w(()=>{var l;return((l=y.content)==null?void 0:l.initialCenterLng)||0}),a=w(()=>{var l;return((l=y.content)==null?void 0:l.defaultMarkerColor)||"#3388ff"}),_=w(()=>{var l;return((l=y.content)==null?void 0:l.defaultMarkerIcon)||"location-marker"}),h=w(()=>{var l;return((l=y.content)==null?void 0:l.enableClustering)!==!1}),p=w(()=>{var l;return((l=y.content)==null?void 0:l.places)||[]}),d=async()=>{if(!S.value)return;const l=await E(()=>import("./leaflet-src-BRgqcJ1x.js").then(f=>f.l),__vite__mapDeps([0,1,2]));c.value=l.map(S.value).setView([s.value,u.value],o.value),m(l),h.value&&(e.value=l.markerClusterGroup(),c.value.addLayer(e.value)),v(l),x("trigger-event",{name:"mapReady",event:{}})},m=l=>{let f,C;switch(i.value){case"2gis":n.value?(f=`https://tile0.maps.2gis.com/tiles?x={x}&y={y}&z={z}&key=${n.value}`,C="© 2GIS"):(f="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",C="© OpenStreetMap contributors");break;case"yandex":r.value?(f="https://core-renderer-tiles.maps.yandex.net/tiles?l=map&x={x}&y={y}&z={z}&scale=1&lang=en_US",C="© Yandex"):(f="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",C="© OpenStreetMap contributors");break;default:f="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",C="© OpenStreetMap contributors"}l.tileLayer(f,{attribution:C,maxZoom:19}).addTo(c.value)},v=async l=>{var C;if(!c.value)return;e.value?e.value.clearLayers():(k.value.forEach(g=>c.value.removeLayer(g)),k.value=[]);const f=[];for(const g of p.value){if(!g||typeof g.lat!="number"||typeof g.lng!="number")continue;let G;const{getIcon:H}=((C=wwLib.useIcons)==null?void 0:C.call(wwLib))||{getIcon:async()=>null},z=await H(g.icon||_.value);if(z){const P=document.createElement("div");P.className="marker-icon",P.style.color=g.color||a.value,P.innerHTML=z;const Z=l.divIcon({html:P,className:"custom-div-icon",iconSize:[30,30],iconAnchor:[15,30]});G=l.marker([g.lat,g.lng],{icon:Z})}else G=l.circleMarker([g.lat,g.lng],{radius:8,fillColor:g.color||a.value,color:"#fff",weight:1,opacity:1,fillOpacity:.8});G.bindPopup(()=>{var Z;t.value=g;const P=document.createElement("div");if((Z=y.content)!=null&&Z.popupContentElement){const N=document.querySelector(".popup-content-wrapper");N&&(P.appendChild(N.cloneNode(!0)),P.querySelector(".popup-content-wrapper").style.display="block")}else P.innerHTML=`

${g.label||"Unnamed location"}

${g.description?`

${g.description}

`:""}
`;return P}),G.on("popupopen",()=>{t.value=g,x("trigger-event",{name:"popupOpen",event:{place:g}})}),f.push(G),h.value&&e.value?e.value.addLayer(G):G.addTo(c.value)}k.value=f,f.length>0&&b()},O=(l,f,C)=>{c.value&&(c.value.flyTo([l,f],C||o.value,{animate:!0,duration:1}),x("trigger-event",{name:"flyTo",event:{lat:l,lng:f,zoom:C}}))},b=()=>{if(!c.value||k.value.length===0)return;const l=L.featureGroup(k.value);c.value.fitBounds(l.getBounds(),{padding:[30,30]}),x("trigger-event",{name:"fitBounds",event:{}})},T=l=>{if(!c.value||!k.value[l])return;k.value[l].openPopup();const f=p.value[l];f&&x("trigger-event",{name:"openPopup",event:{index:l,place:f}})};return U(p,async()=>{if(!c.value)return;const l=await E(()=>import("./leaflet-src-BRgqcJ1x.js").then(f=>f.l),__vite__mapDeps([0,1,2]));v(l)},{deep:!0}),U([i,n,r],async()=>{if(!c.value)return;const l=await E(()=>import("./leaflet-src-BRgqcJ1x.js").then(f=>f.l),__vite__mapDeps([0,1,2]));c.value.eachLayer(f=>{f instanceof l.TileLayer&&c.value.removeLayer(f)}),m(l)}),U(h,async()=>{if(!c.value)return;const l=await E(()=>import("./leaflet-src-BRgqcJ1x.js").then(f=>f.l),__vite__mapDeps([0,1,2]));e.value&&(c.value.removeLayer(e.value),e.value=null),k.value.forEach(f=>c.value.removeLayer(f)),h.value&&(e.value=l.markerClusterGroup(),c.value.addLayer(e.value)),v(l)}),Q(async()=>{await K(),await d()}),Y(()=>{c.value&&(c.value.remove(),c.value=null)}),{mapContainer:S,selectedPlace:t,flyTo:O,fitBounds:b,openPopupByIndex:T}}},de={class:"interactive-map"},ce={ref:"mapContainer",class:"map-container"},fe={key:0,class:"popup-content-wrapper",style:{display:"none"}};function pe(y,x,S,c,k,e){const t=F("wwElement",!0);return j(),A("div",de,[V("div",ce,null,512),c.selectedPlace?(j(),A("div",fe,[W(t,$(S.content.popupContentElement,{place:c.selectedPlace}),null,16,["place"])])):q("",!0)])}const me=D(_e,[["render",pe],["__scopeId","data-v-6c0309e5"]]);M.component("wwobject-14723a21-0178-4d92-a7e9-d1dfeaec29a7",X);M.component("wwobject-1b1e2173-9b78-42cc-a8ee-a6167caea340",J);M.component("wwobject-3a7d6379-12d3-4387-98ff-b332bb492a63",oe);M.component("wwobject-59dca300-db78-42e4-a7a6-0cbf22d3cc82",ee);M.component("wwobject-7868ccd8-4b9c-4e8d-ac78-a26844c19450",ae);M.component("wwobject-b50837c5-bb16-43b2-828b-4ed5b5b18b95",me);M.component("wwobject-b783dc65-d528-4f74-8c14-e27c934c39b1",te);M.component("wwobject-bf59c8e7-14c9-4c03-a739-8bd7d14031a4",ie);M.component("wwobject-c6c0c00e-49fd-4cb9-bd78-5bc09945721e",ne);M.component("wwobject-d7904e9d-fc9a-4d80-9e32-728e097879ad",re);M.component("wwobject-deb10a01-5eef-4aa1-9017-1b51c2ad6fd0",se);M.component("section-99586bd3-2b15-4d6b-a025-6a50d07ca845",ue);