1import{j as x,t as T,a as y,i as C,k as G,b as O,an as L,o as R,p as z,y as xe,G as X,J,L as ae,ak as Q,Y as Be,Z as Ne,ao as Oe,E as Le,O as Ie}from"./RAqWWVVn.js";(function(){try{if(typeof document<"u"){var s=document.createElement("style");s.appendChild(document.createTextNode(".mapdiv[data-v-d05fc6bc]{width:100%;height:100%}.custom-control-wrapper[data-v-d099a3a6]{display:none}.mapdiv .custom-control-wrapper[data-v-d099a3a6]{display:inline-block}.info-window-wrapper[data-v-cbe1707b]{display:none}.mapdiv .info-window-wrapper[data-v-cbe1707b]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(s)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var ze=Object.defineProperty,$e=(s,e,t)=>e in s?ze(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,pe=(s,e,t)=>($e(s,typeof e!="symbol"?e+"":e,t),t);const Z=Symbol("map"),B=Symbol("api"),ne=Symbol("marker"),le=Symbol("markerCluster"),ee=Symbol("CustomMarker"),Se=Symbol("mapTilesLoaded"),U=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];/*! ***************************************************************************** 2Copyright (c) Microsoft Corporation. 3 4Permission to use, copy, modify, and/or distribute this software for any 5purpose with or without fee is hereby granted. 6 7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 13PERFORMANCE OF THIS SOFTWARE. 14***************************************************************************** */function Ue(s,e,t,r){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function u(c){try{d(r.next(c))}catch(l){a(l)}}function n(c){try{d(r.throw(c))}catch(l){a(l)}}function d(c){c.done?i(c.value):o(c.value).then(u,n)}d((r=r.apply(s,[])).next())})}var De=function s(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!s(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=r;o--!==0;){var a=i[o];if(!s(e[a],t[a]))return!1}return!0}return e!==e&&t!==t};const he="__googleMapsScriptId";var N;(function(s){s[s.INITIALIZED=0]="INITIALIZED",s[s.LOADING=1]="LOADING",s[s.SUCCESS=2]="SUCCESS",s[s.FAILURE=3]="FAILURE"})(N||(N={}));class q{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:o,id:i=he,language:a,libraries:u=[],mapIds:n,nonce:d,region:c,retries:l=3,url:p="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=o,this.id=i||he,this.language=a,this.libraries=u,this.mapIds=n,this.nonce=d,this.region=c,this.retries=l,this.url=p,this.version=m,q.instance){if(!De(this.options,q.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(q.instance.options)}`);return q.instance}q.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?N.FAILURE:this.done?N.SUCCESS:this.loading?N.LOADING:N.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>
14{this.loadCallback(r=>{r?t(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((t=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||t===void 0)&&t.importLibrary||(i=>{let a,u,n,d="The Google Maps JavaScript API",c="google",l="importLibrary",p="__ib__",m=document,h=window;h=h[c]||(h[c]={});const g=h.maps||(h.maps={}),v=new Set,f=new URLSearchParams,k=()=>a||(a=new Promise((w,P)=>Ue(this,void 0,void 0,function*(){var M;yield u=m.createElement("script"),u.id=this.id,f.set("libraries",[...v]+"");for(n in i)f.set(n.replace(/[A-Z]/g,E=>"_"+E[0].toLowerCase()),i[n]);f.set("callback",c+".maps."+p),u.src=this.url+"?"+f,g[p]=w,u.onerror=()=>a=P(Error(d+" could not load.")),u.nonce=this.nonce||((M=m.querySelector("script[nonce]"))===null||M===void 0?void 0:M.nonce)||"",m.head.append(u)})));g[l]?console.warn(d+" only loads once. Ignoring:",i):g[l]=(w,...P)=>v.add(w)&&k().then(()=>g[l](w,...P))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const a=new ErrorEvent("error",{error:i});this.loadErrorCallback(a)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}function Fe(s){return class extends s.OverlayView{constructor(e){super(),pe(this,"element"),pe(this,"opts");const{element:t,...r}=e;this.element=t,this.opts=r,this.opts.map&&this.setMap(this.opts.map)}getPosition(){return this.opts.position?this.opts.position instanceof s.LatLng?this.opts.position:new s.LatLng(this.opts.position):null}getVisible(){if(!this.element)return!1;const e=this.element;return e.style.display!=="none"&&e.style.visibility!=="hidden"&&(e.style.opacity===""||Number(e.style.opacity)>.01)}onAdd(){if(!this.element)return;const e=this.getPanes();e&&e.overlayMouseTarget.appendChild(this.element)}draw(){if(!this.element)return;const e=this.getProjection(),t=e==null?void 0:e.fromLatLngToDivPixel(this.getPosition());if(t){this.element.style.position="absolute";let r,o;switch(this.opts.anchorPoint){case"TOP_CENTER":r="-50%",o="-100%";break;case"BOTTOM_CENTER":r="-50%",o="0";break;case"LEFT_CENTER":r="-100%",o="-50%";break;case"RIGHT_CENTER":r="0",o="-50%";break;case"TOP_LEFT":r="-100%",o="-100%";break;case"TOP_RIGHT":r="0",o="-100%";break;case"BOTTOM_LEFT":r="-100%",o="0";break;case"BOTTOM_RIGHT":r="0",o="0";break;default:r="-50%",o="-50%"}const i=t.x+(this.opts.offsetX||0)+"px",a=t.y+(this.opts.offsetY||0)+"px";this.element.style.transform=`translateX(${r}) translateX(${i}) translateY(${o}) translateY(${a})`,this.opts.zIndex&&(this.element.style.zIndex=this.opts.zIndex.toString())}}onRemove(){this.element&&this.element.remove()}setOptions(e){const{element:t,...r}=e;this.element=t,this.opts=r,this.draw()}}}let me;const ge=["bounds_changed","center_changed","click","contextmenu","dblclick","drag","dragend","dragstart","heading_changed","idle","isfractionalzoomenabled_changed","mapcapabilities_changed","maptypeid_changed","mousemove","mouseout","mouseover","projection_changed","renderingtype_changed","rightclick","tilesloaded","tilt_changed","zoom_
14changed"],Ve=x({props:{apiPromise:{type:Promise},apiKey:{type:String,default:""},version:{type:String,default:"weekly"},libraries:{type:Array,default:()=>["places","marker"]},region:{type:String,required:!1},language:{type:String,required:!1},backgroundColor:{type:String,required:!1},center:{type:Object,default:()=>({lat:0,lng:0})},clickableIcons:{type:Boolean,required:!1,default:void 0},controlSize:{type:Number,required:!1},disableDefaultUi:{type:Boolean,required:!1,default:void 0},disableDoubleClickZoom:{type:Boolean,required:!1,default:void 0},draggable:{type:Boolean,required:!1,default:void 0},draggableCursor:{type:String,required:!1},draggingCursor:{type:String,required:!1},fullscreenControl:{type:Boolean,required:!1,default:void 0},fullscreenControlPosition:{type:String,required:!1},gestureHandling:{type:String,required:!1},heading:{type:Number,required:!1},isFractionalZoomEnabled:{type:Boolean,required:!1,default:void 0},keyboardShortcuts:{type:Boolean,required:!1,default:void 0},mapTypeControl:{type:Boolean,required:!1,default:void 0},mapTypeControlOptions:{type:Object,required:!1},mapTypeId:{type:[Number,String],required:!1},mapId:{type:String,required:!1},maxZoom:{type:Number,required:!1},minZoom:{type:Number,required:!1},noClear:{type:Boolean,required:!1,default:void 0},panControl:{type:Boolean,required:!1,default:void 0},panControlPosition:{type:String,required:!1},restriction:{type:Object,required:!1},rotateControl:{type:Boolean,required:!1,default:void 0},rotateControlPosition:{type:String,required:!1},scaleControl:{type:Boolean,required:!1,default:void 0},scaleControlStyle:{type:Number,required:!1},scrollwheel:{type:Boolean,required:!1,default:void 0},streetView:{type:Object,required:!1},streetViewControl:{type:Boolean,required:!1,default:void 0},streetViewControlPosition:{type:String,required:!1},styles:{type:Array,required:!1},tilt:{type:Number,required:!1},zoom:{type:Number,required:!1},zoomControl:{type:Boolean,required:!1,default:void 0},zoomControlPosition:{type:String,required:!1},nonce:{type:String,default:""}},emits:ge,setup(s,{emit:e}){const t=y(),r=y(!1),o=y(),i=y(),a=y(!1);z(Z,o),z(B,i),z(Se,a);const u=()=>{const l={...s};Object.keys(l).forEach(h=>{l[h]===void 0&&delete l[h]});const p=h=>{var g;return h?{position:(g=i.value)==null?void 0:g.ControlPosition[h]}:{}},m={scaleControlOptions:s.scaleControlStyle?{style:s.scaleControlStyle}:{},panControlOptions:p(s.panControlPosition),zoomControlOptions:p(s.zoomControlPosition),rotateControlOptions:p(s.rotateControlPosition),streetViewControlOptions:p(s.streetViewControlPosition),fullscreenControlOptions:p(s.fullscreenControlPosition),disableDefaultUI:s.disableDefaultUi};return{...l,...m}},n=O([i,o],([l,p])=>{const m=l,h=p;m&&h&&(m.event.addListenerOnce(h,"tilesloaded",()=>{a.value=!0}),setTimeout(n,0))},{immediate:!0}),d=()=>{try{const{apiKey:l,region:p,version:m,language:h,libraries:g,nonce:v}=s;me=new q({apiKey:l,region:p,version:m,language:h,libraries:g,nonce:v})}catch(l){console.error(l)}},c=l=>{i.value=L(l.maps),o.value=L(new l.maps.Map(t.value,u()));const p=Fe(i.value);i.value[ee]=p,ge.forEach(h=>{var g;(g=o.value)==null||g.addListener(h,v=>e(h,v))}),r.value=!0;const m=Object.keys(s).filter(h=>!["apiPromise","apiKey","version","libraries","region","language","center","zoom","nonce"].includes(h)).map(h=>T(s,h));O([()=>s.center,()=>s.zoom,...m],([h,g],[v,f])=>{var k,w,P;const{center:M,zoom:E,..._}=u();(k=o.value)==null||k.setOptions(_),g!==void 0&&g!==f&&((w=o.value)==null||w.setZoom(g));const W=!v||h.lng!==v.lng||h.lat!==v.lat;h&&W&&((P=o.value)==null||P.panTo(h))})};return xe(()=>{s.apiPromise&&s.apiPromise instanceof Promise?s.apiPromise.then(c):(d(),me.load().then(c))}),R(()=>{var l;a.value=!1,o.value&&((l=i.value)==null||l.event.clearInstanceListeners(o.value))}),{mapRef:t,ready:r,map:o,api:i,mapTilesLoaded:a}}}),te=(s,e)=>{const t=s.__vccOpts||s;for(const[r,o]of e)t[r]=o;return t},Ge={ref:"mapRef",class:"mapdiv"};function Ke(s,e,t,r,o,i){return X(),J("div",null,[ae("div",Ge,null,512),Q(s.$slots,"default",Be(Ne({ready:s.ready,map:s.map,api:s.api,mapTilesLoaded:s.mapTilesLoaded})),void 0,!0)])}const _t=te(Ve,[["render",Ke],["__scopeId","data-v-d05fc6bc"]]);function We(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?
14s.default:s}var He=function s(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!s(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=r;o--!==0;){var a=i[o];if(!s(e[a],t[a]))return!1}return!0}return e!==e&&t!==t};const I=We(He),ve=["click","drag","dragend","dragstart","gmp-click"],Pt=x({name:"AdvancedMarker",props:{options:{type:Object,required:!0},pinOptions:{type:Object,required:!1}},emits:ve,setup(s,{emit:e,expose:t,slots:r}){const o=T(s,"options"),i=T(s,"pinOptions"),a=y(),u=C(Z,y()),n=C(B,y()),d=C(le,y()),c=G(()=>!!(d.value&&n.value&&a.value instanceof google.maps.marker.AdvancedMarkerElement));return O([u,o,i],async(l,[p,m,h])=>{var g,v,f;const k=!I(o.value,m)||!I(i.value,h)||u.value!==p;if(!u.value||!n.value||!k)return;const{AdvancedMarkerElement:w,PinElement:P}=n.value.marker;if(a.value){const{map:M,content:E,..._}=o.value;Object.assign(a.value,{content:i.value?new P(i.value).element:E,..._}),c.value&&((g=d.value)==null||g.removeMarker(a.value),(v=d.value)==null||v.addMarker(a.value))}else i.value&&(o.value.content=new P(i.value).element),a.value=L(new w(o.value)),c.value?(f=d.value)==null||f.addMarker(a.value):a.value.map=u.value,ve.forEach(M=>{var E;(E=a.value)==null||E.addListener(M,_=>e(M,_))})},{immediate:!0}),R(()=>{var l,p;a.value&&((l=n.value)==null||l.event.clearInstanceListeners(a.value),c.value?(p=d.value)==null||p.removeMarker(a.value):a.value.map=null)}),z(ne,a),t({marker:a}),()=>{var l;return(l=r.default)==null?void 0:l.call(r)}}}),Ye=s=>s==="Marker",Xe=s=>s===ee,D=(s,e,t,r)=>{const o=y(),i=C(Z,y()),a=C(B,y()),u=C(le,y()),n=G(()=>!!(u.value&&a.value&&(o.value instanceof a.value.Marker||o.value instanceof a.value[ee])));return O([i,t],(d,[c,l])=>{var p,m,h;const g=!I(t.value,l)||i.value!==c;!i.value||!a.value||!g||(o.value?(o.value.setOptions(t.value),n.value&&((p=u.value)==null||p.removeMarker(o.value),(m=u.value)==null||m.addMarker(o.value))):(Ye(s)?o.value=L(new a.value[s](t.value)):Xe(s)?o.value=L(new a.value[s](t.value)):o.value=L(new a.value[s]({...t.value,map:i.value})),n.value?(h=u.value)==null||h.addMarker(o.value):o.value.setMap(i.value),e.forEach(v=>{var f;(f=o.value)==null||f.addListener(v,k=>r(v,k))})))},{immediate:!0}),R(()=>{var d,c;o.value&&((d=a.value)==null||d.event.clearInstanceListeners(o.value),n.value?(c=u.value)==null||c.removeMarker(o.value):o.value.setMap(null))}),o},fe=["animation_changed","click","dblclick","rightclick","dragstart","dragend","drag","mouseover","mousedown","mouseout","mouseup","draggable_changed","clickable_changed","contextmenu","cursor_changed","flat_changed","rightclick","zindex_changed","icon_changed","position_changed","shape_changed","title_changed","visible_changed"],Et=x({name:"Marker",props:{options:{type:Object,required:!0}},emits:fe,setup(s,{emit:e,expose:t,slots:r}){const o=T(s,"options"),i=D("Marker",fe,o,e);return z(ne,i),t({marker:i}),()=>{var a;return(a=r.default)==null?void 0:a.call(r)}}}),xt=x({name:"Polyline",props:{options:{type:Object,required:!0}},emits:U,setup(s,{emit:e}){const t=T(s,"options");return{polyline:D("Polyline",U,t,e)}},render:()=>null}),Ot=x({name:"Polygon",props:{options:{type:Object,required:!0}},emits:U,setup(s,{emit:e}){const t=T(s,"options");return{polygon:D("Polygon",U,t,e)}},render:()=>null}),ye=U.concat(["bounds_changed"]),Lt=x({name:"Rectangle",props:{options:{type:Object,required:!0}},emits:ye,setup(s,{emit:e}){const t=T(s,"options");return{rectangle:D("Rectangle",ye,t,e)}},render:()=>null}),ke=U.concat(["center_changed","radius_changed"]),It=x({name:"Circle",props:{options:{type:Object,required:!0}},emits:ke,setup(s,{emit:e}){const t=T(s,"options");return{circle:D("Circle",ke,t,e)}},render:()=>null}),Je=x({props:{position:{type:String,required:!0},index:{type:Number,default:1}},emits:["content:loaded"],setup(s,{emit:e}){const t=y(null),r=C(Z,y()),o=C(B,y()),i=C(Se,y(!1)),a=O([i,o,t],([d,c,l])=>{c&&d&&l&&(u(s.position),e("content:loaded"),setTimeout(a,0))},{immediate:!0}),u=d=>{if(r.value&&o.value&&t.value){const c=o.value.ControlPosition[d];r.value.controls[c].push(t.value)}},n=d=>
14{if(r.value&&o.value){let c=null;const l=o.value.ControlPosition[d];r.value.controls[l].forEach((p,m)=>{p===t.value&&(c=m)}),c!==null&&r.value.controls[l].removeAt(c)}};return R(()=>n(s.position)),O(()=>s.position,(d,c)=>{n(c),u(d)}),O(()=>s.index,d=>{d&&t.value&&(t.value.index=s.index)}),{controlRef:t}}}),Qe={ref:"controlRef",class:"custom-control-wrapper"};function et(s,e,t,r,o,i){return X(),J("div",Qe,[Q(s.$slots,"default",{},void 0,!0)],512)}const St=te(Je,[["render",et],["__scopeId","data-v-d099a3a6"]]),we=["closeclick","content_changed","domready","position_changed","visible","zindex_changed"],tt=x({inheritAttrs:!1,props:{options:{type:Object,default:()=>({})},modelValue:{type:Boolean}},emits:[...we,"update:modelValue"],setup(s,{slots:e,emit:t,expose:r}){const o=y(),i=y(),a=C(Z,y()),u=C(B,y()),n=C(ne,y());let d,c=s.modelValue;const l=G(()=>{var g;return(g=e.default)==null?void 0:g.call(e).some(v=>v.type!==Oe)}),p=g=>{c=g,t("update:modelValue",g)},m=g=>{o.value&&(o.value.open({map:a.value,anchor:n.value,...g}),p(!0))},h=()=>{o.value&&(o.value.close(),p(!1))};return xe(()=>{O([a,()=>s.options],([g,v],[f,k])=>{var w;const P=!I(v,k)||a.value!==f;a.value&&u.value&&P&&(o.value?(o.value.setOptions({...v,content:l.value?i.value:v.content}),n.value||m()):(o.value=L(new u.value.InfoWindow({...v,content:l.value?i.value:v.content})),n.value&&(d=n.value.addListener("click",()=>{m()})),(!n.value||c)&&m(),we.forEach(M=>{var E;(E=o.value)==null||E.addListener(M,_=>t(M,_))}),(w=o.value)==null||w.addListener("closeclick",()=>p(!1))))},{immediate:!0}),O(()=>s.modelValue,g=>{g!==c&&(g?m():h())})}),R(()=>{var g;d&&d.remove(),o.value&&((g=u.value)==null||g.event.clearInstanceListeners(o.value),h())}),r({infoWindow:o,open:m,close:h}),{infoWindow:o,infoWindowRef:i,hasSlotContent:l,open:m,close:h}}}),rt={key:0,class:"info-window-wrapper"};function ot(s,e,t,r,o,i){return s.hasSlotContent?(X(),J("div",rt,[ae("div",Le({ref:"infoWindowRef"},s.$attrs),[Q(s.$slots,"default",{},void 0,!0)],16)])):Ie("",!0)}const At=te(tt,[["render",ot],["__scopeId","data-v-cbe1707b"]]),be=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],re=1,F=8;class ue{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,r]=new Uint8Array(e,0,2);if(t!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=r>>4;if(o!==re)throw new Error(`Got v${o} data when expected v${re}.`);const i=be[r&15];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,2,1),[u]=new Uint32Array(e,4,1);return new ue(u,a,i,e)}constructor(e,t=64,r=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const i=be.indexOf(this.ArrayType),a=e*2*this.ArrayType.BYTES_PER_ELEMENT,u=e*this.IndexArrayType.BYTES_PER_ELEMENT,n=(8-u%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${r}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,F,e),this.coords=new this.ArrayType(this.data,F+u+n,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(F+a+u+n),this.ids=new this.IndexArrayType(this.data,F,e),this.coords=new this.ArrayType(this.data,F+u+n,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(re<<4)+i]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=t,r}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return ie(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,r,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:u}=this,n=[0,i.length-1,0],d=[];for(;n.length;){const c=n.pop()||0,l=n.pop()||0,p=n.pop()||0;if(l-p<=u){for(let v=p;v<=l;v++){const f=a[2*v],k=a[2*v+1];f>=e&&f<=r&&k>=t&&k<=o&&d.push(i[v])}continue}const m=p+l>>1,h=a[2*m],g=a[2*m+1];h>=e&&h<=r&&g>=t&&g<=o&&d.push(i[m]),(c===0?e<=h:t<=g)&&(n.push(p),n.push(m-1),n.push(1-c)),(c===0?r>=h:o>=g)&&(n.push(m+1),n.push(l),n.push(1-c))}return d}within(e,t,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:a}=this,u=[0,o.length-1,0],n=[],d=r*r;for(;u.length;){const c=u.pop()||0,l=u.pop()||0,p=u.pop()||0;if(l-p<=a){for(let v=p;v<=l;v++)Ce(i[2*v],i[2*v+1],e,t)<=d&&n.push(o[v]);continue}const m=p+l>>1,h=i[2*m],g=i[2*m+1];
14Ce(h,g,e,t)<=d&&n.push(o[m]),(c===0?e-r<=h:t-r<=g)&&(u.push(p),u.push(m-1),u.push(1-c)),(c===0?e+r>=h:t+r>=g)&&(u.push(m+1),u.push(l),u.push(1-c))}return n}}function ie(s,e,t,r,o,i){if(o-r<=t)return;const a=r+o>>1;Ae(s,e,a,r,o,i),ie(s,e,t,r,a-1,1-i),ie(s,e,t,a+1,o,1-i)}function Ae(s,e,t,r,o,i){for(;o>r;){if(o-r>600){const d=o-r+1,c=t-r+1,l=Math.log(d),p=.5*Math.exp(2*l/3),m=.5*Math.sqrt(l*p*(d-p)/d)*(c-d/2<0?-1:1),h=Math.max(r,Math.floor(t-c*p/d+m)),g=Math.min(o,Math.floor(t+(d-c)*p/d+m));Ae(s,e,t,h,g,i)}const a=e[2*t+i];let u=r,n=o;for(V(s,e,r,t),e[2*o+i]>a&&V(s,e,r,o);u<n;){for(V(s,e,u,n),u++,n--;e[2*u+i]<a;)u++;for(;e[2*n+i]>a;)n--}e[2*r+i]===a?V(s,e,r,n):(n++,V(s,e,n,o)),n<=t&&(r=n+1),t<=n&&(o=n-1)}}function V(s,e,t,r){oe(s,t,r),oe(e,2*t,2*r),oe(e,2*t+1,2*r+1)}function oe(s,e,t){const r=s[e];s[e]=s[t],s[t]=r}function Ce(s,e,t,r){const o=s-t,i=e-r;return o*o+i*i}const st={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:s=>s},Me=Math.fround||(s=>e=>(s[0]=+e,s[0]))(new Float32Array(1)),j=2,A=3,se=4,S=5,Te=6;class je{constructor(e){this.options=Object.assign(Object.create(st),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:r,maxZoom:o}=this.options;t&&console.time("total time");const i=`prepare ${e.length} points`;t&&console.time(i),this.points=e;const a=[];for(let n=0;n<e.length;n++){const d=e[n];if(!d.geometry)continue;const[c,l]=d.geometry.coordinates,p=Me(H(c)),m=Me(Y(l));a.push(p,m,1/0,n,-1,1),this.options.reduce&&a.push(0)}let u=this.trees[o+1]=this._createTree(a);t&&console.timeEnd(i);for(let n=o;n>=r;n--){const d=+Date.now();u=this.trees[n]=this._createTree(this._cluster(u,n)),t&&console.log("z%d: %d clusters in %dms",n,u.numItems,+Date.now()-d)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[1]));let i=e[2]===180?180:((e[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,i=180;else if(r>i){const l=this.getClusters([r,o,180,a],t),p=this.getClusters([-180,o,i,a],t);return l.concat(p)}const u=this.trees[this._limitZoom(t)],n=u.range(H(r),Y(a),H(i),Y(o)),d=u.data,c=[];for(const l of n){const p=this.stride*l;c.push(d[p+S]>1?_e(d,p,this.clusterProps):this.points[d[p+A]])}return c}getChildren(e){const t=this._getOriginId(e),r=this._getOriginZoom(e),o="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(o);const a=i.data;if(t*this.stride>=a.length)throw new Error(o);const u=this.options.radius/(this.options.extent*Math.pow(2,r-1)),n=a[t*this.stride],d=a[t*this.stride+1],c=i.within(n,d,u),l=[];for(const p of c){const m=p*this.stride;a[m+se]===e&&l.push(a[m+S]>1?_e(a,m,this.clusterProps):this.points[a[m+A]])}if(l.length===0)throw new Error(o);return l}getLeaves(e,t,r){t=t||10,r=r||0;const o=[];return this._appendLeaves(o,e,t,r,0),o}getTile(e,t,r){const o=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:a,radius:u}=this.options,n=u/a,d=(r-n)/i,c=(r+1+n)/i,l={features:[]};return this._addTileFeatures(o.range((t-n)/i,d,(t+1+n)/i,c),o.data,t,r,i,l),t===0&&this._addTileFeatures(o.range(1-n/i,d,1,c),o.data,i,r,i,l),t===i-1&&this._addTileFeatures(o.range(0,d,n/i,c),o.data,-1,r,i,l),l.features.length?l:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const r=this.getChildren(e);if(t++,r.length!==1)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,o,i){const a=this.getChildren(t);for(const u of a){const n=u.properties;if(n&&n.cluster?i+n.point_count<=o?i+=n.point_count:i=this._appendLeaves(e,n.cluster_id,r,o,i):i<o?i++:e.push(u),e.length===r)break}return i}_createTree(e){const t=new ue(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<e.length;r+=this.stride)t.add(e[r],e[r+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,r,o,i,a){for(const u of e){const n=u*this.stride,d=t[n+S]>1;let c,l,p;if(d)c=qe(t,n,this.clusterProps),l=t[n],p=t[n+1];else{const g=this.points[t[n+A]];c=g.properties;const[v,f]=g.geometry.coordinates;l=H(v),p=Y(f)}const m={type:1,geometry:[[Math.round(this.options.extent*(l*i-r)),Math.round(this.options.extent*(p*i-o))]],tags:c};let h;d||this.options.generateId?h=t[n+A]:h=this.points[t[n+A]].id,h!==void 0&&(m.id=h),a.features.push(m)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:r,extent:o,reduce:i,minPoints:a}
14=this.options,u=r/(o*Math.pow(2,t)),n=e.data,d=[],c=this.stride;for(let l=0;l<n.length;l+=c){if(n[l+j]<=t)continue;n[l+j]=t;const p=n[l],m=n[l+1],h=e.within(n[l],n[l+1],u),g=n[l+S];let v=g;for(const f of h){const k=f*c;n[k+j]>t&&(v+=n[k+S])}if(v>g&&v>=a){let f=p*g,k=m*g,w,P=-1;const M=((l/c|0)<<5)+(t+1)+this.points.length;for(const E of h){const _=E*c;if(n[_+j]<=t)continue;n[_+j]=t;const W=n[_+S];f+=n[_]*W,k+=n[_+1]*W,n[_+se]=M,i&&(w||(w=this._map(n,l,!0),P=this.clusterProps.length,this.clusterProps.push(w)),i(w,this._map(n,_)))}n[l+se]=M,d.push(f/v,k/v,1/0,M,-1,v),i&&d.push(P)}else{for(let f=0;f<c;f++)d.push(n[l+f]);if(v>1)for(const f of h){const k=f*c;if(!(n[k+j]<=t)){n[k+j]=t;for(let w=0;w<c;w++)d.push(n[k+w])}}}}return d}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,r){if(e[t+S]>1){const a=this.clusterProps[e[t+Te]];return r?Object.assign({},a):a}const o=this.points[e[t+A]].properties,i=this.options.map(o);return r&&i===o?Object.assign({},i):i}}function _e(s,e,t){return{type:"Feature",id:s[e+A],properties:qe(s,e,t),geometry:{type:"Point",coordinates:[it(s[e]),at(s[e+1])]}}}function qe(s,e,t){const r=s[e+S],o=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,i=s[e+Te],a=i===-1?{}:Object.assign({},t[i]);return Object.assign(a,{cluster:!0,cluster_id:s[e+A],point_count:r,point_count_abbreviated:o})}function H(s){return s/360+.5}function Y(s){const e=Math.sin(s*Math.PI/180),t=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return t<0?0:t>1?1:t}function it(s){return(s-.5)*360}function at(s){const e=(180-s*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}/*! ***************************************************************************** 15Copyright (c) Microsoft Corporation. 16 17Permission to use, copy, modify, and/or distribute this software for any 18purpose with or without fee is hereby granted. 19 20THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 21REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 22AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 23INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 24LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 25OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 26PERFORMANCE OF THIS SOFTWARE. 27***************************************************************************** */function ce(s,e){var t={};for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(s);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(s,r[o])&&(t[r[o]]=s[r[o]]);return t}class b{static isAdvancedMarkerAvailable(e){return google.maps.marker&&e.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return this.isAdvancedMarker(e)?!0:e.getVisible()}}class K{constructor({markers:e,position:t}){this.markers=e,t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(this.markers.length===0&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(b.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>b.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(b.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}const nt=(s,e,t,r)=>{const o=Re(s.getBounds(),e,r);return t.filter(i=>
27o.contains(b.getPosition(i)))},Re=(s,e,t)=>{const{northEast:r,southWest:o}=lt(s,e),i=ut({northEast:r,southWest:o},t);return ct(i,e)},Pe=(s,e,t)=>{const r=Re(s,e,t),o=r.getNorthEast(),i=r.getSouthWest();return[i.lng(),i.lat(),o.lng(),o.lat()]},lt=(s,e)=>({northEast:e.fromLatLngToDivPixel(s.getNorthEast()),southWest:e.fromLatLngToDivPixel(s.getSouthWest())}),ut=({northEast:s,southWest:e},t)=>(s.x+=t,s.y-=t,e.x-=t,e.y+=t,{northEast:s,southWest:e}),ct=({northEast:s,southWest:e},t)=>{const r=t.fromDivPixelToLatLng(e),o=t.fromDivPixelToLatLng(s);return new google.maps.LatLngBounds(r,o)};class Ze{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return pt(e)}}class dt extends Ze{constructor(e){var{viewportPadding:t=60}=e,r=ce(e,["viewportPadding"]);super(r),this.viewportPadding=60,this.viewportPadding=t}calculate({markers:e,map:t,mapCanvasProjection:r}){return t.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:!1}:{clusters:this.cluster({markers:nt(t,r,e,this.viewportPadding),map:t,mapCanvasProjection:r})}}}const pt=s=>s.map(e=>new K({position:b.getPosition(e),markers:[e]}));class ht extends Ze{constructor(e){var{maxZoom:t,radius:r=60}=e,o=ce(e,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1},this.superCluster=new je(Object.assign({maxZoom:this.maxZoom,radius:r},o))}calculate(e){let t=!1;const r={zoom:e.map.getZoom()};if(!I(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const o=this.markers.map(i=>{const a=b.getPosition(i);return{type:"Feature",geometry:{type:"Point",coordinates:[a.lng(),a.lat()]},properties:{marker:i}}});this.superCluster.load(o)}return t||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(t=!I(this.state,r)),this.state=r,t&&(this.cluster
27s=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(t=>this.transformCluster(t))}transformCluster({geometry:{coordinates:[e,t]},properties:r}){if(r.cluster)return new K({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:t,lng:e}});const o=r.marker;return new K({markers:[o],position:b.getPosition(o)})}}class mt extends dt{constructor(e){var{maxZoom:t,radius:r=60,viewportPadding:o=60}=e,i=ce(e,["maxZoom","radius","viewportPadding"]);super({maxZoom:t,viewportPadding:o}),this.superCluster=new je(Object.assign({maxZoom:this.maxZoom,radius:r},i)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(e){const t={zoom:Math.round(e.map.getZoom()),view:Pe(e.map.getBounds(),e.mapCanvasProjection,this.viewportPadding)};let r=!I(this.state,t);if(!I(e.markers,this.markers)){r=!0,this.markers=[...e.markers];const o=this.markers.map(i=>{const a=b.getPosition(i);return{type:"Feature",geometry:{type:"Point",coordinates:[a.lng(),a.lat()]},properties:{marker:i}}});this.superCluster.load(o)}
27return r&&(this.clusters=this.cluster(e),this.state=t),{clusters:this.clusters,changed:r}}cluster({map:e,mapCanvasProjection:t}){const r={zoom:Math.round(e.getZoom()),view:Pe(e.getBounds(),t,this.viewportPadding)};return this.superCluster.getClusters(r.view,r.zoom).map(o=>this.transformCluster(o))}transformCluster({geometry:{coordinates:[e,t]},properties:r}){if(r.cluster)return new K({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:t,lng:e}});const o=r.marker;return new K({markers:[o],position:b.getPosition(o)})}}class gt{constructor(e,t){this.markers={sum:e.length};const r=t.map(i=>i.count),o=r.reduce((i,a)=>i+a,0);this.clusters={count:t.length,markers:{mean:o/t.length,sum:o,min:Math.min(...r),max:Math.max(...r)}}}}class vt{render({count:e,position:t},r,o){const i=`<svg fill="${e>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50"> 28<circle cx="120" cy="120" opacity=".6" r="70" /> 29<circle cx="120" cy="120" opacity=".3" r="90" /> 30<circle cx="120" cy="120" opacity=".2" r="110" /> 31<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text> 32</svg>`,a=`Cluster of ${e} markers`,u=Number(google.maps.Marker.MAX_ZINDEX)+e;if(b.isAdvancedMarkerAvailable(o)){const d=document.createElement("div");d.innerHTML=i;const c=d.firstElementChild;c.setAttribute("transform","translate(0 25)");const l={map:o,position:t,zIndex:u,title:a,content:c};return new google.maps.marker.AdvancedMarkerElement(l)}const n={position:t,zIndex:u,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(i)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(n)}}function ft(s,e){for(let t in e.prototype)s.prototype[t]=e.prototype[t]}class de{constructor(){ft(de,google.maps.OverlayView)}}var $;(function(s){s.CLUSTERING_BEGIN="clusteringbegin",s.CLUSTERING_END="clusteringend",s.CLUSTER_CLICK="click"})($||($={}));const yt=(s,e,t)=>{t.fitBounds(e.bounds)};class kt extends de{constructor({map:e,markers:t=[],algorithmOptions:r={},algorithm:o=new ht(r),renderer:i=new vt,onClusterClick:a=yt}){super(),this.markers=[...t],this.clusters=[],this.algorithm=o,this.renderer=i,this.onClusterClick=a,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(r=>{this.addMarker(r,!0)}),t||this.render()}removeMarker(e,t){const r=this.markers.indexOf(e);return r===-1?!1:(b.setMap(e,null),this.markers.splice(r,1),t||this.render(),!0)}removeMarkers(e,t){let r=!1;return e.forEach(o=>{r=this.removeMarker(o,!0)||r}),r&&!t&&this.render(),r}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,$.CLUSTERING_BEGIN,this);const{clusters:t,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||r==null){const o=new Set;for(const a of t)a.markers.length==1&&o.add(a.markers[0]);const i=[];for(const a of this.clusters)a.marker!=null&&(a.markers.length==1?o.has(a.marker)||b.setMap(a.marker,null):i.push(a.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>i.forEach(a=>b.setMap(a,null)))}google.maps.event.trigger(this,$.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>b.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){const e=new gt(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(r=>{r.markers.length===1?r.marker=r.markers[0]:(r.marker=this.renderer.render(r,e,t),r.markers.forEach(o=>b.setMap(o,null)),this.onClusterClick&&r.marker.addListener("click",o=>{google.maps.event.trigger(this,$.CLUSTER_CLICK,r),this.onClusterClick(o,r,t)})),b.setMap(r.marker,t)})}}const Ee=Object.values($),Tt=x({name:"MarkerCluster",props:{options:{type:Object,default:()=>({})}},emits:Ee,setup(s,{emit:e,expose:t,slots:r}){const o=y(),i=C(Z,y()),a=C(B,y());return z(le,o),O(i,()=>{i.value&&(o.value=L(new kt({map:i.value,algorithm:new mt(s.options.algorithmOptions??{}),...s.options})),Ee.forEach(u=>{var n;(n=o.value)==null||n.addListener(u,d=>e(u,d))}))},{immediate:!0}),R(()=>{var u;o.value&&((u=a.value)==null||u.event.clearInstanceListeners(o.value),o.value.clearMarkers(),o.value.setMap(null))}),t({markerCluster:o}),()=>{var u;return(u=r.default)==null?void 0:u.call(r)}}}),wt=x({inheritAttrs:!1,props:{options:{type:Object,required:!0}},setup(s,{slots:e,emit:t,expose:r}){const o=y(),i=G(()=>{var n;return(n=e.default)==null?void 0:n.call(e).some(d=>d.type!==Oe)}),a=G(()=>({...s.options,element:o.value})),u=D(ee,[],a,t);return r({customMarker:u}),{customMarkerRef:o,customMarker:u,hasSlotContent:i}}}),bt={key:0,class:"custom-marker-wrapper"};function Ct(s,e,t,r,o,i){return s.hasSlotContent?(X(),J("div",bt,[ae("div",Le({ref:"customMarkerRef",style:{cursor:s.$attrs.onClick?"pointer":void 0}},s.$attrs),[Q(s.$slots,"default",{},void 0,!0)],16)])):Ie("",!0)}const jt=te(wt,[["render",Ct],["__scopeId","data-v-2d2d343a"]]),qt=x({name:"HeatmapLayer",props:{options:{type:Object,default:()=>({})}},setup(s){const e=y(),t=C(Z,y()),r=C(B,y());return O([t,()=>s.options],([o,i],[a,u])=>{var n;const d=!I(i,u)||t.value!==a;if(t.value&&r.value&&d){const c=structuredClone(i);if(c.data&&!(c.data instanceof r.value.MVCArray)){const l=r.value.LatLng;c.data=(n=c.data)==null?void 0:n.map(p=>p instanceof l||"location"in p&&(p.location instanceof l||p.location===null)?p:"location"in p?{...p,location:new l(p.location)}:new l(p))}e.value?e.value.setOptions(c):e.value=L(new r.value.visualization.HeatmapLayer({...c,map:t.value}))}},{immediate:!0}),R(()=>{e.value&&e.value.setMap(null)}),{heatmapLayer:e}},render:()=>null});export{Pt as AdvancedMarker,It as Circle,St as CustomControl,jt as CustomMarker,_t as GoogleMap,qt as HeatmapLayer,At as InfoWindow,Et as Marker,Tt as MarkerCluster,Ot as Polygon,xt as Polyline,Lt as Rectangle};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.