(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[58518,5767,50866,58411,97622,73360],{89667:function(t,e,r){"use strict";function i(t,e={}){let{sorted:r}=e;r||(t=t.slice().sort(o));let i=t.length,s=Array(2*i),a=0;for(let e=0;e<i;e++){let r=t[e];for(;a>=2&&0>=n(s[a-2],s[a-1],r);)a--;s[a++]=r}let h=a+1;for(let e=i-2;e>=0;e--){let r=t[e];for(;a>=h&&0>=n(s[a-2],s[a-1],r);)a--;s[a++]=r}return s.slice(0,a-1)}function n(t,e,r){return(e[1]-t[1])*(r[0]-t[0])-(e[0]-t[0])*(r[1]-t[1])}function o(t,e){return t[0]===e[0]?t[1]-e[1]:t[0]-e[0]}r.r(e),r.d(e,{default:function(){return i}})},41977:function(t){var e;e=function(){"use strict";function t(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function e(t,e){return t<e?-1:t>e?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e){n(t,0,t.children.length,e,t)}function n(t,e,r,i,n){n||(n=d(null)),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(var s=e;s<r;s++){var a=t.children[s];o(n,t.leaf?i(a):a)}return n}function o(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function s(t,e){return t.minX-e.minX}function a(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function l(t){return t.maxX-t.minX+(t.maxY-t.minY)}function u(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function c(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function p(r,i,n,o,s){for(var a=[i,n];a.length;)if(!((n=a.pop())-(i=a.pop())<=o)){var h=i+Math.ceil((n-i)/o/2)*o;(function e(r,i,n,o,s){for(;o>n;){if(o-n>600){var a=o-n+1,h=i-n+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(h-a/2<0?-1:1),d=Math.max(n,Math.floor(i-h*u/a+c)),p=Math.min(o,Math.floor(i+(a-h)*u/a+c));e(r,i,d,p,s)}var m=r[i],f=n,g=o;for(t(r,n,i),s(r[o],m)>0&&t(r,n,o);f<g;){for(t(r,f,g),f++,g--;0>s(r[f],m);)f++;for(;s(r[g],m)>0;)g--}0===s(r[n],m)?t(r,n,g):t(r,++g,o),g<=i&&(n=g+1),i<=g&&(o=g-1)}})(r,h,i||0,n||r.length-1,s||e),a.push(i,h,h,n)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,r=[];if(!c(t,e))return r;for(var i=this.toBBox,n=[];e;){for(var o=0;o<e.children.length;o++){var s=e.children[o],a=e.leaf?i(s):s;c(t,a)&&(e.leaf?r.push(s):u(t,a)?this._all(s,r):n.push(s))}e=n.pop()}return r},r.prototype.collides=function(t){var e=this.data;if(!c(t,e))return!1;for(var r=[];e;){for(var i=0;i<e.children.length;i++){var n=e.children[i],o=e.leaf?this.toBBox(n):n;if(c(t,o)){if(e.leaf||u(t,o))return!0;r.push(n)}}e=r.pop()}return!1},r.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length){if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}}else this.data=r;return this},r.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},r.prototype.clear=function(){return this.data=d([]),this},r.prototype.remove=function(t,e){if(!t)return this;for(var r,i,n,o=this.data,s=this.toBBox(t),a=[],h=[];o||a.length;){if(o||(o=a.pop(),i=a[a.length-1],r=h.pop(),n=!0),o.leaf){var l=function(t,e,r){if(!r)return e.indexOf(t);for(var i=0;i<e.length;i++)if(r(t,e[i]))return i;return -1}(t,o.children,e);if(-1!==l)return o.children.splice(l,1),a.push(o),this._condense(a),this}n||o.leaf||!u(o,s)?i?(r++,o=i.children[r],n=!1):o=null:(a.push(o),h.push(r),r=0,i=o,o=o.children[0])}return this},r.prototype.toBBox=function(t){return t},r.prototype.compareMinX=function(t,e){return t.minX-e.minX},r.prototype.compareMinY=function(t,e){return t.minY-e.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(t){return this.data=t,this},r.prototype._all=function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},r.prototype._build=function(t,e,r,n){var o,s=r-e+1,a=this._maxEntries;if(s<=a)return i(o=d(t.slice(e,r+1)),this.toBBox),o;n||(n=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,n-1))),(o=d([])).leaf=!1,o.height=n;var h=Math.ceil(s/a),l=h*Math.ceil(Math.sqrt(a));p(t,e,r,l,this.compareMinX);for(var u=e;u<=r;u+=l){var c=Math.min(u+l-1,r);p(t,u,c,h,this.compareMinY);for(var m=u;m<=c;m+=h){var f=Math.min(m+h-1,c);o.children.push(this._build(t,m,f,n-1))}}return i(o,this.toBBox),o},r.prototype._chooseSubtree=function(t,e,r,i){for(;i.push(e),!e.leaf&&i.length-1!==r;){for(var n=1/0,o=1/0,s=void 0,a=0;a<e.children.length;a++){var l=e.children[a],u=h(l),c=(Math.max(l.maxX,t.maxX)-Math.min(l.minX,t.minX))*(Math.max(l.maxY,t.maxY)-Math.min(l.minY,t.minY))-u;c<o?(o=c,n=u<n?u:n,s=l):c===o&&u<n&&(n=u,s=l)}e=s||e.children[0]}return e},r.prototype._insert=function(t,e,r){var i=r?t:this.toBBox(t),n=[],s=this._chooseSubtree(i,this.data,e,n);for(s.children.push(t),o(s,i);e>=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(i,n,e)},r.prototype._split=function(t,e){var r=t[e],n=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,n);var s=this._chooseSplitIndex(r,o,n),a=d(r.children.splice(s,r.children.length-s));a.height=r.height,a.leaf=r.leaf,i(r,this.toBBox),i(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(r,a)},r.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,i(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,e,r){for(var i,o,s,a,l=1/0,u=1/0,c=e;c<=r-e;c++){var d=n(t,0,c,this.toBBox),p=n(t,c,r,this.toBBox),m=(o=void 0,s=void 0,o=Math.max(d.minX,p.minX),s=Math.max(d.minY,p.minY),Math.max(0,Math.min(d.maxX,p.maxX)-o)*Math.max(0,Math.min(d.maxY,p.maxY)-s)),f=h(d)+h(p);m<l?(l=m,i=c,u=f<u?f:u):m===l&&f<u&&(u=f,i=c)}return i||r-e},r.prototype._chooseSplitAxis=function(t,e,r){var i=t.leaf?this.compareMinX:s,n=t.leaf?this.compareMinY:a;this._allDistMargin(t,e,r,i)<this._allDistMargin(t,e,r,n)&&t.children.sort(i)},r.prototype._allDistMargin=function(t,e,r,i){t.children.sort(i);for(var s=this.toBBox,a=n(t,0,e,s),h=n(t,r-e,r,s),u=l(a)+l(h),c=e;c<r-e;c++){var d=t.children[c];o(a,t.leaf?s(d):d),u+=l(a)}for(var p=r-e-1;p>=e;p--){var m=t.children[p];o(h,t.leaf?s(m):m),u+=l(h)}return u},r.prototype._adjustParentBBoxes=function(t,e,r){for(var i=r;i>=0;i--)o(e[i],t)},r.prototype._condense=function(t){for(var e=t.length-1,r=void 0;e>=0;e--)0===t[e].children.length?e>0?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():i(t[e],this.toBBox)},r},t.exports=e()},71772:function(t,e,r){"use strict";r.d(e,{fI:function(){return s},lj:function(){return a}});var i=r(27562),n=r(54376);class o{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let r=e.dataProjection?(0,n.U2)(e.dataProjection):this.readProjection(t);e.extent&&r&&"tile-pixels"===r.getUnits()&&(r=(0,n.U2)(r)).setWorldExtent(e.extent),e={dataProjection:r,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)}getType(){return(0,i.O3)()}readFeature(t,e){return(0,i.O3)()}readFeatures(t,e){return(0,i.O3)()}readGeometry(t,e){return(0,i.O3)()}readProjection(t){return(0,i.O3)()}writeFeature(t,e){return(0,i.O3)()}writeFeatures(t,e){return(0,i.O3)()}writeGeometry(t,e){return(0,i.O3)()}}function s(t,e,r){let i;let o=r?(0,n.U2)(r.featureProjection):null,s=r?(0,n.U2)(r.dataProjection):null;if(i=o&&s&&!(0,n.OP)(o,s)?(e?t.clone():t).transform(e?o:s,e?s:o):t,e&&r&&void 0!==r.decimals){let e=Math.pow(10,r.decimals);i===t&&(i=t.clone()),i.applyTransform(function(t){for(let r=0,i=t.length;r<i;++r)t[r]=Math.round(t[r]*e)/e;return t})}return i}function a(t,e){let r=e?(0,n.U2)(e.featureProjection):null,i=e?(0,n.U2)(e.dataProjection):null;return r&&i&&!(0,n.OP)(r,i)?(0,n.$A)(t,i,r):t}e.ZP=o},50866:function(t,e,r){"use strict";var i=r(12646),n=r(77700),o=r(55863),s=r(42086),a=r(82274),h=r(26733),l=r(93905),u=r(6264),c=r(69120),d=r(54376),p=r(89697),m=r(71772);class f extends o.Z{constructor(t){t=t||{},super(),this.dataProjection=(0,d.U2)(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=(0,d.U2)(t.featureProjection)),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let r=null,n=g((r="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),o=new i.Z;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&o.setGeometryName(r.geometry_name),o.setGeometry(n),"id"in r&&o.setId(r.id),r.properties&&o.setProperties(r.properties,!0),o}readFeaturesFromObject(t,e){let r=null;if("FeatureCollection"===t.type){r=[];let i=t.features;for(let t=0,n=i.length;t<n;++t)r.push(this.readFeatureFromObject(i[t],e))}else r=[this.readFeatureFromObject(t,e)];return r}readGeometryFromObject(t,e){return g(t,e)}readProjectionFromObject(t){let e;let r=t.crs;if(r){if("name"==r.type)e=(0,d.U2)(r.properties.name);else if("EPSG"===r.type)e=(0,d.U2)("EPSG:"+r.properties.code);else throw Error("Unknown SRS type")}else e=this.dataProjection;return e}writeFeatureObject(t,e){e=this.adaptOptions(e);let r={type:"Feature",geometry:null,properties:null},i=t.getId();if(void 0!==i&&(r.id=i),!t.hasProperties())return r;let n=t.getProperties(),o=t.getGeometry();return o&&(r.geometry=x(o,e),delete n[t.getGeometryName()]),(0,p.x)(n)||(r.properties=n),r}writeFeaturesObject(t,e){e=this.adaptOptions(e);let r=[];for(let i=0,n=t.length;i<n;++i)r.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:r}}writeGeometryObject(t,e){return x(t,this.adaptOptions(e))}}function g(t,e){let r;if(!t)return null;switch(t.type){case"Point":r=new u.Z(t.coordinates);break;case"LineString":r=new s.Z(t.coordinates);break;case"Polygon":r=new c.ZP(t.coordinates);break;case"MultiPoint":r=new h.Z(t.coordinates);break;case"MultiLineString":r=new a.Z(t.coordinates);break;case"MultiPolygon":r=new l.Z(t.coordinates);break;case"GeometryCollection":r=function(t,e){let r=t.geometries.map(function(t){return g(t,void 0)});return new n.Z(r)}(t);break;default:throw Error("Unsupported GeoJSON type: "+t.type)}return(0,m.fI)(r,!1,e)}function x(t,e){var r,i,n,o;let s,a,h;let l=(t=(0,m.fI)(t,!0,e)).getType();switch(l){case"Point":s={type:"Point",coordinates:t.getCoordinates()};break;case"LineString":s={type:"LineString",coordinates:t.getCoordinates()};break;case"Polygon":r=t,e&&(a=e.rightHanded),s={type:"Polygon",coordinates:r.getCoordinates(a)};break;case"MultiPoint":s={type:"MultiPoint",coordinates:t.getCoordinates()};break;case"MultiLineString":s={type:"MultiLineString",coordinates:t.getCoordinates()};break;case"MultiPolygon":i=t,e&&(h=e.rightHanded),s={type:"MultiPolygon",coordinates:i.getCoordinates(h)};break;case"GeometryCollection":n=t,o=Object.assign({},o=e),delete o.featureProjection,s={type:"GeometryCollection",geometries:n.getGeometriesArray().map(function(t){return x(t,o)})};break;case"Circle":s={type:"GeometryCollection",geometries:[]};break;default:throw Error("Unsupported geometry type: "+l)}return s}e.Z=f},55863:function(t,e,r){"use strict";var i=r(71772),n=r(27562);class o extends i.ZP{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(s(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(s(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return(0,n.O3)()}readFeaturesFromObject(t,e){return(0,n.O3)()}readGeometry(t,e){return this.readGeometryFromObject(s(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return(0,n.O3)()}readProjection(t){return this.readProjectionFromObject(s(t))}readProjectionFromObject(t){return(0,n.O3)()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return(0,n.O3)()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return(0,n.O3)()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return(0,n.O3)()}}function s(t){return"string"==typeof t?JSON.parse(t)||null:null!==t?t:null}e.Z=o},16808:function(t,e,r){"use strict";var i=r(26682),n=r(77999);class o extends i.Z{constructor(t){super(t)}createRenderer(){return new n.Z(this)}}e.Z=o},64830:function(t,e,r){"use strict";var i=r(8596),n=r(10335);class o extends i.Z{constructor(t){super(t)}createRenderer(){return new n.Z(this)}}e.Z=o},10335:function(t,e,r){"use strict";var i=r(85181),n=r(7370),o=r(32331),s=r(3213),a=r(37175),h=r(16909),l=r(8366),u=r(86810),c=r(54894),d=r(92704),p=r(73080),m=r(54376),f=r(27562),g=r(60280);class x extends n.Z{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,u.lJ)(),this.wrappedRenderedExtent_=(0,u.lJ)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.declutterExecutorGroup=null,this.clipping=!0,this.compositionContext_=null,this.opacity_=1}renderWorlds(t,e,r){let i=e.extent,n=e.viewState,o=n.center,s=n.resolution,h=n.projection,l=n.rotation,c=h.getExtent(),d=this.getLayer().getSource(),p=e.pixelRatio,m=e.viewHints,f=!(m[a.Z.ANIMATING]||m[a.Z.INTERACTING]),g=this.compositionContext_,x=Math.round(e.size[0]*p),y=Math.round(e.size[1]*p),_=d.getWrapX()&&h.canWrapX(),v=_?(0,u.dz)(c):null,F=_?Math.ceil((i[2]-c[2])/v)+1:1,O=_?Math.floor((i[0]-c[0])/v):0;do{let e=this.getRenderTransform(o,s,l,p,x,y,O*v);t.execute(g,1,e,l,f,void 0,r)}while(++O<F)}setupCompositionContext_(){if(1!==this.opacity_){let t=(0,c.E4)(this.context.canvas.width,this.context.canvas.height,n.r);this.compositionContext_=t}else this.compositionContext_=this.context}releaseCompositionContext_(){if(1!==this.opacity_){let t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,(0,c.jy)(this.compositionContext_),n.r.push(this.compositionContext_.canvas),this.compositionContext_=null}}renderDeclutter(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())}renderFrame(t,e){let r=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];(0,l.n3)(this.pixelTransform,1/r,1/r),(0,l.nb)(this.inversePixelTransform,this.pixelTransform);let n=(0,l.BB)(this.pixelTransform);this.useContainer(e,n,this.getBackground(t));let o=this.context,a=o.canvas,h=this.replayGroup_,c=this.declutterExecutorGroup,d=h&&!h.isEmpty()||c&&!c.isEmpty();if(!d&&!(this.getLayer().hasListener(s.Z.PRERENDER)||this.getLayer().hasListener(s.Z.POSTRENDER)))return null;let p=Math.round(t.size[0]*r),f=Math.round(t.size[1]*r);a.width!=p||a.height!=f?(a.width=p,a.height=f,a.style.transform!==n&&(a.style.transform=n)):this.containerReused||o.clearRect(0,0,p,f),this.preRender(o,t);let g=t.viewState,x=g.projection;this.opacity_=i.opacity,this.setupCompositionContext_();let y=!1;if(d&&i.extent&&this.clipping){let e=(0,m.dY)(i.extent,x);(y=(d=(0,u.kK)(e,t.extent))&&!(0,u.r4)(e,t.extent))&&this.clipUnrotated(this.compositionContext_,t,e)}return d&&this.renderWorlds(h,t),y&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==g.rotation&&(this.renderedRotation_=g.rotation,this.hitDetectionImageData_=null),this.container}getFeatures(t){return new Promise(e=>{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){let t=[this.context.canvas.width,this.context.canvas.height];(0,l.nn)(this.pixelTransform,t);let e=this.renderedCenter_,r=this.renderedResolution_,i=this.renderedRotation_,n=this.renderedProjection_,o=this.wrappedRenderedExtent_,s=this.getLayer(),a=[],c=t[0]*h.UN,d=t[1]*h.UN;a.push(this.getRenderTransform(e,r,i,h.UN,c,d,0).slice());let p=s.getSource(),m=n.getExtent();if(p.getWrapX()&&n.canWrapX()&&!(0,u.r4)(m,o)){let t,n=o[0],s=(0,u.dz)(m),l=0;for(;n<m[0];)t=s*--l,a.push(this.getRenderTransform(e,r,i,h.UN,c,d,t).slice()),n+=s;for(l=0,n=o[2];n>m[2];)t=s*++l,a.push(this.getRenderTransform(e,r,i,h.UN,c,d,t).slice()),n-=s}this.hitDetectionImageData_=(0,h.TU)(t,a,this.renderedFeatures_,s.getStyleFunction(),o,r,i)}e((0,h.ix)(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,r,i,n){let o;if(!this.replayGroup_)return;let s=e.viewState.resolution,a=e.viewState.rotation,h=this.getLayer(),l={},u=function(t,e,r){let o=(0,f.sq)(t),s=l[o];if(s){if(!0!==s&&r<s.distanceSq){if(0===r)return l[o]=!0,n.splice(n.lastIndexOf(s),1),i(t,h,e);s.geometry=e,s.distanceSq=r}}else{if(0===r)return l[o]=!0,i(t,h,e);n.push(l[o]={feature:t,layer:h,geometry:e,distanceSq:r,callback:i})}},c=[this.replayGroup_];return this.declutterExecutorGroup&&c.push(this.declutterExecutorGroup),c.some(i=>o=i.forEachFeatureAtCoordinate(t,s,a,r,u,i===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(t=>t.value):null)),o}handleFontsChanged(){let t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){let e,r;let n=this.getLayer(),s=n.getSource();if(!s)return!1;let h=t.viewHints[a.Z.ANIMATING],l=t.viewHints[a.Z.INTERACTING],c=n.getUpdateWhileAnimating(),f=n.getUpdateWhileInteracting();if(this.ready&&!c&&h||!f&&l)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;let x=t.extent,y=t.viewState,_=y.projection,v=y.resolution,F=t.pixelRatio,O=n.getRevision(),j=n.getRenderBuffer(),C=n.getRenderOrder();void 0===C&&(C=d.eR);let b=y.center.slice(),M=(0,u.f3)(x,j*v),P=M.slice(),w=[M.slice()],R=_.getExtent();if(s.getWrapX()&&_.canWrapX()&&!(0,u.r4)(R,t.extent)){let t=(0,u.dz)(R),e=Math.max((0,u.dz)(M)/2,t);M[0]=R[0]-e,M[2]=R[2]+e,(0,g.Cf)(b,_);let r=(0,u.Cf)(w[0],_);r[0]<R[0]&&r[2]<R[2]?w.push([r[0]+t,r[1],r[2]+t,r[3]]):r[0]>R[0]&&r[2]>R[2]&&w.push([r[0]-t,r[1],r[2]-t,r[3]])}if(this.ready&&this.renderedResolution_==v&&this.renderedRevision_==O&&this.renderedRenderOrder_==C&&(0,u.r4)(this.wrappedRenderedExtent_,M))return(0,p.fS)(this.renderedExtent_,P)||(this.hitDetectionImageData_=null,this.renderedExtent_=P),this.renderedCenter_=b,this.replayGroupChanged=!1,!0;this.replayGroup_=null;let G=new i.Z((0,d.Qz)(v,F),M,v,F);this.getLayer().getDeclutter()&&(e=new i.Z((0,d.Qz)(v,F),M,v,F));let E=(0,m.Cs)();if(E){for(let t=0,e=w.length;t<e;++t){let e=w[t],r=(0,m.Fj)(e,_);s.loadFeatures(r,(0,m.on)(v,_),E)}r=(0,m.WO)(E,_)}else for(let t=0,e=w.length;t<e;++t)s.loadFeatures(w[t],v,_);let S=(0,d.se)(v,F),X=!0,Z=t=>{let i;let o=t.getStyleFunction()||n.getStyleFunction();if(o&&(i=o(t,v)),i){let n=this.renderFeature(t,S,i,G,r,e);X=X&&!n}},I=(0,m.Fj)(M,_),B=s.getFeaturesInExtent(I);C&&B.sort(C);for(let t=0,e=B.length;t<e;++t)Z(B[t]);this.renderedFeatures_=B,this.ready=X;let N=G.finish(),Y=new o.Z(M,v,F,s.getOverlaps(),N,n.getRenderBuffer());return e&&(this.declutterExecutorGroup=new o.Z(M,v,F,s.getOverlaps(),e.finish(),n.getRenderBuffer())),this.renderedResolution_=v,this.renderedRevision_=O,this.renderedRenderOrder_=C,this.renderedExtent_=P,this.wrappedRenderedExtent_=M,this.renderedCenter_=b,this.renderedProjection_=_,this.replayGroup_=Y,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,r,i,n,o){if(!r)return!1;let s=!1;if(Array.isArray(r))for(let a=0,h=r.length;a<h;++a)s=(0,d.Pn)(i,t,r[a],e,this.boundHandleStyleImageChange_,n,o)||s;else s=(0,d.Pn)(i,t,r,e,this.boundHandleStyleImageChange_,n,o);return s}}e.Z=x},24799:function(t,e,r){"use strict";var i=r(1199),n=r(12646),o=r(6264),s=r(42635),a=r(60280),h=r(26219),l=r(86810),u=r(27562);class c extends s.Z{constructor(t){super({attributions:t.attributions,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.minDistance=t.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=t.geometryFunction||function(t){let e=t.getGeometry();return(0,h.h)(!e||"Point"===e.getType(),"The default `geometryFunction` can only handle `Point` or null geometries"),e},this.createCustomCluster_=t.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(t.source||null)}clear(t){this.features.length=0,super.clear(t)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(t,e,r){this.source.loadFeatures(t,e,r),e!==this.resolution&&(this.resolution=e,this.refresh())}setDistance(t){this.updateDistance(t,this.minDistance)}setMinDistance(t){this.updateDistance(this.distance,t)}getMinDistance(){return this.minDistance}setSource(t){this.source&&this.source.removeEventListener(i.Z.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(i.Z.CHANGE,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(t,e){let r=0===t?0:Math.min(e,t)/t,i=t!==this.distance||this.interpolationRatio!==r;this.distance=t,this.minDistance=e,this.interpolationRatio=r,i&&this.refresh()}cluster(){if(void 0===this.resolution||!this.source)return;let t=(0,l.lJ)(),e=this.distance*this.resolution,r=this.source.getFeatures(),i={};for(let n=0,o=r.length;n<o;n++){let o=r[n];if(!((0,u.sq)(o) in i)){let r=this.geometryFunction(o);if(r){let n=r.getCoordinates();(0,l.HK)(n,t),(0,l.f3)(t,e,t);let o=this.source.getFeaturesInExtent(t).filter(function(t){let e=(0,u.sq)(t);return!(e in i)&&(i[e]=!0,!0)});this.features.push(this.createCluster(o,t))}}}}createCluster(t,e){let r=[0,0];for(let e=t.length-1;e>=0;--e){let i=this.geometryFunction(t[e]);i?(0,a.IH)(r,i.getCoordinates()):t.splice(e,1)}(0,a.bA)(r,1/t.length);let i=(0,l.qg)(e),s=this.interpolationRatio,h=new o.Z([r[0]*(1-s)+i[0]*s,r[1]*(1-s)+i[1]*s]);return this.createCustomCluster_?this.createCustomCluster_(h,t):new n.Z({geometry:h,features:t})}}e.Z=c},59198:function(t,e,r){"use strict";var i=r(83660),n=r(14078);class o extends i.Z{constructor(t){let e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857";super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:void 0!==t.tileGrid?t.tileGrid:(0,n.dl)({extent:(0,n.Tl)(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize}),tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}e.Z=o}}]);