PageSourceSearch

https://www.atlanticselfstorage.com/_next/static/chunks/4767.7197f26b931abbcb.js

js atlanticselfstorage.com collected 2026-10-08 06:19:42 UTC 25,571 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4767],{74767:(t,e,r)=>{var s;r.r(e),r.d(e,{AbstractAlgorithm:()=>ts,AbstractViewportAlgorithm:()=>ti,Cluster:()=>W,ClusterStats:()=>th,DefaultRenderer:()=>tc,GridAlgorithm:()=>to,MarkerClusterer:()=>tf,MarkerClustererEvents:()=>s,MarkerUtils:()=>K,NoopAlgorithm:()=>ta,SuperClusterAlgorithm:()=>tl,SuperClusterViewportAlgorithm:()=>tu,defaultOnClusterClickHandler:()=>tm,distanceBetweenPoints:()=>Q,extendBoundsToPaddedViewport:()=>Y,extendPixelBounds:()=>te,filterMarkersToPaddedViewport:()=>X,getPaddedViewport:()=>H,noop:()=>tn,pixelBoundsToLatLngBounds:()=>tr});let{getOwnPropertyNames:i,getOwnPropertySymbols:n}=Object,{hasOwnProperty:o}=Object.prototype;function a(t,e){return function(r,s,i){return t(r,s,i)&&e(r,s,i)}}function l(t){return function(e,r,s){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,s);let{cache:i}=s,n=i.get(e),o=i.get(r);if(n&&o)return n===r&&o===e;i.set(e,r),i.set(r,e);let a=t(e,r,s);return i.delete(e),i.delete(r),a}}function u(t){return i(t).concat(n(t))}let h=Object.hasOwn||((t,e)=>o.call(t,e));function c(t,e){return t===e||!t&&!e&&t!=t&&e!=e}let{getOwnPropertyDescriptor:p,keys:m}=Object;function f(t,e){return t.byteLength===e.byteLength&&C(new Uint8Array(t),new Uint8Array(e))}function d(t,e,r){let s=t.length;if(e.length!==s)return!1;for(;s-- >0;)if(!r.equals(t[s],e[s],s,s,t,e,r))return!1;return!0}function g(t,e){return t.byteLength===e.byteLength&&C(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function y(t,e){return c(t.getTime(),e.getTime())}function b(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function k(t,e){return t===e}function w(t,e,r){let s,i,n=t.size;if(n!==e.size)return!1;if(!n)return!0;let o=Array(n),a=t.entries(),l=0;for(;(s=a.next())&&!s.done;){let n=e.entries(),a=!1,u=0;for(;(i=n.next())&&!i.done;){if(o[u]){u++;continue}let n=s.value,h=i.value;if(r.equals(n[0],h[0],l,u,t,e,r)&&r.equals(n[1],h[1],n[0],h[0],t,e,r)){a=o[u]=!0;break}u++}if(!a)return!1;l++}return!0}function M(t,e,r){let s=m(t),i=s.length;if(m(e).length!==i)return!1;for(;i-- >0;)if(!L(t,e,r,s[i]))return!1;return!0}function v(t,e,r){let s,i,n,o=u(t),a=o.length;if(u(e).length!==a)return!1;for(;a-- >0;)if(!L(t,e,r,s=o[a])||(i=p(t,s),n=p(e,s),(i||n)&&(!i||!n||i.configurable!==n.configurable||i.enumerable!==n.enumerable||i.writable!==n.writable)))return!1;return!0}function x(t,e){return c(t.valueOf(),e.valueOf())}function A(t,e){return t.source===e.source&&t.flags===e.flags}function E(t,e,r){let s,i,n=t.size;if(n!==e.size)return!1;if(!n)return!0;let o=Array(n),a=t.values();for(;(s=a.next())&&!s.done;){let n=e.values(),a=!1,l=0;for(;(i=n.next())&&!i.done;){if(!o[l]&&r.equals(s.value,i.value,s.value,i.value,t,e,r)){a=o[l]=!0;break}l++}if(!a)return!1}return!0}function C(t,e){let r=t.byteLength;if(e.byteLength!==r||t.byteOffset!==e.byteOffset)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function _(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function L(t,e,r,s){return("_owner"===s||"__o"===s||"__v"===s)&&(!!t.$$typeof||!!e.$$typeof)||h(e,s)&&r.equals(t[s],e[s],s,s,t,e,r)}let P={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},j=Object.prototype.toString,I=O();function O(t={}){let{circular:e=!1,createInternalComparator:r,createState:s,strict:i=!1}=t,n=function({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:s,areErrorsEqual:i,areFunctionsEqual:n,areMapsEqual:o,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:h,areSetsEqual:c,areTypedArraysEqual:p,areUrlsEqual:m,unknownTagComparators:f}){return function(d,g,y){if(d===g)return!0;
1if(null==d||null==g)return!1;let b=typeof d;if(b!==typeof g)return!1;if("object"!==b)return"number"===b?a(d,g,y):"function"===b&&n(d,g,y);let k=d.constructor;if(k!==g.constructor)return!1;if(k===Object)return l(d,g,y);if(Array.isArray(d))return e(d,g,y);if(k===Date)return s(d,g,y);if(k===RegExp)return h(d,g,y);if(k===Map)return o(d,g,y);if(k===Set)return c(d,g,y);let w=j.call(d);if("[object Date]"===w)return s(d,g,y);if("[object RegExp]"===w)return h(d,g,y);if("[object Map]"===w)return o(d,g,y);if("[object Set]"===w)return c(d,g,y);if("[object Object]"===w)return"function"!=typeof d.then&&"function"!=typeof g.then&&l(d,g,y);if("[object URL]"===w)return m(d,g,y);if("[object Error]"===w)return i(d,g,y);if("[object Arguments]"===w)return l(d,g,y);if(P[w])return p(d,g,y);if("[object ArrayBuffer]"===w)return t(d,g,y);if("[object DataView]"===w)return r(d,g,y);if("[object Boolean]"===w||"[object Number]"===w||"[object String]"===w)return u(d,g,y);if(f){let t=f[w];if(!t){let e=null!=d?d[Symbol.toStringTag]:void 0;e&&(t=f[e])}if(t)return t(d,g,y)}return!1}}(function({circular:t,createCustomConfig:e,strict:r}){let s={areArrayBuffersEqual:f,areArraysEqual:r?v:d,areDataViewsEqual:g,areDatesEqual:y,areErrorsEqual:b,areFunctionsEqual:k,areMapsEqual:r?a(w,v):w,areNumbersEqual:c,areObjectsEqual:r?v:M,arePrimitiveWrappersEqual:x,areRegExpsEqual:A,areSetsEqual:r?a(E,v):E,areTypedArraysEqual:r?a(C,v):C,areUrlsEqual:_,unknownTagComparators:void 0};if(e&&(s=Object.assign({},s,e(s))),t){let t=l(s.areArraysEqual),e=l(s.areMapsEqual),r=l(s.areObjectsEqual),i=l(s.areSetsEqual);s=Object.assign({},s,{areArraysEqual:t,areMapsEqual:e,areObjectsEqual:r,areSetsEqual:i})}return s}(t)),o=r?r(n):function(t,e,r,s,i,o,a){return n(t,e,a)};return function({circular:t,comparator:e,createState:r,equals:s,strict:i}){if(r)return function(n,o){let{cache:a=t?new WeakMap:void 0,meta:l}=r();return e(n,o,{cache:a,equals:s,meta:l,strict:i})};if(t)return function(t,r){return e(t,r,{cache:new WeakMap,equals:s,meta:void 0,strict:i})};let n={cache:void 0,equals:s,meta:void 0,strict:i};return function(t,r){return e(t,r,n)}}({circular:e,comparator:n,createState:s,equals:o,strict:i})}O({strict:!0}),O({circular:!0}),O({circular:!0,strict:!0}),O({createInternalComparator:()=>c}),O({strict:!0,createInternalComparator:()=>c}),O({circular:!0,createInternalComparator:()=>c}),O({circular:!0,createInternalComparator:()=>c,strict:!0});let S=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],T=new Uint32Array(96);class U{static from(t){if(!t||void 0===t.byteLength||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[e,r]=new Uint8Array(t,0,2);if(219!==e)throw Error("Data does not appear to be in a KDBush format.");let s=r>>4;if(1!==s)throw Error(`Got v${s} data when expected v1.`);let i=S[15&r];if(!i)throw Error("Unrecognized array type.");
1let[n]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new U(o,n,i,void 0,t)}constructor(t,e=64,r=Float64Array,s=ArrayBuffer,i){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let n=S.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-a%8)%8;if(n<0)throw Error(`Unexpected typed array class: ${r}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+a+l,2*t),this._pos=2*t,this._finished=!0;else{let i=this.data=new s(8+o+a+l);this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+a+l,2*t),this._pos=0,this._finished=!1,new Uint8Array(i,0,2).set([219,16+n]),new Uint16Array(i,2,1)[0]=e,new Uint32Array(i,4,1)[0]=t}}add(t,e){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return function t(e,r,s,i,n,o){if(n-i<=s)return;let a=i+n>>1;(function t(e,r,s,i,n,o){for(;n>i;){if(n-i>600){let a=n-i+1,l=s-i+1,u=Math.log(a),h=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*h*(a-h)/a)*(l-a/2<0?-1:1),p=Math.max(i,Math.floor(s-l*h/a+c)),m=Math.min(n,Math.floor(s+(a-l)*h/a+c));t(e,r,s,p,m,o)}let a=r[2*s+o],l=i,u=n;for(Z(e,r,i,s),r[2*n+o]>a&&Z(e,r,i,n);l<u;){for(Z(e,r,l,u),l++,u--;r[2*l+o]<a;)l++;for(;r[2*u+o]>a;)u--}r[2*i+o]===a?Z(e,r,i,u):Z(e,r,++u,n),u<=s&&(i=u+1),s<=u&&(n=u-1)}})(e,r,a,i,n,o),t(e,r,s,i,a-1,1-o),t(e,r,s,a+1,n,1-o)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,s){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:n,nodeSize:o}=this;T[0]=0,T[1]=i.length-1,T[2]=0;let a=3,l=[];for(;a>0;){let u=T[--a],h=T[--a],c=T[--a];if(h-c<=o){for(let o=c;o<=h;o++){let a=n[2*o],u=n[2*o+1];a>=t&&a<=r&&u>=e&&u<=s&&l.push(i[o])}continue}let p=c+h>>1,m=n[2*p],f=n[2*p+1];m>=t&&m<=r&&f>=e&&f<=s&&l.push(i[p]),(0===u?t<=m:e<=f)&&(T[a++]=c,T[a++]=p-1,T[a++]=1-u),(0===u?r>=m:s>=f)&&(T[a++]=p+1,T[a++]=h,T[a++]=1-u)}return l}within(t,e,r){let s=[];return this.withinInto(t,e,r,s),s}withinInto(t,e,r,s){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:n,nodeSize:o}=this;T[0]=0,T[1]=i.length-1,T[2]=0;let a=3,l=0,u=r*r;for(;a>0;){let h=T[--a],c=T[--a],p=T[--a];if(c-p<=o){for(let r=p;r<=c;r++)q(n[2*r],n[2*r+1],t,e)<=u&&(s[l++]=i[r]);continue}let m=p+c>>1,f=n[2*m],d=n[2*m+1];q(f,d,t,e)<=u&&(s[l++]=i[m]),(0===h?t-r<=f:e-r<=d)&&(T[a++]=p,T[a++]=m-1,T[a++]=1-h),(0===h?t+r>=f:e+r>=d)&&(T[a++]=m+1,T[a++]=c,T[a++]=1-h)}return l}}function Z(t,e,r,s){N(t,r,s),N(e,2*r,2*s),N(e,2*r+1,2*s+1)}function N(t,e,r){let s=t[e];t[e]=t[r],t[r]=s}function q(t,e,r,s){let i=t-r,n=e-s;return i*i+n*n}let z={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},B=Math.fround||(t=>e=>(t[0]=+e,t[0]))(new Float32Array(1));class D{constructor(t){this.options=Object.assign(Object.create(z),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){let{log:e,minZoom:r,maxZoom:s}=this.options;e&&console.time("total time");let i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let n=[];for(let e=0;e<t.length;e++){let r=t[e];if(!r.geometry)continue;let[s,i]=r.geometry.coordinates,o=B(R(s)),a=B(V(i));n.push(o,a,1/0,e,-1,1),this.options.reduce&&n.push(0)}let o=this.trees[s+1]=this._createTree(n);e&&console.timeEnd(i);for(let t=s;t>=r;t--){let r=+Date.now();o=this.trees[t]=this._createTree(this._cluster(o,t)),e&&console.log("z%d: %d clusters in %dms",t,o.numItems,Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){let t=this.getClusters([r,s,180,n],e),o=this.getClusters([-180,s,i,n],e);return t.concat(o)}let o=this.trees[this._limitZoom(e)],a=o.range(R(r),V(n),R(i),V(s)),l=o.data,u=[];for(let t of a){let e=this.stride*t;u.push(l[e+5]>1?F(l,e,this.clusterProps):this.points[l[e+3]])}return u}getChildren(t){let e=this._getOriginId(t),r=this._getOriginZoom(t),s="No cluster with the specified id.",i=this.trees[r];if(!i)throw Error(s);let n=i.data;if(e*this.stride>=n.length)throw Error(s);let o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=n[e*this.stride],l=n[e*this.stride+1],u=i.within(a,l,o),h=[];for(let e of u){let r=e*this.stride;n[r+4]===t&&h.push(n[r+5]>1?F(n,r,this.clusterProps):this.points[n[r+3]])}if(0===h.length)throw Error(s);return h}getLeaves(t,e,r){e=e||10,r=r||0;let s=[];return this._appendLeaves(s,t,e,r,0),s}getTile(t,e,r){let s=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:n,radius:o}=this.options,a=o/n,l=(r-a)/i,u=(r+1+a)/i,h={features:[]};return this._addTileFeatures(s.range((e-a)/i,l,(e+1+a)/i,u),s.data,e,r,i,h),0===e&&this._addTileFeatures(s.range(1-a/i,l,1,u),s.data,i,r,i,h),e===i-1&&this._addTileFeatures(s.range(0,l,a/i,u),s.data,-1,r,i,h),h.features.length?h:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){let r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,s,i){for(let n of this.getChildren(e)){let e=n.properties;if(e&&e.cluster?i+e.point_count<=s?i+=e.point_count:i=this._appendLeaves(t,e.cluster_id,r,s,i):i<s?i++:t.push(n),t.length===r)break}return i}_createTree(t){let e=new U(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,s,i,n){for(let o of t){let t,a,l,u,h=o*this.stride,c=e[h+5]>1;if(c)t=$(e,h,this.clusterProps),a=e[h],l=e[h+1];else{let r=this.points[e[h+3]];t=r.properties;let[s,i]=r.geometry.coordinates;a=R(s),l=V(i)}let p={type:1,geometry:[[Math.round(this.options.extent*(a*i-r)),Math.round(this.options.extent*(l*i-s))]],tags:t};void 0!==(u=c||this.options.generateId?e[h+3]:this.points[e[h+3]].id)&&(p.id=u),n.features.push(p)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){let{radius:r,extent:s,reduce:i,minPoints:n}=this.options,o=r/(s*Math.pow(2,e)),a=t.data,l=[],u=this.stride;for(let r=0;r<a.length;r+=u){if(a[r+2]<=e)continue;a[r+2]=e;let s=a[r],h=a[r+1],c=t.within(a[r],a[r+1],o),p=a[r+5],m=p;for(let t of c){let r=t*u;a[r+2]>e&&(m+=a[r+5])}if(m>p&&m>=n){let t,n=s*p,o=h*p,f=-1,d=((r/u|0)<<5)+(e+1)+this.points.length;for(let s of c){let l=s*u;if(a[l+2]<=e)continue;a[l+2]=e;let h=a[l+5];n+=a[l]*h,o+=a[l+1]*h,a[l+4]=d,i&&(t||(t=this._map(a,r,!0),f=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(a,l)))}a[r+4]=d,l.push(n/m,o/m,1/0,d,-1,m),i&&l.push(f)}else{for(let t=0;t<u;t++)l.push(a[r+t]);if(m>1)for(let t of c){let r=t*u;if(!(a[r+2]<=e)){a[r+2]=e;for(let t=0;t<u;t++)l.push(a[r+t])}}}}return l}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+5]>1){let s=this.clusterProps[t[e+6]];return r?Object.assign({},s):s}let s=this.points[t[e+3]].properties,i=this.options.map(s);return r&&i===s?Object.assign({},i):i}}function F(t,e,r){return{type:"Feature",id:t[e+3],properties:$(t,e,r),geometry:{type:"Point",coordinates:[(t[e]-.5)*360,360*Math.atan(Math.exp((180-360*t[e+1])*Math.PI/180)
1)/Math.PI-90]}}}function $(t,e,r){let s=t[e+5],i=s>=1e4?`${Math.round(s/1e3)}k`:s>=1e3?`${Math.round(s/100)/10}k`:s,n=t[e+6];return Object.assign(-1===n?{}:Object.assign({},r[n]),{cluster:!0,cluster_id:t[e+3],point_count:s,point_count_abbreviated:i})}function R(t){return t/360+.5}function V(t){let e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function G(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&0>e.indexOf(s)&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)0>e.indexOf(s[i])&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(r[s[i]]=t[s[i]]);return r}"function"==typeof SuppressedError&&SuppressedError;class K{static isAdvancedMarkerAvailable(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(Number.isFinite(t.position.lat)&&Number.isFinite(t.position.lng))return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class W{constructor({markers:t,position:e}){this.markers=[],t&&(this.markers=t),e&&(e instanceof google.maps.LatLng?this._position=e:this._position=new google.maps.LatLng(e))}get bounds(){if(0===this.markers.length&&!this._position)return;let t=new google.maps.LatLngBounds(this._position,this._position);for(let e of this.markers)t.extend(K.getPosition(e));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>K.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(K.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function J(t,e="assertion failed"){if(null==t)throw Error(e)}let X=(t,e,r,s)=>{let i=t.getBounds();J(i);let n=Y(i,e,s);return r.filter(t=>n.contains(K.getPosition(t)))},Y=(t,e,r)=>{let{northEast:s,southWest:i}=tt(t,e);return tr(te({northEast:s,southWest:i},r),e)},H=(t,e,r)=>
1{let s=Y(t,e,r),i=s.getNorthEast(),n=s.getSouthWest();return[n.lng(),n.lat(),i.lng(),i.lat()]},Q=(t,e)=>{let r=(e.lat-t.lat)*Math.PI/180,s=(e.lng-t.lng)*Math.PI/180,i=Math.sin(r/2),n=Math.sin(s/2),o=i*i+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*n*n;return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371},tt=(t,e)=>{let r=e.fromLatLngToDivPixel(t.getNorthEast()),s=e.fromLatLngToDivPixel(t.getSouthWest());return J(r),J(s),{northEast:r,southWest:s}},te=({northEast:t,southWest:e},r)=>(t.x+=r,t.y-=r,e.x-=r,e.y+=r,{northEast:t,southWest:e}),tr=({northEast:t,southWest:e},r)=>{let s=r.fromDivPixelToLatLng(e),i=r.fromDivPixelToLatLng(t);return new google.maps.LatLngBounds(s,i)};class ts{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return tn(t)}}class ti extends ts{constructor(t){var{viewportPadding:e=60}=t;super(G(t,["viewportPadding"])),this.viewportPadding=60,this.viewportPadding=e}calculate({markers:t,map:e,mapCanvasProjection:r}){let s=e.getZoom();return(J(s),s>=this.maxZoom)?{clusters:this.noop({markers:t}),changed:!1}:{clusters:this.cluster({markers:X(e,r,t,this.viewportPadding),map:e,mapCanvasProjection:r})}}}let tn=t=>t.map(t=>new W({position:K.getPosition(t),markers:[t]}));class to extends ti{constructor(t){var{maxDistance:e=4e4,gridSize:r=40}=t;super(G(t,["maxDistance","gridSize"])),this.clusters=[],this.state={zoom:-1},this.maxDistance=e,this.gridSize=r}calculate({markers:t,map:e,mapCanvasProjection:r}){let s=e.getZoom();J(s);let i={zoom:s},n=!1;return(this.state.zoom>=this.maxZoom&&i.zoom>=this.maxZoom||(n=!I(this.state,i)),this.state=i,s>=this.maxZoom)?{clusters:this.noop({markers:t}),changed:n}:{clusters:this.cluster({markers:X(e,r,t,this.viewportPadding),map:e,mapCanvasProjection:r})}}cluster({markers:t,map:e,mapCanvasProjection:r}){return this.clusters=[],t.forEach(t=>{this.addToClosestCluster(t,e,r)}),this.clusters}addToClosestCluster(t,e,r){let s=this.maxDistance,i=null;for(let e=0;
1e<this.clusters.length;e++){let r=this.clusters[e];J(r.bounds);let n=Q(r.bounds.getCenter().toJSON(),K.getPosition(t).toJSON());n<s&&(s=n,i=r)}if(i)if(J(i.bounds),Y(i.bounds,r,this.gridSize).contains(K.getPosition(t)))i.push(t);else{let e=new W({markers:[t]});this.clusters.push(e)}else{let e=new W({markers:[t]});this.clusters.push(e)}}}class ta extends ts{constructor(t){super(G(t,[]))}calculate({markers:t,map:e,mapCanvasProjection:r}){return{clusters:this.cluster({markers:t,map:e,mapCanvasProjection:r}),changed:!1}}cluster(t){return this.noop(t)}}class tl extends ts{constructor(t){var{maxZoom:e,radius:r=60}=t,s=G(t,["maxZoom","radius"]);super({maxZoom:e}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new D(Object.assign({maxZoom:this.maxZoom,radius:r},s))}calculate(t){let e=!1,r=t.map.getZoom();J(r);let s={zoom:r=Math.round(r)};if(!I(t.markers,this.markers)){e=!0,this.markers=[...t.markers];let r=this.markers.map(t=>{let e=K.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}});this.superCluster.load(r)}return(!e&&(this.state.zoom<=this.maxZoom||s.zoom<=this.maxZoom)&&(e=!I(this.state,s)),this.state=s,0===t.markers.length)?this.clusters=[]:e&&(this.cluster
1s=this.cluster(t)),{clusters:this.clusters,changed:e}}cluster({map:t}){let e=t.getZoom();return J(e),this.superCluster.getClusters([-180,-90,180,90],Math.round(e)).map(t=>this.transformCluster(t))}transformCluster({geometry:{coordinates:[t,e]},properties:r}){if(r.cluster)return new W({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(t=>t.properties.marker),position:{lat:e,lng:t}});let s=r.marker;return new W({markers:[s],position:K.getPosition(s)})}}class tu extends ti{constructor(t){var{maxZoom:e,radius:r=60,viewportPadding:s=60}=t,i=G(t,["maxZoom","radius","viewportPadding"]);super({maxZoom:e,viewportPadding:s}),this.markers=[],this.clusters=[],this.superCluster=new D(Object.assign({maxZoom:this.maxZoom,radius:r},i)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(t){let e=this.getViewportState(t),r=!I(this.state,e);if(!I(t.markers,this.markers)){r=!0,this.markers=[...t.markers];let e=this.markers.map(t=>{let e=K.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}});this.superCluster.load(e)}
1return r&&(this.clusters=this.cluster(t),this.state=e),{clusters:this.clusters,changed:r}}cluster(t){let e=this.getViewportState(t);return this.superCluster.getClusters(e.view,e.zoom).map(t=>this.transformCluster(t))}transformCluster({geometry:{coordinates:[t,e]},properties:r}){if(r.cluster)return new W({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(t=>t.properties.marker),position:{lat:e,lng:t}});let s=r.marker;return new W({markers:[s],position:K.getPosition(s)})}getViewportState(t){let e=t.map.getZoom(),r=t.map.getBounds();return J(e),J(r),{zoom:Math.round(e),view:H(r,t.mapCanvasProjection,this.viewportPadding)}}}class th{constructor(t,e){this.markers={sum:t.length};let r=e.map(t=>t.count),s=r.reduce((t,e)=>t+e,0);this.clusters={count:e.length,markers:{mean:s/e.length,sum:s,min:Math.min(...r),max:Math.max(...r)}}}}class tc{render({count:t,position:e},r,s){let i=t>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff",n=`<svg fill="${i}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
2<circle cx="120" cy="120" opacity=".6" r="70" />
3<circle cx="120" cy="120" opacity=".3" r="90" />
4<circle cx="120" cy="120" opacity=".2" r="110" />
5<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${t}</text>
6</svg>`,o=`Cluster of ${t} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+t;if(K.isAdvancedMarkerAvailable(s)){let t=new DOMParser().parseFromString(n,"image/svg+xml").documentElement;return t.setAttribute("transform","translate(0 25)"),new google.maps.marker.AdvancedMarkerElement({map:s,position:e,zIndex:a,title:o,content:t})}let l={position:e,zIndex:a,title:o,icon:{url:`data:image/svg+xml;base64,${btoa(n)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(l)}}class tp{constructor(){!function(t,e){for(let r in e.prototype)t.prototype[r]=e.prototype[r]}(tp,google.maps.OverlayView)}}!function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click",t.GMP_CLICK="gmp-click"}(s||(s={}));let tm=(t,e,r)=>{e.bounds&&r.fitBounds(e.bounds)};class tf extends tp{constructor({map:t,markers:e=[],algorithmOptions:r={},algorithm:s=new tl(r),renderer:i=new tc,onClusterClick:n=tm}){super(),this.map=null,this.idleListener=null,this.markers=[...e],this.clusters=[],this.algorithm=s,this.renderer=i,this.onClusterClick=n,t&&this.setMap(t)}addMarker(t,e){!this.markers.includes(t)&&(this.markers.push(t),e||this.render())}addMarkers(t,e){t.forEach(t=>{this.addMarker(t,!0)}),e||this.render()}removeMarker(t,e){let r=this.markers.indexOf(t);return -1!==r&&(K.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}removeMarkers(t,e){let r=!1;return t.forEach(t=>{r=this.removeMarker(t,!0)||r}),r&&!e&&this.render(),r}clearMarkers(t){this.markers.length=0,t||this.render()}render(){let t=this.getMap();if(t instanceof google.maps.Map&&t.getProjection()){google.maps.event.trigger(this,s.CLUSTERING_BEGIN,this);let{clusters:e,changed:r}=this.algorithm.calculate({markers:this.markers,map:t,mapCanvasProjection:this.getProjection()});if(r||void 0==r){let t=new Set;for(let r of e)1==r.markers.length&&t.add(r.markers[0]);let r=[];for(let e of this.clusters)null!=e.marker&&(1==e.markers.length?t.has(e.marker)||K.setMap(e.marker,null):r.push(e.marker));this.clusters=e,this.renderClusters(),requestAnimationFrame(()=>r.forEach(t=>K.setMap(t,null)))}google.maps.event.trigger(this,s.CLUSTERING_END,this)}}onAdd(){let t=this.getMap();J(t),this.idleListener=t.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(t=>K.setMap(t,null)),this.clusters.forEach(t=>t.delete()),this.clusters=[]}renderClusters(){let t=new th(this.markers,this.clusters),e=this.getMap();this.clusters.forEach(r=>{if(1===r.markers.length)r.marker=r.markers[0];else if(r.marker=this.renderer.render(r,t,e),r.markers.forEach(t=>K.setMap(t,null)),this.onClusterClick){let t=K.isAdvancedMarker(r.marker)?s.GMP_CLICK:s.CLUSTER_CLICK;r.marker.addListener(t,t=>{google.maps.event.trigger(this,s.CLUSTER_CLICK,r),this.onClusterClick(t,r,e)}
6)}K.setMap(r.marker,e)})}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.