PageSourceSearch

https://somosomov.org/assets/BrazilMap-BUyk_Yxy.js

js somosomov.org collected 2026-10-04 05:17:36 UTC 116,563 bytes, 10 lines download raw bytes

1import{r as M,a9 as it,b8 as k,b6 as _u,bu as Eu,bv as Su,bw as ti,bx as xu,by as Mu,bz as Au,j as qt,m as bu}from"./index-DtinW7og.js";import{i as _e,r as Ie,a as ei,b as ni,d as ku}from"./string-SUJU7WsC.js";class Et{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const n=this._partials;let r=0;for(let o=0;o<this._n&&o<32;o++){const i=n[o],a=e+i,u=Math.abs(e)<Math.abs(i)?e-(a-i):i-(a-e);u&&(n[r++]=u),e=a}return n[r]=e,this._n=r+1,this}valueOf(){const e=this._partials;let n=this._n,r,o,i,a=0;if(n>0){for(a=e[--n];n>0&&(r=a,o=e[--n],a=r+o,i=o-(a-r),!i););n>0&&(i<0&&e[n-1]<0||i>0&&e[n-1]>0)&&(o=i*2,r=a+o,o==r-a&&(a=r))}return a}}function*Nu(t){for(const e of t)yield*e}function na(t){return Array.from(Nu(t))}var ri=180/Math.PI,jr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ra(t,e,n,r,o,i){var a,u,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,l/=u),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*ri,skewX:Math.atan(l)*ri,scaleX:a,scaleY:u}}var On;function $u(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?jr:ra(e.a,e.b,e.c,e.d,e.e,e.f)}function Ru(t){return t==null||(On||(On=document.createElementNS("http://www.w3.org/2000/svg","g")),On.setAttribute("transform",t),!(t=On.transform.baseVal.consolidate()))?jr:(t=t.matrix,ra(t.a,t.b,t.c,t.d,t.e,t.f))}function oa(t,e,n,r){function o(c){return c.length?c.pop()+" ":""}function i(c,s,f,h,p,d){if(c!==f||s!==h){var _=p.push("translate(",null,e,null,n);d.push({i:_-4,x:_e(c,f)},{i:_-2,x:_e(s,h)})}else(f||h)&&p.push("translate("+f+e+h+n)}function a(c,s,f,h){c!==s?(c-s>180?s+=360:s-c>180&&(c+=360),h.push({i:f.push(o(f)+"rotate(",null,r)-2,x:_e(c,s)})):s&&f.push(o(f)+"rotate("+s+r)}
vendor: 20,143 bytes, line 1
1function u(c,s,f,h){c!==s?h.push({i:f.push(o(f)+"skewX(",null,r)-2,x:_e(c,s)}):s&&f.push(o(f)+"skewX("+s+r)}function l(c,s,f,h,p,d){if(c!==f||s!==h){var _=p.push(o(p)+"scale(",null,",",null,")");d.push({i:_-4,x:_e(c,f)},{i:_-2,x:_e(s,h)})}else(f!==1||h!==1)&&p.push(o(p)+"scale("+f+","+h+")")}return function(c,s){var f=[],h=[];return c=t(c),s=t(s),i(c.translateX,c.translateY,s.translateX,s.translateY,f,h),a(c.rotate,s.rotate,f,h),u(c.skewX,s.skewX,f,h),l(c.scaleX,c.scaleY,s.scaleX,s.scaleY,f,h),c=s=null,function(p){for(var d=-1,_=h.length,S;++d<_;)f[(S=h[d]).i]=S.x(p);return f.join("")}}}var Pu=oa($u,"px, ","px)","deg)"),Cu=oa(Ru,", ",")",")"),Tu=1e-12;function oi(t){return((t=Math.exp(t))+1/t)/2}function zu(t){return((t=Math.exp(t))-1/t)/2}function Ou(t){return((t=Math.exp(2*t))-1)/(t+1)}const Lu=(function t(e,n,r){function o(i,a){var u=i[0],l=i[1],c=i[2],s=a[0],f=a[1],h=a[2],p=s-u,d=f-l,_=p*p+d*d,S,w;if(_<Tu)w=Math.log(h/c)/e,S=function(C){return[u+C*p,l+C*d,c*Math.exp(e*C*w)]};else{var x=Math.sqrt(_),m=(h*h-c*c+r*_)/(2*c*n*x),E=(h*h-c*c-r*_)/(2*h*n*x),A=Math.log(Math.sqrt(m*m+1)-m),b=Math.log(Math.sqrt(E*E+1)-E);w=(b-A)/e,S=function(C){var I=C*w,X=oi(A),Z=c/(n*x)*(X*Ou(e*I+A)-zu(A));return[u+Z*p,l+Z*d,c*X/oi(e*I+A)]}}return S.duration=w*1e3*e/Math.SQRT2,S}return o.rho=function(i){var a=Math.max(.001,+i),u=a*a,l=u*u;return t(a,u,l)},o})(Math.SQRT2,2,4);var D=1e-6,wn=1e-12,W=Math.PI,ht=W/2,Kn=W/4,kt=W*2,ot=180/W,F=W/180,V=Math.abs,Ze=Math.atan,Nt=Math.atan2,z=Math.cos,Ln=Math.ceil,ia=Math.exp,Dr=Math.hypot,Hn=Math.log,Rr=Math.pow,T=Math.sin,Gt=Math.sign||function(t){return t>0?1:t<0?-1:0},mt=Math.sqrt,yo=Math.tan;function aa(t){return t>1?0:t<-1?W:Math.acos(t)}function $t(t){return t>1?ht:t<-1?-ht:Math.asin(t)}function ii(t){return(t=T(t/2))*t}function lt(){}function Qn(t,e){t&&ui.hasOwnProperty(t.type)&&ui[t.type](t,e)}var ai={Feature:function(t,e){Qn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r<o;)Qn(n[r].geometry,e)}},ui={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Fr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)Fr(n[r],e,0)},Polygon:function(t,e){si(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)si(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,o=n.length;++r<o;)Qn(n[r],e)}};function Fr(t,e,n){var r=-1,o=t.length-n,i;for(e.lineStart();++r<o;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function si(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Fr(t[n],e,1);e.polygonEnd()}function Zt(t,e){t&&ai.hasOwnProperty(t.type)?ai[t.type](t,e):Qn(t,e)}var Jn=new Et,tr=new Et,ua,sa,qr,Br,Xr,te={point:lt,lineStart:lt,lineEnd:lt,polygonStart:function(){Jn=new Et,te.lineStart=Iu,te.lineEnd=ju},polygonEnd:function(){var t=+Jn;tr.add(t<0?kt+t:t),this.lineStart=this.lineEnd=this.point=lt},sphere:function(){tr.add(kt)}};function Iu(){te.point=Du}function ju(){la(ua,sa)}function Du(t,e){te.point=la,ua=t,sa=e,t*=F,e*=F,qr=t,Br=z(e=e/2+Kn),Xr=T(e)}function la(t,e){t*=F,e*=F,e=e/2+Kn;var n=t-qr,r=n>=0?1:-1,o=r*n,i=z(e),a=T(e),u=Xr*a,l=Br*i+u*z(o),c=u*r*T(o);Jn.add(Nt(c,l)),qr=t,Br=i,Xr=a}function Fu(t){return tr=new Et,Zt(t,te),tr*2}function er(t){return[Nt(t[1],t[0]),$t(t[2])]}function Se(t){var e=t[0],n=t[1],r=z(n);return[r*z(e),r*T(e),T(n)]}function In(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function qe(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Pr(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function jn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function nr(t){var e=mt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var st,Tt,ft,jt,Ee,ca,fa,Fe,dn,pe,le,ie={point:Gr,lineStart:li,lineEnd:ci,polygonStart:function(){ie.point=pa,ie.lineStart=qu,ie.lineEnd=Bu,dn=new Et,te.polygonStart()},polygonEnd:function(){te.polygonEnd(),ie.point=Gr,ie.lineStart=li,ie.lineEnd=ci,Jn<0?(st=-(ft=180),Tt=-(jt=90)):dn>D?jt=90:dn<-D&&(Tt=-90),le[0]=st,le[1]=ft},sphere:function(){st=-(ft=180),Tt=-(jt=90)}};function Gr(t,e){pe.push(le=[st=t,ft=t]),e<Tt&&(Tt=e),e>jt&&(jt=e)}function ha(t,e){var n=Se([t*F,e*F]);if(Fe){var r=qe(Fe,n),o=[r[1],-r[0],0],i=qe(o,r);nr(i),i=er(i);var a=t-Ee,u=a>0?1:-1,l=i[0]*ot*u,c,s=V(a)>180;s^(u*Ee<l&&l<u*t)?(c=i[1]*ot,c>jt&&(jt=c)):(l=(l+360)%360-180,s^(u*Ee<l&&l<u*t)?(c=-i[1]*ot,c<Tt&&(Tt=c)):(e<Tt&&(Tt=e),e>jt&&(jt=e))),s?t<Ee?It(st,t)>It(st,ft)&&(ft=t):It(t,ft)>It(st,ft)&&(st=t):ft>=st?(t<st&&(st=t),t>ft&&(ft=t)):t>Ee?It(st,t)>It(st,ft)&&(ft=t):It(t,ft)>It(st,ft)&&(st=t)}else pe.push(le=[st=t,ft=t]);e<Tt&&(Tt=e),e>jt&&(jt=e),Fe=n,Ee=t}function li(){ie.point=ha}function ci(){le[0]=st,le[1]=ft,ie.point=Gr,Fe=null}function pa(t,e){if(Fe){var n=t-Ee;dn.add(V(n)>180?n+(n>0?360:-360):n)}else ca=t,fa=e;te.point(t,e),ha(t,e)}function qu(){te.lineStart()}function Bu(){pa(ca,fa),te.lineEnd(),V(dn)>D&&(st=-(ft=180)),le[0]=st,le[1]=ft,Fe=null}function It(t,e){return(e-=t)<0?e+360:e}function Xu(t,e){return t[0]-e[0]}function fi(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function Gu(t){var e,n,r,o,i,a,u;if(jt=ft=-(st=Tt=1/0),pe=[],Zt(t,ie),n=pe.length){for(pe.sort(Xu),e=1,r=pe[0],i=[r];e<n;++e)o=pe[e],fi(r,o[0])||fi(r,o[1])?(It(r[0],o[1])>It(r[0],r[1])&&(r[1]=o[1]),It(o[0],r[1])>It(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,n=i.length-1,e=0,r=i[n];e<=n;r=o,++e)o=i[e],(u=It(r[1],o[0]))>a&&(a=u,st=o[0],ft=r[1])}return pe=le=null,st===1/0||Tt===1/0?[[NaN,NaN],[NaN,NaN]]:[[st,Tt],[ft,jt]]}var an,rr,or,ir,ar,ur,sr,lr,Yr,Zr,Wr,da,va,Mt,At,bt,Wt={sphere:lt,point:wo,lineStart:hi,lineEnd:pi,polygonStart:function(){Wt.lineStart=Wu,Wt.lineEnd=Uu},polygonEnd:function(){Wt.lineStart=hi,Wt.lineEnd=pi}};function wo(t,e){t*=F,e*=F;var n=z(e);An(n*z(t),n*T(t),T(e))}function An(t,e,n){++an,or+=(t-or)/an,ir+=(e-ir)/an,ar+=(n-ar)/an}function hi(){Wt.point=Yu}function Yu(t,e){t*=F,e*=F;var n=z(e);Mt=n*z(t),At=n*T(t),bt=T(e),Wt.point=Zu,An(Mt,At,bt)}function Zu(t,e){t*=F,e*=F;var n=z(e),r=n*z(t),o=n*T(t),i=T(e),a=Nt(mt((a=At*i-bt*o)*a+(a=bt*r-Mt*i)*a+(a=Mt*o-At*r)*a),Mt*r+At*o+bt*i);rr+=a,ur+=a*(Mt+(Mt=r)),sr+=a*(At+(At=o)),lr+=a*(bt+(bt=i)),An(Mt,At,bt)}function pi(){Wt.point=wo}function Wu(){Wt.point=Vu}function Uu(){ga(da,va),Wt.point=wo}function Vu(t,e){da=t,va=e,t*=F,e*=F,Wt.point=ga;var n=z(e);Mt=n*z(t),At=n*T(t),bt=T(e),An(Mt,At,bt)}function ga(t,e){t*=F,e*=F;var n=z(e),r=n*z(t),o=n*T(t),i=T(e),a=At*i-bt*o,u=bt*r-Mt*i,l=Mt*o-At*r,c=Dr(a,u,l),s=$t(c),f=c&&-s/c;Yr.add(f*a),Zr.add(f*u),Wr.add(f*l),rr+=s,ur+=s*(Mt+(Mt=r)),sr+=s*(At+(At=o)),lr+=s*(bt+(bt=i)),An(Mt,At,bt)}function Ku(t){an=rr=or=ir=ar=ur=sr=lr=0,Yr=new Et,Zr=new Et,Wr=new Et,Zt(t,Wt);var e=+Yr,n=+Zr,r=+Wr,o=Dr(e,n,r);return o<wn&&(e=ur,n=sr,r=lr,rr<D&&(e=or,n=ir,r=ar),o=Dr(e,n,r),o<wn)?[NaN,NaN]:[Nt(n,e)*ot,$t(r/o)*ot]}function Oe(t){return function(){return t}}function Ur(t,e){function n(r,o){return r=t(r,o),e(r[0],r[1])}return t.invert&&e.invert&&(n.invert=function(r,o){return r=e.invert(r,o),r&&t.invert(r[0],r[1])}),n}function Vr(t,e){return[V(t)>W?t+Math.round(-t/kt)*kt:t,e]}Vr.invert=Vr;function _o(t,e,n){return(t%=kt)?e||n?Ur(vi(t),gi(e,n)):vi(t):e||n?gi(e,n):Vr}function di(t){return function(e,n){return e+=t,[e>W?e-kt:e<-W?e+kt:e,n]}}function vi(t){var e=di(t);return e.invert=di(-t),e}function gi(t,e){var n=z(t),r=T(t),o=z(e),i=T(e);function a(u,l){var c=z(l),s=z(u)*c,f=T(u)*c,h=T(l),p=h*n+s*r;return[Nt(f*o-p*i,s*n-h*r),$t(p*o+f*i)]}return a.invert=function(u,l){var c=z(l),s=z(u)*c,f=T(u)*c,h=T(l),p=h*o-f*i;return[Nt(f*o+h*i,s*n+p*r),$t(p*n-s*r)]},a}function ma(t){t=_o(t[0]*F,t[1]*F,t.length>2?t[2]*F:0);function e(n){return n=t(n[0]*F,n[1]*F),n[0]*=ot,n[1]*=ot,n}return e.invert=function(n){return n=t.invert(n[0]*F,n[1]*F),n[0]*=ot,n[1]*=ot,n},e}function ya(t,e,n,r,o,i){if(n){var a=z(e),u=T(e),l=r*n;o==null?(o=e+r*kt,i=e-l/2):(o=mi(a,o),i=mi(a,i),(r>0?o<i:o>i)&&(o+=r*kt));for(var c,s=o;r>0?s>i:s<i;s-=l)c=er([a,-u*z(s),-u*T(s)]),t.point(c[0],c[1])}}function mi(t,e){e=Se(e),e[0]-=t,nr(e);var n=aa(-e[1]);return((-e[2]<0?-n:n)+kt-D)%kt}function Hu(){var t=Oe([0,0]),e=Oe(90),n=Oe(6),r,o,i={point:a};function a(l,c){r.push(l=o(l,c)),l[0]*=ot,l[1]*=ot}function u(){var l=t.apply(this,arguments),c=e.apply(this,arguments)*F,s=n.apply(this,arguments)*F;return r=[],o=_o(-l[0]*F,-l[1]*F,0).invert,ya(i,c,s,1),l={type:"Polygon",coordinates:[r]},r=o=null,l}return u.center=function(l){return arguments.length?(t=typeof l=="function"?l:Oe([+l[0],+l[1]]),u):t},u.radius=function(l){return arguments.length?(e=typeof l=="function"?l:Oe(+l),u):e},u.precision=function(l){return arguments.length?(n=typeof l=="function"?l:Oe(+l),u):n},u}function wa(){var t=[],e;return{point:function(n,r,o){e.push([n,r,o])},lineStart:function(){t.push(e=[])},lineEnd:lt,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Xn(t,e){return V(t[0]-e[0])<D&&V(t[1]-e[1])<D}function Dn(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function _a(t,e,n,r,o){var i=[],a=[],u,l;if(t.forEach(function(d){if(!((_=d.length-1)<=0)){var _,S=d[0],w=d[_],x;if(Xn(S,w)){if(!S[2]&&!w[2]){for(o.lineStart(),u=0;u<_;++u)o.point((S=d[u])[0],S[1]);o.lineEnd();return}w[0]+=2*D}i.push(x=new Dn(S,d,null,!0)),a.push(x.o=new Dn(S,null,x,!1)),i.push(x=new Dn(w,d,null,!1)),a.push(x.o=new Dn(w,null,x,!0))}}),!!i.length){for(a.sort(e),yi(i),yi(a),u=0,l=a.length;u<l;++u)a[u].e=n=!n;for(var c=i[0],s,f;;){for(var h=c,p=!0;h.v;)if((h=h.n)===c)return;s=h.z,o.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(u=0,l=s.length;u<l;++u)o.point((f=s[u])[0],f[1]);else r(h.x,h.n.x,1,o);h=h.n}else{if(p)for(s=h.p.z,u=s.length-1;u>=0;--u)o.point((f=s[u])[0],f[1]);else r(h.x,h.p.x,-1,o);h=h.p}h=h.o,s=h.z,p=!p}while(!h.v);o.lineEnd()}}}function yi(t){if(e=t.length){for(var e,n=0,r=t[0],o;++n<e;)r.n=o=t[n],o.p=r,r=o;r.n=o=t[0],o.p=r}}function Cr(t){return V(t[0])<=W?t[0]:Gt(t[0])*((V(t[0])+W)%kt-W)}function Ea(t,e){var n=Cr(e),r=e[1],o=T(r),i=[T(n),-z(n),0],a=0,u=0,l=new Et;o===1?r=ht+D:o===-1&&(r=-ht-D);for(var c=0,s=t.length;c<s;++c)if(h=(f=t[c]).length)for(var f,h,p=f[h-1],d=Cr(p),_=p[1]/2+Kn,S=T(_),w=z(_),x=0;x<h;++x,d=E,S=b,w=C,p=m){var m=f[x],E=Cr(m),A=m[1]/2+Kn,b=T(A),C=z(A),I=E-d,X=I>=0?1:-1,Z=X*I,L=Z>W,U=S*b;if(l.add(Nt(U*X*T(Z),w*C+U*z(Z))),a+=L?I+X*kt:I,L^d>=n^E>=n){var H=qe(Se(p),Se(m));nr(H);var v=qe(i,H);nr(v);var g=(L^I>=0?-1:1)*$t(v[2]);(r>g||r===g&&(H[0]||H[1]))&&(u+=L^I>=0?1:-1)}}return(a<-D||a<D&&l<-wn)^u&1}function Sa(t,e,n,r){return function(o){var i=e(o),a=wa(),u=e(a),l=!1,c,s,f,h={point:p,lineStart:_,lineEnd:S,polygonStart:function(){h.point=w,h.lineStart=x,h.lineEnd=m,s=[],c=[]},polygonEnd:function(){h.point=p,h.lineStart=_,h.lineEnd=S,s=na(s);var E=Ea(c,r);s.length?(l||(o.polygonStart(),l=!0),_a(s,Ju,E,n,o)):E&&(l||(o.polygonStart(),l=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),l&&(o.polygonEnd(),l=!1),s=c=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function p(E,A){t(E,A)&&o.point(E,A)}function d(E,A){i.point(E,A)}function _(){h.point=d,i.lineStart()}function S(){h.point=p,i.lineEnd()}function w(E,A){f.push([E,A]),u.point(E,A)}function x(){u.lineStart(),f=[]}function m(){w(f[0][0],f[0][1]),u.lineEnd();var E=u.clean(),A=a.result(),b,C=A.length,I,X,Z;if(f.pop(),c.push(f),f=null,!!C){if(E&1){if(X=A[0],(I=X.length-1)>0){for(l||(o.polygonStart(),l=!0),o.lineStart(),b=0;b<I;++b)o.point((Z=X[b])[0],Z[1]);o.lineEnd()}return}C>1&&E&2&&A.push(A.pop().concat(A.shift())),s.push(A.filter(Qu))}}return h}}function Qu(t){return t.length>1}function Ju(t,e){return((t=t.x)[0]<0?t[1]-ht-D:ht-t[1])-((e=e.x)[0]<0?e[1]-ht-D:ht-e[1])}const Kr=Sa(function(){return!0},ts,ns,[-W,-ht]);function ts(t){var e=NaN,n=NaN,r=NaN,o;return{lineStart:function(){t.lineStart(),o=1},point:function(i,a){var u=i>0?W:-W,l=V(i-e);V(l-W)<D?(t.point(e,n=(n+a)/2>0?ht:-ht),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(u,n),t.point(i,n),o=0):r!==u&&l>=W&&(V(e-r)<D&&(e-=r*D),V(i-u)<D&&(i-=u*D),n=es(e,n,i,a),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(u,n),o=0),t.point(e=i,n=a),r=u},lineEnd:function(){t.lineEnd(),e=n=NaN},clean:function(){return 2-o}}}function es(t,e,n,r){var o,i,a=T(t-n);return V(a)>D?Ze((T(e)*(i=z(r))*T(n)-T(r)*(o=z(e))*T(t))/(o*i*a)):(e+r)/2}function ns(t,e,n,r){var o;if(t==null)o=n*ht,r.point(-W,o),r.point(0,o),r.point(W,o),r.point(W,0),r.point(W,-o),r.point(0,-o),r.point(-W,-o),r.point(-W,0),r.point(-W,o);else if(V(t[0]-e[0])>D){var i=t[0]<e[0]?W:-W;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(e[0],e[1])}function xa(t){var e=z(t),n=6*F,r=e>0,o=V(e)>D;function i(s,f,h,p){ya(p,t,n,h,s,f)}function a(s,f){return z(s)*z(f)>e}function u(s){var f,h,p,d,_;return{lineStart:function(){d=p=!1,_=1},point:function(S,w){var x=[S,w],m,E=a(S,w),A=r?E?0:c(S,w):E?c(S+(S<0?W:-W),w):0;if(!f&&(d=p=E)&&s.lineStart(),E!==p&&(m=l(f,x),(!m||Xn(f,m)||Xn(x,m))&&(x[2]=1)),E!==p)_=0,E?(s.lineStart(),m=l(x,f),s.point(m[0],m[1])):(m=l(f,x),s.point(m[0],m[1],2),s.lineEnd()),f=m;else if(o&&f&&r^E){var b;!(A&h)&&(b=l(x,f,!0))&&(_=0,r?(s.lineStart(),s.point(b[0][0],b[0][1]),s.point(b[1][0],b[1][1]),s.lineEnd()):(s.point(b[1][0],b[1][1]),s.lineEnd(),s.lineStart(),s.point(b[0][0],b[0][1],3)))}E&&(!f||!Xn(f,x))&&s.point(x[0],x[1]),f=x,p=E,h=A},lineEnd:function(){p&&s.lineEnd(),f=null},clean:function(){return _|(d&&p)<<1}}}function l(s,f,h){var p=Se(s),d=Se(f),_=[1,0,0],S=qe(p,d),w=In(S,S),x=S[0],m=w-x*x;if(!m)return!h&&s;var E=e*w/m,A=-e*x/m,b=qe(_,S),C=jn(_,E),I=jn(S,A);Pr(C,I);var X=b,Z=In(C,X),L=In(X,X),U=Z*Z-L*(In(C,C)-1);if(!(U<0)){var H=mt(U),v=jn(X,(-Z-H)/L);if(Pr(v,C),v=er(v),!h)return v;var g=s[0],y=f[0],N=s[1],$=f[1],P;y<g&&(P=g,g=y,y=P);var q=y-g,Y=V(q-W)<D,O=Y||q<D;if(!Y&&$<N&&(P=N,N=$,$=P),O?Y?N+$>0^v[1]<(V(v[0]-g)<D?N:$):N<=v[1]&&v[1]<=$:q>W^(g<=v[0]&&v[0]<=y)){var Q=jn(X,(-Z+H)/L);return Pr(Q,C),[v,er(Q)]}}}function c(s,f){var h=r?t:W-t,p=0;return s<-h?p|=1:s>h&&(p|=2),f<-h?p|=4:f>h&&(p|=8),p}return Sa(a,u,i,r?[0,-t]:[-W,t-W])}function rs(t,e,n,r,o,i){var a=t[0],u=t[1],l=e[0],c=e[1],s=0,f=1,h=l-a,p=c-u,d;if(d=n-a,!(!h&&d>0)){if(d/=h,h<0){if(d<s)return;d<f&&(f=d)}else if(h>0){if(d>f)return;d>s&&(s=d)}if(d=o-a,!(!h&&d<0)){if(d/=h,h<0){if(d>f)return;d>s&&(s=d)}else if(h>0){if(d<s)return;d<f&&(f=d)}if(d=r-u,!(!p&&d>0)){if(d/=p,p<0){if(d<s)return;d<f&&(f=d)}else if(p>0){if(d>f)return;d>s&&(s=d)}if(d=i-u,!(!p&&d<0)){if(d/=p,p<0){if(d>f)return;d>s&&(s=d)}else if(p>0){if(d<s)return;d<f&&(f=d)}return s>0&&(t[0]=a+s*h,t[1]=u+s*p),f<1&&(e[0]=a+f*h,e[1]=u+f*p),!0}}}}}var un=1e9,Fn=-un;function xr(t,e,n,r){function o(c,s){return t<=c&&c<=n&&e<=s&&s<=r}function i(c,s,f,h){var p=0,d=0;if(c==null||(p=a(c,f))!==(d=a(s,f))||l(c,s)<0^f>0)do h.point(p===0||p===3?t:n,p>1?r:e);while((p=(p+f+4)%4)!==d);else h.point(s[0],s[1])}function a(c,s){return V(c[0]-t)<D?s>0?0:3:V(c[0]-n)<D?s>0?2:1:V(c[1]-e)<D?s>0?1:0:s>0?3:2}function u(c,s){return l(c.x,s.x)}function l(c,s){var f=a(c,1),h=a(s,1);return f!==h?f-h:f===0?s[1]-c[1]:f===1?c[0]-s[0]:f===2?c[1]-s[1]:s[0]-c[0]}return function(c){var s=c,f=wa(),h,p,d,_,S,w,x,m,E,A,b,C={point:I,lineStart:U,lineEnd:H,polygonStart:Z,polygonEnd:L};function I(g,y){o(g,y)&&s.point(g,y)}function X(){for(var g=0,y=0,N=p.length;y<N;++y)for(var $=p[y],P=1,q=$.length,Y=$[0],O,Q,J=Y[0],nt=Y[1];P<q;++P)O=J,Q=nt,Y=$[P],J=Y[0],nt=Y[1],Q<=r?nt>r&&(J-O)*(r-Q)>(nt-Q)*(t-O)&&++g:nt<=r&&(J-O)*(r-Q)<(nt-Q)*(t-O)&&--g;return g}function Z(){s=f,h=[],p=[],b=!0}function L(){var g=X(),y=b&&g,N=(h=na(h)).length;(y||N)&&(c.polygonStart(),y&&(c.lineStart(),i(null,null,1,c),c.lineEnd()),N&&_a(h,u,g,i,c),c.polygonEnd()),s=c,h=p=d=null}function U(){C.point=v,p&&p.push(d=[]),A=!0,E=!1,x=m=NaN}function H(){h&&(v(_,S),w&&E&&f.rejoin(),h.push(f.result())),C.point=I,E&&s.lineEnd()}function v(g,y){var N=o(g,y);if(p&&d.push([g,y]),A)_=g,S=y,w=N,A=!1,N&&(s.lineStart(),s.point(g,y));else if(N&&E)s.point(g,y);else{var $=[x=Math.max(Fn,Math.min(un,x)),m=Math.max(Fn,Math.min(un,m))],P=[g=Math.max(Fn,Math.min(un,g)),y=Math.max(Fn,Math.min(un,y))];rs($,P,t,e,n,r)?(E||(s.lineStart(),s.point($[0],$[1])),s.point(P[0],P[1]),N||s.lineEnd(),b=!1):N&&(s.lineStart(),s.point(g,y),b=!1)}x=g,m=y,E=N}return C}}function os(){var t=0,e=0,n=960,r=500,o,i,a;return a={stream:function(u){return o&&i===u?o:o=xr(t,e,n,r)(i=u)},extent:function(u){return arguments.length?(t=+u[0][0],e=+u[0][1],n=+u[1][0],r=+u[1][1],o=i=null,a):[[t,e],[n,r]]}}}var Hr,Qr,Gn,Yn,Be={sphere:lt,point:lt,lineStart:is,lineEnd:lt,polygonStart:lt,polygonEnd:lt};function is(){Be.point=us,Be.lineEnd=as}function as(){Be.point=Be.lineEnd=lt}function us(t,e){t*=F,e*=F,Qr=t,Gn=T(e),Yn=z(e),Be.point=ss}function ss(t,e){t*=F,e*=F;var n=T(e),r=z(e),o=V(t-Qr),i=z(o),a=T(o),u=r*a,l=Yn*n-Gn*r*i,c=Gn*n+Yn*r*i;Hr.add(Nt(mt(u*u+l*l),c)),Qr=t,Gn=n,Yn=r}function Ma(t){return Hr=new Et,Zt(t,Be),+Hr}var Jr=[null,null],ls={type:"LineString",coordinates:Jr};function cr(t,e){return Jr[0]=t,Jr[1]=e,Ma(ls)}var wi={Feature:function(t,e){return fr(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r<o;)if(fr(n[r].geometry,e))return!0;return!1}},_i={Sphere:function(){return!0},Point:function(t,e){return Ei(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(Ei(n[r],e))return!0;return!1},LineString:function(t,e){return Si(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(Si(n[r],e))return!0;return!1},Polygon:function(t,e){return xi(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(xi(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,o=n.length;++r<o;)if(fr(n[r],e))return!0;return!1}};function fr(t,e){return t&&_i.hasOwnProperty(t.type)?_i[t.type](t,e):!1}function Ei(t,e){return cr(t,e)===0}function Si(t,e){for(var n,r,o,i=0,a=t.length;i<a;i++){if(r=cr(t[i],e),r===0||i>0&&(o=cr(t[i],t[i-1]),o>0&&n<=o&&r<=o&&(n+r-o)*(1-Math.pow((n-r)/o,2))<wn*o))return!0;n=r}return!1}function xi(t,e){return!!Ea(t.map(cs),Aa(e))}function cs(t){return t=t.map(Aa),t.pop(),t}function Aa(t){return[t[0]*F,t[1]*F]}function fs(t,e){return(t&&wi.hasOwnProperty(t.type)?wi[t.type]:fr)(t,e)}function Mi(t,e,n){var r=Ie(t,e-D,n).concat(e);return function(o){return r.map(function(i){return[o,i]})}}function Ai(t,e,n){var r=Ie(t,e-D,n).concat(e);return function(o){return r.map(function(i){return[i,o]})}}function Eo(){var t,e,n,r,o,i,a,u,l=10,c=l,s=90,f=360,h,p,d,_,S=2.5;function w(){return{type:"MultiLineString",coordinates:x()}}function x(){return Ie(Ln(r/s)*s,n,s).map(d).concat(Ie(Ln(u/f)*f,a,f).map(_)).concat(Ie(Ln(e/l)*l,t,l).filter(function(m){return V(m%s)>D}).map(h)).concat(Ie(Ln(i/c)*c,o,c).filter(function(m){return V(m%f)>D}).map(p))}return w.lines=function(){return x().map(function(m){return{type:"LineString",coordinates:m}})},w.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(_(a).slice(1),d(n).reverse().slice(1),_(u).reverse().slice(1))]}},w.extent=function(m){return arguments.length?w.extentMajor(m).extentMinor(m):w.extentMinor()},w.extentMajor=function(m){return arguments.length?(r=+m[0][0],n=+m[1][0],u=+m[0][1],a=+m[1][1],r>n&&(m=r,r=n,n=m),u>a&&(m=u,u=a,a=m),w.precision(S)):[[r,u],[n,a]]},w.extentMinor=function(m){return arguments.length?(e=+m[0][0],t=+m[1][0],i=+m[0][1],o=+m[1][1],e>t&&(m=e,e=t,t=m),i>o&&(m=i,i=o,o=m),w.precision(S)):[[e,i],[t,o]]},w.step=function(m){return arguments.length?w.stepMajor(m).stepMinor(m):w.stepMinor()},w.stepMajor=function(m){return arguments.length?(s=+m[0],f=+m[1],w):[s,f]},w.stepMinor=function(m){return arguments.length?(l=+m[0],c=+m[1],w):[l,c]},w.precision=function(m){return arguments.length?(S=+m,h=Mi(i,o,90),p=Ai(e,t,S),d=Mi(u,a,90),_=Ai(r,n,S),w):S},w.extentMajor([[-180,-90+D],[180,90-D]]).extentMinor([[-180,-80-D],[180,80+D]])}function hs(){return Eo()()}function ps(t,e){var n=t[0]*F,r=t[1]*F,o=e[0]*F,i=e[1]*F,a=z(r),u=T(r),l=z(i),c=T(i),s=a*z(n),f=a*T(n),h=l*z(o),p=l*T(o
vendor: 4,087 bytes, line 1
1),d=2*$t(mt(ii(i-r)+a*l*ii(o-n))),_=T(d),S=d?function(w){var x=T(w*=d)/_,m=T(d-w)/_,E=m*s+x*h,A=m*f+x*p,b=m*u+x*c;return[Nt(A,E)*ot,Nt(b,mt(E*E+A*A))*ot]}:function(){return[n*ot,r*ot]};return S.distance=d,S}const _n=t=>t;var Tr=new Et,to=new Et,ba,ka,eo,no,ae={point:lt,lineStart:lt,lineEnd:lt,polygonStart:function(){ae.lineStart=ds,ae.lineEnd=gs},polygonEnd:function(){ae.lineStart=ae.lineEnd=ae.point=lt,Tr.add(V(to)),to=new Et},result:function(){var t=Tr/2;return Tr=new Et,t}};function ds(){ae.point=vs}function vs(t,e){ae.point=Na,ba=eo=t,ka=no=e}function Na(t,e){to.add(no*t-eo*e),eo=t,no=e}function gs(){Na(ba,ka)}var Xe=1/0,hr=Xe,En=-Xe,pr=En,dr={point:ms,lineStart:lt,lineEnd:lt,polygonStart:lt,polygonEnd:lt,result:function(){var t=[[Xe,hr],[En,pr]];return En=pr=-(hr=Xe=1/0),t}};function ms(t,e){t<Xe&&(Xe=t),t>En&&(En=t),e<hr&&(hr=e),e>pr&&(pr=e)}var ro=0,oo=0,sn=0,vr=0,gr=0,je=0,io=0,ao=0,ln=0,$a,Ra,Qt,Jt,Xt={point:xe,lineStart:bi,lineEnd:ki,polygonStart:function(){Xt.lineStart=_s,Xt.lineEnd=Es},polygonEnd:function(){Xt.point=xe,Xt.lineStart=bi,Xt.lineEnd=ki},result:function(){var t=ln?[io/ln,ao/ln]:je?[vr/je,gr/je]:sn?[ro/sn,oo/sn]:[NaN,NaN];return ro=oo=sn=vr=gr=je=io=ao=ln=0,t}};function xe(t,e){ro+=t,oo+=e,++sn}function bi(){Xt.point=ys}function ys(t,e){Xt.point=ws,xe(Qt=t,Jt=e)}function ws(t,e){var n=t-Qt,r=e-Jt,o=mt(n*n+r*r);vr+=o*(Qt+t)/2,gr+=o*(Jt+e)/2,je+=o,xe(Qt=t,Jt=e)}function ki(){Xt.point=xe}function _s(){Xt.point=Ss}function Es(){Pa($a,Ra)}function Ss(t,e){Xt.point=Pa,xe($a=Qt=t,Ra=Jt=e)}function Pa(t,e){var n=t-Qt,r=e-Jt,o=mt(n*n+r*r);vr+=o*(Qt+t)/2,gr+=o*(Jt+e)/2,je+=o,o=Jt*t-Qt*e,io+=o*(Qt+t),ao+=o*(Jt+e),ln+=o*3,xe(Qt=t,Jt=e)}function Ca(t){this._context=t}Ca.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e),this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,kt);break}}},result:lt};var uo=new Et,zr,Ta,za,cn,fn,Sn={point:lt,lineStart:function(){Sn.point=xs},lineEnd:function(){zr&&Oa(Ta,za),Sn.point=lt},polygonStart:function(){zr=!0},polygonEnd:function(){zr=null},result:function(){var t=+uo;return uo=new Et,t}};function xs(t,e){Sn.point=Oa,Ta=cn=t,za=fn=e}function Oa(t,e){cn-=t,fn-=e,uo.add(mt(cn*cn+fn*fn)),cn=t,fn=e}function La(){this._string=[]}La.prototype={_radius:4.5,_circle:Ni(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._string.push("M",t,",",e),this._point=1;break}case 1:{this._string.push("L",t,",",e);break}default:{this._circle==null&&(this._circle=Ni(this._radius)),this._string.push("M",t,",",e,this._circle);break}}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}else return null}};function Ni(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ia(t,e){var n=4.5,r,o;function i(a){return a&&(typeof n=="function"&&o.pointRadius(+n.apply(this,arguments)),Zt(a,r(o))),o.result()}return i.area=function(a){return Zt(a,r(ae)),ae.result()},i.measure=function(a){return Zt(a,r(Sn)),Sn.result()},i.bounds=function(a){return Zt(a,r(dr)),dr.result()},i.centroid=function(a){return Zt(a,r(Xt)),Xt.result()},i.projection=function(a){return arguments.length?(r=a==null?(t=null,_n):(t=a).stream,i):t},i.context=function(a){return arguments.length?(o=a==null?(e=null,new La):new Ca(e=a),typeof n!="function"&&o.pointRadius(n),i):e},i.pointRadius=function(a){return arguments.length?(n=typeof a=="function"?a:(o.pointRadius(+a),+a),i):n},i.projection(t).context(e)}
vendor: 4,455 bytes, line 1
1function Ms(t){return{stream:bn(t)}}function bn(t){return function(e){var n=new so;for(var r in t)n[r]=t[r];return n.stream=e,n}}function so(){}so.prototype={constructor:so,point:function(t,e){this.stream.point(t,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()}};function So(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Zt(n,t.stream(dr)),e(dr.result()),r!=null&&t.clipExtent(r),t}function Mr(t,e,n){return So(t,function(r){var o=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(o/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),u=+e[0][0]+(o-a*(r[1][0]+r[0][0]))/2,l=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([u,l])},n)}function xo(t,e,n){return Mr(t,[[0,0],e],n)}function Mo(t,e,n){return So(t,function(r){var o=+e,i=o/(r[1][0]-r[0][0]),a=(o-i*(r[1][0]+r[0][0]))/2,u=-i*r[0][1];t.scale(150*i).translate([a,u])},n)}function Ao(t,e,n){return So(t,function(r){var o=+e,i=o/(r[1][1]-r[0][1]),a=-i*r[0][0],u=(o-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,u])},n)}var $i=16,As=z(30*F);function Ri(t,e){return+e?ks(t,e):bs(t)}function bs(t){return bn({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function ks(t,e){function n(r,o,i,a,u,l,c,s,f,h,p,d,_,S){var w=c-r,x=s-o,m=w*w+x*x;if(m>4*e&&_--){var E=a+h,A=u+p,b=l+d,C=mt(E*E+A*A+b*b),I=$t(b/=C),X=V(V(b)-1)<D||V(i-f)<D?(i+f)/2:Nt(A,E),Z=t(X,I),L=Z[0],U=Z[1],H=L-r,v=U-o,g=x*H-w*v;(g*g/m>e||V((w*H+x*v)/m-.5)>.3||a*h+u*p+l*d<As)&&(n(r,o,i,a,u,l,L,U,X,E/=C,A/=C,b,_,S),S.point(L,U),n(L,U,X,E,A,b,c,s,f,h,p,d,_,S))}}return function(r){var o,i,a,u,l,c,s,f,h,p,d,_,S={point:w,lineStart:x,lineEnd:E,polygonStart:function(){r.polygonStart(),S.lineStart=A},polygonEnd:function(){r.polygonEnd(),S.lineStart=x}};function w(I,X){I=t(I,X),r.point(I[0],I[1])}function x(){f=NaN,S.point=m,r.lineStart()}function m(I,X){var Z=Se([I,X]),L=t(I,X);n(f,h,s,p,d,_,f=L[0],h=L[1],s=I,p=Z[0],d=Z[1],_=Z[2],$i,r),r.point(f,h)}function E(){S.point=w,r.lineEnd()}function A(){x(),S.point=b,S.lineEnd=C}function b(I,X){m(o=I,X),i=f,a=h,u=p,l=d,c=_,S.point=m}function C(){n(f,h,s,p,d,_,i,a,o,u,l,c,$i,r),S.lineEnd=E,E()}return S}}var Ns=bn({point:function(t,e){this.stream.point(t*F,e*F)}});function $s(t){return bn({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}function Rs(t,e,n,r,o){function i(a,u){return a*=r,u*=o,[e+t*a,n-t*u]}return i.invert=function(a,u){return[(a-e)/t*r,(n-u)/t*o]},i}function Pi(t,e,n,r,o,i){if(!i)return Rs(t,e,n,r,o);var a=z(i),u=T(i),l=a*t,c=u*t,s=a/t,f=u/t,h=(u*n-a*e)/t,p=(u*e+a*n)/t;function d(_,S){return _*=r,S*=o,[l*_-c*S+e,n-c*_-l*S]}return d.invert=function(_,S){return[r*(s*_-f*S+h),o*(p-f*_-s*S)]},d}function ee(t){return bo(function(){return t})()}function bo(t){var e,n=150,r=480,o=250,i=0,a=0,u=0,l=0,c=0,s,f=0,h=1,p=1,d=null,_=Kr,S=null,w,x,m,E=_n,A=.5,b,C,I,X,Z;function L(g){return I(g[0]*F,g[1]*F)}function U(g){return g=I.invert(g[0],g[1]),g&&[g[0]*ot,g[1]*ot]}L.stream=function(g){return X&&Z===g?X:X=Ns($s(s)(_(b(E(Z=g)))))},L.preclip=function(g){return arguments.length?(_=g,d=void 0,v()):_},L.postclip=function(g){return arguments.length?(E=g,S=w=x=m=null,v()):E},L.clipAngle=function(g){return arguments.length?(_=+g?xa(d=g*F):(d=null,Kr),v()):d*ot},L.clipExtent=function(g){return arguments.length?(E=g==null?(S=w=x=m=null,_n):xr(S=+g[0][0],w=+g[0][1],x=+g[1][0],m=+g[1][1]),v()):S==null?null:[[S,w],[x,m]]},L.scale=function(g){return arguments.length?(n=+g,H()):n},L.translate=function(g){return arguments.length?(r=+g[0],o=+g[1],H()):[r,o]},L.center=function(g){return arguments.length?(i=g[0]%360*F,a=g[1]%360*F,H()):[i*ot,a*ot]},L.rotate=function(g){return arguments.length?(u=g[0]%360*F,l=g[1]%360*F,c=g.length>2?g[2]%360*F:0,H()):[u*ot,l*ot,c*ot]},L.angle=function(g){return arguments.length?(f=g%360*F,H()):f*ot},L.reflectX=function(g){return arguments.length?(h=g?-1:1,H()):h<0},L.reflectY=function(g){return arguments.length?(p=g?-1:1,H()):p<0},L.precision=function(g){return arguments.length?(b=Ri(C,A=g*g),v()):mt(A)},L.fitExtent=function(g,y){return Mr(L,g,y)},L.fitSize=function(g,y){return xo(L,g,y)},L.fitWidth=function(g,y){return Mo(L,g,y)},L.fitHeight=function(g,y){return Ao(L,g,y)};function H(){var g=Pi(n,0,0,h,p,f).apply(null,e(i,a)),y=Pi(n,r-g[0],o-g[1],h,p,f);
vendor: 2,259 bytes, line 1
1return s=_o(u,l,c),C=Ur(e,y),I=Ur(s,C),b=Ri(C,A),v()}function v(){return X=Z=null,L}return function(){return e=t.apply(this,arguments),L.invert=e.invert&&U,H()}}function ko(t){var e=0,n=W/3,r=bo(t),o=r(e,n);return o.parallels=function(i){return arguments.length?r(e=i[0]*F,n=i[1]*F):[e*ot,n*ot]},o}function Ps(t){var e=z(t);function n(r,o){return[r*e,T(o)/e]}return n.invert=function(r,o){return[r/e,$t(o*e)]},n}function ja(t,e){var n=T(t),r=(n+T(e))/2;if(V(r)<D)return Ps(t);var o=1+n*(2*r-n),i=mt(o)/r;function a(u,l){var c=mt(o-2*r*T(l))/r;return[c*T(u*=r),i-c*z(u)]}return a.invert=function(u,l){var c=i-l,s=Nt(u,V(c))*Gt(c);return c*r<0&&(s-=W*Gt(u)*Gt(c)),[s/r,$t((o-(u*u+c*c)*r*r)/(2*r))]},a}function mr(){return ko(ja).scale(155.424).center([0,33.6442])}function Da(){return mr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Cs(t){var e=t.length;return{point:function(n,r){for(var o=-1;++o<e;)t[o].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function Ts(){var t,e,n=Da(),r,o=mr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),i,a=mr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u,l,c={point:function(h,p){l=[h,p]}};function s(h){var p=h[0],d=h[1];return l=null,r.point(p,d),l||(i.point(p,d),l)||(u.point(p,d),l)}s.invert=function(h){var p=n.scale(),d=n.translate(),_=(h[0]-d[0])/p,S=(h[1]-d[1])/p;return(S>=.12&&S<.234&&_>=-.425&&_<-.214?o:S>=.166&&S<.234&&_>=-.214&&_<-.115?a:n).invert(h)},s.stream=function(h){return t&&e===h?t:t=Cs([n.stream(e=h),o.stream(h),a.stream(h)])},s.precision=function(h){return arguments.length?(n.precision(h),o.precision(h),a.precision(h),f()):n.precision()},s.scale=function(h){return arguments.length?(n.scale(h),o.scale(h*.35),a.scale(h),s.translate(n.translate())):n.scale()},s.translate=function(h){if(!arguments.length)return n.translate();var p=n.scale(),d=+h[0],_=+h[1];return r=n.translate(h).clipExtent([[d-.455*p,_-.238*p],[d+.455*p,_+.238*p]]).stream(c),i=o.translate([d-.307
vendor: 8,699 bytes, line 1
1*p,_+.201*p]).clipExtent([[d-.425*p+D,_+.12*p+D],[d-.214*p-D,_+.234*p-D]]).stream(c),u=a.translate([d-.205*p,_+.212*p]).clipExtent([[d-.214*p+D,_+.166*p+D],[d-.115*p-D,_+.234*p-D]]).stream(c),f()},s.fitExtent=function(h,p){return Mr(s,h,p)},s.fitSize=function(h,p){return xo(s,h,p)},s.fitWidth=function(h,p){return Mo(s,h,p)},s.fitHeight=function(h,p){return Ao(s,h,p)};function f(){return t=e=null,s}return s.scale(1070)}function Fa(t){return function(e,n){var r=z(e),o=z(n),i=t(r*o);return i===1/0?[2,0]:[i*o*T(e),i*T(n)]}}function kn(t){return function(e,n){var r=mt(e*e+n*n),o=t(r),i=T(o),a=z(o);return[Nt(e*i,r*a),$t(r&&n*i/r)]}}var No=Fa(function(t){return mt(2/(1+t))});No.invert=kn(function(t){return 2*$t(t/2)});function zs(){return ee(No).scale(124.75).clipAngle(180-.001)}var $o=Fa(function(t){return(t=aa(t))&&t/T(t)});$o.invert=kn(function(t){return t});function Os(){return ee($o).scale(79.4188).clipAngle(180-.001)}function Nn(t,e){return[t,Hn(yo((ht+e)/2))]}Nn.invert=function(t,e){return[t,2*Ze(ia(e))-ht]};function Ls(){return qa(Nn).scale(961/kt)}function qa(t){var e=ee(t),n=e.center,r=e.scale,o=e.translate,i=e.clipExtent,a=null,u,l,c;e.scale=function(f){return arguments.length?(r(f),s()):r()},e.translate=function(f){return arguments.length?(o(f),s()):o()},e.center=function(f){return arguments.length?(n(f),s()):n()},e.clipExtent=function(f){return arguments.length?(f==null?a=u=l=c=null:(a=+f[0][0],u=+f[0][1],l=+f[1][0],c=+f[1][1]),s()):a==null?null:[[a,u],[l,c]]};function s(){var f=W*r(),h=e(ma(e.rotate()).invert([0,0]));return i(a==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:t===Nn?[[Math.max(h[0]-f,a),u],[Math.min(h[0]+f,l),c]]:[[a,Math.max(h[1]-f,u)],[l,Math.min(h[1]+f,c)]])}return s()}function qn(t){return yo((ht+t)/2)}function Ba(t,e){var n=z(t),r=t===e?T(t):Hn(n/z(e))/Hn(qn(e)/qn(t)),o=n*Rr(qn(t),r)/r;if(!r)return Nn;function i(a,u){o>0?u<-ht+D&&(u=-ht+D):u>ht-D&&(u=ht-D);var l=o/Rr(qn(u),r);return[l*T(r*a),o-l*z(r*a)]}return i.invert=function(a,u){var l=o-u,c=Gt(r)*mt(a*a+l*l),s=Nt(a,V(l))*Gt(l);return l*r<0&&(s-=W*Gt(a)*Gt(l)),[s/r,2*Ze(Rr(o/c,1/r))-ht]},i}function Is(){return ko(Ba).scale(109.5).parallels([30,30])}function xn(t,e){return[t,e]}xn.invert=xn;function js(){return ee(xn).scale(152.63)}function Xa(t,e){var n=z(t),r=t===e?T(t):(n-z(e))/(e-t),o=n/r+t;if(V(r)<D)return xn;function i(a,u){var l=o-u,c=r*a;return[l*T(c),o-l*z(c)]}return i.invert=function(a,u){var l=o-u,c=Nt(a,V(l))*Gt(l);return l*r<0&&(c-=W*Gt(a)*Gt(l)),[c/r,o-Gt(r)*mt(a*a+l*l)]},i}function Ds(){return ko(Xa).scale(131.154).center([0,13.9389])}var vn=1.340264,gn=-.081106,mn=893e-6,yn=.003796,yr=mt(3)/2,Fs=12;function Ro(t,e){var n=$t(yr*T(e)),r=n*n,o=r*r*r;return[t*z(n)/(yr*(vn+3*gn*r+o*(7*mn+9*yn*r))),n*(vn+gn*r+o*(mn+yn*r))]}Ro.invert=function(t,e){for(var n=e,r=n*n,o=r*r*r,i=0,a,u,l;i<Fs&&(u=n*(vn+gn*r+o*(mn+yn*r))-e,l=vn+3*gn*r+o*(7*mn+9*yn*r),n-=a=u/l,r=n*n,o=r*r*r,!(V(a)<wn));++i);return[yr*t*(vn+3*gn*r+o*(7*mn+9*yn*r))/z(n),$t(T(n)/yr)]};function qs(){return ee(Ro).scale(177.158)}function Po(t,e){var n=z(e),r=z(t)*n;return[n*T(t)/r,T(e)/r]}Po.invert=kn(Ze);function Bs(){return ee(Po).scale(144.049).clipAngle(60)}function Xs(){var t=1,e=0,n=0,r=1,o=1,i=0,a,u,l=null,c,s,f,h=1,p=1,d=bn({point:function(E,A){var b=m([E,A]);this.stream.point(b[0],b[1])}}),_=_n,S,w;function x(){return h=t*r,p=t*o,S=w=null,m}function m(E){var A=E[0]*h,b=E[1]*p;if(i){var C=b*a-A*u;A=A*a+b*u,b=C}return[A+e,b+n]}return m.invert=function(E){var A=E[0]-e,b=E[1]-n;if(i){var C=b*a+A*u;A=A*a-b*u,b=C}return[A/h,b/p]},m.stream=function(E){return S&&w===E?S:S=d(_(w=E))},m.postclip=function(E){return arguments.length?(_=E,l=c=s=f=null,x()):_},m.clipExtent=function(E){return arguments.length?(_=E==null?(l=c=s=f=null,_n):xr(l=+E[0][0],c=+E[0][1],s=+E[1][0],f=+E[1][1]),x()):l==null?null:[[l,c],[s,f]]},m.scale=function(E){return arguments.length?(t=+E,x()):t},m.translate=function(E){return arguments.length?(e=+E[0],n=+E[1],x()):[e,n]},m.angle=function(E){return arguments.length?(i=E%360*F,u=T(i),a=z(i),x()):i*ot},m.reflectX=function(E){return arguments.length?(r=E?-1:1,x()):r<0},m.reflectY=function(E){return arguments.length?(o=E?-1:1,x()):o<0},m.fitExtent=function(E,A){return Mr(m,E,A)},m.fitSize=function(E,A){return xo(m,E,A)},m.fitWidth=function(E,A){return Mo(m,E,A)},m.fitHeight=function(E,A){return Ao(m,E,A)},m}function Co(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),e*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}Co.invert=function(t,e){var n=e,r=25,o;do{var i=n*n,a=i*i;n-=o=(n*(1.007226+i*(.015085+a*(-.044475+.028874*i-.005916*a)))-e)/(1.007226+i*(.015085*3+a*(-.044475*7+.028874*9*i-.005916*11*a)))}while(V(o)>D&&--r>0);return[t/(.8707+(i=n*n)*(-.131979+i*(-.013791+i*i*i*(.003971-.001529*i)))),n]};function Gs(){return ee(Co).scale(175.295)}function To(t,e){return[z(e)*T(t),T(e)]}To.invert=kn($t);function Ys(){return ee(To).scale(249.5).clipAngle(90+D)}function zo(t,e){var n=z(e),r=1+z(t)*n;return[n*T(t)/r,T(e)/r]}zo.invert=kn(function(t){return 2*Ze(t)});function Zs(){return ee(zo).scale(250).clipAngle(142)}function Oo(t,e){return[Hn(yo((ht+e)/2)),-t]}Oo.invert=function(t,e){return[-e,2*Ze(ia(t))-ht]};function Ws(){var t=qa(Oo),e=t.center,n=t.rotate;return t.center=function(r){return arguments.length?e([-r[1],r[0]]):(r=e(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}const Us=Object.freeze(Object.defineProperty({__proto__:null,geoAlbers:Da,geoAlbersUsa:Ts,geoArea:Fu,geoAzimuthalEqualArea:zs,geoAzimuthalEqualAreaRaw:No,geoAzimuthalEquidistant:Os,geoAzimuthalEquidistantRaw:$o,geoBounds:Gu,geoCentroid:Ku,geoCircle:Hu,geoClipAntimeridian:Kr,geoClipCircle:xa,geoClipExtent:os,geoClipRectangle:xr,geoConicConformal:Is,geoConicConformalRaw:Ba,geoConicEqualArea:mr,geoConicEqualAreaRaw:ja,geoConicEquidistant:Ds,geoConicEquidistantRaw:Xa,geoContains:fs,geoDistance:cr,geoEqualEarth:qs,geoEqualEarthRaw:Ro,geoEquirectangular:js,geoEquirectangularRaw:xn,geoGnomonic:Bs,geoGnomonicRaw:Po,geoGraticule:Eo,geoGraticule10:hs,geoIdentity:Xs,geoInterpolate:ps,geoLength:Ma,geoMercator:Ls,geoMercatorRaw:Nn,geoNaturalEarth1:Gs,geoNaturalEarth1Raw:Co,geoOrthographic:Ys,geoOrthographicRaw:To,geoPath:Ia,geoProjection:ee,geoProjectionMutator:bo,geoRotation:ma,geoStereographic:Zs,geoStereographicRaw:zo,geoStream:Zt,geoTransform:Ms,geoTransverseMercator:Ws,geoTransverseMercatorRaw:Oo},Symbol.toStringTag,{value:"Module"}));function Vs(t){return t}function Ks(t){if(t==null)return Vs;var e,n,r=t.scale[0],o=t.scale[1],i=t.translate[0],a=t.translate[1];return function(u,l){l||(e=n=0);var c=2,s=u.length,f=new Array(s);for(f[0]=(e+=u[0])*r+i,f[1]=(n+=u[1])*o+a;c<s;)f[c]=u[c],++c;return f}}function Hs(t,e){for(var n,r=t.length,o=r-e;o<--r;)n=t[o],t[o++]=t[r],t[r]=n}function Qs(t,e){return typeof e=="string"&&(e=t.objects[e]),e.type==="GeometryCollection"?{type:"FeatureCollection",features:e.geometries.map(function(n){return Ci(t,n)})}:Ci(t,e)}function Ci(t,e){var n=e.id,r=e.bbox,o=e.properties==null?{}:e.properties,i=Ga(t,e);return n==null&&r==null?{type:"Feature",properties:o,geometry:i}:r==null?{type:"Feature",id:n,properties:o,geometry:i}:{type:"Feature",id:n,bbox:r,properties:o,geometry:i}}function Ga(t,e){var n=Ks(t.transform),r=t.arcs;function o(s,f){f.length&&f.pop();for(var h=r[s<0?~s:s],p=0,d=h.length;p<d;++p)f.push(n(h[p],p));s<0&&Hs(f,d)}function i(s){return n(s)}function a(s){for(var f=[],h=0,p=s.length;h<p;++h)o(s[h],f);return f.length<2&&f.push(f[0]),f}function u(s){for(var f=a(s);f.length<4;)f.push(f[0]);return f}function l(s){return s.map(u)}function c(s){var f=s.type,h;switch(f){case"GeometryCollection":return{type:f,geometries:s.geometries.map(c)};case"Point":h=i(s.coordinates);break;case"MultiPoint":h=s.coordinates.map(i);break;case"LineString":h=a(s.arcs);break;case"MultiLineString":h=s.arcs.map(a);break;case"Polygon":h=l(s.arcs);break;case"MultiPolygon":h=s.arcs.map(l);break;default:return null}return{type:f,coordinates:h}}return c(e)}function Js(t,e){var n={},r={},o={},i=[],a=-1;e.forEach(function(c,s){var f=t.arcs[c<0?~c:c],h;f.length<3&&!f[1][0]&&!f[1][1]&&(h=e[++a],e[a]=c,e[s]=h)}),e.forEach(function(c){var s=u(c),f=s[0],h=s[1],p,d;if(p=o[f])if(delete o[p.end],p.push(c),p.end=h,d=r[h]){delete r[d.start];var _=d===p?p:p.concat(d);r[_.start=p.start]=o[_.end=d.end]=_}else r[p.start]=o[p.end]=p;else if(p=r[h])if(delete r[p.start],p.unshift(c),p.start=f,d=o[f]){delete o[d.end];var S=d===p?p:d.concat(p);r[S.start=d.start]=o[S.end=p.end]=S}else r[p.start]=o[p.end]=p;else p=[c],r[p.start=f]=o[p.end=h]=p});function u(c){var s=t.arcs[c<0?~c:c],f=s[0],h;
1return t.transform?(h=[0,0],s.forEach(function(p){h[0]+=p[0],h[1]+=p[1]})):h=s[s.length-1],c<0?[h,f]:[f,h]}function l(c,s){for(var f in c){var h=c[f];delete s[h.start],delete h.start,delete h.end,h.forEach(function(p){n[p<0?~p:p]=1}),i.push(h)}}return l(o,r),l(r,o),e.forEach(function(c){n[c<0?~c:c]||i.push([c])}),i}function Ti(t){return Ga(t,tl.apply(this,arguments))}function tl(t,e,n){var r,o,i;if(arguments.length>1)r=el(t,e,n);else for(o=0,r=new Array(i=t.arcs.length);o<i;++o)r[o]=o;return{type:"MultiLineString",arcs:Js(t,r)}}function el(t,e,n){var r=[],o=[],i;function a(f){var h=f<0?~f:f;(o[h]||(o[h]=[])).push({i:f,g:i})}function u(f){f.forEach(a)}function l(f){f.forEach(u)}function c(f){f.forEach(l)}function s(f){switch(i=f,f.type){case"GeometryCollection":f.geometries.forEach(s);break;case"LineString":u(f.arcs);break;case"MultiLineString":case"Polygon":l(f.arcs);break;case"MultiPolygon":c(f.arcs);break}}return s(e),o.forEach(n==null?function(f){r.push(f[0].i)}:function(f){n(f[0].g,f[f.length-1].g)&&r.push(f[0].i)}),r}var nl={value:()=>{}};function Lo(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Zn(n)}function Zn(t){this._=t}function rl(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Zn.prototype=Lo.prototype={constructor:Zn,on:function(t,e){var n=this._,r=rl(t+"",n),o,i=-1,a=r.length;if(arguments.length<2){for(;++i<a;)if((o=(t=r[i]).type)&&(o=ol(n[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++i<a;)if(o=(t=r[i]).type)n[o]=zi(n[o],t.name,e);else if(e==null)for(o in n)n[o]=zi(n[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Zn(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};function ol(t,e){for(var n=0,r=t.length,o;n<r;++n)if((o=t[n]).name===e)return o.value}function zi(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=nl,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var lo="http://www.w3.org/1999/xhtml";const Oi={svg:"http://www.w3.org/2000/svg",xhtml:lo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ar(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Oi.hasOwnProperty(e)?{space:Oi[e],local:t}:t}function il(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===lo&&e.documentElement.namespaceURI===lo?e.createElement(t):e.createElementNS(n,t)}}function al(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ya(t){var e=Ar(t);return(e.local?al:il)(e)}function ul(){}function Io(t){return t==null?ul:function(){return this.querySelector(t)}}function sl(t){typeof t!="function"&&(t=Io(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],a=i.length,u=r[o]=new Array(a),l,c,s=0;s<a;++s)(l=i[s])&&(c=t.call(l,l.__data__,s,i))&&("__data__"in l&&(c.__data__=l.__data__),u[s]=c);return new zt(r,this._parents)}function Za(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ll(){return[]}function Wa(t){return t==null?ll:function(){return this.querySelectorAll(t)}}function cl(t){return function(){var e=t.apply(this,arguments);return e==null?[]:Za(e)}}function fl(t){typeof t=="function"?t=cl(t):t=Wa(t);for(var e=this._groups,n=e.length,r=[],o=[],i=0;i<n;++i)for(var a=e[i],u=a.length,l,c=0;c<u;++c)(l=a[c])&&(r.push(t.call(l,l.__data__,c,a)),o.push(l));return new zt(r,o)}function Ua(t){return function(){return this.matches(t)}}function Va(t){return function(e){return e.matches(t)}}var hl=Array.prototype.find;function pl(t){return function(){return hl.call(this.children,t)}}function dl(){return this.firstElementChild}function vl(t){return this.select(t==null?dl:pl(typeof t=="function"?t:Va(t)))}var gl=Array.prototype.filter;function ml(){return this.children}function yl(t){return function(){return gl.call(this.children,t)}}function wl(t){return this.selectAll(t==null?ml:yl(typeof t=="function"?t:Va(t)))}function _l(t){typeof t!="function"&&(t=Ua(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;
vendor: 5,852 bytes, line 1
1++o)for(var i=e[o],a=i.length,u=r[o]=[],l,c=0;c<a;++c)(l=i[c])&&t.call(l,l.__data__,c,i)&&u.push(l);return new zt(r,this._parents)}function Ka(t){return new Array(t.length)}function El(){return new zt(this._enter||this._groups.map(Ka),this._parents)}function wr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}wr.prototype={constructor:wr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Sl(t){return function(){return t}}function xl(t,e,n,r,o,i){for(var a=0,u,l=e.length,c=i.length;a<c;++a)(u=e[a])?(u.__data__=i[a],r[a]=u):n[a]=new wr(t,i[a]);for(;a<l;++a)(u=e[a])&&(o[a]=u)}function Ml(t,e,n,r,o,i,a){var u,l,c=new Map,s=e.length,f=i.length,h=new Array(s),p;for(u=0;u<s;++u)(l=e[u])&&(h[u]=p=a.call(l,l.__data__,u,e)+"",c.has(p)?o[u]=l:c.set(p,l));for(u=0;u<f;++u)p=a.call(t,i[u],u,i)+"",(l=c.get(p))?(r[u]=l,l.__data__=i[u],c.delete(p)):n[u]=new wr(t,i[u]);for(u=0;u<s;++u)(l=e[u])&&c.get(h[u])===l&&(o[u]=l)}function Al(t){return t.__data__}function bl(t,e){if(!arguments.length)return Array.from(this,Al);var n=e?Ml:xl,r=this._parents,o=this._groups;typeof t!="function"&&(t=Sl(t));for(var i=o.length,a=new Array(i),u=new Array(i),l=new Array(i),c=0;c<i;++c){var s=r[c],f=o[c],h=f.length,p=Za(t.call(s,s&&s.__data__,c,r)),d=p.length,_=u[c]=new Array(d),S=a[c]=new Array(d),w=l[c]=new Array(h);n(s,f,_,S,w,p,e);for(var x=0,m=0,E,A;x<d;++x)if(E=_[x]){for(x>=m&&(m=x+1);!(A=S[m])&&++m<d;);E._next=A||null}}return a=new zt(a,r),a._enter=u,a._exit=l,a}function kl(){return new zt(this._exit||this._groups.map(Ka),this._parents)}function Nl(t,e,n){var r=this.enter(),o=this,i=this.exit();return r=typeof t=="function"?t(r):r.append(t+""),e!=null&&(o=e(o)),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function $l(t){if(!(t instanceof zt))throw new Error("invalid merge");for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=new Array(r),u=0;u<i;++u)for(var l=e[u],c=n[u],s=l.length,f=a[u]=new Array(s),h,p=0;p<s;++p)(h=l[p]||c[p])&&(f[p]=h);for(;u<r;++u)a[u]=e[u];return new zt(a,this._parents)}function Rl(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],o=r.length-1,i=r[o],a;--o>=0;)(a=r[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function Pl(t){t||(t=Cl);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a=n[i],u=a.length,l=o[i]=new Array(u),c,s=0;s<u;++s)(c=a[s])&&(l[s]=c);l.sort(e)}return new zt(o,this._parents).order()}function Cl(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Tl(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function zl(){return Array.from(this)}function Ol(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null}function Ll(){let t=0;for(const e of this)++t;return t}function Il(){return!this.node()}function jl(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o=e[n],i=0,a=o.length,u;i<a;++i)(u=o[i])&&t.call(u,u.__data__,i,o);return this}function Dl(t){return function(){this.removeAttribute(t)}}function Fl(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ql(t,e){return function(){this.setAttribute(t,e)}}function Bl(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Xl(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Gl(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Yl(t,e){var n=Ar(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Fl:Dl:typeof e=="function"?n.local?Gl:Xl:n.local?Bl:ql)(n,e))}function Ha(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Zl(t){return function(){this.style.removeProperty(t)}}function Wl(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ul(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Vl(t,e,n){return arguments.length>1?this.each((e==null?Zl:typeof e=="function"?Ul:Wl)(t,e,n??"")):Ge(this.node(),t)}function Ge(t,e){return t.style.getPropertyValue(e)||Ha(t).getComputedStyle(t,null).getPropertyValue(e)}function Kl(t){return function(){delete this[t]}}function Hl(t,e){return function(){this[t]=e}}function Ql(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Jl(t,e){return arguments.length>1?this.each((e==null?Kl:typeof e=="function"?Ql:Hl)(t,e)):this.node()[t]}function Qa(t){return t.trim().split(/^|\s+/)}function jo(t){return t.classList||new Ja(t)}function Ja(t){this._node=t,this._names=Qa(t.getAttribute("class")||"")}Ja.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function tu(t,e){for(var n=jo(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function eu(t,e){for(var n=jo(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function tc(t){return function(){tu(this,t)}}function ec(t){return function(){eu(this,t)}}function nc(t,e){return function(){(e.apply(this,arguments)?tu:eu)(this,t)}}function rc(t,e){var n=Qa(t+"");
vendor: 6,053 bytes, line 1
1if(arguments.length<2){for(var r=jo(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof e=="function"?nc:e?tc:ec)(n,e))}function oc(){this.textContent=""}function ic(t){return function(){this.textContent=t}}function ac(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function uc(t){return arguments.length?this.each(t==null?oc:(typeof t=="function"?ac:ic)(t)):this.node().textContent}function sc(){this.innerHTML=""}function lc(t){return function(){this.innerHTML=t}}function cc(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function fc(t){return arguments.length?this.each(t==null?sc:(typeof t=="function"?cc:lc)(t)):this.node().innerHTML}function hc(){this.nextSibling&&this.parentNode.appendChild(this)}function pc(){return this.each(hc)}function dc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vc(){return this.each(dc)}function gc(t){var e=typeof t=="function"?t:Ya(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function mc(){return null}function yc(t,e){var n=typeof t=="function"?t:Ya(t),r=e==null?mc:typeof e=="function"?e:Io(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function wc(){var t=this.parentNode;t&&t.removeChild(this)}function _c(){return this.each(wc)}function Ec(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Sc(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xc(t){return this.select(t?Sc:Ec)}function Mc(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Ac(t){return function(e){t.call(this,e,this.__data__)}}function bc(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function kc(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,o=e.length,i;n<o;++n)i=e[n],(!t.type||i.type===t.type)&&i.name===t.name?this.removeEventListener(i.type,i.listener,i.options):e[++r]=i;++r?e.length=r:delete this.__on}}}function Nc(t,e,n){return function(){var r=this.__on,o,i=Ac(e);if(r){for(var a=0,u=r.length;a<u;++a)if((o=r[a]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=e;return}}this.addEventListener(t.type,i,n),o={type:t.type,name:t.name,value:e,listener:i,options:n},r?r.push(o):this.__on=[o]}}function $c(t,e,n){var r=bc(t+""),o,i=r.length,a;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,c=u.length,s;l<c;++l)for(o=0,s=u[l];o<i;++o)if((a=r[o]).type===s.type&&a.name===s.name)return s.value}return}for(u=e?Nc:kc,o=0;o<i;++o)this.each(u(r[o],e,n));return this}function nu(t,e,n){var r=Ha(t),o=r.CustomEvent;typeof o=="function"?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function Rc(t,e){return function(){return nu(this,t,e)}}function Pc(t,e){return function(){return nu(this,t,e.apply(this,arguments))}}function Cc(t,e){return this.each((typeof e=="function"?Pc:Rc)(t,e))}function*Tc(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length,a;o<i;++o)(a=r[o])&&(yield a)}var ru=[null];function zt(t,e){this._groups=t,this._parents=e}function $n(){return new zt([[document.documentElement]],ru)}function zc(){return this}zt.prototype=$n.prototype={constructor:zt,select:sl,selectAll:fl,selectChild:vl,selectChildren:wl,filter:_l,data:bl,enter:El,exit:kl,join:Nl,merge:$l,selection:zc,order:Rl,sort:Pl,call:Tl,nodes:zl,node:Ol,size:Ll,empty:Il,each:jl,attr:Yl,style:Vl,property:Jl,classed:rc,text:uc,html:fc,raise:pc,lower:vc,append:gc,insert:yc,remove:_c,clone:xc,datum:Mc,on:$c,dispatch:Cc,[Symbol.iterator]:Tc};function ue(t){return typeof t=="string"?new zt([[document.querySelector(t)]],[document.documentElement]):new zt([[t]],ru)}function Oc(t){let e;for(;e=t.sourceEvent;)t=e;return t}function ye(t,e){if(t=Oc(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}function co(t){t.preventDefault(),t.stopImmediatePropagation()}function Lc(t){var e=t.document.documentElement,n=ue(t).on("dragstart.drag",co,!0);"onselectstart"in e?n.on("selectstart.drag",co,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Ic(t,e){var n=t.document.documentElement,r=ue(t).on("dragstart.drag",null);e&&(r.on("click.drag",co,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Ye=0,hn=0,rn=0,ou=1e3,_r,pn,Er=0,Me=0,br=0,Mn=typeof performance=="object"&&performance.now?performance:Date,iu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Do(){return Me||(iu(jc),Me=Mn.now()+br)}function jc(){Me=0}function Sr(){this._call=this._time=this._next=null}Sr.prototype=au.prototype={constructor:Sr,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Do():+n)+(e==null?0:+e),!this._next&&pn!==this&&(pn?pn._next=this:_r=this,pn=this),this._call=t,this._time=n,fo()},stop:function(){this._call&&(this._call=null,this._time=1/0,fo())}};function au(t,e,n){var r=new Sr;return r.restart(t,e,n),r}function Dc(){Do(),++Ye;for(var t=_r,e;t;)(e=Me-t._time)>=0&&t._call.call(null,e),t=t._next;--Ye}function Li(){Me=(Er=Mn.now())+br,Ye=hn=0;try{Dc()}finally{Ye=0,qc(),Me=0}}function Fc(){var t=Mn.now(),e=t-Er;e>ou&&(br-=e,Er=t)}
vendor: 5,981 bytes, line 1
1function qc(){for(var t,e=_r,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:_r=n);pn=t,fo(r)}function fo(t){if(!Ye){hn&&(hn=clearTimeout(hn));var e=t-Me;e>24?(t<1/0&&(hn=setTimeout(Li,t-Mn.now()-br)),rn&&(rn=clearInterval(rn))):(rn||(Er=Mn.now(),rn=setInterval(Fc,ou)),Ye=1,iu(Li))}}function Ii(t,e,n){var r=new Sr;return e=e==null?0:+e,r.restart(o=>{r.stop(),t(o+e)},e,n),r}var Bc=Lo("start","end","cancel","interrupt"),Xc=[],uu=0,ji=1,ho=2,Wn=3,Di=4,po=5,Un=6;function kr(t,e,n,r,o,i){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;Gc(t,n,{name:e,index:r,group:o,on:Bc,tween:Xc,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:uu})}function Fo(t,e){var n=Ut(t,e);if(n.state>uu)throw new Error("too late; already scheduled");return n}function ne(t,e){var n=Ut(t,e);if(n.state>Wn)throw new Error("too late; already running");return n}function Ut(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Gc(t,e,n){var r=t.__transition,o;r[e]=n,n.timer=au(i,0,n.time);function i(c){n.state=ji,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var s,f,h,p;if(n.state!==ji)return l();for(s in r)if(p=r[s],p.name===n.name){if(p.state===Wn)return Ii(a);p.state===Di?(p.state=Un,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[s]):+s<e&&(p.state=Un,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[s])}if(Ii(function(){n.state===Wn&&(n.state=Di,n.timer.restart(u,n.delay,n.time),u(c))}),n.state=ho,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ho){for(n.state=Wn,o=new Array(h=n.tween.length),s=0,f=-1;s<h;++s)(p=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(o[++f]=p);o.length=f+1}}function u(c){for(var s=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=po,1),f=-1,h=o.length;++f<h;)o[f].call(t,s);n.state===po&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Un,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function Vn(t,e){var n=t.__transition,r,o,i=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){i=!1;continue}o=r.state>ho&&r.state<po,r.state=Un,r.timer.stop(),r.on.call(o?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}i&&delete t.__transition}}function Yc(t){return this.each(function(){Vn(this,t)})}function Zc(t,e){var n,r;return function(){var o=ne(this,t),i=o.tween;if(i!==n){r=n=i;for(var a=0,u=r.length;a<u;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}o.tween=r}}function Wc(t,e,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=ne(this,t),a=i.tween;if(a!==r){o=(r=a).slice();for(var u={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=u;break}l===c&&o.push(u)}i.tween=o}}function Uc(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=Ut(this.node(),n).tween,o=0,i=r.length,a;o<i;++o)if((a=r[o]).name===t)return a.value;return null}return this.each((e==null?Zc:Wc)(n,t,e))}function qo(t,e,n){var r=t._id;return t.each(function(){var o=ne(this,r);(o.value||(o.value={}))[e]=n.apply(this,arguments)}),function(o){return Ut(o,r).value[e]}}function su(t,e){var n;return(typeof e=="number"?_e:e instanceof ei?ni:(n=ei(e))?(e=n,ni):ku)(t,e)}function Vc(t){return function(){this.removeAttribute(t)}}function Kc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Hc(t,e,n){var r,o=n+"",i;return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function Qc(t,e,n){var r,o=n+"",i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Jc(t,e,n){var r,o,i;return function(){var a,u=n(this),l;return u==null?void this.removeAttribute(t):(a=this.getAttribute(t),l=u+"",a===l?null:a===r&&l===o?i:(o=l,i=e(r=a,u)))}}function tf(t,e,n){var r,o,i;return function(){var a,u=n(this),l;return u==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),l=u+"",a===l?null:a===r&&l===o?i:(o=l,i=e(r=a,u)))}}function ef(t,e){var n=Ar(t),r=n==="transform"?Cu:su;return this.attrTween(t,typeof e=="function"?(n.local?tf:Jc)(n,r,qo(this,"attr."+t,e)):e==null?(n.local?Kc:Vc)(n):(n.local?Qc:Hc)(n,r,e))}function nf(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function rf(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function of(t,e){var n,r;function o(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&rf(t,i)),n}return o._value=e,o}function af(t,e){var n,r;function o(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&nf(t,i)),n}return o._value=e,o}function uf(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Ar(t);return this.tween(n,(r.local?of:af)(r,e))}function sf(t,e){return function(){Fo(this,t).delay=+e.apply(this,arguments)}}function lf(t,e){return e=+e,function(){Fo(this,t).delay=e}}function cf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?sf:lf)(e,t)):Ut(this.node(),e).delay}function ff(t,e){return function(){ne(this,t).duration=+e.apply(this,arguments)}}function hf(t,e){return e=+e,function(){ne(this,t).duration=e}}function pf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ff:hf)(e,t)):Ut(this.node(),e).duration}function df(t,e){if(typeof e!="function")throw new Error;return function(){ne(this,t).ease=e}}function vf(t){var e=this._id;return arguments.length?this.each(df(e,t)):Ut(this.node(),e).ease}function gf(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;ne(this,t).ease=n}}function mf(t){if(typeof t!="function")throw new Error;return this.each(gf(this._id,t))}function yf(t){typeof t!="function"&&(t=Ua(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;
vendor: 4,561 bytes, line 1
1++o)for(var i=e[o],a=i.length,u=r[o]=[],l,c=0;c<a;++c)(l=i[c])&&t.call(l,l.__data__,c,i)&&u.push(l);return new ce(r,this._parents,this._name,this._id)}function wf(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=new Array(r),u=0;u<i;++u)for(var l=e[u],c=n[u],s=l.length,f=a[u]=new Array(s),h,p=0;p<s;++p)(h=l[p]||c[p])&&(f[p]=h);for(;u<r;++u)a[u]=e[u];return new ce(a,this._parents,this._name,this._id)}function _f(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ef(t,e,n){var r,o,i=_f(e)?Fo:ne;return function(){var a=i(this,t),u=a.on;u!==r&&(o=(r=u).copy()).on(e,n),a.on=o}}function Sf(t,e){var n=this._id;return arguments.length<2?Ut(this.node(),n).on.on(t):this.each(Ef(n,t,e))}function xf(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Mf(){return this.on("end.remove",xf(this._id))}function Af(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Io(t));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var u=r[a],l=u.length,c=i[a]=new Array(l),s,f,h=0;h<l;++h)(s=u[h])&&(f=t.call(s,s.__data__,h,u))&&("__data__"in s&&(f.__data__=s.__data__),c[h]=f,kr(c[h],e,n,h,c,Ut(s,n)));return new ce(i,this._parents,e,n)}function bf(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Wa(t));for(var r=this._groups,o=r.length,i=[],a=[],u=0;u<o;++u)for(var l=r[u],c=l.length,s,f=0;f<c;++f)if(s=l[f]){for(var h=t.call(s,s.__data__,f,l),p,d=Ut(s,n),_=0,S=h.length;_<S;++_)(p=h[_])&&kr(p,e,n,_,h,d);i.push(h),a.push(s)}return new ce(i,a,e,n)}var kf=$n.prototype.constructor;function Nf(){return new kf(this._groups,this._parents)}function $f(t,e){var n,r,o;return function(){var i=Ge(this,t),a=(this.style.removeProperty(t),Ge(this,t));return i===a?null:i===n&&a===r?o:o=e(n=i,r=a)}}function lu(t){return function(){this.style.removeProperty(t)}}function Rf(t,e,n){var r,o=n+"",i;return function(){var a=Ge(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function Pf(t,e,n){var r,o,i;return function(){var a=Ge(this,t),u=n(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(t),Ge(this,t))),a===l?null:a===r&&l===o?i:(o=l,i=e(r=a,u))}}function Cf(t,e){var n,r,o,i="style."+e,a="end."+i,u;return function(){var l=ne(this,t),c=l.on,s=l.value[i]==null?u||(u=lu(e)):void 0;(c!==n||o!==s)&&(r=(n=c).copy()).on(a,o=s),l.on=r}}function Tf(t,e,n){var r=(t+="")=="transform"?Pu:su;return e==null?this.styleTween(t,$f(t,r)).on("end.style."+t,lu(t)):typeof e=="function"?this.styleTween(t,Pf(t,r,qo(this,"style."+t,e))).each(Cf(this._id,t)):this.styleTween(t,Rf(t,r,e),n).on("end.style."+t,null)}function zf(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Of(t,e,n){var r,o;function i(){var a=e.apply(this,arguments);return a!==o&&(r=(o=a)&&zf(t,a,n)),r}return i._value=e,i}function Lf(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Of(t,e,n??""))}function If(t){return function(){this.textContent=t}}function jf(t){return function(){var e=t(this);this.textContent=e??""}}function Df(t){return this.tween("text",typeof t=="function"?jf(qo(this,"text",t)):If(t==null?"":t+""))}function Ff(t){return function(e){this.textContent=t.call(this,e)}}function qf(t){var e,n;function r(){var o=t.apply(this,arguments);return o!==n&&(e=(n=o)&&Ff(o)),e}return r._value=t,r}function Bf(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,qf(t))}function Xf(){for(var t=this._name,e=this._id,n=cu(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],u=a.length,l,c=0;c<u;++c)if(l=a[c]){var s=Ut(l,e);kr(l,t,n,c,a,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new ce(r,this._parents,t,n)}function Gf(){var t,e,n=this,r=n._id,o=n.size();return new Promise(function(i,a){var u={value:a},l={value:function(){--o===0&&i()}};n.each(function(){var c=ne(this,r),s=c.on;s!==t&&(e=(t=s).copy(),e._.cancel.push(u),e._.interrupt.push(u),e._.end.push(l)),c.on=e}),o===0&&i()})}var Yf=0;function ce(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function cu(){return++Yf}var we=$n.prototype;ce.prototype={constructor:ce,select:Af,selectAll:bf,filter:yf,merge:wf,selection:Nf,transition:Xf,call:we.call,nodes:we.n
vendor: 10,289 bytes, line 1
1odes,node:we.node,size:we.size,empty:we.empty,each:we.each,on:Sf,attr:ef,attrTween:uf,style:Tf,styleTween:Lf,text:Df,textTween:Bf,remove:Mf,tween:Uc,delay:cf,duration:pf,ease:vf,easeVarying:mf,end:Gf,[Symbol.iterator]:we[Symbol.iterator]};function Zf(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Wf={time:null,delay:0,duration:250,ease:Zf};function Uf(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Vf(t){var e,n;t instanceof ce?(e=t._id,t=t._name):(e=cu(),(n=Wf).time=Do(),t=t==null?null:t+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],u=a.length,l,c=0;c<u;++c)(l=a[c])&&kr(l,t,e,c,a,n||Uf(l,e));return new ce(r,this._parents,t,e)}$n.prototype.interrupt=Yc;$n.prototype.transition=Vf;const Bn=t=>()=>t;function Kf(t,{sourceEvent:e,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function se(t,e,n){this.k=t,this.x=e,this.y=n}se.prototype={constructor:se,scale:function(t){return t===1?this:new se(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new se(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Bo=new se(1,0,0);se.prototype;function Or(t){t.stopImmediatePropagation()}function on(t){t.preventDefault(),t.stopImmediatePropagation()}function Hf(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Qf(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Fi(){return this.__zoom||Bo}function Jf(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function th(){return navigator.maxTouchPoints||"ontouchstart"in this}function eh(t,e,n){var r=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],i=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function nh(){var t=Hf,e=Qf,n=eh,r=Jf,o=th,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],u=250,l=Lu,c=Lo("start","zoom","end"),s,f,h,p=500,d=150,_=0,S=10;function w(v){v.property("__zoom",Fi).on("wheel.zoom",I).on("mousedown.zoom",X).on("dblclick.zoom",Z).filter(o).on("touchstart.zoom",L).on("touchmove.zoom",U).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(v,g,y,N){var $=v.selection?v.selection():v;$.property("__zoom",Fi),v!==$?A(v,g,y,N):$.interrupt().each(function(){b(this,arguments).event(N).start().zoom(null,typeof g=="function"?g.apply(this,arguments):g).end()})},w.scaleBy=function(v,g,y,N){w.scaleTo(v,function(){var $=this.__zoom.k,P=typeof g=="function"?g.apply(this,arguments):g;return $*P},y,N)},w.scaleTo=function(v,g,y,N){w.transform(v,function(){var $=e.apply(this,arguments),P=this.__zoom,q=y==null?E($):typeof y=="function"?y.apply(this,arguments):y,Y=P.invert(q),O=typeof g=="function"?g.apply(this,arguments):g;return n(m(x(P,O),q,Y),$,a)},y,N)},w.translateBy=function(v,g,y,N){w.transform(v,function(){return n(this.__zoom.translate(typeof g=="function"?g.apply(this,arguments):g,typeof y=="function"?y.apply(this,arguments):y),e.apply(this,arguments),a)},null,N)},w.translateTo=function(v,g,y,N,$){w.transform(v,function(){var P=e.apply(this,arguments),q=this.__zoom,Y=N==null?E(P):typeof N=="function"?N.apply(this,arguments):N;return n(Bo.translate(Y[0],Y[1]).scale(q.k).translate(typeof g=="function"?-g.apply(this,arguments):-g,typeof y=="function"?-y.apply(this,arguments):-y),P,a)},N,$)};function x(v,g){return g=Math.max(i[0],Math.min(i[1],g)),g===v.k?v:new se(g,v.x,v.y)}function m(v,g,y){var N=g[0]-y[0]*v.k,$=g[1]-y[1]*v.k;return N===v.x&&$===v.y?v:new se(v.k,N,$)}function E(v){return[(+v[0][0]+ +v[1][0])/2,(+v[0][1]+ +v[1][1])/2]}function A(v,g,y,N){v.on("start.zoom",function(){b(this,arguments).event(N).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).event(N).end()}).tween("zoom",function(){var $=this,P=arguments,q=b($,P).event(N),Y=e.apply($,P),O=y==null?E(Y):typeof y=="function"?y.apply($,P):y,Q=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),J=$.__zoom,nt=typeof g=="function"?g.apply($,P):g,vt=l(J.invert(O).concat(Q/J.k),nt.invert(O).concat(Q/nt.k));return function(pt){if(pt===1)pt=nt;else{var _t=vt(pt),tt=Q/_t[2];pt=new se(tt,O[0]-_t[0]*tt,O[1]-_t[1]*tt)}q.zoom(null,pt)}})}function b(v,g,y){return!y&&v.__zooming||new C(v,g)}function C(v,g){this.that=v,this.args=g,this.active=0,this.sourceEvent=null,this.extent=e.apply(v,g),this.taps=0}C.prototype={event:function(v){return v&&(this.sourceEvent=v),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(v,g){return this.mouse&&v!=="mouse"&&(this.mouse[1]=g.invert(this.mouse[0])),this.touch0&&v!=="touch"&&(this.touch0[1]=g.invert(this.touch0[0])),this.touch1&&v!=="touch"&&(this.touch1[1]=g.invert(this.touch1[0])),this.that.__zoom=g,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(v){var g=ue(this.that).datum();c.call(v,this.that,new Kf(v,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:c}),g)}};function I(v,...g){if(!t.apply(this,arguments))return;var y=b(this,g).event(v),N=this.__zoom,$=Math.max(i[0],Math.min(i[1],N.k*Math.pow(2,r.apply(this,arguments)))),P=ye(v);if(y.wheel)(y.mouse[0][0]!==P[0]||y.mouse[0][1]!==P[1])&&(y.mouse[1]=N.invert(y.mouse[0]=P)),clearTimeout(y.wheel);else{if(N.k===$)return;y.mouse=[P,N.invert(P)],Vn(this),y.start()}on(v),y.wheel=setTimeout(q,d),y.zoom("mouse",n(m(x(N,$),y.mouse[0],y.mouse[1]),y.extent,a));function q(){y.wheel=null,y.end()}}function X(v,...g){if(h||!t.apply(this,arguments))return;var y=b(this,g,!0).event(v),N=ue(v.view).on("mousemove.zoom",O,!0).on("mouseup.zoom",Q,!0),$=ye(v,P),P=v.currentTarget,q=v.clientX,Y=v.clientY;Lc(v.view),Or(v),y.mouse=[$,this.__zoom.invert($)],Vn(this),y.start();function O(J){if(on(J),!y.moved){var nt=J.clientX-q,vt=J.clientY-Y;y.moved=nt*nt+vt*vt>_}y.event(J).zoom("mouse",n(m(y.that.__zoom,y.mouse[0]=ye(J,P),y.mouse[1]),y.extent,a))}function Q(J){N.on("mousemove.zoom mouseup.zoom",null),Ic(J.view,y.moved),on(J),y.event(J).end()}}function Z(v,...g){if(t.apply(this,arguments)){var y=this.__zoom,N=ye(v.changedTouches?v.changedTouches[0]:v,this),$=y.invert(N),P=y.k*(v.shiftKey?.5:2),q=n(m(x(y,P),N,$),e.apply(this,g),a);on(v),u>0?ue(this).transition().duration(u).call(A,q,N,v):ue(this).call(w.transform,q,N,v)}}function L(v,...g){if(t.apply(this,arguments)){var y=v.touches,N=y.length,$=b(this,g,v.changedTouches.length===N).event(v),P,q,Y,O;for(Or(v),q=0;q<N;++q)Y=y[q],O=ye(Y,this),O=[O,this.__zoom.invert(O),Y.identifier],$.touch0?!$.touch1&&$.touch0[2]!==O[2]&&($.touch1=O,$.taps=0):($.touch0=O,P=!0,$.taps=1+!!s);s&&(s=clearTimeout(s)),P&&($.taps<2&&(f=O[0],s=setTimeout(function(){s=null},p)),Vn(this),$.start())}}function U(v,...g){if(this.__zooming){var y=b(this,g).event(v),N=v.changedTouches,$=N.length,P,q,Y,O;for(on(v),P=0;P<$;++P)q=N[P],Y=ye(q,this),y.touch0&&y.touch0[2]===q.identifier?y.touch0[0]=Y:y.touch1&&y.touch1[2]===q.identifier&&(y.touch1[0]=Y);if(q=y.that.__zoom,y.touch1){var Q=y.touch0[0],J=y.touch0[1],nt=y.touch1[0],vt=y.touch1[1],pt=(pt=nt[0]-Q[0])*pt+(pt=nt[1]-Q[1])*pt,_t=(_t=vt[0]-J[0])*_t+(_t=vt[1]-J[1])*_t;q=x(q,Math.sqrt(pt/_t)),Y=[(Q[0]+nt[0])/2,(Q[1]+nt[1])/2],O=[(J[0]+vt[0])/2,(J[1]+vt[1])/2]}else if(y.touch0)Y=y.touch0[0],O=y.touch0[1];else return;y.zoom("touch",n(m(q,Y,O),y.extent,a))}}function H(v,...g){if(this.__zooming){var y=b(this,g).event(v),N=v.changedTouches,$=N.length,P,q;for(Or(v),h&&clearTimeout(h),h=setTimeout(function(){h=null},p),P=0;P<$;++P)q=N[P],y.touch0&&y.touch0[2]===q.identifier?delete y.touch0:y.touch1&&y.touch1[2]===q.identifier&&delete y.touch1;if(y.touch1&&!y.touch0&&(y.touch0=y.touch1,delete y.touch1),y.touch0)y.touch0[1]=this.__zoom.invert(y.touch0[0]);else if(y.end(),y.taps===2&&(q=ye(q,this),Math.hypot(f[0]-q[0],f[1]-q[1])<S)){var Y=ue(this).on("dblclick.zoom");Y&&Y.apply(this,arguments)}}}return w.wheelDelta=function(v){return arguments.length?(r=typeof v=="function"?v:Bn(+v),w):r},w.filter=function(v){return arguments.length?(t=typeof v=="function"?v:Bn(!!v),w):t},w.touchable=function(v){return arguments.length?(o=typeof v=="function"?v:Bn(!!v),w):o},w.extent=function(v){return arguments.length?(e=typeof v=="function"?v:Bn([[+v[0][0],+v[0][1]],[+v[1][0],+v[1][1]]]),w):e},w.scaleExtent=function(v){return arguments.length?(i[0]=+v[0],i[1]=+v[1],w):[i[0],i[1]]},w.translateExtent=function(v){return arguments.length?(a[0][0]=+v[0][0],a[1][0]=+v[1][0],a[0][1]=+v[0][1],a[1][1]=+v[1][1],w):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},w.constrain=function(v){return arguments.length?(n=v,w):n},w.duration=function(v){return arguments.length?(u=+v,w):u},w.interpolate=function(v){return arguments.length?(l=v,w):l},w.on=function(){var v=c.on.apply(c,arguments);return v===c?w:v},w.clickDistance=function(v){return arguments.length?(_=(v=+v)*v,w):Math.sqrt(_)},w.tapDistance=function(v){return arguments.length?(S=+v,w):S},w}function qi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function De(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
1e%2?qi(Object(n),!0).forEach(function(r){rh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vo(t){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vo(t)}function rh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ot(){return Ot=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ot.apply(this,arguments)}function oh(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Yt(t,e){if(t==null)return{};var n=oh(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function wt(t,e){return ih(t)||ah(t,e)||uh(t,e)||sh()}function ih(t){if(Array.isArray(t))return t}function ah(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,u;try{for(n=n.call(t);!(o=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));o=!0);}catch(l){i=!0,u=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function uh(t,e){if(t){if(typeof t=="string")return Bi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bi(t,e)}}function Bi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function sh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var lh=["width","height","projection","projectionConfig"],ch=Ia,fh=Yt(Us,["geoPath"]),re=M.createContext(),hh=function(e){var n=e.projectionConfig,r=n===void 0?{}:n,o=e.projection,i=o===void 0?"geoEqualEarth":o,a=e.width,u=a===void 0?800:a,l=e.height,c=l===void 0?600:l,s=typeof i=="function";if(s)return i;var f=fh[i]().translate([u/2,c/2]),h=[f.center?"center":null,f.rotate?"rotate":null,f.scale?"scale":null,f.parallels?"parallels":null];return h.forEach(function(p){p&&(f=f[p](r[p]||f[p]()))}),f},fu=function(e){var n=e.width,r=e.height,o=e.projection,i=e.projectionConfig,a=Yt(e,lh),u=i.center||[],l=wt(u,2),c=l[0],s=l[1],f=i.rotate||[],h=wt(f,3),p=h[0],d=h[1],_=h[2],S=i.parallels||[],w=wt(S,2),x=w[0],m=w[1],E=i.scale||null,A=M.useMemo(function(){return hh({projectionConfig:{center:c||c===0||s||s===0?[c,s]:null,rotate:p||p===0||d||d===0?[p,d,_]:null,parallels:x||x===0||m||m===0?[x,m]:null,scale:E},projection:o,width:n,height:r})},[n,r,o,c,s,p,d,_,x,m,E]),b=M.useCallback(A,[A]),C=M.useMemo(function(){return{width:n,height:r,projection:b,path:ch().projection(b)}},[n,r,b]);return it.createElement(re.Provider,Ot({value:C},a))};fu.propTypes={width:k.number,height:k.number,projection:k.oneOfType([k.string,k.func]),projectionConfig:k.object};var ph=["width","height","projection","projectionConfig","className"],Xo=M.forwardRef(function(t,e){var n=t.width,r=n===void 0?800:n,o=t.height,i=o===void 0?600:o,a=t.projection,u=a===void 0?"geoEqualEarth":a,l=t.projectionConfig,c=l===void 0?{}:l,s=t.className,f=s===void 0?"":s,h=Yt(t,ph);return it.createElement(fu,{width:r,height:i,projection:u,projectionConfig:c},it.createElement("svg",Ot({ref:e,viewBox:"0 0 ".concat(r," ").concat(i),className:"rsm-svg ".concat(f)},h)))});Xo.displayName="ComposableMap";Xo.propTypes={width:k.number,height:k.number,projection:k.oneOfType([k.string,k.func]),projectionConfig:k.object,className:k.string};function Xi(t,e,n){var r=(t*n.k-t)/2,o=(e*n.k-e)/2;return[t/2-(r+n.x)/n.k,e/2-(o+n.y)/n.k]}function dh(t){return fetch(t).then(function(e){if(!e.ok)throw Error(e.statusText);return e.json()}).catch(function(e){console.log("There was a problem when fetching the data: ",e)})}function Gi(t,e){var n=t.type==="Topology";if(!n)return e?e(t.features||t):t.features||t;var r=Qs(t,t.objects[Object.keys(t.objects)[0]]).features;return e?e(r):r}function Yi(t){var e=t.type==="Topology";if(!e)return null;var n=Ti(t,t.objects[Object.keys(t.objects)[0]],function(o,i){return o===i}),r=Ti(t,t.objects[Object.keys(t.objects)[0]],function(o,i){return o!==i});return{outline:n,borders:r}}function vh(t,e,n){return t&&e?{outline:De(De({},t),{},{rsmKey:"outline",svgPath:n(t)}),borders:De(De({},e),{},{rsmKey:"borders",svgPath:n(e)})}:{}}function gh(t,e){return t?t.map(function(n,r){return De(De({},n),{},{rsmKey:"geo-".concat(r),svgPath:e(n)})}):[]}function mh(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:30,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.5,r=Array.isArray(n)?n:[n,n],o=t/2*r[0],i=e/2*r[1];return"M".concat(0,",",0," Q",-t/2-o,",").concat(-e/2+i," ").concat(-t,",").concat(-e)}function yh(t){return typeof t=="string"}function wh(t){var e=t.geography,n=t.parseGeographies,r=M.useContext(re),o=r.path,i=M.useState({}),a=wt(i,2),u=a[0],l=a[1];M.useEffect(function(){(typeof window>"u"?"undefined":vo(window))!=="undefined"&&e&&(yh(e)?dh(e).then(function(p){p&&l({geographies:Gi(p,n),mesh:Yi(p)})}
2):l({geographies:Gi(e,n),mesh:Yi(e)}))},[e,n]);var c=M.useMemo(function(){var p=u.mesh||{},d=vh(p.outline,p.borders,o);return{geographies:gh(u.geographies,o),outline:d.outline,borders:d.borders}},[u,o]),s=c.geographies,f=c.outline,h=c.borders;return{geographies:s,outline:f,borders:h}}var _h=["geography","children","parseGeographies","className"],Go=M.forwardRef(function(t,e){var n=t.geography,r=t.children,o=t.parseGeographies,i=t.className,a=i===void 0?"":i,u=Yt(t,_h),l=M.useContext(re),c=l.path,s=l.projection,f=wh({geography:n,parseGeographies:o}),h=f.geographies,p=f.outline,d=f.borders;return it.createElement("g",Ot({ref:e,className:"rsm-geographies ".concat(a)},u),h&&h.length>0&&r({geographies:h,outline:p,borders:d,path:c,projection:s}))});Go.displayName="Geographies";Go.propTypes={geography:k.oneOfType([k.string,k.object,k.array]),children:k.func,parseGeographies:k.func,className:k.string};var Eh=["geography","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],Yo=M.forwardRef(function(t,e){var n=t.geography,r=t.onMouseEnter,o=t.onMouseLeave,i=t.onMouseDown,a=t.onMouseUp,u=t.onFocus,l=t.onBlur,c=t.style,s=c===void 0?{}:c,f=t.className,h=f===void 0?"":f,p=Yt(t,Eh),d=M.useState(!1),_=wt(d,2),S=_[0],w=_[1],x=M.useState(!1),m=wt(x,2),E=m[0],A=m[1];function b(U){A(!0),r&&r(U)}function C(U){A(!1),S&&w(!1),o&&o(U)}function I(U){A(!0),u&&u(U)}function X(U){A(!1),S&&w(!1),l&&l(U)}function Z(U){w(!0),i&&i(U)}function L(U){w(!1),a&&a(U)}return it.createElement("path",Ot({ref:e,tabIndex:"0",className:"rsm-geography ".concat(h),d:n.svgPath,onMouseEnter:b,onMouseLeave:C,onFocus:I,onBlur:X,onMouseDown:Z,onMouseUp:L,style:s[S||E?S?"pressed":"hover":"default"]},p))});Yo.displayName="Geography";Yo.propTypes={geography:k.object,onMouseEnter:k.func,onMouseLeave:k.func,onMouseDown:k.func,onMouseUp:k.func,onFocus:k.func,onBlur:k.func,style:k.object,className:k.string};var Sh=M.memo(Yo),xh=["fill","stroke","step","className"],Zo=M.forwardRef(function(t,e){var n=t.fill,r=n===void 0?"transparent":n,o=t.stroke,i=o===void 0?"currentcolor":o,a=t.step,u=a===void 0?[10,10]:a,l=t.className,c=l===void 0?"":l,s=Yt(t,xh),f=M.useContext(re),h=f.path;return it.createElement("path",Ot({ref:e,d:h(Eo().step(u)()),fill:r,stroke:i,className:"rsm-graticule ".concat(c)},s))});Zo.displayName="Graticule";
2Zo.propTypes={fill:k.string,stroke:k.string,step:k.array,className:k.string};M.memo(Zo);var Mh=["value"],Ah=M.createContext(),bh={x:0,y:0,k:1,transformString:"translate(0 0) scale(1)"},hu=function(e){var n=e.value,r=n===void 0?bh:n,o=Yt(e,Mh);return it.createElement(Ah.Provider,Ot({value:r},o))};hu.propTypes={x:k.number,y:k.number,k:k.number,transformString:k.string};function kh(t){var e=t.center,n=t.filterZoomEvent,r=t.onMoveStart,o=t.onMoveEnd,i=t.onMove,a=t.translateExtent,u=a===void 0?[[-1/0,-1/0],[1/0,1/0]]:a,l=t.scaleExtent,c=l===void 0?[1,8]:l,s=t.zoom,f=s===void 0?1:s,h=M.useContext(re),p=h.width,d=h.height,_=h.projection,S=wt(e,2),w=S[0],x=S[1],m=M.useState({x:0,y:0,k:1}),E=wt(m,2),A=E[0],b=E[1],C=M.useRef({x:0,y:0,k:1}),I=M.useRef(),X=M.useRef(),Z=M.useRef(!1),L=wt(u,2),U=L[0],H=L[1],v=wt(U,2),g=v[0],y=v[1],N=wt(H,2),$=N[0],P=N[1],q=wt(c,2),Y=q[0],O=q[1];return M.useEffect(function(){var Q=ue(I.current);function J(tt){!r||Z.current||r({coordinates:_.invert(Xi(p,d,tt.transform)),zoom:tt.transform.k},tt)}function nt(tt){if(!Z.current){var ut=tt.transform,Dt=tt.sourceEvent;b({x:ut.x,y:ut.y,k:ut.k,dragging:Dt}),i&&i({x:ut.x,y:ut.y,zoom:ut.k,dragging:Dt},tt)}}function vt(tt){if(Z.current){Z.current=!1;return}var ut=_.invert(Xi(p,d,tt.transform)),Dt=wt(ut,2),Rt=Dt[0],Vt=Dt[1];C.current={x:Rt,y:Vt,k:tt.transform.k},o&&o({coordinates:[Rt,Vt],zoom:tt.transform.k},tt)}function pt(tt){return n?n(tt):tt?!tt.ctrlKey&&!tt.button:!1}var _t=nh().filter(pt).scaleExtent([Y,O]).translateExtent([[g,y],[$,P]]).on("start",J).on("zoom",nt).on("end",vt);X.current=_t,Q.call(_t)},[p,d,g,y,$,P,Y,O,_,r,i,o,n]),M.useEffect(function(){if(!(w===C.current.x&&x===C.current.y&&f===C.current.k)){var Q=_([w,x]),J=Q[0]*f,nt=Q[1]*f,vt=ue(I.current);Z.current=!0,vt.call(X.current.transform,Bo.translate(p/2-J,d/2-nt).scale(f)),b({x:p/2-J,y:d/2-nt,k:f}),C.current={x:w,y:x,k:f}}},[w,x,f,p,d,_]),{mapRef:I,position:A,transformString:"translate(".concat(A.x," ").concat(A.y,") scale(").concat(A.k,")")}}var Nh=["center","zoom","minZoom","maxZoom","translateExtent","filterZoomEvent","onMoveStart","onMove","onMoveEnd","className"],pu=M.forwardRef(function(t,e){var n=t.center,r=n===void 0?[0,0]:n,o=t.zoom,i=o===void 0?1:o,a=t.minZoom,u=a===void 0?1:a,l=t.maxZoom,c=l===void 0?8:l,s=t.translateExtent,f=t.filterZoomEvent,h=t.onMoveStart,p=t.onMove,d=t.onMoveEnd,_=t.className,S=Yt(t,Nh),w=M.useContext(re),x=w.width,m=w.height,E=kh({center:r,filterZoomEvent:f,onMoveStart:h,onMove:p,onMoveEnd:d,scaleExtent:[u,c],translateExtent:s,zoom:i}),A=E.mapRef,b=E.transformString,C=E.position;return it.createElement(hu,{value:{x:C.x,y:C.y,k:C.k,transformString:b}},it.createElement("g",{ref:A},it.createElement("rect",{width:x,height:m,fill:"transparent"}),it.createElement("g",Ot({ref:e,transform:b,className:"rsm-zoomable-group ".concat(_)},S))))});pu.displayName="ZoomableGroup";pu.propTypes={center:k.array,zoom:k.number,minZoom:k.number,maxZoom:k.number,translateExtent:k.arrayOf(k.array),onMoveStart:k.func,onMove:k.func,onMoveEnd:k.func,className:k.string};var $h=["id","fill","stroke","strokeWidth","className"],Wo=M.forwardRef(function(t,e){var n=t.id,r=n===void 0?"rsm-sphere":n,o=t.fill,i=o===void 0?"transparent":o,a=t.stroke,u=a===void 0?"currentcolor":a,l=t.strokeWidth,c=l===void 0?.5:l,s=t.className,f=s===void 0?"":s,h=Yt(t,$h),p=M.useContext(re),d=p.path,_=M.useMemo(function(){return d({type:"Sphere"})},[d]);return it.createElement(M.Fragment,null,it.createElement("defs",null,it.createElement("clipPath",{id:r},it.createElement("path",{d:_}))),it.createElement("path",Ot({ref:e,d:_,fill:i,stroke:u,strokeWidth:c,style:{pointerEvents:"none"},className:"rsm-sphere ".concat(f)},h)))});Wo.displayName="Sphere";
2Wo.propTypes={id:k.string,fill:k.string,stroke:k.string,strokeWidth:k.number,className:k.string};M.memo(Wo);var Rh=["coordinates","children","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],Uo=M.forwardRef(function(t,e){var n=t.coordinates,r=t.children,o=t.onMouseEnter,i=t.onMouseLeave,a=t.onMouseDown,u=t.onMouseUp,l=t.onFocus,c=t.onBlur,s=t.style,f=s===void 0?{}:s,h=t.className,p=h===void 0?"":h,d=Yt(t,Rh),_=M.useContext(re),S=_.projection,w=M.useState(!1),x=wt(w,2),m=x[0],E=x[1],A=M.useState(!1),b=wt(A,2),C=b[0],I=b[1],X=S(n),Z=wt(X,2),L=Z[0],U=Z[1];function H(P){I(!0),o&&o(P)}function v(P){I(!1),m&&E(!1),i&&i(P)}function g(P){I(!0),l&&l(P)}function y(P){I(!1),m&&E(!1),c&&c(P)}function N(P){E(!0),a&&a(P)}function $(P){E(!1),u&&u(P)}return it.createElement("g",Ot({ref:e,transform:"translate(".concat(L,", ").concat(U,")"),className:"rsm-marker ".concat(p),onMouseEnter:H,onMouseLeave:v,onFocus:g,onBlur:y,onMouseDown:N,onMouseUp:$,style:f[m||C?m?"pressed":"hover":"default"]},d),r)});Uo.displayName="Marker";Uo.propTypes={coordinates:k.array,children:k.oneOfType([k.node,k.arrayOf(k.node)]),onMouseEnter:k.func,onMouseLeave:k.func,onMouseDown:k.func,onMouseUp:k.func,onFocus:k.func,onBlur:k.func,style:k.object,className:k.string};var Ph=["from","to","coordinates","stroke","strokeWidth","fill","className"],du=M.forwardRef(function(t,e){var n=t.from,r=n===void 0?[0,0]:n,o=t.to,i=o===void 0?[0,0]:o,a=t.coordinates,u=t.stroke,l=u===void 0?"currentcolor":u,c=t.strokeWidth,s=c===void 0?3:c,f=t.fill,h=f===void 0?"transparent":f,p=t.className,d=p===void 0?"":p,_=Yt(t,Ph),S=M.useContext(re),w=S.path,x={type:"LineString",coordinates:a||[r,i]};return it.createElement("path",Ot({ref:e,d:w(x),className:"rsm-line ".concat(d),stroke:l,strokeWidth:s,fill:h},_))});du.displayName="Line";du.propTypes={from:k.array,to:k.array,coordinates:k.array,stroke:k.string,
2strokeWidth:k.number,fill:k.string,className:k.string};var Ch=["subject","children","connectorProps","dx","dy","curve","className"],vu=M.forwardRef(function(t,e){var n=t.subject,r=t.children,o=t.connectorProps,i=t.dx,a=i===void 0?30:i,u=t.dy,l=u===void 0?30:u,c=t.curve,s=c===void 0?0:c,f=t.className,h=f===void 0?"":f,p=Yt(t,Ch),d=M.useContext(re),_=d.projection,S=_(n),w=wt(S,2),x=w[0],m=w[1],E=mh(a,l,s);return it.createElement("g",Ot({ref:e,transform:"translate(".concat(x+a,", ").concat(m+l,")"),className:"rsm-annotation ".concat(h)},p),it.createElement("path",Ot({d:E,fill:"transparent",stroke:"#000"},o)),r)});vu.displayName="Annotation";vu.propTypes={subject:k.array,children:k.oneOfType([k.node,k.arrayOf(k.node)]),dx:k.number,dy:k.number,curve:k.number,connectorProps:k.object,className:k.string};var Lr={exports:{}};var Zi;function Th(){return Zi||(Zi=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(i=o(i,r(u)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var u in i)e.call(i,u)&&i[u]&&(a=o(a,u));return a}function o(i,a){return a?i?i+" "+a:i+a:i}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Lr)),Lr.exports}var zh=Th();const go=_u(zh);var Wi={};const Oh="react-tooltip-core-styles",Lh="react-tooltip-base-styles",Ui={core:!1,base:!1};function Vi({css:t,id:e=Lh,type:n="base",ref:r}){var o,i;if(!t||typeof document>"u"||Ui[n]||n==="core"&&typeof process<"u"&&(!((o=process==null?void 0:Wi)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((i=process==null?void 0:Wi)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(e=Oh),r||(r={});const{insertAt:a}=r;if(document.getElementById(e))return;const u=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=e,l.type="text/css",a==="top"&&u.firstChild?u.insertBefore(l,u.firstChild):u.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t)),Ui[n]=!0}const Ki=async({elementReference:t=null,tooltipReference:e=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:a=[xu(Number(o)),Mu({fallbackAxisSideDirection:"start"}),Au({padding:5})],border:u,arrowSize:l=8})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(e===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=a;return n?(c.push(Su({element:n,padding:5})),ti(t,e,{placement:r,strategy:i,middleware:c}).then((({x:s,y:f,placement:h,middlewareData:p})=>{var d,_;const S={left:`${s}px`,top:`${f}px`,border:u},{x:w,y:x}=(d=p.arrow)!==null&&d!==void 0?d:{x:0,y:0},m=(_={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&_!==void 0?_:"bottom",E=u&&{borderBottom:u,borderRight:u};let A=0;if(u){const b=`${u}`.match(/(\d+)px/);A=b?.[1]?Number(b[1]):1}return{tooltipStyles:S,tooltipArrowStyles:{left:w!=null?`${w}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...E,[m]:`-${l/2+A}px`},place:h}}))):ti(t,e,{placement:"bottom",strategy:i,middleware:c}).then((({x:s,y:f,placement:h})=>({tooltipStyles:{left:`${s}px`,top:`${f}px`},tooltipArrowStyles:{},place:h})))},Hi=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),Qi=(t,e,n)=>{let r=null;const o=function(...i){const a=()=>{r=null};!r&&(t.apply(this,i),r=setTimeout(a,e))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},Ji=t=>t!==null&&!Array.isArray(t)&&typeof t=="object",mo=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((o,i)=>mo(o,e[i])));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!Ji(t)||!Ji(e))return t===e;const n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((o=>mo(t[o],e[o])))},Ih=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((n=>{const r=e.getPropertyValue(n);return r==="auto"||r==="scroll"}))},ta=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(Ih(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},jh=typeof window<"u"?M.useLayoutEffect:M.useEffect,Bt=t=>{t.current&&(clearTimeout(t.current),t.current=null)},Dh="DEFAULT_TOOLTIP_ID",Fh={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},qh=M.createContext({getTooltipData:()=>Fh});function gu(t=Dh){return M.useContext(qh).getTooltipData(t)}var Le={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ir={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Bh=({forwardRef:t,id:e,className:n,classNameArrow:r,variant:o="dark",anchorId:i,anchorSelect:a,place:u="top",offset:l=10,events:c=["hover"],openOnClick:s=!1,positionStrategy:f="absolute",middlewares:h,wrapper:p,delayShow:d=0,delayHide:_=0,float:S=!1,hidden:w=!1,noArrow:x=!1,clickable:m=!1,closeOnEsc:E=!1,closeOnScroll:A=!1,closeOnResize:b=!1,openEvents:C,closeEvents:I,globalCloseEvents:X,imperativeModeOnly:Z,style:L,position:U,afterShow:H,afterHide:v,disableTooltip:g,content:y,contentWrapperRef:N,isOpen:$,defaultIsOpen:P=!1,setIsOpen:q,previousActiveAnchor:Y,activeAnchor:O,setActiveAnchor:Q,border:J,opacity:nt,arrowColor:vt,arrowSize:pt=8,role:_t="tooltip"})=>{var tt;const ut=M.useRef(null),Dt=M.useRef(null),Rt=M.useRef(null),Vt=M.useRef(null),Ae=M.useRef(null),[de,Rn]=M.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}
2),[Pt,We]=M.useState(!1),[be,fe]=M.useState(!1),[ct,ke]=M.useState(null),Pn=M.useRef(!1),Ne=M.useRef(null),{anchorRefs:Cn,setActiveAnchor:Ue}=gu(e),Ve=M.useRef(!1),[he,Ke]=M.useState([]),ve=M.useRef(!1),$e=s||c.includes("click"),Tn=$e||C?.click||C?.dblclick||C?.mousedown,He=C?{...C}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!C&&$e&&Object.assign(He,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const ge=I?{...I}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!I&&$e&&Object.assign(ge,{mouseleave:!1,blur:!1,mouseout:!1});const yt=X?{...X}:{escape:E||!1,scroll:A||!1,resize:b||!1,clickOutsideAnchor:Tn||!1};Z&&(Object.assign(He,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ge,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(yt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),jh((()=>(ve.current=!0,()=>{ve.current=!1})),[]);const Ct=R=>{ve.current&&(R&&fe(!0),setTimeout((()=>{ve.current&&(q?.(R),$===void 0&&We(R))}),10))};M.useEffect((()=>{if(e){if(Pt){B(Y);const j=R(O),rt=[...new Set([...j,e])].filter(Boolean).join(" ");O?.setAttribute("aria-describedby",rt)}else B(O);return()=>{B(O),B(Y)}}function R(j){var rt;return((rt=j?.getAttribute("aria-describedby"))===null||rt===void 0?void 0:rt.split(" "))||[]}function B(j){const rt=R(j).filter((gt=>gt!==e));rt.length?j?.setAttribute("aria-describedby",rt.join(" ")):j?.removeAttribute("aria-describedby")}}),[O,Pt,e,Y]),M.useEffect((()=>{if($===void 0)return()=>null;$&&fe(!0);const R=setTimeout((()=>{We($)}),10);return()=>{clearTimeout(R)}}),[$]),M.useEffect((()=>{if(Pt!==Pn.current)if(Bt(Ae),Pn.current=Pt,Pt)H?.();else{const R=(B=>{const j=B.match(/^([\d.]+)(ms|s)$/);if(!j)return 0;const[,rt,gt]=j;return Number(rt)*(gt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Ae.current=setTimeout((()=>{fe(!1),ke(null),v?.()}),R+25)}}),[Pt]);const Qe=R=>{Rn((B=>mo(B,R)?B:R))},Je=(R=d)=>{Bt(Rt),be?Ct(!0):Rt.current=setTimeout((()=>{Ct(!0)}),R)},Re=(R=_)=>{Bt(Vt),Vt.current=setTimeout((()=>{Ve.current||Ct(!1)}),R)},tn=R=>{var B;if(!R)return;const j=(B=R.currentTarget)!==null&&B!==void 0?B:R.target;if(!j?.isConnected)return Q(null),void Ue({current:null});d?Je():Ct(!0),Q(j),Ue({current:j}),Bt(Vt)},Pe=()=>{m?Re(_||100):_?Re():Ct(!1),Bt(Rt)},Ce=({x:R,y:B})=>{var j;const rt={getBoundingClientRect:()=>({x:R,y:B,width:0,height:0,top:B,left:R,right:R,bottom:B})};Ki({place:(j=ct?.place)!==null&&j!==void 0?j:u,offset:l,elementReference:rt,tooltipReference:ut.current,tooltipArrowReference:Dt.current,strategy:f,middlewares:h,border:J,arrowSize:pt}).then((gt=>{Qe(gt)}))},Te=R=>{if(!R)return;const B=R,j={x:B.clientX,y:B.clientY};Ce(j),Ne.current=j},en=R=>{var B;if(!Pt)return;const j=R.target;j.isConnected&&(!((B=ut.current)===null||B===void 0)&&B.contains(j)||[document.querySelector(`[id='${i}']`),...he].some((rt=>rt?.contains(j)))||(Ct(!1),Bt(Rt)))},zn=Qi(tn,50),dt=Qi(Pe,50),St=R=>{dt.cancel(),zn(R)},G=()=>{zn.cancel(),dt()},K=M.useCallback((()=>{var R,B;const j=(R=ct?.position)!==null&&R!==void 0?R:U;j?Ce(j):S?Ne.current&&Ce(Ne.current):O?.isConnected&&Ki({place:(B=ct?.place)!==null&&B!==void 0?B:u,offset:l,elementReference:O,tooltipReference:ut.current,tooltipArrowReference:Dt.current,strategy:f,middlewares:h,border:J,arrowSize:pt}).then((rt=>{ve.current&&Qe(rt)}))}),[Pt,O,y,L,u,ct?.place,l,f,U,ct?.position,S,pt]);M.useEffect((()=>{var R,B;const j=new Set(Cn);he.forEach((et=>{g?.(et)||j.add({current:et})}));const rt=document.querySelector(`[id='${i}']`);rt&&!g?.(rt)&&j.add({current:rt});const gt=()=>{Ct(!1)},Kt=ta(O),Ht=ta(ut.current);yt.scroll&&(window.addEventListener("scroll",gt),Kt?.addEventListener("scroll",gt),Ht?.addEventListener("scroll",gt));let xt=null;yt.resize?window.addEventListener("resize",gt):O&&ut.current&&(xt=Eu(O,ut.current,K,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Ft=et=>{et.key==="Escape"&&Ct(!1)};yt.escape&&window.addEventListener("keydown",Ft),yt.clickOutsideAnchor&&window.addEventListener("click",en);const at=[],ze=et=>!!(et?.target&&O?.contains(et.target)),mu=et=>{Pt&&ze(et)||tn(et)},yu=et=>{Pt&&ze(et)&&Pe()},Vo=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Ko=["click","dblclick","mousedown","mouseup"];Object.entries(He).forEach((([et,oe])=>{oe&&(Vo.includes(et)?at.push({event:et,listener:St}):Ko.includes(et)&&at.push({event:et,listener:mu}))})),Object.entries(ge).forEach((([et,oe])=>{oe&&(Vo.includes(et)?at.push({event:et,listener:G}):Ko.includes(et)&&at.push({event:et,listener:yu}))})),S&&at.push({event:"pointermove",listener:Te});const Ho=()=>{Ve.current=!0},Qo=()=>{Ve.current=!1,Pe()},Jo=m&&(ge.mouseout||ge.mouseleave);return Jo&&((R=ut.current)===null||R===void 0||R.addEventListener("mouseover",Ho),(B=ut.current)===null||B===void 0||B.addEventListener("mouseout",Qo)),at.forEach((({event:et,listener:oe})=>
2{j.forEach((Nr=>{var nn;(nn=Nr.current)===null||nn===void 0||nn.addEventListener(et,oe)}))})),()=>{var et,oe;yt.scroll&&(window.removeEventListener("scroll",gt),Kt?.removeEventListener("scroll",gt),Ht?.removeEventListener("scroll",gt)),yt.resize?window.removeEventListener("resize",gt):xt?.(),yt.clickOutsideAnchor&&window.removeEventListener("click",en),yt.escape&&window.removeEventListener("keydown",Ft),Jo&&((et=ut.current)===null||et===void 0||et.removeEventListener("mouseover",Ho),(oe=ut.current)===null||oe===void 0||oe.removeEventListener("mouseout",Qo)),at.forEach((({event:Nr,listener:nn})=>{j.forEach((wu=>{var $r;($r=wu.current)===null||$r===void 0||$r.removeEventListener(Nr,nn)}))}))}}),[O,K,be,Cn,he,C,I,X,$e,d,_]),M.useEffect((()=>{var R,B;let j=(B=(R=ct?.anchorSelect)!==null&&R!==void 0?R:a)!==null&&B!==void 0?B:"";!j&&e&&(j=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`);const rt=new MutationObserver((gt=>{const Kt=[],Ht=[];gt.forEach((xt=>{if(xt.type==="attributes"&&xt.attributeName==="data-tooltip-id"&&(xt.target.getAttribute("data-tooltip-id")===e?Kt.push(xt.target):xt.oldValue===e&&Ht.push(xt.target)),xt.type==="childList"){if(O){const Ft=[...xt.removedNodes].filter((at=>at.nodeType===1));if(j)try{Ht.push(...Ft.filter((at=>at.matches(j)))),Ht.push(...Ft.flatMap((at=>[...at.querySelectorAll(j)])))}catch{}Ft.some((at=>{var ze;return!!(!((ze=at?.contains)===null||ze===void 0)&&ze.call(at,O))&&(fe(!1),Ct(!1),Q(null),Bt(Rt),Bt(Vt),!0)}))}if(j)try{const Ft=[...xt.addedNodes].filter((at=>at.nodeType===1));Kt.push(...Ft.filter((at=>at.matches(j)))),Kt.push(...Ft.flatMap((at=>[...at.querySelectorAll(j)])))}catch{}}})),(Kt.length||Ht.length)&&Ke((xt=>[...xt.filter((Ft=>!Ht.includes(Ft))),...Kt]))}));return rt.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{rt.disconnect()}}),[e,a,ct?.anchorSelect,O]),M.useEffect((()=>{K()}),[K]),M.useEffect((()=>{if(!N?.current)return()=>null;const R=new ResizeObserver((()=>{setTimeout((()=>K()))}));return R.observe(N.current),()=>{R.disconnect()}}),[y,N?.current]),M.useEffect((()=>{var R;const B=document.querySelector(`[id='${i}']`),j=[...he,B];O&&j.includes(O)||Q((R=he[0])!==null&&R!==void 0?R:B)}),[i,he,O]),M.useEffect((()=>(P&&Ct(!0),()=>{Bt(Rt),Bt(Vt)})),[]),M.useEffect((()=>{var R;let B=(R=ct?.anchorSelect)!==null&&R!==void 0?R:a;if(!B&&e&&(B=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),B)try{const j=Array.from(document.querySelectorAll(B));Ke(j)}catch{Ke([])}}),[e,a,ct?.anchorSelect]),M.useEffect((()=>{Rt.current&&(Bt(Rt),Je(d))}),[d]);const Lt=(tt=ct?.content)!==null&&tt!==void 0?tt:y,me=Pt&&Object.keys(de.tooltipStyles).length>0;return M.useImperativeHandle(t,(()=>({open:R=>{if(R?.anchorSelect)try{document.querySelector(R.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${R.anchorSelect}" is not a valid CSS selector`)}ke(R??null),R?.delay?Je(R.delay):Ct(!0)},close:R=>{R?.delay?Re(R.delay):Ct(!1)},activeAnchor:O,place:de.place,isOpen:!!(be&&!w&&Lt&&me)}))),be&&!w&&Lt?it.createElement(p,{id:e,role:_t,className:go("react-tooltip",Le.tooltip,Ir.tooltip,Ir[o],n,`react-tooltip__place-${de.place}`,Le[me?"show":"closing"],me?"react-tooltip__show":"react-tooltip__closing",f==="fixed"&&Le.fixed,m&&Le.clickable),onTransitionEnd:R=>{Bt(Ae),Pt||R.propertyName!=="opacity"||(fe(!1),ke(null),v?.())},style:{...L,...de.tooltipStyles,opacity:nt!==void 0&&me?nt:void 0},ref:ut},Lt,it.createElement(p,{className:go("react-tooltip-arrow",Le.arrow,Ir.arrow,r,x&&Le.noArrow),style:{...de.tooltipArrowStyles,background:vt?`linear-gradient(to right bottom, transparent 50%, ${vt} 50%)`:void 0,"--rt-arrow-size":`${pt}px`},ref:Dt})):null},Xh=({content:t})=>it.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Gh=it.forwardRef((({id:t,anchorId:e,anchorSelect:n,content:r,html:o,render:i,className:a,classNameArrow:u,variant:l="dark",place:c="top",offset:s=10,wrapper:f="div",children:h=null,events:p=["hover"],openOnClick:d=!1,positionStrategy:_="absolute",middlewares:S,delayShow:w=0,delayHide:x=0,float:m=!1,hidden:E=!1,noArrow:A=!1,clickable:b=!1,closeOnEsc:C=!1,closeOnScroll:I=!1,closeOnResize:X=!1,openEvents:Z,closeEvents:L,globalCloseEvents:U,imperativeModeOnly:H=!1,style:v,position:g,isOpen:y,defaultIsOpen:N=!1,disableStyleInjection:$=!1,border:P,opacity:q,arrowColor:Y,arrowSize:O,setIsOpen:Q,afterShow:J,afterHide:nt,disableTooltip:vt,role:pt="tooltip"},_t)=>
2{const[tt,ut]=M.useState(r),[Dt,Rt]=M.useState(o),[Vt,Ae]=M.useState(c),[de,Rn]=M.useState(l),[Pt,We]=M.useState(s),[be,fe]=M.useState(w),[ct,ke]=M.useState(x),[Pn,Ne]=M.useState(m),[Cn,Ue]=M.useState(E),[Ve,he]=M.useState(f),[Ke,ve]=M.useState(p),[$e,Tn]=M.useState(_),[He,ge]=M.useState(null),[yt,Ct]=M.useState(null),Qe=M.useRef(null),Je=M.useRef($),{anchorRefs:Re,activeAnchor:tn}=gu(t),Pe=dt=>dt?.getAttributeNames().reduce(((St,G)=>{var K;return G.startsWith("data-tooltip-")&&(St[G.replace(/^data-tooltip-/,"")]=(K=dt?.getAttribute(G))!==null&&K!==void 0?K:null),St}),{}),Ce=dt=>{const St={place:G=>{var K;Ae((K=G)!==null&&K!==void 0?K:c)},content:G=>{ut(G??r)},html:G=>{Rt(G??o)},variant:G=>{var K;Rn((K=G)!==null&&K!==void 0?K:l)},offset:G=>{We(G===null?s:Number(G))},wrapper:G=>{var K;he((K=G)!==null&&K!==void 0?K:f)},events:G=>{const K=G?.split(" ");ve(K??p)},"position-strategy":G=>{var K;Tn((K=G)!==null&&K!==void 0?K:_)},"delay-show":G=>{fe(G===null?w:Number(G))},"delay-hide":G=>{ke(G===null?x:Number(G))},float:G=>{Ne(G===null?m:G==="true")},hidden:G=>{Ue(G===null?E:G==="true")},"class-name":G=>{ge(G)}};Object.values(St).forEach((G=>G(null))),Object.entries(dt).forEach((([G,K])=>{var Lt;(Lt=St[G])===null||Lt===void 0||Lt.call(St,K)}))};M.useEffect((()=>{ut(r)}),[r]),M.useEffect((()=>{Rt(o)}),[o]),M.useEffect((()=>{Ae(c)}),[c]),M.useEffect((()=>{Rn(l)}),[l]),M.useEffect((()=>{We(s)}),[s]),M.useEffect((()=>{fe(w)}),[w]),M.useEffect((()=>{ke(x)}),[x]),M.useEffect((()=>{Ne(m)}),[m]),M.useEffect((()=>{Ue(E)}),[E]),M.useEffect((()=>{Tn(_)}),[_]),M.useEffect((()=>{Je.current!==$&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[$]),M.useEffect((()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:$==="core",disableBase:$}}))}),[]),M.useEffect((()=>{var dt;const St=new Set(Re);let G=n;if(!G&&t&&(G=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),G)try{document.querySelectorAll(G).forEach((B=>{St.add({current:B})}))}catch{console.warn(`[react-tooltip] "${G}" is not a valid CSS selector`)}const K=document.querySelector(`[id='${e}']`);if(K&&St.add({current:K}),!St.size)return()=>null;const Lt=(dt=yt??K)!==null&&dt!==void 0?dt:tn.current,me=new MutationObserver((B=>{B.forEach((j=>{var rt;if(!Lt||j.type!=="attributes"||!(!((rt=j.attributeName)===null||rt===void 0)&&rt.startsWith("data-tooltip-")))return;const gt=Pe(Lt);Ce(gt)}))})),R={attributes:!0,childList:!1,subtree:!1};if(Lt){const B=Pe(Lt);Ce(B),me.observe(Lt,R)}return()=>{me.disconnect()}}),[Re,tn,yt,e,n]),M.useEffect((()=>{v?.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),P&&!Hi("border",`${P}`)&&console.warn(`[react-tooltip] "${P}" is not a valid \`border\`.`),v?.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),q&&!Hi("opacity",`${q}`)&&console.warn(`[react-tooltip] "${q}" is not a valid \`opacity\`.`)}),[]);let Te=h;const en=M.useRef(null);if(i){const dt=i({content:yt?.getAttribute("data-tooltip-content")||tt||null,activeAnchor:yt});Te=dt?it.createElement("div",{ref:en,className:"react-tooltip-content-wrapper"},dt):null}else tt&&(Te=tt);Dt&&(Te=it.createElement(Xh,{content:Dt}));const zn={forwardRef:_t,id:t,anchorId:e,anchorSelect:n,className:go(a,He),classNameArrow:u,content:Te,contentWrapperRef:en,place:Vt,variant:de,offset:Pt,wrapper:Ve,events:Ke,openOnClick:d,positionStrategy:$e,middlewares:S,delayShow:be,delayHide:ct,float:Pn,hidden:Cn,noArrow:A,clickable:b,closeOnEsc:C,closeOnScroll:I,closeOnResize:X,openEvents:Z,closeEvents:L,globalCloseEvents:U,imperativeModeOnly:H,style:v,position:g,isOpen:y,defaultIsOpen:N,border:P,opacity:q,arrowColor:Y,arrowSize:O,setIsOpen:Q,afterShow:J,afterHide:nt,disableTooltip:vt,activeAnchor:yt,previousActiveAnchor:Qe.current,setActiveAnchor:dt=>{Ct((St=>(dt?.isSameNode(St)||(Qe.current=St),dt)))},role:pt};return it.createElement(Bh,{...zn})}));typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",(t=>{t.detail.disableCore||Vi({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}
2.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||Vi({css:`
3.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})}));const Yh="https://raw.githubusercontent.com/zcreativelabs/react-simple-maps/master/topojson-maps/brazil.json",ea={Aguardando:"#FBBF24",Enviado:"#60A5FA",Resolvido:"#4ADE80","Sem Resposta":"#F87171",default:"#9CA3AF"},Zh=({data:t})=>qt.jsxs(qt.Fragment,{children:[qt.jsxs(Xo,{projection:"geoMercator",projectionConfig:{scale:750,center:[-54,-15]},style:{width:"100%",height:"auto"},children:[qt.jsx(Go,{geography:Yh,children:({geographies:e})=>e.map(n=>qt.jsx(Sh,{geography:n,fill:"transparent",stroke:"#8B5CF6",strokeWidth:.5,style:{default:{outline:"none"},hover:{outline:"none"},pressed:{outline:"none"}}},n.rsmKey))}),t.map(({longitude:e,latitude:n,council_name:r,council_city:o,council_state:i,status:a},u)=>{const l=ea[a]||ea.default;return qt.jsx(Uo,{coordinates:[e,n],"data-tooltip-id":"map-tooltip","data-tooltip-html":`
4                                <div style="font-weight: 700; font-size: 1rem; color: #fff;">${r}</div>
5                                <div style="font-size: 0.875rem; color: #D1D5DB;">${o}, ${i}</div>
6                                <div style="margin-top: 4px; display: flex; align-items: center; gap: 4px;">
7                                    <span style="width: 8px; height: 8px; border-radius: 9999px; background-color: ${l};"></span>
8                                    <span style="font-weight: 600; color: ${l};">${a}</span>
9                                </div>
10                            `,children:qt.jsxs(bu.g,{initial:{scale:0},animate:{scale:1},transition:{duration:.3,delay:u*.02},children:[qt.jsxs("circle",{r:8,fill:l,fillOpacity:.3,stroke:"none",children:[qt.jsx("animate",{attributeName:"r",from:"8",to:"15",dur:"1.5s",begin:"0s",repeatCount:"indefinite"}),qt.jsx("animate",{attributeName:"opacity",from:"1",to:"0",dur:"1.5s",begin:"0s",repeatCount:"indefinite"})]}),qt.jsx("circle",{r:5,fill:l,stroke:"#fff",strokeWidth:1.5})]})},u)})]}),qt.jsx(Gh,{id:"map-tooltip",style:{backgroundColor:"rgba(17, 24, 39, 0.8)",backdropFilter:"blur(4px)",color:"#fff",border:"1px solid rgba(139, 92, 246, 0.5)",borderRadius:"0.75rem",padding:"8px 16px",boxShadow:"0 4px 30px rgba(0, 0, 0, 0.1)"}})]}),Vh=M.memo(Zh);export{Vh as default};

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.