@googlemaps/markerclusterer
Advanced tools
Comparing version 2.0.11 to 2.0.12
@@ -1,2 +0,2 @@ | ||
var markerClusterer=function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m=function(t){return t&&t.Math==Math&&t},d=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof h&&h)||function(){return this}()||Function("return this")(),g={},v=function(t){try{return!!t()}catch(t){return!0}},y=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!v((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),w=b,k=Function.prototype.call,O=w?k.bind(k):function(){return k.apply(k,arguments)},S={},x={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,P=M&&!x.call({1:2},1);S.f=P?function(t){var e=M(this,t);return!!e&&e.enumerable}:x;var j,E,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_=b,L=Function.prototype,T=L.bind,I=L.call,A=_&&T.bind(I,I),N=_?function(t){return t&&A(t)}:function(t){return t&&function(){return I.apply(t,arguments)}},z=N,R=z({}.toString),Z=z("".slice),F=function(t){return Z(R(t),8,-1)},D=v,G=F,V=Object,B=N("".split),U=D((function(){return!V("z").propertyIsEnumerable(0)}))?function(t){return"String"==G(t)?B(t,""):V(t)}:V,W=function(t){return null==t},q=W,X=TypeError,H=function(t){if(q(t))throw X("Can't call method on "+t);return t},$=U,J=H,K=function(t){return $(J(t))},Y=function(t){return"function"==typeof t},Q=Y,tt="object"==typeof document&&document.all,et=void 0===tt&&void 0!==tt?function(t){return"object"==typeof t?null!==t:Q(t)||t===tt}:function(t){return"object"==typeof t?null!==t:Q(t)},rt=d,nt=Y,ot=function(t){return nt(t)?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t]):rt[t]&&rt[t][e]},at=N({}.isPrototypeOf),st=d,ut=it("navigator","userAgent")||"",ct=st.process,ft=st.Deno,lt=ct&&ct.versions||ft&&ft.version,pt=lt&<.v8;pt&&(E=(j=pt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!E&&ut&&(!(j=ut.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ut.match(/Chrome\/(\d+)/))&&(E=+j[1]);var ht=E,mt=ht,dt=v,gt=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mt&&mt<41})),vt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yt=it,bt=Y,wt=at,kt=Object,Ot=vt?function(t){return"symbol"==typeof t}:function(t){var e=yt("Symbol");return bt(e)&&wt(e.prototype,kt(t))},St=String,xt=function(t){try{return St(t)}catch(t){return"Object"}},Mt=Y,Pt=xt,jt=TypeError,Et=function(t){if(Mt(t))return t;throw jt(Pt(t)+" is not a function")},Ct=Et,_t=W,Lt=O,Tt=Y,It=et,At=TypeError,Nt={exports:{}},zt=d,Rt=Object.defineProperty,Zt=function(t,e){try{Rt(zt,t,{value:e,configurable:!0,writable:!0})}catch(r){zt[t]=e}return e},Ft=Zt,Dt="__core-js_shared__",Gt=d[Dt]||Ft(Dt,{}),Vt=Gt;(Nt.exports=function(t,e){return Vt[t]||(Vt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Bt=H,Ut=Object,Wt=function(t){return Ut(Bt(t))},qt=Wt,Xt=N({}.hasOwnProperty),Ht=Object.hasOwn||function(t,e){return Xt(qt(t),e)},$t=N,Jt=0,Kt=Math.random(),Yt=$t(1..toString),Qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Yt(++Jt+Kt,36)},te=d,ee=Nt.exports,re=Ht,ne=Qt,oe=gt,ie=vt,ae=ee("wks"),se=te.Symbol,ue=se&&se.for,ce=ie?se:se&&se.withoutSetter||ne,fe=function(t){if(!re(ae,t)||!oe&&"string"!=typeof ae[t]){var e="Symbol."+t;oe&&re(se,t)?ae[t]=se[t]:ae[t]=ie&&ue?ue(e):ce(e)}return ae[t]},le=O,pe=et,he=Ot,me=function(t,e){var r=t[e];return _t(r)?void 0:Ct(r)},de=function(t,e){var r,n;if("string"===e&&Tt(r=t.toString)&&!It(n=Lt(r,t)))return n;if(Tt(r=t.valueOf)&&!It(n=Lt(r,t)))return n;if("string"!==e&&Tt(r=t.toString)&&!It(n=Lt(r,t)))return n;throw At("Can't convert object to primitive value")},ge=TypeError,ve=fe("toPrimitive"),ye=function(t,e){if(!pe(t)||he(t))return t;var r,n=me(t,ve);if(n){if(void 0===e&&(e="default"),r=le(n,t,e),!pe(r)||he(r))return r;throw ge("Can't convert object to primitive value")}return void 0===e&&(e="number"),de(t,e)},be=ye,we=Ot,ke=function(t){var e=be(t,"string");return we(e)?e:e+""},Oe=et,Se=d.document,xe=Oe(Se)&&Oe(Se.createElement),Me=function(t){return xe?Se.createElement(t):{}},Pe=Me,je=!y&&!v((function(){return 7!=Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a})),Ee=y,Ce=O,_e=S,Le=C,Te=K,Ie=ke,Ae=Ht,Ne=je,ze=Object.getOwnPropertyDescriptor;g.f=Ee?ze:function(t,e){if(t=Te(t),e=Ie(e),Ne)try{return ze(t,e)}catch(t){}if(Ae(t,e))return Le(!Ce(_e.f,t,e),t[e])};var Re={},Ze=y&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Fe=et,De=String,Ge=TypeError,Ve=function(t){if(Fe(t))return t;throw Ge(De(t)+" is not an object")},Be=y,Ue=je,We=Ze,qe=Ve,Xe=ke,He=TypeError,$e=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ke="enumerable",Ye="configurable",Qe="writable";Re.f=Be?We?function(t,e,r){if(qe(t),e=Xe(e),qe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Qe in r&&!r.writable){var n=Je(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Ye in r?r.configurable:n.configurable,enumerable:Ke in r?r.enumerable:n.enumerable,writable:!1})}return $e(t,e,r)}:$e:function(t,e,r){if(qe(t),e=Xe(e),qe(r),Ue)try{return $e(t,e,r)}catch(t){}if("get"in r||"set"in r)throw He("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var tr=Re,er=C,rr=y?function(t,e,r){return tr.f(t,e,er(1,r))}:function(t,e,r){return t[e]=r,t},nr={exports:{}},or=y,ir=Ht,ar=Function.prototype,sr=or&&Object.getOwnPropertyDescriptor,ur=ir(ar,"name"),cr={EXISTS:ur,PROPER:ur&&"something"===function(){}.name,CONFIGURABLE:ur&&(!or||or&&sr(ar,"name").configurable)},fr=Y,lr=Gt,pr=N(Function.toString);fr(lr.inspectSource)||(lr.inspectSource=function(t){return pr(t)});var hr,mr,dr,gr=lr.inspectSource,vr=Y,yr=d.WeakMap,br=vr(yr)&&/native code/.test(String(yr)),wr=Nt.exports,kr=Qt,Or=wr("keys"),Sr=function(t){return Or[t]||(Or[t]=kr(t))},xr={},Mr=br,Pr=d,jr=N,Er=et,Cr=rr,_r=Ht,Lr=Gt,Tr=Sr,Ir=xr,Ar="Object already initialized",Nr=Pr.TypeError,zr=Pr.WeakMap;if(Mr||Lr.state){var Rr=Lr.state||(Lr.state=new zr),Zr=jr(Rr.get),Fr=jr(Rr.has),Dr=jr(Rr.set);hr=function(t,e){if(Fr(Rr,t))throw Nr(Ar);return e.facade=t,Dr(Rr,t,e),e},mr=function(t){return Zr(Rr,t)||{}},dr=function(t){return Fr(Rr,t)}}else{var Gr=Tr("state");Ir[Gr]=!0,hr=function(t,e){if(_r(t,Gr))throw Nr(Ar);return e.facade=t,Cr(t,Gr,e),e},mr=function(t){return _r(t,Gr)?t[Gr]:{}},dr=function(t){return _r(t,Gr)}}var Vr={set:hr,get:mr,has:dr,enforce:function(t){return dr(t)?mr(t):hr(t,{})},getterFor:function(t){return function(e){var r;if(!Er(e)||(r=mr(e)).type!==t)throw Nr("Incompatible receiver, "+t+" required");return r}}},Br=v,Ur=Y,Wr=Ht,qr=y,Xr=cr.CONFIGURABLE,Hr=gr,$r=Vr.enforce,Jr=Vr.get,Kr=Object.defineProperty,Yr=qr&&!Br((function(){return 8!==Kr((function(){}),"length",{value:8}).length})),Qr=String(String).split("String"),tn=nr.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Xr&&t.name!==e)&&(qr?Kr(t,"name",{value:e,configurable:!0}):t.name=e),Yr&&r&&Wr(r,"arity")&&t.length!==r.arity&&Kr(t,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?qr&&Kr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=$r(t);return Wr(n,"source")||(n.source=Qr.join("string"==typeof e?e:"")),t};Function.prototype.toString=tn((function(){return Ur(this)&&Jr(this).source||Hr(this)}),"toString");var en=Y,rn=Re,nn=nr.exports,on=Zt,an=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(en(r)&&nn(r,i,n),n.global)o?t[e]=r:on(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:rn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},sn={},un=Math.ceil,cn=Math.floor,fn=Math.trunc||function(t){var e=+t;return(e>0?cn:un)(e)},ln=function(t){var e=+t;return e!=e||0===e?0:fn(e)},pn=ln,hn=Math.max,mn=Math.min,dn=function(t,e){var r=pn(t);return r<0?hn(r+e,0):mn(r,e)},gn=ln,vn=Math.min,yn=function(t){return t>0?vn(gn(t),9007199254740991):0},bn=function(t){return yn(t.length)},wn=K,kn=dn,On=bn,Sn=function(t){return function(e,r,n){var o,i=wn(e),a=On(i),s=kn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},xn={includes:Sn(!0),indexOf:Sn(!1)},Mn=Ht,Pn=K,jn=xn.indexOf,En=xr,Cn=N([].push),_n=function(t,e){var r,n=Pn(t),o=0,i=[];for(r in n)!Mn(En,r)&&Mn(n,r)&&Cn(i,r);for(;e.length>o;)Mn(n,r=e[o++])&&(~jn(i,r)||Cn(i,r));return i},Ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tn=_n,In=Ln.concat("length","prototype");sn.f=Object.getOwnPropertyNames||function(t){return Tn(t,In)};var An={};An.f=Object.getOwnPropertySymbols;var Nn=it,zn=sn,Rn=An,Zn=Ve,Fn=N([].concat),Dn=Nn("Reflect","ownKeys")||function(t){var e=zn.f(Zn(t)),r=Rn.f;return r?Fn(e,r(t)):e},Gn=Ht,Vn=Dn,Bn=g,Un=Re,Wn=v,qn=Y,Xn=/#|\.prototype\./,Hn=function(t,e){var r=Jn[$n(t)];return r==Yn||r!=Kn&&(qn(e)?Wn(e):!!e)},$n=Hn.normalize=function(t){return String(t).replace(Xn,".").toLowerCase()},Jn=Hn.data={},Kn=Hn.NATIVE="N",Yn=Hn.POLYFILL="P",Qn=Hn,to=d,eo=g.f,ro=rr,no=an,oo=Zt,io=function(t,e,r){for(var n=Vn(e),o=Un.f,i=Bn.f,a=0;a<n.length;a++){var s=n[a];Gn(t,s)||r&&Gn(r,s)||o(t,s,i(e,s))}},ao=Qn,so=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?to:c?to[s]||oo(s,{}):(to[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=eo(r,n))&&a.value:r[n],!ao(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;io(i,o)}(t.sham||o&&o.sham)&&ro(i,"sham",!0),no(r,n,i,t)}},uo=Et,co=b,fo=N(N.bind),lo=F,po=Array.isArray||function(t){return"Array"==lo(t)},ho={};ho[fe("toStringTag")]="z";var mo="[object z]"===String(ho),go=mo,vo=Y,yo=F,bo=fe("toStringTag"),wo=Object,ko="Arguments"==yo(function(){return arguments}()),Oo=go?yo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=wo(t),bo))?r:ko?yo(e):"Object"==(n=yo(e))&&vo(e.callee)?"Arguments":n},So=N,xo=v,Mo=Y,Po=Oo,jo=gr,Eo=function(){},Co=[],_o=it("Reflect","construct"),Lo=/^\s*(?:class|function)\b/,To=So(Lo.exec),Io=!Lo.exec(Eo),Ao=function(t){if(!Mo(t))return!1;try{return _o(Eo,Co,t),!0}catch(t){return!1}},No=function(t){if(!Mo(t))return!1;switch(Po(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Io||!!To(Lo,jo(t))}catch(t){return!0}};No.sham=!0;var zo=!_o||xo((function(){var t;return Ao(Ao.call)||!Ao(Object)||!Ao((function(){t=!0}))||t}))?No:Ao,Ro=po,Zo=zo,Fo=et,Do=fe("species"),Go=Array,Vo=function(t){var e;return Ro(t)&&(e=t.constructor,(Zo(e)&&(e===Go||Ro(e.prototype))||Fo(e)&&null===(e=e[Do]))&&(e=void 0)),void 0===e?Go:e},Bo=function(t,e){return new(Vo(t))(0===e?0:e)},Uo=function(t,e){return uo(t),void 0===e?t:co?fo(t,e):function(){return t.apply(e,arguments)}},Wo=U,qo=Wt,Xo=bn,Ho=Bo,$o=N([].push),Jo=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,l){for(var p,h,m=qo(u),d=Wo(m),g=Uo(c,f),v=Xo(d),y=0,b=l||Ho,w=e?b(u,v):r||a?b(u,0):void 0;v>y;y++)if((s||y in d)&&(h=g(p=d[y],y,m),t))if(e)w[y]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:$o(w,p)}else switch(t){case 4:return!1;case 7:$o(w,p)}return i?-1:n||o?o:w}},Ko={forEach:Jo(0),map:Jo(1),filter:Jo(2),some:Jo(3),every:Jo(4),find:Jo(5),findIndex:Jo(6),filterReject:Jo(7)},Yo=v,Qo=ht,ti=fe("species"),ei=function(t){return Qo>=51||!Yo((function(){var e=[];return(e.constructor={})[ti]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ri=Ko.map;function ni(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}so({target:"Array",proto:!0,forced:!ei("map")},{map:function(t){return ri(this,t,arguments.length>1?arguments[1]:void 0)}});var oi=Et,ii=Wt,ai=U,si=bn,ui=TypeError,ci=function(t){return function(e,r,n,o){oi(r);var i=ii(e),a=ai(i),s=si(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw ui("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},fi={left:ci(!1),right:ci(!0)},li=v,pi=function(t,e){var r=[][t];return!!r&&li((function(){r.call(null,e||function(){return 1},1)}))},hi="process"==F(d.process),mi=fi.left,di=ht,gi=hi;so({target:"Array",proto:!0,forced:!pi("reduce")||!gi&&di>79&&di<83},{reduce:function(t){var e=arguments.length;return mi(this,t,e,e>1?arguments[1]:void 0)}});var vi=Oo,yi=mo?{}.toString:function(){return"[object "+vi(this)+"]"};mo||an(Object.prototype,"toString",yi,{unsafe:!0});var bi=Ko.filter;so({target:"Array",proto:!0,forced:!ei("filter")},{filter:function(t){return bi(this,t,arguments.length>1?arguments[1]:void 0)}});var wi=function(){function t(r){var n=r.markers,o=r.position;e(this,t),this.markers=n,o&&(o instanceof google.maps.LatLng?this._position=o:this._position=new google.maps.LatLng(o))}return n(t,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(t,e){return t.extend(e.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return t.getVisible()})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}}]),t}(),ki=function(t,e,r,n){var o=Oi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(t.getPosition())}))},Oi=function(t,e,r){var n=xi(t,e),o=n.northEast,i=n.southWest,a=Mi({northEast:o,southWest:i},r);return Pi(a,e)},Si=function(t,e){var r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},xi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Mi=function(t,e){var r=t.northEast,n=t.southWest;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},Pi=function(t,e){var r=t.northEast,n=t.southWest,o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o},ji=function(){function t(r){var n=r.maxZoom,o=void 0===n?16:n;e(this,t),this.maxZoom=o}return n(t,[{key:"noop",value:function(t){var e=t.markers;return Ci(e)}}]),t}(),Ei=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,a=void 0===o?60:o,s=ni(t,["viewportPadding"]);return(n=r.call(this,s)).viewportPadding=60,n.viewportPadding=a,n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:ki(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(ji),Ci=function(t){return t.map((function(t){return new wi({position:t.getPosition(),markers:[t]})}))},_i=Me("span").classList,Li=_i&&_i.constructor&&_i.constructor.prototype,Ti=Li===Object.prototype?void 0:Li,Ii=Ko.forEach,Ai=pi("forEach")?[].forEach:function(t){return Ii(this,t,arguments.length>1?arguments[1]:void 0)},Ni=d,zi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ri=Ti,Zi=Ai,Fi=rr,Di=function(t){if(t&&t.forEach!==Zi)try{Fi(t,"forEach",Zi)}catch(e){t.forEach=Zi}};for(var Gi in zi)zi[Gi]&&Di(Ni[Gi]&&Ni[Gi].prototype);Di(Ri);var Vi=O;so({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Vi(URL.prototype.toString,this)}});var Bi=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},Ui=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,a=void 0===o?4e4:o,s=t.gridSize,u=void 0===s?40:s,c=ni(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=a,n.gridSize=u,n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection,o={zoom:r.getZoom()},i=!1;return this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(i=!Bi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:i}:{clusters:this.cluster({markers:ki(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}},{key:"cluster",value:function(t){var e=this,r=t.markers,n=t.map,o=t.mapCanvasProjection;return this.clusters=[],r.forEach((function(t){e.addToClosestCluster(t,n,o)})),this.clusters}},{key:"addToClosestCluster",value:function(t,e,r){for(var n=this.maxDistance,o=null,i=0;i<this.clusters.length;i++){var a=this.clusters[i],s=Si(a.bounds.getCenter().toJSON(),t.getPosition().toJSON());s<n&&(n=s,o=a)}if(o&&Oi(o.bounds,r,this.gridSize).contains(t.getPosition()))o.push(t);else{var u=new wi({markers:[t]});this.clusters.push(u)}}}]),i}(Ei),Wi=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=ni(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(ji),qi=_n,Xi=Ln,Hi=Object.keys||function(t){return qi(t,Xi)},$i=y,Ji=N,Ki=O,Yi=v,Qi=Hi,ta=An,ea=S,ra=Wt,na=U,oa=Object.assign,ia=Object.defineProperty,aa=Ji([].concat),sa=!oa||Yi((function(){if($i&&1!==oa({b:1},oa(ia({},"a",{enumerable:!0,get:function(){ia(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=oa({},t)[r]||Qi(oa({},e)).join("")!=n}))?function(t,e){for(var r=ra(t),n=arguments.length,o=1,i=ta.f,a=ea.f;n>o;)for(var s,u=na(arguments[o++]),c=i?aa(Qi(u),i(u)):Qi(u),f=c.length,l=0;f>l;)s=c[l++],$i&&!Ki(a,u,s)||(r[s]=u[s]);return r}:oa,ua=sa;so({target:"Object",stat:!0,arity:2,forced:Object.assign!==ua},{assign:ua});var ca={exports:{}};ca.exports=function(){function t(r,n,o,i,a,s){if(!(a-i<=o)){var u=i+a>>1;e(r,n,u,i,a,s%2),t(r,n,o,i,u-1,s+1),t(r,n,o,u+1,a,s+1)}}function e(t,n,o,i,a,s){for(;a>i;){if(a-i>600){var u=a-i+1,c=o-i+1,f=Math.log(u),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(u-l)/u)*(c-u/2<0?-1:1);e(t,n,o,Math.max(i,Math.floor(o-c*l/u+p)),Math.min(a,Math.floor(o+(u-c)*l/u+p)),s)}var h=n[2*o+s],m=i,d=a;for(r(t,n,i,o),n[2*a+s]>h&&r(t,n,i,a);m<d;){for(r(t,n,m,d),m++,d--;n[2*m+s]<h;)m++;for(;n[2*d+s]>h;)d--}n[2*i+s]===h?r(t,n,i,d):r(t,n,++d,a),d<=o&&(i=d+1),o<=d&&(a=d-1)}}function r(t,e,r,o){n(t,r,o),n(e,2*r,2*o),n(e,2*r+1,2*o+1)}function n(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function o(t,e,r,n,o,i,a){for(var s,u,c=[0,t.length-1,0],f=[];c.length;){var l=c.pop(),p=c.pop(),h=c.pop();if(p-h<=a)for(var m=h;m<=p;m++)s=e[2*m],u=e[2*m+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[m]);else{var d=Math.floor((h+p)/2);s=e[2*d],u=e[2*d+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[d]);var g=(l+1)%2;(0===l?r<=s:n<=u)&&(c.push(h),c.push(d-1),c.push(g)),(0===l?o>=s:i>=u)&&(c.push(d+1),c.push(p),c.push(g))}}return f}function i(t,e,r,n,o,i){for(var s=[0,t.length-1,0],u=[],c=o*o;s.length;){var f=s.pop(),l=s.pop(),p=s.pop();if(l-p<=i)for(var h=p;h<=l;h++)a(e[2*h],e[2*h+1],r,n)<=c&&u.push(t[h]);else{var m=Math.floor((p+l)/2),d=e[2*m],g=e[2*m+1];a(d,g,r,n)<=c&&u.push(t[m]);var v=(f+1)%2;(0===f?r-o<=d:n-o<=g)&&(s.push(p),s.push(m-1),s.push(v)),(0===f?r+o>=d:n+o>=g)&&(s.push(m+1),s.push(l),s.push(v))}}return u}function a(t,e,r,n){var o=t-r,i=e-n;return o*o+i*i}var s=function(t){return t[0]},u=function(t){return t[1]},c=function(e,r,n,o,i){void 0===r&&(r=s),void 0===n&&(n=u),void 0===o&&(o=64),void 0===i&&(i=Float64Array),this.nodeSize=o,this.points=e;for(var a=e.length<65536?Uint16Array:Uint32Array,c=this.ids=new a(e.length),f=this.coords=new i(2*e.length),l=0;l<e.length;l++)c[l]=l,f[2*l]=r(e[l]),f[2*l+1]=n(e[l]);t(c,f,o,0,c.length-1,0)};return c.prototype.range=function(t,e,r,n){return o(this.ids,this.coords,t,e,r,n,this.nodeSize)},c.prototype.within=function(t,e,r){return i(this.ids,this.coords,t,e,r,this.nodeSize)},c}();var fa=ca.exports;const la={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},pa=Math.fround||(ha=new Float32Array(1),t=>(ha[0]=+t,ha[0]));var ha;class ma{constructor(t){this.options=Oa(Object.create(la),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e<t.length;e++)t[e].geometry&&a.push(ga(t[e],e));this.trees[n+1]=new fa(a,Sa,xa,o,Float32Array),e&&console.timeEnd(i);for(let t=n;t>=r;t--){const r=+Date.now();a=this._cluster(a,t),this.trees[t]=new fa(a,Sa,xa,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,a.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),a=this.getClusters([-180,n,o,i],e);return t.concat(a)}const a=this.trees[this._limitZoom(e)],s=a.range(ba(r),wa(i),ba(o),wa(n)),u=[];for(const t of s){const e=a.points[t];u.push(e.numPoints?va(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=o.within(i.x,i.y,a),u=[];for(const e of s){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?va(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:a}=this.options,s=a/i,u=(r-s)/o,c=(r+1+s)/o,f={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.points,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.points,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.points,-1,r,o,f),f.features.length?f:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):o<n?o++:t.push(e),t.length===r)break}return o}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=e[a],s=t.numPoints;let u,c,f;if(s)u=ya(t),c=t.x,f=t.y;else{const e=this.points[t.index];u=e.properties,c=ba(e.geometry.coordinates[0]),f=wa(e.geometry.coordinates[1])}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let p;s?p=t.id:this.options.generateId?p=t.index:this.points[t.index].id&&(p=this.points[t.index].id),void 0!==p&&(l.id=p),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const r=[],{radius:n,extent:o,reduce:i,minPoints:a}=this.options,s=n/(o*Math.pow(2,e));for(let n=0;n<t.length;n++){const o=t[n];if(o.zoom<=e)continue;o.zoom=e;const u=this.trees[e+1],c=u.within(o.x,o.y,s),f=o.numPoints||1;let l=f;for(const t of c){const r=u.points[t];r.zoom>e&&(l+=r.numPoints||1)}if(l>f&&l>=a){let t=o.x*f,a=o.y*f,s=i&&f>1?this._map(o,!0):null;const p=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,a+=n.y*c,n.parentId=p,i&&(s||(s=this._map(o,!0)),i(s,this._map(n)))}o.parentId=p,r.push(da(t/l,a/l,p,l,s))}else if(r.push(o),l>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Oa({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Oa({},n):n}}function da(t,e,r,n,o){return{x:pa(t),y:pa(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function ga(t,e){const[r,n]=t.geometry.coordinates;return{x:pa(ba(r)),y:pa(wa(n)),zoom:1/0,index:e,parentId:-1}}function va(t){return{type:"Feature",id:t.id,properties:ya(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),ka(t.y)]}};var e}function ya(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Oa(Oa({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function ba(t){return t/360+.5}function wa(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function ka(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Oa(t,e){for(const r in e)t[r]=e[r];return t}function Sa(t){return t.x}function xa(t){return t.y}var Ma=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,a=t.radius,s=void 0===a?60:a,u=ni(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new ma(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1;if(!Bi(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var r=this.markers.map((function(t){return{type:"Feature",geometry:{type:"Point",coordinates:[t.getPosition().lng(),t.getPosition().lat()]},properties:{marker:t}}}));this.superCluster.load(r)}var n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!Bi(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}},{key:"transformCluster",value:function(t){var e=c(t.geometry.coordinates,2),r=e[0],n=e[1],o=t.properties;if(o.cluster)return new wi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:new google.maps.LatLng({lat:n,lng:r})});var i=o.marker;return new wi({markers:[i],position:i.getPosition()})}}]),i}(ji),Pa={},ja=y,Ea=Ze,Ca=Re,_a=Ve,La=K,Ta=Hi;Pa.f=ja&&!Ea?Object.defineProperties:function(t,e){_a(t);for(var r,n=La(e),o=Ta(e),i=o.length,a=0;i>a;)Ca.f(t,r=o[a++],n[r]);return t};var Ia,Aa=it("document","documentElement"),Na=Ve,za=Pa,Ra=Ln,Za=xr,Fa=Aa,Da=Me,Ga=Sr("IE_PROTO"),Va=function(){},Ba=function(t){return"<script>"+t+"</"+"script>"},Ua=function(t){t.write(Ba("")),t.close();var e=t.parentWindow.Object;return t=null,e},Wa=function(){try{Ia=new ActiveXObject("htmlfile")}catch(t){}var t,e;Wa="undefined"!=typeof document?document.domain&&Ia?Ua(Ia):((e=Da("iframe")).style.display="none",Fa.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ba("document.F=Object")),t.close(),t.F):Ua(Ia);for(var r=Ra.length;r--;)delete Wa.prototype[Ra[r]];return Wa()};Za[Ga]=!0;var qa=fe,Xa=Object.create||function(t,e){var r;return null!==t?(Va.prototype=Na(t),r=new Va,Va.prototype=null,r[Ga]=t):r=Wa(),void 0===e?r:za.f(r,e)},Ha=Re.f,$a=qa("unscopables"),Ja=Array.prototype;null==Ja[$a]&&Ha(Ja,$a,{configurable:!0,value:Xa(null)});var Ka=xn.includes,Ya=function(t){Ja[$a][t]=!0};so({target:"Array",proto:!0,forced:v((function(){return!Array(1).includes()}))},{includes:function(t){return Ka(this,t,arguments.length>1?arguments[1]:void 0)}}),Ya("includes");var Qa=et,ts=F,es=fe("match"),rs=function(t){var e;return Qa(t)&&(void 0!==(e=t[es])?!!e:"RegExp"==ts(t))},ns=TypeError,os=Oo,is=String,as=function(t){if("Symbol"===os(t))throw TypeError("Cannot convert a Symbol value to a string");return is(t)},ss=fe("match"),us=so,cs=function(t){if(rs(t))throw ns("The method doesn't accept regular expressions");return t},fs=H,ls=as,ps=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[ss]=!1,"/./"[t](e)}catch(t){}}return!1},hs=N("".indexOf);us({target:"String",proto:!0,forced:!ps("includes")},{includes:function(t){return!!~hs(ls(fs(this)),ls(cs(t)),arguments.length>1?arguments[1]:void 0)}});var ms=so,ds=xn.indexOf,gs=pi,vs=N([].indexOf),ys=!!vs&&1/vs([1],1,-0)<0,bs=gs("indexOf");ms({target:"Array",proto:!0,forced:ys||!bs},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return ys?vs(this,t,e)||0:ds(this,t,e)}});var ws=y,ks=po,Os=TypeError,Ss=Object.getOwnPropertyDescriptor,xs=ws&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ms=TypeError,Ps=ke,js=Re,Es=C,Cs=xt,_s=TypeError,Ls=so,Ts=Wt,Is=dn,As=ln,Ns=bn,zs=xs?function(t,e){if(ks(t)&&!Ss(t,"length").writable)throw Os("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Rs=function(t){if(t>9007199254740991)throw Ms("Maximum allowed index exceeded");return t},Zs=Bo,Fs=function(t,e,r){var n=Ps(e);n in t?js.f(t,n,Es(0,r)):t[n]=r},Ds=function(t,e){if(!delete t[e])throw _s("Cannot delete property "+Cs(e)+" of "+Cs(t))},Gs=ei("splice"),Vs=Math.max,Bs=Math.min;Ls({target:"Array",proto:!0,forced:!Gs},{splice:function(t,e){var r,n,o,i,a,s,u=Ts(this),c=Ns(u),f=Is(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=Bs(Vs(As(e),0),c-f)),Rs(c+r-n),o=Zs(u,n),i=0;i<n;i++)(a=f+i)in u&&Fs(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Ds(u,s);for(i=c;i>c-n+r;i--)Ds(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Ds(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return zs(u,c-n+r),o}});var Us=Y,Ws=String,qs=TypeError,Xs=N,Hs=Ve,$s=function(t){if("object"==typeof t||Us(t))return t;throw qs("Can't set "+Ws(t)+" as a prototype")},Js=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Xs(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Hs(r),$s(n),e?t(r,n):r.__proto__=n,r}}():void 0),Ks=Y,Ys=et,Qs=Js,tu=N(1..valueOf),eu=H,ru=as,nu=N("".replace),ou="[\t\n\v\f\r \u2028\u2029\ufeff]",iu=RegExp("^"+ou+ou+"*"),au=RegExp(ou+ou+"*$"),su=function(t){return function(e){var r=ru(eu(e));return 1&t&&(r=nu(r,iu,"")),2&t&&(r=nu(r,au,"")),r}},uu={start:su(1),end:su(2),trim:su(3)},cu=y,fu=d,lu=N,pu=Qn,hu=an,mu=Ht,du=function(t,e,r){var n,o;return Qs&&Ks(n=e.constructor)&&n!==r&&Ys(o=n.prototype)&&o!==r.prototype&&Qs(t,o),t},gu=at,vu=Ot,yu=ye,bu=v,wu=sn.f,ku=g.f,Ou=Re.f,Su=tu,xu=uu.trim,Mu="Number",Pu=fu.Number,ju=Pu.prototype,Eu=fu.TypeError,Cu=lu("".slice),_u=lu("".charCodeAt),Lu=function(t){var e=yu(t,"number");return"bigint"==typeof e?e:Tu(e)},Tu=function(t){var e,r,n,o,i,a,s,u,c=yu(t,"number");if(vu(c))throw Eu("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=xu(c),43===(e=_u(c,0))||45===e){if(88===(r=_u(c,2))||120===r)return NaN}else if(48===e){switch(_u(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Cu(c,2)).length,s=0;s<a;s++)if((u=_u(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c};if(pu(Mu,!Pu(" 0o1")||!Pu("0b1")||Pu("+0x1"))){for(var Iu,Au=function(t){var e=arguments.length<1?0:Pu(Lu(t)),r=this;return gu(ju,r)&&bu((function(){Su(r)}))?du(Object(e),r,Au):e},Nu=cu?wu(Pu):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),zu=0;Nu.length>zu;zu++)mu(Pu,Iu=Nu[zu])&&!mu(Au,Iu)&&Ou(Au,Iu,ku(Pu,Iu));Au.prototype=ju,ju.constructor=Au,hu(fu,Mu,Au,{constructor:!0})}var Ru=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,f(o)),max:Math.max.apply(Math,f(o))}}})),Zu=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e){var r=t.count,n=t.position,o=r>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",i=window.btoa('\n <svg fill="'.concat(o,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>'));return new google.maps.Marker({position:n,icon:{url:"data:image/svg+xml;base64,".concat(i),scaledSize:new google.maps.Size(45,45)},label:{text:String(r),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:"Cluster of ".concat(r," markers"),zIndex:Number(google.maps.Marker.MAX_ZINDEX)+r})}}]),t}();var Fu,Du=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(Fu=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Fu.CLUSTERING_END="clusteringend",Fu.CLUSTER_CLICK="click";var Gu=function(t,e,r){r.fitBounds(e.bounds)},Vu=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithm,c=void 0===u?new Ma({}):u,l=t.renderer,p=void 0===l?new Zu:l,h=t.onClusterClick,m=void 0===h?Gu:h;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=c,r.renderer=p,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(t.setMap(null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;(o||null==o)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return t.setMap(null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new Ru(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),o.marker.setMap(n)}))}}]),a}(Du);return t.AbstractAlgorithm=ji,t.AbstractViewportAlgorithm=Ei,t.Cluster=wi,t.ClusterStats=Ru,t.DefaultRenderer=Zu,t.GridAlgorithm=Ui,t.MarkerClusterer=Vu,t.NoopAlgorithm=Wi,t.SuperClusterAlgorithm=Ma,t.defaultOnClusterClickHandler=Gu,t.distanceBetweenPoints=Si,t.extendBoundsToPaddedViewport=Oi,t.extendPixelBounds=Mi,t.filterMarkersToPaddedViewport=ki,t.noop=Ci,t.pixelBoundsToLatLngBounds=Pi,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); | ||
var markerClusterer=function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m=function(t){return t&&t.Math==Math&&t},d=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof h&&h)||function(){return this}()||Function("return this")(),g={},v=function(t){try{return!!t()}catch(t){return!0}},y=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!v((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),w=b,k=Function.prototype.call,S=w?k.bind(k):function(){return k.apply(k,arguments)},O={},x={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,P=M&&!x.call({1:2},1);O.f=P?function(t){var e=M(this,t);return!!e&&e.enumerable}:x;var j,E,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_=b,L=Function.prototype,T=L.call,I=_&&L.bind.bind(T,T),A=function(t){return _?I(t):function(){return T.apply(t,arguments)}},N=A,z=N({}.toString),D=N("".slice),R=function(t){return D(z(t),8,-1)},F=R,Z=A,G=function(t){if("Function"===F(t))return Z(t)},V=v,B=R,U=Object,W=G("".split),H=V((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"==B(t)?W(t,""):U(t)}:U,q=function(t){return null==t},X=q,$=TypeError,J=function(t){if(X(t))throw $("Can't call method on "+t);return t},K=H,Y=J,Q=function(t){return K(Y(t))},tt="object"==typeof document&&document.all,et={all:tt,IS_HTMLDDA:void 0===tt&&void 0!==tt},rt=et.all,nt=et.IS_HTMLDDA?function(t){return"function"==typeof t||t===rt}:function(t){return"function"==typeof t},ot=nt,it=et.all,at=et.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:ot(t)||t===it}:function(t){return"object"==typeof t?null!==t:ot(t)},st=d,ut=nt,ct=function(t){return ut(t)?t:void 0},ft=function(t,e){return arguments.length<2?ct(st[t]):st[t]&&st[t][e]},lt=G({}.isPrototypeOf),pt=d,ht=ft("navigator","userAgent")||"",mt=pt.process,dt=pt.Deno,gt=mt&&mt.versions||dt&&dt.version,vt=gt&>.v8;vt&&(E=(j=vt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!E&&ht&&(!(j=ht.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ht.match(/Chrome\/(\d+)/))&&(E=+j[1]);var yt=E,bt=yt,wt=v,kt=!!Object.getOwnPropertySymbols&&!wt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&bt&&bt<41})),St=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ft,xt=nt,Mt=lt,Pt=Object,jt=St?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return xt(e)&&Mt(e.prototype,Pt(t))},Et=String,Ct=function(t){try{return Et(t)}catch(t){return"Object"}},_t=nt,Lt=Ct,Tt=TypeError,It=function(t){if(_t(t))return t;throw Tt(Lt(t)+" is not a function")},At=It,Nt=q,zt=S,Dt=nt,Rt=at,Ft=TypeError,Zt={exports:{}},Gt=d,Vt=Object.defineProperty,Bt=function(t,e){try{Vt(Gt,t,{value:e,configurable:!0,writable:!0})}catch(r){Gt[t]=e}return e},Ut=Bt,Wt="__core-js_shared__",Ht=d[Wt]||Ut(Wt,{}),qt=Ht;(Zt.exports=function(t,e){return qt[t]||(qt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Xt=J,$t=Object,Jt=function(t){return $t(Xt(t))},Kt=Jt,Yt=G({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return Yt(Kt(t),e)},te=G,ee=0,re=Math.random(),ne=te(1..toString),oe=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ne(++ee+re,36)},ie=d,ae=Zt.exports,se=Qt,ue=oe,ce=kt,fe=St,le=ae("wks"),pe=ie.Symbol,he=pe&&pe.for,me=fe?pe:pe&&pe.withoutSetter||ue,de=function(t){if(!se(le,t)||!ce&&"string"!=typeof le[t]){var e="Symbol."+t;ce&&se(pe,t)?le[t]=pe[t]:le[t]=fe&&he?he(e):me(e)}return le[t]},ge=S,ve=at,ye=jt,be=function(t,e){var r=t[e];return Nt(r)?void 0:At(r)},we=function(t,e){var r,n;if("string"===e&&Dt(r=t.toString)&&!Rt(n=zt(r,t)))return n;if(Dt(r=t.valueOf)&&!Rt(n=zt(r,t)))return n;if("string"!==e&&Dt(r=t.toString)&&!Rt(n=zt(r,t)))return n;throw Ft("Can't convert object to primitive value")},ke=TypeError,Se=de("toPrimitive"),Oe=function(t,e){if(!ve(t)||ye(t))return t;var r,n=be(t,Se);if(n){if(void 0===e&&(e="default"),r=ge(n,t,e),!ve(r)||ye(r))return r;throw ke("Can't convert object to primitive value")}return void 0===e&&(e="number"),we(t,e)},xe=Oe,Me=jt,Pe=function(t){var e=xe(t,"string");return Me(e)?e:e+""},je=at,Ee=d.document,Ce=je(Ee)&&je(Ee.createElement),_e=function(t){return Ce?Ee.createElement(t):{}},Le=_e,Te=!y&&!v((function(){return 7!=Object.defineProperty(Le("div"),"a",{get:function(){return 7}}).a})),Ie=y,Ae=S,Ne=O,ze=C,De=Q,Re=Pe,Fe=Qt,Ze=Te,Ge=Object.getOwnPropertyDescriptor;g.f=Ie?Ge:function(t,e){if(t=De(t),e=Re(e),Ze)try{return Ge(t,e)}catch(t){}if(Fe(t,e))return ze(!Ae(Ne.f,t,e),t[e])};var Ve={},Be=y&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ue=at,We=String,He=TypeError,qe=function(t){if(Ue(t))return t;throw He(We(t)+" is not an object")},Xe=y,$e=Te,Je=Be,Ke=qe,Ye=Pe,Qe=TypeError,tr=Object.defineProperty,er=Object.getOwnPropertyDescriptor,rr="enumerable",nr="configurable",or="writable";Ve.f=Xe?Je?function(t,e,r){if(Ke(t),e=Ye(e),Ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&or in r&&!r.writable){var n=er(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:nr in r?r.configurable:n.configurable,enumerable:rr in r?r.enumerable:n.enumerable,writable:!1})}return tr(t,e,r)}:tr:function(t,e,r){if(Ke(t),e=Ye(e),Ke(r),$e)try{return tr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Qe("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var ir=Ve,ar=C,sr=y?function(t,e,r){return ir.f(t,e,ar(1,r))}:function(t,e,r){return t[e]=r,t},ur={exports:{}},cr=y,fr=Qt,lr=Function.prototype,pr=cr&&Object.getOwnPropertyDescriptor,hr=fr(lr,"name"),mr={EXISTS:hr,PROPER:hr&&"something"===function(){}.name,CONFIGURABLE:hr&&(!cr||cr&&pr(lr,"name").configurable)},dr=nt,gr=Ht,vr=G(Function.toString);dr(gr.inspectSource)||(gr.inspectSource=function(t){return vr(t)});var yr,br,wr,kr=gr.inspectSource,Sr=nt,Or=d.WeakMap,xr=Sr(Or)&&/native code/.test(String(Or)),Mr=Zt.exports,Pr=oe,jr=Mr("keys"),Er=function(t){return jr[t]||(jr[t]=Pr(t))},Cr={},_r=xr,Lr=d,Tr=at,Ir=sr,Ar=Qt,Nr=Ht,zr=Er,Dr=Cr,Rr="Object already initialized",Fr=Lr.TypeError,Zr=Lr.WeakMap;if(_r||Nr.state){var Gr=Nr.state||(Nr.state=new Zr);Gr.get=Gr.get,Gr.has=Gr.has,Gr.set=Gr.set,yr=function(t,e){if(Gr.has(t))throw Fr(Rr);return e.facade=t,Gr.set(t,e),e},br=function(t){return Gr.get(t)||{}},wr=function(t){return Gr.has(t)}}else{var Vr=zr("state");Dr[Vr]=!0,yr=function(t,e){if(Ar(t,Vr))throw Fr(Rr);return e.facade=t,Ir(t,Vr,e),e},br=function(t){return Ar(t,Vr)?t[Vr]:{}},wr=function(t){return Ar(t,Vr)}}var Br={set:yr,get:br,has:wr,enforce:function(t){return wr(t)?br(t):yr(t,{})},getterFor:function(t){return function(e){var r;if(!Tr(e)||(r=br(e)).type!==t)throw Fr("Incompatible receiver, "+t+" required");return r}}},Ur=v,Wr=nt,Hr=Qt,qr=y,Xr=mr.CONFIGURABLE,$r=kr,Jr=Br.enforce,Kr=Br.get,Yr=Object.defineProperty,Qr=qr&&!Ur((function(){return 8!==Yr((function(){}),"length",{value:8}).length})),tn=String(String).split("String"),en=ur.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Hr(t,"name")||Xr&&t.name!==e)&&(qr?Yr(t,"name",{value:e,configurable:!0}):t.name=e),Qr&&r&&Hr(r,"arity")&&t.length!==r.arity&&Yr(t,"length",{value:r.arity});try{r&&Hr(r,"constructor")&&r.constructor?qr&&Yr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Jr(t);return Hr(n,"source")||(n.source=tn.join("string"==typeof e?e:"")),t};Function.prototype.toString=en((function(){return Wr(this)&&Kr(this).source||$r(this)}),"toString");var rn=nt,nn=Ve,on=ur.exports,an=Bt,sn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(rn(r)&&on(r,i,n),n.global)o?t[e]=r:an(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:nn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},un={},cn=Math.ceil,fn=Math.floor,ln=Math.trunc||function(t){var e=+t;return(e>0?fn:cn)(e)},pn=function(t){var e=+t;return e!=e||0===e?0:ln(e)},hn=pn,mn=Math.max,dn=Math.min,gn=function(t,e){var r=hn(t);return r<0?mn(r+e,0):dn(r,e)},vn=pn,yn=Math.min,bn=function(t){return t>0?yn(vn(t),9007199254740991):0},wn=function(t){return bn(t.length)},kn=Q,Sn=gn,On=wn,xn=function(t){return function(e,r,n){var o,i=kn(e),a=On(i),s=Sn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},Mn={includes:xn(!0),indexOf:xn(!1)},Pn=Qt,jn=Q,En=Mn.indexOf,Cn=Cr,_n=G([].push),Ln=function(t,e){var r,n=jn(t),o=0,i=[];for(r in n)!Pn(Cn,r)&&Pn(n,r)&&_n(i,r);for(;e.length>o;)Pn(n,r=e[o++])&&(~En(i,r)||_n(i,r));return i},Tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],In=Ln,An=Tn.concat("length","prototype");un.f=Object.getOwnPropertyNames||function(t){return In(t,An)};var Nn={};Nn.f=Object.getOwnPropertySymbols;var zn=ft,Dn=un,Rn=Nn,Fn=qe,Zn=G([].concat),Gn=zn("Reflect","ownKeys")||function(t){var e=Dn.f(Fn(t)),r=Rn.f;return r?Zn(e,r(t)):e},Vn=Qt,Bn=Gn,Un=g,Wn=Ve,Hn=v,qn=nt,Xn=/#|\.prototype\./,$n=function(t,e){var r=Kn[Jn(t)];return r==Qn||r!=Yn&&(qn(e)?Hn(e):!!e)},Jn=$n.normalize=function(t){return String(t).replace(Xn,".").toLowerCase()},Kn=$n.data={},Yn=$n.NATIVE="N",Qn=$n.POLYFILL="P",to=$n,eo=d,ro=g.f,no=sr,oo=sn,io=Bt,ao=function(t,e,r){for(var n=Bn(e),o=Wn.f,i=Un.f,a=0;a<n.length;a++){var s=n[a];Vn(t,s)||r&&Vn(r,s)||o(t,s,i(e,s))}},so=to,uo=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?eo:c?eo[s]||io(s,{}):(eo[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ro(r,n))&&a.value:r[n],!so(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ao(i,o)}(t.sham||o&&o.sham)&&no(i,"sham",!0),oo(r,n,i,t)}},co=It,fo=b,lo=G(G.bind),po=R,ho=Array.isArray||function(t){return"Array"==po(t)},mo={};mo[de("toStringTag")]="z";var go="[object z]"===String(mo),vo=go,yo=nt,bo=R,wo=de("toStringTag"),ko=Object,So="Arguments"==bo(function(){return arguments}()),Oo=vo?bo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=ko(t),wo))?r:So?bo(e):"Object"==(n=bo(e))&&yo(e.callee)?"Arguments":n},xo=G,Mo=v,Po=nt,jo=Oo,Eo=kr,Co=function(){},_o=[],Lo=ft("Reflect","construct"),To=/^\s*(?:class|function)\b/,Io=xo(To.exec),Ao=!To.exec(Co),No=function(t){if(!Po(t))return!1;try{return Lo(Co,_o,t),!0}catch(t){return!1}},zo=function(t){if(!Po(t))return!1;switch(jo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ao||!!Io(To,Eo(t))}catch(t){return!0}};zo.sham=!0;var Do=!Lo||Mo((function(){var t;return No(No.call)||!No(Object)||!No((function(){t=!0}))||t}))?zo:No,Ro=ho,Fo=Do,Zo=at,Go=de("species"),Vo=Array,Bo=function(t){var e;return Ro(t)&&(e=t.constructor,(Fo(e)&&(e===Vo||Ro(e.prototype))||Zo(e)&&null===(e=e[Go]))&&(e=void 0)),void 0===e?Vo:e},Uo=function(t,e){return new(Bo(t))(0===e?0:e)},Wo=function(t,e){return co(t),void 0===e?t:fo?lo(t,e):function(){return t.apply(e,arguments)}},Ho=H,qo=Jt,Xo=wn,$o=Uo,Jo=G([].push),Ko=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,l){for(var p,h,m=qo(u),d=Ho(m),g=Wo(c,f),v=Xo(d),y=0,b=l||$o,w=e?b(u,v):r||a?b(u,0):void 0;v>y;y++)if((s||y in d)&&(h=g(p=d[y],y,m),t))if(e)w[y]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:Jo(w,p)}else switch(t){case 4:return!1;case 7:Jo(w,p)}return i?-1:n||o?o:w}},Yo={forEach:Ko(0),map:Ko(1),filter:Ko(2),some:Ko(3),every:Ko(4),find:Ko(5),findIndex:Ko(6),filterReject:Ko(7)},Qo=v,ti=yt,ei=de("species"),ri=function(t){return ti>=51||!Qo((function(){var e=[];return(e.constructor={})[ei]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ni=Yo.map;function oi(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}uo({target:"Array",proto:!0,forced:!ri("map")},{map:function(t){return ni(this,t,arguments.length>1?arguments[1]:void 0)}});var ii=It,ai=Jt,si=H,ui=wn,ci=TypeError,fi=function(t){return function(e,r,n,o){ii(r);var i=ai(e),a=si(i),s=ui(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw ci("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},li={left:fi(!1),right:fi(!0)},pi=v,hi=function(t,e){var r=[][t];return!!r&&pi((function(){r.call(null,e||function(){return 1},1)}))},mi="process"==R(d.process),di=li.left,gi=yt,vi=mi;uo({target:"Array",proto:!0,forced:!hi("reduce")||!vi&&gi>79&&gi<83},{reduce:function(t){var e=arguments.length;return di(this,t,e,e>1?arguments[1]:void 0)}});var yi=Oo,bi=go?{}.toString:function(){return"[object "+yi(this)+"]"};go||sn(Object.prototype,"toString",bi,{unsafe:!0});var wi=Yo.filter;uo({target:"Array",proto:!0,forced:!ri("filter")},{filter:function(t){return wi(this,t,arguments.length>1?arguments[1]:void 0)}});var ki=function(){function t(r){var n=r.markers,o=r.position;e(this,t),this.markers=n,o&&(o instanceof google.maps.LatLng?this._position=o:this._position=new google.maps.LatLng(o))}return n(t,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(t,e){return t.extend(e.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return t.getVisible()})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}}]),t}(),Si=function(t,e,r,n){var o=Oi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(t.getPosition())}))},Oi=function(t,e,r){var n=Mi(t,e),o=n.northEast,i=n.southWest,a=Pi({northEast:o,southWest:i},r);return ji(a,e)},xi=function(t,e){var r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},Mi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Pi=function(t,e){var r=t.northEast,n=t.southWest;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},ji=function(t,e){var r=t.northEast,n=t.southWest,o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o},Ei=function(){function t(r){var n=r.maxZoom,o=void 0===n?16:n;e(this,t),this.maxZoom=o}return n(t,[{key:"noop",value:function(t){var e=t.markers;return _i(e)}}]),t}(),Ci=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,a=void 0===o?60:o,s=oi(t,["viewportPadding"]);return(n=r.call(this,s)).viewportPadding=60,n.viewportPadding=a,n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:Si(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ei),_i=function(t){return t.map((function(t){return new ki({position:t.getPosition(),markers:[t]})}))},Li=_e("span").classList,Ti=Li&&Li.constructor&&Li.constructor.prototype,Ii=Ti===Object.prototype?void 0:Ti,Ai=Yo.forEach,Ni=hi("forEach")?[].forEach:function(t){return Ai(this,t,arguments.length>1?arguments[1]:void 0)},zi=d,Di={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ri=Ii,Fi=Ni,Zi=sr,Gi=function(t){if(t&&t.forEach!==Fi)try{Zi(t,"forEach",Fi)}catch(e){t.forEach=Fi}};for(var Vi in Di)Di[Vi]&&Gi(zi[Vi]&&zi[Vi].prototype);Gi(Ri);var Bi=S;uo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Bi(URL.prototype.toString,this)}});var Ui=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},Wi=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,a=void 0===o?4e4:o,s=t.gridSize,u=void 0===s?40:s,c=oi(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=a,n.gridSize=u,n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection,o={zoom:r.getZoom()},i=!1;return this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(i=!Ui(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:i}:{clusters:this.cluster({markers:Si(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}},{key:"cluster",value:function(t){var e=this,r=t.markers,n=t.map,o=t.mapCanvasProjection;return this.clusters=[],r.forEach((function(t){e.addToClosestCluster(t,n,o)})),this.clusters}},{key:"addToClosestCluster",value:function(t,e,r){for(var n=this.maxDistance,o=null,i=0;i<this.clusters.length;i++){var a=this.clusters[i],s=xi(a.bounds.getCenter().toJSON(),t.getPosition().toJSON());s<n&&(n=s,o=a)}if(o&&Oi(o.bounds,r,this.gridSize).contains(t.getPosition()))o.push(t);else{var u=new ki({markers:[t]});this.clusters.push(u)}}}]),i}(Ci),Hi=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=oi(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(Ei),qi=Ln,Xi=Tn,$i=Object.keys||function(t){return qi(t,Xi)},Ji=y,Ki=G,Yi=S,Qi=v,ta=$i,ea=Nn,ra=O,na=Jt,oa=H,ia=Object.assign,aa=Object.defineProperty,sa=Ki([].concat),ua=!ia||Qi((function(){if(Ji&&1!==ia({b:1},ia(aa({},"a",{enumerable:!0,get:function(){aa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=ia({},t)[r]||ta(ia({},e)).join("")!=n}))?function(t,e){for(var r=na(t),n=arguments.length,o=1,i=ea.f,a=ra.f;n>o;)for(var s,u=oa(arguments[o++]),c=i?sa(ta(u),i(u)):ta(u),f=c.length,l=0;f>l;)s=c[l++],Ji&&!Yi(a,u,s)||(r[s]=u[s]);return r}:ia,ca=ua;uo({target:"Object",stat:!0,arity:2,forced:Object.assign!==ca},{assign:ca});var fa={exports:{}};fa.exports=function(){function t(r,n,o,i,a,s){if(!(a-i<=o)){var u=i+a>>1;e(r,n,u,i,a,s%2),t(r,n,o,i,u-1,s+1),t(r,n,o,u+1,a,s+1)}}function e(t,n,o,i,a,s){for(;a>i;){if(a-i>600){var u=a-i+1,c=o-i+1,f=Math.log(u),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(u-l)/u)*(c-u/2<0?-1:1);e(t,n,o,Math.max(i,Math.floor(o-c*l/u+p)),Math.min(a,Math.floor(o+(u-c)*l/u+p)),s)}var h=n[2*o+s],m=i,d=a;for(r(t,n,i,o),n[2*a+s]>h&&r(t,n,i,a);m<d;){for(r(t,n,m,d),m++,d--;n[2*m+s]<h;)m++;for(;n[2*d+s]>h;)d--}n[2*i+s]===h?r(t,n,i,d):r(t,n,++d,a),d<=o&&(i=d+1),o<=d&&(a=d-1)}}function r(t,e,r,o){n(t,r,o),n(e,2*r,2*o),n(e,2*r+1,2*o+1)}function n(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function o(t,e,r,n,o,i,a){for(var s,u,c=[0,t.length-1,0],f=[];c.length;){var l=c.pop(),p=c.pop(),h=c.pop();if(p-h<=a)for(var m=h;m<=p;m++)s=e[2*m],u=e[2*m+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[m]);else{var d=Math.floor((h+p)/2);s=e[2*d],u=e[2*d+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[d]);var g=(l+1)%2;(0===l?r<=s:n<=u)&&(c.push(h),c.push(d-1),c.push(g)),(0===l?o>=s:i>=u)&&(c.push(d+1),c.push(p),c.push(g))}}return f}function i(t,e,r,n,o,i){for(var s=[0,t.length-1,0],u=[],c=o*o;s.length;){var f=s.pop(),l=s.pop(),p=s.pop();if(l-p<=i)for(var h=p;h<=l;h++)a(e[2*h],e[2*h+1],r,n)<=c&&u.push(t[h]);else{var m=Math.floor((p+l)/2),d=e[2*m],g=e[2*m+1];a(d,g,r,n)<=c&&u.push(t[m]);var v=(f+1)%2;(0===f?r-o<=d:n-o<=g)&&(s.push(p),s.push(m-1),s.push(v)),(0===f?r+o>=d:n+o>=g)&&(s.push(m+1),s.push(l),s.push(v))}}return u}function a(t,e,r,n){var o=t-r,i=e-n;return o*o+i*i}var s=function(t){return t[0]},u=function(t){return t[1]},c=function(e,r,n,o,i){void 0===r&&(r=s),void 0===n&&(n=u),void 0===o&&(o=64),void 0===i&&(i=Float64Array),this.nodeSize=o,this.points=e;for(var a=e.length<65536?Uint16Array:Uint32Array,c=this.ids=new a(e.length),f=this.coords=new i(2*e.length),l=0;l<e.length;l++)c[l]=l,f[2*l]=r(e[l]),f[2*l+1]=n(e[l]);t(c,f,o,0,c.length-1,0)};return c.prototype.range=function(t,e,r,n){return o(this.ids,this.coords,t,e,r,n,this.nodeSize)},c.prototype.within=function(t,e,r){return i(this.ids,this.coords,t,e,r,this.nodeSize)},c}();var la=fa.exports;const pa={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ha=Math.fround||(ma=new Float32Array(1),t=>(ma[0]=+t,ma[0]));var ma;class da{constructor(t){this.options=Oa(Object.create(pa),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e<t.length;e++)t[e].geometry&&a.push(va(t[e],e));this.trees[n+1]=new la(a,xa,Ma,o,Float32Array),e&&console.timeEnd(i);for(let t=n;t>=r;t--){const r=+Date.now();a=this._cluster(a,t),this.trees[t]=new la(a,xa,Ma,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,a.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),a=this.getClusters([-180,n,o,i],e);return t.concat(a)}const a=this.trees[this._limitZoom(e)],s=a.range(wa(r),ka(i),wa(o),ka(n)),u=[];for(const t of s){const e=a.points[t];u.push(e.numPoints?ya(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=o.within(i.x,i.y,a),u=[];for(const e of s){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?ya(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:a}=this.options,s=a/i,u=(r-s)/o,c=(r+1+s)/o,f={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.points,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.points,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.points,-1,r,o,f),f.features.length?f:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):o<n?o++:t.push(e),t.length===r)break}return o}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=e[a],s=t.numPoints;let u,c,f;if(s)u=ba(t),c=t.x,f=t.y;else{const e=this.points[t.index];u=e.properties,c=wa(e.geometry.coordinates[0]),f=ka(e.geometry.coordinates[1])}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let p;s?p=t.id:this.options.generateId?p=t.index:this.points[t.index].id&&(p=this.points[t.index].id),void 0!==p&&(l.id=p),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const r=[],{radius:n,extent:o,reduce:i,minPoints:a}=this.options,s=n/(o*Math.pow(2,e));for(let n=0;n<t.length;n++){const o=t[n];if(o.zoom<=e)continue;o.zoom=e;const u=this.trees[e+1],c=u.within(o.x,o.y,s),f=o.numPoints||1;let l=f;for(const t of c){const r=u.points[t];r.zoom>e&&(l+=r.numPoints||1)}if(l>f&&l>=a){let t=o.x*f,a=o.y*f,s=i&&f>1?this._map(o,!0):null;const p=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,a+=n.y*c,n.parentId=p,i&&(s||(s=this._map(o,!0)),i(s,this._map(n)))}o.parentId=p,r.push(ga(t/l,a/l,p,l,s))}else if(r.push(o),l>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Oa({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Oa({},n):n}}function ga(t,e,r,n,o){return{x:ha(t),y:ha(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function va(t,e){const[r,n]=t.geometry.coordinates;return{x:ha(wa(r)),y:ha(ka(n)),zoom:1/0,index:e,parentId:-1}}function ya(t){return{type:"Feature",id:t.id,properties:ba(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),Sa(t.y)]}};var e}function ba(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Oa(Oa({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function wa(t){return t/360+.5}function ka(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Sa(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Oa(t,e){for(const r in e)t[r]=e[r];return t}function xa(t){return t.x}function Ma(t){return t.y}var Pa=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,a=t.radius,s=void 0===a?60:a,u=oi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new da(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1;if(!Ui(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var r=this.markers.map((function(t){return{type:"Feature",geometry:{type:"Point",coordinates:[t.getPosition().lng(),t.getPosition().lat()]},properties:{marker:t}}}));this.superCluster.load(r)}var n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!Ui(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}},{key:"transformCluster",value:function(t){var e=c(t.geometry.coordinates,2),r=e[0],n=e[1],o=t.properties;if(o.cluster)return new ki({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:new google.maps.LatLng({lat:n,lng:r})});var i=o.marker;return new ki({markers:[i],position:i.getPosition()})}}]),i}(Ei),ja={},Ea=y,Ca=Be,_a=Ve,La=qe,Ta=Q,Ia=$i;ja.f=Ea&&!Ca?Object.defineProperties:function(t,e){La(t);for(var r,n=Ta(e),o=Ia(e),i=o.length,a=0;i>a;)_a.f(t,r=o[a++],n[r]);return t};var Aa,Na=ft("document","documentElement"),za=qe,Da=ja,Ra=Tn,Fa=Cr,Za=Na,Ga=_e,Va=Er("IE_PROTO"),Ba=function(){},Ua=function(t){return"<script>"+t+"</"+"script>"},Wa=function(t){t.write(Ua("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ha=function(){try{Aa=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ha="undefined"!=typeof document?document.domain&&Aa?Wa(Aa):((e=Ga("iframe")).style.display="none",Za.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ua("document.F=Object")),t.close(),t.F):Wa(Aa);for(var r=Ra.length;r--;)delete Ha.prototype[Ra[r]];return Ha()};Fa[Va]=!0;var qa=de,Xa=Object.create||function(t,e){var r;return null!==t?(Ba.prototype=za(t),r=new Ba,Ba.prototype=null,r[Va]=t):r=Ha(),void 0===e?r:Da.f(r,e)},$a=Ve.f,Ja=qa("unscopables"),Ka=Array.prototype;null==Ka[Ja]&&$a(Ka,Ja,{configurable:!0,value:Xa(null)});var Ya=Mn.includes,Qa=function(t){Ka[Ja][t]=!0};uo({target:"Array",proto:!0,forced:v((function(){return!Array(1).includes()}))},{includes:function(t){return Ya(this,t,arguments.length>1?arguments[1]:void 0)}}),Qa("includes");var ts=at,es=R,rs=de("match"),ns=function(t){var e;return ts(t)&&(void 0!==(e=t[rs])?!!e:"RegExp"==es(t))},os=TypeError,is=Oo,as=String,ss=function(t){if("Symbol"===is(t))throw TypeError("Cannot convert a Symbol value to a string");return as(t)},us=de("match"),cs=uo,fs=function(t){if(ns(t))throw os("The method doesn't accept regular expressions");return t},ls=J,ps=ss,hs=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[us]=!1,"/./"[t](e)}catch(t){}}return!1},ms=G("".indexOf);cs({target:"String",proto:!0,forced:!hs("includes")},{includes:function(t){return!!~ms(ps(ls(this)),ps(fs(t)),arguments.length>1?arguments[1]:void 0)}});var ds=uo,gs=Mn.indexOf,vs=hi,ys=G([].indexOf),bs=!!ys&&1/ys([1],1,-0)<0,ws=vs("indexOf");ds({target:"Array",proto:!0,forced:bs||!ws},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return bs?ys(this,t,e)||0:gs(this,t,e)}});var ks=y,Ss=ho,Os=TypeError,xs=Object.getOwnPropertyDescriptor,Ms=ks&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ps=TypeError,js=Pe,Es=Ve,Cs=C,_s=Ct,Ls=TypeError,Ts=uo,Is=Jt,As=gn,Ns=pn,zs=wn,Ds=Ms?function(t,e){if(Ss(t)&&!xs(t,"length").writable)throw Os("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Rs=function(t){if(t>9007199254740991)throw Ps("Maximum allowed index exceeded");return t},Fs=Uo,Zs=function(t,e,r){var n=js(e);n in t?Es.f(t,n,Cs(0,r)):t[n]=r},Gs=function(t,e){if(!delete t[e])throw Ls("Cannot delete property "+_s(e)+" of "+_s(t))},Vs=ri("splice"),Bs=Math.max,Us=Math.min;Ts({target:"Array",proto:!0,forced:!Vs},{splice:function(t,e){var r,n,o,i,a,s,u=Is(this),c=zs(u),f=As(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=Us(Bs(Ns(e),0),c-f)),Rs(c+r-n),o=Fs(u,n),i=0;i<n;i++)(a=f+i)in u&&Zs(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Gs(u,s);for(i=c;i>c-n+r;i--)Gs(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Gs(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return Ds(u,c-n+r),o}});var Ws=nt,Hs=String,qs=TypeError,Xs=G,$s=qe,Js=function(t){if("object"==typeof t||Ws(t))return t;throw qs("Can't set "+Hs(t)+" as a prototype")},Ks=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Xs(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return $s(r),Js(n),e?t(r,n):r.__proto__=n,r}}():void 0),Ys=nt,Qs=at,tu=Ks,eu=G(1..valueOf),ru=J,nu=ss,ou=G("".replace),iu="[\t\n\v\f\r \u2028\u2029\ufeff]",au=RegExp("^"+iu+iu+"*"),su=RegExp(iu+iu+"*$"),uu=function(t){return function(e){var r=nu(ru(e));return 1&t&&(r=ou(r,au,"")),2&t&&(r=ou(r,su,"")),r}},cu={start:uu(1),end:uu(2),trim:uu(3)},fu=y,lu=d,pu=G,hu=to,mu=sn,du=Qt,gu=function(t,e,r){var n,o;return tu&&Ys(n=e.constructor)&&n!==r&&Qs(o=n.prototype)&&o!==r.prototype&&tu(t,o),t},vu=lt,yu=jt,bu=Oe,wu=v,ku=un.f,Su=g.f,Ou=Ve.f,xu=eu,Mu=cu.trim,Pu="Number",ju=lu.Number,Eu=ju.prototype,Cu=lu.TypeError,_u=pu("".slice),Lu=pu("".charCodeAt),Tu=function(t){var e=bu(t,"number");return"bigint"==typeof e?e:Iu(e)},Iu=function(t){var e,r,n,o,i,a,s,u,c=bu(t,"number");if(yu(c))throw Cu("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Mu(c),43===(e=Lu(c,0))||45===e){if(88===(r=Lu(c,2))||120===r)return NaN}else if(48===e){switch(Lu(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=_u(c,2)).length,s=0;s<a;s++)if((u=Lu(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c};if(hu(Pu,!ju(" 0o1")||!ju("0b1")||ju("+0x1"))){for(var Au,Nu=function(t){var e=arguments.length<1?0:ju(Tu(t)),r=this;return vu(Eu,r)&&wu((function(){xu(r)}))?gu(Object(e),r,Nu):e},zu=fu?ku(ju):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Du=0;zu.length>Du;Du++)du(ju,Au=zu[Du])&&!du(Nu,Au)&&Ou(Nu,Au,Su(ju,Au));Nu.prototype=Eu,Eu.constructor=Nu,mu(lu,Pu,Nu,{constructor:!0})}var Ru=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,f(o)),max:Math.max.apply(Math,f(o))}}})),Fu=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e){var r=t.count,n=t.position,o=r>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",i=window.btoa('\n <svg fill="'.concat(o,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>'));return new google.maps.Marker({position:n,icon:{url:"data:image/svg+xml;base64,".concat(i),scaledSize:new google.maps.Size(45,45)},label:{text:String(r),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:"Cluster of ".concat(r," markers"),zIndex:Number(google.maps.Marker.MAX_ZINDEX)+r})}}]),t}();var Zu,Gu=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(Zu=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Zu.CLUSTERING_END="clusteringend",Zu.CLUSTER_CLICK="click";var Vu=function(t,e,r){r.fitBounds(e.bounds)},Bu=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithm,c=void 0===u?new Pa({}):u,l=t.renderer,p=void 0===l?new Fu:l,h=t.onClusterClick,m=void 0===h?Vu:h;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=c,r.renderer=p,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(t.setMap(null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;(o||null==o)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return t.setMap(null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new Ru(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),o.marker.setMap(n)}))}}]),a}(Gu);return t.AbstractAlgorithm=Ei,t.AbstractViewportAlgorithm=Ci,t.Cluster=ki,t.ClusterStats=Ru,t.DefaultRenderer=Fu,t.GridAlgorithm=Wi,t.MarkerClusterer=Bu,t.NoopAlgorithm=Hi,t.SuperClusterAlgorithm=Pa,t.defaultOnClusterClickHandler=Vu,t.distanceBetweenPoints=xi,t.extendBoundsToPaddedViewport=Oi,t.extendPixelBounds=Pi,t.filterMarkersToPaddedViewport=Si,t.noop=_i,t.pixelBoundsToLatLngBounds=ji,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).markerClusterer={})}(this,(function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m=function(t){return t&&t.Math==Math&&t},d=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof h&&h)||function(){return this}()||Function("return this")(),g={},v=function(t){try{return!!t()}catch(t){return!0}},y=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!v((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),w=b,k=Function.prototype.call,O=w?k.bind(k):function(){return k.apply(k,arguments)},S={},x={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,P=M&&!x.call({1:2},1);S.f=P?function(t){var e=M(this,t);return!!e&&e.enumerable}:x;var j,E,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_=b,L=Function.prototype,T=L.bind,I=L.call,A=_&&T.bind(I,I),N=_?function(t){return t&&A(t)}:function(t){return t&&function(){return I.apply(t,arguments)}},z=N,R=z({}.toString),Z=z("".slice),F=function(t){return Z(R(t),8,-1)},D=v,G=F,V=Object,B=N("".split),U=D((function(){return!V("z").propertyIsEnumerable(0)}))?function(t){return"String"==G(t)?B(t,""):V(t)}:V,W=function(t){return null==t},q=W,X=TypeError,H=function(t){if(q(t))throw X("Can't call method on "+t);return t},$=U,J=H,K=function(t){return $(J(t))},Y=function(t){return"function"==typeof t},Q=Y,tt="object"==typeof document&&document.all,et=void 0===tt&&void 0!==tt?function(t){return"object"==typeof t?null!==t:Q(t)||t===tt}:function(t){return"object"==typeof t?null!==t:Q(t)},rt=d,nt=Y,ot=function(t){return nt(t)?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t]):rt[t]&&rt[t][e]},at=N({}.isPrototypeOf),st=d,ut=it("navigator","userAgent")||"",ct=st.process,ft=st.Deno,lt=ct&&ct.versions||ft&&ft.version,pt=lt&<.v8;pt&&(E=(j=pt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!E&&ut&&(!(j=ut.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ut.match(/Chrome\/(\d+)/))&&(E=+j[1]);var ht=E,mt=ht,dt=v,gt=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mt&&mt<41})),vt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yt=it,bt=Y,wt=at,kt=Object,Ot=vt?function(t){return"symbol"==typeof t}:function(t){var e=yt("Symbol");return bt(e)&&wt(e.prototype,kt(t))},St=String,xt=function(t){try{return St(t)}catch(t){return"Object"}},Mt=Y,Pt=xt,jt=TypeError,Et=function(t){if(Mt(t))return t;throw jt(Pt(t)+" is not a function")},Ct=Et,_t=W,Lt=O,Tt=Y,It=et,At=TypeError,Nt={exports:{}},zt=d,Rt=Object.defineProperty,Zt=function(t,e){try{Rt(zt,t,{value:e,configurable:!0,writable:!0})}catch(r){zt[t]=e}return e},Ft=Zt,Dt="__core-js_shared__",Gt=d[Dt]||Ft(Dt,{}),Vt=Gt;(Nt.exports=function(t,e){return Vt[t]||(Vt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Bt=H,Ut=Object,Wt=function(t){return Ut(Bt(t))},qt=Wt,Xt=N({}.hasOwnProperty),Ht=Object.hasOwn||function(t,e){return Xt(qt(t),e)},$t=N,Jt=0,Kt=Math.random(),Yt=$t(1..toString),Qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Yt(++Jt+Kt,36)},te=d,ee=Nt.exports,re=Ht,ne=Qt,oe=gt,ie=vt,ae=ee("wks"),se=te.Symbol,ue=se&&se.for,ce=ie?se:se&&se.withoutSetter||ne,fe=function(t){if(!re(ae,t)||!oe&&"string"!=typeof ae[t]){var e="Symbol."+t;oe&&re(se,t)?ae[t]=se[t]:ae[t]=ie&&ue?ue(e):ce(e)}return ae[t]},le=O,pe=et,he=Ot,me=function(t,e){var r=t[e];return _t(r)?void 0:Ct(r)},de=function(t,e){var r,n;if("string"===e&&Tt(r=t.toString)&&!It(n=Lt(r,t)))return n;if(Tt(r=t.valueOf)&&!It(n=Lt(r,t)))return n;if("string"!==e&&Tt(r=t.toString)&&!It(n=Lt(r,t)))return n;throw At("Can't convert object to primitive value")},ge=TypeError,ve=fe("toPrimitive"),ye=function(t,e){if(!pe(t)||he(t))return t;var r,n=me(t,ve);if(n){if(void 0===e&&(e="default"),r=le(n,t,e),!pe(r)||he(r))return r;throw ge("Can't convert object to primitive value")}return void 0===e&&(e="number"),de(t,e)},be=ye,we=Ot,ke=function(t){var e=be(t,"string");return we(e)?e:e+""},Oe=et,Se=d.document,xe=Oe(Se)&&Oe(Se.createElement),Me=function(t){return xe?Se.createElement(t):{}},Pe=Me,je=!y&&!v((function(){return 7!=Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a})),Ee=y,Ce=O,_e=S,Le=C,Te=K,Ie=ke,Ae=Ht,Ne=je,ze=Object.getOwnPropertyDescriptor;g.f=Ee?ze:function(t,e){if(t=Te(t),e=Ie(e),Ne)try{return ze(t,e)}catch(t){}if(Ae(t,e))return Le(!Ce(_e.f,t,e),t[e])};var Re={},Ze=y&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Fe=et,De=String,Ge=TypeError,Ve=function(t){if(Fe(t))return t;throw Ge(De(t)+" is not an object")},Be=y,Ue=je,We=Ze,qe=Ve,Xe=ke,He=TypeError,$e=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ke="enumerable",Ye="configurable",Qe="writable";Re.f=Be?We?function(t,e,r){if(qe(t),e=Xe(e),qe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Qe in r&&!r.writable){var n=Je(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Ye in r?r.configurable:n.configurable,enumerable:Ke in r?r.enumerable:n.enumerable,writable:!1})}return $e(t,e,r)}:$e:function(t,e,r){if(qe(t),e=Xe(e),qe(r),Ue)try{return $e(t,e,r)}catch(t){}if("get"in r||"set"in r)throw He("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var tr=Re,er=C,rr=y?function(t,e,r){return tr.f(t,e,er(1,r))}:function(t,e,r){return t[e]=r,t},nr={exports:{}},or=y,ir=Ht,ar=Function.prototype,sr=or&&Object.getOwnPropertyDescriptor,ur=ir(ar,"name"),cr={EXISTS:ur,PROPER:ur&&"something"===function(){}.name,CONFIGURABLE:ur&&(!or||or&&sr(ar,"name").configurable)},fr=Y,lr=Gt,pr=N(Function.toString);fr(lr.inspectSource)||(lr.inspectSource=function(t){return pr(t)});var hr,mr,dr,gr=lr.inspectSource,vr=Y,yr=d.WeakMap,br=vr(yr)&&/native code/.test(String(yr)),wr=Nt.exports,kr=Qt,Or=wr("keys"),Sr=function(t){return Or[t]||(Or[t]=kr(t))},xr={},Mr=br,Pr=d,jr=N,Er=et,Cr=rr,_r=Ht,Lr=Gt,Tr=Sr,Ir=xr,Ar="Object already initialized",Nr=Pr.TypeError,zr=Pr.WeakMap;if(Mr||Lr.state){var Rr=Lr.state||(Lr.state=new zr),Zr=jr(Rr.get),Fr=jr(Rr.has),Dr=jr(Rr.set);hr=function(t,e){if(Fr(Rr,t))throw Nr(Ar);return e.facade=t,Dr(Rr,t,e),e},mr=function(t){return Zr(Rr,t)||{}},dr=function(t){return Fr(Rr,t)}}else{var Gr=Tr("state");Ir[Gr]=!0,hr=function(t,e){if(_r(t,Gr))throw Nr(Ar);return e.facade=t,Cr(t,Gr,e),e},mr=function(t){return _r(t,Gr)?t[Gr]:{}},dr=function(t){return _r(t,Gr)}}var Vr={set:hr,get:mr,has:dr,enforce:function(t){return dr(t)?mr(t):hr(t,{})},getterFor:function(t){return function(e){var r;if(!Er(e)||(r=mr(e)).type!==t)throw Nr("Incompatible receiver, "+t+" required");return r}}},Br=v,Ur=Y,Wr=Ht,qr=y,Xr=cr.CONFIGURABLE,Hr=gr,$r=Vr.enforce,Jr=Vr.get,Kr=Object.defineProperty,Yr=qr&&!Br((function(){return 8!==Kr((function(){}),"length",{value:8}).length})),Qr=String(String).split("String"),tn=nr.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Xr&&t.name!==e)&&(qr?Kr(t,"name",{value:e,configurable:!0}):t.name=e),Yr&&r&&Wr(r,"arity")&&t.length!==r.arity&&Kr(t,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?qr&&Kr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=$r(t);return Wr(n,"source")||(n.source=Qr.join("string"==typeof e?e:"")),t};Function.prototype.toString=tn((function(){return Ur(this)&&Jr(this).source||Hr(this)}),"toString");var en=Y,rn=Re,nn=nr.exports,on=Zt,an=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(en(r)&&nn(r,i,n),n.global)o?t[e]=r:on(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:rn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},sn={},un=Math.ceil,cn=Math.floor,fn=Math.trunc||function(t){var e=+t;return(e>0?cn:un)(e)},ln=function(t){var e=+t;return e!=e||0===e?0:fn(e)},pn=ln,hn=Math.max,mn=Math.min,dn=function(t,e){var r=pn(t);return r<0?hn(r+e,0):mn(r,e)},gn=ln,vn=Math.min,yn=function(t){return t>0?vn(gn(t),9007199254740991):0},bn=function(t){return yn(t.length)},wn=K,kn=dn,On=bn,Sn=function(t){return function(e,r,n){var o,i=wn(e),a=On(i),s=kn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},xn={includes:Sn(!0),indexOf:Sn(!1)},Mn=Ht,Pn=K,jn=xn.indexOf,En=xr,Cn=N([].push),_n=function(t,e){var r,n=Pn(t),o=0,i=[];for(r in n)!Mn(En,r)&&Mn(n,r)&&Cn(i,r);for(;e.length>o;)Mn(n,r=e[o++])&&(~jn(i,r)||Cn(i,r));return i},Ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tn=_n,In=Ln.concat("length","prototype");sn.f=Object.getOwnPropertyNames||function(t){return Tn(t,In)};var An={};An.f=Object.getOwnPropertySymbols;var Nn=it,zn=sn,Rn=An,Zn=Ve,Fn=N([].concat),Dn=Nn("Reflect","ownKeys")||function(t){var e=zn.f(Zn(t)),r=Rn.f;return r?Fn(e,r(t)):e},Gn=Ht,Vn=Dn,Bn=g,Un=Re,Wn=v,qn=Y,Xn=/#|\.prototype\./,Hn=function(t,e){var r=Jn[$n(t)];return r==Yn||r!=Kn&&(qn(e)?Wn(e):!!e)},$n=Hn.normalize=function(t){return String(t).replace(Xn,".").toLowerCase()},Jn=Hn.data={},Kn=Hn.NATIVE="N",Yn=Hn.POLYFILL="P",Qn=Hn,to=d,eo=g.f,ro=rr,no=an,oo=Zt,io=function(t,e,r){for(var n=Vn(e),o=Un.f,i=Bn.f,a=0;a<n.length;a++){var s=n[a];Gn(t,s)||r&&Gn(r,s)||o(t,s,i(e,s))}},ao=Qn,so=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?to:c?to[s]||oo(s,{}):(to[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=eo(r,n))&&a.value:r[n],!ao(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;io(i,o)}(t.sham||o&&o.sham)&&ro(i,"sham",!0),no(r,n,i,t)}},uo=Et,co=b,fo=N(N.bind),lo=F,po=Array.isArray||function(t){return"Array"==lo(t)},ho={};ho[fe("toStringTag")]="z";var mo="[object z]"===String(ho),go=mo,vo=Y,yo=F,bo=fe("toStringTag"),wo=Object,ko="Arguments"==yo(function(){return arguments}()),Oo=go?yo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=wo(t),bo))?r:ko?yo(e):"Object"==(n=yo(e))&&vo(e.callee)?"Arguments":n},So=N,xo=v,Mo=Y,Po=Oo,jo=gr,Eo=function(){},Co=[],_o=it("Reflect","construct"),Lo=/^\s*(?:class|function)\b/,To=So(Lo.exec),Io=!Lo.exec(Eo),Ao=function(t){if(!Mo(t))return!1;try{return _o(Eo,Co,t),!0}catch(t){return!1}},No=function(t){if(!Mo(t))return!1;switch(Po(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Io||!!To(Lo,jo(t))}catch(t){return!0}};No.sham=!0;var zo=!_o||xo((function(){var t;return Ao(Ao.call)||!Ao(Object)||!Ao((function(){t=!0}))||t}))?No:Ao,Ro=po,Zo=zo,Fo=et,Do=fe("species"),Go=Array,Vo=function(t){var e;return Ro(t)&&(e=t.constructor,(Zo(e)&&(e===Go||Ro(e.prototype))||Fo(e)&&null===(e=e[Do]))&&(e=void 0)),void 0===e?Go:e},Bo=function(t,e){return new(Vo(t))(0===e?0:e)},Uo=function(t,e){return uo(t),void 0===e?t:co?fo(t,e):function(){return t.apply(e,arguments)}},Wo=U,qo=Wt,Xo=bn,Ho=Bo,$o=N([].push),Jo=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,l){for(var p,h,m=qo(u),d=Wo(m),g=Uo(c,f),v=Xo(d),y=0,b=l||Ho,w=e?b(u,v):r||a?b(u,0):void 0;v>y;y++)if((s||y in d)&&(h=g(p=d[y],y,m),t))if(e)w[y]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:$o(w,p)}else switch(t){case 4:return!1;case 7:$o(w,p)}return i?-1:n||o?o:w}},Ko={forEach:Jo(0),map:Jo(1),filter:Jo(2),some:Jo(3),every:Jo(4),find:Jo(5),findIndex:Jo(6),filterReject:Jo(7)},Yo=v,Qo=ht,ti=fe("species"),ei=function(t){return Qo>=51||!Yo((function(){var e=[];return(e.constructor={})[ti]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ri=Ko.map;function ni(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}so({target:"Array",proto:!0,forced:!ei("map")},{map:function(t){return ri(this,t,arguments.length>1?arguments[1]:void 0)}});var oi=Et,ii=Wt,ai=U,si=bn,ui=TypeError,ci=function(t){return function(e,r,n,o){oi(r);var i=ii(e),a=ai(i),s=si(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw ui("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},fi={left:ci(!1),right:ci(!0)},li=v,pi=function(t,e){var r=[][t];return!!r&&li((function(){r.call(null,e||function(){return 1},1)}))},hi="process"==F(d.process),mi=fi.left,di=ht,gi=hi;so({target:"Array",proto:!0,forced:!pi("reduce")||!gi&&di>79&&di<83},{reduce:function(t){var e=arguments.length;return mi(this,t,e,e>1?arguments[1]:void 0)}});var vi=Oo,yi=mo?{}.toString:function(){return"[object "+vi(this)+"]"};mo||an(Object.prototype,"toString",yi,{unsafe:!0});var bi=Ko.filter;so({target:"Array",proto:!0,forced:!ei("filter")},{filter:function(t){return bi(this,t,arguments.length>1?arguments[1]:void 0)}});var wi=function(){function t(r){var n=r.markers,o=r.position;e(this,t),this.markers=n,o&&(o instanceof google.maps.LatLng?this._position=o:this._position=new google.maps.LatLng(o))}return n(t,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(t,e){return t.extend(e.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return t.getVisible()})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}}]),t}(),ki=function(t,e,r,n){var o=Oi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(t.getPosition())}))},Oi=function(t,e,r){var n=xi(t,e),o=n.northEast,i=n.southWest,a=Mi({northEast:o,southWest:i},r);return Pi(a,e)},Si=function(t,e){var r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},xi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Mi=function(t,e){var r=t.northEast,n=t.southWest;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},Pi=function(t,e){var r=t.northEast,n=t.southWest,o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o},ji=function(){function t(r){var n=r.maxZoom,o=void 0===n?16:n;e(this,t),this.maxZoom=o}return n(t,[{key:"noop",value:function(t){var e=t.markers;return Ci(e)}}]),t}(),Ei=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,a=void 0===o?60:o,s=ni(t,["viewportPadding"]);return(n=r.call(this,s)).viewportPadding=60,n.viewportPadding=a,n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:ki(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(ji),Ci=function(t){return t.map((function(t){return new wi({position:t.getPosition(),markers:[t]})}))},_i=Me("span").classList,Li=_i&&_i.constructor&&_i.constructor.prototype,Ti=Li===Object.prototype?void 0:Li,Ii=Ko.forEach,Ai=pi("forEach")?[].forEach:function(t){return Ii(this,t,arguments.length>1?arguments[1]:void 0)},Ni=d,zi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ri=Ti,Zi=Ai,Fi=rr,Di=function(t){if(t&&t.forEach!==Zi)try{Fi(t,"forEach",Zi)}catch(e){t.forEach=Zi}};for(var Gi in zi)zi[Gi]&&Di(Ni[Gi]&&Ni[Gi].prototype);Di(Ri);var Vi=O;so({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Vi(URL.prototype.toString,this)}});var Bi=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},Ui=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,a=void 0===o?4e4:o,s=t.gridSize,u=void 0===s?40:s,c=ni(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=a,n.gridSize=u,n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection,o={zoom:r.getZoom()},i=!1;return this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(i=!Bi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:i}:{clusters:this.cluster({markers:ki(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}},{key:"cluster",value:function(t){var e=this,r=t.markers,n=t.map,o=t.mapCanvasProjection;return this.clusters=[],r.forEach((function(t){e.addToClosestCluster(t,n,o)})),this.clusters}},{key:"addToClosestCluster",value:function(t,e,r){for(var n=this.maxDistance,o=null,i=0;i<this.clusters.length;i++){var a=this.clusters[i],s=Si(a.bounds.getCenter().toJSON(),t.getPosition().toJSON());s<n&&(n=s,o=a)}if(o&&Oi(o.bounds,r,this.gridSize).contains(t.getPosition()))o.push(t);else{var u=new wi({markers:[t]});this.clusters.push(u)}}}]),i}(Ei),Wi=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=ni(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(ji),qi=_n,Xi=Ln,Hi=Object.keys||function(t){return qi(t,Xi)},$i=y,Ji=N,Ki=O,Yi=v,Qi=Hi,ta=An,ea=S,ra=Wt,na=U,oa=Object.assign,ia=Object.defineProperty,aa=Ji([].concat),sa=!oa||Yi((function(){if($i&&1!==oa({b:1},oa(ia({},"a",{enumerable:!0,get:function(){ia(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=oa({},t)[r]||Qi(oa({},e)).join("")!=n}))?function(t,e){for(var r=ra(t),n=arguments.length,o=1,i=ta.f,a=ea.f;n>o;)for(var s,u=na(arguments[o++]),c=i?aa(Qi(u),i(u)):Qi(u),f=c.length,l=0;f>l;)s=c[l++],$i&&!Ki(a,u,s)||(r[s]=u[s]);return r}:oa,ua=sa;so({target:"Object",stat:!0,arity:2,forced:Object.assign!==ua},{assign:ua});var ca={exports:{}};!function(t,e){t.exports=function(){function t(r,n,o,i,a,s){if(!(a-i<=o)){var u=i+a>>1;e(r,n,u,i,a,s%2),t(r,n,o,i,u-1,s+1),t(r,n,o,u+1,a,s+1)}}function e(t,n,o,i,a,s){for(;a>i;){if(a-i>600){var u=a-i+1,c=o-i+1,f=Math.log(u),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(u-l)/u)*(c-u/2<0?-1:1);e(t,n,o,Math.max(i,Math.floor(o-c*l/u+p)),Math.min(a,Math.floor(o+(u-c)*l/u+p)),s)}var h=n[2*o+s],m=i,d=a;for(r(t,n,i,o),n[2*a+s]>h&&r(t,n,i,a);m<d;){for(r(t,n,m,d),m++,d--;n[2*m+s]<h;)m++;for(;n[2*d+s]>h;)d--}n[2*i+s]===h?r(t,n,i,d):r(t,n,++d,a),d<=o&&(i=d+1),o<=d&&(a=d-1)}}function r(t,e,r,o){n(t,r,o),n(e,2*r,2*o),n(e,2*r+1,2*o+1)}function n(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function o(t,e,r,n,o,i,a){for(var s,u,c=[0,t.length-1,0],f=[];c.length;){var l=c.pop(),p=c.pop(),h=c.pop();if(p-h<=a)for(var m=h;m<=p;m++)s=e[2*m],u=e[2*m+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[m]);else{var d=Math.floor((h+p)/2);s=e[2*d],u=e[2*d+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[d]);var g=(l+1)%2;(0===l?r<=s:n<=u)&&(c.push(h),c.push(d-1),c.push(g)),(0===l?o>=s:i>=u)&&(c.push(d+1),c.push(p),c.push(g))}}return f}function i(t,e,r,n,o,i){for(var s=[0,t.length-1,0],u=[],c=o*o;s.length;){var f=s.pop(),l=s.pop(),p=s.pop();if(l-p<=i)for(var h=p;h<=l;h++)a(e[2*h],e[2*h+1],r,n)<=c&&u.push(t[h]);else{var m=Math.floor((p+l)/2),d=e[2*m],g=e[2*m+1];a(d,g,r,n)<=c&&u.push(t[m]);var v=(f+1)%2;(0===f?r-o<=d:n-o<=g)&&(s.push(p),s.push(m-1),s.push(v)),(0===f?r+o>=d:n+o>=g)&&(s.push(m+1),s.push(l),s.push(v))}}return u}function a(t,e,r,n){var o=t-r,i=e-n;return o*o+i*i}var s=function(t){return t[0]},u=function(t){return t[1]},c=function(e,r,n,o,i){void 0===r&&(r=s),void 0===n&&(n=u),void 0===o&&(o=64),void 0===i&&(i=Float64Array),this.nodeSize=o,this.points=e;for(var a=e.length<65536?Uint16Array:Uint32Array,c=this.ids=new a(e.length),f=this.coords=new i(2*e.length),l=0;l<e.length;l++)c[l]=l,f[2*l]=r(e[l]),f[2*l+1]=n(e[l]);t(c,f,o,0,c.length-1,0)};return c.prototype.range=function(t,e,r,n){return o(this.ids,this.coords,t,e,r,n,this.nodeSize)},c.prototype.within=function(t,e,r){return i(this.ids,this.coords,t,e,r,this.nodeSize)},c}()}(ca);var fa=ca.exports;const la={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},pa=Math.fround||(ha=new Float32Array(1),t=>(ha[0]=+t,ha[0]));var ha;class ma{constructor(t){this.options=Oa(Object.create(la),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e<t.length;e++)t[e].geometry&&a.push(ga(t[e],e));this.trees[n+1]=new fa(a,Sa,xa,o,Float32Array),e&&console.timeEnd(i);for(let t=n;t>=r;t--){const r=+Date.now();a=this._cluster(a,t),this.trees[t]=new fa(a,Sa,xa,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,a.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),a=this.getClusters([-180,n,o,i],e);return t.concat(a)}const a=this.trees[this._limitZoom(e)],s=a.range(ba(r),wa(i),ba(o),wa(n)),u=[];for(const t of s){const e=a.points[t];u.push(e.numPoints?va(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=o.within(i.x,i.y,a),u=[];for(const e of s){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?va(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:a}=this.options,s=a/i,u=(r-s)/o,c=(r+1+s)/o,f={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.points,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.points,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.points,-1,r,o,f),f.features.length?f:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):o<n?o++:t.push(e),t.length===r)break}return o}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=e[a],s=t.numPoints;let u,c,f;if(s)u=ya(t),c=t.x,f=t.y;else{const e=this.points[t.index];u=e.properties,c=ba(e.geometry.coordinates[0]),f=wa(e.geometry.coordinates[1])}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let p;s?p=t.id:this.options.generateId?p=t.index:this.points[t.index].id&&(p=this.points[t.index].id),void 0!==p&&(l.id=p),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const r=[],{radius:n,extent:o,reduce:i,minPoints:a}=this.options,s=n/(o*Math.pow(2,e));for(let n=0;n<t.length;n++){const o=t[n];if(o.zoom<=e)continue;o.zoom=e;const u=this.trees[e+1],c=u.within(o.x,o.y,s),f=o.numPoints||1;let l=f;for(const t of c){const r=u.points[t];r.zoom>e&&(l+=r.numPoints||1)}if(l>f&&l>=a){let t=o.x*f,a=o.y*f,s=i&&f>1?this._map(o,!0):null;const p=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,a+=n.y*c,n.parentId=p,i&&(s||(s=this._map(o,!0)),i(s,this._map(n)))}o.parentId=p,r.push(da(t/l,a/l,p,l,s))}else if(r.push(o),l>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Oa({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Oa({},n):n}}function da(t,e,r,n,o){return{x:pa(t),y:pa(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function ga(t,e){const[r,n]=t.geometry.coordinates;return{x:pa(ba(r)),y:pa(wa(n)),zoom:1/0,index:e,parentId:-1}}function va(t){return{type:"Feature",id:t.id,properties:ya(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),ka(t.y)]}};var e}function ya(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Oa(Oa({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function ba(t){return t/360+.5}function wa(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function ka(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Oa(t,e){for(const r in e)t[r]=e[r];return t}function Sa(t){return t.x}function xa(t){return t.y}var Ma=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,a=t.radius,s=void 0===a?60:a,u=ni(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new ma(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1;if(!Bi(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var r=this.markers.map((function(t){return{type:"Feature",geometry:{type:"Point",coordinates:[t.getPosition().lng(),t.getPosition().lat()]},properties:{marker:t}}}));this.superCluster.load(r)}var n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!Bi(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}},{key:"transformCluster",value:function(t){var e=c(t.geometry.coordinates,2),r=e[0],n=e[1],o=t.properties;if(o.cluster)return new wi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:new google.maps.LatLng({lat:n,lng:r})});var i=o.marker;return new wi({markers:[i],position:i.getPosition()})}}]),i}(ji),Pa={},ja=y,Ea=Ze,Ca=Re,_a=Ve,La=K,Ta=Hi;Pa.f=ja&&!Ea?Object.defineProperties:function(t,e){_a(t);for(var r,n=La(e),o=Ta(e),i=o.length,a=0;i>a;)Ca.f(t,r=o[a++],n[r]);return t};var Ia,Aa=it("document","documentElement"),Na=Ve,za=Pa,Ra=Ln,Za=xr,Fa=Aa,Da=Me,Ga=Sr("IE_PROTO"),Va=function(){},Ba=function(t){return"<script>"+t+"</"+"script>"},Ua=function(t){t.write(Ba("")),t.close();var e=t.parentWindow.Object;return t=null,e},Wa=function(){try{Ia=new ActiveXObject("htmlfile")}catch(t){}var t,e;Wa="undefined"!=typeof document?document.domain&&Ia?Ua(Ia):((e=Da("iframe")).style.display="none",Fa.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ba("document.F=Object")),t.close(),t.F):Ua(Ia);for(var r=Ra.length;r--;)delete Wa.prototype[Ra[r]];return Wa()};Za[Ga]=!0;var qa=fe,Xa=Object.create||function(t,e){var r;return null!==t?(Va.prototype=Na(t),r=new Va,Va.prototype=null,r[Ga]=t):r=Wa(),void 0===e?r:za.f(r,e)},Ha=Re.f,$a=qa("unscopables"),Ja=Array.prototype;null==Ja[$a]&&Ha(Ja,$a,{configurable:!0,value:Xa(null)});var Ka=xn.includes,Ya=function(t){Ja[$a][t]=!0};so({target:"Array",proto:!0,forced:v((function(){return!Array(1).includes()}))},{includes:function(t){return Ka(this,t,arguments.length>1?arguments[1]:void 0)}}),Ya("includes");var Qa=et,ts=F,es=fe("match"),rs=function(t){var e;return Qa(t)&&(void 0!==(e=t[es])?!!e:"RegExp"==ts(t))},ns=TypeError,os=Oo,is=String,as=function(t){if("Symbol"===os(t))throw TypeError("Cannot convert a Symbol value to a string");return is(t)},ss=fe("match"),us=so,cs=function(t){if(rs(t))throw ns("The method doesn't accept regular expressions");return t},fs=H,ls=as,ps=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[ss]=!1,"/./"[t](e)}catch(t){}}return!1},hs=N("".indexOf);us({target:"String",proto:!0,forced:!ps("includes")},{includes:function(t){return!!~hs(ls(fs(this)),ls(cs(t)),arguments.length>1?arguments[1]:void 0)}});var ms=so,ds=xn.indexOf,gs=pi,vs=N([].indexOf),ys=!!vs&&1/vs([1],1,-0)<0,bs=gs("indexOf");ms({target:"Array",proto:!0,forced:ys||!bs},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return ys?vs(this,t,e)||0:ds(this,t,e)}});var ws=y,ks=po,Os=TypeError,Ss=Object.getOwnPropertyDescriptor,xs=ws&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ms=TypeError,Ps=ke,js=Re,Es=C,Cs=xt,_s=TypeError,Ls=so,Ts=Wt,Is=dn,As=ln,Ns=bn,zs=xs?function(t,e){if(ks(t)&&!Ss(t,"length").writable)throw Os("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Rs=function(t){if(t>9007199254740991)throw Ms("Maximum allowed index exceeded");return t},Zs=Bo,Fs=function(t,e,r){var n=Ps(e);n in t?js.f(t,n,Es(0,r)):t[n]=r},Ds=function(t,e){if(!delete t[e])throw _s("Cannot delete property "+Cs(e)+" of "+Cs(t))},Gs=ei("splice"),Vs=Math.max,Bs=Math.min;Ls({target:"Array",proto:!0,forced:!Gs},{splice:function(t,e){var r,n,o,i,a,s,u=Ts(this),c=Ns(u),f=Is(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=Bs(Vs(As(e),0),c-f)),Rs(c+r-n),o=Zs(u,n),i=0;i<n;i++)(a=f+i)in u&&Fs(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Ds(u,s);for(i=c;i>c-n+r;i--)Ds(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Ds(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return zs(u,c-n+r),o}});var Us=Y,Ws=String,qs=TypeError,Xs=N,Hs=Ve,$s=function(t){if("object"==typeof t||Us(t))return t;throw qs("Can't set "+Ws(t)+" as a prototype")},Js=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Xs(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Hs(r),$s(n),e?t(r,n):r.__proto__=n,r}}():void 0),Ks=Y,Ys=et,Qs=Js,tu=N(1..valueOf),eu=H,ru=as,nu=N("".replace),ou="[\t\n\v\f\r \u2028\u2029\ufeff]",iu=RegExp("^"+ou+ou+"*"),au=RegExp(ou+ou+"*$"),su=function(t){return function(e){var r=ru(eu(e));return 1&t&&(r=nu(r,iu,"")),2&t&&(r=nu(r,au,"")),r}},uu={start:su(1),end:su(2),trim:su(3)},cu=y,fu=d,lu=N,pu=Qn,hu=an,mu=Ht,du=function(t,e,r){var n,o;return Qs&&Ks(n=e.constructor)&&n!==r&&Ys(o=n.prototype)&&o!==r.prototype&&Qs(t,o),t},gu=at,vu=Ot,yu=ye,bu=v,wu=sn.f,ku=g.f,Ou=Re.f,Su=tu,xu=uu.trim,Mu="Number",Pu=fu.Number,ju=Pu.prototype,Eu=fu.TypeError,Cu=lu("".slice),_u=lu("".charCodeAt),Lu=function(t){var e=yu(t,"number");return"bigint"==typeof e?e:Tu(e)},Tu=function(t){var e,r,n,o,i,a,s,u,c=yu(t,"number");if(vu(c))throw Eu("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=xu(c),43===(e=_u(c,0))||45===e){if(88===(r=_u(c,2))||120===r)return NaN}else if(48===e){switch(_u(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Cu(c,2)).length,s=0;s<a;s++)if((u=_u(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c};if(pu(Mu,!Pu(" 0o1")||!Pu("0b1")||Pu("+0x1"))){for(var Iu,Au=function(t){var e=arguments.length<1?0:Pu(Lu(t)),r=this;return gu(ju,r)&&bu((function(){Su(r)}))?du(Object(e),r,Au):e},Nu=cu?wu(Pu):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),zu=0;Nu.length>zu;zu++)mu(Pu,Iu=Nu[zu])&&!mu(Au,Iu)&&Ou(Au,Iu,ku(Pu,Iu));Au.prototype=ju,ju.constructor=Au,hu(fu,Mu,Au,{constructor:!0})}var Ru=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,f(o)),max:Math.max.apply(Math,f(o))}}})),Zu=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e){var r=t.count,n=t.position,o=r>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",i=window.btoa('\n <svg fill="'.concat(o,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>'));return new google.maps.Marker({position:n,icon:{url:"data:image/svg+xml;base64,".concat(i),scaledSize:new google.maps.Size(45,45)},label:{text:String(r),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:"Cluster of ".concat(r," markers"),zIndex:Number(google.maps.Marker.MAX_ZINDEX)+r})}}]),t}();var Fu,Du=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(Fu=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Fu.CLUSTERING_END="clusteringend",Fu.CLUSTER_CLICK="click";var Gu=function(t,e,r){r.fitBounds(e.bounds)},Vu=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithm,c=void 0===u?new Ma({}):u,l=t.renderer,p=void 0===l?new Zu:l,h=t.onClusterClick,m=void 0===h?Gu:h;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=c,r.renderer=p,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(t.setMap(null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;(o||null==o)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return t.setMap(null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new Ru(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),o.marker.setMap(n)}))}}]),a}(Du);t.AbstractAlgorithm=ji,t.AbstractViewportAlgorithm=Ei,t.Cluster=wi,t.ClusterStats=Ru,t.DefaultRenderer=Zu,t.GridAlgorithm=Ui,t.MarkerClusterer=Vu,t.NoopAlgorithm=Wi,t.SuperClusterAlgorithm=Ma,t.defaultOnClusterClickHandler=Gu,t.distanceBetweenPoints=Si,t.extendBoundsToPaddedViewport=Oi,t.extendPixelBounds=Mi,t.filterMarkersToPaddedViewport=ki,t.noop=Ci,t.pixelBoundsToLatLngBounds=Pi,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).markerClusterer={})}(this,(function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m=function(t){return t&&t.Math==Math&&t},d=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof h&&h)||function(){return this}()||Function("return this")(),g={},v=function(t){try{return!!t()}catch(t){return!0}},y=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!v((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),w=b,k=Function.prototype.call,S=w?k.bind(k):function(){return k.apply(k,arguments)},O={},x={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,P=M&&!x.call({1:2},1);O.f=P?function(t){var e=M(this,t);return!!e&&e.enumerable}:x;var j,E,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_=b,L=Function.prototype,T=L.call,I=_&&L.bind.bind(T,T),A=function(t){return _?I(t):function(){return T.apply(t,arguments)}},N=A,z=N({}.toString),D=N("".slice),R=function(t){return D(z(t),8,-1)},F=R,Z=A,G=function(t){if("Function"===F(t))return Z(t)},V=v,B=R,U=Object,W=G("".split),H=V((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"==B(t)?W(t,""):U(t)}:U,q=function(t){return null==t},X=q,$=TypeError,J=function(t){if(X(t))throw $("Can't call method on "+t);return t},K=H,Y=J,Q=function(t){return K(Y(t))},tt="object"==typeof document&&document.all,et={all:tt,IS_HTMLDDA:void 0===tt&&void 0!==tt},rt=et.all,nt=et.IS_HTMLDDA?function(t){return"function"==typeof t||t===rt}:function(t){return"function"==typeof t},ot=nt,it=et.all,at=et.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:ot(t)||t===it}:function(t){return"object"==typeof t?null!==t:ot(t)},st=d,ut=nt,ct=function(t){return ut(t)?t:void 0},ft=function(t,e){return arguments.length<2?ct(st[t]):st[t]&&st[t][e]},lt=G({}.isPrototypeOf),pt=d,ht=ft("navigator","userAgent")||"",mt=pt.process,dt=pt.Deno,gt=mt&&mt.versions||dt&&dt.version,vt=gt&>.v8;vt&&(E=(j=vt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!E&&ht&&(!(j=ht.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ht.match(/Chrome\/(\d+)/))&&(E=+j[1]);var yt=E,bt=yt,wt=v,kt=!!Object.getOwnPropertySymbols&&!wt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&bt&&bt<41})),St=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ft,xt=nt,Mt=lt,Pt=Object,jt=St?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return xt(e)&&Mt(e.prototype,Pt(t))},Et=String,Ct=function(t){try{return Et(t)}catch(t){return"Object"}},_t=nt,Lt=Ct,Tt=TypeError,It=function(t){if(_t(t))return t;throw Tt(Lt(t)+" is not a function")},At=It,Nt=q,zt=S,Dt=nt,Rt=at,Ft=TypeError,Zt={exports:{}},Gt=d,Vt=Object.defineProperty,Bt=function(t,e){try{Vt(Gt,t,{value:e,configurable:!0,writable:!0})}catch(r){Gt[t]=e}return e},Ut=Bt,Wt="__core-js_shared__",Ht=d[Wt]||Ut(Wt,{}),qt=Ht;(Zt.exports=function(t,e){return qt[t]||(qt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Xt=J,$t=Object,Jt=function(t){return $t(Xt(t))},Kt=Jt,Yt=G({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return Yt(Kt(t),e)},te=G,ee=0,re=Math.random(),ne=te(1..toString),oe=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ne(++ee+re,36)},ie=d,ae=Zt.exports,se=Qt,ue=oe,ce=kt,fe=St,le=ae("wks"),pe=ie.Symbol,he=pe&&pe.for,me=fe?pe:pe&&pe.withoutSetter||ue,de=function(t){if(!se(le,t)||!ce&&"string"!=typeof le[t]){var e="Symbol."+t;ce&&se(pe,t)?le[t]=pe[t]:le[t]=fe&&he?he(e):me(e)}return le[t]},ge=S,ve=at,ye=jt,be=function(t,e){var r=t[e];return Nt(r)?void 0:At(r)},we=function(t,e){var r,n;if("string"===e&&Dt(r=t.toString)&&!Rt(n=zt(r,t)))return n;if(Dt(r=t.valueOf)&&!Rt(n=zt(r,t)))return n;if("string"!==e&&Dt(r=t.toString)&&!Rt(n=zt(r,t)))return n;throw Ft("Can't convert object to primitive value")},ke=TypeError,Se=de("toPrimitive"),Oe=function(t,e){if(!ve(t)||ye(t))return t;var r,n=be(t,Se);if(n){if(void 0===e&&(e="default"),r=ge(n,t,e),!ve(r)||ye(r))return r;throw ke("Can't convert object to primitive value")}return void 0===e&&(e="number"),we(t,e)},xe=Oe,Me=jt,Pe=function(t){var e=xe(t,"string");return Me(e)?e:e+""},je=at,Ee=d.document,Ce=je(Ee)&&je(Ee.createElement),_e=function(t){return Ce?Ee.createElement(t):{}},Le=_e,Te=!y&&!v((function(){return 7!=Object.defineProperty(Le("div"),"a",{get:function(){return 7}}).a})),Ie=y,Ae=S,Ne=O,ze=C,De=Q,Re=Pe,Fe=Qt,Ze=Te,Ge=Object.getOwnPropertyDescriptor;g.f=Ie?Ge:function(t,e){if(t=De(t),e=Re(e),Ze)try{return Ge(t,e)}catch(t){}if(Fe(t,e))return ze(!Ae(Ne.f,t,e),t[e])};var Ve={},Be=y&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ue=at,We=String,He=TypeError,qe=function(t){if(Ue(t))return t;throw He(We(t)+" is not an object")},Xe=y,$e=Te,Je=Be,Ke=qe,Ye=Pe,Qe=TypeError,tr=Object.defineProperty,er=Object.getOwnPropertyDescriptor,rr="enumerable",nr="configurable",or="writable";Ve.f=Xe?Je?function(t,e,r){if(Ke(t),e=Ye(e),Ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&or in r&&!r.writable){var n=er(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:nr in r?r.configurable:n.configurable,enumerable:rr in r?r.enumerable:n.enumerable,writable:!1})}return tr(t,e,r)}:tr:function(t,e,r){if(Ke(t),e=Ye(e),Ke(r),$e)try{return tr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Qe("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var ir=Ve,ar=C,sr=y?function(t,e,r){return ir.f(t,e,ar(1,r))}:function(t,e,r){return t[e]=r,t},ur={exports:{}},cr=y,fr=Qt,lr=Function.prototype,pr=cr&&Object.getOwnPropertyDescriptor,hr=fr(lr,"name"),mr={EXISTS:hr,PROPER:hr&&"something"===function(){}.name,CONFIGURABLE:hr&&(!cr||cr&&pr(lr,"name").configurable)},dr=nt,gr=Ht,vr=G(Function.toString);dr(gr.inspectSource)||(gr.inspectSource=function(t){return vr(t)});var yr,br,wr,kr=gr.inspectSource,Sr=nt,Or=d.WeakMap,xr=Sr(Or)&&/native code/.test(String(Or)),Mr=Zt.exports,Pr=oe,jr=Mr("keys"),Er=function(t){return jr[t]||(jr[t]=Pr(t))},Cr={},_r=xr,Lr=d,Tr=at,Ir=sr,Ar=Qt,Nr=Ht,zr=Er,Dr=Cr,Rr="Object already initialized",Fr=Lr.TypeError,Zr=Lr.WeakMap;if(_r||Nr.state){var Gr=Nr.state||(Nr.state=new Zr);Gr.get=Gr.get,Gr.has=Gr.has,Gr.set=Gr.set,yr=function(t,e){if(Gr.has(t))throw Fr(Rr);return e.facade=t,Gr.set(t,e),e},br=function(t){return Gr.get(t)||{}},wr=function(t){return Gr.has(t)}}else{var Vr=zr("state");Dr[Vr]=!0,yr=function(t,e){if(Ar(t,Vr))throw Fr(Rr);return e.facade=t,Ir(t,Vr,e),e},br=function(t){return Ar(t,Vr)?t[Vr]:{}},wr=function(t){return Ar(t,Vr)}}var Br={set:yr,get:br,has:wr,enforce:function(t){return wr(t)?br(t):yr(t,{})},getterFor:function(t){return function(e){var r;if(!Tr(e)||(r=br(e)).type!==t)throw Fr("Incompatible receiver, "+t+" required");return r}}},Ur=v,Wr=nt,Hr=Qt,qr=y,Xr=mr.CONFIGURABLE,$r=kr,Jr=Br.enforce,Kr=Br.get,Yr=Object.defineProperty,Qr=qr&&!Ur((function(){return 8!==Yr((function(){}),"length",{value:8}).length})),tn=String(String).split("String"),en=ur.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Hr(t,"name")||Xr&&t.name!==e)&&(qr?Yr(t,"name",{value:e,configurable:!0}):t.name=e),Qr&&r&&Hr(r,"arity")&&t.length!==r.arity&&Yr(t,"length",{value:r.arity});try{r&&Hr(r,"constructor")&&r.constructor?qr&&Yr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Jr(t);return Hr(n,"source")||(n.source=tn.join("string"==typeof e?e:"")),t};Function.prototype.toString=en((function(){return Wr(this)&&Kr(this).source||$r(this)}),"toString");var rn=nt,nn=Ve,on=ur.exports,an=Bt,sn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(rn(r)&&on(r,i,n),n.global)o?t[e]=r:an(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:nn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},un={},cn=Math.ceil,fn=Math.floor,ln=Math.trunc||function(t){var e=+t;return(e>0?fn:cn)(e)},pn=function(t){var e=+t;return e!=e||0===e?0:ln(e)},hn=pn,mn=Math.max,dn=Math.min,gn=function(t,e){var r=hn(t);return r<0?mn(r+e,0):dn(r,e)},vn=pn,yn=Math.min,bn=function(t){return t>0?yn(vn(t),9007199254740991):0},wn=function(t){return bn(t.length)},kn=Q,Sn=gn,On=wn,xn=function(t){return function(e,r,n){var o,i=kn(e),a=On(i),s=Sn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},Mn={includes:xn(!0),indexOf:xn(!1)},Pn=Qt,jn=Q,En=Mn.indexOf,Cn=Cr,_n=G([].push),Ln=function(t,e){var r,n=jn(t),o=0,i=[];for(r in n)!Pn(Cn,r)&&Pn(n,r)&&_n(i,r);for(;e.length>o;)Pn(n,r=e[o++])&&(~En(i,r)||_n(i,r));return i},Tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],In=Ln,An=Tn.concat("length","prototype");un.f=Object.getOwnPropertyNames||function(t){return In(t,An)};var Nn={};Nn.f=Object.getOwnPropertySymbols;var zn=ft,Dn=un,Rn=Nn,Fn=qe,Zn=G([].concat),Gn=zn("Reflect","ownKeys")||function(t){var e=Dn.f(Fn(t)),r=Rn.f;return r?Zn(e,r(t)):e},Vn=Qt,Bn=Gn,Un=g,Wn=Ve,Hn=v,qn=nt,Xn=/#|\.prototype\./,$n=function(t,e){var r=Kn[Jn(t)];return r==Qn||r!=Yn&&(qn(e)?Hn(e):!!e)},Jn=$n.normalize=function(t){return String(t).replace(Xn,".").toLowerCase()},Kn=$n.data={},Yn=$n.NATIVE="N",Qn=$n.POLYFILL="P",to=$n,eo=d,ro=g.f,no=sr,oo=sn,io=Bt,ao=function(t,e,r){for(var n=Bn(e),o=Wn.f,i=Un.f,a=0;a<n.length;a++){var s=n[a];Vn(t,s)||r&&Vn(r,s)||o(t,s,i(e,s))}},so=to,uo=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?eo:c?eo[s]||io(s,{}):(eo[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ro(r,n))&&a.value:r[n],!so(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ao(i,o)}(t.sham||o&&o.sham)&&no(i,"sham",!0),oo(r,n,i,t)}},co=It,fo=b,lo=G(G.bind),po=R,ho=Array.isArray||function(t){return"Array"==po(t)},mo={};mo[de("toStringTag")]="z";var go="[object z]"===String(mo),vo=go,yo=nt,bo=R,wo=de("toStringTag"),ko=Object,So="Arguments"==bo(function(){return arguments}()),Oo=vo?bo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=ko(t),wo))?r:So?bo(e):"Object"==(n=bo(e))&&yo(e.callee)?"Arguments":n},xo=G,Mo=v,Po=nt,jo=Oo,Eo=kr,Co=function(){},_o=[],Lo=ft("Reflect","construct"),To=/^\s*(?:class|function)\b/,Io=xo(To.exec),Ao=!To.exec(Co),No=function(t){if(!Po(t))return!1;try{return Lo(Co,_o,t),!0}catch(t){return!1}},zo=function(t){if(!Po(t))return!1;switch(jo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ao||!!Io(To,Eo(t))}catch(t){return!0}};zo.sham=!0;var Do=!Lo||Mo((function(){var t;return No(No.call)||!No(Object)||!No((function(){t=!0}))||t}))?zo:No,Ro=ho,Fo=Do,Zo=at,Go=de("species"),Vo=Array,Bo=function(t){var e;return Ro(t)&&(e=t.constructor,(Fo(e)&&(e===Vo||Ro(e.prototype))||Zo(e)&&null===(e=e[Go]))&&(e=void 0)),void 0===e?Vo:e},Uo=function(t,e){return new(Bo(t))(0===e?0:e)},Wo=function(t,e){return co(t),void 0===e?t:fo?lo(t,e):function(){return t.apply(e,arguments)}},Ho=H,qo=Jt,Xo=wn,$o=Uo,Jo=G([].push),Ko=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,l){for(var p,h,m=qo(u),d=Ho(m),g=Wo(c,f),v=Xo(d),y=0,b=l||$o,w=e?b(u,v):r||a?b(u,0):void 0;v>y;y++)if((s||y in d)&&(h=g(p=d[y],y,m),t))if(e)w[y]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:Jo(w,p)}else switch(t){case 4:return!1;case 7:Jo(w,p)}return i?-1:n||o?o:w}},Yo={forEach:Ko(0),map:Ko(1),filter:Ko(2),some:Ko(3),every:Ko(4),find:Ko(5),findIndex:Ko(6),filterReject:Ko(7)},Qo=v,ti=yt,ei=de("species"),ri=function(t){return ti>=51||!Qo((function(){var e=[];return(e.constructor={})[ei]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ni=Yo.map;function oi(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}uo({target:"Array",proto:!0,forced:!ri("map")},{map:function(t){return ni(this,t,arguments.length>1?arguments[1]:void 0)}});var ii=It,ai=Jt,si=H,ui=wn,ci=TypeError,fi=function(t){return function(e,r,n,o){ii(r);var i=ai(e),a=si(i),s=ui(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw ci("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},li={left:fi(!1),right:fi(!0)},pi=v,hi=function(t,e){var r=[][t];return!!r&&pi((function(){r.call(null,e||function(){return 1},1)}))},mi="process"==R(d.process),di=li.left,gi=yt,vi=mi;uo({target:"Array",proto:!0,forced:!hi("reduce")||!vi&&gi>79&&gi<83},{reduce:function(t){var e=arguments.length;return di(this,t,e,e>1?arguments[1]:void 0)}});var yi=Oo,bi=go?{}.toString:function(){return"[object "+yi(this)+"]"};go||sn(Object.prototype,"toString",bi,{unsafe:!0});var wi=Yo.filter;uo({target:"Array",proto:!0,forced:!ri("filter")},{filter:function(t){return wi(this,t,arguments.length>1?arguments[1]:void 0)}});var ki=function(){function t(r){var n=r.markers,o=r.position;e(this,t),this.markers=n,o&&(o instanceof google.maps.LatLng?this._position=o:this._position=new google.maps.LatLng(o))}return n(t,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(t,e){return t.extend(e.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return t.getVisible()})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}}]),t}(),Si=function(t,e,r,n){var o=Oi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(t.getPosition())}))},Oi=function(t,e,r){var n=Mi(t,e),o=n.northEast,i=n.southWest,a=Pi({northEast:o,southWest:i},r);return ji(a,e)},xi=function(t,e){var r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},Mi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Pi=function(t,e){var r=t.northEast,n=t.southWest;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},ji=function(t,e){var r=t.northEast,n=t.southWest,o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o},Ei=function(){function t(r){var n=r.maxZoom,o=void 0===n?16:n;e(this,t),this.maxZoom=o}return n(t,[{key:"noop",value:function(t){var e=t.markers;return _i(e)}}]),t}(),Ci=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,a=void 0===o?60:o,s=oi(t,["viewportPadding"]);return(n=r.call(this,s)).viewportPadding=60,n.viewportPadding=a,n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:Si(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ei),_i=function(t){return t.map((function(t){return new ki({position:t.getPosition(),markers:[t]})}))},Li=_e("span").classList,Ti=Li&&Li.constructor&&Li.constructor.prototype,Ii=Ti===Object.prototype?void 0:Ti,Ai=Yo.forEach,Ni=hi("forEach")?[].forEach:function(t){return Ai(this,t,arguments.length>1?arguments[1]:void 0)},zi=d,Di={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ri=Ii,Fi=Ni,Zi=sr,Gi=function(t){if(t&&t.forEach!==Fi)try{Zi(t,"forEach",Fi)}catch(e){t.forEach=Fi}};for(var Vi in Di)Di[Vi]&&Gi(zi[Vi]&&zi[Vi].prototype);Gi(Ri);var Bi=S;uo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Bi(URL.prototype.toString,this)}});var Ui=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},Wi=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,a=void 0===o?4e4:o,s=t.gridSize,u=void 0===s?40:s,c=oi(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=a,n.gridSize=u,n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection,o={zoom:r.getZoom()},i=!1;return this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(i=!Ui(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:i}:{clusters:this.cluster({markers:Si(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}},{key:"cluster",value:function(t){var e=this,r=t.markers,n=t.map,o=t.mapCanvasProjection;return this.clusters=[],r.forEach((function(t){e.addToClosestCluster(t,n,o)})),this.clusters}},{key:"addToClosestCluster",value:function(t,e,r){for(var n=this.maxDistance,o=null,i=0;i<this.clusters.length;i++){var a=this.clusters[i],s=xi(a.bounds.getCenter().toJSON(),t.getPosition().toJSON());s<n&&(n=s,o=a)}if(o&&Oi(o.bounds,r,this.gridSize).contains(t.getPosition()))o.push(t);else{var u=new ki({markers:[t]});this.clusters.push(u)}}}]),i}(Ci),Hi=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=oi(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(Ei),qi=Ln,Xi=Tn,$i=Object.keys||function(t){return qi(t,Xi)},Ji=y,Ki=G,Yi=S,Qi=v,ta=$i,ea=Nn,ra=O,na=Jt,oa=H,ia=Object.assign,aa=Object.defineProperty,sa=Ki([].concat),ua=!ia||Qi((function(){if(Ji&&1!==ia({b:1},ia(aa({},"a",{enumerable:!0,get:function(){aa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=ia({},t)[r]||ta(ia({},e)).join("")!=n}))?function(t,e){for(var r=na(t),n=arguments.length,o=1,i=ea.f,a=ra.f;n>o;)for(var s,u=oa(arguments[o++]),c=i?sa(ta(u),i(u)):ta(u),f=c.length,l=0;f>l;)s=c[l++],Ji&&!Yi(a,u,s)||(r[s]=u[s]);return r}:ia,ca=ua;uo({target:"Object",stat:!0,arity:2,forced:Object.assign!==ca},{assign:ca});var fa={exports:{}};!function(t,e){t.exports=function(){function t(r,n,o,i,a,s){if(!(a-i<=o)){var u=i+a>>1;e(r,n,u,i,a,s%2),t(r,n,o,i,u-1,s+1),t(r,n,o,u+1,a,s+1)}}function e(t,n,o,i,a,s){for(;a>i;){if(a-i>600){var u=a-i+1,c=o-i+1,f=Math.log(u),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(u-l)/u)*(c-u/2<0?-1:1);e(t,n,o,Math.max(i,Math.floor(o-c*l/u+p)),Math.min(a,Math.floor(o+(u-c)*l/u+p)),s)}var h=n[2*o+s],m=i,d=a;for(r(t,n,i,o),n[2*a+s]>h&&r(t,n,i,a);m<d;){for(r(t,n,m,d),m++,d--;n[2*m+s]<h;)m++;for(;n[2*d+s]>h;)d--}n[2*i+s]===h?r(t,n,i,d):r(t,n,++d,a),d<=o&&(i=d+1),o<=d&&(a=d-1)}}function r(t,e,r,o){n(t,r,o),n(e,2*r,2*o),n(e,2*r+1,2*o+1)}function n(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function o(t,e,r,n,o,i,a){for(var s,u,c=[0,t.length-1,0],f=[];c.length;){var l=c.pop(),p=c.pop(),h=c.pop();if(p-h<=a)for(var m=h;m<=p;m++)s=e[2*m],u=e[2*m+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[m]);else{var d=Math.floor((h+p)/2);s=e[2*d],u=e[2*d+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[d]);var g=(l+1)%2;(0===l?r<=s:n<=u)&&(c.push(h),c.push(d-1),c.push(g)),(0===l?o>=s:i>=u)&&(c.push(d+1),c.push(p),c.push(g))}}return f}function i(t,e,r,n,o,i){for(var s=[0,t.length-1,0],u=[],c=o*o;s.length;){var f=s.pop(),l=s.pop(),p=s.pop();if(l-p<=i)for(var h=p;h<=l;h++)a(e[2*h],e[2*h+1],r,n)<=c&&u.push(t[h]);else{var m=Math.floor((p+l)/2),d=e[2*m],g=e[2*m+1];a(d,g,r,n)<=c&&u.push(t[m]);var v=(f+1)%2;(0===f?r-o<=d:n-o<=g)&&(s.push(p),s.push(m-1),s.push(v)),(0===f?r+o>=d:n+o>=g)&&(s.push(m+1),s.push(l),s.push(v))}}return u}function a(t,e,r,n){var o=t-r,i=e-n;return o*o+i*i}var s=function(t){return t[0]},u=function(t){return t[1]},c=function(e,r,n,o,i){void 0===r&&(r=s),void 0===n&&(n=u),void 0===o&&(o=64),void 0===i&&(i=Float64Array),this.nodeSize=o,this.points=e;for(var a=e.length<65536?Uint16Array:Uint32Array,c=this.ids=new a(e.length),f=this.coords=new i(2*e.length),l=0;l<e.length;l++)c[l]=l,f[2*l]=r(e[l]),f[2*l+1]=n(e[l]);t(c,f,o,0,c.length-1,0)};return c.prototype.range=function(t,e,r,n){return o(this.ids,this.coords,t,e,r,n,this.nodeSize)},c.prototype.within=function(t,e,r){return i(this.ids,this.coords,t,e,r,this.nodeSize)},c}()}(fa);var la=fa.exports;const pa={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ha=Math.fround||(ma=new Float32Array(1),t=>(ma[0]=+t,ma[0]));var ma;class da{constructor(t){this.options=Oa(Object.create(pa),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e<t.length;e++)t[e].geometry&&a.push(va(t[e],e));this.trees[n+1]=new la(a,xa,Ma,o,Float32Array),e&&console.timeEnd(i);for(let t=n;t>=r;t--){const r=+Date.now();a=this._cluster(a,t),this.trees[t]=new la(a,xa,Ma,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,a.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),a=this.getClusters([-180,n,o,i],e);return t.concat(a)}const a=this.trees[this._limitZoom(e)],s=a.range(wa(r),ka(i),wa(o),ka(n)),u=[];for(const t of s){const e=a.points[t];u.push(e.numPoints?ya(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=o.within(i.x,i.y,a),u=[];for(const e of s){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?ya(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:a}=this.options,s=a/i,u=(r-s)/o,c=(r+1+s)/o,f={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.points,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.points,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.points,-1,r,o,f),f.features.length?f:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):o<n?o++:t.push(e),t.length===r)break}return o}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=e[a],s=t.numPoints;let u,c,f;if(s)u=ba(t),c=t.x,f=t.y;else{const e=this.points[t.index];u=e.properties,c=wa(e.geometry.coordinates[0]),f=ka(e.geometry.coordinates[1])}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let p;s?p=t.id:this.options.generateId?p=t.index:this.points[t.index].id&&(p=this.points[t.index].id),void 0!==p&&(l.id=p),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const r=[],{radius:n,extent:o,reduce:i,minPoints:a}=this.options,s=n/(o*Math.pow(2,e));for(let n=0;n<t.length;n++){const o=t[n];if(o.zoom<=e)continue;o.zoom=e;const u=this.trees[e+1],c=u.within(o.x,o.y,s),f=o.numPoints||1;let l=f;for(const t of c){const r=u.points[t];r.zoom>e&&(l+=r.numPoints||1)}if(l>f&&l>=a){let t=o.x*f,a=o.y*f,s=i&&f>1?this._map(o,!0):null;const p=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,a+=n.y*c,n.parentId=p,i&&(s||(s=this._map(o,!0)),i(s,this._map(n)))}o.parentId=p,r.push(ga(t/l,a/l,p,l,s))}else if(r.push(o),l>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Oa({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Oa({},n):n}}function ga(t,e,r,n,o){return{x:ha(t),y:ha(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function va(t,e){const[r,n]=t.geometry.coordinates;return{x:ha(wa(r)),y:ha(ka(n)),zoom:1/0,index:e,parentId:-1}}function ya(t){return{type:"Feature",id:t.id,properties:ba(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),Sa(t.y)]}};var e}function ba(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Oa(Oa({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function wa(t){return t/360+.5}function ka(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Sa(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Oa(t,e){for(const r in e)t[r]=e[r];return t}function xa(t){return t.x}function Ma(t){return t.y}var Pa=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,a=t.radius,s=void 0===a?60:a,u=oi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new da(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1;if(!Ui(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var r=this.markers.map((function(t){return{type:"Feature",geometry:{type:"Point",coordinates:[t.getPosition().lng(),t.getPosition().lat()]},properties:{marker:t}}}));this.superCluster.load(r)}var n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!Ui(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}},{key:"transformCluster",value:function(t){var e=c(t.geometry.coordinates,2),r=e[0],n=e[1],o=t.properties;if(o.cluster)return new ki({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:new google.maps.LatLng({lat:n,lng:r})});var i=o.marker;return new ki({markers:[i],position:i.getPosition()})}}]),i}(Ei),ja={},Ea=y,Ca=Be,_a=Ve,La=qe,Ta=Q,Ia=$i;ja.f=Ea&&!Ca?Object.defineProperties:function(t,e){La(t);for(var r,n=Ta(e),o=Ia(e),i=o.length,a=0;i>a;)_a.f(t,r=o[a++],n[r]);return t};var Aa,Na=ft("document","documentElement"),za=qe,Da=ja,Ra=Tn,Fa=Cr,Za=Na,Ga=_e,Va=Er("IE_PROTO"),Ba=function(){},Ua=function(t){return"<script>"+t+"</"+"script>"},Wa=function(t){t.write(Ua("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ha=function(){try{Aa=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ha="undefined"!=typeof document?document.domain&&Aa?Wa(Aa):((e=Ga("iframe")).style.display="none",Za.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ua("document.F=Object")),t.close(),t.F):Wa(Aa);for(var r=Ra.length;r--;)delete Ha.prototype[Ra[r]];return Ha()};Fa[Va]=!0;var qa=de,Xa=Object.create||function(t,e){var r;return null!==t?(Ba.prototype=za(t),r=new Ba,Ba.prototype=null,r[Va]=t):r=Ha(),void 0===e?r:Da.f(r,e)},$a=Ve.f,Ja=qa("unscopables"),Ka=Array.prototype;null==Ka[Ja]&&$a(Ka,Ja,{configurable:!0,value:Xa(null)});var Ya=Mn.includes,Qa=function(t){Ka[Ja][t]=!0};uo({target:"Array",proto:!0,forced:v((function(){return!Array(1).includes()}))},{includes:function(t){return Ya(this,t,arguments.length>1?arguments[1]:void 0)}}),Qa("includes");var ts=at,es=R,rs=de("match"),ns=function(t){var e;return ts(t)&&(void 0!==(e=t[rs])?!!e:"RegExp"==es(t))},os=TypeError,is=Oo,as=String,ss=function(t){if("Symbol"===is(t))throw TypeError("Cannot convert a Symbol value to a string");return as(t)},us=de("match"),cs=uo,fs=function(t){if(ns(t))throw os("The method doesn't accept regular expressions");return t},ls=J,ps=ss,hs=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[us]=!1,"/./"[t](e)}catch(t){}}return!1},ms=G("".indexOf);cs({target:"String",proto:!0,forced:!hs("includes")},{includes:function(t){return!!~ms(ps(ls(this)),ps(fs(t)),arguments.length>1?arguments[1]:void 0)}});var ds=uo,gs=Mn.indexOf,vs=hi,ys=G([].indexOf),bs=!!ys&&1/ys([1],1,-0)<0,ws=vs("indexOf");ds({target:"Array",proto:!0,forced:bs||!ws},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return bs?ys(this,t,e)||0:gs(this,t,e)}});var ks=y,Ss=ho,Os=TypeError,xs=Object.getOwnPropertyDescriptor,Ms=ks&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ps=TypeError,js=Pe,Es=Ve,Cs=C,_s=Ct,Ls=TypeError,Ts=uo,Is=Jt,As=gn,Ns=pn,zs=wn,Ds=Ms?function(t,e){if(Ss(t)&&!xs(t,"length").writable)throw Os("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Rs=function(t){if(t>9007199254740991)throw Ps("Maximum allowed index exceeded");return t},Fs=Uo,Zs=function(t,e,r){var n=js(e);n in t?Es.f(t,n,Cs(0,r)):t[n]=r},Gs=function(t,e){if(!delete t[e])throw Ls("Cannot delete property "+_s(e)+" of "+_s(t))},Vs=ri("splice"),Bs=Math.max,Us=Math.min;Ts({target:"Array",proto:!0,forced:!Vs},{splice:function(t,e){var r,n,o,i,a,s,u=Is(this),c=zs(u),f=As(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=Us(Bs(Ns(e),0),c-f)),Rs(c+r-n),o=Fs(u,n),i=0;i<n;i++)(a=f+i)in u&&Zs(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Gs(u,s);for(i=c;i>c-n+r;i--)Gs(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Gs(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return Ds(u,c-n+r),o}});var Ws=nt,Hs=String,qs=TypeError,Xs=G,$s=qe,Js=function(t){if("object"==typeof t||Ws(t))return t;throw qs("Can't set "+Hs(t)+" as a prototype")},Ks=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Xs(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return $s(r),Js(n),e?t(r,n):r.__proto__=n,r}}():void 0),Ys=nt,Qs=at,tu=Ks,eu=G(1..valueOf),ru=J,nu=ss,ou=G("".replace),iu="[\t\n\v\f\r \u2028\u2029\ufeff]",au=RegExp("^"+iu+iu+"*"),su=RegExp(iu+iu+"*$"),uu=function(t){return function(e){var r=nu(ru(e));return 1&t&&(r=ou(r,au,"")),2&t&&(r=ou(r,su,"")),r}},cu={start:uu(1),end:uu(2),trim:uu(3)},fu=y,lu=d,pu=G,hu=to,mu=sn,du=Qt,gu=function(t,e,r){var n,o;return tu&&Ys(n=e.constructor)&&n!==r&&Qs(o=n.prototype)&&o!==r.prototype&&tu(t,o),t},vu=lt,yu=jt,bu=Oe,wu=v,ku=un.f,Su=g.f,Ou=Ve.f,xu=eu,Mu=cu.trim,Pu="Number",ju=lu.Number,Eu=ju.prototype,Cu=lu.TypeError,_u=pu("".slice),Lu=pu("".charCodeAt),Tu=function(t){var e=bu(t,"number");return"bigint"==typeof e?e:Iu(e)},Iu=function(t){var e,r,n,o,i,a,s,u,c=bu(t,"number");if(yu(c))throw Cu("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Mu(c),43===(e=Lu(c,0))||45===e){if(88===(r=Lu(c,2))||120===r)return NaN}else if(48===e){switch(Lu(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=_u(c,2)).length,s=0;s<a;s++)if((u=Lu(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c};if(hu(Pu,!ju(" 0o1")||!ju("0b1")||ju("+0x1"))){for(var Au,Nu=function(t){var e=arguments.length<1?0:ju(Tu(t)),r=this;return vu(Eu,r)&&wu((function(){xu(r)}))?gu(Object(e),r,Nu):e},zu=fu?ku(ju):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Du=0;zu.length>Du;Du++)du(ju,Au=zu[Du])&&!du(Nu,Au)&&Ou(Nu,Au,Su(ju,Au));Nu.prototype=Eu,Eu.constructor=Nu,mu(lu,Pu,Nu,{constructor:!0})}var Ru=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,f(o)),max:Math.max.apply(Math,f(o))}}})),Fu=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e){var r=t.count,n=t.position,o=r>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",i=window.btoa('\n <svg fill="'.concat(o,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>'));return new google.maps.Marker({position:n,icon:{url:"data:image/svg+xml;base64,".concat(i),scaledSize:new google.maps.Size(45,45)},label:{text:String(r),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:"Cluster of ".concat(r," markers"),zIndex:Number(google.maps.Marker.MAX_ZINDEX)+r})}}]),t}();var Zu,Gu=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(Zu=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",Zu.CLUSTERING_END="clusteringend",Zu.CLUSTER_CLICK="click";var Vu=function(t,e,r){r.fitBounds(e.bounds)},Bu=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithm,c=void 0===u?new Pa({}):u,l=t.renderer,p=void 0===l?new Fu:l,h=t.onClusterClick,m=void 0===h?Vu:h;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=c,r.renderer=p,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(t.setMap(null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;(o||null==o)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return t.setMap(null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new Ru(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),o.marker.setMap(n)}))}}]),a}(Gu);t.AbstractAlgorithm=Ei,t.AbstractViewportAlgorithm=Ci,t.Cluster=ki,t.ClusterStats=Ru,t.DefaultRenderer=Fu,t.GridAlgorithm=Wi,t.MarkerClusterer=Bu,t.NoopAlgorithm=Hi,t.SuperClusterAlgorithm=Pa,t.defaultOnClusterClickHandler=Vu,t.distanceBetweenPoints=xi,t.extendBoundsToPaddedViewport=Oi,t.extendPixelBounds=Pi,t.filterMarkersToPaddedViewport=Si,t.noop=_i,t.pixelBoundsToLatLngBounds=ji,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@googlemaps/markerclusterer", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "Creates and manages per-zoom-level clusters for large amounts of markers.", | ||
@@ -46,8 +46,8 @@ "keywords": [ | ||
"@googlemaps/js-api-loader": "^1.12.3", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-html": "^0.2.3", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@rollup/plugin-typescript": "^8.3.0", | ||
"@rollup/plugin-babel": "^6.0.0", | ||
"@rollup/plugin-commonjs": "^23.0.0", | ||
"@rollup/plugin-html": "^1.0.0", | ||
"@rollup/plugin-json": "^5.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.0", | ||
"@rollup/plugin-typescript": "^9.0.0", | ||
"@types/d3-interpolate": "^3.0.1", | ||
@@ -60,3 +60,3 @@ "@types/google.maps": "^3.44.2", | ||
"@typescript-eslint/parser": ">=4.1.0", | ||
"chromedriver": "^105.0.0", | ||
"chromedriver": "^106.0.1", | ||
"core-js": "^3.6.5", | ||
@@ -63,0 +63,0 @@ "d3-interpolate": "^3.0.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
768750
4975