1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5915],{3809:(t,e,r)=>{r.d(e,{default:()=>n});var s=r(66328),i=r(95155);function n(t){let{locale:e,...r}=t;if(!e)throw Error(void 0);return(0,i.jsx)(s.Dk,{locale:e,...r})}},44035:(t,e,r)=>{r.d(e,{w1:()=>te});var s,i=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty;function o(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);var i=s.cache,n=i.get(e),a=i.get(r);if(n&&a)return n===r&&a===e;i.set(e,r),i.set(r,e);var o=t(e,r,s);return i.delete(e),i.delete(r),o}}function u(t){return i(t).concat(n(t))}var h=Object.hasOwn||function(t,e){return a.call(t,e)};function c(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var p=Object.getOwnPropertyDescriptor,f=Object.keys;function m(t,e,r){var 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 d(t,e){return c(t.getTime(),e.getTime())}function g(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function y(t,e){return t===e}function k(t,e,r){var s,i,n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var a=Array(n),o=t.entries(),l=0;(s=o.next())&&!s.done;){for(var u=e.entries(),h=!1,c=0;(i=u.next())&&!i.done;){if(a[c]){c++;continue}var p=s.value,f=i.value;if(r.equals(p[0],f[0],l,c,t,e,r)&&r.equals(p[1],f[1],p[0],f[0],t,e,r)){h=a[c]=!0;break}c++}if(!h)return!1;l++}return!0}function v(t,e,r){var s=f(t),i=s.length;if(f(e).length!==i)return!1;for(;i-- >0;)if(!x(t,e,r,s[i]))return!1;return!0}function E(t,e,r){var s,i,n,a=u(t),o=a.length;if(u(e).length!==o)return!1;for(;o-- >0;)if(!x(t,e,r,s=a[o])||(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 b(t,e){return c(t.valueOf(),e.valueOf())}function M(t,e){return t.source===e.source&&t.flags===e.flags}function w(t,e,r){var s,i,n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var a=Array(n),o=t.values();(s=o.next())&&!s.done;){for(var l=e.values(),u=!1,h=0;(i=l.next())&&!i.done;){if(!a[h]&&r.equals(s.value,i.value,s.value,i.value,t,e,r)){u=a[h]=!0;break}h++}if(!u)return!1}return!0}function _(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function A(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 x(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)}var C=Array.isArray,O="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,j=Object.assign,q=Object.prototype.toString.call.bind(Object.prototype.toString),I=L();function L(t){void 0===t&&(t={});var e,r,s,i,n,a,u,h,p,f,x,I,L,P=t.circular,S=t.createInternalComparator,T=t.createState,U=t.strict,N=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,s=t.strict,i={areArraysEqual:s?E:m,areDatesEqual:d,areErrorsEqual:g,areFunctionsEqual:y,areMapsEqual:s?o(k,E):k,areNumbersEqual:c,areObjectsEqual:s?E:v,arePrimitiveWrappersEqual:b,areRegExpsEqual:M,areSetsEqual:s?o(w,E):w,areTypedArraysEqual:s?E:_,areUrlsEqual:A};if(r&&(i=j({},i,r(i))),e){var n=l(i.areArraysEqual),a=l(i.areMapsEqual),u=l(i.areObjectsEqual),h=l(i.areSetsEqual);i=j({},i,{areArraysEqual:n,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:h})}return i}(t)).areArraysEqual,s=e.areDatesEqual,i=e.areErrorsEqual,n=e.areFunctionsEqual,a=e.areMapsEqual,u=e.areNumbersEqual,h=e.areObjectsEqual,p=e.arePrimitiveWrappersEqual,f=e.areRegExpsEqual,x=e.areSetsEqual,I=e.areTypedArraysEqual,L=e.areUrlsEqual,function(t,e,o){if(t===e)return!0;if(null==t||null==e)return!1;var l=typeof t;if(l!==typeof e)return!1;if("object"!==l)return"number"===l?u(t,e,o):"function"===l&&n(t,e,o);var c=t.constructor;if(c!==e.constructor)return!1;if(c===Object)return h(t,e,o);if(C(t))return r(t,e,o);if(null!=O&&O(t))return I(t,e,o);if(c===Date)return s(t,e,o);if(c===RegExp)return f(t,e,o);if(c===Map)return a(t,e,o);if(c===Set)return x(t,e,o);var m=q(t);return"[object Date]"===m?s(t,e,o):"[object RegExp]"===m?f(t,e,o):"[object Map]"===m?a(t,e,o):"[object Set]"===m?x(t,e,o):"[object Object]"===m?"function"!=typeof t.then&&"function"!=typeof e.then&&h(t,e,o):"[object URL]"===m?L(t,e,o):"[object Error]"===m?i(t,e,o):"[object Arguments]"===m?h(t,e,o):("[object Boolean]"===m||"[object Number]"===m||"[object String]"===m)&&p(t,e,o)}),Z=S?S(N):function(t,e,r,s,i,n,a){return N(t,e,a)};return function(t){var e=t.circular,r=t.comparator,s=t.createState,i=t.equals,n=t.strict;if(s)return function(t,a){var o=s(),l=o.cache;return r(t,a,{cache:void 0===l?e?new WeakMap:void 0:l,equals:i,meta:o.meta,strict:n})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:n})};var a={cache:void 0,equals:i,meta:void 0,strict:n};return function(t,e){return r(t,e,a)}}({circular:void 0!==P&&P,comparator:N,createState:T,equals:Z,strict:void 0!==U&&U})}L({strict:!0}),L({circular:!0}),L({circular:!0,strict:!0}),L({createInternalComparator:function(){return c}}),L({strict:!0,createInternalComparator:function(){return c}}),L({circular:!0,createInternalComparator:function(){return c}}),L({circular:!0,createInternalComparator:function(){return c},strict:!0});let P=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array
1];class S{static from(t){if(!(t instanceof ArrayBuffer))throw Error("Data must be an instance of ArrayBuffer.");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=P[15&r];if(!i)throw Error("Unrecognized array type.");let[n]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new S(a,n,i,t)}constructor(t,e=64,r=Float64Array,s){if(isNaN(t)||t<0)throw Error(`Unpexpected 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 i=P.indexOf(this.ArrayType),n=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,o=(8-a%8)%8;if(i<0)throw Error(`Unexpected typed array class: ${r}.`);s&&s instanceof ArrayBuffer?(this.data=s,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+o,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+n+a+o),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+o,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+i]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,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,a){if(n-i<=s)return;let o=i+n>>1;(function t(e,r,s,i,n,a){for(;n>i;){if(n-i>600){let o=n-i+1,l=s-i+1,u=Math.log(o),h=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*h*(o-h)/o)*(l-o/2<0?-1:1),p=Math.max(i,Math.floor(s-l*h/o+c)),f=Math.min(n,Math.floor(s+(o-l)*h/o+c));t(e,r,s,p,f,a)}let o=r[2*s+a],l=i,u=n;for(T(e,r,i,s),r[2*n+a]>o&&T(e,r,i,n);l<u;){for(T(e,r,l,u),l++,u--;r[2*l+a]<o;)l++;for(;r[2*u+a]>o;)u--}r[2*i+a]===o?T(e,r,i,u):T(e,r,++u,n),u<=s&&(i=u+1),s<=u&&(n=u-1)}})(e,r,o,i,n,a),t(e,r,s,i,o-1,1-a),t(e,r,s,o+1,n,1-a)}(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:a}=this,o=[0,i.length-1,0],l=[];for(;o.length;){let u=o.pop()||0,h=o.pop()||0,c=o.pop()||0;if(h-c<=a){for(let a=c;a<=h;a++){let o=n[2*a],u=n[2*a+1];o>=t&&o<=r&&u>=e&&u<=s&&l.push(i[a])}continue}let p=c+h>>1,f=n[2*p],m=n[2*p+1];f>=t&&f<=r&&m>=e&&m<=s&&l.push(i[p]),(0===u?t<=f:e<=m)&&(o.push(c),o.push(p-1),o.push(1-u)),(0===u?r>=f:s>=m)&&(o.push(p+1),o.push(h),o.push(1-u))}return l}within(t,e,r){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:s,coords:i,nodeSize:n}=this,a=[0,s.length-1,0],o=[],l=r*r;for(;a.length;){let u=a.pop()||0,h=a.pop()||0,c=a.pop()||0;if(h-c<=n){for(let r=c;r<=h;r++)N(i[2*r],i[2*r+1],t,e)<=l&&o.push(s[r]);continue}let p=c+h>>1,f=i[2*p],m=i[2*p+1];N(f,m,t,e)<=l&&o.push(s[p]),(0===u?t-r<=f:e-r<=m)&&(a.push(c),a.push(p-1),a.push(1-u)),(0===u?t+r>=f:e+r>=m)&&(a.push(p+1),a.push(h),a.push(1-u))}return o}}function T(t,e,r,s){U(t,r,s),U(e,2*r,2*s),U(e,2*r+1,2*s+1)}function U(t,e,r){let s=t[e];t[e]=t[r],t[r]=s}function N(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},D=Math.fround||(t=>e=>(t[0]=+e,t[0]))(new Float32Array(1));class F{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,a=D(z(s)),o=D(R(i));n.push(a,o,1/0,e,-1,1),this.options.reduce&&n.push(0)}let a=this.trees[s+1]=this._createTree(n);e&&console.timeEnd(i);for(let t=s;t>=r;t--){let r=+Date.now();a=this.trees[t]=this._createTree(this._cluster(a,t)),e&&console.log("z%d: %d clusters in %dms",t,a.numItems,Date.now()-r)}
1return 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),a=this.getClusters([-180,s,i,n],e);return t.concat(a)}let a=this.trees[this._limitZoom(e)],o=a.range(z(r),R(n),z(i),R(s)),l=a.data,u=[];for(let t of o){let e=this.stride*t;u.push(l[e+5]>1?B(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 a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),o=n[e*this.stride],l=n[e*this.stride+1],u=i.within(o,l,a),h=[];for(let e of u){let r=e*this.stride;n[r+4]===t&&h.push(n[r+5]>1?B(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:a}=this.options,o=a/n,l=(r-o)/i,u=(r+1+o)/i,h={features:[]};return this._addTileFeatures(s.range((e-o)/i,l,(e+1+o)/i,u),s.data,e,r,i,h),0===e&&this._addTileFeatures(s.range(1-o/i,l,1,u),s.data,i,r,i,h),e===i-1&&this._addTileFeatures(s.range(0,l,o/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 S(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 a of t){let t,o,l,u,h=a*this.stride,c=e[h+5]>1;if(c)t=$(e,h,this.clusterProps),o=e[h],l=e[h+1];else{let r=this.points[e[h+3]];t=r.properties;let[s,i]=r.geometry.coordinates;o=z(s),l=R(i)}let p={type:1,geometry:[[Math.round(this.options.extent*(o*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,a=r/(s*Math.pow(2,e)),o=t.data,l=[],u=this.stride;for(let r=0;r<o.length;r+=u){if(o[r+2]<=e)continue;o[r+2]=e;let s=o[r],h=o[r+1],c=t.within(o[r],o[r+1],a),p=o[r+5],f=p;for(let t of c){let r=t*u;o[r+2]>e&&(f+=o[r+5])}if(f>p&&f>=n){let t,n=s*p,a=h*p,m=-1,d=((r/u|0)<<5)+(e+1)+this.points.length;for(let s of c){let l=s*u;if(o[l+2]<=e)continue;o[l+2]=e;let h=o[l+5];n+=o[l]*h,a+=o[l+1]*h,o[l+4]=d,i&&(t||(t=this._map(o,r,!0),m=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(o,l)))}o[r+4]=d,l.push(n/f,a/f,1/0,d,-1,f),i&&l.push(m)}else{for(let t=0;t<u;t++)l.push(o[r+t]);if(f>1)for(let t of c){let r=t*u;if(!(o[r+2]<=e)){o[r+2]=e;for(let t=0;t<u;t++)l.push(o[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 B(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))/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 z(t){return t/360+.5}function R(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"==typeof SuppressedError&&SuppressedError;class G{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 K{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(G.getPosition(e));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>G.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(G.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function V(t,e="assertion failed"){if(null==t)throw Error(e)}class W{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return X(t)}}let X=t=>t.map(t=>new K({position:G.getPosition(t),markers:[t]}));class Y extends W{constructor(t){var{maxZoom:e,radius:r=60}=t,s=function(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}(t,["maxZoom","radius"]);super({maxZoom:e}
1),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new F(Object.assign({maxZoom:this.maxZoom,radius:r},s))}calculate(t){let e=!1,r=t.map.getZoom();V(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=G.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.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}cluster({map:t}){let e=t.getZoom();return V(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 K({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 K({markers:[s],position:G.getPosition(s)})}}class H{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 J{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>`,a=`Cluster of ${t} markers`,o=Number(google.maps.Marker.MAX_ZINDEX)+t;if(G.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:o,title:a,content:t})}let l={position:e,zIndex:o,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(n)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(l)}}class Q{constructor(){!function(t,e){for(let r in e.prototype)t.prototype[r]=e.prototype[r]}(Q,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 tt=(t,e,r)=>{e.bounds&&r.fitBounds(e.bounds)};class te extends Q{constructor({map:t,markers:e=[],algorithmOptions:r={},algorithm:s=new Y(r),renderer:i=new J,onClusterClick:n=tt}){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&&(G.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)||G.setMap(e.marker,null):r.push(e.marker));this.clusters=e,this.renderClusters(),requestAnimationFrame(()=>r.forEach(t=>G.setMap(t,null)))}google.maps.event.trigger(this,s.CLUSTERING_END,this)}}onAdd(){let t=this.getMap();V(t),this.idleListener=t.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}
6reset(){this.markers.forEach(t=>G.setMap(t,null)),this.clusters.forEach(t=>t.delete()),this.clusters=[]}renderClusters(){let t=new H(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=>G.setMap(t,null)),this.onClusterClick){let t=G.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)})}G.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.