You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
17 KiB

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./leaflet-src-DKb5ysSI.js","./index-BLqts8WY.js","./index-DJsLjCDx.css"])))=>i.map(i=>d[i]);
import{U as P,r as g,ao as w,Y as I,ap as L,aq as k,E as j,ar as x,W as le,Z as X,as as Te,at as _,au as Ce,$ as Z,al as Y}from"./index-BLqts8WY.js";const re=(e,t)=>{for(const o of Object.keys(t))e.on(o,t[o])},ue=e=>{for(const t of Object.keys(e)){const o=e[t];o&&R(o.cancel)&&o.cancel()}},_e=e=>!e||typeof e.charAt!="function"?e:e.charAt(0).toUpperCase()+e.slice(1),R=e=>typeof e=="function",N=(e,t,o)=>{for(const n in o){const l="set"+_e(n);e[l]?le(()=>o[n],(a,i)=>{e[l](a,i)}):t[l]&&le(()=>o[n],a=>{t[l](a)})}},S=(e,t,o={})=>{const n={...o};for(const l in e){const a=t[l],i=e[l];a&&(a&&a.custom===!0||i!==void 0&&(n[l]=i))}return n},U=e=>{const t={},o={};for(const n in e)if(n.startsWith("on")&&!n.startsWith("onUpdate")&&n!=="onReady"){const l=n.slice(2).toLocaleLowerCase();t[l]=e[n]}else o[n]=e[n];return{listeners:t,attrs:o}},Be=async e=>{const t=await Promise.all([L(()=>import("./marker-icon-2x-D4k_ikNW.js"),[],import.meta.url),L(()=>import("./marker-icon-C2eJqgqv.js"),[],import.meta.url),L(()=>import("./marker-shadow-DU6CIJ0p.js"),[],import.meta.url)]);delete e.Default.prototype._getIconUrl,e.Default.mergeOptions({iconRetinaUrl:t[0].default,iconUrl:t[1].default,shadowUrl:t[2].default})},G=e=>{const t=g((...n)=>console.warn(`Method ${e} has been invoked without being replaced`)),o=(...n)=>t.value(...n);return o.wrapped=t,_(e,o),o},W=(e,t)=>e.wrapped.value=t,B=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,O=e=>{const t=w(e);if(t===void 0)throw new Error(`Attempt to inject ${e.description} before it was provided.`);return t},E=Symbol("useGlobalLeaflet"),V=Symbol("addLayer"),Q=Symbol("removeLayer"),de=Symbol("registerControl"),Re=Symbol("registerLayerControl"),pe=Symbol("canSetParentHtml"),ce=Symbol("setParentHtml"),fe=Symbol("setIcon"),je=Symbol("bindPopup"),Pe=Symbol("bindTooltip"),we=Symbol("unbindPopup"),Ie=Symbol("unbindTooltip"),F={options:{type:Object,default:()=>({}),custom:!0}},H=e=>({options:e.options,methods:{}}),M={...F,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},ee=(e,t,o)=>{const n=O(V),l=O(Q),{options:a,methods:i}=H(e),s=S(e,M,a),r=()=>n({leafletObject:t.value}),p=()=>l({leafletObject:t.value}),d={...i,setAttribution(c){p(),t.value.options.attribution=c,e.visible&&r()},setName(){p(),e.visible&&r()},setLayerType(){p(),e.visible&&r()},setVisible(c){t.value&&(c?r():p())},bindPopup(c){if(!t.value||!R(t.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}t.value.bindPopup(c)},bindTooltip(c){if(!t.value||!R(t.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}t.value.bindTooltip(c)},unbindTooltip(){t.value&&(R(t.value.closeTooltip)&&t.value.closeTooltip(),R(t.value.unbindTooltip)&&t.value.unbindTooltip())},unbindPopup(){t.value&&(R(t.value.closePopup)&&t.value.closePopup(),R(t.value.unbindPopup)&&t.value.unbindPopup())},updateVisibleProp(c){o.emit("update:visible",c)}};return _(je,d.bindPopup),_(Pe,d.bindTooltip),_(we,d.unbindPopup),_(Ie,d.unbindTooltip),X(()=>{d.unbindPopup(),d.unbindTooltip(),p()}),{options:s,methods:d}},ye=(e,t)=>{if(e&&t.default)return x("div",{style:{display:"none"}},t.default())},me={...M,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},Ne=(e,t,o)=>{const{options:n,methods:l}=ee(e,t,o);return{options:S(e,me,n),methods:l}},te={...me,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},Ee=(e,t,o)=>{const{options:n,methods:l}=Ne(e,t,o),a=S(e,te,n),i=O(Q),s={...l,setStroke(r){t.value.setStyle({stroke:r})},setColor(r){t.value.setStyle({color:r})},setWeight(r){t.value.setStyle({weight:r})},setOpacity