function initMap(){var t={zoom:10,center:new google.maps.LatLng(37.8199,-122.4783),mapTypeId:"roadmap"};map=new google.maps.Map(document.getElementById("map"),t);var n=new google.maps.InfoWindow,i=mapData(),r=new google.maps.LatLngBounds;$.each(i,function(t,i){var f={lat:i.Lat,lng:i.Lng},e,u;r.extend(f);e={path:"M 0,0 L -14.22,-21.68 A 17 17 1 1 1 14.22,-21.68 L 0,0 z",fillColor:"#cf0072",fillOpacity:1,anchor:new google.maps.Point(0,0),strokeWeight:0,scale:1};u=new google.maps.Marker({position:f,map:map,title:i.TradingName,icon:e});google.maps.event.addListener(map,"click",function(){n.close()});google.maps.event.addListener(u,"click",function(){var f="",r,t;i.Website!=null&&(f="<br /><strong>Website:<\/strong> <a href='"+i.Website+"' target='blank'>"+i.Website+"<\/a>");r="";r=i.MobileMechanicID==1?"No":"Yes";t="<h2>"+i.TradingName+"<\/h2><hr>";t+='    <div class="info-window-container">';t+='    <div class="row">';t+='        <div class="col-md-4">Telephone<\/div>';t+='        <div class="col-md-8"><a href="tel:'+i.Telephone_Customer+'">'+i.Telephone_Customer+"<\/a><\/div>";t+="    <\/div>";t+='    <div class="row">';t+='        <div class="col-md-4">Email<\/div>';t+='        <div class="col-md-8"><a href="mailto:'+i.Email_Customer+'" target="blank">'+i.Email_Customer+"<\/a><\/div>";t+="    <\/div>";i.Website!=null&&(t+='    <div class="row">',t+='        <div class="col-md-4">Website<\/div>',t+='        <div class="col-md-8"><a href="'+i.Website+'" target="blank">'+i.Website.replace("http://","").replace("https://","")+"<\/a><\/div>",t+="    <\/div>");t+='    <div class="row">';t+='        <div class="col-md-4">Mobile mechanic?<\/div>';t+='        <div class="col-md-8">'+r+"<\/div>";t+="    <\/div>";t+="    <\/div>";n.setContent(t);n.open(map,u)});markers.push(u)});addClustering(function(){setMapBounds()})}function mapData(){return GetGenericAjaxObject("/Home/JSON_ShopMapMarkers")}function addClustering(n){var t=[{width:40,height:40,url:getClusterIcon("#40003d"),textColor:"white",textSize:18},{width:50,height:50,url:getClusterIcon("#5A1A57"),textColor:"white",textSize:18},{width:50,height:50,url:getClusterIcon("#733370"),textColor:"white",textSize:18},{width:50,height:50,url:getClusterIcon("A666A3"),textColor:"white",textSize:18},{width:50,height:50,url:getClusterIcon("BF7FBC"),textColor:"white",textSize:18}];markerCluster?(markerCluster.clearMarkers(),markerCluster.removeMarkers(markers),markerCluster=new MarkerClusterer(map,markers,{styles:t})):markerCluster=new MarkerClusterer(map,markers,{styles:t});n&&n()}function setMapBounds(){setTimeout(function(){for(var t=new google.maps.LatLngBounds,n=0;n<markers.length;n++)t.extend(markers[n].getPosition());map.fitBounds(t)},1)}var markerCluster,map,markers=[],MarkerClusterer;getClusterIcon=function(n){var t=window.btoa('<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:'+n+';}<\/style><circle class="st0" cx="100" cy="100" r="100"/><\/svg>');return"data:image/svg+xml;base64,"+t};MarkerClusterer=function(){"use strict";function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function i(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function u(n,t,r){return t&&i(n.prototype,t),r&&i(n,r),n}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}});t&&o(n,t)}function f(n){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function o(n,t){return(o=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function s(n,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function c(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var o,i;if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n)){var r=[],u=!0,f=!1,e=void 0;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{u||null==i.return||i.return()}finally{if(f)throw e;}}return r}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}()}var h=function i(){t(this,i),function(n,t){for(var i in t.prototype)n.prototype[i]=t.prototype[i]}(i,google.maps.OverlayView)},l=function(n){function i(n,r){var u;return t(this,i),(u=s(this,f(i).call(this))).cluster_=n,u.styles_=r,u.className_=u.cluster_.getMarkerClusterer().getClusterClass(),u.center_=null,u.div_=null,u.sums_=null,u.visible_=!1,u.setMap(n.getMap()),u}return e(i,n),u(i,[{key:"onAdd",value:function(){var i,r,t=this,n=this.cluster_.getMarkerClusterer(),u=c(google.maps.version.split("."),2),f=u[0],e=u[1],o=100*parseInt(f,10)+parseInt(e,10);this.div_=document.createElement("div");this.div_.className=this.className_;this.visible_&&this.show();this.getPanes().overlayMouseTarget.appendChild(this.div_);this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){r=i});google.maps.event.addDomListener(this.div_,"mousedown",function(){i=!0;r=!1});o>=332&&google.maps.event.addDomListener(this.div_,"touchstart",function(n){n.stopPropagation()});google.maps.event.addDomListener(this.div_,"click",function(u){if(i=!1,!r){if(google.maps.event.trigger(n,"click",t.cluster_),google.maps.event.trigger(n,"clusterclick",t.cluster_),n.getZoomOnClick()){var f=n.getMaxZoom(),e=t.cluster_.getBounds();n.getMap().fitBounds(e);setTimeout(function(){n.getMap().fitBounds(e);null!==f&&n.getMap().getZoom()>f&&n.getMap().setZoom(f+1)},100)}u.cancelBubble=!0;u.stopPropagation&&u.stopPropagation()}});google.maps.event.addDomListener(this.div_,"mouseover",function(){google.maps.event.trigger(n,"mouseover",t.cluster_)});google.maps.event.addDomListener(this.div_,"mouseout",function(){google.maps.event.trigger(n,"mouseout",t.cluster_)})}},{key:"onRemove",value: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)}},{key:"draw",value:function(){if(this.visible_){var n=this.getPosFromLatLng_(this.center_);this.div_.style.top=n.y+"px";this.div_.style.left=n.x+"px"}}},{key:"hide",value:function(){this.div_&&(this.div_.style.display="none");this.visible_=!1}},{key:"show",value:function(){var n,u,f;if(this.div_){var e=this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text),r=this.backgroundPosition_.split(" "),t=parseInt(r[0].replace(/^\s+|\s+$/g,""),10),i=parseInt(r[1].replace(/^\s+|\s+$/g,""),10);if(this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),n="",this.cluster_.getMarkerClusterer().getEnableRetinaIcons())n="width: ".concat(this.width_,"px; height: ").concat(this.height_,"px");else{var o=-1*i,s=-1*t+this.width_,h=-1*i+this.height_,c=-1*t;n="clip: rect(".concat(o,"px, ").concat(s,"px, ").concat(h,"px, ").concat(c,"px)")}u=["position: absolute","top: ".concat(i,"px"),"left: ".concat(t,"px"),n].join(";");f=["position: absolute","top: ".concat(this.anchorText_[0],"px"),"left: ".concat(this.anchorText_[1],"px"),"color: ".concat(this.textColor_),"font-size: ".concat(this.textSize_,"px"),"font-family: ".concat(this.fontFamily_),"font-weight: ".concat(this.fontWeight_),"font-style: ".concat(this.fontStyle_),"text-decoration: ".concat(this.textDecoration_),"text-align: center","width: ".concat(this.width_,"px"),"line-height: ".concat(this.height_,"px")].join(";");this.div_.innerHTML="\n<img alt='".concat(this.sums_.text,'\' aria-hidden="true" src="').concat(this.url_,'" style="').concat(u,'"/>\n<div aria-label="').concat(e,'" tabindex="0" style="').concat(f,'">\n  <span aria-hidden="true">').concat(this.sums_.text,"<\/span>\n<\/div>\n");this.div_.title=void 0===this.sums_.title||""===this.sums_.title?this.cluster_.getMarkerClusterer().getTitle():this.sums_.title;this.div_.style.display=""}this.visible_=!0}},{key:"useStyle",value:function(n){var i,t;this.sums_=n;i=Math.max(0,n.index-1);i=Math.min(this.styles_.length-1,i);t=this.styles_[i];this.url_=t.url;this.height_=t.height;this.width_=t.width;this.anchorText_=t.anchorText||[0,0];this.anchorIcon_=t.anchorIcon||[Math.floor(this.height_/2),Math.floor(this.width_/2)];this.textColor_=t.textColor||"black";this.textSize_=t.textSize||11;this.textDecoration_=t.textDecoration||"none";this.fontWeight_=t.fontWeight||"bold";this.fontStyle_=t.fontStyle||"normal";this.fontFamily_=t.fontFamily||"Arial,sans-serif";this.backgroundPosition_=t.backgroundPosition||"0 0"}},{key:"setCenter",value:function(n){this.center_=n}},{key:"createCss_",value:function(n){return["z-index: ".concat(this.cluster_.getMarkerClusterer().getZIndex()),"cursor: pointer","position: absolute; top: ".concat(n.y,"px; left: ").concat(n.x,"px"),"width: ".concat(this.width_,"px; height: ").concat(this.height_,"px"),"-webkit-user-select: none","-khtml-user-select: none","-moz-user-select: none","-o-user-select: none","user-select: none"].join(";")}},{key:"getPosFromLatLng_",value:function(n){var t=this.getProjection().fromLatLngToDivPixel(n);return t.x=Math.floor(t.x-this.anchorIcon_[1]),t.y=Math.floor(t.y-this.anchorIcon_[0]),t}}]),i}(h),a=function(){function n(i){t(this,n);this.markerClusterer_=i;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 l(this,this.markerClusterer_.getStyles())}return u(n,[{key:"getSize",value:function(){return this.markers_.length}},{key:"getMarkers",value:function(){return this.markers_}},{key:"getCenter",value:function(){return this.center_}},{key:"getMap",value:function(){return this.map_}},{key:"getMarkerClusterer",value:function(){return this.markerClusterer_}},{key:"getBounds",value:function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),i=this.getMarkers(),n=0;n<i.length;n++)t.extend(i[n].getPosition());return t}},{key:"remove",value:function(){this.clusterIcon_.setMap(null);this.markers_=[];delete this.markers_}},{key:"addMarker",value:function(n){var i,u,r;if(this.isMarkerAlreadyAdded_(n))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,f=(this.center_.lat()*(t-1)+n.getPosition().lat())/t,e=(this.center_.lng()*(t-1)+n.getPosition().lng())/t;this.center_=new google.maps.LatLng(f,e);this.calculateBounds_()}}else this.center_=n.getPosition(),this.calculateBounds_();if(n.isAdded=!0,this.markers_.push(n),i=this.markers_.length,u=this.markerClusterer_.getMaxZoom(),null!==u&&this.map_.getZoom()>u)n.getMap()!==this.map_&&n.setMap(this.map_);else if(i<this.minClusterSize_)n.getMap()!==this.map_&&n.setMap(this.map_);else if(i===this.minClusterSize_)for(r=0;r<i;r++)this.markers_[r].setMap(null);else n.setMap(null);return this.updateIcon_(),!0}},{key:"isMarkerInClusterBounds",value:function(n){return this.bounds_.contains(n.getPosition())}},{key:"calculateBounds_",value:function(){var n=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(n)}},{key:"updateIcon_",value:function(){var r=this.markers_.length,n=this.markerClusterer_.getMaxZoom(),t,i;null!==n&&this.map_.getZoom()>n?this.clusterIcon_.hide():r<this.minClusterSize_?this.clusterIcon_.hide():(t=this.markerClusterer_.getStyles().length,i=this.markerClusterer_.getCalculator()(this.markers_,t),this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(i),this.clusterIcon_.show())}},{key:"isMarkerAlreadyAdded_",value:function(n){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(n);for(var t=0;t<this.markers_.length;t++)if(n===this.markers_[t])return!0;return!1}}]),n}(),r=function(n,t,i){return void 0!==n[t]?n[t]:i},n=function(n){function i(n){var u,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t(this,i),(u=s(this,f(i).call(this))).options=o,u.markers_=[],u.clusters_=[],u.listeners_=[],u.activeMap_=null,u.ready_=!1,u.ariaLabelFn=u.options.ariaLabelFn||function(){return""},u.zIndex_=u.options.zIndex||google.maps.Marker.MAX_ZINDEX+1,u.gridSize_=u.options.gridSize||60,u.minClusterSize_=u.options.minimumClusterSize||2,u.maxZoom_=u.options.maxZoom||null,u.styles_=u.options.styles||[],u.title_=u.options.title||"",u.zoomOnClick_=r(u.options,"zoomOnClick",!0),u.averageCenter_=r(u.options,"averageCenter",!1),u.ignoreHidden_=r(u.options,"ignoreHidden",!1),u.enableRetinaIcons_=r(u.options,"enableRetinaIcons",!1),u.imagePath_=u.options.imagePath||i.IMAGE_PATH,u.imageExtension_=u.options.imageExtension||i.IMAGE_EXTENSION,u.imageSizes_=u.options.imageSizes||i.IMAGE_SIZES,u.calculator_=u.options.calculator||i.CALCULATOR,u.batchSize_=u.options.batchSize||i.BATCH_SIZE,u.batchSizeIE_=u.options.batchSizeIE||i.BATCH_SIZE_IE,u.clusterClass_=u.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(u.batchSize_=u.batchSizeIE_),u.setupStyles_(),u.addMarkers(e,!0),u.setMap(n),u}return e(i,n),u(i,[{key:"onAdd",value:function(){var n=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 t=n.getMap(),r=t.minZoom||0,u=Math.min(t.maxZoom||100,t.mapTypes[t.getMapTypeId()].maxZoom),i=Math.min(Math.max(n.getMap().getZoom(),r),u);n.prevZoom_!=i&&(n.prevZoom_=i,n.resetViewport_(!1))}),google.maps.event.addListener(this.getMap(),"idle",function(){n.redraw_()})]}},{key:"onRemove",value:function(){for(var t,i,n=0;n<this.markers_.length;n++)this.markers_[n].getMap()!==this.activeMap_&&this.markers_[n].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],i=0;i<this.listeners_.length;i++)google.maps.event.removeListener(this.listeners_[i]);this.listeners_=[];this.activeMap_=null;this.ready_=!1}},{key:"draw",value:function(){}},{key:"setupStyles_",value:function(){var n,t;if(!(this.styles_.length>0))for(n=0;n<this.imageSizes_.length;n++)t=this.imageSizes_[n],this.styles_.push({url:this.imagePath_+(n+1)+"."+this.imageExtension_,height:t,width:t})}},{key:"fitMapToMarkers",value:function(){for(var t=this.getMarkers(),i=new google.maps.LatLngBounds,n=0;n<t.length;n++)!t[n].getVisible()&&this.getIgnoreHidden()||i.extend(t[n].getPosition());this.getMap().fitBounds(i)}},{key:"getGridSize",value:function(){return this.gridSize_}},{key:"setGridSize",value:function(n){this.gridSize_=n}},{key:"getMinimumClusterSize",value:function(){return this.minClusterSize_}},{key:"setMinimumClusterSize",value:function(n){this.minClusterSize_=n}},{key:"getMaxZoom",value:function(){return this.maxZoom_}},{key:"setMaxZoom",value:function(n){this.maxZoom_=n}},{key:"getZIndex",value:function(){return this.zIndex_}},{key:"setZIndex",value:function(n){this.zIndex_=n}},{key:"getStyles",value:function(){return this.styles_}},{key:"setStyles",value:function(n){this.styles_=n}},{key:"getTitle",value:function(){return this.title_}},{key:"setTitle",value:function(n){this.title_=n}},{key:"getZoomOnClick",value:function(){return this.zoomOnClick_}},{key:"setZoomOnClick",value:function(n){this.zoomOnClick_=n}},{key:"getAverageCenter",value:function(){return this.averageCenter_}},{key:"setAverageCenter",value:function(n){this.averageCenter_=n}},{key:"getIgnoreHidden",value:function(){return this.ignoreHidden_}},{key:"setIgnoreHidden",value:function(n){this.ignoreHidden_=n}},{key:"getEnableRetinaIcons",value:function(){return this.enableRetinaIcons_}},{key:"setEnableRetinaIcons",value:function(n){this.enableRetinaIcons_=n}},{key:"getImageExtension",value:function(){return this.imageExtension_}},{key:"setImageExtension",value:function(n){this.imageExtension_=n}},{key:"getImagePath",value:function(){return this.imagePath_}},{key:"setImagePath",value:function(n){this.imagePath_=n}},{key:"getImageSizes",value:function(){return this.imageSizes_}},{key:"setImageSizes",value:function(n){this.imageSizes_=n}},{key:"getCalculator",value:function(){return this.calculator_}},{key:"setCalculator",value:function(n){this.calculator_=n}},{key:"getBatchSizeIE",value:function(){return this.batchSizeIE_}},{key:"setBatchSizeIE",value:function(n){this.batchSizeIE_=n}},{key:"getClusterClass",value:function(){return this.clusterClass_}},{key:"setClusterClass",value:function(n){this.clusterClass_=n}},{key:"getMarkers",value:function(){return this.markers_}},{key:"getTotalMarkers",value:function(){return this.markers_.length}},{key:"getClusters",value:function(){return this.clusters_}},{key:"getTotalClusters",value:function(){return this.clusters_.length}},{key:"addMarker",value:function(n,t){this.pushMarkerTo_(n);t||this.redraw_()}},{key:"addMarkers",value:function(n,t){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&this.pushMarkerTo_(n[i]);t||this.redraw_()}},{key:"pushMarkerTo_",value:function(n){var t=this;n.getDraggable()&&google.maps.event.addListener(n,"dragend",function(){t.ready_&&(n.isAdded=!1,t.repaint())});n.isAdded=!1;this.markers_.push(n)}},{key:"removeMarker",value:function(n,t){var i=this.removeMarker_(n);return!t&&i&&this.repaint(),i}},{key:"removeMarkers",value:function(n,t){for(var u,i=!1,r=0;r<n.length;r++)u=this.removeMarker_(n[r]),i=i||u;return!t&&i&&this.repaint(),i}},{key:"removeMarker_",value:function(n){var i=-1,t;if(this.markers_.indexOf)i=this.markers_.indexOf(n);else for(t=0;t<this.markers_.length;t++)if(n===this.markers_[t]){i=t;break}return-1!==i&&(n.setMap(null),this.markers_.splice(i,1),!0)}},{key:"clearMarkers",value:function(){this.resetViewport_(!0);this.markers_=[]}},{key:"repaint",value:function(){var n=this.clusters_.slice();this.clusters_=[];this.resetViewport_(!1);this.redraw_();setTimeout(function(){for(var t=0;t<n.length;t++)n[t].remove()},0)}},{key:"getExtendedBounds",value:function(n){var t=this.getProjection(),e=new google.maps.LatLng(n.getNorthEast().lat(),n.getNorthEast().lng()),o=new google.maps.LatLng(n.getSouthWest().lat(),n.getSouthWest().lng()),r=t.fromLatLngToDivPixel(e),i,u,f;return r.x+=this.gridSize_,r.y-=this.gridSize_,i=t.fromLatLngToDivPixel(o),i.x-=this.gridSize_,i.y+=this.gridSize_,u=t.fromDivPixelToLatLng(r),f=t.fromDivPixelToLatLng(i),n.extend(u),n.extend(f),n}},{key:"redraw_",value:function(){this.createClusters_(0)}},{key:"resetViewport_",value:function(n){for(var i,r,t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],i=0;i<this.markers_.length;i++)r=this.markers_[i],r.isAdded=!1,n&&r.setMap(null)}},{key:"distanceBetweenPoints_",value:function(n,t){var i=(t.lat()-n.lat())*Math.PI/180,r=(t.lng()-n.lng())*Math.PI/180,u=Math.sin(i/2)*Math.sin(i/2)+Math.cos(n.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 12742*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}},{key:"isMarkerInBounds_",value:function(n,t){return t.contains(n.getPosition())}},{key:"addToClosestCluster_",value:function(n){for(var r,u,f,e,o=4e4,t=null,i=0;i<this.clusters_.length;i++)r=this.clusters_[i],u=r.getCenter(),u&&(f=this.distanceBetweenPoints_(u,n.getPosition()),f<o&&(o=f,t=r));t&&t.isMarkerInClusterBounds(n)?t.addMarker(n):(e=new a(this),e.addMarker(n),this.clusters_.push(e))}},{key:"createClusters_",value:function(n){var f=this,u,t;if(this.ready_){0===n&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic));u=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.020707717434718,-178.48388434375),new google.maps.LatLng(-85.081364443845445,178.00048865625));for(var e=this.getExtendedBounds(u),i=Math.min(n+this.batchSize_,this.markers_.length),r=n;r<i;r++)t=this.markers_[r],!t.isAdded&&this.isMarkerInBounds_(t,e)&&(!this.ignoreHidden_||this.ignoreHidden_&&t.getVisible())&&this.addToClosestCluster_(t);i<this.markers_.length?this.timerRefStatic=window.setTimeout(function(){f.createClusters_(i)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}}}],[{key:"CALCULATOR",value:function(n,t){for(var i=0,u=n.length,r=u;0!==r;)r=Math.floor(r/10),i++;return i=Math.min(i,t),{text:u.toString(),index:i,title:""}}}]),i}(h);return n.BATCH_SIZE=2e3,n.BATCH_SIZE_IE=500,n.IMAGE_PATH="../images/m",n.IMAGE_EXTENSION="png",n.IMAGE_SIZES=[53,56,66,78,90],n}()