@googlemaps/markerclustererplus
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -1331,9 +1331,3 @@ /*! ***************************************************************************** | ||
// See Comments 9 & 11 on Issue 3651 relating to this workaround for a Google Maps bug: | ||
var mapBounds; | ||
if (this.getMap().getZoom() > 3) { | ||
mapBounds = new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(), this.getMap().getBounds().getNorthEast()); | ||
} | ||
else { | ||
mapBounds = new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472, -178.48388434375), new google.maps.LatLng(-85.08136444384544, 178.00048865625)); | ||
} | ||
var mapBounds = new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(), this.getMap().getBounds().getNorthEast()); | ||
var bounds = this.getExtendedBounds(mapBounds); | ||
@@ -1340,0 +1334,0 @@ var iLast = Math.min(iFirst + this.batchSize_, this.markers_.length); |
@@ -1,2 +0,2 @@ | ||
var MarkerClusterer=function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},e=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i,o,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){return"function"==typeof t},l=/#|\.prototype\./,c=function(e,r){var n=p[h(e)];return n==g||n!=f&&(u(r)?t(r):!!r)},h=c.normalize=function(t){return String(t).replace(l,".").toLowerCase()},p=c.data={},f=c.NATIVE="N",g=c.POLYFILL="P",d=c,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return Object(v(t))},_={}.hasOwnProperty,y=Object.hasOwn||function(t,e){return _.call(m(t),e)},b=function(t){return"object"==typeof t?null!==t:u(t)},x=a.document,S=b(x)&&b(x.createElement),M=function(t){return S?x.createElement(t):{}},I=!e&&!t((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),w=function(t){if(b(t))return t;throw TypeError(String(t)+" is not an object")},k=function(t){return u(t)?t:void 0},C=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},E=C("navigator","userAgent")||"",O=a.process,A=a.Deno,T=O&&O.versions||A&&A.version,P=T&&T.v8;P?o=(i=P.split("."))[0]<4?1:i[0]+i[1]:E&&(!(i=E.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=E.match(/Chrome\/(\d+)/))&&(o=i[1]);var L=o&&+o,j=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&L&&L<41})),z=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=z?function(t){return"symbol"==typeof t}:function(t){var e=C("Symbol");return u(e)&&Object(t)instanceof e},N=function(t){try{return String(t)}catch(t){return"Object"}},B=function(t){if(u(t))return t;throw TypeError(N(t)+" is not a function")},Z=function(t,e){var r=t[e];return null==r?void 0:B(r)},D=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},F="__core-js_shared__",H=a[F]||D(F,{}),$=n((function(t){(t.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),G=0,U=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++G+U).toString(36)},W=$("wks"),X=a.Symbol,Y=z?X:X&&X.withoutSetter||V,q=function(t){return y(W,t)&&(j||"string"==typeof W[t])||(j&&y(X,t)?W[t]=X[t]:W[t]=Y("Symbol."+t)),W[t]},K=q("toPrimitive"),J=function(t,e){if(!b(t)||R(t))return t;var r,n=Z(t,K);if(n){if(void 0===e&&(e="default"),r=n.call(t,e),!b(r)||R(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&u(r=t.toString)&&!b(n=r.call(t)))return n;if(u(r=t.valueOf)&&!b(n=r.call(t)))return n;if("string"!==e&&u(r=t.toString)&&!b(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},Q=function(t){var e=J(t,"string");return R(e)?e:String(e)},tt=Object.defineProperty,et={f:e?tt:function(t,e,r){if(w(t),e=Q(e),w(r),I)try{return tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},rt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nt=e?function(t,e,r){return et.f(t,e,rt(1,r))}:function(t,e,r){return t[e]=r,t},it=Function.toString;u(H.inspectSource)||(H.inspectSource=function(t){return it.call(t)});var ot,st,at,ut=H.inspectSource,lt=a.WeakMap,ct=u(lt)&&/native code/.test(ut(lt)),ht=$("keys"),pt=function(t){return ht[t]||(ht[t]=V(t))},ft={},gt="Object already initialized",dt=a.WeakMap;if(ct||H.state){var vt=H.state||(H.state=new dt),mt=vt.get,_t=vt.has,yt=vt.set;ot=function(t,e){if(_t.call(vt,t))throw new TypeError(gt);return e.facade=t,yt.call(vt,t,e),e},st=function(t){return mt.call(vt,t)||{}},at=function(t){return _t.call(vt,t)}}else{var bt=pt("state");ft[bt]=!0,ot=function(t,e){if(y(t,bt))throw new TypeError(gt);return e.facade=t,nt(t,bt,e),e},st=function(t){return y(t,bt)?t[bt]:{}},at=function(t){return y(t,bt)}}var xt={set:ot,get:st,has:at,enforce:function(t){return at(t)?st(t):ot(t,{})},getterFor:function(t){return function(e){var r;if(!b(e)||(r=st(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},St=Function.prototype,Mt=e&&Object.getOwnPropertyDescriptor,It=y(St,"name"),wt={EXISTS:It,PROPER:It&&"something"===function(){}.name,CONFIGURABLE:It&&(!e||e&&Mt(St,"name").configurable)},kt=n((function(t){var e=wt.CONFIGURABLE,r=xt.get,n=xt.enforce,i=String(String).split("String");(t.exports=function(t,r,o,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,f=s&&void 0!==s.name?s.name:r;u(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(o,"name")||e&&o.name!==f)&&nt(o,"name",f),(l=n(o)).source||(l.source=i.join("string"==typeof f?f:""))),t!==a?(c?!p&&t[r]&&(h=!0):delete t[r],h?t[r]=o:nt(t,r,o)):h?t[r]=o:D(r,o)})(Function.prototype,"toString",(function(){return u(this)&&r(this).source||ut(this)}))})),Ct=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return w(r),function(t){if("object"==typeof t||u(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Et=function(t,e,r){var n,i;return Ct&&u(n=e.constructor)&&n!==r&&b(i=n.prototype)&&i!==r.prototype&&Ct(t,i),t},Ot={}.toString,At=function(t){return Ot.call(t).slice(8,-1)},Tt="".split,Pt=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==At(t)?Tt.call(t,""):Object(t)}:Object,Lt=function(t){return Pt(v(t))},jt=Math.ceil,zt=Math.floor,Rt=function(t){var e=+t;return e!=e||0===e?0:(e>0?zt:jt)(e)},Nt=Math.max,Bt=Math.min,Zt=function(t,e){var r=Rt(t);return r<0?Nt(r+e,0):Bt(r,e)},Dt=Math.min,Ft=function(t){return t>0?Dt(Rt(t),9007199254740991):0},Ht=function(t){return Ft(t.length)},$t=function(t){return function(e,r,n){var i,o=Lt(e),s=Ht(o),a=Zt(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},Gt={includes:$t(!0),indexOf:$t(!1)},Ut=Gt.indexOf,Vt=function(t,e){var r,n=Lt(t),i=0,o=[];for(r in n)!y(ft,r)&&y(n,r)&&o.push(r);for(;e.length>i;)y(n,r=e[i++])&&(~Ut(o,r)||o.push(r));return o},Wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xt=Wt.concat("length","prototype"),Yt={f:Object.getOwnPropertyNames||function(t){return Vt(t,Xt)}},qt={}.propertyIsEnumerable,Kt=Object.getOwnPropertyDescriptor,Jt={f:Kt&&!qt.call({1:2},1)?function(t){var e=Kt(this,t);return!!e&&e.enumerable}:qt},Qt=Object.getOwnPropertyDescriptor,te={f:e?Qt:function(t,e){if(t=Lt(t),e=Q(e),I)try{return Qt(t,e)}catch(t){}if(y(t,e))return rt(!Jt.f.call(t,e),t[e])}},ee=1..valueOf,re=function(t){return ee.call(t)},ne={};ne[q("toStringTag")]="z";var ie="[object z]"===String(ne),oe=q("toStringTag"),se="Arguments"==At(function(){return arguments}()),ae=ie?At: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=Object(t),oe))?r:se?At(e):"Object"==(n=At(e))&&u(e.callee)?"Arguments":n},ue=function(t){if("Symbol"===ae(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},le="\t\n\v\f\r \u2028\u2029\ufeff",ce="["+le+"]",he=RegExp("^"+ce+ce+"*"),pe=RegExp(ce+ce+"*$"),fe=function(t){return function(e){var r=ue(v(e));return 1&t&&(r=r.replace(he,"")),2&t&&(r=r.replace(pe,"")),r}},ge={start:fe(1),end:fe(2),trim:fe(3)},de=Yt.f,ve=te.f,me=et.f,_e=ge.trim,ye="Number",be=a.Number,xe=be.prototype,Se=function(t){var e=J(t,"number");return"bigint"==typeof e?e:Me(e)},Me=function(t){var e,r,n,i,o,s,a,u,l=J(t,"number");if(R(l))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(43===(e=(l=_e(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,n)}return+l};if(d(ye,!be(" 0o1")||!be("0b1")||be("+0x1"))){for(var Ie,we=function(e){var r=arguments.length<1?0:be(Se(e)),n=this;return n instanceof we&&t((function(){re(n)}))?Et(Object(r),n,we):r},ke=e?de(be):"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(","),Ce=0;ke.length>Ce;Ce++)y(be,Ie=ke[Ce])&&!y(we,Ie)&&me(we,Ie,ve(be,Ie));we.prototype=xe,xe.constructor=we,kt(a,ye,we)}var Ee={f:Object.getOwnPropertySymbols},Oe=C("Reflect","ownKeys")||function(t){var e=Yt.f(w(t)),r=Ee.f;return r?e.concat(r(t)):e},Ae=function(t,e){for(var r=Oe(e),n=et.f,i=te.f,o=0;o<r.length;o++){var s=r[o];y(t,s)||n(t,s,i(e,s))}},Te=te.f,Pe=function(t,e){var r,n,i,o,s,u=t.target,l=t.global,c=t.stat;if(r=l?a:c?a[u]||D(u,{}):(a[u]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=Te(r,n))&&s.value:r[n],!d(l?n:u+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ae(o,i)}(t.sham||i&&i.sham)&&nt(o,"sham",!0),kt(r,n,o,t)}},Le=function(e,r){var n=[][e];return!!n&&t((function(){n.call(null,r||function(){throw 1},1)}))},je=Gt.indexOf,ze=[].indexOf,Re=!!ze&&1/[1].indexOf(1,-0)<0,Ne=Le("indexOf");Pe({target:"Array",proto:!0,forced:Re||!Ne},{indexOf:function(t){return Re?ze.apply(this,arguments)||0:je(this,t,arguments.length>1?arguments[1]:void 0)}});var Be=Array.isArray||function(t){return"Array"==At(t)},Ze=[],De=C("Reflect","construct"),Fe=/^\s*(?:class|function)\b/,He=Fe.exec,$e=!Fe.exec((function(){})),Ge=function(t){if(!u(t))return!1;try{return De(Object,Ze,t),!0}catch(t){return!1}},Ue=!De||t((function(){var t;return Ge(Ge.call)||!Ge(Object)||!Ge((function(){t=!0}))||t}))?function(t){if(!u(t))return!1;switch(ae(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $e||!!He.call(Fe,ut(t))}:Ge,Ve=q("species"),We=function(t,e){return new(function(t){var e;return Be(t)&&(e=t.constructor,(Ue(e)&&(e===Array||Be(e.prototype))||b(e)&&null===(e=e[Ve]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},Xe=function(t,e,r){var n=Q(e);n in t?et.f(t,n,rt(0,r)):t[n]=r},Ye=q("species"),qe=function(e){return L>=51||!t((function(){var t=[];return(t.constructor={})[Ye]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ke=qe("splice"),Je=Math.max,Qe=Math.min,tr=9007199254740991,er="Maximum allowed length exceeded";Pe({target:"Array",proto:!0,forced:!Ke},{splice:function(t,e){var r,n,i,o,s,a,u=m(this),l=Ht(u),c=Zt(t,l),h=arguments.length;if(0===h?r=n=0:1===h?(r=0,n=l-c):(r=h-2,n=Qe(Je(Rt(e),0),l-c)),l+r-n>tr)throw TypeError(er);for(i=We(u,n),o=0;o<n;o++)(s=c+o)in u&&Xe(i,o,u[s]);if(i.length=n,r<n){for(o=c;o<l-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-n+r;o--)delete u[o-1]}else if(r>n)for(o=l-n;o>c;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<r;o++)u[o+c]=arguments[o+2];return u.length=l-n+r,i}});var rr=qe("slice"),nr=q("species"),ir=[].slice,or=Math.max;Pe({target:"Array",proto:!0,forced:!rr},{slice:function(t,e){var r,n,i,o=Lt(this),s=Ht(o),a=Zt(t,s),u=Zt(void 0===e?s:e,s);if(Be(o)&&(r=o.constructor,(Ue(r)&&(r===Array||Be(r.prototype))||b(r)&&null===(r=r[nr]))&&(r=void 0),r===Array||void 0===r))return ir.call(o,a,u);for(n=new(void 0===r?Array:r)(or(u-a,0)),i=0;a<u;a++,i++)a in o&&Xe(n,i,o[a]);return n.length=i,n}});var sr=ie?{}.toString:function(){return"[object "+ae(this)+"]"};ie||kt(Object.prototype,"toString",sr,{unsafe:!0});var ar=function(){var t=w(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ur=wt.PROPER,lr="toString",cr=RegExp.prototype,hr=cr.toString,pr=t((function(){return"/a/b"!=hr.call({source:"a",flags:"b"})})),fr=ur&&hr.name!=lr;(pr||fr)&&kt(RegExp.prototype,lr,(function(){var t=w(this),e=ue(t.source),r=t.flags;return"/"+e+"/"+ue(void 0===r&&t instanceof RegExp&&!("flags"in cr)?ar.call(t):r)}),{unsafe:!0});var gr=function(t,e){return(gr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function dr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}gr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var vr=function(){return(vr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},mr=[].join,_r=Pt!=Object,yr=Le("join",",");Pe({target:"Array",proto:!0,forced:_r||!yr},{join:function(t){return mr.call(Lt(this),void 0===t?",":t)}});var br=function(t){return function(e,r,n,i){B(r);var o=m(e),s=Pt(o),a=Ht(o),u=t?a-1:0,l=t?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,t?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=l)u in s&&(i=r(i,s[u],u,o));return i}},xr={left:br(!1),right:br(!0)},Sr="process"==At(a.process),Mr=xr.left;Pe({target:"Array",proto:!0,forced:!Le("reduce")||!Sr&&L>79&&L<83},{reduce:function(t){return Mr(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ir=Object.keys||function(t){return Vt(t,Wt)};Pe({target:"Object",stat:!0,forced:t((function(){Ir(1)}))},{keys:function(t){return Ir(m(t))}});var wr,kr=a.RegExp,Cr={UNSUPPORTED_Y:t((function(){var t=kr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:t((function(){var t=kr("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Er=e?Object.defineProperties:function(t,e){w(t);for(var r,n=Ir(e),i=n.length,o=0;i>o;)et.f(t,r=n[o++],e[r]);return t},Or=C("document","documentElement"),Ar=pt("IE_PROTO"),Tr=function(){},Pr=function(t){return"<script>"+t+"</"+"script>"},Lr=function(t){t.write(Pr("")),t.close();var e=t.parentWindow.Object;return t=null,e},jr=function(){try{wr=new ActiveXObject("htmlfile")}catch(t){}var t,e;jr="undefined"!=typeof document?document.domain&&wr?Lr(wr):((e=M("iframe")).style.display="none",Or.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Pr("document.F=Object")),t.close(),t.F):Lr(wr);for(var r=Wt.length;r--;)delete jr.prototype[Wt[r]];return jr()};ft[Ar]=!0;var zr,Rr,Nr=Object.create||function(t,e){var r;return null!==t?(Tr.prototype=w(t),r=new Tr,Tr.prototype=null,r[Ar]=t):r=jr(),void 0===e?r:Er(r,e)},Br=a.RegExp,Zr=t((function(){var t=Br(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Dr=a.RegExp,Fr=t((function(){var t=Dr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Hr=xt.get,$r=RegExp.prototype.exec,Gr=$("native-string-replace",String.prototype.replace),Ur=$r,Vr=(zr=/a/,Rr=/b*/g,$r.call(zr,"a"),$r.call(Rr,"a"),0!==zr.lastIndex||0!==Rr.lastIndex),Wr=Cr.UNSUPPORTED_Y||Cr.BROKEN_CARET,Xr=void 0!==/()??/.exec("")[1];(Vr||Xr||Wr||Zr||Fr)&&(Ur=function(t){var e,r,n,i,o,s,a,u=this,l=Hr(u),c=ue(t),h=l.raw;if(h)return h.lastIndex=u.lastIndex,e=Ur.call(h,c),u.lastIndex=h.lastIndex,e;var p=l.groups,f=Wr&&u.sticky,g=ar.call(u),d=u.source,v=0,m=c;if(f&&(-1===(g=g.replace("y","")).indexOf("g")&&(g+="g"),m=c.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(d="(?: "+d+")",m=" "+m,v++),r=new RegExp("^(?:"+d+")",g)),Xr&&(r=new RegExp("^"+d+"$(?!\\s)",g)),Vr&&(n=u.lastIndex),i=$r.call(f?r:u,m),f?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Vr&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Xr&&i&&i.length>1&&Gr.call(i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=Nr(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var Yr=Ur;Pe({target:"RegExp",proto:!0,forced:/./.exec!==Yr},{exec:Yr});var qr=q("species"),Kr=RegExp.prototype,Jr=function(e,r,n,i){var o=q(e),s=!t((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=s&&!t((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[qr]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!s||!a||n){var u=/./[o],l=r(o,""[e],(function(t,e,r,n,i){var o=e.exec;return o===Yr||o===Kr.exec?s&&!i?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));kt(String.prototype,e,l[0]),kt(Kr,o,l[1])}i&&nt(Kr[o],"sham",!0)},Qr=q("match"),tn=q("species"),en=function(t,e){var r,n=w(t).constructor;return void 0===n||null==(r=w(n)[tn])?e:function(t){if(Ue(t))return t;throw TypeError(N(t)+" is not a constructor")}(r)},rn=function(t){return function(e,r){var n,i,o=ue(v(e)),s=Rt(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},nn={codeAt:rn(!1),charAt:rn(!0)}.charAt,on=function(t,e,r){return e+(r?nn(t,e).length:1)},sn=function(t,e){var r=t.exec;if(u(r)){var n=r.call(t,e);return null!==n&&w(n),n}if("RegExp"===At(t))return Yr.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")},an=Cr.UNSUPPORTED_Y,un=[].push,ln=Math.min,cn=4294967295;Jr("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,i,o=ue(v(this)),s=void 0===r?cn:r>>>0;if(0===s)return[];if(void 0===t)return[o];if(!b(n=t)||!(void 0!==(i=n[Qr])?i:"RegExp"==At(n)))return e.call(o,t,s);for(var a,u,l,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=new RegExp(t.source,h+"g");(a=Yr.call(f,o))&&!((u=f.lastIndex)>p&&(c.push(o.slice(p,a.index)),a.length>1&&a.index<o.length&&un.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=s));)f.lastIndex===a.index&&f.lastIndex++;return p===o.length?!l&&f.test("")||c.push(""):c.push(o.slice(p)),c.length>s?c.slice(0,s):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=v(this),o=null==e?void 0:Z(e,t);return o?o.call(e,i,r):n.call(ue(i),e,r)},function(t,i){var o=w(this),s=ue(t),a=r(n,o,s,i,n!==e);if(a.done)return a.value;var u=en(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(an?"g":"y"),h=new u(an?"^(?:"+o.source+")":o,c),p=void 0===i?cn:i>>>0;if(0===p)return[];if(0===s.length)return null===sn(h,s)?[s]:[];for(var f=0,g=0,d=[];g<s.length;){h.lastIndex=an?0:g;var v,m=sn(h,an?s.slice(g):s);if(null===m||(v=ln(Ft(h.lastIndex+(an?g:0)),s.length))===f)g=on(s,g,l);else{if(d.push(s.slice(f,g)),d.length===p)return d;for(var _=1;_<=m.length-1;_++)if(d.push(m[_]),d.length===p)return d;g=f=v}}return d.push(s.slice(f)),d}]}),!!t((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),an);var hn=ge.trim,pn=a.parseInt,fn=a.Symbol,gn=fn&&fn.iterator,dn=/^[+-]?0[Xx]/,vn=8!==pn(le+"08")||22!==pn(le+"0x16")||gn&&!t((function(){pn(Object(gn))}))?function(t,e){var r=hn(ue(t));return pn(r,e>>>0||(dn.test(r)?16:10))}:pn;Pe({global:!0,forced:parseInt!=vn},{parseInt:vn});var mn=Math.floor,_n="".replace,yn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bn=/\$([$&'`]|\d{1,2})/g,xn=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,u=bn;return void 0!==i&&(i=m(i),u=yn),_n.call(o,u,(function(o,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=i[u.slice(1,-1)];break;default:var c=+u;if(0===c)return o;if(c>a){var h=mn(c/10);return 0===h?o:h<=a?void 0===n[h-1]?u.charAt(1):n[h-1]+u.charAt(1):o}l=n[c-1]}return void 0===l?"":l}))},Sn=q("replace"),Mn=Math.max,In=Math.min,wn="$0"==="a".replace(/./,"$0"),kn=!!/./[Sn]&&""===/./[Sn]("a","$0");Jr("replace",(function(t,e,r){var n=kn?"$":"$0";return[function(t,r){var n=v(this),i=null==t?void 0:Z(t,Sn);return i?i.call(t,n,r):e.call(ue(n),t,r)},function(t,i){var o=w(this),s=ue(t);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var a=r(e,o,s,i);if(a.done)return a.value}var l=u(i);l||(i=ue(i));var c=o.global;if(c){var h=o.unicode;o.lastIndex=0}for(var p=[];;){var f=sn(o,s);if(null===f)break;if(p.push(f),!c)break;""===ue(f[0])&&(o.lastIndex=on(s,Ft(o.lastIndex),h))}for(var g,d="",v=0,m=0;m<p.length;m++){f=p[m];for(var _=ue(f[0]),y=Mn(In(Rt(f.index),s.length),0),b=[],x=1;x<f.length;x++)b.push(void 0===(g=f[x])?g:String(g));var S=f.groups;if(l){var M=[_].concat(b,y,s);void 0!==S&&M.push(S);var I=ue(i.apply(void 0,M))}else I=xn(_,s,y,b,S,i);y>=v&&(d+=s.slice(v,y)+I,v=y+_.length)}return d+s.slice(v)}]}),!!t((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!wn||kn);var Cn=function t(){!function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)};function En(t){return Object.keys(t).reduce((function(e,r){return t[r]&&e.push(r+":"+t[r]),e}),[]).join(";")}function On(t){return t?t+"px":void 0}var An=function(t){function e(e,r){var n=t.call(this)||this;return n.cluster_=e,n.styles_=r,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(e.getMap()),n}return dr(e,t),e.prototype.onAdd=function(){var t,e,r=this,n=this.cluster_.getMarkerClusterer(),i=google.maps.version.split("."),o=i[0],s=i[1],a=100*parseInt(o,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"contextmenu",(function(){google.maps.event.trigger(n,"contextmenu",r.cluster_)})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){if(google.maps.event.trigger(n,"click",r.cluster_),google.maps.event.trigger(n,"clusterclick",r.cluster_),n.getZoomOnClick()){var o=n.getMaxZoom(),s=r.cluster_.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==o&&n.getMap().getZoom()>o&&n.getMap().setZoom(o+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(n,"mouseover",r.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(n,"mouseout",r.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+En({position:"absolute",top:On(this.anchorText_[0]),left:On(this.anchorText_[1]),color:this.style.textColor,"font-size":On(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:On(this.style.width),"line-height":On(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),n={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n={width:On(this.style.width),height:On(this.style.height)};else{var i=[-1*r,-1*e+this.style.width,-1*r+this.style.height,-1*e];n={clip:"rect("+i[0]+"px, "+i[1]+"px, "+i[2]+"px, "+i[3]+"px)"}}var o=this.sums_.url?{width:"100%",height:"100%"}:{},s=En(vr(vr({position:"absolute",top:On(r),left:On(e)},n),o));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+s+'"/>'},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.sums_.url?vr(vr({},this.styles_[e]),{url:this.sums_.url}):this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return En({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:On(t.y),left:On(t.x),width:On(this.style.width),height:On(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(Cn),Tn=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new An(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),r=0;r<e.length;r++)t.extend(e[r].getPosition());return t},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,n=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,n),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var i=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i===this.minClusterSize_)for(var s=0;s<i;s++)this.markers_[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},t.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},t.prototype.updateIcon=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(t<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()}},t.prototype.isMarkerAlreadyAdded_=function(t){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(var e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},t}(),Pn=function(t,e,r){return void 0!==t[e]?t[e]:r};return function(t){function e(r,n,i){void 0===n&&(n=[]),void 0===i&&(i={});var o=t.call(this)||this;return o.options=i,o.markers_=[],o.clusters_=[],o.listeners_=[],o.activeMap_=null,o.ready_=!1,o.ariaLabelFn=o.options.ariaLabelFn||function(){return""},o.zIndex_=o.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,o.gridSize_=o.options.gridSize||60,o.minClusterSize_=o.options.minimumClusterSize||2,o.maxZoom_=o.options.maxZoom||null,o.styles_=o.options.styles||[],o.title_=o.options.title||"",o.zoomOnClick_=Pn(o.options,"zoomOnClick",!0),o.averageCenter_=Pn(o.options,"averageCenter",!1),o.ignoreHidden_=Pn(o.options,"ignoreHidden",!1),o.enableRetinaIcons_=Pn(o.options,"enableRetinaIcons",!1),o.imagePath_=o.options.imagePath||e.IMAGE_PATH,o.imageExtension_=o.options.imageExtension||e.IMAGE_EXTENSION,o.imageSizes_=o.options.imageSizes||e.IMAGE_SIZES,o.calculator_=o.options.calculator||e.CALCULATOR,o.batchSize_=o.options.batchSize||e.BATCH_SIZE,o.batchSizeIE_=o.options.batchSizeIE||e.BATCH_SIZE_IE,o.clusterClass_=o.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(o.batchSize_=o.batchSizeIE_),o.setupStyles_(),o.addMarkers(n,!0),o.setMap(r),o}return dr(e,t),e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var e=t.getMap(),r=e.minZoom||0,n=Math.min(e.maxZoom||100,e.mapTypes[e.getMapTypeId()].maxZoom),i=Math.min(Math.max(t.getMap().getZoom(),r),n);t.prevZoom_!=i&&(t.prevZoom_=i,t.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var e=this.getMarkers(),r=new google.maps.LatLngBounds,n=0;n<e.length;n++)!e[n].getVisible()&&this.getIgnoreHidden()||r.extend(e[n].getPosition());this.getMap().fitBounds(r,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},e.prototype.addMarkers=function(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.pushMarkerTo_(t[r]);e||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready_&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!e&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,e){for(var r=!1,n=0;n<t.length;n++){var i=this.removeMarker_(t[n]);r=r||i}return!e&&r&&this.repaint(),r},e.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r=0;r<this.markers_.length;r++)if(t===this.markers_[r]){e=r;break}return-1!==e&&(t.setMap(null),this.markers_.splice(e,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(r);i.x+=this.gridSize_,i.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(o);return t.extend(s),t.extend(a),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[];for(e=0;e<this.markers_.length;e++){var r=this.markers_[e];r.isAdded=!1,t&&r.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,e){var r=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=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(i),Math.sqrt(1-i)))},e.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var e=4e4,r=null,n=0;n<this.clusters_.length;n++){var i,o=(i=this.clusters_[n]).getCenter();if(o){var s=this.distanceBetweenPoints_(o,t.getPosition());s<e&&(e=s,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new Tn(this)).addMarker(t),this.clusters_.push(i))},e.prototype.createClusters_=function(t){var e=this;if(this.ready_){var r;0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),r=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var n=this.getExtendedBounds(r),i=Math.min(t+this.batchSize_,this.markers_.length),o=t;o<i;o++){var s=this.markers_[o];!s.isAdded&&this.isMarkerInBounds_(s,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(i<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters_(i)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(o=0;o<this.clusters_.length;o++)this.clusters_[o].updateIcon()}}},e.CALCULATOR=function(t,e){for(var r=0,n=t.length,i=n;0!==i;)i=Math.floor(i/10),r++;return r=Math.min(r,e),{text:n.toString(),index:r,title:""}},e.withDefaultStyle=function(t){return vr({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e}(Cn)}(); | ||
var MarkerClusterer=function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},e=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i,o,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){return"function"==typeof t},l=/#|\.prototype\./,c=function(e,r){var n=p[h(e)];return n==g||n!=f&&(u(r)?t(r):!!r)},h=c.normalize=function(t){return String(t).replace(l,".").toLowerCase()},p=c.data={},f=c.NATIVE="N",g=c.POLYFILL="P",d=c,_=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return Object(_(t))},v={}.hasOwnProperty,y=Object.hasOwn||function(t,e){return v.call(m(t),e)},b=function(t){return"object"==typeof t?null!==t:u(t)},x=a.document,S=b(x)&&b(x.createElement),M=function(t){return S?x.createElement(t):{}},I=!e&&!t((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),C=function(t){if(b(t))return t;throw TypeError(String(t)+" is not an object")},k=function(t){return u(t)?t:void 0},E=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},w=E("navigator","userAgent")||"",O=a.process,A=a.Deno,T=O&&O.versions||A&&A.version,P=T&&T.v8;P?o=(i=P.split("."))[0]<4?1:i[0]+i[1]:w&&(!(i=w.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=w.match(/Chrome\/(\d+)/))&&(o=i[1]);var L=o&&+o,j=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&L&&L<41})),z=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=z?function(t){return"symbol"==typeof t}:function(t){var e=E("Symbol");return u(e)&&Object(t)instanceof e},N=function(t){try{return String(t)}catch(t){return"Object"}},B=function(t,e){var r=t[e];return null==r?void 0:function(t){if(u(t))return t;throw TypeError(N(t)+" is not a function")}(r)},Z=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},D="__core-js_shared__",F=a[D]||Z(D,{}),H=n((function(t){(t.exports=function(t,e){return F[t]||(F[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),$=0,G=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++$+G).toString(36)},V=H("wks"),W=a.Symbol,X=z?W:W&&W.withoutSetter||U,Y=function(t){return y(V,t)&&(j||"string"==typeof V[t])||(j&&y(W,t)?V[t]=W[t]:V[t]=X("Symbol."+t)),V[t]},q=Y("toPrimitive"),K=function(t,e){if(!b(t)||R(t))return t;var r,n=B(t,q);if(n){if(void 0===e&&(e="default"),r=n.call(t,e),!b(r)||R(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&u(r=t.toString)&&!b(n=r.call(t)))return n;if(u(r=t.valueOf)&&!b(n=r.call(t)))return n;if("string"!==e&&u(r=t.toString)&&!b(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},J=function(t){var e=K(t,"string");return R(e)?e:String(e)},Q=Object.defineProperty,tt={f:e?Q:function(t,e,r){if(C(t),e=J(e),C(r),I)try{return Q(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},et=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},rt=e?function(t,e,r){return tt.f(t,e,et(1,r))}:function(t,e,r){return t[e]=r,t},nt=Function.toString;u(F.inspectSource)||(F.inspectSource=function(t){return nt.call(t)});var it,ot,st,at=F.inspectSource,ut=a.WeakMap,lt=u(ut)&&/native code/.test(at(ut)),ct=H("keys"),ht=function(t){return ct[t]||(ct[t]=U(t))},pt={},ft="Object already initialized",gt=a.WeakMap;if(lt||F.state){var dt=F.state||(F.state=new gt),_t=dt.get,mt=dt.has,vt=dt.set;it=function(t,e){if(mt.call(dt,t))throw new TypeError(ft);return e.facade=t,vt.call(dt,t,e),e},ot=function(t){return _t.call(dt,t)||{}},st=function(t){return mt.call(dt,t)}}else{var yt=ht("state");pt[yt]=!0,it=function(t,e){if(y(t,yt))throw new TypeError(ft);return e.facade=t,rt(t,yt,e),e},ot=function(t){return y(t,yt)?t[yt]:{}},st=function(t){return y(t,yt)}}var bt={set:it,get:ot,has:st,enforce:function(t){return st(t)?ot(t):it(t,{})},getterFor:function(t){return function(e){var r;if(!b(e)||(r=ot(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},xt=Function.prototype,St=e&&Object.getOwnPropertyDescriptor,Mt=y(xt,"name"),It={EXISTS:Mt,PROPER:Mt&&"something"===function(){}.name,CONFIGURABLE:Mt&&(!e||e&&St(xt,"name").configurable)},Ct=n((function(t){var e=It.CONFIGURABLE,r=bt.get,n=bt.enforce,i=String(String).split("String");(t.exports=function(t,r,o,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,f=s&&void 0!==s.name?s.name:r;u(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(o,"name")||e&&o.name!==f)&&rt(o,"name",f),(l=n(o)).source||(l.source=i.join("string"==typeof f?f:""))),t!==a?(c?!p&&t[r]&&(h=!0):delete t[r],h?t[r]=o:rt(t,r,o)):h?t[r]=o:Z(r,o)})(Function.prototype,"toString",(function(){return u(this)&&r(this).source||at(this)}))})),kt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return C(r),function(t){if("object"==typeof t||u(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Et=function(t,e,r){var n,i;return kt&&u(n=e.constructor)&&n!==r&&b(i=n.prototype)&&i!==r.prototype&&kt(t,i),t},wt={}.toString,Ot=function(t){return wt.call(t).slice(8,-1)},At="".split,Tt=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Ot(t)?At.call(t,""):Object(t)}:Object,Pt=function(t){return Tt(_(t))},Lt=Math.ceil,jt=Math.floor,zt=function(t){var e=+t;return e!=e||0===e?0:(e>0?jt:Lt)(e)},Rt=Math.max,Nt=Math.min,Bt=function(t,e){var r=zt(t);return r<0?Rt(r+e,0):Nt(r,e)},Zt=Math.min,Dt=function(t){return t>0?Zt(zt(t),9007199254740991):0},Ft=function(t){return Dt(t.length)},Ht=function(t){return function(e,r,n){var i,o=Pt(e),s=Ft(o),a=Bt(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},$t={includes:Ht(!0),indexOf:Ht(!1)}.indexOf,Gt=function(t,e){var r,n=Pt(t),i=0,o=[];for(r in n)!y(pt,r)&&y(n,r)&&o.push(r);for(;e.length>i;)y(n,r=e[i++])&&(~$t(o,r)||o.push(r));return o},Ut=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=Ut.concat("length","prototype"),Wt={f:Object.getOwnPropertyNames||function(t){return Gt(t,Vt)}},Xt={}.propertyIsEnumerable,Yt=Object.getOwnPropertyDescriptor,qt={f:Yt&&!Xt.call({1:2},1)?function(t){var e=Yt(this,t);return!!e&&e.enumerable}:Xt},Kt=Object.getOwnPropertyDescriptor,Jt={f:e?Kt:function(t,e){if(t=Pt(t),e=J(e),I)try{return Kt(t,e)}catch(t){}if(y(t,e))return et(!qt.f.call(t,e),t[e])}},Qt=1..valueOf,te=function(t){return Qt.call(t)},ee={};ee[Y("toStringTag")]="z";var re="[object z]"===String(ee),ne=Y("toStringTag"),ie="Arguments"==Ot(function(){return arguments}()),oe=re?Ot: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=Object(t),ne))?r:ie?Ot(e):"Object"==(n=Ot(e))&&u(e.callee)?"Arguments":n},se=function(t){if("Symbol"===oe(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},ae="[\t\n\v\f\r \u2028\u2029\ufeff]",ue=RegExp("^"+ae+ae+"*"),le=RegExp(ae+ae+"*$"),ce=function(t){return function(e){var r=se(_(e));return 1&t&&(r=r.replace(ue,"")),2&t&&(r=r.replace(le,"")),r}},he={start:ce(1),end:ce(2),trim:ce(3)},pe=Wt.f,fe=Jt.f,ge=tt.f,de=he.trim,_e="Number",me=a.Number,ve=me.prototype,ye=function(t){var e=K(t,"number");return"bigint"==typeof e?e:be(e)},be=function(t){var e,r,n,i,o,s,a,u,l=K(t,"number");if(R(l))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(43===(e=(l=de(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,n)}return+l};if(d(_e,!me(" 0o1")||!me("0b1")||me("+0x1"))){for(var xe,Se=function(e){var r=arguments.length<1?0:me(ye(e)),n=this;return n instanceof Se&&t((function(){te(n)}))?Et(Object(r),n,Se):r},Me=e?pe(me):"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(","),Ie=0;Me.length>Ie;Ie++)y(me,xe=Me[Ie])&&!y(Se,xe)&&ge(Se,xe,fe(me,xe));Se.prototype=ve,ve.constructor=Se,Ct(a,_e,Se)}var Ce={f:Object.getOwnPropertySymbols},ke=E("Reflect","ownKeys")||function(t){var e=Wt.f(C(t)),r=Ce.f;return r?e.concat(r(t)):e},Ee=function(t,e){for(var r=ke(e),n=tt.f,i=Jt.f,o=0;o<r.length;o++){var s=r[o];y(t,s)||n(t,s,i(e,s))}},we=Jt.f,Oe=function(t,e){var r,n,i,o,s,u=t.target,l=t.global,c=t.stat;if(r=l?a:c?a[u]||Z(u,{}):(a[u]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=we(r,n))&&s.value:r[n],!d(l?n:u+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ee(o,i)}(t.sham||i&&i.sham)&&rt(o,"sham",!0),Ct(r,n,o,t)}},Ae=Array.isArray||function(t){return"Array"==Ot(t)},Te=[],Pe=E("Reflect","construct"),Le=/^\s*(?:class|function)\b/,je=Le.exec,ze=!Le.exec((function(){})),Re=function(t){if(!u(t))return!1;try{return Pe(Object,Te,t),!0}catch(t){return!1}},Ne=!Pe||t((function(){var t;return Re(Re.call)||!Re(Object)||!Re((function(){t=!0}))||t}))?function(t){if(!u(t))return!1;switch(oe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ze||!!je.call(Le,at(t))}:Re,Be=Y("species"),Ze=function(t,e){return new(function(t){var e;return Ae(t)&&(e=t.constructor,(Ne(e)&&(e===Array||Ae(e.prototype))||b(e)&&null===(e=e[Be]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},De=function(t,e,r){var n=J(e);n in t?tt.f(t,n,et(0,r)):t[n]=r},Fe=Y("species"),He=function(e){return L>=51||!t((function(){var t=[];return(t.constructor={})[Fe]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$e=He("splice"),Ge=Math.max,Ue=Math.min,Ve=9007199254740991,We="Maximum allowed length exceeded";Oe({target:"Array",proto:!0,forced:!$e},{splice:function(t,e){var r,n,i,o,s,a,u=m(this),l=Ft(u),c=Bt(t,l),h=arguments.length;if(0===h?r=n=0:1===h?(r=0,n=l-c):(r=h-2,n=Ue(Ge(zt(e),0),l-c)),l+r-n>Ve)throw TypeError(We);for(i=Ze(u,n),o=0;o<n;o++)(s=c+o)in u&&De(i,o,u[s]);if(i.length=n,r<n){for(o=c;o<l-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-n+r;o--)delete u[o-1]}else if(r>n)for(o=l-n;o>c;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<r;o++)u[o+c]=arguments[o+2];return u.length=l-n+r,i}});var Xe=He("slice"),Ye=Y("species"),qe=[].slice,Ke=Math.max;Oe({target:"Array",proto:!0,forced:!Xe},{slice:function(t,e){var r,n,i,o=Pt(this),s=Ft(o),a=Bt(t,s),u=Bt(void 0===e?s:e,s);if(Ae(o)&&(r=o.constructor,(Ne(r)&&(r===Array||Ae(r.prototype))||b(r)&&null===(r=r[Ye]))&&(r=void 0),r===Array||void 0===r))return qe.call(o,a,u);for(n=new(void 0===r?Array:r)(Ke(u-a,0)),i=0;a<u;a++,i++)a in o&&De(n,i,o[a]);return n.length=i,n}});var Je=re?{}.toString:function(){return"[object "+oe(this)+"]"};re||Ct(Object.prototype,"toString",Je,{unsafe:!0});var Qe=function(){var t=C(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},tr=It.PROPER,er="toString",rr=RegExp.prototype,nr=rr.toString,ir=t((function(){return"/a/b"!=nr.call({source:"a",flags:"b"})})),or=tr&&nr.name!=er;(ir||or)&&Ct(RegExp.prototype,er,(function(){var t=C(this),e=se(t.source),r=t.flags;return"/"+e+"/"+se(void 0===r&&t instanceof RegExp&&!("flags"in rr)?Qe.call(t):r)}),{unsafe:!0});var sr=function(t,e){return(sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function ar(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}sr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ur,lr,cr=function(){return(cr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},hr=[].join,pr=Tt!=Object,fr=(ur=",",!!(lr=[]["join"])&&t((function(){lr.call(null,ur||function(){throw 1},1)})));Oe({target:"Array",proto:!0,forced:pr||!fr},{join:function(t){return hr.call(Pt(this),void 0===t?",":t)}});var gr=Object.keys||function(t){return Gt(t,Ut)};Oe({target:"Object",stat:!0,forced:t((function(){gr(1)}))},{keys:function(t){return gr(m(t))}});var dr,_r=a.RegExp,mr={UNSUPPORTED_Y:t((function(){var t=_r("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:t((function(){var t=_r("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},vr=e?Object.defineProperties:function(t,e){C(t);for(var r,n=gr(e),i=n.length,o=0;i>o;)tt.f(t,r=n[o++],e[r]);return t},yr=E("document","documentElement"),br=ht("IE_PROTO"),xr=function(){},Sr=function(t){return"<script>"+t+"</"+"script>"},Mr=function(t){t.write(Sr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ir=function(){try{dr=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ir="undefined"!=typeof document?document.domain&&dr?Mr(dr):((e=M("iframe")).style.display="none",yr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Sr("document.F=Object")),t.close(),t.F):Mr(dr);for(var r=Ut.length;r--;)delete Ir.prototype[Ut[r]];return Ir()};pt[br]=!0;var Cr,kr,Er=Object.create||function(t,e){var r;return null!==t?(xr.prototype=C(t),r=new xr,xr.prototype=null,r[br]=t):r=Ir(),void 0===e?r:vr(r,e)},wr=a.RegExp,Or=t((function(){var t=wr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Ar=a.RegExp,Tr=t((function(){var t=Ar("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Pr=bt.get,Lr=RegExp.prototype.exec,jr=H("native-string-replace",String.prototype.replace),zr=Lr,Rr=(Cr=/a/,kr=/b*/g,Lr.call(Cr,"a"),Lr.call(kr,"a"),0!==Cr.lastIndex||0!==kr.lastIndex),Nr=mr.UNSUPPORTED_Y||mr.BROKEN_CARET,Br=void 0!==/()??/.exec("")[1];(Rr||Br||Nr||Or||Tr)&&(zr=function(t){var e,r,n,i,o,s,a,u=this,l=Pr(u),c=se(t),h=l.raw;if(h)return h.lastIndex=u.lastIndex,e=zr.call(h,c),u.lastIndex=h.lastIndex,e;var p=l.groups,f=Nr&&u.sticky,g=Qe.call(u),d=u.source,_=0,m=c;if(f&&(-1===(g=g.replace("y","")).indexOf("g")&&(g+="g"),m=c.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(d="(?: "+d+")",m=" "+m,_++),r=new RegExp("^(?:"+d+")",g)),Br&&(r=new RegExp("^"+d+"$(?!\\s)",g)),Rr&&(n=u.lastIndex),i=Lr.call(f?r:u,m),f?i?(i.input=i.input.slice(_),i[0]=i[0].slice(_),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Rr&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Br&&i&&i.length>1&&jr.call(i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=Er(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var Zr=zr;Oe({target:"RegExp",proto:!0,forced:/./.exec!==Zr},{exec:Zr});var Dr=Y("species"),Fr=RegExp.prototype,Hr=function(e,r,n,i){var o=Y(e),s=!t((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=s&&!t((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Dr]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!s||!a||n){var u=/./[o],l=r(o,""[e],(function(t,e,r,n,i){var o=e.exec;return o===Zr||o===Fr.exec?s&&!i?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));Ct(String.prototype,e,l[0]),Ct(Fr,o,l[1])}i&&rt(Fr[o],"sham",!0)},$r=Y("match"),Gr=Y("species"),Ur=function(t,e){var r,n=C(t).constructor;return void 0===n||null==(r=C(n)[Gr])?e:function(t){if(Ne(t))return t;throw TypeError(N(t)+" is not a constructor")}(r)},Vr=function(t){return function(e,r){var n,i,o=se(_(e)),s=zt(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},Wr={codeAt:Vr(!1),charAt:Vr(!0)}.charAt,Xr=function(t,e,r){return e+(r?Wr(t,e).length:1)},Yr=function(t,e){var r=t.exec;if(u(r)){var n=r.call(t,e);return null!==n&&C(n),n}if("RegExp"===Ot(t))return Zr.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")},qr=mr.UNSUPPORTED_Y,Kr=[].push,Jr=Math.min,Qr=4294967295;Hr("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,i,o=se(_(this)),s=void 0===r?Qr:r>>>0;if(0===s)return[];if(void 0===t)return[o];if(!b(n=t)||!(void 0!==(i=n[$r])?i:"RegExp"==Ot(n)))return e.call(o,t,s);for(var a,u,l,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=new RegExp(t.source,h+"g");(a=Zr.call(f,o))&&!((u=f.lastIndex)>p&&(c.push(o.slice(p,a.index)),a.length>1&&a.index<o.length&&Kr.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=s));)f.lastIndex===a.index&&f.lastIndex++;return p===o.length?!l&&f.test("")||c.push(""):c.push(o.slice(p)),c.length>s?c.slice(0,s):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=_(this),o=null==e?void 0:B(e,t);return o?o.call(e,i,r):n.call(se(i),e,r)},function(t,i){var o=C(this),s=se(t),a=r(n,o,s,i,n!==e);if(a.done)return a.value;var u=Ur(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(qr?"g":"y"),h=new u(qr?"^(?:"+o.source+")":o,c),p=void 0===i?Qr:i>>>0;if(0===p)return[];if(0===s.length)return null===Yr(h,s)?[s]:[];for(var f=0,g=0,d=[];g<s.length;){h.lastIndex=qr?0:g;var _,m=Yr(h,qr?s.slice(g):s);if(null===m||(_=Jr(Dt(h.lastIndex+(qr?g:0)),s.length))===f)g=Xr(s,g,l);else{if(d.push(s.slice(f,g)),d.length===p)return d;for(var v=1;v<=m.length-1;v++)if(d.push(m[v]),d.length===p)return d;g=f=_}}return d.push(s.slice(f)),d}]}),!!t((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),qr);var tn=Math.floor,en="".replace,rn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nn=/\$([$&'`]|\d{1,2})/g,on=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,u=nn;return void 0!==i&&(i=m(i),u=rn),en.call(o,u,(function(o,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=i[u.slice(1,-1)];break;default:var c=+u;if(0===c)return o;if(c>a){var h=tn(c/10);return 0===h?o:h<=a?void 0===n[h-1]?u.charAt(1):n[h-1]+u.charAt(1):o}l=n[c-1]}return void 0===l?"":l}))},sn=Y("replace"),an=Math.max,un=Math.min,ln="$0"==="a".replace(/./,"$0"),cn=!!/./[sn]&&""===/./[sn]("a","$0");Hr("replace",(function(t,e,r){var n=cn?"$":"$0";return[function(t,r){var n=_(this),i=null==t?void 0:B(t,sn);return i?i.call(t,n,r):e.call(se(n),t,r)},function(t,i){var o=C(this),s=se(t);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var a=r(e,o,s,i);if(a.done)return a.value}var l=u(i);l||(i=se(i));var c=o.global;if(c){var h=o.unicode;o.lastIndex=0}for(var p=[];;){var f=Yr(o,s);if(null===f)break;if(p.push(f),!c)break;""===se(f[0])&&(o.lastIndex=Xr(s,Dt(o.lastIndex),h))}for(var g,d="",_=0,m=0;m<p.length;m++){f=p[m];for(var v=se(f[0]),y=an(un(zt(f.index),s.length),0),b=[],x=1;x<f.length;x++)b.push(void 0===(g=f[x])?g:String(g));var S=f.groups;if(l){var M=[v].concat(b,y,s);void 0!==S&&M.push(S);var I=se(i.apply(void 0,M))}else I=on(v,s,y,b,S,i);y>=_&&(d+=s.slice(_,y)+I,_=y+v.length)}return d+s.slice(_)}]}),!!t((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ln||cn);var hn=function t(){!function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)};function pn(t){return Object.keys(t).reduce((function(e,r){return t[r]&&e.push(r+":"+t[r]),e}),[]).join(";")}function fn(t){return t?t+"px":void 0}var gn=function(t){function e(e,r){var n=t.call(this)||this;return n.cluster_=e,n.styles_=r,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(e.getMap()),n}return ar(e,t),e.prototype.onAdd=function(){var t,e,r=this,n=this.cluster_.getMarkerClusterer(),i=google.maps.version.split("."),o=i[0],s=i[1],a=100*parseInt(o,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"contextmenu",(function(){google.maps.event.trigger(n,"contextmenu",r.cluster_)})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){if(google.maps.event.trigger(n,"click",r.cluster_),google.maps.event.trigger(n,"clusterclick",r.cluster_),n.getZoomOnClick()){var o=n.getMaxZoom(),s=r.cluster_.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==o&&n.getMap().getZoom()>o&&n.getMap().setZoom(o+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(n,"mouseover",r.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(n,"mouseout",r.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+pn({position:"absolute",top:fn(this.anchorText_[0]),left:fn(this.anchorText_[1]),color:this.style.textColor,"font-size":fn(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:fn(this.style.width),"line-height":fn(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),n={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n={width:fn(this.style.width),height:fn(this.style.height)};else{var i=[-1*r,-1*e+this.style.width,-1*r+this.style.height,-1*e];n={clip:"rect("+i[0]+"px, "+i[1]+"px, "+i[2]+"px, "+i[3]+"px)"}}var o=this.sums_.url?{width:"100%",height:"100%"}:{},s=pn(cr(cr({position:"absolute",top:fn(r),left:fn(e)},n),o));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+s+'"/>'},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.sums_.url?cr(cr({},this.styles_[e]),{url:this.sums_.url}):this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return pn({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:fn(t.y),left:fn(t.x),width:fn(this.style.width),height:fn(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(hn),dn=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new gn(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),r=0;r<e.length;r++)t.extend(e[r].getPosition());return t},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,n=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,n),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var i=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i===this.minClusterSize_)for(var s=0;s<i;s++)this.markers_[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},t.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},t.prototype.updateIcon=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(t<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()}},t.prototype.isMarkerAlreadyAdded_=function(t){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(var e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},t}(),_n=function(t,e,r){return void 0!==t[e]?t[e]:r};return function(t){function e(r,n,i){void 0===n&&(n=[]),void 0===i&&(i={});var o=t.call(this)||this;return o.options=i,o.markers_=[],o.clusters_=[],o.listeners_=[],o.activeMap_=null,o.ready_=!1,o.ariaLabelFn=o.options.ariaLabelFn||function(){return""},o.zIndex_=o.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,o.gridSize_=o.options.gridSize||60,o.minClusterSize_=o.options.minimumClusterSize||2,o.maxZoom_=o.options.maxZoom||null,o.styles_=o.options.styles||[],o.title_=o.options.title||"",o.zoomOnClick_=_n(o.options,"zoomOnClick",!0),o.averageCenter_=_n(o.options,"averageCenter",!1),o.ignoreHidden_=_n(o.options,"ignoreHidden",!1),o.enableRetinaIcons_=_n(o.options,"enableRetinaIcons",!1),o.imagePath_=o.options.imagePath||e.IMAGE_PATH,o.imageExtension_=o.options.imageExtension||e.IMAGE_EXTENSION,o.imageSizes_=o.options.imageSizes||e.IMAGE_SIZES,o.calculator_=o.options.calculator||e.CALCULATOR,o.batchSize_=o.options.batchSize||e.BATCH_SIZE,o.batchSizeIE_=o.options.batchSizeIE||e.BATCH_SIZE_IE,o.clusterClass_=o.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(o.batchSize_=o.batchSizeIE_),o.setupStyles_(),o.addMarkers(n,!0),o.setMap(r),o}return ar(e,t),e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var e=t.getMap(),r=e.minZoom||0,n=Math.min(e.maxZoom||100,e.mapTypes[e.getMapTypeId()].maxZoom),i=Math.min(Math.max(t.getMap().getZoom(),r),n);t.prevZoom_!=i&&(t.prevZoom_=i,t.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var e=this.getMarkers(),r=new google.maps.LatLngBounds,n=0;n<e.length;n++)!e[n].getVisible()&&this.getIgnoreHidden()||r.extend(e[n].getPosition());this.getMap().fitBounds(r,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},e.prototype.addMarkers=function(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.pushMarkerTo_(t[r]);e||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready_&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!e&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,e){for(var r=!1,n=0;n<t.length;n++){var i=this.removeMarker_(t[n]);r=r||i}return!e&&r&&this.repaint(),r},e.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r=0;r<this.markers_.length;r++)if(t===this.markers_[r]){e=r;break}return-1!==e&&(t.setMap(null),this.markers_.splice(e,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(r);i.x+=this.gridSize_,i.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(o);return t.extend(s),t.extend(a),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[];for(e=0;e<this.markers_.length;e++){var r=this.markers_[e];r.isAdded=!1,t&&r.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,e){var r=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=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(i),Math.sqrt(1-i)))},e.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var e=4e4,r=null,n=0;n<this.clusters_.length;n++){var i,o=(i=this.clusters_[n]).getCenter();if(o){var s=this.distanceBetweenPoints_(o,t.getPosition());s<e&&(e=s,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new dn(this)).addMarker(t),this.clusters_.push(i))},e.prototype.createClusters_=function(t){var e=this;if(this.ready_){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var r=new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()),n=this.getExtendedBounds(r),i=Math.min(t+this.batchSize_,this.markers_.length),o=t;o<i;o++){var s=this.markers_[o];!s.isAdded&&this.isMarkerInBounds_(s,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(i<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters_(i)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(o=0;o<this.clusters_.length;o++)this.clusters_[o].updateIcon()}}},e.CALCULATOR=function(t,e){for(var r=0,n=t.length,i=n;0!==i;)i=Math.floor(i/10),r++;return r=Math.min(r,e),{text:n.toString(),index:r,title:""}},e.withDefaultStyle=function(t){return cr({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e}(hn)}(); | ||
//# sourceMappingURL=index.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MarkerClusterer=e()}(this,(function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},e=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i,o,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){return"function"==typeof t},l=/#|\.prototype\./,c=function(e,r){var n=p[h(e)];return n==g||n!=f&&(u(r)?t(r):!!r)},h=c.normalize=function(t){return String(t).replace(l,".").toLowerCase()},p=c.data={},f=c.NATIVE="N",g=c.POLYFILL="P",d=c,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return Object(m(t))},_={}.hasOwnProperty,y=Object.hasOwn||function(t,e){return _.call(v(t),e)},b=function(t){return"object"==typeof t?null!==t:u(t)},x=a.document,S=b(x)&&b(x.createElement),M=function(t){return S?x.createElement(t):{}},I=!e&&!t((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),w=function(t){if(b(t))return t;throw TypeError(String(t)+" is not an object")},k=function(t){return u(t)?t:void 0},C=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},E=C("navigator","userAgent")||"",O=a.process,A=a.Deno,T=O&&O.versions||A&&A.version,P=T&&T.v8;P?o=(i=P.split("."))[0]<4?1:i[0]+i[1]:E&&(!(i=E.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=E.match(/Chrome\/(\d+)/))&&(o=i[1]);var L=o&&+o,j=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&L&&L<41})),z=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=z?function(t){return"symbol"==typeof t}:function(t){var e=C("Symbol");return u(e)&&Object(t)instanceof e},N=function(t){try{return String(t)}catch(t){return"Object"}},B=function(t){if(u(t))return t;throw TypeError(N(t)+" is not a function")},Z=function(t,e){var r=t[e];return null==r?void 0:B(r)},D=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},F="__core-js_shared__",H=a[F]||D(F,{}),$=n((function(t){(t.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),G=0,U=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++G+U).toString(36)},W=$("wks"),X=a.Symbol,Y=z?X:X&&X.withoutSetter||V,q=function(t){return y(W,t)&&(j||"string"==typeof W[t])||(j&&y(X,t)?W[t]=X[t]:W[t]=Y("Symbol."+t)),W[t]},K=q("toPrimitive"),J=function(t,e){if(!b(t)||R(t))return t;var r,n=Z(t,K);if(n){if(void 0===e&&(e="default"),r=n.call(t,e),!b(r)||R(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&u(r=t.toString)&&!b(n=r.call(t)))return n;if(u(r=t.valueOf)&&!b(n=r.call(t)))return n;if("string"!==e&&u(r=t.toString)&&!b(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},Q=function(t){var e=J(t,"string");return R(e)?e:String(e)},tt=Object.defineProperty,et={f:e?tt:function(t,e,r){if(w(t),e=Q(e),w(r),I)try{return tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},rt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nt=e?function(t,e,r){return et.f(t,e,rt(1,r))}:function(t,e,r){return t[e]=r,t},it=Function.toString;u(H.inspectSource)||(H.inspectSource=function(t){return it.call(t)});var ot,st,at,ut=H.inspectSource,lt=a.WeakMap,ct=u(lt)&&/native code/.test(ut(lt)),ht=$("keys"),pt=function(t){return ht[t]||(ht[t]=V(t))},ft={},gt="Object already initialized",dt=a.WeakMap;if(ct||H.state){var mt=H.state||(H.state=new dt),vt=mt.get,_t=mt.has,yt=mt.set;ot=function(t,e){if(_t.call(mt,t))throw new TypeError(gt);return e.facade=t,yt.call(mt,t,e),e},st=function(t){return vt.call(mt,t)||{}},at=function(t){return _t.call(mt,t)}}else{var bt=pt("state");ft[bt]=!0,ot=function(t,e){if(y(t,bt))throw new TypeError(gt);return e.facade=t,nt(t,bt,e),e},st=function(t){return y(t,bt)?t[bt]:{}},at=function(t){return y(t,bt)}}var xt={set:ot,get:st,has:at,enforce:function(t){return at(t)?st(t):ot(t,{})},getterFor:function(t){return function(e){var r;if(!b(e)||(r=st(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},St=Function.prototype,Mt=e&&Object.getOwnPropertyDescriptor,It=y(St,"name"),wt={EXISTS:It,PROPER:It&&"something"===function(){}.name,CONFIGURABLE:It&&(!e||e&&Mt(St,"name").configurable)},kt=n((function(t){var e=wt.CONFIGURABLE,r=xt.get,n=xt.enforce,i=String(String).split("String");(t.exports=function(t,r,o,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,f=s&&void 0!==s.name?s.name:r;u(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(o,"name")||e&&o.name!==f)&&nt(o,"name",f),(l=n(o)).source||(l.source=i.join("string"==typeof f?f:""))),t!==a?(c?!p&&t[r]&&(h=!0):delete t[r],h?t[r]=o:nt(t,r,o)):h?t[r]=o:D(r,o)})(Function.prototype,"toString",(function(){return u(this)&&r(this).source||ut(this)}))})),Ct=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return w(r),function(t){if("object"==typeof t||u(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Et=function(t,e,r){var n,i;return Ct&&u(n=e.constructor)&&n!==r&&b(i=n.prototype)&&i!==r.prototype&&Ct(t,i),t},Ot={}.toString,At=function(t){return Ot.call(t).slice(8,-1)},Tt="".split,Pt=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==At(t)?Tt.call(t,""):Object(t)}:Object,Lt=function(t){return Pt(m(t))},jt=Math.ceil,zt=Math.floor,Rt=function(t){var e=+t;return e!=e||0===e?0:(e>0?zt:jt)(e)},Nt=Math.max,Bt=Math.min,Zt=function(t,e){var r=Rt(t);return r<0?Nt(r+e,0):Bt(r,e)},Dt=Math.min,Ft=function(t){return t>0?Dt(Rt(t),9007199254740991):0},Ht=function(t){return Ft(t.length)},$t=function(t){return function(e,r,n){var i,o=Lt(e),s=Ht(o),a=Zt(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},Gt={includes:$t(!0),indexOf:$t(!1)},Ut=Gt.indexOf,Vt=function(t,e){var r,n=Lt(t),i=0,o=[];for(r in n)!y(ft,r)&&y(n,r)&&o.push(r);for(;e.length>i;)y(n,r=e[i++])&&(~Ut(o,r)||o.push(r));return o},Wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xt=Wt.concat("length","prototype"),Yt={f:Object.getOwnPropertyNames||function(t){return Vt(t,Xt)}},qt={}.propertyIsEnumerable,Kt=Object.getOwnPropertyDescriptor,Jt={f:Kt&&!qt.call({1:2},1)?function(t){var e=Kt(this,t);return!!e&&e.enumerable}:qt},Qt=Object.getOwnPropertyDescriptor,te={f:e?Qt:function(t,e){if(t=Lt(t),e=Q(e),I)try{return Qt(t,e)}catch(t){}if(y(t,e))return rt(!Jt.f.call(t,e),t[e])}},ee=1..valueOf,re=function(t){return ee.call(t)},ne={};ne[q("toStringTag")]="z";var ie="[object z]"===String(ne),oe=q("toStringTag"),se="Arguments"==At(function(){return arguments}()),ae=ie?At: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=Object(t),oe))?r:se?At(e):"Object"==(n=At(e))&&u(e.callee)?"Arguments":n},ue=function(t){if("Symbol"===ae(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},le="\t\n\v\f\r \u2028\u2029\ufeff",ce="["+le+"]",he=RegExp("^"+ce+ce+"*"),pe=RegExp(ce+ce+"*$"),fe=function(t){return function(e){var r=ue(m(e));return 1&t&&(r=r.replace(he,"")),2&t&&(r=r.replace(pe,"")),r}},ge={start:fe(1),end:fe(2),trim:fe(3)},de=Yt.f,me=te.f,ve=et.f,_e=ge.trim,ye="Number",be=a.Number,xe=be.prototype,Se=function(t){var e=J(t,"number");return"bigint"==typeof e?e:Me(e)},Me=function(t){var e,r,n,i,o,s,a,u,l=J(t,"number");if(R(l))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(43===(e=(l=_e(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,n)}return+l};if(d(ye,!be(" 0o1")||!be("0b1")||be("+0x1"))){for(var Ie,we=function(e){var r=arguments.length<1?0:be(Se(e)),n=this;return n instanceof we&&t((function(){re(n)}))?Et(Object(r),n,we):r},ke=e?de(be):"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(","),Ce=0;ke.length>Ce;Ce++)y(be,Ie=ke[Ce])&&!y(we,Ie)&&ve(we,Ie,me(be,Ie));we.prototype=xe,xe.constructor=we,kt(a,ye,we)}var Ee={f:Object.getOwnPropertySymbols},Oe=C("Reflect","ownKeys")||function(t){var e=Yt.f(w(t)),r=Ee.f;return r?e.concat(r(t)):e},Ae=function(t,e){for(var r=Oe(e),n=et.f,i=te.f,o=0;o<r.length;o++){var s=r[o];y(t,s)||n(t,s,i(e,s))}},Te=te.f,Pe=function(t,e){var r,n,i,o,s,u=t.target,l=t.global,c=t.stat;if(r=l?a:c?a[u]||D(u,{}):(a[u]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=Te(r,n))&&s.value:r[n],!d(l?n:u+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ae(o,i)}(t.sham||i&&i.sham)&&nt(o,"sham",!0),kt(r,n,o,t)}},Le=function(e,r){var n=[][e];return!!n&&t((function(){n.call(null,r||function(){throw 1},1)}))},je=Gt.indexOf,ze=[].indexOf,Re=!!ze&&1/[1].indexOf(1,-0)<0,Ne=Le("indexOf");Pe({target:"Array",proto:!0,forced:Re||!Ne},{indexOf:function(t){return Re?ze.apply(this,arguments)||0:je(this,t,arguments.length>1?arguments[1]:void 0)}});var Be=Array.isArray||function(t){return"Array"==At(t)},Ze=[],De=C("Reflect","construct"),Fe=/^\s*(?:class|function)\b/,He=Fe.exec,$e=!Fe.exec((function(){})),Ge=function(t){if(!u(t))return!1;try{return De(Object,Ze,t),!0}catch(t){return!1}},Ue=!De||t((function(){var t;return Ge(Ge.call)||!Ge(Object)||!Ge((function(){t=!0}))||t}))?function(t){if(!u(t))return!1;switch(ae(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $e||!!He.call(Fe,ut(t))}:Ge,Ve=q("species"),We=function(t,e){return new(function(t){var e;return Be(t)&&(e=t.constructor,(Ue(e)&&(e===Array||Be(e.prototype))||b(e)&&null===(e=e[Ve]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},Xe=function(t,e,r){var n=Q(e);n in t?et.f(t,n,rt(0,r)):t[n]=r},Ye=q("species"),qe=function(e){return L>=51||!t((function(){var t=[];return(t.constructor={})[Ye]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ke=qe("splice"),Je=Math.max,Qe=Math.min,tr=9007199254740991,er="Maximum allowed length exceeded";Pe({target:"Array",proto:!0,forced:!Ke},{splice:function(t,e){var r,n,i,o,s,a,u=v(this),l=Ht(u),c=Zt(t,l),h=arguments.length;if(0===h?r=n=0:1===h?(r=0,n=l-c):(r=h-2,n=Qe(Je(Rt(e),0),l-c)),l+r-n>tr)throw TypeError(er);for(i=We(u,n),o=0;o<n;o++)(s=c+o)in u&&Xe(i,o,u[s]);if(i.length=n,r<n){for(o=c;o<l-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-n+r;o--)delete u[o-1]}else if(r>n)for(o=l-n;o>c;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<r;o++)u[o+c]=arguments[o+2];return u.length=l-n+r,i}});var rr=qe("slice"),nr=q("species"),ir=[].slice,or=Math.max;Pe({target:"Array",proto:!0,forced:!rr},{slice:function(t,e){var r,n,i,o=Lt(this),s=Ht(o),a=Zt(t,s),u=Zt(void 0===e?s:e,s);if(Be(o)&&(r=o.constructor,(Ue(r)&&(r===Array||Be(r.prototype))||b(r)&&null===(r=r[nr]))&&(r=void 0),r===Array||void 0===r))return ir.call(o,a,u);for(n=new(void 0===r?Array:r)(or(u-a,0)),i=0;a<u;a++,i++)a in o&&Xe(n,i,o[a]);return n.length=i,n}});var sr=ie?{}.toString:function(){return"[object "+ae(this)+"]"};ie||kt(Object.prototype,"toString",sr,{unsafe:!0});var ar=function(){var t=w(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ur=wt.PROPER,lr="toString",cr=RegExp.prototype,hr=cr.toString,pr=t((function(){return"/a/b"!=hr.call({source:"a",flags:"b"})})),fr=ur&&hr.name!=lr;(pr||fr)&&kt(RegExp.prototype,lr,(function(){var t=w(this),e=ue(t.source),r=t.flags;return"/"+e+"/"+ue(void 0===r&&t instanceof RegExp&&!("flags"in cr)?ar.call(t):r)}),{unsafe:!0});var gr=function(t,e){return(gr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function dr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}gr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var mr=function(){return(mr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},vr=[].join,_r=Pt!=Object,yr=Le("join",",");Pe({target:"Array",proto:!0,forced:_r||!yr},{join:function(t){return vr.call(Lt(this),void 0===t?",":t)}});var br=function(t){return function(e,r,n,i){B(r);var o=v(e),s=Pt(o),a=Ht(o),u=t?a-1:0,l=t?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,t?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=l)u in s&&(i=r(i,s[u],u,o));return i}},xr={left:br(!1),right:br(!0)},Sr="process"==At(a.process),Mr=xr.left;Pe({target:"Array",proto:!0,forced:!Le("reduce")||!Sr&&L>79&&L<83},{reduce:function(t){return Mr(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ir=Object.keys||function(t){return Vt(t,Wt)};Pe({target:"Object",stat:!0,forced:t((function(){Ir(1)}))},{keys:function(t){return Ir(v(t))}});var wr,kr=a.RegExp,Cr={UNSUPPORTED_Y:t((function(){var t=kr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:t((function(){var t=kr("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Er=e?Object.defineProperties:function(t,e){w(t);for(var r,n=Ir(e),i=n.length,o=0;i>o;)et.f(t,r=n[o++],e[r]);return t},Or=C("document","documentElement"),Ar=pt("IE_PROTO"),Tr=function(){},Pr=function(t){return"<script>"+t+"</"+"script>"},Lr=function(t){t.write(Pr("")),t.close();var e=t.parentWindow.Object;return t=null,e},jr=function(){try{wr=new ActiveXObject("htmlfile")}catch(t){}var t,e;jr="undefined"!=typeof document?document.domain&&wr?Lr(wr):((e=M("iframe")).style.display="none",Or.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Pr("document.F=Object")),t.close(),t.F):Lr(wr);for(var r=Wt.length;r--;)delete jr.prototype[Wt[r]];return jr()};ft[Ar]=!0;var zr,Rr,Nr=Object.create||function(t,e){var r;return null!==t?(Tr.prototype=w(t),r=new Tr,Tr.prototype=null,r[Ar]=t):r=jr(),void 0===e?r:Er(r,e)},Br=a.RegExp,Zr=t((function(){var t=Br(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Dr=a.RegExp,Fr=t((function(){var t=Dr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Hr=xt.get,$r=RegExp.prototype.exec,Gr=$("native-string-replace",String.prototype.replace),Ur=$r,Vr=(zr=/a/,Rr=/b*/g,$r.call(zr,"a"),$r.call(Rr,"a"),0!==zr.lastIndex||0!==Rr.lastIndex),Wr=Cr.UNSUPPORTED_Y||Cr.BROKEN_CARET,Xr=void 0!==/()??/.exec("")[1];(Vr||Xr||Wr||Zr||Fr)&&(Ur=function(t){var e,r,n,i,o,s,a,u=this,l=Hr(u),c=ue(t),h=l.raw;if(h)return h.lastIndex=u.lastIndex,e=Ur.call(h,c),u.lastIndex=h.lastIndex,e;var p=l.groups,f=Wr&&u.sticky,g=ar.call(u),d=u.source,m=0,v=c;if(f&&(-1===(g=g.replace("y","")).indexOf("g")&&(g+="g"),v=c.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(d="(?: "+d+")",v=" "+v,m++),r=new RegExp("^(?:"+d+")",g)),Xr&&(r=new RegExp("^"+d+"$(?!\\s)",g)),Vr&&(n=u.lastIndex),i=$r.call(f?r:u,v),f?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Vr&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Xr&&i&&i.length>1&&Gr.call(i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=Nr(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var Yr=Ur;Pe({target:"RegExp",proto:!0,forced:/./.exec!==Yr},{exec:Yr});var qr=q("species"),Kr=RegExp.prototype,Jr=function(e,r,n,i){var o=q(e),s=!t((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=s&&!t((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[qr]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!s||!a||n){var u=/./[o],l=r(o,""[e],(function(t,e,r,n,i){var o=e.exec;return o===Yr||o===Kr.exec?s&&!i?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));kt(String.prototype,e,l[0]),kt(Kr,o,l[1])}i&&nt(Kr[o],"sham",!0)},Qr=q("match"),tn=q("species"),en=function(t,e){var r,n=w(t).constructor;return void 0===n||null==(r=w(n)[tn])?e:function(t){if(Ue(t))return t;throw TypeError(N(t)+" is not a constructor")}(r)},rn=function(t){return function(e,r){var n,i,o=ue(m(e)),s=Rt(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},nn={codeAt:rn(!1),charAt:rn(!0)}.charAt,on=function(t,e,r){return e+(r?nn(t,e).length:1)},sn=function(t,e){var r=t.exec;if(u(r)){var n=r.call(t,e);return null!==n&&w(n),n}if("RegExp"===At(t))return Yr.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")},an=Cr.UNSUPPORTED_Y,un=[].push,ln=Math.min,cn=4294967295;Jr("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,i,o=ue(m(this)),s=void 0===r?cn:r>>>0;if(0===s)return[];if(void 0===t)return[o];if(!b(n=t)||!(void 0!==(i=n[Qr])?i:"RegExp"==At(n)))return e.call(o,t,s);for(var a,u,l,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=new RegExp(t.source,h+"g");(a=Yr.call(f,o))&&!((u=f.lastIndex)>p&&(c.push(o.slice(p,a.index)),a.length>1&&a.index<o.length&&un.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=s));)f.lastIndex===a.index&&f.lastIndex++;return p===o.length?!l&&f.test("")||c.push(""):c.push(o.slice(p)),c.length>s?c.slice(0,s):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=m(this),o=null==e?void 0:Z(e,t);return o?o.call(e,i,r):n.call(ue(i),e,r)},function(t,i){var o=w(this),s=ue(t),a=r(n,o,s,i,n!==e);if(a.done)return a.value;var u=en(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(an?"g":"y"),h=new u(an?"^(?:"+o.source+")":o,c),p=void 0===i?cn:i>>>0;if(0===p)return[];if(0===s.length)return null===sn(h,s)?[s]:[];for(var f=0,g=0,d=[];g<s.length;){h.lastIndex=an?0:g;var m,v=sn(h,an?s.slice(g):s);if(null===v||(m=ln(Ft(h.lastIndex+(an?g:0)),s.length))===f)g=on(s,g,l);else{if(d.push(s.slice(f,g)),d.length===p)return d;for(var _=1;_<=v.length-1;_++)if(d.push(v[_]),d.length===p)return d;g=f=m}}return d.push(s.slice(f)),d}]}),!!t((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),an);var hn=ge.trim,pn=a.parseInt,fn=a.Symbol,gn=fn&&fn.iterator,dn=/^[+-]?0[Xx]/,mn=8!==pn(le+"08")||22!==pn(le+"0x16")||gn&&!t((function(){pn(Object(gn))}))?function(t,e){var r=hn(ue(t));return pn(r,e>>>0||(dn.test(r)?16:10))}:pn;Pe({global:!0,forced:parseInt!=mn},{parseInt:mn});var vn=Math.floor,_n="".replace,yn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bn=/\$([$&'`]|\d{1,2})/g,xn=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,u=bn;return void 0!==i&&(i=v(i),u=yn),_n.call(o,u,(function(o,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=i[u.slice(1,-1)];break;default:var c=+u;if(0===c)return o;if(c>a){var h=vn(c/10);return 0===h?o:h<=a?void 0===n[h-1]?u.charAt(1):n[h-1]+u.charAt(1):o}l=n[c-1]}return void 0===l?"":l}))},Sn=q("replace"),Mn=Math.max,In=Math.min,wn="$0"==="a".replace(/./,"$0"),kn=!!/./[Sn]&&""===/./[Sn]("a","$0");Jr("replace",(function(t,e,r){var n=kn?"$":"$0";return[function(t,r){var n=m(this),i=null==t?void 0:Z(t,Sn);return i?i.call(t,n,r):e.call(ue(n),t,r)},function(t,i){var o=w(this),s=ue(t);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var a=r(e,o,s,i);if(a.done)return a.value}var l=u(i);l||(i=ue(i));var c=o.global;if(c){var h=o.unicode;o.lastIndex=0}for(var p=[];;){var f=sn(o,s);if(null===f)break;if(p.push(f),!c)break;""===ue(f[0])&&(o.lastIndex=on(s,Ft(o.lastIndex),h))}for(var g,d="",m=0,v=0;v<p.length;v++){f=p[v];for(var _=ue(f[0]),y=Mn(In(Rt(f.index),s.length),0),b=[],x=1;x<f.length;x++)b.push(void 0===(g=f[x])?g:String(g));var S=f.groups;if(l){var M=[_].concat(b,y,s);void 0!==S&&M.push(S);var I=ue(i.apply(void 0,M))}else I=xn(_,s,y,b,S,i);y>=m&&(d+=s.slice(m,y)+I,m=y+_.length)}return d+s.slice(m)}]}),!!t((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!wn||kn);var Cn=function t(){!function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)};function En(t){return Object.keys(t).reduce((function(e,r){return t[r]&&e.push(r+":"+t[r]),e}),[]).join(";")}function On(t){return t?t+"px":void 0}var An=function(t){function e(e,r){var n=t.call(this)||this;return n.cluster_=e,n.styles_=r,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(e.getMap()),n}return dr(e,t),e.prototype.onAdd=function(){var t,e,r=this,n=this.cluster_.getMarkerClusterer(),i=google.maps.version.split("."),o=i[0],s=i[1],a=100*parseInt(o,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"contextmenu",(function(){google.maps.event.trigger(n,"contextmenu",r.cluster_)})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){if(google.maps.event.trigger(n,"click",r.cluster_),google.maps.event.trigger(n,"clusterclick",r.cluster_),n.getZoomOnClick()){var o=n.getMaxZoom(),s=r.cluster_.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==o&&n.getMap().getZoom()>o&&n.getMap().setZoom(o+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(n,"mouseover",r.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(n,"mouseout",r.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+En({position:"absolute",top:On(this.anchorText_[0]),left:On(this.anchorText_[1]),color:this.style.textColor,"font-size":On(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:On(this.style.width),"line-height":On(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),n={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n={width:On(this.style.width),height:On(this.style.height)};else{var i=[-1*r,-1*e+this.style.width,-1*r+this.style.height,-1*e];n={clip:"rect("+i[0]+"px, "+i[1]+"px, "+i[2]+"px, "+i[3]+"px)"}}var o=this.sums_.url?{width:"100%",height:"100%"}:{},s=En(mr(mr({position:"absolute",top:On(r),left:On(e)},n),o));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+s+'"/>'},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.sums_.url?mr(mr({},this.styles_[e]),{url:this.sums_.url}):this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return En({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:On(t.y),left:On(t.x),width:On(this.style.width),height:On(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(Cn),Tn=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new An(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),r=0;r<e.length;r++)t.extend(e[r].getPosition());return t},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,n=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,n),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var i=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i===this.minClusterSize_)for(var s=0;s<i;s++)this.markers_[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},t.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},t.prototype.updateIcon=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(t<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()}},t.prototype.isMarkerAlreadyAdded_=function(t){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(var e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},t}(),Pn=function(t,e,r){return void 0!==t[e]?t[e]:r};return function(t){function e(r,n,i){void 0===n&&(n=[]),void 0===i&&(i={});var o=t.call(this)||this;return o.options=i,o.markers_=[],o.clusters_=[],o.listeners_=[],o.activeMap_=null,o.ready_=!1,o.ariaLabelFn=o.options.ariaLabelFn||function(){return""},o.zIndex_=o.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,o.gridSize_=o.options.gridSize||60,o.minClusterSize_=o.options.minimumClusterSize||2,o.maxZoom_=o.options.maxZoom||null,o.styles_=o.options.styles||[],o.title_=o.options.title||"",o.zoomOnClick_=Pn(o.options,"zoomOnClick",!0),o.averageCenter_=Pn(o.options,"averageCenter",!1),o.ignoreHidden_=Pn(o.options,"ignoreHidden",!1),o.enableRetinaIcons_=Pn(o.options,"enableRetinaIcons",!1),o.imagePath_=o.options.imagePath||e.IMAGE_PATH,o.imageExtension_=o.options.imageExtension||e.IMAGE_EXTENSION,o.imageSizes_=o.options.imageSizes||e.IMAGE_SIZES,o.calculator_=o.options.calculator||e.CALCULATOR,o.batchSize_=o.options.batchSize||e.BATCH_SIZE,o.batchSizeIE_=o.options.batchSizeIE||e.BATCH_SIZE_IE,o.clusterClass_=o.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(o.batchSize_=o.batchSizeIE_),o.setupStyles_(),o.addMarkers(n,!0),o.setMap(r),o}return dr(e,t),e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var e=t.getMap(),r=e.minZoom||0,n=Math.min(e.maxZoom||100,e.mapTypes[e.getMapTypeId()].maxZoom),i=Math.min(Math.max(t.getMap().getZoom(),r),n);t.prevZoom_!=i&&(t.prevZoom_=i,t.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var e=this.getMarkers(),r=new google.maps.LatLngBounds,n=0;n<e.length;n++)!e[n].getVisible()&&this.getIgnoreHidden()||r.extend(e[n].getPosition());this.getMap().fitBounds(r,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},e.prototype.addMarkers=function(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.pushMarkerTo_(t[r]);e||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready_&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!e&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,e){for(var r=!1,n=0;n<t.length;n++){var i=this.removeMarker_(t[n]);r=r||i}return!e&&r&&this.repaint(),r},e.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r=0;r<this.markers_.length;r++)if(t===this.markers_[r]){e=r;break}return-1!==e&&(t.setMap(null),this.markers_.splice(e,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(r);i.x+=this.gridSize_,i.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(o);return t.extend(s),t.extend(a),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[];for(e=0;e<this.markers_.length;e++){var r=this.markers_[e];r.isAdded=!1,t&&r.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,e){var r=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=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(i),Math.sqrt(1-i)))},e.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var e=4e4,r=null,n=0;n<this.clusters_.length;n++){var i,o=(i=this.clusters_[n]).getCenter();if(o){var s=this.distanceBetweenPoints_(o,t.getPosition());s<e&&(e=s,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new Tn(this)).addMarker(t),this.clusters_.push(i))},e.prototype.createClusters_=function(t){var e=this;if(this.ready_){var r;0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),r=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var n=this.getExtendedBounds(r),i=Math.min(t+this.batchSize_,this.markers_.length),o=t;o<i;o++){var s=this.markers_[o];!s.isAdded&&this.isMarkerInBounds_(s,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(i<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters_(i)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(o=0;o<this.clusters_.length;o++)this.clusters_[o].updateIcon()}}},e.CALCULATOR=function(t,e){for(var r=0,n=t.length,i=n;0!==i;)i=Math.floor(i/10),r++;return r=Math.min(r,e),{text:n.toString(),index:r,title:""}},e.withDefaultStyle=function(t){return mr({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e}(Cn)})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MarkerClusterer=e()}(this,(function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},e=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i,o,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){return"function"==typeof t},l=/#|\.prototype\./,c=function(e,r){var n=p[h(e)];return n==g||n!=f&&(u(r)?t(r):!!r)},h=c.normalize=function(t){return String(t).replace(l,".").toLowerCase()},p=c.data={},f=c.NATIVE="N",g=c.POLYFILL="P",d=c,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},_=function(t){return Object(m(t))},v={}.hasOwnProperty,y=Object.hasOwn||function(t,e){return v.call(_(t),e)},b=function(t){return"object"==typeof t?null!==t:u(t)},x=a.document,S=b(x)&&b(x.createElement),M=function(t){return S?x.createElement(t):{}},I=!e&&!t((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),C=function(t){if(b(t))return t;throw TypeError(String(t)+" is not an object")},k=function(t){return u(t)?t:void 0},E=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},w=E("navigator","userAgent")||"",O=a.process,A=a.Deno,T=O&&O.versions||A&&A.version,P=T&&T.v8;P?o=(i=P.split("."))[0]<4?1:i[0]+i[1]:w&&(!(i=w.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=w.match(/Chrome\/(\d+)/))&&(o=i[1]);var L=o&&+o,j=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&L&&L<41})),z=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=z?function(t){return"symbol"==typeof t}:function(t){var e=E("Symbol");return u(e)&&Object(t)instanceof e},N=function(t){try{return String(t)}catch(t){return"Object"}},B=function(t,e){var r=t[e];return null==r?void 0:function(t){if(u(t))return t;throw TypeError(N(t)+" is not a function")}(r)},Z=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},D="__core-js_shared__",F=a[D]||Z(D,{}),H=n((function(t){(t.exports=function(t,e){return F[t]||(F[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),$=0,G=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++$+G).toString(36)},V=H("wks"),W=a.Symbol,X=z?W:W&&W.withoutSetter||U,Y=function(t){return y(V,t)&&(j||"string"==typeof V[t])||(j&&y(W,t)?V[t]=W[t]:V[t]=X("Symbol."+t)),V[t]},q=Y("toPrimitive"),K=function(t,e){if(!b(t)||R(t))return t;var r,n=B(t,q);if(n){if(void 0===e&&(e="default"),r=n.call(t,e),!b(r)||R(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&u(r=t.toString)&&!b(n=r.call(t)))return n;if(u(r=t.valueOf)&&!b(n=r.call(t)))return n;if("string"!==e&&u(r=t.toString)&&!b(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},J=function(t){var e=K(t,"string");return R(e)?e:String(e)},Q=Object.defineProperty,tt={f:e?Q:function(t,e,r){if(C(t),e=J(e),C(r),I)try{return Q(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},et=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},rt=e?function(t,e,r){return tt.f(t,e,et(1,r))}:function(t,e,r){return t[e]=r,t},nt=Function.toString;u(F.inspectSource)||(F.inspectSource=function(t){return nt.call(t)});var it,ot,st,at=F.inspectSource,ut=a.WeakMap,lt=u(ut)&&/native code/.test(at(ut)),ct=H("keys"),ht=function(t){return ct[t]||(ct[t]=U(t))},pt={},ft="Object already initialized",gt=a.WeakMap;if(lt||F.state){var dt=F.state||(F.state=new gt),mt=dt.get,_t=dt.has,vt=dt.set;it=function(t,e){if(_t.call(dt,t))throw new TypeError(ft);return e.facade=t,vt.call(dt,t,e),e},ot=function(t){return mt.call(dt,t)||{}},st=function(t){return _t.call(dt,t)}}else{var yt=ht("state");pt[yt]=!0,it=function(t,e){if(y(t,yt))throw new TypeError(ft);return e.facade=t,rt(t,yt,e),e},ot=function(t){return y(t,yt)?t[yt]:{}},st=function(t){return y(t,yt)}}var bt={set:it,get:ot,has:st,enforce:function(t){return st(t)?ot(t):it(t,{})},getterFor:function(t){return function(e){var r;if(!b(e)||(r=ot(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},xt=Function.prototype,St=e&&Object.getOwnPropertyDescriptor,Mt=y(xt,"name"),It={EXISTS:Mt,PROPER:Mt&&"something"===function(){}.name,CONFIGURABLE:Mt&&(!e||e&&St(xt,"name").configurable)},Ct=n((function(t){var e=It.CONFIGURABLE,r=bt.get,n=bt.enforce,i=String(String).split("String");(t.exports=function(t,r,o,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,f=s&&void 0!==s.name?s.name:r;u(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(o,"name")||e&&o.name!==f)&&rt(o,"name",f),(l=n(o)).source||(l.source=i.join("string"==typeof f?f:""))),t!==a?(c?!p&&t[r]&&(h=!0):delete t[r],h?t[r]=o:rt(t,r,o)):h?t[r]=o:Z(r,o)})(Function.prototype,"toString",(function(){return u(this)&&r(this).source||at(this)}))})),kt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return C(r),function(t){if("object"==typeof t||u(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Et=function(t,e,r){var n,i;return kt&&u(n=e.constructor)&&n!==r&&b(i=n.prototype)&&i!==r.prototype&&kt(t,i),t},wt={}.toString,Ot=function(t){return wt.call(t).slice(8,-1)},At="".split,Tt=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Ot(t)?At.call(t,""):Object(t)}:Object,Pt=function(t){return Tt(m(t))},Lt=Math.ceil,jt=Math.floor,zt=function(t){var e=+t;return e!=e||0===e?0:(e>0?jt:Lt)(e)},Rt=Math.max,Nt=Math.min,Bt=function(t,e){var r=zt(t);return r<0?Rt(r+e,0):Nt(r,e)},Zt=Math.min,Dt=function(t){return t>0?Zt(zt(t),9007199254740991):0},Ft=function(t){return Dt(t.length)},Ht=function(t){return function(e,r,n){var i,o=Pt(e),s=Ft(o),a=Bt(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},$t={includes:Ht(!0),indexOf:Ht(!1)}.indexOf,Gt=function(t,e){var r,n=Pt(t),i=0,o=[];for(r in n)!y(pt,r)&&y(n,r)&&o.push(r);for(;e.length>i;)y(n,r=e[i++])&&(~$t(o,r)||o.push(r));return o},Ut=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=Ut.concat("length","prototype"),Wt={f:Object.getOwnPropertyNames||function(t){return Gt(t,Vt)}},Xt={}.propertyIsEnumerable,Yt=Object.getOwnPropertyDescriptor,qt={f:Yt&&!Xt.call({1:2},1)?function(t){var e=Yt(this,t);return!!e&&e.enumerable}:Xt},Kt=Object.getOwnPropertyDescriptor,Jt={f:e?Kt:function(t,e){if(t=Pt(t),e=J(e),I)try{return Kt(t,e)}catch(t){}if(y(t,e))return et(!qt.f.call(t,e),t[e])}},Qt=1..valueOf,te=function(t){return Qt.call(t)},ee={};ee[Y("toStringTag")]="z";var re="[object z]"===String(ee),ne=Y("toStringTag"),ie="Arguments"==Ot(function(){return arguments}()),oe=re?Ot: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=Object(t),ne))?r:ie?Ot(e):"Object"==(n=Ot(e))&&u(e.callee)?"Arguments":n},se=function(t){if("Symbol"===oe(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},ae="[\t\n\v\f\r \u2028\u2029\ufeff]",ue=RegExp("^"+ae+ae+"*"),le=RegExp(ae+ae+"*$"),ce=function(t){return function(e){var r=se(m(e));return 1&t&&(r=r.replace(ue,"")),2&t&&(r=r.replace(le,"")),r}},he={start:ce(1),end:ce(2),trim:ce(3)},pe=Wt.f,fe=Jt.f,ge=tt.f,de=he.trim,me="Number",_e=a.Number,ve=_e.prototype,ye=function(t){var e=K(t,"number");return"bigint"==typeof e?e:be(e)},be=function(t){var e,r,n,i,o,s,a,u,l=K(t,"number");if(R(l))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(43===(e=(l=de(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,n)}return+l};if(d(me,!_e(" 0o1")||!_e("0b1")||_e("+0x1"))){for(var xe,Se=function(e){var r=arguments.length<1?0:_e(ye(e)),n=this;return n instanceof Se&&t((function(){te(n)}))?Et(Object(r),n,Se):r},Me=e?pe(_e):"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(","),Ie=0;Me.length>Ie;Ie++)y(_e,xe=Me[Ie])&&!y(Se,xe)&&ge(Se,xe,fe(_e,xe));Se.prototype=ve,ve.constructor=Se,Ct(a,me,Se)}var Ce={f:Object.getOwnPropertySymbols},ke=E("Reflect","ownKeys")||function(t){var e=Wt.f(C(t)),r=Ce.f;return r?e.concat(r(t)):e},Ee=function(t,e){for(var r=ke(e),n=tt.f,i=Jt.f,o=0;o<r.length;o++){var s=r[o];y(t,s)||n(t,s,i(e,s))}},we=Jt.f,Oe=function(t,e){var r,n,i,o,s,u=t.target,l=t.global,c=t.stat;if(r=l?a:c?a[u]||Z(u,{}):(a[u]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=we(r,n))&&s.value:r[n],!d(l?n:u+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ee(o,i)}(t.sham||i&&i.sham)&&rt(o,"sham",!0),Ct(r,n,o,t)}},Ae=Array.isArray||function(t){return"Array"==Ot(t)},Te=[],Pe=E("Reflect","construct"),Le=/^\s*(?:class|function)\b/,je=Le.exec,ze=!Le.exec((function(){})),Re=function(t){if(!u(t))return!1;try{return Pe(Object,Te,t),!0}catch(t){return!1}},Ne=!Pe||t((function(){var t;return Re(Re.call)||!Re(Object)||!Re((function(){t=!0}))||t}))?function(t){if(!u(t))return!1;switch(oe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ze||!!je.call(Le,at(t))}:Re,Be=Y("species"),Ze=function(t,e){return new(function(t){var e;return Ae(t)&&(e=t.constructor,(Ne(e)&&(e===Array||Ae(e.prototype))||b(e)&&null===(e=e[Be]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},De=function(t,e,r){var n=J(e);n in t?tt.f(t,n,et(0,r)):t[n]=r},Fe=Y("species"),He=function(e){return L>=51||!t((function(){var t=[];return(t.constructor={})[Fe]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$e=He("splice"),Ge=Math.max,Ue=Math.min,Ve=9007199254740991,We="Maximum allowed length exceeded";Oe({target:"Array",proto:!0,forced:!$e},{splice:function(t,e){var r,n,i,o,s,a,u=_(this),l=Ft(u),c=Bt(t,l),h=arguments.length;if(0===h?r=n=0:1===h?(r=0,n=l-c):(r=h-2,n=Ue(Ge(zt(e),0),l-c)),l+r-n>Ve)throw TypeError(We);for(i=Ze(u,n),o=0;o<n;o++)(s=c+o)in u&&De(i,o,u[s]);if(i.length=n,r<n){for(o=c;o<l-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-n+r;o--)delete u[o-1]}else if(r>n)for(o=l-n;o>c;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<r;o++)u[o+c]=arguments[o+2];return u.length=l-n+r,i}});var Xe=He("slice"),Ye=Y("species"),qe=[].slice,Ke=Math.max;Oe({target:"Array",proto:!0,forced:!Xe},{slice:function(t,e){var r,n,i,o=Pt(this),s=Ft(o),a=Bt(t,s),u=Bt(void 0===e?s:e,s);if(Ae(o)&&(r=o.constructor,(Ne(r)&&(r===Array||Ae(r.prototype))||b(r)&&null===(r=r[Ye]))&&(r=void 0),r===Array||void 0===r))return qe.call(o,a,u);for(n=new(void 0===r?Array:r)(Ke(u-a,0)),i=0;a<u;a++,i++)a in o&&De(n,i,o[a]);return n.length=i,n}});var Je=re?{}.toString:function(){return"[object "+oe(this)+"]"};re||Ct(Object.prototype,"toString",Je,{unsafe:!0});var Qe=function(){var t=C(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},tr=It.PROPER,er="toString",rr=RegExp.prototype,nr=rr.toString,ir=t((function(){return"/a/b"!=nr.call({source:"a",flags:"b"})})),or=tr&&nr.name!=er;(ir||or)&&Ct(RegExp.prototype,er,(function(){var t=C(this),e=se(t.source),r=t.flags;return"/"+e+"/"+se(void 0===r&&t instanceof RegExp&&!("flags"in rr)?Qe.call(t):r)}),{unsafe:!0});var sr=function(t,e){return(sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function ar(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}sr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ur,lr,cr=function(){return(cr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},hr=[].join,pr=Tt!=Object,fr=(ur=",",!!(lr=[]["join"])&&t((function(){lr.call(null,ur||function(){throw 1},1)})));Oe({target:"Array",proto:!0,forced:pr||!fr},{join:function(t){return hr.call(Pt(this),void 0===t?",":t)}});var gr=Object.keys||function(t){return Gt(t,Ut)};Oe({target:"Object",stat:!0,forced:t((function(){gr(1)}))},{keys:function(t){return gr(_(t))}});var dr,mr=a.RegExp,_r={UNSUPPORTED_Y:t((function(){var t=mr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:t((function(){var t=mr("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},vr=e?Object.defineProperties:function(t,e){C(t);for(var r,n=gr(e),i=n.length,o=0;i>o;)tt.f(t,r=n[o++],e[r]);return t},yr=E("document","documentElement"),br=ht("IE_PROTO"),xr=function(){},Sr=function(t){return"<script>"+t+"</"+"script>"},Mr=function(t){t.write(Sr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ir=function(){try{dr=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ir="undefined"!=typeof document?document.domain&&dr?Mr(dr):((e=M("iframe")).style.display="none",yr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Sr("document.F=Object")),t.close(),t.F):Mr(dr);for(var r=Ut.length;r--;)delete Ir.prototype[Ut[r]];return Ir()};pt[br]=!0;var Cr,kr,Er=Object.create||function(t,e){var r;return null!==t?(xr.prototype=C(t),r=new xr,xr.prototype=null,r[br]=t):r=Ir(),void 0===e?r:vr(r,e)},wr=a.RegExp,Or=t((function(){var t=wr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Ar=a.RegExp,Tr=t((function(){var t=Ar("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Pr=bt.get,Lr=RegExp.prototype.exec,jr=H("native-string-replace",String.prototype.replace),zr=Lr,Rr=(Cr=/a/,kr=/b*/g,Lr.call(Cr,"a"),Lr.call(kr,"a"),0!==Cr.lastIndex||0!==kr.lastIndex),Nr=_r.UNSUPPORTED_Y||_r.BROKEN_CARET,Br=void 0!==/()??/.exec("")[1];(Rr||Br||Nr||Or||Tr)&&(zr=function(t){var e,r,n,i,o,s,a,u=this,l=Pr(u),c=se(t),h=l.raw;if(h)return h.lastIndex=u.lastIndex,e=zr.call(h,c),u.lastIndex=h.lastIndex,e;var p=l.groups,f=Nr&&u.sticky,g=Qe.call(u),d=u.source,m=0,_=c;if(f&&(-1===(g=g.replace("y","")).indexOf("g")&&(g+="g"),_=c.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(d="(?: "+d+")",_=" "+_,m++),r=new RegExp("^(?:"+d+")",g)),Br&&(r=new RegExp("^"+d+"$(?!\\s)",g)),Rr&&(n=u.lastIndex),i=Lr.call(f?r:u,_),f?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Rr&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Br&&i&&i.length>1&&jr.call(i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&p)for(i.groups=s=Er(null),o=0;o<p.length;o++)s[(a=p[o])[0]]=i[a[1]];return i});var Zr=zr;Oe({target:"RegExp",proto:!0,forced:/./.exec!==Zr},{exec:Zr});var Dr=Y("species"),Fr=RegExp.prototype,Hr=function(e,r,n,i){var o=Y(e),s=!t((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=s&&!t((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Dr]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!s||!a||n){var u=/./[o],l=r(o,""[e],(function(t,e,r,n,i){var o=e.exec;return o===Zr||o===Fr.exec?s&&!i?{done:!0,value:u.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}));Ct(String.prototype,e,l[0]),Ct(Fr,o,l[1])}i&&rt(Fr[o],"sham",!0)},$r=Y("match"),Gr=Y("species"),Ur=function(t,e){var r,n=C(t).constructor;return void 0===n||null==(r=C(n)[Gr])?e:function(t){if(Ne(t))return t;throw TypeError(N(t)+" is not a constructor")}(r)},Vr=function(t){return function(e,r){var n,i,o=se(m(e)),s=zt(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},Wr={codeAt:Vr(!1),charAt:Vr(!0)}.charAt,Xr=function(t,e,r){return e+(r?Wr(t,e).length:1)},Yr=function(t,e){var r=t.exec;if(u(r)){var n=r.call(t,e);return null!==n&&C(n),n}if("RegExp"===Ot(t))return Zr.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")},qr=_r.UNSUPPORTED_Y,Kr=[].push,Jr=Math.min,Qr=4294967295;Hr("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,i,o=se(m(this)),s=void 0===r?Qr:r>>>0;if(0===s)return[];if(void 0===t)return[o];if(!b(n=t)||!(void 0!==(i=n[$r])?i:"RegExp"==Ot(n)))return e.call(o,t,s);for(var a,u,l,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=new RegExp(t.source,h+"g");(a=Zr.call(f,o))&&!((u=f.lastIndex)>p&&(c.push(o.slice(p,a.index)),a.length>1&&a.index<o.length&&Kr.apply(c,a.slice(1)),l=a[0].length,p=u,c.length>=s));)f.lastIndex===a.index&&f.lastIndex++;return p===o.length?!l&&f.test("")||c.push(""):c.push(o.slice(p)),c.length>s?c.slice(0,s):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=m(this),o=null==e?void 0:B(e,t);return o?o.call(e,i,r):n.call(se(i),e,r)},function(t,i){var o=C(this),s=se(t),a=r(n,o,s,i,n!==e);if(a.done)return a.value;var u=Ur(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(qr?"g":"y"),h=new u(qr?"^(?:"+o.source+")":o,c),p=void 0===i?Qr:i>>>0;if(0===p)return[];if(0===s.length)return null===Yr(h,s)?[s]:[];for(var f=0,g=0,d=[];g<s.length;){h.lastIndex=qr?0:g;var m,_=Yr(h,qr?s.slice(g):s);if(null===_||(m=Jr(Dt(h.lastIndex+(qr?g:0)),s.length))===f)g=Xr(s,g,l);else{if(d.push(s.slice(f,g)),d.length===p)return d;for(var v=1;v<=_.length-1;v++)if(d.push(_[v]),d.length===p)return d;g=f=m}}return d.push(s.slice(f)),d}]}),!!t((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),qr);var tn=Math.floor,en="".replace,rn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nn=/\$([$&'`]|\d{1,2})/g,on=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,u=nn;return void 0!==i&&(i=_(i),u=rn),en.call(o,u,(function(o,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=i[u.slice(1,-1)];break;default:var c=+u;if(0===c)return o;if(c>a){var h=tn(c/10);return 0===h?o:h<=a?void 0===n[h-1]?u.charAt(1):n[h-1]+u.charAt(1):o}l=n[c-1]}return void 0===l?"":l}))},sn=Y("replace"),an=Math.max,un=Math.min,ln="$0"==="a".replace(/./,"$0"),cn=!!/./[sn]&&""===/./[sn]("a","$0");Hr("replace",(function(t,e,r){var n=cn?"$":"$0";return[function(t,r){var n=m(this),i=null==t?void 0:B(t,sn);return i?i.call(t,n,r):e.call(se(n),t,r)},function(t,i){var o=C(this),s=se(t);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var a=r(e,o,s,i);if(a.done)return a.value}var l=u(i);l||(i=se(i));var c=o.global;if(c){var h=o.unicode;o.lastIndex=0}for(var p=[];;){var f=Yr(o,s);if(null===f)break;if(p.push(f),!c)break;""===se(f[0])&&(o.lastIndex=Xr(s,Dt(o.lastIndex),h))}for(var g,d="",m=0,_=0;_<p.length;_++){f=p[_];for(var v=se(f[0]),y=an(un(zt(f.index),s.length),0),b=[],x=1;x<f.length;x++)b.push(void 0===(g=f[x])?g:String(g));var S=f.groups;if(l){var M=[v].concat(b,y,s);void 0!==S&&M.push(S);var I=se(i.apply(void 0,M))}else I=on(v,s,y,b,S,i);y>=m&&(d+=s.slice(m,y)+I,m=y+v.length)}return d+s.slice(m)}]}),!!t((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ln||cn);var hn=function t(){!function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)};function pn(t){return Object.keys(t).reduce((function(e,r){return t[r]&&e.push(r+":"+t[r]),e}),[]).join(";")}function fn(t){return t?t+"px":void 0}var gn=function(t){function e(e,r){var n=t.call(this)||this;return n.cluster_=e,n.styles_=r,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(e.getMap()),n}return ar(e,t),e.prototype.onAdd=function(){var t,e,r=this,n=this.cluster_.getMarkerClusterer(),i=google.maps.version.split("."),o=i[0],s=i[1],a=100*parseInt(o,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"contextmenu",(function(){google.maps.event.trigger(n,"contextmenu",r.cluster_)})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){if(google.maps.event.trigger(n,"click",r.cluster_),google.maps.event.trigger(n,"clusterclick",r.cluster_),n.getZoomOnClick()){var o=n.getMaxZoom(),s=r.cluster_.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==o&&n.getMap().getZoom()>o&&n.getMap().setZoom(o+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(n,"mouseover",r.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(n,"mouseout",r.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+pn({position:"absolute",top:fn(this.anchorText_[0]),left:fn(this.anchorText_[1]),color:this.style.textColor,"font-size":fn(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:fn(this.style.width),"line-height":fn(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),r=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),n={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n={width:fn(this.style.width),height:fn(this.style.height)};else{var i=[-1*r,-1*e+this.style.width,-1*r+this.style.height,-1*e];n={clip:"rect("+i[0]+"px, "+i[1]+"px, "+i[2]+"px, "+i[3]+"px)"}}var o=this.sums_.url?{width:"100%",height:"100%"}:{},s=pn(cr(cr({position:"absolute",top:fn(r),left:fn(e)},n),o));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+s+'"/>'},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.sums_.url?cr(cr({},this.styles_[e]),{url:this.sums_.url}):this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return pn({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:fn(t.y),left:fn(t.x),width:fn(this.style.width),height:fn(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(hn),dn=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new gn(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),r=0;r<e.length;r++)t.extend(e[r].getPosition());return t},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,r=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,n=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(r,n),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var i=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(i===this.minClusterSize_)for(var s=0;s<i;s++)this.markers_[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},t.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},t.prototype.updateIcon=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(t<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()}},t.prototype.isMarkerAlreadyAdded_=function(t){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(var e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},t}(),mn=function(t,e,r){return void 0!==t[e]?t[e]:r};return function(t){function e(r,n,i){void 0===n&&(n=[]),void 0===i&&(i={});var o=t.call(this)||this;return o.options=i,o.markers_=[],o.clusters_=[],o.listeners_=[],o.activeMap_=null,o.ready_=!1,o.ariaLabelFn=o.options.ariaLabelFn||function(){return""},o.zIndex_=o.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,o.gridSize_=o.options.gridSize||60,o.minClusterSize_=o.options.minimumClusterSize||2,o.maxZoom_=o.options.maxZoom||null,o.styles_=o.options.styles||[],o.title_=o.options.title||"",o.zoomOnClick_=mn(o.options,"zoomOnClick",!0),o.averageCenter_=mn(o.options,"averageCenter",!1),o.ignoreHidden_=mn(o.options,"ignoreHidden",!1),o.enableRetinaIcons_=mn(o.options,"enableRetinaIcons",!1),o.imagePath_=o.options.imagePath||e.IMAGE_PATH,o.imageExtension_=o.options.imageExtension||e.IMAGE_EXTENSION,o.imageSizes_=o.options.imageSizes||e.IMAGE_SIZES,o.calculator_=o.options.calculator||e.CALCULATOR,o.batchSize_=o.options.batchSize||e.BATCH_SIZE,o.batchSizeIE_=o.options.batchSizeIE||e.BATCH_SIZE_IE,o.clusterClass_=o.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(o.batchSize_=o.batchSizeIE_),o.setupStyles_(),o.addMarkers(n,!0),o.setMap(r),o}return ar(e,t),e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var e=t.getMap(),r=e.minZoom||0,n=Math.min(e.maxZoom||100,e.mapTypes[e.getMapTypeId()].maxZoom),i=Math.min(Math.max(t.getMap().getZoom(),r),n);t.prevZoom_!=i&&(t.prevZoom_=i,t.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var e=this.getMarkers(),r=new google.maps.LatLngBounds,n=0;n<e.length;n++)!e[n].getVisible()&&this.getIgnoreHidden()||r.extend(e[n].getPosition());this.getMap().fitBounds(r,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},e.prototype.addMarkers=function(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.pushMarkerTo_(t[r]);e||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready_&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,e){var r=this.removeMarker_(t);return!e&&r&&this.repaint(),r},e.prototype.removeMarkers=function(t,e){for(var r=!1,n=0;n<t.length;n++){var i=this.removeMarker_(t[n]);r=r||i}return!e&&r&&this.repaint(),r},e.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var r=0;r<this.markers_.length;r++)if(t===this.markers_[r]){e=r;break}return-1!==e&&(t.setMap(null),this.markers_.splice(e,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},e.prototype.getExtendedBounds=function(t){var e=this.getProjection(),r=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(r);i.x+=this.gridSize_,i.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(o);return t.extend(s),t.extend(a),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();this.clusters_=[];for(e=0;e<this.markers_.length;e++){var r=this.markers_[e];r.isAdded=!1,t&&r.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,e){var r=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=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(i),Math.sqrt(1-i)))},e.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var e=4e4,r=null,n=0;n<this.clusters_.length;n++){var i,o=(i=this.clusters_[n]).getCenter();if(o){var s=this.distanceBetweenPoints_(o,t.getPosition());s<e&&(e=s,r=i)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((i=new dn(this)).addMarker(t),this.clusters_.push(i))},e.prototype.createClusters_=function(t){var e=this;if(this.ready_){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var r=new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()),n=this.getExtendedBounds(r),i=Math.min(t+this.batchSize_,this.markers_.length),o=t;o<i;o++){var s=this.markers_[o];!s.isAdded&&this.isMarkerInBounds_(s,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(i<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters_(i)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(o=0;o<this.clusters_.length;o++)this.clusters_[o].updateIcon()}}},e.CALCULATOR=function(t,e){for(var r=0,n=t.length,i=n;0!==i;)i=Math.floor(i/10),r++;return r=Math.min(r,e),{text:n.toString(),index:r,title:""}},e.withDefaultStyle=function(t){return cr({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e}(hn)})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@googlemaps/markerclustererplus", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Creates and manages per-zoom-level clusters for large amounts of markers.", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-jest": "^24.0.0", | ||
"eslint-plugin-jest": "^25.0.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
@@ -52,0 +52,0 @@ "geckodriver": "^2.0.0", |
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
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
807952
5567