PageSourceSearch

https://iconia.co.jp/_next/static/chunks/6058.5dc30739368ad3ad.js

js iconia.co.jp collected 2026-09-24 09:54:35 UTC 21,284 bytes, 7 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6058],{16058:function(t,e,r){var s,i;let n;r.d(e,{XL:function(){return ts}});let{getOwnPropertyNames:o,getOwnPropertySymbols:a}=Object,{hasOwnProperty:l}=Object.prototype;function u(t,e){return function(r,s,i){return t(r,s,i)&&e(r,s,i)}}function h(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 c(t){return o(t).concat(a(t))}let p=Object.hasOwn||((t,e)=>l.call(t,e));function f(t,e){return t===e||!t&&!e&&t!=t&&e!=e}let{getOwnPropertyDescriptor:m,keys:d}=Object;function g(t,e){return t.byteLength===e.byteLength&&C(new Uint8Array(t),new Uint8Array(e))}function y(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 b(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 k(t,e){return f(t.getTime(),e.getTime())}function M(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function w(t,e){return t===e}function A(t,e,r){let s,i;let 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 E(t,e,r){let s=d(t),i=s.length;if(d(e).length!==i)return!1;for(;i-- >0;)if(!O(t,e,r,s[i]))return!1;return!0}function _(t,e,r){let s,i,n;let o=c(t),a=o.length;if(c(e).length!==a)return!1;for(;a-- >0;)if(!O(t,e,r,s=o[a])||(i=m(t,s),n=m(e,s),(i||n)&&(!i||!n||i.configurable!==n.configurable||i.enumerable!==n.enumerable||i.writable!==n.writable)))return!1;return!0}function v(t,e){return f(t.valueOf(),e.valueOf())}function x(t,e){return t.source===e.source&&t.flags===e.flags}function j(t,e,r){let s,i;let 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 L(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 O(t,e,r,s){return("_owner"===s||"__o"===s||"__v"===s)&&(!!t.$$typeof||!!e.$$typeof)||p(e,s)&&r.equals(t[s],e[s],s,s,t,e,r)}let I={"[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},P=Object.prototype.toString,T=U();function U(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:f,unknownTagComparators:m}){return function(d,g,y){if(d===g)return!0;if(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 M=P.call(d);if("[object Date]"===M)return s(d,g,y);if("[object RegExp]"===M)return h(d,g,y);if("[object Map]"===M)return o(d,g,y);if("[object Set]"===M)return c(d,g,y);if("[object Object]"===M)return"function"!=typeof d.then&&"function"!=typeof g.then&&l(d,g,y);if("[object URL]"===M)return f(d,g,y);if("[object Error]"===M)return i(d,g,y);if("[object Arguments]"===M)return l(d,g,y);if(I[M])return p(d,g,y);if("[object ArrayBuffer]"===M)return t(d,g,y);if("[object DataView]"===M)return r(d,g,y);if("[object Boolean]"===M||"[object Number]"===M||"[object String]"===M)return u(d,g,y);if(m){let t=m[M];if(!t){let e=null!=d?d[Symbol.toStringTag]:void 0;e&&(t=m[e])}if(t)return t(d,g,y)}return!1}}(function({circular:t,createCustomConfig:e,strict:r}){let s={areArrayBuffersEqual:g,areArraysEqual:r?_:y,areDataViewsEqual:b,areDatesEqual:k,areErrorsEqual:M,areFunctionsEqual:w,areMapsEqual:r?u(A,_):A,areNumbersEqual:f,areObjectsEqual:r?_:E,arePrimitiveWrappersEqual:v,areRegExpsEqual:x,areSetsEqual:r?u(j,_):j,areTypedArraysEqual:r?u(C,_):C,areUrlsEqual:L,unknownTagComparators:void 0};if(e&&(s=Object.assign({},s,e(s))),t){let t=h(s.areArraysEqual),e=h(s.areMapsEqual),r=h(s.areObjectsEqual),i=h(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)}}
1({circular:e,comparator:n,createState:s,equals:o,strict:i})}U({strict:!0}),U({circular:!0}),U({circular:!0,strict:!0}),U({createInternalComparator:()=>f}),U({strict:!0,createInternalComparator:()=>f}),U({circular:!0,createInternalComparator:()=>f}),U({circular:!0,createInternalComparator:()=>f,strict:!0});let S=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class q{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=S[15&r];if(!i)throw Error("Unrecognized array type.");let[n]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new q(o,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=S.indexOf(this.ArrayType),n=2*t*this.ArrayType.BYTES_PER_ELEMENT,o=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-o%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+o+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+n+o+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+o+a,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,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)),f=Math.min(n,Math.floor(s+(a-l)*h/a+c));t(e,r,s,p,f,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,a=[0,i.length-1,0],l=[];for(;a.length;){let u=a.pop()||0,h=a.pop()||0,c=a.pop()||0;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,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)&&(a.push(c),a.push(p-1),a.push(1-u)),(0===u?r>=f:s>=m)&&(a.push(p+1),a.push(h),a.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,o=[0,s.length-1,0],a=[],l=r*r;for(;o.length;){let u=o.pop()||0,h=o.pop()||0,c=o.pop()||0;if(h-c<=n){for(let r=c;r<=h;r++)F(i[2*r],i[2*r+1],t,e)<=l&&a.push(s[r]);continue}let p=c+h>>1,f=i[2*p],m=i[2*p+1];F(f,m,t,e)<=l&&a.push(s[p]),(0===u?t-r<=f:e-r<=m)&&(o.push(c),o.push(p-1),o.push(1-u)),(0===u?t+r>=f:e+r>=m)&&(o.push(p+1),o.push(h),o.push(1-u))}return a}}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 F(t,e,r,s){let i=t-r,n=e-s;return i*i+n*n}let B={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},$=Math.fround||(n=new Float32Array(1),t=>(n[0]=+t,n[0]));class z{constructor(t){this.options=Object.assign(Object.create(B),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=$(G(s)),a=$(K(i));
1n.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(G(r),K(n),G(i),K(s)),l=o.data,u=[];for(let t of a){let e=this.stride*t;u.push(l[e+5]>1?D(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?D(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 q(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;let h=o*this.stride,c=e[h+5]>1;if(c)t=R(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=G(s),l=K(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],f=p;for(let t of c){let r=t*u;a[r+2]>e&&(f+=a[r+5])}if(f>p&&f>=n){let t,n=s*p,o=h*p,m=-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),m=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(a,l)))}a[r+4]=d,l.push(n/f,o/f,1/0,d,-1,f),i&&l.push(m)}else{for(let t=0;t<u;t++)l.push(a[r+t]);if(f>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 D(t,e,r){return{type:"Feature",id:t[e+3],properties:R(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 R(t,e,r){let s=t[e+5],i=s>=1e4?`${Math.round(s/1e3)}
1k`: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 G(t){return t/360+.5}function K(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 V{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(V.getPosition(e));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>V.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(V.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function X(t,e="assertion failed"){if(null==t)throw Error(e)}class Y{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return H(t)}}let H=t=>t.map(t=>new W({position:V.getPosition(t),markers:[t]}));class J extends Y{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}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new z(Object.assign({maxZoom:this.maxZoom,radius:r},s))}calculate(t){let e=!1,r=t.map.getZoom();X(r);let s={zoom:r=Math.round(r)};if(!T(t.markers,this.markers)){e=!0,this.markers=[...t.markers];let r=this.markers.map(t=>{let e=V.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=!T(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 X(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:V.getPosition(s)})}}class Q{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 tt{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(V.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 te{constructor(){!function(t,e){for(let r in e.prototype)t.prototype[r]=e.prototype[r]}(te,google.maps.OverlayView)}}(i=s||(s={})).CLUSTERING_BEGIN="clusteringbegin",i.CLUSTERING_END="clusteringend",i.CLUSTER_CLICK="click",i.GMP_CLICK="gmp-click";let tr=(t,e,r)=>{e.bounds&&r.fitBounds(e.bounds)};class ts extends te{constructor({map:t,markers:e=[],algorithmOptions:r={},algorithm:s=new J(r),renderer:i=new tt,onClusterClick:n=tr}){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&&(V.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)||V.setMap(e.marker,null):r.push(e.marker));this.clusters=e,this.renderClusters(),requestAnimationFrame(()=>r.forEach(t=>V.setMap(t,null)))}google.maps.event.trigger(this,s.CLUSTERING_END,this)}}onAdd(){let t=this.getMap();X(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=>V.setMap(t,null)),this.clusters.forEach(t=>t.delete()),this.clusters=[]}renderClusters(){let t=new Q(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=>V.setMap(t,null)),this.onClusterClick){let t=V.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)})}V.setMap(r.marker,e)})}}}}]);
7//# sourceMappingURL=6058.5dc30739368ad3ad.js.map

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.