vendor: 4,724 bytes, line 1
1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[4816],{74816:(Ne,$t,R)=>{R.r($t),R.d($t,{Graticule:()=>gi,GraticuleSeries:()=>ue,GraticuleSeriesDataItem:()=>mi,HeatLegend:()=>nt.T,Legend:()=>F.De,LegendDataItem:()=>F.UQ,LegendSettings:()=>F.BZ,MapArc:()=>Pi,MapArcSeries:()=>Jr,MapArcSeriesDataItem:()=>Mi,MapChart:()=>Kr,MapChartDataItem:()=>ja,MapImage:()=>de,MapImageSeries:()=>cn,MapImageSeriesDataItem:()=>di,MapLine:()=>oe,MapLineObject:()=>hn,MapLineSeries:()=>xe,MapLineSeriesDataItem:()=>ae,MapObject:()=>pe,MapPolygon:()=>Qe,MapPolygonSeries:()=>Wn,MapPolygonSeriesDataItem:()=>Bn,MapSeries:()=>Jt,MapSeriesDataItem:()=>qt,MapSpline:()=>yi,MapSplineSeries:()=>qr,MapSplineSeriesDataItem:()=>Si,Projection:()=>dt,SmallMap:()=>ci,ZoomControl:()=>to,d3geo:()=>Dt,geo:()=>xt,getBackground:()=>cr,getCircle:()=>Xo,multiGeoLineToMultiLine:()=>Xe,multiGeoPolygonToMultipolygon:()=>Zn,multiGeoToPoint:()=>_n,multiLineToGeo:()=>Fn,multiPointToGeo:()=>ke,multiPolygonToGeo:()=>Yo,pointToGeo:()=>Ye,projections:()=>Ft});var xt={};R.r(xt),R.d(xt,{geoToPoint:()=>Ta,normalizeMultiline:()=>Qr,normalizePoint:()=>Xr,wrapAngleTo180:()=>Ce});var Ft={};R.r(Ft),R.d(Ft,{Albers:()=>go,AlbersUsa:()=>mo,AzimuthalEqualArea:()=>Mo,Eckert6:()=>so,EqualEarth:()=>wo,Mercator:()=>io,Miller:()=>oo,NaturalEarth1:()=>Po,Orthographic:()=>ho,Projection:()=>dt,Stereographic:()=>fo});var Dt={};R.r(Dt),R.d(Dt,{geoAlbers:()=>Ii,geoAlbersUsa:()=>vo,geoArea:()=>$i,geoAzimuthalEqualArea:()=>So,geoAzimuthalEqualAreaRaw:()=>Gi,geoAzimuthalEquidistant:()=>ns,geoAzimuthalEquidistantRaw:()=>Ai,geoBounds:()=>zn,geoCentroid:()=>qa,geoCircle:()=>lr,geoClipAntimeridian:()=>kn,geoClipCircle:()=>yr,geoClipExtent:()=>Ja,geoClipRectangle:()=>qe,geoConicConformal:()=>is,geoConicConformalRaw:()=>zo,geoConicEqualArea:()=>dn,geoConicEqualAreaRaw:()=>po,geoConicEquidistant:()=>rs,geoConicEquidistantRaw:()=>No,geoContains:()=>es,geoDistance:()=>Le,geoEqualEarth:()=>bo,geoEqualEarthRaw:()=>ji,geoEquirectangular:()=>br,geoEquirectangularRaw:()=>Pe,geoGnomonic:()=>os,geoGnomonicRaw:()=>Vi,geoGraticule:()=>vi,geoGraticule10:()=>Ga,geoIdentity:()=>as,geoInterpolate:()=>Hr,geoLength:()=>kr,geoMercator:()=>eo,geoMercatorRaw:()=>Ee,geoNaturalEarth1:()=>yo,geoNaturalEarth1Raw:()=>Di,geoOrthographic:()=>lo,geoOrthographicRaw:()=>xi,geoPath:()=>Wr,geoProjection:()=>Mt,geoProjectionMutator:()=>Kn,geoRotation:()=>ar,geoStereographic:()=>co,geoStereographicRaw:()=>Ei,geoStream:()=>wt,geoTransform:()=>ea,geoTransverseMercator:()=>ss,geoTransverseMercatorRaw:()=>Fi});var F=R(73020),nt=R(42767),G=R(19845),Gt=R(48455),N=R(75080),_=R(94131),tt=R(84984),x=R(9450),S=R(89196),T=R(90868);class A{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let i=0;for(let r=0;r<this._n&&r<32;r++){const o=t[r],a=e+o,s=Math.abs(e)<Math.abs(o)?e-(a-o):o-(a-e);s&&(t[i++]=s),e=a}return t[i]=e,this._n=i+1,this}valueOf(){const e=this._partials;let i,r,o,t=this._n,a=0;if(t>0){for(a=e[--t];t>0&&(i=a,r=e[--t],a=i+r,o=r-(a-i),!o););t>0&&(o<0&&e[t-1]<0||o>0&&e[t-1]>0)&&(r=2*o,i=a+r,r==i-a&&(a=i))}return a}}var C=1e-6,it=1e-12,j=Math.PI,V=j/2,Bt=j/4,Q=2*j,B=180/j,I=j/180,O=Math.abs,jt=Math.atan,rt=Math.atan2,w=Math.cos,Wt=Math.ceil,_i=Math.exp,xn=(Math,Math.hypot),Ae=Math.log,En=Math.pow,L=Math.sin,St=Math.sign||function(n){return n>0?1:n<0?-1:0},ot=Math.sqrt,Tn=Math.tan;function Zi(n){return n>1?0:n<-1?j:Math.acos(n)}function lt(n){return n>1?V:n<-1?-V:Math.asin(n)}function Bi(n){return(n=L(n/2))*n}function U(){}function Ve(n,e){n&&Hi.hasOwnProperty(n.type)&&Hi[n.type](n,e)}var Wi={Feature:function(n,e){Ve(n.geometry,e)},FeatureCollection:function(n,e){for(var t=n.features,i=-1,r=t.length;++i<r;)Ve(t[i].geometry,e)}},Hi={Sphere:function(n,e){e.sphere()},Point:function(n,e){e.point((n=n.coordinates)[0],n[1],n[2])},MultiPoint:function(n,e){for(var t=n.coordinates,i=-1,r=t.length;++i<r;)e.point((n=t[i])[0],n[1],n[2])},LineString:function(n,e){In(n.coordinates,e,0)},MultiLineString:function(n,e){for(var t=n.coordinates,i=-1,r=t.length;++i<r;)In(t[i],e,0)},Polygon:function(n,e){ki(n.coordinates,e)},MultiPolygon:function(n,e){for(var t=n.coordinates,i=-1,r=t.length;++i<r;)ki(t[i],e)},GeometryCollection:function(n,e){for(var t=n.geometries,i=-1,r=t.length;++i<r;)Ve(t[i],e)}};function In(n,e,t){var o,i=-1,r=n.length-t;for(e.lineStart();++i<r;)e.point((o=n[i])[0],o[1],o[2]);e.lineEnd()}function ki(n,e){var t=-1,i=n.length;for(e.polygonStart();++t<i;)In(n[t],e,1);e.polygonEnd()}function wt(n,e){n&&Wi.hasOwnProperty(n.type)?Wi[n.type](n,e):Ve(n,e)}var Yi,Xi,Dn,Gn,jn,Fe=new A,_e=new A,Et={point:U,lineStart:U,lineEnd:U,polygonStart:function(){Fe=new A,Et.lineStart=Ao,Et.lineEnd=Vo}
1,polygonEnd:function(){var n=+Fe;_e.add(n<0?Q+n:n),this.lineStart=this.lineEnd=this.point=U},sphere:function(){_e.add(Q)}};function Ao(){Et.point=Fo}function Vo(){Qi(Yi,Xi)}function Fo(n,e){Et.point=Qi,Yi=n,Xi=e,Dn=n*=I,Gn=w(e=(e*=I)/2+Bt),jn=L(e)}function Qi(n,e){var t=(n*=I)-Dn,i=t>=0?1:-1,r=i*t,o=w(e=(e*=I)/2+Bt),a=L(e),s=jn*a,u=Gn*o+s*w(r),h=s*i*L(r);Fe.add(rt(h,u)),Dn=n,Gn=o,jn=a}function $i(n){return _e=new A,wt(n,Et),2*_e}function Ze(n){return[rt(n[1],n[0]),lt(n[2])]}function Ht(n){var e=n[0],t=n[1],i=w(t);return[i*w(e),i*L(e),L(t)]}function Be(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function Ut(n,e){return[n[1]*e[2]-n[2]*e[1],n[2]*e[0]-n[0]*e[2],n[0]*e[1]-n[1]*e[0]]}function On(n,e){n[0]+=e[0],n[1]+=e[1],n[2]+=e[2]}function We(n,e){return[n[0]*e,n[1]*e,n[2]*e]}function He(n){var e=ot(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=e,n[1]/=e,n[2]/=e}var K,pt,J,mt,kt,Ui,Ki,Kt,fe,_t,Ot,Rt={point:Rn,lineStart:Ji,lineEnd:tr,polygonStart:function(){Rt.point=er,Rt.lineStart=_o,Rt.lineEnd=Zo,fe=new A,Et.polygonStart()},polygonEnd:function(){Et.polygonEnd(),Rt.point=Rn,Rt.lineStart=Ji,Rt.lineEnd=tr,Fe<0?(K=-(J=180),pt=-(mt=90)):fe>C?mt=90:fe<-C&&(pt=-90),Ot[0]=K,Ot[1]=J},sphere:function(){K=-(J=180),pt=-(mt=90)}};function Rn(n,e){_t.push(Ot=[K=n,J=n]),e<pt&&(pt=e),e>mt&&(mt=e)}function qi(n,e){var t=Ht([n*I,e*I]);if(Kt){var i=Ut(Kt,t),o=Ut([i[1],-i[0],0],i);He(o),o=Ze(o);var h,a=n-kt,s=a>0?1:-1,u=o[0]*B*s,l=O(a)>180;l^(s*kt<u&&u<s*n)?(h=o[1]*B)>mt&&(mt=h):l^(s*kt<(u=(u+360)%360-180)&&u<s*n)?(h=-o[1]*B)<pt&&(pt=h):(e<pt&&(pt=e),e>mt&&(mt=e)),l?n<kt?yt(K,n)>yt(K,J)&&(J=n):yt(n,J)>yt(K,J)&&(K=n):J>=K?(n<K&&(K=n),n>J&&(J=n)):n>kt?yt(K,n)>yt(K,J)&&(J=n):yt(n,J)>yt(K,J)&&(K=n)}else _t.push(Ot=[K=n,J=n]);e<pt&&(pt=e),e>mt&&(mt=e),Kt=t,kt=n}function Ji(){Rt.point=qi}function tr(){Ot[0]=K,Ot[1]=J,Rt.point=Rn,Kt=null}function er(n,e){if(Kt){var t=n-kt;fe.add(O(t)>180?t+(t>0?360:-360):t)}else Ui=n,Ki=e;Et.point(n,e),qi(n,e)}function _o(){Et.lineStart()}function Zo(){er(Ui,Ki),Et.lineEnd(),O(fe)>C&&(K=-(J=180)),Ot[0]=K,Ot[1]=J,Kt=null}function yt(n,e){return(e-=n)<0?e+360:e}function Bo(n,e){return n[0]-e[0]}function nr(n,e){return n[0]<=n[1]?n[0]<=e&&e<=n[1]:e<n[0]||n[1]<e}function zn(n){var e,t,i,r,o,a,s;if(mt=J=-(K=pt=1/0),_t=[],wt(n,Rt),t=_t.length){for(_t.sort(Bo),e=1,o=[i=_t[0]];e<t;++e)nr(i,(r=_t[e])[0])||nr(i,r[1])?(yt(i[0],r[1])>yt(i[0],i[1])&&(i[1]=r[1]),yt(r[0],i[1])>yt(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,e=0,i=o[t=o.length-1];e<=t;i=r,++e)(s=yt(i[1],(r=o[e])[0]))>a&&(a=s,K=r[0],J=i[1])}return _t=Ot=null,K===1/0||pt===1/0?[[NaN,NaN],[NaN,NaN]]:[[K,pt],[J,mt]]}var qt=function(n){function e(){var t=n.call(this)||this;return t.className="MapSeriesDataItem",t.values.value={},t.applyTheme(),t}return(0,G.ZT)(e,n),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.properties.zoomLevel},set:function(t){this.setProperty("zoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){return this.properties.zoomGeoPoint},set:function(t){this.setProperty("zoomGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return this._east},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return this._west},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return this._south},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return this._north},enumerable:!0,configurable:!0}),e.prototype.updateExtremes=function(){var t=this.getFeature().geometry;if(t){var i=zn(t),r=i[0][0],o=i[0][1],a=i[1][1],s=i[1][0],u=!1;a!=this.north&&(this._north=T.round(a,6),u=!0),o!=this.south&&(this._south=T.round(o,6),u=!0),s!=this.east&&(this._east=T.round(s,6),u=!0),r!=this.west&&(this._west=T.round(r,6),u=!0),this._east<this._west&&(this._east=180,this._west=-180),u&&this.component.invali
1dateDataItems()}},e.prototype.getFeature=function(){return{}},e}(tt.m),Jt=function(n){function e(){var t=n.call(this)||this;return t.className="MapSeries",t.isMeasured=!1,t.nonScalingStroke=!0,t.dataFields.value="value",t.ignoreBounds=!1,t.tooltip&&(t.tooltip.showInViewport=!0),t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createDataItem=function(){return new qt},e.prototype.checkInclude=function(t,i,r){if(t){if(0==t.length)return!1;if(-1==t.indexOf(r))return!1}return!(i&&i.length>0&&-1!=i.indexOf(r))},Object.defineProperty(e.prototype,"useGeodata",{get:function(){return this.getPropertyValue("useGeodata")},set:function(t){this.setPropertyValue("useGeodata",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"include",{get:function(){return this.getPropertyValue("include")},set:function(t){this.setPropertyValue("include",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.processIncExc=function(){this.invalidateData()},Object.defineProperty(e.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(t){this.setPropertyValue("ignoreBounds",t)&&this.chart&&this.chart.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exclude",{get:function(){return this.getPropertyValue("exclude")},set:function(t){this.setPropertyValue("exclude",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.handleObjectAdded=function(t){var i=t.newValue;i.parent=this,i.series=this,i.strokeWidth=i.strokeWidth},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){if(t!=this._geodata){this._geodata=t,this.reverseGeodata&&this.chart.processReverseGeodata(this._geodata);for(var i=this.data.length-1;i>=0;i--)1==this.data[i].madeFromGeoData&&this.data.splice(i,1);this.disposeData(),this.invalidateData()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseGeodata",{get:function(){return this.getPropertyValue("reverseGeodata")},set:function(t){this.setPropertyValue("reverseGeodata",t)&&this._geodata&&this.chart.processReverseGeodata(this._geodata)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var i=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",function(){i.loadData("geodata")},void 0,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.getFeatures=function(){},e.prototype.validateDataItems=function(){n.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,i,r,o;this.dataItems.each(function(a){(a.north>t||!S.isNumber(t))&&(t=a.north),(a.south<i||!S.isNumber(i))&&(i=a.south),(a.west<o||!S.isNumber(o))&&(o=a.west),(a.east>r||!S.isNumber(r))&&(r=a.east)}),this._mapObjects&&this._mapObjects.each(function(a){(a.north>t||!S.isNumber(t))&&(t=a.north),(a.south<i||!S.isNumber(i))&&(i=a.south),(a.west<o||!S.isNumber(o))&&(o=a.west),(a.east>r||!S.isNumber(r))&&(r=a.east)}),(this.north!=t||this.east!=r||this.south!=i||this.west!=o)&&(this._north=t,this._east=r,this._west=o,this._south=i,this.dispatch("geoBoundsChanged"),this.ignoreBounds||this.chart.updateExtremes())},Object.defineProperty(e.prototype,"north",{get:function(){return S.isNumber(this._northDefined)?this._northDefined:this._north},set:function(t){this._northDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return S.isNumber(this._southDefined)?this._southDefined:this._south},set:function(t){this._southDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return S.isNumber(this._westDefined)?this._westDefined:this._west},set:function(t){this._westDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return S.isNumber(this._eastDefined)?this._eastDefined:this._east},set:function(t){this._eastDefined=t},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(t){if(S.hasValue(t.geodata)&&S.isString(t.geodata)){var i=t.geodata;if(S.hasValue(window["am4geodata_"+t.geodata]))t.geodata=window["am4geodata_"+t.geodata];else try{t.geodata=JSON.parse(t.geodata)}catch{throw Error("MapChart error: Geodata `"+i+"` is not loaded or is incorrect.")}}n.prototype.processConfig.call(this,t)},e.prototype.asIs=function(t){return"geodata"==t||n.prototype.asIs.call(this,t)},e.prototype.updateTooltipBounds=function(){this.tooltip&&this.topParent&&this.tooltip.setBounds({x:10,y:10,width:this.topParent.maxWidth-20,height:this.topParent.maxHeight-20})},e}(tt.F);x.i.registeredClasses.MapSeries=Jt,x.i.registeredClasses.MapSeriesDataItem=qt;var te=R(6668),pe=function(n){function e(){var t=n.call(this)||this;return t.className="MapObject",t.isMeasured=!1,t.layout="none",t.clickable=!0,t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.validate=function(){this.series&&this.series.itemReaderText&&(this.readerTitle=this.series.itemReaderText),n.prototype.validate.call(this)},e.prototype.updateExtremes=function(){var t=this.getFeature();if(t){var i=t.geometry;if(i){var r=zn(i),o=r[0][0],a=r[0][1],s=r[1][1],u=r[1][0],h=!1;s!=this.north&&(this._north=T.round(s,8),h=!0),a!=this.south&&(this._south=T.round(a),h=!0),u!=this.east&&(this._east=T.round(u),h=!0),o!=this.west&&(this._west=T.round(o),h=!0),h&&(this.dispatch("geoBoundsChanged"),this.series&&this.series.invalidateDataItems())}}},e.prototype.getFeature=function(){return{}},Object.defineProperty(e.prototype,"east",{get:function(){return S.isNumber(this._east)?this._east:this.dataItem?this.dataItem.east:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return S.isNumber(this._west)?this._west:this.dataItem?this.dataItem.west:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return S.isNumber(this._south)?this._south:this.dataItem?this.dataItem.south:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return S.isNumber(this._north)?this._north:this.dataItem?this.dataItem.north:void 0},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(t){var i=n.prototype.showTooltip.call(this,t);return i&&"always"==this.showTooltipOn&&!this.series.chart.events.has("mappositionchanged",this.handleTooltipMove,this)&&this.addDisposer(this.series.chart.events.on("mappositionchanged",this.handleTooltipMove,this)),i},e.prototype.handleTooltipMove=function(t){this.tooltip.isHidden||this.showTooltip()},e.prototype.setDataItem=function(t){n.prototype.setDataItem.call(this,t),this.applyAccessibility()},e}(te.W);x.i.registeredClasses.MapObject=pe;var de=function(n){function e(){var t=n.call(this)||this;return t.className="MapImage",t.applyTheme(),t}return(0,G.ZT)(e,n),Object.defineProperty(e.prototype,"latitude",{get:function(){var t=this.getPropertyValue("latitude");return!S.isNumber(t)&&this.dataItem&&this.dataItem.geoPoint&&(t=this.dataItem.geoPoint.latitude),t},set:function(t){this.setPropertyValue("latitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){var t=this.getPropertyValue("longitude");return!S.isNumber(t)&&this.dataItem&&this.dataItem.geoPoint&&(t=this.dataItem.geoPoint.longitude),t},set:function(t){this.setPropertyValue("longitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),e.prototype.validatePosition=function(){if(S.isNumber(this.latitude)&&S.isNumber(this.longitude)){var t=this.series.chart.projection.d3Projection([this.longitude,this.latitude]),i=this.series.chart.projection.d3Path({type:"Point",coordinates:[this.longitude,this.latitude]});this.__disabled=!i,this.moveTo({x:t[0],y:t[1]})}n.prototype.validatePosition.call(this)},e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:[this.longitude,this.latitude]}}},e}(pe);x.i.registeredClasses.MapImage=de;var Wo=R(22477),Ho=R(80877),ko=R.n(Ho),Pt=R(17478);function ee(n){return function(){return n}}function Nn(n,e){function t(i,r){return i=n(i,r),e(i[0],i[1])}return n.invert&&e.invert&&(t.invert=function(i,r){return(i=e.invert(i,r))&&n.invert(i[0],i[1])}),t}function An(n,e){return O(n)>j&&(n-=Math.round(n/Q)*Q),[n,e]}function Vn(n,e,t){return(n%=Q)?e||t?Nn(rr(n),or(e,t)):rr(n):e||t?or(e,t):An}function ir(n){return function(e,t){return O(e+=n)>j&&(e-=Math.round(e/Q)*Q),[e,t]}}function rr(n){var e=ir(n);return e.invert=ir(-n),e}function or(n,e){var t=w(n),i=L(n),r=w(e),o=L(e);function a(s,u){var h=w(u),l=w(s)*h,f=L(s)*h,c=L(u),p=c*t+l*i;return[rt(f*r-p*o,l*t-c*i),lt(p*r+f*o)]}return a.invert=function(s,u){var h=w(u),l=w(s)*h,f=L(s)*h,c=L(u),p=c*r-f*o;return[rt(f*r+c*o,l*t+p*i),lt(p*t-l*i)]},a}function ar(n){function e(t){return(t=n(t[0]*I,t[1]*I))[0]*=B,t[1]*=B,t}return n=Vn(n[0]*I,n[1]*I,n.length>2?n[2]*I:0),e.invert=function(t){return(t=n.invert(t[0]*I,t[1]*I))[0]*=B,t[1]*=B,t},e}function sr(n,e,t,i,r,o){if(t){var a=w(e),s=L(e),u=i*t;null==r?(r=e+i*Q,o=e-u/2):(r=ur(a,r),o=ur(a,o),(i>0?r<o:r>o)&&(r+=i*Q));for(var h,l=r;i>0?l>o:l<o;l-=u)h=Ze([a,-s*w(l),-s*L(l)]),n.point(h[0],h[1])}}function ur(n,e){(e=Ht(e))[0]-=n,He(e);var t=Zi(-e[1]);return((-e[2]<0?-t:t)+Q-C)%Q}function lr(){var i,r,n=ee([0,0]),e=ee(90),t=ee(6),o={point:function a(u,h){i.push(u=r(u,h)),u[0]*=B,u[1]*=B}};function s(){var u=n.apply(this,arguments),h=e.apply(this,arguments)*I,l=t.apply(this,arguments)*I;return i=[],r=Vn(-u[0]*I,-u[1]*I,0).invert,sr(o,h,l,1),u={type:"Polygon",coordinates:[i]},i=r=null,u}return s.center=function(u){return arguments.length?(n="function"==typeof u?u:ee([+u[0],+u[1]]),s):n},s.radius=function(u){return arguments.length?(e="function"==typeof u?u:ee(+u),s):e},s.precision=function(u){return arguments.length?(t="function"==typeof u?u:ee(+u),s):t},s}function Yo(n){return Pt.map(n,function(e){var t=e[0],i=e[1],r=[];return t&&r.push(ke(t)),i&&r.push(ke(i)),r})}function Fn(n){return Pt.map(n,function(e){return ke(e)})}function ke(n){return Pt.map(n,function(e){return Ye(e)})}function _n(n){return Pt.map(n,hr)}function Ye(n){return{longitude:n[0],latitude:n[1]}}function hr(n){return[n.longitude,n.latitude]}function Xe(n){return Pt.map(n,function(e){return Pt.map(e,hr)})}function Zn(n){return Pt.map(n,function(e){var t=e[0],i=e[1],r=[];return t&&r.push(_n(t)),i&&r.push(_n(i)),r})}function Xo(n,e,t){return[lr().center([n,e]).radius(t)().coordinates]}function cr(n,e,t,i){var r=[];-180==i&&(i=-179.9999),-90==t&&(t=-89.9999),90==n&&(n=89.9999),180==e&&(e=179.9999);for(var o=Math.min(90,(e-i)/Math.ceil((e-i)/90)),a=(n-t)/Math.ceil((n-t)/90),s=i;s<e;s+=o){var u=[];r.push([u]),s+o>e&&(o=e-s);for(var h=s;h<=s+o;h+=5)u.push([h,n]);for(var l=n;l>=t;l-=a)u.push([s+o,l]);for(h=s+o;h>=s;h-=5)u.push([h,t]);for(l=t;l<=n;l+=a)u.push([s,l])}return r}An.invert=An;var Qe=function(n){function e(){var t=n.call(this)||this;t.className="MapPolygon",t.polygon=t.createChild(Wo.m),t.polygon.shouldClone=!1,t.polygon.applyOnClones=!0,t.setPropertyValue("precision",.5);var i=new _.h;return t.fill=i.getFor("secondaryButton"),t.stroke=i.getFor("secondaryButtonStroke"),t.strokeOpacity=1,t.tooltipPosition="pointer",t.n
1onScalingStroke=!0,t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){var t=this.getPropertyValue("multiGeoPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiGeoPolygon),t},set:function(t){this.setPropertyValue("multiGeoPolygon",t,!0),this.multiPolygon=Zn(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){var t=this.getPropertyValue("multiPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiPolygon),t},set:function(t){this.setPropertyValue("multiPolygon",t)&&(this.updateExtremes(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.validate=function(){if(this.series){var t=this.series.chart.projection,i=t.d3Path;if(this.multiPolygon){if(this.series){var r={type:"MultiPolygon",coordinates:this.multiPolygon};t.d3Projection.precision(this.precision),this.polygon.path=i(r)}if(this.series.calculateVisualCenter){var o=0,a=this.multiPolygon[0];if(this.multiPolygon.length>1)for(var s=0;s<this.multiPolygon.length;s++){var u=this.multiPolygon[s],h=$i({type:"Polygon",coordinates:u});h>o&&(a=u,o=h)}var l=ko()(a);this._visualLongitude=l[0],this._visualLatitude=l[1]}else this._visualLongitude=this.longitude,this._visualLatitude=this.latitude}}n.prototype.validate.call(this)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLatitude",{get:function(){var t=this.getPropertyValue("visualLatitude");return S.isNumber(t)?t:this._adapterO?this._adapterO.apply("visualLatitude",this._visualLatitude):this._visualLatitude},set:function(t){this.setPropertyValue("visualLatitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLongitude",{get:function(){var t=this.getPropertyValue("visualLongitude");return S.isNumber(t)?t:this._adapterO?this._adapterO.apply("visualLongitude",this._visualLongitude):this._visualLongitude},set:function(t){this.setPropertyValue("visualLongitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){return this.polygon.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){return this.polygon.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){n.prototype.copyFrom.call(this,t),this.polygon.copyFrom(t.polygon)},e.prototype.updateExtremes=function(){n.prototype.updateExtremes.call(this)},Object.defineProperty(e.prototype,"boxArea",{get:function(){return(this.north-this.south)*(this.east-this.west)},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).x},e.prototype.getTooltipY=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).y},Object.defineProperty(e.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(t){this.setPropertyValue("precision",t,!0)},enumerable:!0,configurable:!0}),e}(pe);x.i.registeredClasses.MapPolygon=Qe;var zt=R(23962),st=R(86234),Yt=R(43856),Bn=function(n){function e(){var t=n.call(this)||this;return t.className="MapPolygonSeriesDataItem",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"mapPolygon",{get:function(){var t=this;if(!this._mapPolygon){var i=this.component.mapPolygons.create();this._mapPolygon=i,this.addSprite(i),this._disposers.push(new N.ku(function(){t.component&&t.component.mapPolygons.removeValue(i)})),this.mapObject=i}return this._mapPolygon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygon",{get:function(){return this._polygon}
1,set:function(t){this._polygon=t,this.multiPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){return this._multiPolygon},set:function(t){this._multiPolygon=t,this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPolygon",{get:function(){return this._geoPolygon},set:function(t){this._geoPolygon=t,this.multiGeoPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){return this._multiGeoPolygon},set:function(t){this._multiGeoPolygon=t,this.multiPolygon=Zn(t)},enumerable:!0,configurable:!0}),e}(qt),Wn=function(n){function e(){var t=n.call(this)||this;return t.calculateVisualCenter=!1,t.className="MapPolygonSeries",t.dataFields.multiPolygon="multiPolygon",t.dataFields.polygon="polygon",t.dataFields.geoPolygon="geoPolygon",t.dataFields.multiGeoPolygon="multiGeoPolygon",t.setPropertyValue("sortPolygonsBy","area"),t.setPropertyValue("sortPolygonsReversed",!1),t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createDataItem=function(){return new Bn},e.prototype.processIncExc=function(){this.mapPolygons.clear(),n.prototype.processIncExc.call(this)},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var t=this._dataSources.geodata?void 0:this.chart.geodata;if(this.geodata&&(t=this.geodata),t){var i=void 0;if("FeatureCollection"==t.type?i=t.features:"Feature"==t.type?i=[t]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(t.type)?i=[{geometry:t}]:console.log("nothing found in geoJSON"),i)for(var r=function(u,h){var l=i[u],f=l.geometry;if(f){var c=f.type,p=l.id;if(o.chart.geodataNames&&o.chart.geodataNames[p]&&(l.properties.name=o.chart.geodataNames[p]),"Polygon"==c||"MultiPolygon"==c){if(!o.checkInclude(o.include,o.exclude,p))return"continue";var d=f.coordinates;d&&"Polygon"==c&&(d=[d]);var g=Pt.find(o.data,function(m,b){return m.id==p});g?g.multiPolygon||(g.multiPolygon=d):o.data.push(g={multiPolygon:d,id:p,madeFromGeoData:!0}),st.softCopyProperties(l.properties,g)}}},o=this,a=0,s=i.length;a<s;a++)r(a)}}n.prototype.validateData.call(this)},e.prototype.validate=function(){if(n.prototype.validate.call(this),this.dataItems.each(function(r){st.used(r.mapPolygon)}),"none"!=this.sortPolygonsBy){var t=this.sortPolygonsBy,i=this.sortPolygonsReversed;this.mapPolygons.sort(function(r,o){var a="",s="",u=-1,h=1;switch(t){case"area":a=r.boxArea,s=o.boxArea,u=-1,h=1;break;case"name":a=r.dataItem.dataContext.name||"",s=o.dataItem.dataContext.name||"",u=1,h=-1;break;case"id":a=r.dataItem.dataContext.id||"",s=o.dataItem.dataContext.id||"",u=1,h=-1;break;case"latitude":a=i?r.south:r.north,s=i?o.south:o.north,u=-1,h=1;break;case"longitude":a=i?r.east:r.west,s=i?o.east:o.west,u=1,h=-1}return a<s?i?h:u:a>s?i?u:h:0}),this.mapPolygons.each(function(r,o){r.validate(),!r.zIndex&&!r.propertyFields.zIndex&&(r.zIndex=1e6-o)})}},Object.defineProperty(e.prototype,"mapPolygons",{get:function(){if(!this._mapPolygons){var t=new Qe,i=new zt.o(t);this._disposers.push(new zt.zQ(i)),this._disposers.push(i.template),i.template.focusable=!0,i.events.on("inserted",this.handleObjectAdded,this,!1),this._mapPolygons=i,this._mapObjects=i}return this._mapPolygons},enumerable:!0,configurable:!0}),e.prototype.getPolygonById=function(t){return Yt.find(this.mapPolygons.iterator(),function(i){return i.dataItem.dataContext.id==t})},e.prototype.copyFrom=function(t){this.mapPolygons.template.copyFrom(t.mapPolygons.template),n.prototype.copyFrom.call(this,t)},e.prototype.getFeatures=function(){var t=this,i=[];return this.dataItems.each(function(r){var o=r.getFeature();o&&i.push(o)}),this.mapPolygons.each(function(r){if(-1==t.dataItems.indexOf(r._dataItem)){var o=r.getFeature();o&&i.push(o)}}),i},Object.defineProperty(e.prototype,"sortPolygonsBy",{get:function(){return this.getPropertyValue("sortPolygonsBy")},set:function(t){this.setPropertyValue("sortPolygonsBy",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortPolygonsReversed",{get:function(){return this.getPropertyValue("sortPolygonsReversed")},set:function(t){this.setPropertyValue("sortPolygonsReversed",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e}(Jt);function fr(){var e,n=[];return{point:function(t,i,r){e.push([t,i,r])},lineStart:function(){n.push(e=[])},lineEnd:U,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var t=n;return n=[],e=null,t}}}function $e(n,e){return O(n[0]-e[0])<C&&O(n[1]-e[1])<C}function Ue(n,e,t,i){this.x=n,this.z=e,this.o=t,this.e=i,this.v=!1,this.n=this.p=null}function pr(n,e,t,i,r){var s,u,o=[],a=[];if(n.forEach(function(d){if(!((g=d.length-1)<=0)){var g,M,m=d[0],b=d[g];if($e(m,b)){if(!m[2]&&!b[2]){for(r.lineStart(),s=0;s<g;++s)r.point((m=d[s])[0],m[1]);return void r.lineEnd()}b[0]+=2*C}o.push(M=new Ue(m,d,null,!0)),a.push(M.o=new Ue(m,null,M,!1)),o.push(M=new Ue(b,d,null,!1)),a.push(M.o=new Ue(b,null,M,!0))}}),o.length){for(a.sort(e),dr(o),dr(a),s=0,u=a.length;s<u;++s)a[s].e=t=!t;for(var l,f,h=o[0];;){for(var c=h,p=!0;c.v;)if((c=c.n)===h)return;l=c.z,r.lineStart();do{if(c.v=c.o.v=!0,c.e){if(p)for(s=0,u=l.length;s<u;++s)r.point((f=l[s])[0],f[1]);else i(c.x,c.n.x,1,r);c=c.n}else{if(p)for(s=(l=c.p.z).length-1;s>=0;--s)r.point((f=l[s])[0],f[1]);else i(c.x,c.p.x,-1,r);c=c.p}l=(c=c.o).z,p=!p}while(!c.v);r.lineEnd()}}}function dr(n){if(e=n.length){for(var e,r,t=0,i=n[0];++t<e;)i.n=r=n[t],r.p=i,i=r;i.n=r=n[0],r.p=i}}function Hn(n){return O(n[0])<=j?n[0]:St(n[0])*((O(n[0])+j)%Q-j)}function gr(n,e){var t=Hn(e),i=e[1],r=L(i),o=[L(t),-w(t),0],a=0,s=0,u=new A;1===r?i=V+C:-1===r&&(i=-V-C);for(var h=0,l=n.length;h<l;++h)if(c=(f=n[h]).length)for(var f,c,p=f[c-1],d=Hn(p),g=p[1]/2+Bt,m=L(g),b=w(g),M=0;M<c;++M,d=y,m=D,b=W,p=v){var v=f[M],y=Hn(v),E=v[1]/2+Bt,D=L(E),W=w(E),H=y-d,k=H>=0?1:-1,$=k*H,z=$>j,gt=m*D;if(u.add(rt(gt*k*L($),b*W+gt*w($))),a+=z?H+k*Q:H,z^d>=t^y>=t){var et=Ut(Ht(p),Ht(v));He(et);var Y=Ut(o,et);He(Y);var P=(z^H>=0?-1:1)*lt(Y[2]);(i>P||i===P&&(et[0]||et[1]))&&(s+=z^H>=0?1:-1)}}return(a<-C||a<C&&u<-it)^1&s}function vr(n){return Array.from(function*Qo(n){for(const e of n)yield*e}(n))}function mr(n,e,t,i){return function(r){var h,l,f,o=e(r),a=fr(),s=e(a),u=!1,c={point:p,lineStart:g,lineEnd:m,polygonStart:function(){c.point=b,c.lineStart=M,c.lineEnd=v,l=[],h=[]},polygonEnd:function(){c.point=p,c.lineStart=g,c.lineEnd=m,l=vr(l);var y=gr(h,i);l.length?(u||(r.polygonStart(),u=!0),pr(l,Uo,y,t,r)):y&&(u||(r.polygonStart(),u=!0),r.lineStart(),t(null,null,1,r),r.lineEnd()),u&&(r.polygonEnd(),u=!1),l=h=null},sphere:function(){r.polygonStart(),r.lineStart(),t(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function p(y,E){n(y,E)&&r.point(y,E)}function d(y,E){o.point(y,E)}function g(){c.point=d,o.lineStart()}function m(){c.point=p,o.lineEnd()}function b(y,E){f.push([y,E]),s.point(y,E)}function M(){s.lineStart(),f=[]}function v(){b(f[0][0],f[0][1]),s.lineEnd();
1var D,H,k,$,y=s.clean(),E=a.result(),W=E.length;if(f.pop(),h.push(f),f=null,W){if(1&y){if((H=(k=E[0]).length-1)>0){for(u||(r.polygonStart(),u=!0),r.lineStart(),D=0;D<H;++D)r.point(($=k[D])[0],$[1]);r.lineEnd()}return}W>1&&2&y&&E.push(E.pop().concat(E.shift())),l.push(E.filter($o))}}return c}}function $o(n){return n.length>1}function Uo(n,e){return((n=n.x)[0]<0?n[1]-V-C:V-n[1])-((e=e.x)[0]<0?e[1]-V-C:V-e[1])}x.i.registeredClasses.MapPolygonSeries=Wn,x.i.registeredClasses.MapPolygonSeriesDataItem=Bn;const kn=mr(function(){return!0},function Ko(n){var r,e=NaN,t=NaN,i=NaN;return{lineStart:function(){n.lineStart(),r=1},point:function(o,a){var s=o>0?j:-j,u=O(o-e);O(u-j)<C?(n.point(e,t=(t+a)/2>0?V:-V),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(s,t),n.point(o,t),r=0):i!==s&&u>=j&&(O(e-i)<C&&(e-=i*C),O(o-s)<C&&(o-=s*C),t=function qo(n,e,t,i){var r,o,a=L(n-t);return O(a)>C?jt((L(e)*(o=w(i))*L(t)-L(i)*(r=w(e))*L(n))/(r*o*a)):(e+i)/2}(e,t,o,a),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(s,t),r=0),n.point(e=o,t=a),i=s},lineEnd:function(){n.lineEnd(),e=t=NaN},clean:function(){return 2-r}}},function Jo(n,e,t,i){var r;if(null==n)i.point(-j,r=t*V),i.point(0,r),i.point(j,r),i.point(j,0),i.point(j,-r),i.point(0,-r),i.point(-j,-r),i.point(-j,0),i.point(-j,r);else if(O(n[0]-e[0])>C){var o=n[0]<e[0]?j:-j;i.point(-o,r=t*o/2),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])},[-j,-V]);function yr(n){var e=w(n),t=6*I,i=e>0,r=O(e)>C;function a(l,f){return w(l)*w(f)>e}function u(l,f,c){var g=[1,0,0],m=Ut(Ht(l),Ht(f)),b=Be(m,m),M=m[0],v=b-M*M;if(!v)return!c&&l;var y=e*b/v,E=-e*M/v,D=Ut(g,m),W=We(g,y);On(W,We(m,E));var k=D,$=Be(W,k),z=Be(k,k),gt=$*$-z*(Be(W,W)-1);if(!(gt<0)){var et=ot(gt),Y=We(k,(-$-et)/z);if(On(Y,W),Y=Ze(Y),!c)return Y;var bt,P=l[0],Z=f[0],at=l[1],vt=f[1];Z<P&&(bt=P,P=Z,Z=bt);var ze=Z-P,At=O(ze-j)<C;if(!At&&vt<at&&(bt=at,at=vt,vt=bt),At||ze<C?At?at+vt>0^Y[1]<(O(Y[0]-P)<C?at:vt):at<=Y[1]&&Y[1]<=vt:ze>j^(P<=Y[0]&&Y[0]<=Z)){var Vt=We(k,(-$+et)/z);return On(Vt,W),[Y,Ze(Vt)]}}}function h(l,f){var c=i?n:j-n,p=0;return l<-c?p|=1:l>c&&(p|=2),f<-c?p|=4:f>c&&(p|=8),p}return mr(a,function s(l){var f,c,p,d,g;return{lineStart:function(){d=p=!1,g=1},point:function(m,b){var v,M=[m,b],y=a(m,b),E=i?y?0:h(m,b):y?h(m+(m<0?j:-j),b):0;if(!f&&(d=p=y)&&l.lineStart(),y!==p&&(!(v=u(f,M))||$e(f,v)||$e(M,v))&&(M[2]=1),y!==p)g=0,y?(l.lineStart(),v=u(M,f),l.point(v[0],v[1])):(v=u(f,M),l.point(v[0],v[1],2),l.lineEnd()),f=v;else if(r&&f&&i^y){var D;!(E&c)&&(D=u(M,f,!0))&&(g=0,i?(l.lineStart(),l.point(D[0][0],D[0][1]),l.point(D[1][0],D[1][1]),l.lineEnd()):(l.point(D[1][0],D[1][1]),l.lineEnd(),l.lineStart(),l.point(D[0][0],D[0][1],3)))}y&&(!f||!$e(f,M))&&l.point(M[0],M[1]),f=M,p=y,c=E},lineEnd:function(){p&&l.lineEnd(),f=null},clean:function(){return g|(d&&p)<<1}}},function o(l,f,c,p){sr(p,n,t,c,l,f)},i?[0,-n]:[-j,n-j])}var ge=1e9,Ke=-ge;function qe(n,e,t,i){function r(h,l){return n<=h&&h<=t&&e<=l&&l<=i}function o(h,l,f,c){var p=0,d=0;if(null==h||(p=a(h,f))!==(d=a(l,f))||u(h,l)<0^f>0)do{c.point(0===p||3===p?n:t,p>1?i:e)}while((p=(p+f+4)%4)!==d);else c.point(l[0],l[1])}function a(h,l){return O(h[0]-n)<C?l>0?0:3:O(h[0]-t)<C?l>0?2:1:O(h[1]-e)<C?l>0?1:0:l>0?3:2}function s(h,l){return u(h.x,l.x)}function u(h,l){var f=a(h,1),c=a(l,1);return f!==c?f-c:0===f?l[1]-h[1]:1===f?h[0]-l[0]:2===f?h[1]-l[1]:l[0]-h[0]}return function(h){var c,p,d,g,m,b,M,v,y,E,D,l=h,f=fr(),W={point:H,lineStart:function gt(){W.point=Y,p&&p.push(d=[]),E=!0,y=!1,M=v=NaN},lineEnd:function et(){c&&(Y(g,m),b&&y&&f.rejoin(),c.push(f.result())),W.point=H,y&&l.lineEnd()},polygonStart:function $(){l=f,c=[],p=[],D=!0},polygonEnd:function z(){var P=function k(){for(var P=0,Z=0,at=p.length;Z<at;++Z)for(var Qt,Vt,vt=p[Z],bt=1,ze=vt.length,At=vt[0],Cn=At[0],ce=At[1];bt<ze;++bt)Qt=Cn,Vt=ce,Cn=(At=vt[bt])[0],ce=At[1],Vt<=i?ce>i&&(Cn-Qt)*(i-Vt)>(ce-Vt)*(n-Qt)&&++P:ce<=i&&(Cn-Qt)*(i-Vt)<(ce-Vt)*(n-Qt)&&--P;return P}(),Z=D&&P,at=(c=vr(c)).length;(Z||at)&&(h.polygonStart(),Z&&(h.lineStart(),o(null,null,1,h),h.lineEnd()),at&&pr(c,s,P,o,h),h.polygonEnd()),l=h,c=p=d=null}};function H(P,Z){r(P,Z)&&l.point(P,Z)}function Y(P,Z){var at=r(P,Z);
vendor: 11,731 bytes, line 1
1if(p&&d.push([P,Z]),E)g=P,m=Z,b=at,E=!1,at&&(l.lineStart(),l.point(P,Z));else if(at&&y)l.point(P,Z);else{var vt=[M=Math.max(Ke,Math.min(ge,M)),v=Math.max(Ke,Math.min(ge,v))],bt=[P=Math.max(Ke,Math.min(ge,P)),Z=Math.max(Ke,Math.min(ge,Z))];!function ta(n,e,t,i,r,o){var d,a=n[0],s=n[1],l=0,f=1,c=e[0]-a,p=e[1]-s;if(d=t-a,c||!(d>0)){if(d/=c,c<0){if(d<l)return;d<f&&(f=d)}else if(c>0){if(d>f)return;d>l&&(l=d)}if(d=r-a,c||!(d<0)){if(d/=c,c<0){if(d>f)return;d>l&&(l=d)}else if(c>0){if(d<l)return;d<f&&(f=d)}if(d=i-s,p||!(d>0)){if(d/=p,p<0){if(d<l)return;d<f&&(f=d)}else if(p>0){if(d>f)return;d>l&&(l=d)}if(d=o-s,p||!(d<0)){if(d/=p,p<0){if(d>f)return;d>l&&(l=d)}else if(p>0){if(d<l)return;d<f&&(f=d)}return l>0&&(n[0]=a+l*c,n[1]=s+l*p),f<1&&(e[0]=a+f*c,e[1]=s+f*p),!0}}}}}(vt,bt,n,e,t,i)?at&&(l.lineStart(),l.point(P,Z),D=!1):(y||(l.lineStart(),l.point(vt[0],vt[1])),l.point(bt[0],bt[1]),at||l.lineEnd(),D=!1)}M=P,v=Z,y=at}return W}}const ve=n=>n;function ea(n){return{stream:me(n)}}function me(n){return function(e){var t=new Yn;for(var i in n)t[i]=n[i];return t.stream=e,t}}function Yn(){}Yn.prototype={constructor:Yn,point:function(n,e){this.stream.point(n,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ne=1/0,Je=ne,ye=-ne,tn=ye;const en={point:function ia(n,e){n<ne&&(ne=n),n>ye&&(ye=n),e<Je&&(Je=e),e>tn&&(tn=e)},lineStart:U,lineEnd:U,polygonStart:U,polygonEnd:U,result:function(){var n=[[ne,Je],[ye,tn]];return ye=tn=-(Je=ne=1/0),n}};function Xn(n,e,t){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),wt(t,n.stream(en)),e(en.result()),null!=i&&n.clipExtent(i),n}function nn(n,e,t){return Xn(n,function(i){var r=e[1][0]-e[0][0],o=e[1][1]-e[0][1],a=Math.min(r/(i[1][0]-i[0][0]),o/(i[1][1]-i[0][1])),s=+e[0][0]+(r-a*(i[1][0]+i[0][0]))/2,u=+e[0][1]+(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,u])},t)}function Qn(n,e,t){return nn(n,[[0,0],e],t)}function $n(n,e,t){return Xn(n,function(i){var r=+e,o=r/(i[1][0]-i[0][0]),a=(r-o*(i[1][0]+i[0][0]))/2,s=-o*i[0][1];n.scale(150*o).translate([a,s])},t)}function Un(n,e,t){return Xn(n,function(i){var r=+e,o=r/(i[1][1]-i[0][1]),a=-o*i[0][0],s=(r-o*(i[1][1]+i[0][1]))/2;n.scale(150*o).translate([a,s])},t)}var Pr=16,ra=w(30*I);function Sr(n,e){return+e?function aa(n,e){function t(i,r,o,a,s,u,h,l,f,c,p,d,g,m){var b=h-i,M=l-r,v=b*b+M*M;if(v>4*e&&g--){var y=a+c,E=s+p,D=u+d,W=ot(y*y+E*E+D*D),H=lt(D/=W),k=O(O(D)-1)<C||O(o-f)<C?(o+f)/2:rt(E,y),$=n(k,H),z=$[0],gt=$[1],et=z-i,Y=gt-r,P=M*et-b*Y;(P*P/v>e||O((b*et+M*Y)/v-.5)>.3||a*c+s*p+u*d<ra)&&(t(i,r,o,a,s,u,z,gt,k,y/=W,E/=W,D,g,m),m.point(z,gt),t(z,gt,k,y,E,D,h,l,f,c,p,d,g,m))}}return function(i){var r,o,a,s,u,h,l,f,c,p,d,g,m={point:b,lineStart:M,lineEnd:y,polygonStart:function(){i.polygonStart(),m.lineStart=E},polygonEnd:function(){i.polygonEnd(),m.lineStart=M}};function b(H,k){H=n(H,k),i.point(H[0],H[1])}function M(){f=NaN,m.point=v,i.lineStart()}function v(H,k){var $=Ht([H,k]),z=n(H,k);t(f,c,l,p,d,g,f=z[0],c=z[1],l=H,p=$[0],d=$[1],g=$[2],Pr,i),i.point(f,c)}function y(){m.point=b,i.lineEnd()}function E(){M(),m.point=D,m.lineEnd=W}function D(H,k){v(r=H,k),o=f,a=c,s=p,u=d,h=g,m.point=v}function W(){t(f,c,l,p,d,g,o,a,r,s,u,h,Pr,i),m.lineEnd=y,y()}return m}}(n,e):function oa(n){return me({point:function(e,t){e=n(e,t),this.stream.point(e[0],e[1])}})}(n)}var sa=me({point:function(n,e){this.stream.point(n*I,e*I)}});function Mr(n,e,t,i,r,o){if(!o)return function la(n,e,t,i,r){function o(a,s){return[e+n*(a*=i),t-n*(s*=r)]}return o.invert=function(a,s){return[(a-e)/n*i,(t-s)/n*r]},o}(n,e,t,i,r);var a=w(o),s=L(o),u=a*n,h=s*n,l=a/n,f=s/n,c=(s*t-a*e)/n,p=(s*e+a*t)/n;function d(g,m){return[u*(g*=i)-h*(m*=r)+e,t-h*g-u*m]}return d.invert=function(g,m){return[i*(l*g-f*m+c),r*(p-f*g-l*m)]},d}function Mt(n){return Kn(function(){return n})()}function Kn(n){var e,l,b,M,v,D,W,H,k,$,t=150,i=480,r=250,o=0,a=0,s=0,u=0,h=0,f=0,c=1,p=1,d=null,g=kn,m=null,y=ve,E=.5;function z(P){return H(P[0]*I,P[1]*I)}function gt(P){return(P=H.invert(P[0],P[1]))&&[P[0]*B,P[1]*B]}function et(){var P=Mr(t,0,0,c,p,f).apply(null,e(o,a)),Z=Mr(t,i-P[0],r-P[1],c,p,f);return l=Vn(s,u,h),W=Nn(e,Z),H=Nn(l,W),D=Sr(W,E),Y()}function Y(){return k=$=null,z}return z.stream=function(P){return k&&$===P?k:k=sa(function ua(n){return me({point:function(e,t){var i=n(e,t);return this.stream.point(i[0],i[1])}})}(l)(g(D(y($=P)))))},z.preclip=function(P){return arguments.length?(g=P,d=void 0,Y()):g},z.postclip=function(P){return arguments.length?(y=P,m=b=M=v=null,Y()):y},z.clipAngle=function(P){return arguments.length?(g=+P?yr(d=P*I):(d=null,kn),Y()):d*B},z.clipExtent=function(P){return arguments.length?(y=null==P?(m=b=M=v=null,ve):qe(m=+P[0][0],b=+P[0][1],M=+P[1][0],v=+P[1][1]),Y()):null==m?null:[[m,b],[M,v]]},z.scale=function(P){return arguments.length?(t=+P,et()):t},z.translate=function(P){return arguments.length?(i=+P[0],r=+P[1],et()):[i,r]},z.center=function(P){return arguments.length?(o=P[0]%360*I,a=P[1]%360*I,et()):[o*B,a*B]},z.rotate=function(P){return arguments.length?(s=P[0]%360*I,u=P[1]%360*I,h=P.length>2?P[2]%360*I:0,et()):[s*B,u*B,h*B]},z.angle=function(P){return arguments.length?(f=P%360*I,et()):f*B},z.reflectX=function(P){return arguments.length?(c=P?-1:1,et()):c<0},z.reflectY=function(P){return arguments.length?(p=P?-1:1,et()):p<0},z.precision=function(P){return arguments.length?(D=Sr(W,E=P*P),Y()):ot(E)},z.fitExtent=function(P,Z){return nn(z,P,Z)},z.fitSize=function(P,Z){return Qn(z,P,Z)},z.fitWidth=function(P,Z){return $n(z,P,Z)},z.fitHeight=function(P,Z){return Un(z,P,Z)},function(){return e=n.apply(this,arguments),z.invert=e.invert&>,et()}}function Pe(n,e){return[n,e]}function br(){return Mt(Pe).scale(152.63)}Pe.invert=Pe;var wr,Lr,ti,ei,qn=new A,Jn=new A,Zt={point:U,lineStart:U,lineEnd:U,polygonStart:function(){Zt.lineStart=ha,Zt.lineEnd=fa},polygonEnd:function(){Zt.lineStart=Zt.lineEnd=Zt.point=U,qn.add(O(Jn)),Jn=new A},result:function(){var n=qn/2;return qn=new A,n}};function ha(){Zt.point=ca}function ca(n,e){Zt.point=Cr,wr=ti=n,Lr=ei=e}function Cr(n,e){Jn.add(ei*n-ti*e),ti=n,ei=e}function fa(){Cr(wr,Lr)}const xr=Zt;var Er,Tr,Tt,It,ni=0,ii=0,Se=0,rn=0,on=0,ie=0,ri=0,oi=0,Me=0,Lt={point:Xt,lineStart:Ir,lineEnd:Dr,polygonStart:function(){Lt.lineStart=ga,Lt.lineEnd=va},polygonEnd:function(){Lt.point=Xt,Lt.lineStart=Ir,Lt.lineEnd=Dr},result:function(){var n=Me?[ri/Me,oi/Me]:ie?[rn/ie,on/ie]:Se?[ni/Se,ii/Se]:[NaN,NaN];return ni=ii=Se=rn=on=ie=ri=oi=Me=0,n}};function Xt(n,e){ni+=n,ii+=e,++Se}function Ir(){Lt.point=pa}function pa(n,e){Lt.point=da,Xt(Tt=n,It=e)}function da(n,e){var t=n-Tt,i=e-It,r=ot(t*t+i*i);rn+=r*(Tt+n)/2,on+=r*(It+e)/2,ie+=r,Xt(Tt=n,It=e)}function Dr(){Lt.point=Xt}function ga(){Lt.point=ma}function va(){Gr(Er,Tr)}function ma(n,e){Lt.point=Gr,Xt(Er=Tt=n,Tr=It=e)}function Gr(n,e){var t=n-Tt,i=e-It,r=ot(t*t+i*i);rn+=r*(Tt+n)/2,on+=r*(It+e)/2,ie+=r,ri+=(r=It*n-Tt*e)*(Tt+n),oi+=r*(It+e),Me+=3*r,Xt(Tt=n,It=e)}const jr=Lt;function Or(n){this._context=n}Or.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(n,e){switch(this._point){case 0:this._context.moveTo(n,e),this._point=1;break;case 1:this._context.lineTo(n,e);break;default:this._context.moveTo(n+this._radius,e),this._context.arc(n,e,this._radius,0,Q)}},result:U};var si,Rr,zr,be,we,ai=new A,an={point:U,lineStart:function(){an.point=ya},lineEnd:function(){si&&Nr(Rr,zr),an.point=U},polygonStart:function(){si=!0},polygonEnd:function(){si=null},result:function(){var n=+ai;return ai=new A,n}};function ya(n,e){an.point=Nr,Rr=be=n,zr=we=e}function Nr(n,e){ai.add(ot((be-=n)*be+(we-=e)*we)),be=n,we=e}const Ar=an;let Vr,sn,Fr,_r;class Zr{constructor(e){this._append=null==e?Br:function Pa(n){const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);if(e>15)return Br;if(e!==Vr){const t=10**e;Vr=e,sn=function(r){let o=1;this._+=r[0];for(const a=r.length;o<a;++o)this._+=Math.round(arguments[o]*t)/t+r[o]}}return sn}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==Fr||this._append!==sn){const i=this._radius,r=this._;this._="",this._append`m0,${i}a${i},${i} 0 1,1 0,${-2*i}a${i},${i} 0 1,1 0,${2*i}z`,Fr=i,sn=this._append,_r=this._,this._=r}this._+=_r}}result(){const e=this._;return this._="",e.length?e:null}}function Br(n){let e=1;this._+=n[0];for(const t=n.length;e<t;++e)this._+=arguments[e]+n[e]}function Wr(n,e){let r,o,t=3,i=4.5;function a(s){return s&&("function"==typeof i&&o.pointRadius(+i.apply(this,arguments)),wt(s,r(o))),o.result()}return a.area=function(s){return wt(s,r(xr)),xr.result()},a.measure=function(s){return wt(s,r(Ar)),Ar.result()},a.bounds=function(s){return wt(s,r(en)),en.result()},a.centroid=function(s){return wt(s,r(jr)),jr.result()},a.projection=function(s){return arguments.length?(r=null==s?(n=null,ve):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(e=null,new Zr(t)):new Or(e=s),"function"!=typeof i&&o.pointRadius(i),a):e},a.pointRadius=function(s){return arguments.length?(i="function"==typeof s?s:(o.pointRadius(+s),+s),a):i},a.digits=function(s){if(!arguments.length)return t;if(null==s)t=null;else{const u=Math.floor(s);if(!(u>=0))throw new RangeError(`invalid digits: ${s}`);t=u}return null===e&&(o=new Zr(t)),a},a.projection(n).digits(t).context(e)}function Hr(n,e){var t=n[0]*I,i=n[1]*I,r=e[0]*I,o=e[1]*I,a=w(i),s=L(i),u=w(o),h=L(o),l=a*w(t),f=a*L(t),c=u*w(r),p=u*L(r),d=2*lt(ot(Bi(o-i)+a*u*Bi(r-t))),g=L(d),m=d?function(b){var M=L(b*=d)/g,v=L(d-b)/g,y=v*l+M*c,E=v*f+M*p,D=v*s+M*h;return[rt(E,y)*B,rt(D,ot(y*y+E*E))*B]}:function(){return[t*B,i*B]};return m.distance=d,m}var ui,li,un,ln,re={sphere:U,point:U,lineStart:function Sa(){re.point=ba,re.lineEnd=Ma},lineEnd:U,polygonStart:U,polygonEnd:U};function Ma(){re.point=re.lineEnd=U}function ba(n,e){li=n*=I,un=L(e*=I),ln=w(e),re.point=wa}function wa(n,e){n*=I;var t=L(e*=I),i=w(e),r=O(n-li),o=w(r),s=i*L(r),u=ln*t-un*i*o,h=un*t+ln*i*o;ui.add(rt(ot(s*s+u*u),h)),li=n,un=t,ln=i}function kr(n){return ui=new A,wt(n,re),+ui}var hi=[null,null],La={type:"LineString",coordinates:hi};function Le(n,e){return hi[0]=n,hi[1]=e,kr(La)}var dt=function(){function n(){this.d3Projection=br()}return Object.defineProperty(n.prototype,"d3Projection",{get:function(){return this._d3Projection},set:function(e){this._d3Projection=e,e.precision(.1),this._d3Path=Wr().projection(e),this.chart&&this.chart.invalidateProjection()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"d3Path",{get:function(){return this._d3Path},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scale",{get:function(){return this.d3Projection.scale()/100},enumerable:!0,configurable:!0}),n.prototype.convert=function(e){var t=this.d3Projection([e.longitude,e.latitude]);if(t)return{x:t[0],y:t[1]}},n.prototype.invert=function(e){var t=this.d3Projection.invert([e.x,e.y]);if(t)return{longitude:t[0],latitude:t[1]}},n.prototype.project=function(e,t){return this.convert({longitude:e*T.DEGREES,latitude:t*T.DEGREES})},n.prototype.unproject=function(e,t){return this.invert({x:e,y:t})}
1,n.prototype.rotate=function(e,t,i,r){var a=i*T.RADIANS;r*=T.RADIANS;var s=e.longitude*T.RADIANS+t*T.RADIANS,u=e.latitude*T.RADIANS,h=Math.cos(a),l=Math.sin(a),f=Math.cos(r),c=Math.sin(r),p=Math.cos(u),d=Math.cos(s)*p,g=Math.sin(s)*p,m=Math.sin(u),b=m*h+d*l;return{longitude:T.DEGREES*Math.atan2(g*f-b*c,d*h-m*l),latitude:T.DEGREES*Math.asin(b*f+g*c)}},n.prototype.unrotate=function(e,t,i,r){var a=i*T.RADIANS;r*=T.RADIANS;var s=e.longitude*T.RADIANS-t*T.RADIANS,u=e.latitude*T.RADIANS,h=Math.cos(a),l=Math.sin(a),f=Math.cos(r),c=Math.sin(r),p=Math.cos(u),d=Math.cos(s)*p,g=Math.sin(s)*p,m=Math.sin(u),b=m*f-g*c;return{longitude:T.DEGREES*Math.atan2(g*f+m*c,d*h+b*l),latitude:T.DEGREES*Math.asin(b*h-d*l)}},n.prototype.intermediatePoint=function(e,t,i){var r=Hr([e.longitude,e.latitude],[t.longitude,t.latitude])(i);return{longitude:r[0],latitude:r[1]}},n.prototype.multiDistance=function(e){for(var t=0,i=0;i<e.length;i++){var r=e[i];if(r.length>1)for(var o=1;o<r.length;o++)t+=this.distance(r[o-1],r[o])}return t},n.prototype.distance=function(e,t){return Le([e.longitude,e.latitude],[t.longitude,t.latitude])},n.prototype.positionToPoint=function(e,t){if(e){var i=this.positionToGeoPoint(e,t),r=this.positionToGeoPoint(e,t-.01),o=this.positionToGeoPoint(e,t+.01);if(r&&o){var a=this.convert(i),s=this.convert(r),u=this.convert(o);return{x:a.x,y:a.y,angle:T.getAngle(s,u)}}}return{x:0,y:0,angle:0}},n.prototype.positionToGeoPoint=function(e,t){if(e){for(var i=this.multiDistance(e),r=0,a=0,s=0,u=void 0,h=void 0,l=0;l<e.length;l++){var f=e[l];if(f.length>1){for(var c=1;c<f.length;c++)if(a=r/i,s=(r+=this.distance(u=f[c-1],h=f[c]))/i,a<=t&&s>t){l=e.length;break}}else 1==f.length&&(u=f[0],h=f[0],a=0,s=1)}if(u&&h)return this.intermediatePoint(u,h,(t-a)/(s-a))}return{longitude:0,latitude:0}},n}();x.i.registeredClasses.Projection=dt;var Ca=R(799),xa=R(85044),Yr=R(61346),ci=function(n){function e(){var t=n.call(this)||this;t._chart=new N.cx,t.className="SmallMap",t.align="left",t.valign="bottom",t.percentHeight=20,t.percentWidth=20,t.margin(5,5,5,5);var i=new _.h;t.background.fillOpacity=.9,t.background.fill=i.getFor("background"),t.events.on("hit",t.moveToPosition,t,!1),t.events.on("maxsizechanged",t.updateMapSize,t,!1),t.seriesContainer=t.createChild(te.W),t.seriesContainer.shouldClone=!1;var r=t.createChild(xa.A);return r.shouldClone=!1,r.stroke=i.getFor("alternativeBackground"),r.strokeWidth=1,r.strokeOpacity=.5,r.fill=(0,Yr.$_)(),r.verticalCenter="middle",r.horizontalCenter="middle",r.isMeasured=!1,r.visible=!1,t.rectangle=r,t._disposers.push(t._chart),t.applyTheme(),t}return(0,G.ZT)(e,n),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new zt.aV,this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var i=t.newValue;if(this.chart.series.contains(i)){var r=i.clone();this._series.removeValue(i),this._series.push(r),i=r,this.chart.dataUsers.push(r)}i.chart=this.chart,i.parent=this.seriesContainer,i.interactionsEnabled=!1,i.events.on("inited",this.updateMapSize,this,!1),i.hidden=!1},e.prototype.handleSeriesRemoved=function(t){this.invalidate()},e.prototype.moveToPosition=function(t){var i=st.spritePointToSprite(t.spritePoint,this,this.seriesContainer),r=this.chart.seriesPointToGeo(i);this.chart.zoomToGeoPoint(r,this.chart.zoomLevel,!0)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this.chart!=t&&this._chart.set(t,new N.FV([t.events.on("mappositionchanged",this.updateRectangle,this,!1),t.events.on("scaleratiochanged",this.updateMapSize,this,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateRectangle=function(){var t=this.chart,i=t.zoomLevel,r=this.rectangle;r.width=this.pixelWidth/i,r.height=this.pixelHeight/i;var o=Math.min(this.percentWidth,this.percentHeight)/100,a=t.seriesContainer;r.x=Math.ceil(-a.pixelX*o/i)+this.seriesContainer.pixelX,r.y=Math.ceil(-a.pixelY*o/i)+this.seriesContainer.pixelY,r.validate()},e.prototype.updateMapSize=function(){if(this.chart){var t=this.chart.scaleRatio*Math.min(this.percentWidth,this.percentHeight)/100;this.seriesContainer.scale=t;var i={width:0,height:0,x:0,y:0};try{i=this.seriesContainer.group.node.getBBox()}catch{}i.width>0&&(this.rectangle.visible=!0),this.seriesContainer.x=this.pixelWidth/2-i.x*t-i.width/2*t,this.seriesContainer.y=this.pixelHeight/2-i.y*t-i.height/2*t,this.updateRectangle(),this.afterDraw()}},e.prototype.afterDraw=function(){n.prototype.afterDraw.call(this),this.rectangle.maskRectangle={x:-1,y:-1,width:Math.ceil(this.pixelWidth+2),height:Math.ceil(this.pixelHeight+2)}},e.prototype.processConfig=function(t){if(t&&S.hasValue(t.series)&&S.isArray(t.series))for(var i=0,r=t.series.length;i<r;i++){var o=t.series[i];S.hasValue(o)&&S.isString(o)&&this.map.hasKey(o)&&(t.series[i]=this.map.getKey(o))}n.prototype.processConfig.call(this,t)},e}(te.W);x.i.registeredClasses.SmallMap=ci;var fi=R(84974),pi=R(15241),Ea=R(71834);function Xr(n){var e=Ce(n.longitude),t=Math.asin(Math.sin(n.latitude*T.RADIANS))*T.DEGREES,i=Ce(n.latitude);return Math.abs(i)>
190&&(e=Ce(e+180)),n.longitude=e,n.latitude=t,n}function Qr(n){return Pt.each(n,function(e){Pt.each(e,function(t){Xr(t)})}),n}function Ce(n){return(n%=360)>180&&(n-=360),n<-180&&(n+=360),n}function Ta(n){return{x:n.longitude,y:n.latitude}}var hn=function(n){function e(){var t=n.call(this)||this;return t.adjustRotation=!0,t.className="MapLineObject",t.isMeasured=!1,t.layout="none",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.validatePosition=function(){var t=this.mapLine;if(t){var i=t.positionToPoint(this.position);if(this.x=i.x,this.y=i.y,this.adjustRotation&&(this.rotation=i.angle),this.mapLine.dataItem&&(this.scale=1/this.mapLine.dataItem.component.scale),t.shortestDistance){var a=this.mapLine.series.chart.projection,s=a.positionToGeoPoint(t.multiGeoLine,this.position),u=a.d3Path({type:"Point",coordinates:[s.longitude,s.latitude]});this.__disabled=!u}}n.prototype.validatePosition.call(this)},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustRotation",{get:function(){return this.getPropertyValue("adjustRotation")},set:function(t){this.setPropertyValue("adjustRotation",t,!1,!0)},enumerable:!0,configurable:!0}),e}(te.W);x.i.registeredClasses.MapLineObject=hn;var di=function(n){function e(){var t=n.call(this)||this;return t.className="MapImageSeriesDataItem",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:this.point}}},Object.defineProperty(e.prototype,"mapImage",{get:function(){var t=this;if(!this._mapImage){var i=this.component.mapImages.create();this.addSprite(i),this._mapImage=i,this._disposers.push(i),this._disposers.push(new N.ku(function(){t.component&&t.component.mapImages.removeValue(i)})),this.mapObject=i}return this._mapImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"point",{get:function(){return this._point},set:function(t){this._point=t,this._geoPoint=Ye(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPoint",{get:function(){return[this._point]},set:function(t){this._point=t[0],this._geoPoint=Ye(this._point),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPoint",{get:function(){return this._geoPoint},set:function(t){this._geoPoint=t,this.point=[t.longitude,t.latitude]},enumerable:!0,configurable:!0}),e}(qt),cn=function(n){function e(){var t=n.call(this)||this;return t.className="MapImageSeries",t.dataFields.multiPoint="multiPoint",t.dataFields.point="point",t.dataFields.geoPoint="geoPoint",t.dataFields.multiGeoPoint="multiGeoPoint",t.ignoreBounds=!0,t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createDataItem=function(){return new di},e.prototype.validateData=function(){var t=this;if(this.data.length>0&&0==this._parseDataFrom&&this.mapImages.clear(),this.useGeodata&&(this.useGeodata||this.geodata)){var i=this.chart.geodata,r=void 0;if("FeatureCollection"==i.type?r=i.features:"Feature"==i.type?r=[i]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(i.type)?r=[{geometry:i}]:console.log("nothing found in geoJSON"),r)for(var o=function(h,l){var f=r[h],c=f.geometry;if(c){var p=c.type,d=f.id;if("Point"==p||"MultiPoint"==p){if(!a.checkInclude(a.include,a.exclude,d))return"continue";var g=c.coordinates;"Point"==p&&(g=[g]);var m=Pt.find(a.data,function(b,M){return b.id==d});m?m.multiPoint||(m.multiPoint=g):a.data.push(m={multiPoint:g,id:d,madeFromGeoData:!0}),st.softCopyProperties(f.properties,m)}}},a=this,s=0,u=r.length;s<u;s++)o(s)}n.prototype.validateData.call(this),Yt.each(this.dataItems.iterator(),function(h){var l=h.mapImage;l.isDisposed()||(t.mapImages.moveValue(l),S.isNumber(l.latitude)&&S.isNumber(l.latitude)&&(h.geoPoint={latitude:l.latitude,longitude:l.longitude}))})},Object.defineProperty(e.prototype,"mapImages",{get:function(){if(!this._mapImages){var t=new de,i=new zt.o(t);this._disposers.push(new zt.zQ(i)),this._disposers.push(i.template),i.template.focusable=!0,i.events.on("inserted",this.handleObjectAdded,this,!1),this._mapImages=i,this._mapObjects=i}return this._mapImages},enumerable:!0,configurable:!0}),e.prototype.validateDataElement=function(t){n.prototype.validateDataElement.call(this,t),t.mapImage.invali
1date()},e.prototype.validate=function(){n.prototype.validate.call(this),Yt.each(this.mapImages.iterator(),function(t){t.validatePosition()})},e.prototype.copyFrom=function(t){this.mapImages.template.copyFrom(t.mapImages.template),n.prototype.copyFrom.call(this,t)},e.prototype.getFeatures=function(){var t=this,i=[];return this.dataItems.each(function(r){var o=r.getFeature();o&&i.push(o)}),this.mapImages.each(function(r){if(-1==t.dataItems.indexOf(r._dataItem)){var o=r.getFeature();o&&i.push(o)}}),i},e.prototype.getImageById=function(t){return Yt.find(this.mapImages.iterator(),function(i){var r=i.dataItem.dataContext;if(i.id==t||r&&r.id==t)return!0})},e}(Jt);x.i.registeredClasses.MapImageSeries=cn,x.i.registeredClasses.MapImageSeriesDataItem=di;var Ia=R(45955),Da=R(67775),ut=R(27481),oe=function(n){function e(){var t=n.call(this)||this;t._imageListeners={},t.className="MapLine",t.createLine(),t.line.stroke=(0,Yr.$_)(),t.line.parent=t,t.strokeOpacity=1,t.setPropertyValue("precision",.1);var i=new _.h;return t.stroke=i.getFor("grid"),t.shortestDistance=!0,t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createLine=function(){this.line=new Da.a},e.prototype.positionToPoint=function(t){return this.shortestDistance?this.series.chart.projection.positionToPoint(this.multiGeoLine,t):this.line?this.line.positionToPoint(t):{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){var t=this.getPropertyValue("multiGeoLine");return!t&&this.dataItem&&this.dataItem.multiGeoLine&&(t=this.dataItem.multiGeoLine),t},set:function(t){if(t&&t.length>0){this.setPropertyValue("multiGeoLine",Qr(t),!0);var i=Xe(t);this.setPropertyValue("multiLine",i),this.updateExtremes()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){var t=this.getPropertyValue("multiLine");return!t&&this.dataItem&&this.dataItem.multiLine&&(t=this.dataItem.multiLine),t},set:function(t){this.setPropertyValue("multiLine",t),this.multiGeoLine=Fn(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imagesToConnect",{get:function(){return this.getPropertyValue("imagesToConnect")}
1,set:function(t){var i=this;if(this.setPropertyValue("imagesToConnect",t,!0),this.handleImagesToConnect(),this.series){var r=this.series.chart;r&&r.series.each(function(o){o instanceof cn&&(o.isReady()||i._disposers.push(o.events.on("ready",i.handleImagesToConnect,i,!1)))})}},enumerable:!0,configurable:!0}),e.prototype.handleImagesToConnect=function(){var t,i,r=this;if(this.imagesToConnect){var o=[],a=[o],s=function(c){if(S.isString(c)){var p=u.series.chart;p&&p.series.each(function(g){if(g instanceof cn){var m=g.getImageById(c);m&&(c=m)}})}if(c instanceof de&&(o.push({longitude:c.longitude,latitude:c.latitude}),!u._imageListeners[c.uid])){var d=c.events.on("propertychanged",function(g){("longitude"==g.property||"latitude"==g.property)&&(r.handleImagesToConnect(),r.invalidate())},u,!1);u._imageListeners[c.uid]=d,u._disposers.push(d)}},u=this;try{for(var h=(0,G.XA)(this.imagesToConnect),l=h.next();!l.done;l=h.next())s(l.value)}catch(c){t={error:c}}finally{try{l&&!l.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}this.multiGeoLine=a}},e.prototype.validate=function(){var t=this.series.chart;if(this.multiLine){if(this.shortestDistance)t.projection.d3Projection.precision(this.precision),this.line.path=t.projection.d3Path(this.getFeature());else{for(var i=[],r=0,o=this.multiLine.length;r<o;r++){for(var a=this.multiLine[r],s=[],u=0,h=a.length;u<h;u++){var l=a[u],f=this.series.chart.projection.convert({longitude:l[0],latitude:l[1]});s.push(f)}i.push(s)}this.line.segments=i}this._arrow&&this._arrow.validatePosition(),Yt.each(this.lineObjects.iterator(),function(c){c.validatePosition()}),this.handleGlobalScale()}else this.imagesToConnect&&this.handleImagesToConnect();n.prototype.validate.call(this)},e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0&&this.multiLine[0]&&this.multiLine[0].length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return this.getPropertyValue("shortestDistance")},set:function(t){this.setPropertyValue("shortestDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineObjects",{get:function(){return this._lineObjects||(this._lineObjects=new zt.o(new hn),this._lineObjects.events.on("inserted",this.handleLineObjectAdded,this,!1),this._disposers.push(new zt.zQ(this._lineObjects)),this._disposers.push(this._lineObjects.template)),this._lineObjects},enumerable:!0,configurable:!0}),e.prototype.handleLineObjectAdded=function(t){var i=t.newValue;i.mapLine=this,i.shouldClone=!1,i.parent=this},Object.defineProperty(e.prototype,"arrow",{get:function(){if(!this._arrow){var t=this.createChild(hn);t.shouldClone=!1,t.width=8,t.height=10,t.mapLine=this,t.position=.5;var i=t.createChild(Ia.C);i.fillOpacity=1,i.width=(0,ut.aQ)(100),i.height=(0,ut.aQ)(100),i.rotation=90,i.horizontalCenter="middle",i.verticalCenter="middle",this._arrow=t}return this._arrow},set:function(t){this._arrow=t,t.mapLine=this,t.parent=this},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){n.prototype.copyFrom.call(this,t),this.line.copyFrom(t.line),this.lineObjects.copyFrom(t.lineObjects),t._arrow&&(this.arrow=t.arrow.clone())},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return t instanceof ut.gG||(t=(0,ut.aQ)(50)),t instanceof ut.gG?this.positionToPoint(t.value).x:0},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");return t instanceof ut.gG||(t=(0,ut.aQ)(50)),t instanceof ut.gG?this.positionToPoint(t.value).y:0},Object.defineProperty(e.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(t){this.setPropertyValue("precision",t,!0)},enumerable:!0,configurable:!0}),e}(pe);x.i.registeredClasses.MapLine=oe;var ae=function(n){function e(){var t=n.call(this)||this;return t.className="MapLineSeriesDataItem",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},Object.defineProperty(e.prototype,"mapLine",{get:function(){var t=this;if(!this._mapLine){var i=this.component.mapLines.create();this._mapLine=i,this.addSprite(i),this._disposers.push(i),this._disposers.push(new N.ku(function(){t.component&&t.component.mapLines.removeValue(i)})),this.mapObject=i}return this._mapLine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t,this.multiLine=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){return this._multiLine},set:function(t){this._multiLine=t,this._multiGeoLine=Fn(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoLine",{get:function(){return this._geoLine}
1,set:function(t){this._geoLine=t,this.multiLine=Xe([t])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){return this._multiGeoLine},set:function(t){this._multiGeoLine=t,this.multiLine=Xe(t)},enumerable:!0,configurable:!0}),e}(qt),xe=function(n){function e(){var t=n.call(this)||this;return t.className="MapLineSeries",t.dataFields.multiLine="multiLine",t.dataFields.line="line",t.dataFields.geoLine="geoLine",t.dataFields.multiGeoLine="multiGeoLine",t.ignoreBounds=!0,t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createDataItem=function(){return new ae},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var t=this.chart.geodata;if(t){var i=void 0;if("FeatureCollection"==t.type?i=t.features:"Feature"==t.type?i=[t]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(t.type)?i=[{geometry:t}]:console.log("nothing found in geoJSON"),i)for(var r=function(u,h){var l=i[u],f=l.geometry;if(f){var c=f.type,p=l.id;if("LineString"==c||"MultiLineString"==c){if(!o.checkInclude(o.include,o.exclude,p))return"continue";var d=f.coordinates,g=Pt.find(o.data,function(m,b){return m.id==p});"LineString"==c&&(d=[d]),g?g.multiLine||(g.multiLine=d):o.data.push(g={multiLine:d,id:p,madeFromGeoData:!0}),st.softCopyProperties(l.properties,g)}}},o=this,a=0,s=i.length;a<s;a++)r(a)}}n.prototype.validateData.call(this)},Object.defineProperty(e.prototype,"mapLines",{get:function(){if(!this._mapLines){var t=this.createLine(),i=new zt.o(t);this._disposers.push(new zt.zQ(i)),this._disposers.push(i.template),i.events.on("inserted",this.handleObjectAdded,this,!1),this._mapLines=i,this._mapObjects=i}return this._mapLines},enumerable:!0,configurable:!0}),e.prototype.createLine=function(){return new oe},e.prototype.validate=function(){this.dataItems.each(function(t){st.used(t.mapLine)}),n.prototype.validate.call(this),this.mapLines.each(function(t){t.validate()})},e.prototype.copyFrom=function(t){this.mapLines.template.copyFrom(t.mapLines.template),n.prototype.copyFrom.call(this,t)},e.prototype.getFeatures=function(){var t=this,i=[];return this.dataItems.each(function(r){var o=r.getFeature();o&&i.push(o)}),this.mapLines.each(function(r){if(-1==t.dataItems.indexOf(r._dataItem)){var o=r.getFeature();o&&i.push(o)}}),i},e.prototype.getLineById=function(t){return Yt.find(this.mapLines.iterator(),function(i){return i.dataItem.dataContext.id==t})},e}(Jt);x.i.registeredClasses.MapLineSeries=xe,x.i.registeredClasses.MapLineSeriesDataItem=ae;var gi=function(n){function e(){var t=n.call(this)||this;return t.className="Graticule",t.applyTheme(),t.shortestDistance=!0,t}return(0,G.ZT)(e,n),e}(oe);function se(n,e,t){n=+n,e=+e,t=(r=arguments.length)<2?(e=n,n=0,1):r<3?1:+t;for(var i=-1,r=0|Math.max(0,Math.ceil((e-n)/t)),o=new Array(r);++i<r;)o[i]=n+i*t;return o}function $r(n,e,t){var i=se(n,e-C,t).concat(e);return function(r){return i.map(function(o){return[r,o]})}}function Ur(n,e,t){var i=se(n,e-C,t).concat(e);return function(r){return i.map(function(o){return[o,r]})}}function vi(){var n,e,t,i,r,o,a,s,c,p,d,g,u=10,h=u,l=90,f=360,m=2.5;function b(){return{type:"MultiLineString",coordinates:M()}}function M(){return se(Wt(i/l)*l,t,l).map(d).concat(se(Wt(s/f)*f,a,f).map(g)).concat(se(Wt(e/u)*u,n,u).filter(function(v){return O(v%l)>C}).map(c)).concat(se(Wt(o/h)*h,r,h).filter(function(v){return O(v%f)>C}).map(p))}return b.lines=function(){return M().map(function(v){return{type:"LineString",coordinates:v}})},b.outline=function(){return{type:"Polygon",coordinates:[d(i).concat(g(a).slice(1),d(t).reverse().slice(1),g(s).reverse().slice(1))]}},b.extent=function(v){return arguments.length?b.extentMajor(v).extentMinor(v):b.extentMinor()},b.extentMajor=function(v){return arguments.length?(s=+v[0][1],a=+v[1][1],(i=+v[0][0])>(t=+v[1][0])&&(v=i,i=t,t=v),s>a&&(v=s,s=a,a=v),b.precision(m)):[[i,s],[t,a]]},b.extentMinor=function(v){return arguments.length?(o=+v[0][1],r=+v[1][1],(e=+v[0][0])>(n=+v[1][0])&&(v=e,e=n,n=v),o>r&&(v=o,o=r,r=v),b.precision(m)):[[e,o],[n,r]]},b.step=function(v){return arguments.length?b.stepMajor(v).stepMinor(v):b.stepMinor()},b.stepMajor=function(v){return arguments.length?(l=+v[0],f=+v[1],b):[l,f]},b.stepMinor=function(v){return arguments.length?(u=+v[0],h=+v[1],b):[u,h]},b.precision=function(v){return arguments.length?(m=+v,c=$r(o,r,90),p=Ur(e,n,m),d=$r(s,a,90),g=Ur(i,t,m),b):m},b.extentMajor([[-180,-90+C],[180,90-C]]).extentMinor([[-180,-80-C],[180,80+C]])}function Ga(){return vi()()}x.i.registeredClasses.Graticule=gi;var mi=function(n){function e(){var t=n.call(this)||this;return t.className="GraticuleSeriesDataItem",t.applyTheme(),t}return(0,G.ZT)(e,n),e}(ae),ue=function(n){function e(){var t=n.call(this)||this;return t.className="GraticuleSeries",t.longitudeStep=10,t.latitudeStep=10,t.north=90,t.south=-90,t.east=-180,t.west=180,t.fitExtent=!0,t.singleSprite=!0,t.events.disableType("geoBoundsChanged"),t.mapLines.template.line.strokeOpacity=.08,t.ignoreBounds=!1,t.hiddenInLegend=!0,t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createDataItem=function(){return new mi},e.prototype.validateData=function(){var t=this;n.prototype.validateData.call(this),this.mapLines.clear();var i=vi();if(i){i.stepMinor([this.longitudeStep,this.latitudeStep]),i.stepMajor([360,360]);var r=this.chart;if(i.extent(this.fitExtent?[[r.east,r.north],[r.west,r.south]]:[[this.east,this.north],[this.west,this.south]]),this.singleSprite)this.mapLines.create().multiLine=i().coordinates;else{var a=i.lines();Pt.each(a,function(s){t.mapLines.create().multiLine=[s.coordinates]})}}},e.prototype.createLine=function(){return new gi},Object.defineProperty(e.prototype,"latitudeStep",{get:function(){return this.getPropertyValue("latitudeStep")},set:function(t){this.setPropertyValue("latitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitudeStep",{get:function(){return this.getPropertyValue("longitudeStep")},set:function(t){this.setPropertyValue("longitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitExtent",{get:function(){return this.getPropertyValue("fitExtent")}
1,set:function(t){this.setPropertyValue("fitExtent",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"singleSprite",{get:function(){return this.getPropertyValue("singleSprite")},set:function(t){this.setPropertyValue("singleSprite",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e}(xe);x.i.registeredClasses.GraticuleSeries=ue,x.i.registeredClasses.GraticuleSeriesDataItem=mi;var fn=R(23282),ja=function(n){function e(){var t=n.call(this)||this;return t.className="MapChartDataItem",t.applyTheme(),t}return(0,G.ZT)(e,n),e}(Gt.c),Kr=function(n){function e(){var t=n.call(this)||this;t.scaleRatio=1,t.zoomDuration=1e3,t.zoomEasing=Ea.cubicOut,t.minZoomLevel=1,t.maxZoomLevel=32,t._prevZoomGeoPoint={latitude:0,longitude:0},t.className="MapChart",t.projection=new dt,t.setPropertyValue("deltaLatitude",0),t.setPropertyValue("deltaLongitude",0),t.setPropertyValue("deltaGamma",0),t.maxPanOut=.7,t.homeZoomLevel=1,t.zoomStep=2,t.layout="absolute",t.centerMapOnZoomOut=!0,t.padding(0,0,0,0),st.used(t.backgroundSeries),t.minWidth=10,t.minHeight=10,t.events.once("inited",t.handleAllInited,t,!1);var i=t.seriesContainer;i.visible=!1,i.inert=!0,i.resizable=!0,i.events.on("transformed",t.handleMapTransform,t,!1),i.events.on("doublehit",t.handleDoubleHit,t,!1),i.events.on("dragged",t.handleDrag,t,!1),i.zIndex=0,i.dragWhileResize=!0,i.adapter.add("scale",function(u,h){return T.fitToRange(u,t.minZoomLevel,t.maxZoomLevel)}),t.events.on("maxsizechanged",function(u){(0==u.previousWidth||0==u.previousHeight)&&(t.updateExtremes(),t.updateCenterGeoPoint())},void 0,!1);var r=t.chartContainer;r.parent=t,r.zIndex=-1,t._disposers.push(t.events.on("maxsizechanged",function(){if(t.inited){t._mapAnimation&&t._mapAnimation.stop();var u=!0;t.series.each(function(h){h.updateTooltipBounds(),(!h.inited||h.dataInvalid)&&(u=!1)}),u&&t.updateScaleRatio(),t.zoomToGeoPoint(t._zoomGeoPointReal,t.zoomLevel,!0,0)}},void 0,!1));var o=r.background;o.fillOpacity=0,o.events.on("down",function(u){t.seriesContainer.dragStart(u.target.interactions.downPointers.getIndex(0))},t),o.events.on("up",function(u){t.seriesContainer.dragStop()},t),o.events.on("doublehit",t.handleDoubleHit,t),o.focusable=!0,r.events.on("down",t.handleMapDown,t,!1),t.addDisposer(i.events.on("down",function(){var u=t.seriesContainer.interactions.inertias.getKey("move");u&&u.done()})),t.background.fillOpacity=0,t._disposers.push((0,fn.S)().body.events.on("keyup",function(u){if(t.topParent.hasFocused){var h=fi.d.getEventKey(u.event);if(!t._zoomControl||!t._zoomControl.thumb.isFocused)switch(h){case"up":t.pan({x:0,y:.1});break;case"down":t.pan({x:0,y:-.1});break;case"left":t.pan({x:.1,y:0});break;case"right":t.pan({x:-.1,y:0})}}},t)),t.mouseWheelBehavior="zoom";var a=(0,fn.S)();t._disposers.push(a.body.events.on("down",t.handlePanDown,t)),t._disposers.push(a.body.events.on("up",t.handlePanUp,t));var s=t.seriesContainer.createChild(Ca.C);return s.radius=10,s.inert=!0,s.isMeasured=!1,s.events.on("transformed",t.handlePanMove,t,!1),s.interactionsEnabled=!1,s.opacity=0,s.x=0,s.y=0,t.panSprite=s,t.panBehavior="move",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.handlePanDown=function(t){var i=st.documentPointToSvg(t.pointer.point,this.htmlContainer);i.x>0&&i.y>0&&i.x<this.svgContainer.width&&i.y<this.svgContainer.height&&(this._downPointOrig=st.documentPointToSprite(t.pointer.point,this.seriesContainer),this.panSprite.moveTo(this._downPointOrig),this.panSprite.dragStart(t.pointer),this._downDeltaLongitude=this.deltaLongitude,this._downDeltaLatitude=this.deltaLatitude)},e.prototype.handlePanUp=function(t){this._downPointOrig&&this.panSprite.dragStop(t.pointer,!0),this._downPointOrig=void 0},e.prototype.handlePanMove=function(){if(!this.seriesContainer.isResized){if((0,fn.S)().areTransformed([this.panSprite.interactions,this.seriesContainer.interactions]))return;var t=this.projection.d3Projection,i=this.panBehavior;if("move"!=i&&"none"!=i&&this._downPointOrig&&t.rotate){var r=t.rotate(),o=r[0],a=r[1],s=r[2];t.rotate([0,0,0]);var u=this.projection.invert(this._downPointOrig),h={x:this.panSprite.pixelX,y:this.panSprite.pixelY},l=void 0;h&&(l=this.projection.invert(h)),t.rotate([o,a,s]),l&&(("rotateLat"==i||"rotateLongLat"==i)&&(this.deltaLatitude=this._downDeltaLatitude+l.latitude-u.latitude),("rotateLong"==i||"rotateLongLat"==i)&&(this.deltaLongitude=this._downDeltaLongitude+l.longitude-u.longitude))}}},e.prototype.handleAllInited=function(){var t=this,i=!0;if(this.seriesContainer.visible=!0,this.series.each(function(o){(!o.inited||o.dataInvalid)&&
1(i=!1)}),i)this.updateCenterGeoPoint(),this.updateScaleRatio(),this.goHome(0);else{var r=x.i.events.once("exitframe",function(){t.removeDispose(r),t.handleAllInited()},this,!1);this.addDisposer(r)}},e.prototype.updateZoomGeoPoint=function(){var t=st.svgPointToSprite({x:this.innerWidth/2+this.pixelPaddingLeft,y:this.innerHeight/2+this.pixelPaddingTop},this.series.getIndex(0)),i=this.projection.invert(t);this._zoomGeoPointReal=i},e.prototype.updateCenterGeoPoint=function(){var t,i,r,o;if(this.backgroundSeries){var a=this.backgroundSeries.getFeatures();if(a.length>0){var s=this.projection.d3Path.bounds(a[0].geometry);t=s[0][0],r=s[0][1],i=s[1][0],o=s[1][1]}}else this.series.each(function(u){var h=u.group.node.getBBox();(t>h.x||!S.isNumber(t))&&(t=h.x),(i<h.x+h.width||!S.isNumber(i))&&(i=h.x+h.width),(r>h.y||!S.isNumber(r))&&(r=h.y),(o<h.y+h.height||!S.isNumber(o))&&(o=h.y+h.height)});this.seriesMaxLeft=t,this.seriesMaxRight=i,this.seriesMaxTop=r,this.seriesMaxBottom=o,this.seriesWidth=i-t,this.seriesHeight=o-r,this.seriesWidth>0&&this.seriesHeight>0?(this.chartContainer.visible=!0,this._centerGeoPoint=this.projection.invert({x:t+(i-t)/2,y:r+(o-r)/2}),(!this._zoomGeoPointReal||!S.isNumber(this._zoomGeoPointReal.latitude))&&(this._zoomGeoPointReal=this._centerGeoPoint)):this.chartContainer.visible=!1},e.prototype.handleDrag=function(){var t=this.zoomLevel*this.scaleRatio,r=this.seriesHeight*t,o=this.seriesContainer,a=this.seriesMaxLeft*t,s=this.seriesMaxRight*t,u=this.seriesMaxTop*t,h=this.seriesMaxBottom*t,l=o.pixelX,f=o.pixelY,c=this.maxPanOut,p=Math.min(this.maxWidth*(1-c)-this.seriesWidth*t-a,-a);l<p&&(l=p);var d=Math.max(this.maxWidth*c-a,this.maxWidth-s);l>d&&(l=d);var g=Math.min(this.maxHeight*(1-c)-r-u,-u);f<g&&(f=g);var m=Math.max(this.maxHeight*c-u,this.maxHeight-h);f>m&&(f=m),o.moveTo({x:l,y:f},void 0,void 0,!0),this._zoomGeoPointReal=this.zoomGeoPoint},e.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),S.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Map")),S.hasValue(this.background.readerTitle)||(this.background.role="application",this.background.readerTitle=this.language.translate("Use plus and minus keys on your keyboard to zoom in and out"))},e.prototype.handleMapDown=function(){this._mapAnimation&&this._mapAnimation.stop()},e.prototype.handleDoubleHit=function(t){var i=st.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),r=this.svgPointToGeo(i);this.zoomIn(r)},e.prototype.handleWheel=function(t){var i=this.seriesContainer.interactions.inertias.getKey("move");i&&i.done();var r=st.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),o=this.svgPointToGeo(r);t.shift.y<0?this.zoomIn(o,void 0,this.interactions.mouseOptions.sensitivity):this.zoomOut(o,void 0,this.interactions.mouseOptions.sensitivity)},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.chartContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):(this._mouseWheelDisposer&&this._mouseWheelDisposer.dispose(),this.chartContainer.wheelable=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panBehavior",{get:function(){return this.getPropertyValue("panBehavior")},set:function(t){if(this.setPropertyValue("panBehavior",t)){var i=this.seriesContainer;"move"===(this.panSprite.draggable=!1,i.draggable=!1,t)?i.draggable=!0:this.panSprite.draggable=!0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerMapOnZoomOut",{get:function(){return this.getPropertyValue("centerMapOnZoomOut")},set:function(t){this.setPropertyValue("centerMapOnZoomOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projection",{get:function(){return this.getPropertyValue("projection")},set:function(t){var i=this;this.setPropertyValue("projection",t)&&(this.invalidateProjection(),t.chart=this,this._backgroundSeries&&this._backgroundSeries.invalidate(),this.inited&&this.updateExtremes(),this.series.each(function(r){r.events.once("validated",function(){i.updateCenterGeoPoint(),i.updateScaleRatio(),i.goHome(0)})}))},enumerable:!0,configurable:!0}),e.prototype.validateDataItems=function(){n.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,i,r,o;this.series.each(function(M){M.ignoreBounds||M instanceof ue&&M.fitExtent||((M.north>
1i||!S.isNumber(i))&&(i=M.north),(M.south<o||!S.isNumber(o))&&(o=M.south),(M.west<r||!S.isNumber(r))&&(r=M.west),(M.east>t||!S.isNumber(t))&&(t=M.east))});var a=[],s=!1;this.series.each(function(M){M instanceof ue&&!M.fitExtent&&(a=M.getFeatures(),s=!0)}),s||this.series.each(function(M){M.ignoreBounds||M instanceof ue&&M.fitExtent||(a=a.concat(M.getFeatures()))});var u=T.max(50,this.innerWidth),h=T.max(50,this.innerHeight),l=this.projection.d3Projection;if(a.length>0&&l&&(this.east!=t||this.west!=r||this.north!=i||this.south!=o)){if(this.east=t,this.west=r,this.north=i,this.south=o,l.rotate){var f=l.rotate(),p=f[1],d=f[2];this.deltaLongitude=f[0],this.deltaLatitude=p,this.deltaGamma=d}var g={type:"FeatureCollection",features:a},m=l.scale();if(l.fitSize([u,h],g),l.scale()!=m&&this.invalidateDataUsers(),this.series.each(function(M){M instanceof ue&&M.invalidateData()}),this._backgroundSeries){var b=this._backgroundSeries.mapPolygons.getIndex(0);b&&(b.multiPolygon=cr(this.north,this.east,this.south,this.west))}this._fitWidth=u,this._fitHeight=h}(!this._zoomGeoPointReal||!S.isNumber(this._zoomGeoPointReal.latitude))&&this.goHome(0)},e.prototype.updateScaleRatio=function(){var t;this.updateCenterGeoPoint(),t=T.min(this.innerWidth/this.seriesWidth,this.innerHeight/this.seriesHeight),(S.isNaN(t)||t==1/0)&&(t=1),t!=this.scaleRatio&&(this.scaleRatio=t,Yt.each(this.series.iterator(),function(o){o.scale=t,o.updateTooltipBounds()}),this.backgroundSeries.scale=t,this.dispatch("scaleratiochanged"))},e.prototype.svgPointToGeo=function(t){var i=this.series.getIndex(0);if(i){var r=st.svgPointToSprite(t,i);return this.seriesPointToGeo(r)}},e.prototype.geoPointToSVG=function(t){var i=this.series.getIndex(0);if(i){var r=this.geoPointToSeries(t);return st.spritePointToSvg(r,i)}},e.prototype.seriesPointToGeo=function(t){return this.projection.invert(t)},e.prototype.geoPointToSeries=function(t){return this.projection.convert(t)},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){t!=this._geodata&&(this._geodata=t,this.reverseGeodata&&this.processReverseGeodata(this._geodata),this.invalidateData(),this.dataUsers.each(function(i){for(var r=i.data.length-1;r>=0;r--)1==i.data[r].madeFromGeoData&&i.data.splice(r,1);i.disposeData(),i.invalidateData()}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseGeodata",{get:function(){return this.getPropertyValue("reverseGeodata")},set:function(t){this.setPropertyValue("reverseGeodata",t)&&this._geodata&&this.processReverseGeodata(this._geodata)},enumerable:!0,configurable:!0}),e.prototype.processReverseGeodata=function(t){for(var i=0;i<t.features.length;i++)for(var r=t.features[i],o=0;o<r.geometry.coordinates.length;o++)if("MultiPolygon"==r.geometry.type)for(var a=0;a<r.geometry.coordinates[o].length;a++)r.geometry.coordinates[o][a].reverse();else r.geometry.coordinates[o].reverse()},e.prototype.zoomToGeoPoint=function(t,i,r,o,a){var s=this;if(!t){var u=!1;if(this.series.each(function(d){d.dataItems.length>0&&(u=!0)}),!u)return;t=this.zoomGeoPoint}if(t&&S.isNumber(t.longitude)&&S.isNumber(t.latitude)){this._zoomGeoPointReal=t,i=T.fitToRange(i,this.minZoomLevel,this.maxZoomLevel);var h=this.projection.convert(t);if(h){var l=this.geoPointToSVG(t),f=st.svgPointToSprite(l,this);r&&(f={x:this.innerWidth/2,y:this.innerHeight/2}),S.isNumber(o)||(o=this.zoomDuration);var c=f.x-h.x*i*this.scaleRatio,p=f.y-h.y*i*this.scaleRatio;return!a&&i<this.zoomLevel&&this.centerMapOnZoomOut&&i<1.5&&(c=this.innerWidth/2-(this.seriesMaxLeft+(this.seriesMaxRight-this.seriesMaxLeft)/2)*i*this.scaleRatio,p=this.innerHeight/2-(this.seriesMaxTop+(this.seriesMaxBottom-this.seriesMaxTop)/2)*i*this.scaleRatio),this._mapAnimation=this.seriesContainer.animate([{property:"scale",to:i},{property:"x",from:this.seriesContainer.pixelX,to:c},{property:"y",from:this.seriesContainer.pixelY,to:p}],o,this.zoomEasing),this._disposers.push(this._mapAnimation.events.on("animationended",function(){s._zoomGeoPointReal=s.zoomGeoPoint})),this.seriesContainer.validatePosition(),this._mapAnimation}}},e.prototype.zoomToMapObject=function(t,i,r,o){null==r&&(r=!0);var a=this.seriesContainer.interactions.inertias.getKey("move");
1if(a&&a.done(),t instanceof de)return S.isNaN(i)&&(i=5),this.zoomToGeoPoint({latitude:t.latitude,longitude:t.longitude},i,r,o,!0);var s=t.dataItem;if(s&&S.isNumber(s.zoomLevel)&&(i=s.zoomLevel),t instanceof Qe){var u=t.dataItem,h=t.polygon.bbox;(0==h.width||0==h.height)&&(h=t.polygon.group.getBBox()),S.isNumber(i)||(i=Math.min(this.seriesWidth/h.width,this.seriesHeight/h.height));var l=void 0;if(u&&S.hasValue(u.zoomGeoPoint))l=u.zoomGeoPoint;else{var c=st.spritePointToSprite({x:h.x+h.width/2,y:h.y+h.height/2},t.polygon,t.series);l=this.seriesPointToGeo(c)}return this.zoomToGeoPoint(l,i,!0,o,!0)}},e.prototype.zoomToRectangle=function(t,i,r,o,a,s,u){S.isNaN(a)&&(a=1);var h=T.min(o,i),l=T.max(o,i);o=h,i=l;var f=T.normalizeAngle(180-this.deltaLongitude);f>180&&(f-=360);var c=o+(i-o)/2,p=o-i;o<f&&i>f&&(c+=180,p=T.normalizeAngle(i-o-360));var d=a*Math.min((this.south-this.north)/(r-t),Math.abs((this.west-this.east)/p));return this.zoomToGeoPoint({latitude:t+(r-t)/2,longitude:c},d,s,u,!0)},e.prototype.zoomIn=function(t,i,r){void 0===r&&(r=1);var o=1+(this.zoomStep-1)*r;return o<1&&(o=1),this.zoomToGeoPoint(t,this.zoomLevel*o,!1,i)},e.prototype.zoomOut=function(t,i,r){void 0===r&&(r=1);var o=1+(this.zoomStep-1)*r;return o<1&&(o=1),this.zoomToGeoPoint(t,this.zoomLevel/o,!1,i)},e.prototype.pan=function(t,i){var r=this.geoPointToSVG(this.zoomGeoPoint);r.x+=this.pixelWidth*t.x,r.y+=this.pixelHeight*t.y,this.zoomToGeoPoint(this.svgPointToGeo(r),this.zoomLevel,!0,i,!0)},Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){var t=st.spritePointToSvg({x:this.pixelWidth/2,y:this.pixelHeight/2},this);return this.svgPointToGeo(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.seriesContainer.scale},set:function(t){this.seriesContainer.scale=t},enumerable:!0,configurable:!0}),e.prototype.handleMapTransform=function(){this.zoomLevel!=this._prevZoomLevel&&(this.dispatch("zoomlevelchanged"),this._prevZoomLevel=this.zoomLevel,this.svgContainer.readerAlert(this.language.translate("Zoom level changed to %1",this.language.locale,S.castString(this.zoomLevel)))),this.zoomGeoPoint&&(this._prevZoomGeoPoint.latitude!=this.zoomGeoPoint.latitude||this._prevZoomGeoPoint.longitude!=this.zoomGeoPoint.longitude)&&this.dispatch("mappositionchanged")},Object.defineProperty(e.prototype,"smallMap",{get:function(){if(!this._smallMap){var t=new ci;this.smallMap=t}return this._smallMap},set:function(t){this._smallMap&&this.removeDispose(this._smallMap),this._smallMap=t,this._smallMap.chart=this,t.parent=this.chartContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomControl",{get:function(){return this._zoomControl},set:function(t){this._zoomControl&&this.removeDispose(this._zoomControl),this._zoomControl=t,t.chart=this,t.parent=this.chartContainer,t.plusButton.exportable=!1,t.minusButton.exportable=!1},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new Jt},Object.defineProperty(e.prototype,"deltaLongitude",{get:function(){return this.getPropertyValue("deltaLongitude")},set:function(t){t=T.round(t,3),this.setPropertyValue("deltaLongitude",Ce(t))&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaLatitude",{get:function(){return this.getPropertyValue("deltaLatitude")},set:function(t){t=T.round(t,3),this.setPropertyValue("deltaLatitude",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaGamma",{get:function(){return this.getPropertyValue("deltaGamma")},set:function(t){t=T.round(t,3),this.setPropertyValue("deltaGamma",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),e.prototype.rotateMap=function(){this.projection.d3Projection&&this.projection.d3Projection.rotate&&(this.projection.d3Projection.rotate([this.deltaLongitude,this.deltaLatitude,this.deltaGamma]),this.invalidateProjection())},Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeGeoPoint",{get:function(){return this.getPropertyValue("homeGeoPoint")}
1,set:function(t){this.setPropertyValue("homeGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeZoomLevel",{get:function(){return this.getPropertyValue("homeZoomLevel")},set:function(t){this.setPropertyValue("homeZoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomStep",{get:function(){return this.getPropertyValue("zoomStep")},set:function(t){this.setPropertyValue("zoomStep",t)},enumerable:!0,configurable:!0}),e.prototype.invalidateProjection=function(){this.east=void 0,this.invalidateDataUsers(),this.updateCenterGeoPoint()},Object.defineProperty(e.prototype,"geodataSource",{get:function(){var t=this;return this._dataSources.geodata||this.getDataSource("geodata").events.on("parseended",function(){t.events.once("datavalidated",function(){t.goHome(0)})}),this._dataSources.geodata},set:function(t){var i=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",function(){i.loadData("geodata")},this,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(t){if(S.hasValue(t.geodata)&&S.isString(t.geodata)){var i=t.geodata;if(S.hasValue(window["am4geodata_"+t.geodata]))t.geodata=window["am4geodata_"+t.geodata];else try{t.geodata=JSON.parse(t.geodata)}catch{this.raiseCriticalError(Error("MapChart error: Geodata `"+i+"` is not loaded or is incorrect."),!0)}}S.hasValue(t.projection)&&S.isString(t.projection)&&(t.projection=this.createClassInstance(t.projection)),S.hasValue(t.smallMap)&&!S.hasValue(t.smallMap.type)&&(t.smallMap.type="SmallMap"),S.hasValue(t.zoomControl)&&!S.hasValue(t.zoomControl.type)&&(t.zoomControl.type="ZoomControl"),n.prototype.processConfig.call(this,t)},e.prototype.handleSeriesAdded=function(t){n.prototype.handleSeriesAdded.call(this,t);var i=t.newValue;i.scale=this.scaleRatio,i.events.on("validated",this.updateCenterGeoPoint,this,!1)},e.prototype.configOrder=function(t,i){return t==i?0:"smallMap"==t?1:"smallMap"==i?-1:"series"==t?1:"series"==i?-1:n.prototype.configOrder.call(this,t,i)},e.prototype.asIs=function(t){return"projection"==t||"geodata"==t||n.prototype.asIs.call(this,t)},Object.defineProperty(e.prototype,"centerGeoPoint",{get:function(){return this._centerGeoPoint},enumerable:!0,configurable:!0}),e.prototype.goHome=function(t){var i=this.homeGeoPoint;i||(i=this.centerGeoPoint),i&&this.zoomToGeoPoint(i,this.homeZoomLevel,!0,t,!0)},e.prototype.setPaper=function(t){return this.svgContainer&&(this.svgContainer.hideOverflow=!0),n.prototype.setPaper.call(this,t)},Object.defineProperty(e.prototype,"backgroundSeries",{get:function(){var t=this;if(!this._backgroundSeries){var i=new Wn;i.parent=this.seriesContainer,i.chart=this,i.hiddenInLegend=!0,i.mapPolygons.template.focusable=!1,i.addDisposer(new N.ku(function(){t._backgroundSeries=void 0})),this._disposers.push(i);var o=(new _.h).getFor("background"),a=i.mapPolygons.template.polygon;a.stroke=o,a.fill=o,a.fillOpacity=0,a.strokeOpacity=0,i.mapPolygons.create(),this._backgroundSeries=i}return this._backgroundSeries},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(t){n.prototype.setLegend.call(this,t),t&&(t.parent=this)},e.prototype.setTapToActivate=function(t){n.prototype.setTapToActivate.call(this,t),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.handleTapToActivate=function(){n.prototype.handleTapToActivate.call(this),this.seriesContainer.interactions.isTouchProtected=!1,this.panSprite.interactions.isTouchProtected=!1},e.prototype.handleTapToActivateDeactivation=function(){n.prototype.handleTapToActivateDeactivation.call(this),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.asFunction=function(t){return"zoomEasing"==t||n.prototype.asIs.call(this,t)},e.prototype.hasLicense=function(){if(pi.Y.commercialLicense)return!0;if(!n.prototype.hasLicense.call(this))return!1;for(var t=0;t<pi.Y.licenses.length;t++)if(pi.Y.licenses[t].match(/^MP.{5,}/i))return!0;return!1},e}(Gt.j);x.i.registeredClasses.MapChart=Kr;var Oa=R(56644),yi=function(n){function e(){var t=n.call(this)||this;return t.className="MapSpline",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createLine=function(){this.line=new Oa.o,this.line.tensionX=.8,this.line.tensionY=.8},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(oe);x.i.registeredClasses.MapSpline=yi;var Ra=R(69986),Pi=function(n){function e(){var t=n.call(this)||this;return t.className="MapArc",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createLine=function(){this.line=new Ra.y},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(oe);x.i.registeredClasses.MapArc=Pi;var Si=function(n){function e(){var t=n.call(this)||this;return t.className="MapSplineSeriesDataItem",t.applyTheme(),t}return(0,G.ZT)(e,n),e}(ae),qr=function(n){function e(){var t=n.call(this)||this;return t.className="MapSplineSeries",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createDataItem=function(){return new Si},e.prototype.createLine=function(){return new yi},e}(xe);x.i.registeredClasses.MapSplineSeries=qr,x.i.registeredClasses.MapSplineSeriesDataItem=Si;var Mi=function(n){function e(){var t=n.call(this)||this;return t.className="MapArcSeriesDataItem",t.applyTheme(),t}return(0,G.ZT)(e,n),e}(ae),Jr=function(n){function e(){var t=n.call(this)||this;return t.className="MapArcSeries",t.applyTheme(),t}return(0,G.ZT)(e,n),e.prototype.createDataItem=function(){return new Mi},e.prototype.createLine=function(){return new Pi},e}(xe);x.i.registeredClasses.MapArcSeries=Jr,x.i.registeredClasses.MapArcSeriesDataItem=Mi;var bi=R(16569),za=R(68049),to=function(n){function e(){var t=n.call(this)||this;t._chart=new N.cx,t.className="ZoomControl",t.align="right",t.valign="bottom",t.layout="vertical",t.padding(5,5,5,5);var i=new _.h,r=t.createChild(bi.z);r.shouldClone=!1,r.label.text="+",t.plusButton=r;var o=t.createChild(te.W);o.shouldClone=!1,o.background.fill=i.getFor("alternativeBackgroun
1d"),o.background.fillOpacity=.05,o.background.events.on("hit",t.handleBackgroundClick,t,!1),o.events.on("sizechanged",t.updateThumbSize,t,!1),t.slider=o;var a=o.createChild(bi.z);a.shouldClone=!1,a.padding(0,0,0,0),a.draggable=!0,a.events.on("drag",t.handleThumbDrag,t,!1),t.thumb=a;var s=t.createChild(bi.z);return s.shouldClone=!1,s.label.text="-",t.minusButton=s,t.thumb.role="slider",t.thumb.readerLive="polite",t.thumb.readerTitle=t.language.translate("Use arrow keys to zoom in and out"),t.minusButton.readerTitle=t.language.translate("Press ENTER to zoom in"),t.plusButton.readerTitle=t.language.translate("Press ENTER to zoom out"),t.applyTheme(),t.events.on("propertychanged",function(u){"layout"==u.property&&t.fixLayout()},void 0,!1),t._disposers.push(t._chart),t.fixLayout(),t}return(0,G.ZT)(e,n),e.prototype.fixLayout=function(){var t=this.plusButton,i=this.minusButton,r=this.thumb,o=this.slider;t.x=void 0,t.y=void 0,i.x=void 0,i.y=void 0,r.x=void 0,r.y=void 0,o.x=void 0,o.y=void 0,t.padding(6,10,6,10),i.padding(6,10,6,10),i.label.align="center",i.label.valign="middle",t.label.align="center",t.label.valign="middle","vertical"==this.layout?(this.width=40,this.height=void 0,i.width=(0,ut.aQ)(100),i.height=void 0,r.width=(0,ut.aQ)(100),r.height=void 0,t.width=(0,ut.aQ)(100),t.height=void 0,o.width=(0,ut.aQ)(100),i.marginTop=1,t.marginBottom=2,o.height=0,i.toFront(),t.toBack(),r.minX=0,r.maxX=0,r.minY=0):"horizontal"==this.layout&&(this.height=40,this.width=void 0,i.height=(0,ut.aQ)(100),i.width=void 0,t.height=(0,ut.aQ)(100),t.width=void 0,r.height=(0,ut.aQ)(100),r.width=void 0,r.minX=0,r.minY=0,r.maxY=0,o.height=(0,ut.aQ)(100),o.width=0,i.toBack(),t.toFront())},e.prototype.handleBackgroundClick=function(t){var i=t.target,r=t.spritePoint.y,o=this.chart,a=Math.log(o.maxZoomLevel)/Math.LN2,s=Math.log(o.minZoomLevel)/Math.LN2,h=Math.pow(2,(i.pixelHeight-r)/i.pixelHeight*(s+(a-s)));o.zoomToGeoPoint(o.zoomGeoPoint,h)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){var i=this;this._chart.set(t,new N.FV([t.events.on("maxsizechanged",this.updateThumbSize,this,!1),t.events.on("zoomlevelchanged",this.updateThumb,this,!1),this.minusButton.events.on("hit",function(){t.zoomOut(t.zoomGeoPoint)},t,!1),(0,fn.S)().body.events.on("keyup",function(r){i.topParent.hasFocused&&(fi.d.isKey(r.event,"plus")?t.zoomIn():fi.d.isKey(r.event,"minus")&&t.zoomOut())},t),this.plusButton.events.on("hit",function(){t.zoomIn(t.zoomGeoPoint)},t,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateThumbSize=function(){if(this.chart){var i=this.slider,r=this.thumb;"vertical"==this.layout?(r.minHeight=Math.min(this.slider.pixelHeight,20),r.height=i.pixelHeight/this.stepCount,r.maxY=i.pixelHeight-r.pixelHeight,r.visible=!(r.pixelHeight<=1)):(r.minWidth=Math.min(this.slider.pixelWidth,20),r.width=i.pixelWidth/this.stepCount,r.maxX=i.pixelWidth-r.pixelWidth,r.visible=!(r.pixelWidth<=1))}},e.prototype.updateThumb=function(){var t=this.slider,r=this.thumb;if(!r.isDown){var o=(Math.log(this.chart.zoomLevel)-Math.log(this.chart.minZoomLevel))/Math.LN2;"vertical"==this.layout?r.y=t.pixelHeight-(t.pixelHeight-r.pixelHeight)*o/this.stepCount-r.pixelHeight:r.x=t.pixelWidth*o/this.stepCount}},e.prototype.handleThumbDrag=function(){var o,t=this.slider,i=this.chart,r=this.thumb;o=Math.log(this.chart.minZoomLevel)/Math.LN2+(o="vertical"==this.layout?this.stepCount*(t.pixelHeight-r.pixelY-r.pixelHeight)/(t.pixelHeight-r.pixelHeight):this.stepCount*r.pixelX/t.pixelWidth);var s=Math.pow(2,o);i.zoomToGeoPoint(void 0,s,!1,0)},Object.defineProperty(e.prototype,"stepCount",{get:function(){return Math.log(this.chart.maxZoomLevel)/Math.LN2-Math.log(this.chart.minZoomLevel)/Math.LN2},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new za.c},e}(te.W);function Ee(n,e){return[n,Ae(Tn((V+e)/2))]}function eo(){return no(Ee).scale(961/Q)}function no(n){var s,u,h,e=Mt(n),t=e.center,i=e.scale,r=e.translate,o=e.clipExtent,a=null;function l(){var f=j*i(),c=e(ar(e.rotate()).invert([0,0]));return o(null==a?[[c[0]-f,c[1]-f],[c[0]+f,c[1]+f]]:n===Ee?[[Math.max(c[0]-f,a),s],[Math.min(c[0]+f,u),h]]:[[a,Math.max(c[1]-f,s)],[u,Math.min(c[1]+f,h)]])}return e.scale=function(f){return arguments.length?(i(f),l()):i()},e.translate=function(f){return arguments.length?(r(f),l()):r()},e.center=function(f){return arguments.length?(t(f),l()):t()},e.clipExtent=function(f){return arguments.length?(null==f?a=s=u=h=null:(a=+f[0][0],s=+f[0][1],u=+f[1][0],h=+f[1][1]),l()):null==a?null:[[a,s],[u,h]]},l()}x.i.registeredClasses.ZoomControl=to,Ee.invert=function(n,e){return[n,2*jt(_i(e))-V]};var io=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=eo(),t}return(0,G.ZT)(e,n),e}(dt);x.i.registeredClasses.Mercator=io;var Na=Math.abs,Aa=Math.atan,wi=(Math,Math,Math.cos),le=Math.exp,Li=(Math,Math.log),Ci=(Math,Math,Math,Math,Math,Math.sin),Va=Math.tan,Fa=1e-6,Nt=Math.PI,pn=Nt/2,_a=Nt/4;function Za(n){return n>1?pn:n<-1?-pn:Math.asin(n)}function he(n){return n>0?Math.sqrt(n):0}function ro(n,e){return[n,1.25*Li(Va(_a+.4*e))]}Math,he(2),he(Nt),ro.invert=function(n,e){return[n,2.5*Aa(le(.8*e))-.625*Nt]};var oo=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=function Ba(){return Mt(ro).scale(108.318)}(),t}return(0,G.ZT)(e,n),e}(dt);function ao(n,e){for(var t=(1+pn)*Ci(e),i=0,r=1/0;i<10&&Na(r)>Fa;i++)e-=r=(e+Ci(e)-t)/(1+wi(e));return t=he(2+Nt),[n*(1+wi(e))/t,2*e/t]}x.i.registeredClasses.Miller=oo,ao.invert=function(n,e){var t=1+pn,i=he(t/2);return[2*n*i/(1+wi(e*=i)),Za((e+Ci(e))/t)]};var so=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=function Wa(){return Mt(ao).scale(173.044)}(),t}return(0,G.ZT)(e,n),e}(dt);function uo(n){return function(e,t){var i=w(e),r=w(t),o=n(i*r);return o===1/0?[2,0]:[o*r*L(e),o*L(t)]}}function Te(n){return function(e,t){var i=ot(e*e+t*t),r=n(i),o=L(r),a=w(r);return[rt(e*o,i*a),lt(i&&t*o/i)]}}function xi(n,e){return[w(e)*L(n),L(e)]}function lo(){return Mt(xi).scale(249.5).clipAngle(90+C)}x.i.registeredClasses.Eckert6=so,xi.invert=Te(lt);var ho=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=lo(),t}return(0,G.ZT)(e,n),e}(dt);function Ei(n,e){var t=w(e),i=1+w(n)*t;return[t*L(n)/i,L(e)/i]}function co(){return Mt(Ei).scale(250).clipAngle(142)}
1x.i.registeredClasses.Orthographic=ho,Ei.invert=Te(function(n){return 2*jt(n)});var fo=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=co(),t}return(0,G.ZT)(e,n),e}(dt);function Ti(n){var e=0,t=j/3,i=Kn(n),r=i(e,t);return r.parallels=function(o){return arguments.length?i(e=o[0]*I,t=o[1]*I):[e*B,t*B]},r}function po(n,e){var t=L(n),i=(t+L(e))/2;if(O(i)<C)return function Ha(n){var e=w(n);function t(i,r){return[i*e,L(r)/e]}return t.invert=function(i,r){return[i/e,lt(r*e)]},t}(n);var r=1+t*(2*i-t),o=ot(r)/i;function a(s,u){var h=ot(r-2*i*L(u))/i;return[h*L(s*=i),o-h*w(s)]}return a.invert=function(s,u){var h=o-u,l=rt(s,O(h))*St(h);return h*i<0&&(l-=j*St(s)*St(h)),[l/i,lt((r-(s*s+h*h)*i*i)/(2*i))]},a}function dn(){return Ti(po).scale(155.424).center([0,33.6442])}function Ii(){return dn().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}x.i.registeredClasses.Stereographic=fo;var go=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=Ii(),t}return(0,G.ZT)(e,n),e}(dt);function vo(){var n,e,i,o,s,u,t=Ii(),r=dn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=dn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),h={point:function(c,p){u=[c,p]}};function l(c){var p=c[0],d=c[1];return u=null,i.point(p,d),u||(o.point(p,d),u)||(s.point(p,d),u)}function f(){return n=e=null,l}return l.invert=function(c){var p=t.scale(),d=t.translate(),g=(c[0]-d[0])/p,m=(c[1]-d[1])/p;return(m>=.12&&m<.234&&g>=-.425&&g<-.214?r:m>=.166&&m<.234&&g>=-.214&&g<-.115?a:t).invert(c)},l.stream=function(c){return n&&e===c?n:n=function ka(n){var e=n.length;return{point:function(t,i){for(var r=-1;++r<e;)n[r].point(t,i)},sphere:function(){for(var t=-1;++t<e;)n[t].sphere()},lineStart:function(){for(var t=-1;++t<e;)n[t].lineStart()},lineEnd:function(){for(var t=-1;++t<e;)n[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<e;)n[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<e;)n[t].polygonEnd()}}}([t.stream(e=c),r.stream(c),a.stream(c)])},l.precision=function(c){return arguments.length?(t.precision(c),r.precision(c),a.precision(c),f()):t.precision()},l.scale=function(c){return arguments.length?(t.scale(c),r.scale(.35*c),a.scale(c),l.translate(t.translate())):t.scale()},l.translate=function(c){if(!arguments.length)return t.translate();var p=t.scale(),d=+c[0],g=+c[1];return i=t.translate(c).clipExtent([[d-.455*p,g-.238*p],[d+.455*p,g+.238*p]]).stream(h),o=r.translate([d-.307
vendor: 5,227 bytes, line 1
1*p,g+.201*p]).clipExtent([[d-.425*p+C,g+.12*p+C],[d-.214*p-C,g+.234*p-C]]).stream(h),s=a.translate([d-.205*p,g+.212*p]).clipExtent([[d-.214*p+C,g+.166*p+C],[d-.115*p-C,g+.234*p-C]]).stream(h),f()},l.fitExtent=function(c,p){return nn(l,c,p)},l.fitSize=function(c,p){return Qn(l,c,p)},l.fitWidth=function(c,p){return $n(l,c,p)},l.fitHeight=function(c,p){return Un(l,c,p)},l.scale(1070)}x.i.registeredClasses.Albers=go;var mo=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=vo(),t}return(0,G.ZT)(e,n),e}(dt);function Di(n,e){var t=e*e,i=t*t;return[n*(.8707-.131979*t+i*(i*(.003971*t-.001529*i)-.013791)),e*(1.007226+t*(.015085+i*(.028874*t-.044475-.005916*i)))]}function yo(){return Mt(Di).scale(175.295)}x.i.registeredClasses.AlbersUsa=mo,Di.invert=function(n,e){var r,t=e,i=25;do{var o=t*t,a=o*o;t-=r=(t*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(O(r)>C&&--i>0);return[n/(.8707+(o=t*t)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),t]};var Po=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=yo(),t}return(0,G.ZT)(e,n),e}(dt);x.i.registeredClasses.NaturalEarth1=Po;var Gi=uo(function(n){return ot(2/(1+n))});function So(){return Mt(Gi).scale(124.75).clipAngle(179.999)}Gi.invert=Te(function(n){return 2*lt(n/2)});var Mo=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=So(),t}return(0,G.ZT)(e,n),e}(dt);x.i.registeredClasses.AzimuthalEqualArea=Mo;var Ie=1.340264,De=-.081106,Ge=893e-6,je=.003796,gn=ot(3)/2;function ji(n,e){var t=lt(gn*L(e)),i=t*t,r=i*i*i;return[n*w(t)/(gn*(Ie+3*De*i+r*(7*Ge+9*je*i))),t*(Ie+De*i+r*(Ge+je*i))]}function bo(){return Mt(ji).scale(177.158)}ji.invert=function(n,e){for(var a,t=e,i=t*t,r=i*i*i,o=0;o<12&&(r=(i=(t-=a=(t*(Ie+De*i+r*(Ge+je*i))-e)/(Ie+3*De*i+r*(7*Ge+9*je*i)))*t)*i*i,!(O(a)<it));++o);return[gn*n*(Ie+3*De*i+r*(7*Ge+9*je*i))/w(t),lt(L(t)/gn)]};var wo=function(n){function e(){var t=n.call(this)||this;return t.d3Projection=bo(),t}return(0,G.ZT)(e,n),e}(dt);x.i.registeredClasses.EqualEarth=wo;var Oe,vn,mn,yn,Pn,Sn,Mn,bn,Oi,Ri,zi,Lo,Co,ht,ct,ft,Ct={sphere:U,point:Ni,lineStart:xo,lineEnd:Eo,polygonStart:function(){Ct.lineStart=$a,Ct.lineEnd=Ua},polygonEnd:function(){Ct.lineStart=xo,Ct.lineEnd=Eo}};function Ni(n,e){n*=I;var t=w(e*=I);Re(t*w(n),t*L(n),L(e))}function Re(n,e,t){++Oe,mn+=(n-mn)/Oe,yn+=(e-yn)/Oe,Pn+=(t-Pn)/Oe}function xo(){Ct.point=Xa}function Xa(n,e){n*=I;var t=w(e*=I);ht=t*w(n),ct=t*L(n),ft=L(e),Ct.point=Qa,Re(ht,ct,ft)}function Qa(n,e){n*=I;var t=w(e*=I),i=t*w(n),r=t*L(n),o=L(e),a=rt(ot((a=ct*o-ft*r)*a+(a=ft*i-ht*o)*a+(a=ht*r-ct*i)*a),ht*i+ct*r+ft*o);vn+=a,Sn+=a*(ht+(ht=i)),Mn+=a*(ct+(ct=r)),bn+=a*(ft+(ft=o)),Re(ht,ct,ft)}function Eo(){Ct.point=Ni}function $a(){Ct.point=Ka}function Ua(){To(Lo,Co),Ct.point=Ni}function Ka(n,e){Lo=n,Co=e,n*=I,e*=I,Ct.point=To;var t=w(e);ht=t*w(n),ct=t*L(n),ft=L(e),Re(ht,ct,ft)}function To(n,e){n*=I;var t=w(e*=I),i=t*w(n),r=t*L(n),o=L(e),a=ct*o-ft*r,s=ft*i-ht*o,u=ht*r-ct*i,h=xn(a,s,u),l=lt(h),f=h&&-l/h;Oi.add(f*a),Ri.add(f*s),zi.add(f*u),vn+=l,Sn+=l*(ht+(ht=i)),Mn+=l*(ct+(ct=r)),bn+=l*(ft+(ft=o)),Re(ht,ct,ft)}function qa(n){Oe=vn=mn=yn=Pn=Sn=Mn=bn=0,Oi=new A,Ri=new A,zi=new A,wt(n,Ct);var e=+Oi,t=+Ri,i=+zi,r=xn(e,t,i);return r<it&&(e=Sn,t=Mn,i=bn,vn<C&&(e=mn,t=yn,i=Pn),(r=xn(e,t,i))<it)?[NaN,NaN]:[rt(t,e)*B,lt(i/r)*B]}function Ja(){var r,o,a,n=0,e=0,t=960,i=500;return a={stream:function(s){return r&&o===s?r:r=qe(n,e,t,i)(o=s)},extent:function(s){return arguments.length?(n=+s[0][0],e=+s[0][1],t=+s[1][0],i=+s[1][1],r=o=null,a):[[n,e],[t,i]]}}}var Io={Feature:function(n,e){return wn(n.geometry,e)},FeatureCollection:function(n,e){for(var t=n.features,i=-1,r=t.length;++i<r;)if(wn(t[i].geometry,e))return!0;return!1}},Do={Sphere:function(){return!0},Point:function(n,e){return Go(n.coordinates,e)},MultiPoint:function(n,e){for(var t=n.coordinates,i=-1,r=t.length;++i<r;)if(Go(t[i],e))return!0;return!1},LineString:function(n,e){return jo(n.coordinates,e)},MultiLineString:function(n,e){for(var t=n.coordinates,i=-1,r=t.length;++i<r;)if(jo(t[i],e))return!0;return!1},Polygon:function(n,e){return Oo(n.coordinates,e)},MultiPolygon:function(n,e){for(var t=n.coordinates,i=-1,r=t.length;++i<r;)if(Oo(t[i],e))return!0;return!1},GeometryCollection:function(n,e){for(var t=n.geometries,i=-1,r=t.length;++i<r;)if(wn(t[i],e))return!0;return!1}};function wn(n,e){return!(!n||!Do.hasOwnProperty(n.type))&&Do[n.type](n,e)}function Go(n,e){return 0===Le(n,e)}function jo(n,e){for(var t,i,r,o=0,a=n.length;o<a;o++){if(0===(i=Le(n[o],e))||o>0&&(r=Le(n[o],n[o-1]))>0&&t<=r&&i<=r&&(t+i-r)*(1-Math.pow((t-i)/r,2))<it*r)return!0;t=i}return!1}function Oo(n,e){return!!gr(n.map(ts),Ro(e))}function ts(n){return(n=n.map(Ro)).pop(),n}function Ro(n){return[n[0]*I,n[1]*I]}function es(n,e){return(n&&Io.hasOwnProperty(n.type)?Io[n.type]:wn)(n,e)}var Ai=uo(function(n){return(n=Zi(n))&&n/L(n)});function ns(){return Mt(Ai).scale(79.4188).clipAngle(179.999)}function Ln(n){return Tn((V+n)/2)}function zo(n,e){var t=w(n),i=n===e?L(n):Ae(t/w(e))/Ae(Ln(e)/Ln(n)),r=t*En(Ln(n),i)/i;if(!i)return Ee;function o(a,s){r>0?s<-V+C&&(s=-V+C):s>V-C&&(s=V-C);var u=r/En(Ln(s),i);return[u*L(i*a),r-u*w(i*a)]}
1return o.invert=function(a,s){var u=r-s,h=St(i)*ot(a*a+u*u),l=rt(a,O(u))*St(u);return u*i<0&&(l-=j*St(a)*St(u)),[l/i,2*jt(En(r/h,1/i))-V]},o}function is(){return Ti(zo).scale(109.5).parallels([30,30])}function No(n,e){var t=w(n),i=n===e?L(n):(t-w(e))/(e-n),r=t/i+n;if(O(i)<C)return Pe;function o(a,s){var u=r-s,h=i*a;return[u*L(h),r-u*w(h)]}return o.invert=function(a,s){var u=r-s,h=rt(a,O(u))*St(u);return u*i<0&&(h-=j*St(a)*St(u)),[h/i,r-St(i)*ot(a*a+u*u)]},o}function rs(){return Ti(No).scale(131.154).center([0,13.9389])}function Vi(n,e){var t=w(e),i=w(n)*t;return[t*L(n)/i,L(e)/i]}function os(){return Mt(Vi).scale(144.049).clipAngle(60)}function as(){var a,s,h,l,f,m,b,n=1,e=0,t=0,i=1,r=1,o=0,u=null,c=1,p=1,d=me({point:function(y,E){var D=v([y,E]);this.stream.point(D[0],D[1])}}),g=ve;function M(){return c=n*i,p=n*r,m=b=null,v}function v(y){var E=y[0]*c,D=y[1]*p;if(o){var W=D*a-E*s;E=E*a+D*s,D=W}return[E+e,D+t]}return v.invert=function(y){var E=y[0]-e,D=y[1]-t;if(o){var W=D*a+E*s;E=E*a-D*s,D=W}return[E/c,D/p]},v.stream=function(y){return m&&b===y?m:m=d(g(b=y))},v.postclip=function(y){return arguments.length?(g=y,u=h=l=f=null,M()):g},v.clipExtent=function(y){return arguments.length?(g=null==y?(u=h=l=f=null,ve):qe(u=+y[0][0],h=+y[0][1],l=+y[1][0],f=+y[1][1]),M()):null==u?null:[[u,h],[l,f]]},v.scale=function(y){return arguments.length?(n=+y,M()):n},v.translate=function(y){return arguments.length?(e=+y[0],t=+y[1],M()):[e,t]},v.angle=function(y){return arguments.length?(s=L(o=y%360*I),a=w(o),M()):o*B},v.reflectX=function(y){return arguments.length?(i=y?-1:1,M()):i<0},v.reflectY=function(y){return arguments.length?(r=y?-1:1,M()):r<0},v.fitExtent=function(y,E){return nn(v,y,E)},v.fitSize=function(y,E){return Qn(v,y,E)},v.fitWidth=function(y,E){return $n(v,y,E)},v.fitHeight=function(y,E){return Un(v,y,E)},v}function Fi(n,e){return[Ae(Tn((V+e)/2)),-n]}function ss(){var n=no(Fi),e=n.center,t=n.rotate;return n.center=function(i){return arguments.length?e([-i[1],i[0]]):[(i=e())[1],-i[0]]},n.rotate=function(i){return arguments.length?t([i[0],i[1],i.length>2?i[2]+90:90]):[(i=t())[0],i[1],i[2]-90]},t([0,0,90]).scale(159.155)}Ai.invert=Te(function(n){return n}),Vi.invert=Te(jt),Fi.invert=function(n,e){return[-e,2*jt(_i(n))-V]}},80877:(Ne,$t,R)=>{var xt=R(111);function Ft(N,_,tt){_=_||1;for(var x,S,T,A,X=0;X<N[0].length;X++){var q=N[0][X];(!X||q[0]<x)&&(x=q[0]),(!X||q[1]<S)&&(S=q[1]),(!X||q[0]>T)&&(T=q[0]),(!X||q[1]>A)&&(A=q[1])}var C=T-x,it=A-S,j=Math.min(C,it),V=j/2;if(0===j){var Bt=[x,S];return Bt.distance=0,Bt}for(var Q=new xt(void 0,Dt),B=x;B<T;B+=j)for(var I=S;I<A;I+=j)Q.push(new F(B+V,I+V,V,N));var O=function G(N){for(var _=0,tt=0,x=0,S=N[0],T=0,A=S.length,X=A-1;T<A;X=T++){var q=S[T],C=S[X],it=q[0]*C[1]-C[0]*q[1];tt+=(q[0]+C[0])*it,x+=(q[1]+C[1])*it,_+=3*it}return 0===_?new F(S[0][0],S[0][1],0,N):new F(tt/_,x/_,0,N)}(N),jt=new F(x+C/2,S+it/2,0,N);jt.d>O.d&&(O=jt);for(var rt=Q.length;Q.length;){var w=Q.pop();w.d>O.d&&(O=w,tt&&console.log("found best %d after %d probes",Math.round(1e4*w.d)/1e4,rt)),!(w.max-O.d<=_)&&(Q.push(new F(w.x-(V=w.h/2),w.y-V,V,N)),Q.push(new F(w.x+V,w.y-V,V,N)),Q.push(new F(w.x-V,w.y+V,V,N)),Q.push(new F(w.x+V,w.y+V,V,N)),rt+=4)}tt&&(console.log("num probes: "+rt),console.log("best distance: "+O.d));var Wt=[O.x,O.y];return Wt.distance=O.d,Wt}function Dt(N,_){return _.max-N.max}function F(N,_,tt,x){this.x=N,this.y=_,this.h=tt,this.d=function nt(N,_,tt){for(var x=!1,S=1/0,T=0;T<tt.length;T++)for(var A=tt[T],X=0,q=A.length,C=q-1;X<q;C=X++){var it=A[X],j=A[C];it[1]>_!=j[1]>_&&N<(j[0]-it[0])*(_-it[1])/(j[1]-it[1])+it[0]&&(x=!x),S=Math.min(S,Gt(N,_,it,j))}return 0===S?0:(x?1:-1)*Math.sqrt(S)}(N,_,x),this.max=this.d+this.h*Math.SQRT2}function Gt(N,_,tt,x){var S=tt[0],T=tt[1],A=x[0]-S,X=x[1]-T;if(0!==A||0!==X){var q=((N-S)*A+(_-T)*X)/(A*A+X*X);q>1?(S=x[0],T=x[1]):q>0&&(S+=A*q,T+=X*q)}return(A=N-S)*A+(X=_-T)*X}xt.default&&(xt=xt.default),Ne.exports=Ft,Ne.exports.default=Ft},111:(Ne,$t,R)=>{R.r($t),R.d($t,{default:()=>xt});class xt{constructor(F=[],nt=Ft){if(this.data=F,this.length=this.data.length,this.compare=nt,this.length>0)for(let G=(this.length>>1)-1;G>=0;G--)this._down(G)}push(F){this.data.push(F),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const F=this.data[0],nt=this.data.pop();return this.length--,this.length>0&&(this.data[0]=nt,this._down(0)),F}peek(){return this.data[0]}_up(F){const{data:nt,compare:G}=this,Gt=nt[F];for(;F>0;){const N=F-1>>1,_=nt[N];if(G(Gt,_)>=0)break;nt[F]=_,F=N}nt[F]=Gt}_down(F){const{data:nt,compare:G}=this,Gt=this.length>>1,N=nt[F];for(;F<Gt;){let _=1+(F<<1),tt=nt[_];const x=_+1;
1if(x<this.length&&G(nt[x],tt)<0&&(_=x,tt=nt[x]),G(tt,N)>=0)break;nt[F]=tt,F=_}nt[F]=N}}function Ft(Dt,F){return Dt<F?-1:Dt>F?1:0}}}]);
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.