r&&(p-i)*(r-a)>(d-a)*(e-i)&&++t:d<=r&&(p-i)*(r-a)<(d-a)*(e-i)&&--t;return t}(),n=y&&t,o=(u=Object(mt.a)(u)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&ht(u,s,t,i,a),a.polygonEnd());b=a,u=c=l=null}};function M(e,t){o(e,t)&&b.point(e,t)}function E(i,a){var u=o(i,a);if(c&&l.push([i,a]),g)f=i,p=a,d=u,g=!1,u&&(b.lineStart(),b.point(i,a));else if(u&&m)b.point(i,a);else{var s=[h=Math.max(yt,Math.min(gt,h)),v=Math.max(yt,Math.min(gt,v))],w=[i=Math.max(yt,Math.min(gt,i)),a=Math.max(yt,Math.min(gt,a))];ft(s,w,e,t,n,r)?(m||(b.lineStart(),b.point(s[0],s[1])),b.point(w[0],w[1]),u||b.lineEnd(),y=!1):u&&(b.lineStart(),b.point(i,a),y=!1)}h=i,v=a,m=u}return C}}var wt,Ct,Mt,Et=function(){var e,t,n,r=0,o=0,i=960,a=500;return n={stream:function(n){return e&&t===n?e:e=bt(r,o,i,a)(t=n)},extent:function(u){return arguments.length?(r=+u[0][0],o=+u[0][1],i=+u[1][0],a=+u[1][1],e=t=null,n):[[r,o],[i,a]]}}},Pt=r(),Ot=function(e,t){var n=t[0],r=t[1],o=[M(n),-g(n),0],i=0,a=0;Pt.reset();for(var c=0,p=e.length;c=0?1:-1,L=N*k,R=L>s,T=w*x;if(Pt.add(m(T*N*M(L),C*j+T*g(L))),i+=R?k+N*f:k,R^y>=n^O>=n){var A=Q(K(v),K(P));te(A);var F=Q(o,A);te(F);var D=(R^k>=0?-1:1)*S(F[2]);(r>D||r===D&&(A[0]||A[1]))&&(a+=R^k>=0?1:-1)}}return(i<-u||iu})).map(c)).concat(Object(mt.b)(y(i/v)*v,o,v).filter((function(e){return h(e%g)>u})).map(l))}return w.lines=function(){return C().map((function(e){return{type:"LineString",coordinates:e}}))},w.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(p(a).slice(1),f(n).reverse().slice(1),p(s).reverse().slice(1))]}},w.extent=function(e){return arguments.length?w.extentMajor(e).extentMinor(e):w.extentMinor()},w.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),w.precision(b)):[[r,s],[n,a]]},w.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),i>o&&(n=i,i=o,o=n),w.precision(b)):[[t,i],[e,o]]},w.step=function(e){return arguments.length?w.stepMajor(e).stepMinor(e):w.stepMinor()},w.stepMajor=function(e){return arguments.length?(m=+e[0],g=+e[1],w):[m,g]},w.stepMinor=function(e){return arguments.length?(d=+e[0],v=+e[1],w):[d,v]},w.precision=function(u){return arguments.length?(b=+u,c=Vt(i,o,90),l=qt(t,e,b),f=Vt(s,a,90),p=qt(r,n,b),w):b},w.extentMajor([[-180,-90+u],[180,90-u]]).extentMinor([[-180,-80-u],[180,80+u]])}function Yt(){return Wt()()}var Zt,Xt,Kt,Jt,Qt=function(e,t){var n=e[0]*d,r=e[1]*d,o=t[0]*d,i=t[1]*d,a=g(r),u=M(r),s=g(i),c=M(i),l=a*g(n),f=a*M(n),h=s*g(o),v=s*M(o),y=2*S(P(x(i-r)+a*s*x(o-n))),b=M(y),w=y?function(e){var t=M(e*=y)/b,n=M(y-e)/b,r=n*l+t*h,o=n*f+t*v,i=n*u+t*c;return[m(o,r)*p,m(i,P(r*r+o*o))*p]}:function(){return[n*p,r*p]};return w.distance=y,w},$t=function(e){return e},en=r(),tn=r(),nn={point:j,lineStart:j,lineEnd:j,polygonStart:function(){nn.lineStart=rn,nn.lineEnd=un},polygonEnd:function(){nn.lineStart=nn.lineEnd=nn.point=j,en.add(h(tn)),tn.reset()},result:function(){var e=en/2;return en.reset(),e}};function rn(){nn.point=on}function on(e,t){nn.point=an,Zt=Kt=e,Xt=Jt=t}function an(e,t){tn.add(Jt*e-Kt*t),Kt=e,Jt=t}function un(){an(Zt,Xt)}var sn=nn,cn=1/0,ln=cn,fn=-cn,pn=fn;var dn,hn,vn,mn,gn={point:function(e,t){efn&&(fn=e);tpn&&(pn=t)},lineStart:j,lineEnd:j,polygonStart:j,polygonEnd:j,result:function(){var e=[[cn,ln],[fn,pn]];return fn=pn=-(ln=cn=1/0),e}},yn=0,bn=0,wn=0,Cn=0,Mn=0,En=0,Pn=0,On=0,_n=0,Sn={point:xn,lineStart:jn,lineEnd:Ln,polygonStart:function(){Sn.lineStart=Rn,Sn.lineEnd=Tn},polygonEnd:function(){Sn.point=xn,Sn.lineStart=jn,Sn.lineEnd=Ln},result:function(){var e=_n?[Pn/_n,On/_n]:En?[Cn/En,Mn/En]:wn?[yn/wn,bn/wn]:[NaN,NaN];return yn=bn=wn=Cn=Mn=En=Pn=On=_n=0,e}};function xn(e,t){yn+=e,bn+=t,++wn}function jn(){Sn.point=kn}function kn(e,t){Sn.point=Nn,xn(vn=e,mn=t)}function Nn(e,t){var n=e-vn,r=t-mn,o=P(n*n+r*r);Cn+=o*(vn+e)/2,Mn+=o*(mn+t)/2,En+=o,xn(vn=e,mn=t)}function Ln(){Sn.point=xn}function Rn(){Sn.point=An}function Tn(){Fn(dn,hn)}function An(e,t){Sn.point=Fn,xn(dn=vn=e,hn=mn=t)}function Fn(e,t){var n=e-vn,r=t-mn,o=P(n*n+r*r);Cn+=o*(vn+e)/2,Mn+=o*(mn+t)/2,En+=o,Pn+=(o=mn*e-vn*t)*(vn+e),On+=o*(mn+t),_n+=3*o,xn(vn=e,mn=t)}var Dn=Sn;function Bn(e){this._context=e}Bn.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,f)}},result:j};var In,Un,zn,Gn,Hn,Vn=r(),qn={point:j,lineStart:function(){qn.point=Wn},lineEnd:function(){In&&Yn(Un,zn),qn.point=j},polygonStart:function(){In=!0},polygonEnd:function(){In=null},result:function(){var e=+Vn;return Vn.reset(),e}};function Wn(e,t){qn.point=Yn,Un=Gn=e,zn=Hn=t}function Yn(e,t){Gn-=e,Hn-=t,Vn.add(P(Gn*Gn+Hn*Hn)),Gn=e,Hn=t}var Zn=qn;function Xn(){this._string=[]}function Kn(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Xn.prototype={_circle:Kn(4.5),pointRadius:function(e){return this._circle=Kn(e),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}}};var Jn=function(e,t){var n,r,o=4.5;function i(e){return e&&("function"===typeof o&&r.pointRadius(+o.apply(this,arguments)),U(e,n(r))),r.result()}return i.area=function(e){return U(e,n(sn)),sn.result()},i.measure=function(e){return U(e,n(Zn)),Zn.result()},i.bounds=function(e){return U(e,n(gn)),gn.result()},i.centroid=function(e){return U(e,n(Dn)),Dn.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,$t):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new Xn):new Bn(t=e),"function"!==typeof o&&r.pointRadius(o),i):t},i.pointRadius=function(e){return arguments.length?(o="function"===typeof e?e:(r.pointRadius(+e),+e),i):o},i.projection(e).context(t)},Qn=function(e,t,n,r){return function(o,i){var a,u,s,c=t(i),l=o.invert(r[0],r[1]),f=lt(),p=t(f),d=!1,h={point:v,lineStart:g,lineEnd:y,polygonStart:function(){h.point=b,h.lineStart=w,h.lineEnd=C,u=[],a=[]},polygonEnd:function(){h.point=v,h.lineStart=g,h.lineEnd=y,u=Object(mt.a)(u);var e=Ot(a,l);u.length?(d||(i.polygonStart(),d=!0),ht(u,er,e,n,i)):e&&(d||(i.polygonStart(),d=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),d&&(i.polygonEnd(),d=!1),u=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function v(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function m(e,t){var n=o(e,t);c.point(n[0],n[1])}function g(){h.point=m,c.lineStart()}function y(){h.point=v,c.lineEnd()}function b(e,t){s.push([e,t]);var n=o(e,t);p.point(n[0],n[1])}function w(){p.lineStart(),s=[]}function C(){b(s[0][0],s[0][1]),p.lineEnd();var e,t,n,r,o=p.clean(),c=f.result(),l=c.length;if(s.pop(),a.push(s),s=null,l)if(1&o){if((t=(n=c[0]).length-1)>0){for(d||(i.polygonStart(),d=!0),i.lineStart(),e=0;e1&&2&o&&c.push(c.pop().concat(c.shift())),u.push(c.filter($n))}return h}};function $n(e){return e.length>1}function er(e,t){return((e=e.x)[0]<0?e[1]-c-u:c-e[1])-((t=t.x)[0]<0?t[1]-c-u:c-t[1])}var tr=Qn((function(){return!0}),(function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var l=i>0?s:-s,f=h(i-n);h(f-s)0?c:-c),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(i,r),t=0):o!==l&&f>=s&&(h(n-o)u?v((M(t)*(i=g(r))*M(n)-M(r)*(o=g(t))*M(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=i,r=a),o=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var o;if(null==e)o=n*c,r.point(-s,o),r.point(0,o),r.point(s,o),r.point(s,0),r.point(s,-o),r.point(0,-o),r.point(-s,-o),r.point(-s,0),r.point(-s,o);else if(h(e[0]-t[0])>u){var i=e[0]0,o=h(n)>u;function i(e,t){return g(e)*g(t)>n}function a(e,t,r){var o=[1,0,0],i=Q(K(e),K(t)),a=J(i,i),c=i[0],l=a-c*c;if(!l)return!r&&e;var f=n*a/l,p=-n*c/l,d=Q(o,i),v=ee(o,f);$(v,ee(i,p));var m=d,g=J(v,m),y=J(m,m),b=g*g-y*(J(v,v)-1);if(!(b<0)){var w=P(b),C=ee(m,(-g-w)/y);if($(C,v),C=X(C),!r)return C;var M,E=e[0],O=t[0],_=e[1],S=t[1];O0^C[1]<(h(C[0]-E)s^(E<=C[0]&&C[0]<=O)){var k=ee(m,(-g+w)/y);return $(k,v),[C,X(k)]}}}function c(t,n){var o=r?e:s-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return Qn(i,(function(e){var t,n,l,f,p;return{lineStart:function(){f=l=!1,p=1},point:function(d,h){var v,m=[d,h],g=i(d,h),y=r?g?0:c(d,h):g?c(d+(d<0?s:-s),h):0;if(!t&&(f=l=g)&&e.lineStart(),g!==l&&(v=a(t,m),(pt(t,v)||pt(m,v))&&(m[0]+=u,m[1]+=u,g=i(m[0],m[1]))),g!==l)p=0,g?(e.lineStart(),v=a(m,t),e.point(v[0],v[1])):(v=a(t,m),e.point(v[0],v[1]),e.lineEnd()),t=v;else if(o&&t&&r^g){var b;y&n||!(b=a(m,t,!0))||(p=0,r?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1])))}!g||t&&pt(t,m)||e.point(m[0],m[1]),t=m,l=g,n=y},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return p|(f&&l)<<1}}}),(function(n,r,o,i){ut(i,e,t,o,n,r)}),r?[0,-e]:[-s,e-s])},rr=function(e){return{stream:or(e)}};function or(e){return function(t){var n=new ir;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ir(){}function ar(e,t,n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),U(n,e.stream(gn));var a=gn.result(),u=Math.min(r/(a[1][0]-a[0][0]),o/(a[1][1]-a[0][1])),s=+t[0][0]+(r-u*(a[1][0]+a[0][0]))/2,c=+t[0][1]+(o-u*(a[1][1]+a[0][1]))/2;return null!=i&&e.clipExtent(i),e.scale(150*u).translate([s,c])}function ur(e,t,n){return ar(e,[[0,0],t],n)}ir.prototype={constructor:ir,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var sr=16,cr=g(30*d),lr=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,c,l,f,p,d,v,g,y,b){var w=l-r,C=f-o,M=w*w+C*C;if(M>4*t&&y--){var E=a+d,O=s+v,_=c+g,x=P(E*E+O*O+_*_),j=S(_/=x),k=h(h(_)-1)t||h((w*T+C*A)/M-.5)>.3||a*d+s*v+c*g2?e[2]%360*d:0,N()):[y*p,b*p,w*p]},x.precision=function(e){return arguments.length?(S=lr(k,_=e*e),L()):P(_)},x.fitExtent=function(e,t){return ar(x,e,t)},x.fitSize=function(e,t){return ur(x,e,t)},function(){return t=e.apply(this,arguments),x.invert=t.invert&&j,N()}}function hr(e){var t=0,n=s/3,r=dr(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*d,n=e[1]*d):[t*p,n*p]},o}function vr(e,t){var n=M(e),r=(n+M(t))/2;if(h(r)=.12&&o<.234&&r>=-.425&&r<-.214?s:o>=.166&&o<.234&&r>=-.214&&r<-.115?c:a).invert(e)},f.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var o=-1;++o0?t<-c+u&&(t=-c+u):t>c-u&&(t=c-u);var n=o/C(xr(t),r);return[n*M(r*e),o-n*g(r*e)]}return i.invert=function(e,t){var n=o-t,i=E(r)*P(e*e+n*n);return[m(e,h(n))/r*E(n),2*v(C(o/i,1/r))-c]},i}var kr=function(){return hr(jr).scale(109.5).parallels([30,30])};function Nr(e,t){return[e,t]}Nr.invert=Nr;var Lr=function(){return pr(Nr).scale(152.63)};function Rr(e,t){var n=g(e),r=e===t?M(e):(n-g(t))/(t-e),o=n/r+e;if(h(r)2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)}},aqGn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n1?this.handleMouseDown(t[0]):this.handleMouseUp()}},{key:"preventTouchScroll",value:function(e){e.touches.length>1&&e.preventDefault()}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.mouseX,r=t.mouseY,o=t.resizeFactorX,i=t.resizeFactorY,a=this.props,s=(a.projection,a.center),c=a.zoom,l=e.zoom/c,f=JSON.stringify(e.center)!==JSON.stringify(s);this.setState({zoom:e.zoom,mouseX:f?(0,u.calculateMousePosition)("x",e.projection,e,e.zoom,o):n*l,mouseY:f?(0,u.calculateMousePosition)("y",e.projection,e,e.zoom,i):r*l})}},{key:"handleResize",value:function(){var e=this.props,t=e.width,n=e.height,r=(e.projection,e.zoom,(0,u.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().width,t)),o=(0,u.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().height,n),i=1/r*this.state.resizeFactorX,a=1/o*this.state.resizeFactorY;this.setState({resizeFactorX:r,resizeFactorY:o,mouseX:this.state.mouseX*i,mouseY:this.state.mouseY*a})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.width,n=e.height,r=e.projection,o=e.zoom,i=(0,u.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().width,t),a=(0,u.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().height,n);this.setState({resizeFactorX:i,resizeFactorY:a,mouseX:(0,u.calculateMousePosition)("x",r,this.props,o,i),mouseY:(0,u.calculateMousePosition)("y",r,this.props,o,a)}),window.addEventListener("resize",this.handleResize),window.addEventListener("mouseup",this.handleMouseUp),this.zoomableGroupNode.addEventListener("touchmove",this.preventTouchScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("mouseup",this.handleMouseUp),this.zoomableGroupNode.removeEventListener("touchmove",this.preventTouchScroll)}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.height,o=t.zoom,i=t.style,s=(t.projection,t.children),c=this.state,l=c.mouseX,f=c.mouseY,p=c.resizeFactorX,d=c.resizeFactorY;return a.default.createElement("g",{className:"rsm-zoomable-group",ref:function(t){return e.zoomableGroupNode=t},transform:"\n translate(\n "+Math.round(100*(n/2+p*l))/100+"\n "+Math.round(100*(r/2+d*f))/100+"\n )\n scale("+o+")\n translate("+-n/2+" "+-r/2+")\n ",onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleMouseUp,style:i},a.default.createElement("rect",{x:this.state.backdrop.x,y:this.state.backdrop.y,width:this.state.backdrop.width,height:this.state.backdrop.height,fill:"transparent",style:{strokeWidth:0}}),(0,u.createNewChildren)(s,this.props))}}]),t}(i.Component);s.defaultProps={center:[0,0],backdrop:{x:[-179.9,179.9],y:[89.9,-89.9]},zoom:1,disablePanning:!1},t.default=s},bIsL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n5&&void 0!==arguments[5]?arguments[5]:n.center,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n.width,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:n.height,s={x:0,y:1},c=!!t.rotate,l=!!c&&t.rotate().map((function(e){return-e})),f=l?t.rotate(l)([-i[0],-i[1]]):t([i[0],i[1]]),p=f?(f[s[e]]-(0===s[e]?a:u)/2)*r*(1/o):0;c&&t.rotate([-l[0],-l[1],-l[2]]);return l?p:-p},t.isChildOfType=a,t.createNewChildren=function(e,t){if(!e)return;return e.length?e.map((function(e,n){if(e)return a(e,["Geographies"])?i.default.cloneElement(e,{key:"zoomable-child-"+n,projection:t.projection}):a(e,["Group","Markers","Lines","Annotations","Annotation","Graticule"])?i.default.cloneElement(e,{key:"zoomable-child-"+n,projection:t.projection,zoom:t.zoom,width:t.width,height:t.height,groupName:t.groupName,itemName:t.itemName}):e})):a(e,["Geographies"])?i.default.cloneElement(e,{projection:t.projection}):a(e,["Group","Markers","Lines","Annotations","Annotation","Graticule"])?i.default.cloneElement(e,{projection:t.projection,zoom:t.zoom,width:t.width,height:t.height,groupName:t.groupName,itemName:t.itemName}):e},t.roundPath=function(e,t){if(!e)return;return e.replace(/[\d\.-][\d\.e-]*/g,(function(e){return Math.round(e*(1/t))/(1/t)}))},t.createConnectorPath=function(e,t,n){var r=t[0],o=t[1];return"M0,0 Q "+(n+1)/2*r+","+(o-(n+1)/2*o)+" "+r+","+o},t.createTextAnchor=function(e){return e>0?"start":e<0?"end":"middle"},t.computeBackdrop=function(e,t){var n=e.rotate,r=n?e.rotate():null,o=n?e.rotate([0,0,0])([t.x[0],t.y[0]]):e([t.x[0],t.y[0]]),i=n?e.rotate([0,0,0])([t.x[1],t.y[1]]):e([t.x[1],t.y[1]]),a=o?o[0]:0,u=i?i[0]:0,s=o?o[1]:0,c=i?i[1]:0,l=u-a,f=c-s;r&&e.rotate(r);return{x:a,y:s,width:l,height:f}};var r,o=n("q1tI"),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){return-1!==t.indexOf(e.props.componentIdentifier)}},cWyK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("/rf6");function o(e,t,n){if(null!==e)for(var r,i,a,u,s,c,l,f,p=0,d=0,h=e.type,v="FeatureCollection"===h,m="Feature"===h,g=v?e.features.length:1,y=0;yc||d>l||h>f)return s=o,c=n,l=d,f=h,void(a=0);var v=r.lineString([s,o],e.properties);if(!1===t(v,n,i,h,a))return!1;a++,s=o}))&&void 0}}}))}function l(e,t){if(!e)throw new Error("geojson is required");s(e,(function(e,n,o){if(null!==e.geometry){var i=e.geometry.type,a=e.geometry.coordinates;switch(i){case"LineString":if(!1===t(e,n,o,0,0))return!1;break;case"Polygon":for(var u=0;uy;return a.default.createElement("g",{className:"rsm-marker"+(d?" rsm-marker--pressed":"")+(h?" rsm-marker--hover":""),transform:"translate(\n "+m[0]+"\n "+m[1]+"\n ) "+v,style:r[b?"hidden":d||h?d?"pressed":"hover":"default"],onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleMouseClick,onMouseMove:this.handleMouseMove,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:o?0:-1},s)}}]),t}(i.Component);s.defaultProps={style:{default:{},hover:{},pressed:{}},marker:{coordinates:[0,0]},tabable:!0,preserveMarkerAspect:!0},t.default=s},egBM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["groupName","itemName","componentIdentifier"]));return o.default.createElement(i.default,r({groupName:t,itemName:n},a))};u.defaultProps={componentIdentifier:"Markers",groupName:"markers",itemName:"marker"},t.default=u},endd:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},eqyj:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},fJyB:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),i=n("TSYQ"),a=n.n(i),u=n("8Kt/"),s=n.n(u),c=o.a.createElement,l=function(e){var t=e.title,n=e.description;return c(s.a,null,c("title",{key:"title"},t?"".concat(t," | Trade Flow Map"):"Trade Flow Map"),c("meta",{key:"description",name:"description",content:n||"Create images of maps with flows representing the exchange of a variety of commodities across the world."}))};l.defaultProps={title:null,description:null};var f=l,p=o.a.createElement,d=function(){return p("svg",{"aria-hidden":"true",style:{position:"absolute",width:0,height:0,overflow:"hidden"},version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},p("defs",null,p("symbol",{id:"icon-close",viewBox:"0 0 9 9"},p("title",null,"Close"),p("path",{d:"M7.41.839l1.087 1.087-7.07 7.071L.338 7.91z"}),p("path",{d:"M8.498 7.91L7.41 8.998.339 1.927 1.427.839z"})),p("symbol",{id:"icon-bottom-arrow",viewBox:"0 0 15 15"},p("title",null,"Bottom arrow"),p("path",{strokeWidth:"2",d:"M3 5l4.5 5L12 5",fill:"none"})),p("symbol",{id:"icon-eye",viewBox:"0 0 22 15"},p("title",null,"Visible"),p("path",{d:"M11 0C6 0 1.73 3.11 0 7.5 1.73 11.89 6 15 11 15s9.27-3.11 11-7.5C20.27 3.11 16 0 11 0zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})),p("symbol",{id:"icon-slashed-eye",viewBox:"0 0 23 21"},p("title",null,"Hidden"),p("path",{d:"M22.763 9.992a18.948 18.948 0 0 0-3.133-3.619L8.367 17.637c.997.324 2.039.493 3.088.5 6.75 0 11.125-6.838 11.308-7.13a.955.955 0 0 0 0-1.015zM21.674.28a.955.955 0 0 0-1.349 0l-3.873 3.873a10.746 10.746 0 0 0-4.997-1.29C4.705 2.864.329 9.702.146 9.994a.955.955 0 0 0 0 1.015 19.027 19.027 0 0 0 4.638 4.813L2.19 18.416a.955.955 0 1 0 1.349 1.35L21.674 1.629a.955.955 0 0 0 0-1.35zM7.636 10.5a3.818 3.818 0 0 1 3.819-3.818 3.708 3.708 0 0 1 1.92.548l-5.19 5.19a3.717 3.717 0 0 1-.549-1.92z"})),p("symbol",{id:"icon-opacity",viewBox:"0 0 16 16"},p("title",null,"Opacity"),p("path",{d:"M7 0v15.876A8.001 8.001 0 0 1 7 0zm5.001 1.009v13.858a7.95 7.95 0 0 1-2 .819V.19a7.95 7.95 0 0 1 2 .819zm2 1.639A7.97 7.97 0 0 1 16 7.938a7.97 7.97 0 0 1-1.999 5.29V2.648z"})),p("symbol",{id:"icon-menu",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},p("title",null,"Menu"),p("circle",{cx:"2.41379",cy:"2.91355",r:"2.41379",fill:"#FFFDF8"}),p("circle",{cx:"9.99973",cy:"2.91355",r:"2.41379",fill:"#FFFDF8"}),p("circle",{cx:"17.5866",cy:"2.91355",r:"2.41379",fill:"#FFFDF8"}),p("circle",{cx:"2.41379",cy:"10.5",r:"2.41379",fill:"#FFFDF8"}),p("circle",{cx:"9.99973",cy:"10.5",r:"2.41379",fill:"#FFFDF8"}),p("circle",{cx:"17.5866",cy:"10.5",r:"2.41379",fill:"#FFFDF8"}),p("circle",{cx:"2.41379",cy:"18.0864",r:"2.41379",fill:"#FFFDF8"}),p("circle",{cx:"9.99973",cy:"18.0864",r:"2.41379",fill:"#FFFDF8"}),p("circle",{cx:"17.5866",cy:"18.0864",r:"2.41379",fill:"#FFFDF8"})),p("symbol",{id:"icon-menu-close",width:"51",height:"51",viewBox:"0 0 51 51",fill:"none"},p("line",{x1:"14.186",y1:"14.1863",x2:"36.8134",y2:"36.8137",stroke:"#444242",strokeWidth:"3",strokeLinecap:"round"}),p("line",{x1:"36.8135",y1:"14.1863",x2:"14.1861",y2:"36.8137",stroke:"#444242",strokeWidth:"3",strokeLinecap:"round"})),p("symbol",{id:"icon-earth-atlas",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},p("path",{d:"M18.7783 3.22251C16.7014 1.14561 13.9379 0 10.9999 0C10.7628 0 10.5693 0.191568 10.5693 0.430554C10.5693 0.66954 10.7609 0.861108 10.9999 0.861108C16.5914 0.861108 21.1416 5.41132 21.1416 11.0028C21.1416 13.0683 20.5252 15.0542 19.3587 16.748C19.224 16.9433 19.2733 17.2108 19.4687 17.3454C19.5427 17.3966 19.628 17.4213 19.7115 17.4213C19.8481 17.4213 19.9827 17.3568 20.0662 17.2354C21.3313 15.3975 22.0008 13.2428 22.0008 11.0028C22.0008 8.06482 20.8571 5.30131 18.7783 3.22441V3.22251Z",fill:"white"}),p("path",{d:"M2.66201 2.86967C3.74124 1.79044 5.30413 1.32954 6.79115 1.6387C7.10031 3.12573 6.63941 4.68672 5.56018 5.76785C4.59096 6.73707 3.23292 7.20745 1.89005 7.06899C2.59373 5.82096 3.61226 4.78914 4.86219 4.0665C5.06704 3.947 5.13722 3.68526 5.01962 3.47852C4.90013 3.27367 4.63838 3.20349 4.43164 3.32109C3.16274 4.05512 2.11006 5.07555 1.34379 6.30462C1.2812 5.03951 1.74969 3.78199 2.6639 2.86967H2.66201ZM9.52431 4.46101C9.30998 4.80052 9.10135 5.24246 8.90978 5.82096C8.67838 6.51326 8.50009 7.31936 8.3787 8.19374H4.9134C5.77831 6.32738 7.47586 4.92381 9.52621 4.46101H9.52431ZM10.9981 4.2979C11.3243 4.2979 11.8307 4.77018 12.2726 6.09408C12.4775 6.70862 12.6387 7.41988 12.7525 8.19564H9.2455C9.3593 7.41988 9.52052 6.70862 9.72536 6.09408C10.1673 4.77018 10.6718 4.2979 11 4.2979H10.9981ZM17.0846 8.19374H13.6193C13.4979 7.31936 13.3177 6.51515 13.0882 5.82096C12.8948 5.24246 12.6861 4.80052 12.4737 4.46101C14.524 4.92381 16.2216 6.32738 17.0865 8.19374H17.0846ZM17.701 11.0009C17.701 11.6837 17.5986 12.3437 17.407 12.964C17.371 12.9545 17.3331 12.9488 17.2932 12.9488H13.7179C13.7748 12.321 13.8052 11.6685 13.8052 11.0009C13.8052 10.3332 13.7748 9.68077 13.7179 9.05295H17.4127C17.6005 9.66939 17.701 10.3238 17.701 11.0009ZM12.4718 17.5407C12.6861 17.2012 12.8948 16.7593 13.0863 16.1808C13.3177 15.4885 13.496 14.6824 13.6174 13.808H17.0827C16.2178 15.6744 14.5203 17.0779 12.4699 17.5407H12.4718ZM10.9981 17.7039C10.6718 17.7039 10.1654 17.2316 9.72347 15.9077C9.51862 15.2931 9.3574 14.5819 9.2436 13.8061H12.7506C12.6368 14.5819 12.4756 15.2931 12.2708 15.9077C11.8288 17.2316 11.3243 17.7039 10.9962 17.7039H10.9981ZM9.05013 11.0009C9.05013 10.3313 9.08048 9.67697 9.14118 9.05295H12.8549C12.9156 9.67697 12.946 10.3313 12.946 11.0009C12.946 11.6704 12.9156 12.3248 12.8549 12.9488H9.14118C9.08048 12.3248 9.05013 11.6704 9.05013 11.0009ZM4.91151 13.808H8.3768C8.49819 14.6824 8.67838 15.4866 8.90788 16.1808C9.10135 16.7593 9.30998 17.2012 9.52242 17.5407C7.47207 17.0779 5.77451 15.6744 4.90961 13.808H4.91151ZM4.58907 12.964C4.3975 12.3419 4.29508 11.6837 4.29508 11.0009C4.29508 10.3181 4.3956 9.66939 4.58338 9.05295H8.27817C8.22127 9.68077 8.19092 10.3351 8.19092 11.0009C8.19092 11.6666 8.22127 12.321 8.27817 12.9488H4.70287C4.66304 12.9488 4.6251 12.9545 4.58907 12.964ZM17.3426 19.4678C17.2079 19.2724 16.9405 19.2231 16.7451 19.3578C15.0513 20.5243 13.0655 21.1407 11 21.1407C5.40845 21.1407 0.858234 16.5905 0.858234 10.999C0.858234 9.92165 1.02514 8.86708 1.35517 7.85613C1.6852 7.91872 2.01902 7.94907 2.34905 7.94907C2.99583 7.94907 3.63692 7.83147 4.24007 7.60766C3.72606 8.62809 3.43587 9.78129 3.43587 10.999C3.43587 15.1699 6.82908 18.5631 11 18.5631C15.1708 18.5631 18.564 15.1699 18.564 10.999C18.564 6.82811 15.1708 3.43489 11 3.43489C9.71588 3.43489 8.50768 3.75544 7.44741 4.32255C7.79261 3.32109 7.84383 2.221 7.56311 1.16832C7.52328 1.02038 7.40758 0.902781 7.25964 0.864847C5.40465 0.369805 3.41121 0.904677 2.05506 2.25893C0.698911 3.61318 0.192488 5.51369 0.626835 7.32884C0.209558 8.5048 -0.000976562 9.73767 -0.000976562 10.999C-0.000976562 13.937 1.14274 16.7005 3.22154 18.7774C5.29844 20.8543 8.06195 21.9999 11 21.9999C13.24 21.9999 15.3946 21.3304 17.2325 20.0653C17.4279 19.9306 17.4772 19.6632 17.3426 19.4678Z",fill:"white"}),p("path",{d:"M18.4748 18.0471C18.361 18.0471 18.251 18.0926 18.1713 18.1723C18.0917 18.2519 18.0461 18.3638 18.0461 18.4757C18.0461 18.5876 18.0917 18.6995 18.1713 18.7792C18.251 18.8588 18.3629 18.9044 18.4748 18.9044C18.5867 18.9044 18.6986 18.8588 18.7782 18.7792C18.8579 18.6995 18.9034 18.5876 18.9034 18.4757C18.9034 18.3638 18.8579 18.2519 18.7782 18.1723C18.6986 18.0926 18.5867 18.0471 18.4748 18.0471Z",fill:"white"})),p("symbol",{id:"icon-weather-almanac",width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},p("path",{d:"M18.3607 5.84931C18.2657 5.6786 18.0668 5.59413 17.8767 5.6434C17.6884 5.69268 17.5564 5.86339 17.5564 6.05873C17.5564 8.26737 17.025 10.0079 16.5375 11.1659C16.4196 10.1363 15.9866 8.88684 14.5735 7.94355C13.6759 7.3452 13.1445 6.62541 12.9931 5.80355C12.6869 4.15279 13.9065 2.4334 14.4908 1.60802C14.6984 1.31589 14.7847 1.19094 14.8234 1.06599C14.8638 0.935756 14.841 0.793206 14.76 0.682334C14.6791 0.571463 14.5506 0.506348 14.4133 0.506348C12.4036 0.506348 10.5011 1.14518 8.91197 2.35421C8.72367 2.49852 8.68671 2.76778 8.83102 2.95608C8.97533 3.14439 9.24459 3.18135 9.43289 3.03704C10.6507 2.11135 12.0709 1.55523 13.5827 1.40564C12.9174 2.36829 11.8158 4.15631 12.1484 5.95842C12.3437 7.01786 13.0001 7.92419 14.0965 8.6563C16.2348 10.0818 15.5977 12.3538 15.7121 13.0155C15.7455 13.2073 15.9022 13.3516 16.0958 13.3692C16.2858 13.3868 16.4653 13.276 16.5357 13.0982C16.7082 12.7286 18.0474 10.6608 18.3537 7.39095C18.4487 7.52294 18.5473 7.65669 18.6476 7.7922C19.8126 9.37784 21.1343 11.1764 21.1343 14.0204C21.1343 15.5356 20.638 17.1265 19.6982 18.6348H16.7082V17.9537L19.1597 15.5022C19.3269 15.335 19.3269 15.0622 19.1597 14.895C18.9925 14.7278 18.7197 14.7278 18.5525 14.895L16.7082 16.7394V15.1995C16.7082 14.9619 16.5164 14.7701 16.2788 14.7701C16.0412 14.7701 15.8494 14.9619 15.8494 15.1995V18.6365H11.4233V15.3772L13.8748 12.9257C14.042 12.7586 14.042 12.4858 13.8748 12.3186C13.7076 12.1514 13.4348 12.1514 13.2676 12.3186L11.4233 14.1629V8.75485C11.4233 8.51727 11.2315 8.32544 10.9939 8.32544C10.7563 8.32544 10.5645 8.51727 10.5645 8.75485V11.5847L8.72015 9.74038C8.55296 9.57319 8.28018 9.57319 8.11299 9.74038C7.9458 9.90756 7.9458 10.1803 8.11299 10.3475L10.5645 12.799V18.6365H6.26865V13.9095C6.26865 13.6719 6.07682 13.4801 5.83924 13.4801C5.60166 13.4801 5.40983 13.6719 5.40983 13.9095V15.4494L3.56549 13.605C3.39831 13.4379 3.12553 13.4379 2.95834 13.605C2.79115 13.7722 2.79115 14.045 2.95834 14.2122L5.40983 16.6637V18.6348H2.24559C1.33574 17.167 0.855296 15.5761 0.855296 14.0204C0.855296 11.37 1.72291 9.02763 2.4515 7.52646C2.84219 6.7222 3.2364 6.06225 3.55493 5.57829C3.53206 7.2484 3.50214 9.53271 5.49255 11.5231C5.61574 11.6463 5.80053 11.6833 5.96067 11.6164C6.12082 11.5495 6.22641 11.3929 6.22641 11.2187V9.49751C6.22641 8.20753 6.51855 6.97562 7.09755 5.83699C7.2049 5.6258 7.12043 5.3671 6.90924 5.25975C6.69806 5.1524 6.43936 5.23687 6.332 5.44806C5.69317 6.70812 5.36936 8.07202 5.36936 9.49751V10.022C4.37503 8.52079 4.39791 6.91755 4.41727 5.58533C4.42431 5.13832 4.42959 4.71419 4.39439 4.33934C4.40495 4.02608 4.09345 3.81314 3.80835 3.92225C3.33495 4.10352 2.04321 6.42478 1.77219 6.96858C0.964408 8.58942 0 11.1272 0 14.0204C0 15.8119 0.571957 17.6387 1.65428 19.2982C1.73347 19.4197 1.86898 19.4936 2.01505 19.4936H19.9393C20.0854 19.4936 20.2191 19.4197 20.3001 19.2982C21.4123 17.5929 22.0001 15.7679 22.0001 14.0204C22.0001 10.8948 20.5289 8.89212 19.3462 7.2836C18.9731 6.775 18.6194 6.29455 18.3677 5.84579L18.3607 5.84931Z",fill:"white"}),p("path",{d:"M7.41971 3C7.65192 3 7.83941 3.18749 7.83941 3.41971C7.83941 3.65192 7.65192 3.83941 7.41971 3.83941C7.18749 3.83941 7 3.65192 7 3.41971C7 3.18749 7.18749 3 7.41971 3Z",fill:"white"})),p("symbol",{id:"icon-reforestation-app",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},p("mask",{id:"mask0_812_3213",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22"},p("path",{d:"M21.7437 0.249268H0.256226V21.7505H21.7437V0.249268Z",fill:"white"})),p("g",{mask:"url(#mask0_812_3213)"},p("path",{d:"M2.43926 16.0037L3.0757 16.6005C3.24083 16.7553 3.49884 16.7519 3.65881 16.5902L4.79408 15.455H6.80315V20.9111H5.04005V18.8126C5.04005 18.5804 4.85256 18.3929 4.62035 18.3929C4.38814 18.3929 4.20064 18.5804 4.20064 18.8126V20.9111H2.43754V16.0037H2.43926ZM6.64318 9.89215C5.99471 10.3187 5.20862 10.5458 4.37093 10.5458H3.43864C4.5309 9.67886 5.4804 8.68464 6.27336 7.57518C6.59158 7.50121 6.89604 7.37565 7.1747 7.2002C7.56688 8.11701 8.10355 8.72592 8.13107 8.75517C8.21019 8.84461 8.32372 8.8945 8.44413 8.8945C8.56281 8.8945 8.67806 8.84289 8.75719 8.75517C8.78471 8.72421 9.32138 8.11701 9.71356 7.2002C9.99222 7.37565 10.2967 7.50121 10.6149 7.57518C11.4302 8.71732 12.3832 9.72702 13.4565 10.5888H12.519C11.7226 10.5888 10.9366 10.348 10.2451 9.89387C10.0507 9.76659 9.78925 9.81991 9.66196 10.016C9.30418 10.5682 8.87415 11.1255 8.44413 11.6226C8.01754 11.1272 7.58408 10.5682 7.2263 10.016C7.09901 9.81991 6.83756 9.76659 6.64318 9.89387V9.89215ZM12.0718 16.8586L13.1434 19.0018C13.2036 19.1222 13.3189 19.2065 13.4513 19.2288C13.5838 19.2512 13.7197 19.2065 13.816 19.1119L14.3578 18.57V20.9145H12.679V20.0751C12.679 19.8429 12.4915 19.6554 12.2593 19.6554C12.0271 19.6554 11.8396 19.8429 11.8396 20.0751V20.9145H10.1608V17.8166L12.0718 16.862V16.8586ZM9.32138 20.9111H7.64256V11.9752C7.92638 12.3141 8.12419 12.5256 8.13967 12.5411C8.2188 12.6254 8.32888 12.6736 8.44413 12.6736C8.55937 12.6736 8.66946 12.6254 8.74859 12.5428C8.76407 12.5256 8.998 12.2779 9.31966 11.8875V20.9128L9.32138 20.9111ZM15.1972 15.7044L16.9603 16.5575V17.5535C16.9603 17.7857 17.1478 17.9732 17.38 17.9732C17.6123 17.9732 17.7997 17.7857 17.7997 17.5535V16.4681L18.8129 15.455H19.5628V20.9111H17.7997V20.0717C17.7997 19.8395 17.6123 19.652 17.38 19.652C17.1478 19.652 16.9603 19.8395 16.9603 20.0717V20.9111H15.1972V15.7044ZM0.676163 21.7505H21.3242C21.5564 21.7505 21.7439 21.563 21.7439 21.3308C21.7439 21.0986 21.5564 20.9111 21.3242 20.9111H20.4005V15.0352C20.4005 14.803 20.213 14.6155 19.9808 14.6155H18.6374C18.5256 14.6155 18.419 14.6603 18.3399 14.7377L17.2923 15.7852L14.9581 14.6568C14.8274 14.5932 14.6743 14.6018 14.5522 14.6792C14.4301 14.7566 14.3561 14.8908 14.3561 15.0352V17.3797L13.6319 18.1039L12.6326 16.1069C12.5294 15.8987 12.2765 15.8162 12.0701 15.9194L10.1591 16.874V10.8176C10.8918 11.2166 11.7003 11.4248 12.5173 11.4248H14.738C14.922 11.4248 15.0854 11.3044 15.1388 11.1272C15.1921 10.95 15.1233 10.7591 14.9702 10.6559C13.7369 9.83367 12.6463 8.82397 11.7192 7.64742H13.4789C13.6732 7.64742 13.8418 7.51326 13.8865 7.32404C13.9312 7.13483 13.8401 6.93874 13.6663 6.85274C12.9387 6.4898 12.2593 5.98237 11.6435 5.34421C11.4818 5.17736 11.2169 5.1722 11.0501 5.33389C10.8832 5.49558 10.8781 5.76047 11.0398 5.92732C11.3528 6.2507 11.6814 6.54484 12.0254 6.80801H11.2599C10.7766 6.80801 10.2399 6.62568 9.80817 6.21114C9.70324 6.10965 9.55359 6.07181 9.41254 6.10793C9.27149 6.14406 9.15969 6.25242 9.11669 6.39175C8.94124 6.96626 8.66086 7.45477 8.44413 7.77643C8.2274 7.45477 7.94874 6.9697 7.77329 6.39175C7.73029 6.25242 7.61848 6.14578 7.47743 6.10793C7.33638 6.07181 7.18674 6.10965 7.08181 6.21114C6.68963 6.58784 6.16156 6.80801 5.63005 6.80801H4.86632C5.96203 5.97205 6.89432 4.83334 7.56172 3.49855C7.56172 3.49682 7.56344 3.49338 7.56516 3.49166L8.44585 1.64428L8.93092 2.66086C9.03068 2.87071 9.28182 2.95843 9.48995 2.85867C9.6998 2.7589 9.78753 2.50949 9.68776 2.29964L8.82427 0.486652C8.75547 0.340444 8.60754 0.247559 8.44585 0.247559C8.28416 0.247559 8.13623 0.340444 8.06743 0.486652L6.81003 3.127C5.98955 4.76454 4.68227 6.12342 3.22191 6.85274C3.04818 6.94046 2.95701 7.13483 3.00174 7.32404C3.04646 7.51326 3.21503 7.64742 3.4094 7.64742H5.16562C4.26085 8.78097 3.17203 9.77691 1.91807 10.6146C1.76499 10.7178 1.69618 10.9087 1.7495 11.0859C1.80283 11.2631 1.96624 11.3835 2.15201 11.3835H4.37265C5.22754 11.3835 6.04115 11.1839 6.74983 10.8055C6.76875 10.8313 6.78767 10.8588 6.80659 10.8846V14.6155H4.62379C4.51198 14.6155 4.40534 14.6603 4.32621 14.7377L3.35436 15.7095L2.30854 14.7291C2.18641 14.6138 2.00752 14.5829 1.85443 14.6499C1.70134 14.717 1.60158 14.8684 1.60158 15.0352V20.9111H0.677883C0.44567 20.9111 0.258179 21.0986 0.258179 21.3308C0.258179 21.563 0.44567 21.7505 0.677883 21.7505H0.676163Z",fill:"white"})),p("path",{d:"M10.1606 3.74609C10.3928 3.74609 10.5803 3.93359 10.5803 4.1658C10.5803 4.39802 10.3928 4.58551 10.1606 4.58551C9.92834 4.58551 9.74084 4.39802 9.74084 4.1658C9.74084 3.93359 9.92834 3.74609 10.1606 3.74609Z",fill:"white"})),p("symbol",{id:"icon-trade-flow-map",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},p("path",{d:"M23.0626 13.3326L22.5929 13.5003C21.6348 13.8417 20.8629 14.5742 20.4739 15.5137C20.0848 16.4532 20.1117 17.5189 20.5484 18.4356L20.7615 18.8846L18.8784 20.7677L18.4294 20.5546C17.5106 20.118 16.447 20.0911 15.5075 20.4801C14.568 20.8691 13.8355 21.641 13.4941 22.5991L13.3264 23.0688H10.6653L10.4977 22.5991C10.1562 21.641 9.42369 20.8691 8.48422 20.4801C7.54475 20.0911 6.48112 20.118 5.56234 20.5546L5.1133 20.7677L3.23021 18.8846L3.44335 18.4356C3.87998 17.5168 3.90688 16.4532 3.51785 15.5137C3.12881 14.5742 2.35696 13.8417 1.39886 13.5003L0.929126 13.3326V10.6715L1.39886 10.5039C2.35696 10.1624 3.12881 9.4299 3.51785 8.49043C3.90688 7.55096 3.87998 6.48526 3.44335 5.56855L3.23021 5.1195L5.1133 3.23642L5.56234 3.44956C6.48112 3.88619 7.54475 3.91309 8.48422 3.52406C9.42369 3.13502 10.1562 2.36317 10.4977 1.40507L10.6653 0.935333H13.3264L13.4941 1.40507C13.8355 2.36317 14.568 3.13502 15.5075 3.52406C16.447 3.91309 17.5106 3.88619 18.4294 3.44956L18.8784 3.23642L20.7615 5.1195L20.5484 5.56855C20.1117 6.48733 20.0848 7.55096 20.4739 8.49043C20.8629 9.4299 21.6348 10.1624 22.5929 10.5039L23.0626 10.6715V13.3326ZM23.6875 9.89757L22.9074 9.62028C22.1997 9.36782 21.6286 8.82566 21.3409 8.13037C21.0533 7.43508 21.074 6.64873 21.3968 5.97L21.7527 5.2209C21.8376 5.04087 21.8003 4.82773 21.6617 4.68909L19.3109 2.33833C19.1702 2.19762 18.9571 2.16037 18.7791 2.24728L18.03 2.60321C17.3513 2.92602 16.5629 2.94672 15.8696 2.65908C15.1743 2.37144 14.6322 1.80031 14.3797 1.0926L14.1024 0.312468C14.0362 0.126229 13.8583 0 13.6617 0H10.3383C10.1397 0 9.96379 0.124159 9.89757 0.312468L9.62028 1.0926C9.36782 1.80031 8.82566 2.37144 8.13037 2.65908C7.43508 2.94672 6.64873 2.92602 5.97 2.60321L5.2209 2.24728C5.04087 2.16244 4.82773 2.19969 4.68908 2.33833L2.33833 4.68909C2.19762 4.8298 2.16037 5.04294 2.24728 5.2209L2.60321 5.97C2.92602 6.64873 2.94672 7.43715 2.65908 8.13037C2.37144 8.82566 1.80031 9.36782 1.0926 9.62028L0.312468 9.89757C0.126229 9.96379 0 10.1417 0 10.3383V13.6617C0 13.8603 0.124159 14.0362 0.312468 14.1024L1.0926 14.3797C1.80031 14.6322 2.37144 15.1743 2.65908 15.8696C2.94672 16.5649 2.92602 17.3513 2.60321 18.03L2.24728 18.7791C2.16244 18.9591 2.19969 19.1723 2.33833 19.3109L4.68908 21.6617C4.8298 21.8024 5.04294 21.8396 5.2209 21.7527L5.97 21.3968C6.64873 21.074 7.43714 21.0533 8.13037 21.3409C8.82566 21.6286 9.36782 22.1997 9.62028 22.9074L9.89757 23.6875C9.96379 23.8738 10.1417 24 10.3383 24H13.6617C13.8603 24 14.0362 23.8758 14.1024 23.6875L14.3797 22.9074C14.6322 22.1997 15.1743 21.6286 15.8696 21.3409C16.5649 21.0533 17.3513 21.074 18.03 21.3968L18.7791 21.7527C18.9591 21.8376 19.1723 21.8003 19.3109 21.6617L21.6617 19.3109C21.8024 19.1702 21.8396 18.9571 21.7527 18.7791L21.3968 18.03C21.074 17.3513 21.0533 16.5629 21.3409 15.8696C21.6286 15.1743 22.1997 14.6322 22.9074 14.3797L23.6875 14.1024C23.8738 14.0362 24 13.8583 24 13.6617V10.3383C24 10.1397 23.8758 9.96379 23.6875 9.89757Z",fill:"white"}),p("path",{d:"M11.5095 14.0155C10.8121 14.1107 10.0982 13.8769 9.59328 13.3719C9.08836 12.867 8.85453 12.1531 8.94972 11.4558C9.64708 11.3606 10.361 11.5944 10.8659 12.0993C11.3708 12.6042 11.6047 13.3181 11.5095 14.0155ZM13.3325 12.5152C14.0092 11.8386 14.9777 11.5344 15.913 11.6917C16.0703 12.627 15.7661 13.5954 15.0894 14.2721C14.4127 14.9488 13.4443 15.253 12.509 15.0957C12.3517 14.1604 12.6559 13.1919 13.3325 12.5152ZM14.2306 5.03051C13.9844 4.94981 13.7195 5.08431 13.6409 5.33056C13.5622 5.57681 13.6947 5.84168 13.9409 5.92032C16.5359 6.76253 18.2803 9.16502 18.2803 11.8965C18.2803 15.2033 15.7123 17.9203 12.4676 18.1604V16.0352C12.6435 16.06 12.8194 16.0703 12.9952 16.0703C14.0154 16.0703 15.0149 15.6689 15.7537 14.9322C16.7324 13.9534 17.1194 12.5132 16.7614 11.1743C16.718 11.0129 16.5917 10.8846 16.4303 10.8432C15.0915 10.4852 13.6512 10.8722 12.6724 11.851C12.4965 12.0269 12.3393 12.2193 12.2027 12.4221C12.0454 12.06 11.8199 11.7227 11.5322 11.4371C10.7252 10.6301 9.53948 10.3114 8.43446 10.6073C8.27305 10.6508 8.14475 10.777 8.10337 10.9384C7.80952 12.0414 8.12613 13.2292 8.93317 14.0362C9.54155 14.6446 10.3651 14.9757 11.2053 14.9757C11.315 14.9757 11.4226 14.9695 11.5322 14.9591V18.1645C8.28547 17.9245 5.71951 15.2054 5.71951 11.9007C5.71951 9.16709 7.46602 6.7646 10.0651 5.92239C10.3113 5.84169 10.4458 5.57888 10.3672 5.33263C10.2865 5.08638 10.0237 4.95188 9.77745 5.03051C8.3372 5.49611 7.09768 6.39006 6.19338 7.61303C5.27046 8.86083 4.7821 10.3445 4.7821 11.9007C4.7821 15.882 8.02059 19.1205 12.002 19.1205C15.9833 19.1205 19.2218 15.882 19.2218 11.9007C19.2218 10.3445 18.7355 8.8629 17.8126 7.61509C16.9104 6.39212 15.6729 5.50025 14.2327 5.03258L14.2306 5.03051Z",fill:"white"}),p("path",{d:"M12.0021 5.6182C12.1263 5.6182 12.2463 5.56853 12.3332 5.48162C12.4201 5.39471 12.4718 5.27262 12.4718 5.15053C12.4718 5.02844 12.4222 4.90635 12.3332 4.81944C12.2463 4.73253 12.1263 4.68286 12.0021 4.68286C11.8779 4.68286 11.7579 4.73253 11.671 4.81944C11.5841 4.90635 11.5344 5.02844 11.5344 5.15053C11.5344 5.27262 11.5841 5.39471 11.671 5.48162C11.7579 5.56853 11.88 5.6182 12.0021 5.6182Z",fill:"white"}))))},h=(n("03wo"),n("KHw9"),n("wx14")),v=["#03755E","#184B95","#A01200","#7E56D8"],m=[{id:"earth-atlas",name:"Earth Atlas",color:v[1],url:"https://maps.mongabay.com"},{id:"fire-weather-almanac",name:"Fire Weather Almanac",color:v[2],image:"/images/fire-tool.png",url:"https://charts.mongabay.com"},{id:"reforestation-app",title:"Reforestation App",color:v[0],name:"Reforestation App",url:"https://reforestation.app"},{id:"trade-flow-map",name:"Trade Flow Map",color:v[3],url:"https://chains.mongabay.com"}],g=n("rePB"),y=(n("P6+J"),o.a.createElement),b=function(e){var t=e.name,n=e.className,r=e.style,o=a()(Object(g.a)({},n,n));return y("svg",{className:"c-icon ".concat(o),style:r},y("use",{xlinkHref:"#icon-".concat(t)}))};b.defaultProps={name:"",className:"",style:{}};var w=b,C=o.a.createElement,M=function(){var e=Object(r.useState)(!1),t=e[0],n=e[1];return C("div",{className:"header__menu"},C("button",{type:"button",className:"--transparent btn btn-light p-0",onClick:function(){return n(!0)}},C("span",{className:"sr-only"},"open navigation menu"),C(w,{name:"menu",className:"header__menu__icon"})),C("div",{className:a()("header__menu__mask",{"--open":t,"--close":!t}),onClick:function(){return n(!1)}}),C("div",Object(h.a)({className:a()("header__menu__content",{"--open":t,"--close":!t})},!t&&{inert:""}),C("div",{className:"header__menu__content__wrap"},C("button",{type:"button",className:"--transparent header__menu__content__wrap__close-btn btn btn-light p-0",onClick:function(){return n(!1)}},C("span",{className:"sr-only"},"close navigation menu"),C(w,{name:"menu-close",className:"header__menu__content__wrap__close-btn__icon"})),C("p",{className:"header__menu__content__wrap__title"},"Data Journalism Tools"),C("ul",{className:"space-y-6"},m.map((function(e){var t=e.name,n=e.url,r=e.id,o=e.color;return C("li",{key:t},C("a",{target:"_blank",rel:"noopener noreferrer",href:n},C("div",{style:{backgroundColor:o}},C(w,{className:a()("trade-flow-map"===r?"--lg":"--md"),name:r})),t))}))),C("div",{className:"header__menu__content__wrap__buttons"},C("a",{href:"mailto:info@mongabay.org",className:"btn btn-dark text-white bg-dark-gray shadow-none"},"Get in touch"),C("a",{href:"https://mongabay.org/",className:"btn btn-light text-dark-gray border border-gray-dark shadow-none"},"Find out more")))))},E=o.a.createElement,P=function(){return E("header",null,E("div",{className:"header"},E("div",{className:"header__logo"},E("img",{className:"logo",src:"".concat((void 0,""),"/images/mongabay-logo-white.png"),alt:"Mongabay"})),E("div",{className:"header__content"},E("p",{className:"header__content__name"},"Trade Flow Map"),E(M,null))))},O=o.a.createElement,_=function(e){var t=e.className,n=e.children;return O("div",null,O(f,null),O("main",{className:"l-static-page"},O(P,null),O("div",{className:a()("l-simple-page",t)},n)),O(d,null))};_.defaultProps={className:null};var S=_,x=n("/MKj"),j=n("yeIB"),k=n("o0o1"),N=n.n(k),L=n("+XsK"),R=n("KQm4"),T=n("17x9"),A=n.n(T),F=(n("90j9"),o.a.createElement),D=Object(r.forwardRef)((function(e,t){var n=e.id,r=e.name,o=e.disabled,i=e.checked,a=e.onChange,u=e.children,s=e.className;return F("div",{ref:t,className:["custom-control","custom-radio","c-radio"].concat(Object(R.a)(s?[s]:[])).join(" ")},F("input",{type:"radio",className:"custom-control-input",disabled:o,id:n,name:r,checked:i,onChange:a}),F("label",{className:"custom-control-label",htmlFor:n},u))}));D.propTypes={id:A.a.string.isRequired,name:A.a.string.isRequired,disabled:A.a.bool,checked:A.a.bool,onChange:A.a.func,children:A.a.node.isRequired,className:A.a.string},D.defaultProps={disabled:!1,checked:!1,onChange:null,className:null};n("Wfic");var B=o.a.createElement,I=function(e){var t=e.id,n=e.name,r=e.disabled,o=e.checked,i=e.onChange,a=e.children,u=e.className;return B("div",{className:["custom-control","custom-checkbox","c-checkbox"].concat(Object(R.a)(u?[u]:[])).join(" ")},B("input",{type:"checkbox",className:"custom-control-input",disabled:r,id:t,name:n,checked:o,onChange:i}),B("label",{className:"custom-control-label",htmlFor:t},a))};I.defaultProps={disabled:!1,checked:!1,onChange:null,className:null};n("wTXl");var U=o.a.createElement,z=function(e){var t=e.id,n=e.options,o=e.defaultValue,i=e.value,a=e.onChange,u=e.disabled,s=e["aria-label"],c=e["aria-describedby"],l=e.className,f=e.required,p=Object(r.useCallback)((function(e){var t=n.find((function(t){return t.value===e.target.selectedOptions[0].value}));a(t)}),[n,a]);return U("select",{id:t,className:["c-select","custom-select"].concat(Object(R.a)(l?[l]:[])).join(" "),disabled:u,"aria-label":s,"aria-describedby":c,defaultValue:o,value:i,onChange:p,required:f},n.map((function(e){return U("option",{key:e.value,value:e.value,disabled:e.disabled},e.label)})))};z.defaultProps={defaultValue:void 0,value:void 0,onChange:function(){return null},disabled:!1,"aria-label":null,"aria-describedby":null,className:void 0,required:!1};var G=z,H=o.a.createElement,V=function(e){var t=e.id,n=e.defaultValue,r=e.value,o=e.min,i=e.max,u=e["aria-label"],s=e.className,c=e.required,l=e.disabled,f=e.onChange;return H("input",{type:"date",id:t,className:a()("c-datepicker","form-control",Object(g.a)({},s,!!s)),defaultValue:n,value:r,min:o,max:i,pattern:"\\d{4}-\\d{2}-\\d{2}","aria-label":u,required:c,disabled:l,onChange:f})};V.defaultProps={className:void 0,defaultValue:void 0,value:void 0,min:void 0,max:void 0,"aria-label":void 0,required:!1,disabled:!1,onChange:function(){return null}};n("DMuj");var q=o.a.createElement,W=function(e){var t=e.id,n=e.defaultValue,r=e.value,o=e.min,i=e.max,u=e.step,s=e["aria-label"],c=e.className,l=e.required,f=e.disabled,p=e.marks,d=e.onChange;return q("div",{className:"c-range"},q("input",{type:"range",id:t,className:a()("custom-range",Object(g.a)({},c,!!c)),defaultValue:n,value:r,min:o,max:i,step:u,"aria-label":s,required:l,disabled:f,onChange:d}),p&&q("div",{className:"marks"},p.map((function(e){return q("span",{key:e,"data-label":e})}))))};W.defaultProps={className:void 0,defaultValue:void 0,value:void 0,min:void 0,max:void 0,step:void 0,"aria-label":void 0,required:!1,disabled:!1,marks:void 0,onChange:function(){return null}};function Y(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Z(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function X(e){var t=Z(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(e){return e instanceof Z(e).Element||e instanceof Element}function J(e){return e instanceof Z(e).HTMLElement||e instanceof HTMLElement}function Q(e){return e?(e.nodeName||"").toLowerCase():null}function $(e){return(K(e)?e.ownerDocument:e.document).documentElement}function ee(e){return Y($(e)).left+X(e).scrollLeft}function te(e){return Z(e).getComputedStyle(e)}function ne(e){var t=te(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function re(e,t,n){void 0===n&&(n=!1);var r=$(t),o=Y(e),i=J(t),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==Q(t)||ne(r))&&(a=function(e){return e!==Z(e)&&J(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:X(e);var t}(t)),J(t)?((u=Y(t)).x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=ee(r))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function oe(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function ie(e){return"html"===Q(e)?e:e.assignedSlot||e.parentNode||e.host||$(e)}function ae(e,t){void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(Q(t))>=0?t.ownerDocument.body:J(t)&&ne(t)?t:e(ie(t))}(e),r="body"===Q(n),o=Z(n),i=r?[o].concat(o.visualViewport||[],ne(n)?n:[]):n,a=t.concat(i);return r?a:a.concat(ae(ie(i)))}function ue(e){return["table","td","th"].indexOf(Q(e))>=0}function se(e){if(!J(e)||"fixed"===te(e).position)return null;var t=e.offsetParent;if(t){var n=$(t);if("body"===Q(t)&&"static"===te(t).position&&"static"!==te(n).position)return n}return t}function ce(e){for(var t=Z(e),n=se(e);n&&ue(n)&&"static"===te(n).position;)n=se(n);return n&&"body"===Q(n)&&"static"===te(n).position?t:n||function(e){for(var t=ie(e);J(t)&&["html","body"].indexOf(Q(t))<0;){var n=te(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var le="top",fe="bottom",pe="right",de="left",he="auto",ve=[le,fe,pe,de],me="start",ge="end",ye="clippingParents",be="viewport",we="popper",Ce="reference",Me=ve.reduce((function(e,t){return e.concat([t+"-"+me,t+"-"+ge])}),[]),Ee=[].concat(ve,[he]).reduce((function(e,t){return e.concat([t,t+"-"+me,t+"-"+ge])}),[]),Pe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Oe(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}function _e(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Se={placement:"bottom",modifiers:[],strategy:"absolute"};function xe(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Te(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Ne(o):null,a=o?Le(o):null,u=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case le:t={x:u,y:n.y-r.height};break;case fe:t={x:u,y:n.y+n.height};break;case pe:t={x:n.x+n.width,y:s};break;case de:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Re(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case me:t[c]=Math.floor(t[c])-Math.floor(n[l]/2-r[l]/2);break;case ge:t[c]=Math.floor(t[c])+Math.ceil(n[l]/2-r[l]/2)}}return t}var Ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,u=e.gpuAcceleration,s=e.adaptive,c=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(i),l=c.x,f=c.y,p=i.hasOwnProperty("x"),d=i.hasOwnProperty("y"),h=de,v=le,m=window;if(s){var g=ce(n);g===Z(n)&&(g=$(n)),o===le&&(v=fe,f-=g.clientHeight-r.height,f*=u?1:-1),o===de&&(h=pe,l-=g.clientWidth-r.width,l*=u?1:-1)}var y,b=Object.assign({position:a},s&&Ae);return u?Object.assign(Object.assign({},b),{},((y={})[v]=d?"0":"",y[h]=p?"0":"",y.transform=(m.devicePixelRatio||1)<2?"translate("+l+"px, "+f+"px)":"translate3d("+l+"px, "+f+"px, 0)",y)):Object.assign(Object.assign({},b),{},((t={})[v]=d?f+"px":"",t[h]=p?l+"px":"",t.transform="",t))}var De={left:"right",right:"left",bottom:"top",top:"bottom"};function Be(e){return e.replace(/left|right|bottom|top/g,(function(e){return De[e]}))}var Ie={start:"end",end:"start"};function Ue(e){return e.replace(/start|end/g,(function(e){return Ie[e]}))}function ze(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ge(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function He(e,t){return t===be?Ge(function(e){var t=Z(e),n=$(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:a+ee(e),y:u}}(e)):J(t)?function(e){var t=Y(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Ge(function(e){var t=$(e),n=X(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+ee(e),u=-n.scrollTop;return"rtl"===te(r||t).direction&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:a,y:u}}($(e)))}function Ve(e,t,n){var r="clippingParents"===t?function(e){var t=ae(ie(e)),n=["absolute","fixed"].indexOf(te(e).position)>=0&&J(e)?ce(e):e;return K(n)?t.filter((function(e){return K(e)&&ze(e,n)&&"body"!==Q(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=He(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),He(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function qe(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function We(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ye(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?ye:i,u=n.rootBoundary,s=void 0===u?be:u,c=n.elementContext,l=void 0===c?we:c,f=n.altBoundary,p=void 0!==f&&f,d=n.padding,h=void 0===d?0:d,v=qe("number"!==typeof h?h:We(h,ve)),m=l===we?Ce:we,g=e.elements.reference,y=e.rects.popper,b=e.elements[p?m:l],w=Ve(K(b)?b:b.contextElement||$(e.elements.popper),a,s),C=Y(g),M=Te({reference:C,element:y,strategy:"absolute",placement:o}),E=Ge(Object.assign(Object.assign({},y),M)),P=l===we?E:C,O={top:w.top-P.top+v.top,bottom:P.bottom-w.bottom+v.bottom,left:w.left-P.left+v.left,right:P.right-w.right+v.right},_=e.modifiersData.offset;if(l===we&&_){var S=_[o];Object.keys(O).forEach((function(e){var t=[pe,fe].indexOf(e)>=0?1:-1,n=[le,fe].indexOf(e)>=0?"y":"x";O[e]+=S[n]*t}))}return O}function Ze(e,t,n){return Math.max(e,Math.min(t,n))}function Xe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ke(e){return[le,pe,fe,de].some((function(t){return e[t]>=0}))}var Je=je({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,s=Z(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ke)})),u&&s.addEventListener("resize",n.update,ke),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ke)})),u&&s.removeEventListener("resize",n.update,ke)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Te({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,u={placement:Ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),Fe(Object.assign(Object.assign({},u),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),Fe(Object.assign(Object.assign({},u),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];J(o)&&Q(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});J(r)&&Q(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Ee.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ne(e),o=[de,le].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[de,pe].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}(n,t.rects,i),e}),{}),u=a[t.placement],s=u.x,c=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0===a||a,s=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,v=n.allowedAutoPlacements,m=t.options.placement,g=Ne(m),y=s||(g===m||!h?[Be(m)]:function(e){if(Ne(e)===he)return[];var t=Be(e);return[Ue(e),t,Ue(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(Ne(n)===he?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,u=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Ee:s,l=Le(r),f=l?u?Me:Me.filter((function(e){return Le(e)===l})):ve,p=f.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=Ye(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Ne(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,C=t.rects.popper,M=new Map,E=!0,P=b[0],O=0;O=0,k=j?"width":"height",N=Ye(t,{placement:_,boundary:l,rootBoundary:f,altBoundary:p,padding:c}),L=j?x?pe:de:x?fe:le;w[k]>C[k]&&(L=Be(L));var R=Be(L),T=[];if(i&&T.push(N[S]<=0),u&&T.push(N[L]<=0,N[R]<=0),T.every((function(e){return e}))){P=_,E=!1;break}M.set(_,T)}if(E)for(var A=function(e){var t=b.find((function(t){var n=M.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},F=h?3:1;F>0;F--){if("break"===A(F))break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,p=n.tether,d=void 0===p||p,h=n.tetherOffset,v=void 0===h?0:h,m=Ye(t,{boundary:s,rootBoundary:c,padding:f,altBoundary:l}),g=Ne(t.placement),y=Le(t.placement),b=!y,w=Re(g),C="x"===w?"y":"x",M=t.modifiersData.popperOffsets,E=t.rects.reference,P=t.rects.popper,O="function"===typeof v?v(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):v,_={x:0,y:0};if(M){if(i){var S="y"===w?le:de,x="y"===w?fe:pe,j="y"===w?"height":"width",k=M[w],N=M[w]+m[S],L=M[w]-m[x],R=d?-P[j]/2:0,T=y===me?E[j]:P[j],A=y===me?-P[j]:-E[j],F=t.elements.arrow,D=d&&F?oe(F):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=B[S],U=B[x],z=Ze(0,E[j],D[j]),G=b?E[j]/2-R-z-I-O:T-z-I-O,H=b?-E[j]/2+R+z+U+O:A+z+U+O,V=t.elements.arrow&&ce(t.elements.arrow),q=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,W=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,Y=M[w]+G-W-q,Z=M[w]+H-W,X=Ze(d?Math.min(N,Y):N,k,d?Math.max(L,Z):L);M[w]=X,_[w]=X-k}if(u){var K="x"===w?le:de,J="x"===w?fe:pe,Q=M[C],$=Ze(Q+m[K],Q,Q-m[J]);M[C]=$,_[C]=$-Q}t.modifiersData[r]=_}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Ne(n.placement),u=Re(a),s=[de,pe].indexOf(a)>=0?"height":"width";if(o&&i){var c=n.modifiersData[r+"#persistent"].padding,l=oe(o),f="y"===u?le:de,p="y"===u?fe:pe,d=n.rects.reference[s]+n.rects.reference[u]-i[u]-n.rects.popper[s],h=i[u]-n.rects.reference[u],v=ce(o),m=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,g=d/2-h/2,y=c[f],b=m-l[s]-c[p],w=m/2-l[s]/2+g,C=Ze(y,w,b),M=u;n.modifiersData[r]=((t={})[M]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,a=n.padding,u=void 0===a?0:a;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i)))&&ze(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:qe("number"!==typeof u?u:We(u,ve))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ye(t,{elementContext:"reference"}),u=Ye(t,{altBoundary:!0}),s=Xe(a,r),c=Xe(u,o,i),l=Ke(s),f=Ke(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Qe="tippy-box",$e="tippy-content",et="tippy-backdrop",tt="tippy-arrow",nt="tippy-svg-arrow",rt={passive:!0,capture:!0};function ot(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function it(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function at(e,t){return"function"===typeof e?e.apply(void 0,t):e}function ut(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function st(e){return[].concat(e)}function ct(e,t){-1===e.indexOf(t)&&e.push(t)}function lt(e){return e.split("-")[0]}function ft(e){return[].slice.call(e)}function pt(){return document.createElement("div")}function dt(e){return["Element","Fragment"].some((function(t){return it(e,t)}))}function ht(e){return it(e,"MouseEvent")}function vt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function mt(e){return dt(e)?[e]:function(e){return it(e,"NodeList")}(e)?ft(e):Array.isArray(e)?e:ft(document.querySelectorAll(e))}function gt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function yt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function bt(e){var t=st(e)[0];return t&&t.ownerDocument||document}function wt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var Ct={isTouch:!1},Mt=0;function Et(){Ct.isTouch||(Ct.isTouch=!0,window.performance&&document.addEventListener("mousemove",Pt))}function Pt(){var e=performance.now();e-Mt<20&&(Ct.isTouch=!1,document.removeEventListener("mousemove",Pt)),Mt=e}function Ot(){var e=document.activeElement;if(vt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var _t="undefined"!==typeof window&&"undefined"!==typeof document?navigator.userAgent:"",St=/MSIE |Trident\//.test(_t);var xt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},jt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},xt,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),kt=Object.keys(jt);function Nt(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function Lt(e,t){var n=Object.assign({},t,{content:at(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Nt(Object.assign({},jt,{plugins:t}))):kt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(o){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},jt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var Rt=function(){return"innerHTML"};function Tt(e,t){e[Rt()]=t}function At(e){var t=pt();return!0===e?t.className=tt:(t.className=nt,dt(e)?t.appendChild(e):Tt(t,e)),t}function Ft(e,t){dt(t.content)?(Tt(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?Tt(e,t.content):e.textContent=t.content)}function Dt(e){var t=e.firstElementChild,n=ft(t.children);return{box:t,content:n.find((function(e){return e.classList.contains($e)})),arrow:n.find((function(e){return e.classList.contains(tt)||e.classList.contains(nt)})),backdrop:n.find((function(e){return e.classList.contains(et)}))}}function Bt(e){var t=pt(),n=pt();n.className=Qe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=pt();function o(n,r){var o=Dt(t),i=o.box,a=o.content,u=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"===typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Ft(a,e.props),r.arrow?u?n.arrow!==r.arrow&&(i.removeChild(u),i.appendChild(At(r.arrow))):i.appendChild(At(r.arrow)):u&&i.removeChild(u)}return r.className=$e,r.setAttribute("data-state","hidden"),Ft(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Bt.$$tippy=!0;var It=1,Ut=[],zt=[];function Gt(e,t){var n,r,o,i,a,u,s,c,l,f=Lt(e,Object.assign({},jt,{},Nt((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),p=!1,d=!1,h=!1,v=!1,m=[],g=ut(Z,f.interactiveDebounce),y=bt(f.triggerTarget||e),b=It++,w=(l=f.plugins).filter((function(e,t){return l.indexOf(e)===t})),C={id:b,reference:e,popper:pt(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:w,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(C.state.isDestroyed)return;T("onBeforeUpdate",[C,t]),W();var n=C.props,r=Lt(e,Object.assign({},C.props,{},t,{ignoreAttributes:!0}));C.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(D(),g=ut(Z,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?st(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");F(),R(),P&&P(n,r);C.popperInstance&&(Q(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));T("onAfterUpdate",[C,t])},setContent:function(e){C.setProps({content:e})},show:function(){0;var e=C.state.isVisible,t=C.state.isDestroyed,n=!C.state.isEnabled,r=Ct.isTouch&&!C.props.touch,o=ot(C.props.duration,0,jt.duration);if(e||t||n||r)return;if(k().hasAttribute("disabled"))return;if(T("onShow",[C],!1),!1===C.props.onShow(C))return;C.state.isVisible=!0,j()&&(E.style.visibility="visible");R(),z(),C.state.isMounted||(E.style.transition="none");if(j()){var i=N(),a=i.box,u=i.content;gt([a,u],0)}s=function(){if(C.state.isVisible&&!v){if(v=!0,E.offsetHeight,E.style.transition=C.props.moveTransition,j()&&C.props.animation){var e=N(),t=e.box,n=e.content;gt([t,n],o),yt([t,n],"visible")}A(),F(),ct(zt,C),C.state.isMounted=!0,T("onMount",[C]),C.props.animation&&j()&&function(e,t){H(e,t)}(o,(function(){C.state.isShown=!0,T("onShown",[C])}))}},function(){var e,t=C.props.appendTo,n=k();e=C.props.interactive&&t===jt.appendTo||"parent"===t?n.parentNode:at(t,[n]);e.contains(E)||e.appendChild(E);Q(),!1}()},hide:function(){0;var e=!C.state.isVisible,t=C.state.isDestroyed,n=!C.state.isEnabled,r=ot(C.props.duration,1,jt.duration);if(e||t||n)return;if(T("onHide",[C],!1),!1===C.props.onHide(C))return;C.state.isVisible=!1,C.state.isShown=!1,v=!1,p=!1,j()&&(E.style.visibility="hidden");if(D(),G(),R(),j()){var o=N(),i=o.box,a=o.content;C.props.animation&&(gt([i,a],r),yt([i,a],"hidden"))}A(),F(),C.props.animation?j()&&function(e,t){H(e,(function(){!C.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()}))}(r,C.unmount):C.unmount()},hideWithInteractivity:function(e){0;y.addEventListener("mousemove",g),ct(Ut,g),g(e)},enable:function(){C.state.isEnabled=!0},disable:function(){C.hide(),C.state.isEnabled=!1},unmount:function(){0;C.state.isVisible&&C.hide();if(!C.state.isMounted)return;$(),ee().forEach((function(e){e._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E);zt=zt.filter((function(e){return e!==C})),C.state.isMounted=!1,T("onHidden",[C])},destroy:function(){0;if(C.state.isDestroyed)return;C.clearDelayTimeouts(),C.unmount(),W(),delete e._tippy,C.state.isDestroyed=!0,T("onDestroy",[C])}};if(!f.render)return C;var M=f.render(C),E=M.popper,P=M.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+C.id,C.popper=E,e._tippy=C,E._tippy=C;var O=w.map((function(e){return e.fn(C)})),_=e.hasAttribute("aria-expanded");return q(),F(),R(),T("onCreate",[C]),f.showOnCreate&&te(),E.addEventListener("mouseenter",(function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(e){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&(y.addEventListener("mousemove",g),g(e))})),C;function S(){var e=C.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===S()[0]}function j(){var e;return!!(null==(e=C.props.render)?void 0:e.$$tippy)}function k(){return c||e}function N(){return Dt(E)}function L(e){return C.state.isMounted&&!C.state.isVisible||Ct.isTouch||a&&"focus"===a.type?0:ot(C.props.delay,e?0:1,jt.delay)}function R(){E.style.pointerEvents=C.props.interactive&&C.state.isVisible?"":"none",E.style.zIndex=""+C.props.zIndex}function T(e,t,n){var r;(void 0===n&&(n=!0),O.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=C.props)[e].apply(r,t)}function A(){var t=C.props.aria;if(t.content){var n="aria-"+t.content,r=E.id;st(C.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(C.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function F(){!_&&C.props.aria.expanded&&st(C.props.triggerTarget||e).forEach((function(e){C.props.interactive?e.setAttribute("aria-expanded",C.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")}))}function D(){y.removeEventListener("mousemove",g),Ut=Ut.filter((function(e){return e!==g}))}function B(e){if((!Ct.isTouch||!h&&"mousedown"!==e.type)&&(!C.props.interactive||!E.contains(e.target))){if(k().contains(e.target)){if(Ct.isTouch)return;if(C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[C,e]);!0===C.props.hideOnClick&&(C.clearDelayTimeouts(),C.hide(),d=!0,setTimeout((function(){d=!1})),C.state.isMounted||G())}}function I(){h=!0}function U(){h=!1}function z(){y.addEventListener("mousedown",B,!0),y.addEventListener("touchend",B,rt),y.addEventListener("touchstart",U,rt),y.addEventListener("touchmove",I,rt)}function G(){y.removeEventListener("mousedown",B,!0),y.removeEventListener("touchend",B,rt),y.removeEventListener("touchstart",U,rt),y.removeEventListener("touchmove",I,rt)}function H(e,t){var n=N().box;function r(e){e.target===n&&(wt(n,"remove",r),t())}if(0===e)return t();wt(n,"remove",u),wt(n,"add",r),u=r}function V(t,n,r){void 0===r&&(r=!1),st(C.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function q(){var e;x()&&(V("touchstart",Y,{passive:!0}),V("touchend",X,{passive:!0})),(e=C.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,Y),e){case"mouseenter":V("mouseleave",X);break;case"focus":V(St?"focusout":"blur",K);break;case"focusin":V("focusout",K)}}))}function W(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function Y(e){var t,n=!1;if(C.state.isEnabled&&!J(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,F(),!C.state.isVisible&&ht(e)&&Ut.forEach((function(t){return t(e)})),"click"===e.type&&(C.props.trigger.indexOf("mouseenter")<0||p)&&!1!==C.props.hideOnClick&&C.state.isVisible?n=!0:te(e),"click"===e.type&&(p=!n),n&&!r&&ne(e)}}function Z(e){var t=e.target,n=k().contains(t)||E.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=lt(o.placement),u=o.modifiersData.offset;if(!u)return!0;var s="bottom"===a?u.top.y:0,c="top"===a?u.bottom.y:0,l="right"===a?u.left.x:0,f="left"===a?u.right.x:0,p=t.top-r+s>i,d=r-t.bottom-c>i,h=t.left-n+l>i,v=n-t.right-f>i;return p||d||h||v}))}(ee().concat(E).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),e)&&(D(),ne(e))}function X(e){J(e)||C.props.trigger.indexOf("click")>=0&&p||(C.props.interactive?C.hideWithInteractivity(e):ne(e))}function K(e){C.props.trigger.indexOf("focusin")<0&&e.target!==k()||C.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||ne(e)}function J(e){return!!Ct.isTouch&&x()!==e.type.indexOf("touch")>=0}function Q(){$();var t=C.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=j()?Dt(E).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(j()){var n=N().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];j()&&u&&l.push({name:"arrow",options:{element:u,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),C.popperInstance=Je(c,E,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:l}))}function $(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function ee(){return ft(E.querySelectorAll("[data-tippy-root]"))}function te(e){C.clearDelayTimeouts(),e&&T("onTrigger",[C,e]),z();var t=L(!0),n=S(),o=n[0],i=n[1];Ct.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){C.show()}),t):C.show()}function ne(e){if(C.clearDelayTimeouts(),T("onUntrigger",[C,e]),C.state.isVisible){if(!(C.props.trigger.indexOf("mouseenter")>=0&&C.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=L(!1);t?o=setTimeout((function(){C.state.isVisible&&C.hide()}),t):i=requestAnimationFrame((function(){C.hide()}))}}else G()}}function Ht(e,t){void 0===t&&(t={});var n=jt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Et,rt),window.addEventListener("blur",Ot);var r=Object.assign({},t,{plugins:n}),o=mt(e).reduce((function(e,t){var n=t&&Gt(t,r);return n&&e.push(n),e}),[]);return dt(e)?o[0]:o}Ht.defaultProps=jt,Ht.setDefaultProps=function(e){Object.keys(e).forEach((function(t){jt[t]=e[t]}))},Ht.currentInput=Ct;var Vt={clientX:0,clientY:0},qt=[];function Wt(e){var t=e.clientX,n=e.clientY;Vt={clientX:t,clientY:n}}var Yt={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=bt(e.props.triggerTarget||t),r=!1,o=!1,i=!0,a=e.props;function u(){return"initial"===e.props.followCursor&&e.state.isVisible}function s(){n.addEventListener("mousemove",f)}function c(){n.removeEventListener("mousemove",f)}function l(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,i=n.clientX,a=n.clientY,u=t.getBoundingClientRect(),s=i-u.left,c=a-u.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=e.left+s,r=e.top+c);var u="horizontal"===o?e.top:r,l="vertical"===o?e.right:n,f="horizontal"===o?e.bottom:r,p="vertical"===o?e.left:n;return{width:l-p,height:f-u,top:u,right:l,bottom:f,left:p}}})}function p(){e.props.followCursor&&(qt.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",Wt)}(n))}function d(){0===(qt=qt.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",Wt)}(n)}return{onCreate:p,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(p(),!e.state.isMounted||o||u()||s()):(c(),l()))},onMount:function(){e.props.followCursor&&!o&&(i&&(f(Vt),i=!1),u()||s())},onTrigger:function(e,t){ht(t)&&(Vt={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(l(),c(),i=!0)}}}};var Zt={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,i=null;function a(){var u=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,s=r("popper")?n.getBoundingClientRect():null;(u&&Xt(o,u)||s&&Xt(i,s))&&e.popperInstance&&e.popperInstance.update(),o=u,i=s,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function Xt(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}Ht.setDefaultProps({render:Bt});var Kt=Ht,Jt=n("i8i4");function Qt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var $t="undefined"!==typeof window&&"undefined"!==typeof document;function en(e,t){e&&("function"===typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function tn(){return $t&&document.createElement("div")}function nn(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name.indexOf("tippy")>=0})),(null==(r=t.popperOptions)?void 0:r.modifiers)||[])})})}var rn=$t?r.useLayoutEffect:r.useEffect;function on(e){var t=Object(r.useRef)();return t.current||(t.current="function"===typeof e?e():e),t.current}function an(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var un={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||an(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&an(t,"remove",e.props.className)},onAfterUpdate:r}}};function sn(e){return function(t){var n=t.children,i=t.content,a=t.visible,u=t.singleton,s=t.render,c=t.reference,l=t.disabled,f=void 0!==l&&l,p=t.ignoreAttributes,d=void 0===p||p,h=(t.__source,t.__self,Qt(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),v=void 0!==a,m=void 0!==u,g=Object(r.useState)(!1),y=g[0],b=g[1],w=Object(r.useState)({}),C=w[0],M=w[1],E=Object(r.useState)(),P=E[0],O=E[1],_=on((function(){return{container:tn(),renders:1}})),S=Object.assign({ignoreAttributes:d},h,{content:_.container});v&&(S.trigger="manual",S.hideOnClick=!1),m&&(f=!0);var x=S,j=S.plugins||[];s&&(x=Object.assign({},S,{plugins:m?[].concat(j,[{fn:function(){return{onTrigger:function(e,t){var n=u.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;O(n)}}}}]):j,render:function(){return{popper:_.container}}}));var k=[c].concat(n?[n.type]:[]);return rn((function(){var t=c;c&&c.hasOwnProperty("current")&&(t=c.current);var n=e(t||_.ref||tn(),Object.assign({},x,{plugins:[un].concat(S.plugins||[])}));return _.instance=n,f&&n.disable(),a&&n.show(),m&&u.hook({instance:n,content:i,props:x}),b(!0),function(){n.destroy(),null==u||u.cleanup(n)}}),k),rn((function(){if(1!==_.renders){var e=_.instance;e.setProps(nn(e.props,x)),f?e.disable():e.enable(),v&&(a?e.show():e.hide()),m&&u.hook({instance:e,content:i,props:x})}else _.renders++})),rn((function(){var e;if(s){var t=_.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;C.placement===n.placement&&C.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&C.escaped===(null==r?void 0:r.hasPopperEscaped)||M({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[C.placement,C.referenceHidden,C.escaped].concat(k)),o.a.createElement(o.a.Fragment,null,n?Object(r.cloneElement)(n,{ref:function(e){_.ref=e,en(n.ref,e)}}):null,y&&Object(Jt.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(C),P):i,_.container))}}var cn=function(e,t){return Object(r.forwardRef)((function(n,i){var a=n.children,u=Qt(n,["children"]);return o.a.createElement(e,Object.assign({},t,u),a?Object(r.cloneElement)(a,{ref:function(e){en(i,e),en(a.ref,e)}}):null)}))},ln=cn(sn(Kt)),fn=(n("uxza"),o.a.createElement);function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var dn=function(e){var t=function(e){for(var t=1;t0&&"Minimum value: 150.")),gn("div",{className:"form-group col-6"},gn("label",{htmlFor:"export-height"},"Height"),gn("input",{type:"number",id:"export-height",name:"height",className:a()({"form-control":!0,"is-invalid":!s.height.isValid}),pattern:"\\d+",min:"100",value:s.height.value,onChange:f}),gn("div",{className:"invalid-feedback"},0===s.height.value.length&&"Must be a number.",s.height.value.length>0&&"Minimum value: 100.")))),gn("button",{type:"submit",className:"btn btn-primary btn-block mt-3",disabled:!s.width.isValid||!s.height.isValid},"Download")))},wn=Object(x.b)((function(e){return{width:j.c.selectWidth(e),height:j.c.selectHeight(e)}}),{updateSettings:j.a.updateSettings,updateExporting:j.a.updateExporting})(bn),Cn=(n("hbvv"),o.a.createElement);function Mn(e){var t=e.transparent,n=e.inner,r=e.inline,o=e.mini,i=["c-loading-spinner"];return t&&i.push("-transparent"),n&&i.push("-inner"),r&&i.push("-inline"),o&&i.push("-mini"),Cn("div",{className:i.join(" ")},Cn("svg",null,Cn("circle",{cx:o?9:30,cy:o?9:30,r:o?5:20,fill:"none",strokeWidth:o?2:3,strokeMiterlimit:"10"})))}Mn.defaultProps={transparent:!1,inner:!1,inline:!1,mini:!1};var En=Mn,Pn=n("9rZX"),On=n.n(Pn),_n=(n("oG+/"),o.a.createElement);On.a.setAppElement("#root");var Sn=function(e){var t=e.open,n=e.onClose,r=e.title,o=e.children,i=e.className;return _n(On.a,{isOpen:t,onRequestClose:n,contentLabel:r,className:["c-modal"].concat(Object(R.a)(i?[i]:[])).join(" ")},_n("button",{type:"button",className:"btn btn-outline-primary close-button",onClick:n},_n(w,{name:"close"})),_n("div",{className:"content"},o))};Sn.defaultProps={className:null};var xn=Sn,jn=(n("mp/Q"),o.a.createElement),kn=function(e){var t=e.open,n=e.onClose;return jn(xn,{title:"Map downloaded",open:t,onClose:n,className:"c-tool-download-success-modal"},jn("h1",{className:"mb-3"},"Map downloaded!"),jn("p",null,"Check the"," ",jn("a",{href:"https://mongabay.github.io/visual-style-guide/",target:"_blank",rel:"noopener noreferrer"},"Mongabay Style Guidelines")," ","in case you need to add any further detail on your map."),jn("button",{type:"button",className:"btn btn-primary btn-block mt-4",onClick:n},"Close"))},Nn=(n("1+uw"),o.a.createElement),Ln=function(e){var t=e.loading,n=e.countryOptions,o=e.country,i=e.commodityOptions,a=e.commodity,u=e.unitOptions,s=e.unit,c=e.yearOptions,l=e.year,f=e.regionsLoading,p=e.regionOptions,d=e.region,h=e.exportersLoading,v=e.exporterOptions,m=e.exporter,g=e.updateCountry,y=e.updateCommodity,b=e.updateUnit,w=e.updateYear,C=e.updateRegion,M=e.updateExporter,E=e.exporting,P=Object(r.useState)(!1),O=P[0],_=P[1],S=Object(r.useState)(!1),x=S[0],j=S[1];return Object(r.useEffect)((function(){O!==E&&(E||j(!0),_(E))}),[E,O,j,_]),Nn("aside",{className:"c-tool-sidebar"},Nn(kn,{open:x,onClose:function(){return j(!1)}}),Nn("div",{className:"content"},Nn("h1",null,"Trade Flow Map"),Nn("p",null,"Create images of maps with flows representing the exchange of a variety of commodities across the world."),Nn("h2",null,"Data Layers"),Nn("div",{className:"scrollable-container pt-2"},Nn("div",{className:"form-group"},Nn("label",{htmlFor:"setting-country"},"Source country"),Nn("div",{className:"input-group"},Nn(G,{id:"setting-country",options:n,value:null!==o&&void 0!==o?o:"",onChange:function(e){var t=e.value;return g(t)},disabled:0===n.length}))),Nn("div",{className:"form-group"},Nn("label",{htmlFor:"setting-commodity"},"Commodity"),Nn("div",{className:"input-group"},Nn(G,{id:"setting-commodity",options:i,value:null!==a&&void 0!==a?a:"",onChange:function(e){var t=e.value;return y(t)},disabled:0===i.length}))),Nn("div",{className:"form-group"},Nn("label",{htmlFor:"setting-unit"},"Change unit"),Nn("div",{className:"input-group"},Nn(G,{id:"setting-unit",options:u,value:null!==s&&void 0!==s?s:"",onChange:function(e){var t=e.value;return b(t)},disabled:0===u.length}))),Nn("div",{className:"form-group"},Nn("label",{htmlFor:"setting-year"},"Year"),Nn("div",{className:"input-group"},Nn(G,{id:"setting-year",options:c,value:null!==l&&void 0!==l?l:"",onChange:function(e){var t=e.value;return w(t)},disabled:0===c.length}))),Nn("div",{className:"form-group"},Nn("label",{htmlFor:"setting-region"},"Region (optional) ",f&&Nn(En,{inline:!0,mini:!0})),Nn("div",{className:"input-group"},Nn(G,{id:"setting-region","aria-describedby":"setting-region-note",options:p,value:d,onChange:function(e){var t=e.value;return C(t)},disabled:0===p.length})),Nn("div",{id:"setting-region-note",className:"note"},"This ","setting's"," options are not filtered by change unit nor year.")),Nn("div",{className:"form-group"},Nn("label",{htmlFor:"setting-exporter"},"Exporter (optional) ",h&&Nn(En,{inline:!0,mini:!0})),Nn("div",{className:"input-group"},Nn(G,{id:"setting-exporter","aria-describedby":"setting-exporter-note",options:v,value:m,onChange:function(e){var t=e.value;return M(t)},disabled:0===v.length})),Nn("div",{id:"setting-exporter-note",className:"note"},"This ","setting's"," options are not filtered by change unit, year nor region.")))),Nn("div",{className:"d-flex align-items-center mt-4"},Nn(dn,{sticky:"popper",plugins:[Zt],content:Nn(wn,null)},Nn("button",{type:"button",className:"btn btn-primary py-2",disabled:t},"Export")),t&&Nn("div",{className:"loading-text ml-3"},Nn(En,{inline:!0,mini:!0})," Loading...")))};Ln.defaultProps={country:null,commodity:null,unit:null,year:null};var Rn=Ln,Tn=Object(x.b)((function(e){return{loading:j.h.selectLoading(e),countryOptions:j.h.selectSourceCountryOptions(e),country:j.h.selectCountry(e),commodityOptions:j.h.selectCommodityOptions(e),commodity:j.h.selectCommodity(e),unitOptions:j.h.selectUnitOptions(e),unit:j.h.selectUnit(e),yearOptions:j.h.selectYearOptions(e),year:j.h.selectYear(e),regionsLoading:j.h.selectRegionsLoading(e),regionOptions:j.h.selectRegionOptions(e),region:j.h.selectRegion(e),exportersLoading:j.h.selectExportersLoading(e),exporterOptions:j.h.selectExporterOptions(e),exporter:j.h.selectExporter(e),exporting:j.c.selectExporting(e)}}),{updateCountry:j.f.updateCountry,updateCommodity:j.f.updateCommodity,updateUnit:j.f.updateUnit,updateYear:j.f.updateYear,updateRegion:j.f.updateRegion,updateExporter:j.f.updateExporter})(Rn),An=n("ODXe");function Fn(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["groupName","itemName","componentIdentifier"]));return o.default.createElement(i.default,r({groupName:t,itemName:n},a))};u.defaultProps={componentIdentifier:"Annotations",groupName:"annotations",itemName:"annotation"},t.default=u},lwAK:function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("q1tI"));t.AmpStateContext=o.createContext({})},mPvQ:function(e,t,n){var r=n("5fIB"),o=n("rlHP"),i=n("kG2m");e.exports=function(e){return r(e)||o(e)||i()}},"mp/Q":function(e,t,n){},n3Y4:function(e,t,n){"use strict";function r(){}n.r(t),n.d(t,"geoAiry",(function(){return at})),n.d(t,"geoAiryRaw",(function(){return it})),n.d(t,"geoAitoff",(function(){return st})),n.d(t,"geoAitoffRaw",(function(){return ut})),n.d(t,"geoArmadillo",(function(){return lt})),n.d(t,"geoArmadilloRaw",(function(){return ct})),n.d(t,"geoAugust",(function(){return pt})),n.d(t,"geoAugustRaw",(function(){return ft})),n.d(t,"geoBaker",(function(){return mt})),n.d(t,"geoBakerRaw",(function(){return vt})),n.d(t,"geoBerghaus",(function(){return Ct})),n.d(t,"geoBerghausRaw",(function(){return wt})),n.d(t,"geoBoggs",(function(){return jt})),n.d(t,"geoBoggsRaw",(function(){return xt})),n.d(t,"geoBonne",(function(){return Tt})),n.d(t,"geoBonneRaw",(function(){return Rt})),n.d(t,"geoBottomley",(function(){return Qt})),n.d(t,"geoBottomleyRaw",(function(){return At})),n.d(t,"geoBromley",(function(){return en})),n.d(t,"geoBromleyRaw",(function(){return $t})),n.d(t,"geoChamberlin",(function(){return wn})),n.d(t,"geoChamberlinRaw",(function(){return gn})),n.d(t,"geoChamberlinAfrica",(function(){return bn})),n.d(t,"geoCollignon",(function(){return Mn})),n.d(t,"geoCollignonRaw",(function(){return Cn})),n.d(t,"geoCraig",(function(){return Pn})),n.d(t,"geoCraigRaw",(function(){return En})),n.d(t,"geoCraster",(function(){return Sn})),n.d(t,"geoCrasterRaw",(function(){return _n})),n.d(t,"geoCylindricalEqualArea",(function(){return jn})),n.d(t,"geoCylindricalEqualAreaRaw",(function(){return xn})),n.d(t,"geoCylindricalStereographic",(function(){return Nn})),n.d(t,"geoCylindricalStereographicRaw",(function(){return kn})),n.d(t,"geoEckert1",(function(){return Rn})),n.d(t,"geoEckert1Raw",(function(){return Ln})),n.d(t,"geoEckert2",(function(){return An})),n.d(t,"geoEckert2Raw",(function(){return Tn})),n.d(t,"geoEckert3",(function(){return Dn})),n.d(t,"geoEckert3Raw",(function(){return Fn})),n.d(t,"geoEckert4",(function(){return In})),n.d(t,"geoEckert4Raw",(function(){return Bn})),n.d(t,"geoEckert5",(function(){return zn})),n.d(t,"geoEckert5Raw",(function(){return Un})),n.d(t,"geoEckert6",(function(){return Hn})),n.d(t,"geoEckert6Raw",(function(){return Gn})),n.d(t,"geoEisenlohr",(function(){return Wn})),n.d(t,"geoEisenlohrRaw",(function(){return qn})),n.d(t,"geoFahey",(function(){return Xn})),n.d(t,"geoFaheyRaw",(function(){return Zn})),n.d(t,"geoFoucaut",(function(){return Jn})),n.d(t,"geoFoucautRaw",(function(){return Kn})),n.d(t,"geoGilbert",(function(){return rr})),n.d(t,"geoGingery",(function(){return ur})),n.d(t,"geoGingeryRaw",(function(){return or})),n.d(t,"geoGinzburg4",(function(){return lr})),n.d(t,"geoGinzburg4Raw",(function(){return cr})),n.d(t,"geoGinzburg5",(function(){return pr})),n.d(t,"geoGinzburg5Raw",(function(){return fr})),n.d(t,"geoGinzburg6",(function(){return hr})),n.d(t,"geoGinzburg6Raw",(function(){return dr})),n.d(t,"geoGinzburg8",(function(){return mr})),n.d(t,"geoGinzburg8Raw",(function(){return vr})),n.d(t,"geoGinzburg9",(function(){return yr})),n.d(t,"geoGinzburg9Raw",(function(){return gr})),n.d(t,"geoGringorten",(function(){return Cr})),n.d(t,"geoGringortenRaw",(function(){return wr})),n.d(t,"geoGuyou",(function(){return Or})),n.d(t,"geoGuyouRaw",(function(){return Pr})),n.d(t,"geoHammer",(function(){return jr})),n.d(t,"geoHammerRaw",(function(){return Sr})),n.d(t,"geoHammerRetroazimuthal",(function(){return Lr})),n.d(t,"geoHammerRetroazimuthalRaw",(function(){return kr})),n.d(t,"geoHealpix",(function(){return Fr})),n.d(t,"geoHealpixRaw",(function(){return Ar})),n.d(t,"geoHill",(function(){return Br})),n.d(t,"geoHillRaw",(function(){return Dr})),n.d(t,"geoHomolosine",(function(){return Vr})),n.d(t,"geoHomolosineRaw",(function(){return Hr})),n.d(t,"geoInterrupt",(function(){return Yr})),n.d(t,"geoInterruptedBoggs",(function(){return Xr})),n.d(t,"geoInterruptedHomolosine",(function(){return Jr})),n.d(t,"geoInterruptedMollweide",(function(){return $r})),n.d(t,"geoInterruptedMollweideHemispheres",(function(){return to})),n.d(t,"geoInterruptedSinuMollweide",(function(){return ro})),n.d(t,"geoInterruptedSinusoidal",(function(){return io})),n.d(t,"geoKavrayskiy7",(function(){return uo})),n.d(t,"geoKavrayskiy7Raw",(function(){return ao})),n.d(t,"geoLagrange",(function(){return co})),n.d(t,"geoLagrangeRaw",(function(){return so})),n.d(t,"geoLarrivee",(function(){return po})),n.d(t,"geoLarriveeRaw",(function(){return fo})),n.d(t,"geoLaskowski",(function(){return vo})),n.d(t,"geoLaskowskiRaw",(function(){return ho})),n.d(t,"geoLittrow",(function(){return go})),n.d(t,"geoLittrowRaw",(function(){return mo})),n.d(t,"geoLoximuthal",(function(){return bo})),n.d(t,"geoLoximuthalRaw",(function(){return yo})),n.d(t,"geoMiller",(function(){return Co})),n.d(t,"geoMillerRaw",(function(){return wo})),n.d(t,"geoModifiedStereographic",(function(){return Ro})),n.d(t,"geoModifiedStereographicRaw",(function(){return Mo})),n.d(t,"geoModifiedStereographicAlaska",(function(){return xo})),n.d(t,"geoModifiedStereographicGs48",(function(){return jo})),n.d(t,"geoModifiedStereographicGs50",(function(){return ko})),n.d(t,"geoModifiedStereographicMiller",(function(){return No})),n.d(t,"geoModifiedStereographicLee",(function(){return Lo})),n.d(t,"geoMollweide",(function(){return Ot})),n.d(t,"geoMollweideRaw",(function(){return Pt})),n.d(t,"geoMtFlatPolarParabolic",(function(){return Do})),n.d(t,"geoMtFlatPolarParabolicRaw",(function(){return Fo})),n.d(t,"geoMtFlatPolarQuartic",(function(){return Io})),n.d(t,"geoMtFlatPolarQuarticRaw",(function(){return Bo})),n.d(t,"geoMtFlatPolarSinusoidal",(function(){return zo})),n.d(t,"geoMtFlatPolarSinusoidalRaw",(function(){return Uo})),n.d(t,"geoNaturalEarth",(function(){return Ho})),n.d(t,"geoNaturalEarthRaw",(function(){return Go})),n.d(t,"geoNellHammer",(function(){return qo})),n.d(t,"geoNellHammerRaw",(function(){return Vo})),n.d(t,"geoPatterson",(function(){return ti})),n.d(t,"geoPattersonRaw",(function(){return ei})),n.d(t,"geoPolyconic",(function(){return si})),n.d(t,"geoPolyconicRaw",(function(){return ni})),n.d(t,"geoPolyhedral",(function(){return Vi})),n.d(t,"geoPolyhedralButterfly",(function(){return Ji})),n.d(t,"geoPolyhedralCollignon",(function(){return ea})),n.d(t,"geoPolyhedralWaterman",(function(){return ta})),n.d(t,"geoProject",(function(){return aa})),n.d(t,"geoGringortenQuincuncial",(function(){return ma})),n.d(t,"geoPeirceQuincuncial",(function(){return ga})),n.d(t,"geoPierceQuincuncial",(function(){return ga})),n.d(t,"geoQuantize",(function(){return ya})),n.d(t,"geoQuincuncial",(function(){return va})),n.d(t,"geoRectangularPolyconic",(function(){return wa})),n.d(t,"geoRectangularPolyconicRaw",(function(){return ba})),n.d(t,"geoRobinson",(function(){return Ea})),n.d(t,"geoRobinsonRaw",(function(){return Ma})),n.d(t,"geoSatellite",(function(){return Oa})),n.d(t,"geoSatelliteRaw",(function(){return Pa})),n.d(t,"geoSinuMollweide",(function(){return Gr})),n.d(t,"geoSinuMollweideRaw",(function(){return zr})),n.d(t,"geoSinusoidal",(function(){return Lt})),n.d(t,"geoSinusoidalRaw",(function(){return Nt})),n.d(t,"geoStitch",(function(){return za})),n.d(t,"geoTimes",(function(){return Ha})),n.d(t,"geoTimesRaw",(function(){return Ga})),n.d(t,"geoTwoPointAzimuthal",(function(){return Ya})),n.d(t,"geoTwoPointAzimuthalRaw",(function(){return qa})),n.d(t,"geoTwoPointAzimuthalUsa",(function(){return Wa})),n.d(t,"geoTwoPointEquidistant",(function(){return Ka})),n.d(t,"geoTwoPointEquidistantRaw",(function(){return Za})),n.d(t,"geoTwoPointEquidistantUsa",(function(){return Xa})),n.d(t,"geoVanDerGrinten",(function(){return Qa})),n.d(t,"geoVanDerGrintenRaw",(function(){return Ja})),n.d(t,"geoVanDerGrinten2",(function(){return eu})),n.d(t,"geoVanDerGrinten2Raw",(function(){return $a})),n.d(t,"geoVanDerGrinten3",(function(){return nu})),n.d(t,"geoVanDerGrinten3Raw",(function(){return tu})),n.d(t,"geoVanDerGrinten4",(function(){return ou})),n.d(t,"geoVanDerGrinten4Raw",(function(){return ru})),n.d(t,"geoWagner4",(function(){return su})),n.d(t,"geoWagner4Raw",(function(){return uu})),n.d(t,"geoWagner6",(function(){return lu})),n.d(t,"geoWagner6Raw",(function(){return cu})),n.d(t,"geoWagner7",(function(){return pu})),n.d(t,"geoWagner7Raw",(function(){return fu})),n.d(t,"geoWiechel",(function(){return hu})),n.d(t,"geoWiechelRaw",(function(){return du})),n.d(t,"geoWinkel3",(function(){return mu})),n.d(t,"geoWinkel3Raw",(function(){return vu}));var o=function(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:r,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},i=1e-6,a=Math.PI,u=a/2,s=a/4,c=2*a,l=180/a,f=a/180,p=Math.abs,d=Math.atan,h=Math.atan2,v=Math.cos,m=(Math.ceil,Math.exp,Math.floor,Math.log,Math.pow,Math.sin),g=Math.sign||function(e){return e>0?1:e<0?-1:0},y=Math.sqrt;Math.tan;function b(e){return e>1?0:e<-1?a:Math.acos(e)}function w(e){return e>1?u:e<-1?-u:Math.asin(e)}function C(e){return(e=m(e/2))*e}var M=function(e,t){return p(e[0]-t[0])=0;--a)o.point((f=l[a])[0],f[1]);else r(d.x,d.p.x,-1,o);d=d.p}l=(d=d.o).z,h=!h}while(!d.v);o.lineEnd()}}};function O(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r=0?1:-1,I=A*T,U=I>a,z=P*k;if(D.add(h(z*A*m(I),O*L+z*v(I))),f+=U?T+A*c:T,U^M>=n^x>=n){var G=R(N(C),N(S));F(G);var H=R(l,G);F(H);var V=(U^T>=0?-1:1)*w(H[2]);(r>V||r===V&&(G[0]||G[1]))&&(p+=U^T>=0?1:-1)}}return(f<-i||f0){for(C||(l.polygonStart(),C=!0),l.lineStart(),e=0;e1&&2&o&&i.push(i.pop().concat(i.shift())),p.push(i.filter(z))}return M}};function z(e){return e.length>1}function G(e,t){return((e=e.x)[0]<0?e[1]-u-i:u-e[1])-((t=t.x)[0]<0?t[1]-u-i:u-t[1])}var H=U((function(){return!0}),(function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(s,c){var l=s>0?a:-a,f=p(s-n);p(f-a)0?u:-u),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(s,r),t=0):o!==l&&f>=a&&(p(n-o)i?d((m(t)*(a=v(r))*m(n)-m(r)*(o=v(t))*m(e))/(o*a*u)):(t+r)/2}(n,r,s,c),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=s,r=c),o=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var o;if(null==e)o=n*u,r.point(-a,o),r.point(0,o),r.point(a,o),r.point(a,0),r.point(a,-o),r.point(0,-o),r.point(-a,-o),r.point(-a,0),r.point(-a,o);else if(p(e[0]-t[0])>i){var s=e[0]a?e+Math.round(-e/c)*c:e,t]}function Y(e,t,n){return(e%=c)?t||n?q(X(e),K(t,n)):X(e):t||n?K(t,n):W}function Z(e){return function(t,n){return[(t+=e)>a?t-c:t<-a?t+c:t,n]}}function X(e){var t=Z(e);return t.invert=Z(-e),t}function K(e,t){var n=v(e),r=m(e),o=v(t),i=m(t);function a(e,t){var a=v(t),u=v(e)*a,s=m(e)*a,c=m(t),l=c*n+u*r;return[h(s*o-l*i,u*n-c*r),w(l*o+s*i)]}return a.invert=function(e,t){var a=v(t),u=v(e)*a,s=m(e)*a,c=m(t),l=c*o-s*i;return[h(s*o+c*i,u*n+l*r),w(l*n-u*r)]},a}W.invert=W;var J=function(e){function t(t){return(t=e(t[0]*f,t[1]*f))[0]*=l,t[1]*=l,t}return e=Y(e[0]*f,e[1]*f,e.length>2?e[2]*f:0),t.invert=function(t){return(t=e.invert(t[0]*f,t[1]*f))[0]*=l,t[1]*=l,t},t};function Q(e,t,n,r,o,i){if(n){var a=v(t),u=m(t),s=r*n;null==o?(o=t+r*c,i=t-s/2):(o=$(a,o),i=$(a,i),(r>0?oi)&&(o+=r*c));for(var l,f=o;r>0?f>i:f0,o=p(t)>i;function u(e,n){return v(e)*v(n)>t}function s(e,n,r){var o=[1,0,0],u=R(N(e),N(n)),s=L(u,u),c=u[0],l=s-c*c;if(!l)return!r&&e;var f=t*s/l,d=-t*c/l,h=R(o,u),v=A(o,f);T(v,A(u,d));var m=h,g=L(v,m),b=L(m,m),w=g*g-b*(L(v,v)-1);if(!(w<0)){var C=y(w),M=A(m,(-g-C)/b);if(T(M,v),M=k(M),!r)return M;var E,P=e[0],O=n[0],_=e[1],S=n[1];O0^M[1]<(p(M[0]-P)a^(P<=M[0]&&M[0]<=O)){var F=A(m,(-g+C)/b);return T(F,v),[M,k(F)]}}}function c(t,n){var o=r?e:a-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return U(u,(function(e){var t,n,i,l,f;return{lineStart:function(){l=i=!1,f=1},point:function(p,d){var h,v=[p,d],m=u(p,d),g=r?m?0:c(p,d):m?c(p+(p<0?a:-a),d):0;if(!t&&(l=i=m)&&e.lineStart(),m!==i&&(!(h=s(t,v))||M(t,h)||M(v,h))&&(v[2]=1),m!==i)f=0,m?(e.lineStart(),h=s(v,t),e.point(h[0],h[1])):(h=s(t,v),e.point(h[0],h[1],2),e.lineEnd()),t=h;else if(o&&t&&r^m){var y;g&n||!(y=s(v,t,!0))||(f=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1],3)))}!m||t&&M(t,v)||e.point(v[0],v[1]),t=v,i=m,n=g},lineEnd:function(){i&&e.lineEnd(),t=null},clean:function(){return f|(l&&i)<<1}}}),(function(t,r,o,i){Q(i,e,n,o,t,r)}),r?[0,-e]:[-a,e-a])},te=function(e,t,n,r,o,i){var a,u=e[0],s=e[1],c=0,l=1,f=t[0]-u,p=t[1]-s;if(a=n-u,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>l)return;a>c&&(c=a)}if(a=o-u,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>c&&(c=a)}else if(f>0){if(a0)){if(a/=p,p<0){if(a0){if(a>l)return;a>c&&(c=a)}if(a=i-s,p||!(a<0)){if(a/=p,p<0){if(a>l)return;a>c&&(c=a)}else if(p>0){if(a0&&(e[0]=u+c*f,e[1]=s+c*p),l<1&&(t[0]=u+l*f,t[1]=s+l*p),!0}}}}},ne=1e9,re=-ne;function oe(e,t,n,r){function a(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function u(o,i,a,u){var c=0,f=0;if(null==o||(c=s(o,a))!==(f=s(i,a))||l(o,i)<0^a>0)do{u.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+a+4)%4)!==f);else u.point(i[0],i[1])}function s(r,o){return p(r[0]-e)0?0:3:p(r[0]-n)0?2:1:p(r[1]-t)0?1:0:o>0?3:2}function c(e,t){return l(e.x,t.x)}function l(e,t){var n=s(e,1),r=s(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(i){var s,l,f,p,d,h,v,m,g,y,b,w=i,C=o(),M={point:E,lineStart:function(){M.point=O,l&&l.push(f=[]);y=!0,g=!1,v=m=NaN},lineEnd:function(){s&&(O(p,d),h&&g&&C.rejoin(),s.push(C.result()));M.point=E,g&&w.lineEnd()},polygonStart:function(){w=C,s=[],l=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=l.length;nr&&(p-i)*(r-a)>(d-a)*(e-i)&&++t:d<=r&&(p-i)*(r-a)<(d-a)*(e-i)&&--t;return t}(),n=b&&t,o=(s=Object(I.a)(s)).length;(n||o)&&(i.polygonStart(),n&&(i.lineStart(),u(null,null,1,i),i.lineEnd()),o&&P(s,c,t,u,i),i.polygonEnd());w=i,s=l=f=null}};function E(e,t){a(e,t)&&w.point(e,t)}function O(o,i){var u=a(o,i);if(l&&f.push([o,i]),y)p=o,d=i,h=u,y=!1,u&&(w.lineStart(),w.point(o,i));else if(u&&g)w.point(o,i);else{var s=[v=Math.max(re,Math.min(ne,v)),m=Math.max(re,Math.min(ne,m))],c=[o=Math.max(re,Math.min(ne,o)),i=Math.max(re,Math.min(ne,i))];te(s,c,e,t,n,r)?(g||(w.lineStart(),w.point(s[0],s[1])),w.point(c[0],c[1]),u||w.lineEnd(),b=!1):u&&(w.lineStart(),w.point(o,i),b=!1)}v=o,m=i,g=u}return M}}var ie=function(e){return e};function ae(e){return function(t){var n=new ue;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ue(){}function se(e,t){e&&le.hasOwnProperty(e.type)&&le[e.type](e,t)}ue.prototype={constructor:ue,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ce={Feature:function(e,t){se(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++rme&&(me=e);tge&&(ge=t)},lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var e=[[he,ve],[me,ge]];return me=ge=-(ve=he=1/0),e}};function be(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),de(n,e.stream(ye)),t(ye.result()),null!=r&&e.clipExtent(r),e}function we(e,t,n){return be(e,(function(n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=Math.min(r/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),a=+t[0][0]+(r-i*(n[1][0]+n[0][0]))/2,u=+t[0][1]+(o-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,u])}),n)}var Ce=16,Me=v(30*f),Ee=function(e,t){return+t?function(e,t){function n(r,o,a,u,s,c,l,f,d,v,m,g,b,C){var M=l-r,E=f-o,P=M*M+E*E;if(P>4*t&&b--){var O=u+v,_=s+m,S=c+g,x=y(O*O+_*_+S*S),j=w(S/=x),k=p(p(S)-1)t||p((M*T+E*A)/P-.5)>.3||u*v+s*m+c*g2?e[2]%360*f:0,L()):[b*l,w*l,C*l]},k.angle=function(e){return arguments.length?(M=e%360*f,L()):M*l},k.reflectX=function(e){return arguments.length?(E=e?-1:1,L()):E<0},k.reflectY=function(e){return arguments.length?(P=e?-1:1,L()):P<0},k.precision=function(e){return arguments.length?(a=Ee(u,j=e*e),R()):y(j)},k.fitExtent=function(e,t){return we(k,e,t)},k.fitSize=function(e,t){return function(e,t,n){return we(e,[[0,0],t],n)}(k,e,t)},k.fitWidth=function(e,t){return function(e,t,n){return be(e,(function(n){var r=+t,o=r/(n[1][0]-n[0][0]),i=(r-o*(n[1][0]+n[0][0]))/2,a=-o*n[0][1];e.scale(150*o).translate([i,a])}),n)}(k,e,t)},k.fitHeight=function(e,t){return function(e,t,n){return be(e,(function(n){var r=+t,o=r/(n[1][1]-n[0][1]),i=-o*n[0][0],a=(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([i,a])}),n)}(k,e,t)},function(){return t=e.apply(this,arguments),k.invert=t.invert&&N,L()}}var je=Math.abs,ke=Math.atan,Ne=Math.atan2,Le=(Math.ceil,Math.cos),Re=Math.exp,Te=Math.floor,Ae=Math.log,Fe=Math.max,De=Math.min,Be=Math.pow,Ie=Math.round,Ue=Math.sign||function(e){return e>0?1:e<0?-1:0},ze=Math.sin,Ge=Math.tan,He=1e-6,Ve=1e-12,qe=Math.PI,We=qe/2,Ye=qe/4,Ze=Math.SQRT1_2,Xe=nt(2),Ke=nt(qe),Je=2*qe,Qe=180/qe,$e=qe/180;function et(e){return e>1?We:e<-1?-We:Math.asin(e)}function tt(e){return e>1?0:e<-1?qe:Math.acos(e)}function nt(e){return e>0?Math.sqrt(e):0}function rt(e){return(Re(e)-Re(-e))/2}function ot(e){return(Re(e)+Re(-e))/2}function it(e){var t=Ge(e/2),n=2*Ae(Le(e/2))/(t*t);function r(e,t){var r=Le(e),o=Le(t),i=ze(t),a=o*r,u=-((1-a?Ae((1+a)/2)/(1-a):-.5)+n/(1+a));return[u*o*ze(e),u*i]}return r.invert=function(t,r){var o,i=nt(t*t+r*r),a=-e/2,u=50;if(!i)return[0,0];do{var s=a/2,c=Le(s),l=ze(s),f=Ge(s),p=Ae(1/c);a-=o=(2/f*p-n*f-i)/(-p/(l*l)+1-n/(2*c*c))}while(je(o)>He&&--u>0);var d=ze(a);return[Ne(t*d,i*Le(a)),et(r*d/i)]},r}var at=function(){var e=We,t=xe(it),n=t(e);return n.radius=function(n){return arguments.length?t(e=n*$e):e*Qe},n.scale(179.976).clipAngle(147)};function ut(e,t){var n=Le(t),r=function(e){return e?e/Math.sin(e):1}(tt(n*Le(e/=2)));return[2*n*ze(e)*r,ze(t)*r]}ut.invert=function(e,t){if(!(e*e+4*t*t>qe*qe+He)){var n=e,r=t,o=25;do{var i,a=ze(n),u=ze(n/2),s=Le(n/2),c=ze(r),l=Le(r),f=ze(2*r),p=c*c,d=l*l,h=u*u,v=1-d*s*s,m=v?tt(l*s)*nt(i=1/v):i=0,g=2*m*l*u-e,y=m*c-t,b=i*(d*h+m*l*s*p),w=i*(.5*a*f-2*m*c*u),C=.25*i*(f*u-m*c*d*a),M=i*(p*s+m*h*l),E=w*C-M*b;if(!E)break;var P=(y*w-g*M)/E,O=(g*C-y*b)/E;n-=P,r-=O}while((je(P)>He||je(O)>He)&&--o>0);return[n,r]}};var st=function(){return Se(ut).scale(152.63)};function ct(e){var t=ze(e),n=Le(e),r=e>=0?1:-1,o=Ge(r*e),i=(1+t-n)/2;function a(e,a){var u=Le(a),s=Le(e/=2);return[(1+u)*ze(e),(r*a>-Ne(s,o)-.001?0:10*-r)+i+ze(a)*n-(1+u)*t*s]}return a.invert=function(e,a){var u=0,s=0,c=50;do{var l=Le(u),f=ze(u),p=Le(s),d=ze(s),h=1+p,v=h*f-e,m=i+d*n-h*t*l-a,g=h*l/2,y=-f*d,b=t*h*f/2,w=n*p+t*l*d,C=y*b-w*g,M=(m*y-v*w)/C/2,E=(v*b-m*g)/C;u-=M,s-=E}while((je(M)>He||je(E)>He)&&--c>0);return r*s>-Ne(Le(u),o)-.001?[2*u,s]:null},a}var lt=function(){var e=20*$e,t=e>=0?1:-1,n=Ge(t*e),r=xe(ct),o=r(e),i=o.stream;return o.parallel=function(o){return arguments.length?(n=Ge((t=(e=o*$e)>=0?1:-1)*e),r(e)):e*Qe},o.stream=function(r){var a=o.rotate(),u=i(r),s=(o.rotate([0,0]),i(r));return o.rotate(a),u.sphere=function(){s.polygonStart(),s.lineStart();for(var r=-180*t;t*r<180;r+=90*t)s.point(r,90*t);for(;t*(r-=e)>=-180;)s.point(r,t*-Ne(Le(r*$e/2),n)*Qe);s.lineEnd(),s.polygonEnd()},u},o.scale(218.695).center([0,28.0974])};function ft(e,t){var n=Ge(t/2),r=nt(1-n*n),o=1+r*Le(e/=2),i=ze(e)*r/o,a=n/o,u=i*i,s=a*a;return[4/3*i*(3+u-3*s),4/3*a*(3+3*u-s)]}ft.invert=function(e,t){if(t*=3/8,!(e*=3/8)&&je(t)>1)return null;var n=1+e*e+t*t,r=nt((n-nt(n*n-4*t*t))/2),o=et(r)/3,i=r?function(e){return Ae(e+nt(e*e-1))}(je(t/r))/3:function(e){return Ae(e+nt(e*e+1))}(je(e))/3,a=Le(o),u=ot(i),s=u*u-a*a;return[2*Ue(e)*Ne(rt(i)*a,.25-s),2*Ue(t)*Ne(u*ze(o),.25+s)]};var pt=function(){return Se(ft).scale(66.1603)},dt=nt(8),ht=Ae(1+Xe);function vt(e,t){var n=je(t);return nVe&&--i>0);return[e/(Le(o)*(dt-1/ze(o))),Ue(t)*o]};var mt=function(){return Se(vt).scale(112.314)};function gt(e){return function(t,n){var r=v(t),o=v(n),i=e(r*o);return[i*o*m(t),i*m(n)]}}function yt(e){return function(t,n){var r=y(t*t+n*n),o=e(r),i=m(o),a=v(o);return[h(t*i,r*a),w(r&&n*i/r)]}}var bt=gt((function(e){return(e=b(e))&&e/m(e)}));bt.invert=yt((function(e){return e}));function wt(e){var t=2*qe/e;function n(e,n){var r=bt(e,n);if(je(e)>We){var o=Ne(r[1],r[0]),i=nt(r[0]*r[0]+r[1]*r[1]),a=t*Ie((o-We)/t)+We,u=Ne(ze(o-=a),2-Le(o));o=a+et(qe/i*ze(u))-u,r[0]=i*Le(o),r[1]=i*ze(o)}return r}return n.invert=function(e,n){var r=nt(e*e+n*n);if(r>We){var o=Ne(n,e),i=t*Ie((o-We)/t)+We,a=o>i?-1:1,u=r*Le(i-o),s=1/Ge(a*tt((u-qe)/nt(qe*(qe-2*u)+r*r)));o=i+2*ke((s+a*nt(s*s-3))/3),e=r*Le(o),n=r*ze(o)}return bt.invert(e,n)},n}var Ct=function(){var e=5,t=xe(wt),n=t(e),r=n.stream,o=-Le(.01*$e),i=ze(.01*$e);return n.lobes=function(n){return arguments.length?t(e=+n):e},n.stream=function(t){var a=n.rotate(),u=r(t),s=(n.rotate([0,0]),r(t));return n.rotate(a),u.sphere=function(){s.polygonStart(),s.lineStart();for(var t=0,n=360/e,r=2*qe/e,a=90-180/e,u=We;tHe&&--o>0);return t/2}function Et(e,t,n){function r(r,o){return[e*r*Le(o=Mt(n,o)),t*ze(o)]}return r.invert=function(r,o){return o=et(o/t),[r/(e*Le(o)),et((2*o+ze(2*o))/n)]},r}var Pt=Et(Xe/We,Xe,qe),Ot=function(){return Se(Pt).scale(169.529)},_t=2.00276,St=1.11072;function xt(e,t){var n=Mt(qe,t);return[_t*e/(1/Le(t)+St/Le(n)),(t+Xe*ze(n))/_t]}xt.invert=function(e,t){var n,r,o=_t*t,i=t<0?-Ye:Ye,a=25;do{r=o-Xe*ze(i),i-=n=(ze(2*i)+2*i-qe*ze(r))/(2*Le(2*i)+2+qe*Le(r)*Xe*Le(i))}while(je(n)>He&&--a>0);return r=o-Xe*ze(i),[e*(1/Le(r)+St/Le(i))/_t,r]};var jt=function(){return Se(xt).scale(160.857)},kt=function(e){var t=0,n=xe(e),r=n(t);return r.parallel=function(e){return arguments.length?n(t=e*$e):t*Qe},r};function Nt(e,t){return[e*Le(t),t]}Nt.invert=function(e,t){return[e/Le(t),t]};var Lt=function(){return Se(Nt).scale(152.63)};function Rt(e){if(!e)return Nt;var t=1/Ge(e);function n(n,r){var o=t+e-r,i=o?n*Le(r)/o:o;return[o*ze(i),t-o*Le(i)]}return n.invert=function(n,r){var o=nt(n*n+(r=t-r)*r),i=t+e-o;return[o/Le(i)*Ne(n,r),i]},n}var Tt=function(){return kt(Rt).scale(123.082).center([0,26.1441]).parallel(45)};function At(e){function t(t,n){var r=We-n,o=r?t*e*ze(r)/r:r;return[r*ze(o)/e,We-r*Le(o)]}return t.invert=function(t,n){var r=t*e,o=We-n,i=nt(r*r+o*o),a=Ne(r,o);return[(i?i/ze(i):1)*a/e,We-i]},t}var Ft,Dt,Bt,It,Ut,zt,Gt,Ht,Vt,qt,Wt,Yt,Zt,Xt,Kt,Jt,Qt=function(){var e=.5,t=xe(At),n=t(e);return n.fraction=function(n){return arguments.length?t(e=+n):e},n.scale(158.837)},$t=Et(1,4/qe,qe),en=function(){return Se($t).scale(152.63)},tn={sphere:r,point:nn,lineStart:on,lineEnd:sn,polygonStart:function(){tn.lineStart=cn,tn.lineEnd=ln},polygonEnd:function(){tn.lineStart=on,tn.lineEnd=sn}};function nn(e,t){e*=f;var n=v(t*=f);rn(n*v(e),n*m(e),m(t))}function rn(e,t,n){++Ft,Bt+=(e-Bt)/Ft,It+=(t-It)/Ft,Ut+=(n-Ut)/Ft}function on(){tn.point=an}function an(e,t){e*=f;var n=v(t*=f);Xt=n*v(e),Kt=n*m(e),Jt=m(t),tn.point=un,rn(Xt,Kt,Jt)}function un(e,t){e*=f;var n=v(t*=f),r=n*v(e),o=n*m(e),i=m(t),a=h(y((a=Kt*i-Jt*o)*a+(a=Jt*r-Xt*i)*a+(a=Xt*o-Kt*r)*a),Xt*r+Kt*o+Jt*i);Dt+=a,zt+=a*(Xt+(Xt=r)),Gt+=a*(Kt+(Kt=o)),Ht+=a*(Jt+(Jt=i)),rn(Xt,Kt,Jt)}function sn(){tn.point=nn}function cn(){tn.point=fn}function ln(){pn(Yt,Zt),tn.point=nn}function fn(e,t){Yt=e,Zt=t,e*=f,t*=f,tn.point=pn;var n=v(t);Xt=n*v(e),Kt=n*m(e),Jt=m(t),rn(Xt,Kt,Jt)}function pn(e,t){e*=f;var n=v(t*=f),r=n*v(e),o=n*m(e),i=m(t),a=Kt*i-Jt*o,u=Jt*r-Xt*i,s=Xt*o-Kt*r,c=y(a*a+u*u+s*s),l=w(c),p=c&&-l/c;Vt+=p*a,qt+=p*u,Wt+=p*s,Dt+=l,zt+=l*(Xt+(Xt=r)),Gt+=l*(Kt+(Kt=o)),Ht+=l*(Jt+(Jt=i)),rn(Xt,Kt,Jt)}var dn=function(e){Ft=Dt=Bt=It=Ut=zt=Gt=Ht=Vt=qt=Wt=0,de(e,tn);var t=Vt,n=qt,r=Wt,o=t*t+n*n+r*r;return o<1e-12&&(t=zt,n=Gt,r=Ht,Dt1||je(i)>1)a=tt(n*o+t*r*u);else{var s=ze(e/2),c=ze(i/2);a=2*et(nt(s*s+t*r*c*c))}return je(a)>He?[a,Ne(r*ze(i),t*o-n*r*u)]:[0,0]}function vn(e,t,n){return tt((e*e+t*t-n*n)/(2*e*t))}function mn(e){return e-2*qe*Te((e+qe)/(2*qe))}function gn(e,t,n){for(var r,o=[[e[0],e[1],ze(e[1]),Le(e[1])],[t[0],t[1],ze(t[1]),Le(t[1])],[n[0],n[1],ze(n[1]),Le(n[1])]],i=o[2],a=0;a<3;++a,i=r)r=o[a],i.v=hn(r[1]-i[1],i[3],i[2],r[3],r[2],r[0]-i[0]),i.point=[0,0];var u=vn(o[0].v[0],o[2].v[0],o[1].v[0]),s=vn(o[0].v[0],o[1].v[0],o[2].v[0]),c=qe-u;o[2].point[1]=0,o[0].point[0]=-(o[1].point[0]=o[0].v[0]/2);var l=[o[2].point[0]=o[0].point[0]+o[2].v[0]*Le(u),2*(o[0].point[1]=o[1].point[1]=o[2].v[0]*ze(u))];return function(e,t){var n,r=ze(t),i=Le(t),a=new Array(3);for(n=0;n<3;++n){var u=o[n];if(a[n]=hn(t-u[1],u[3],u[2],i,r,e-u[0]),!a[n][0])return u.point;a[n][1]=mn(a[n][1]-u.v[1])}var f=l.slice();for(n=0;n<3;++n){var p=2==n?0:n+1,d=vn(o[n].v[0],a[n][0],a[p][0]);a[n][1]<0&&(d=-d),n?1==n?(d=s-d,f[0]-=a[n][0]*Le(d),f[1]-=a[n][0]*ze(d)):(d=c-d,f[0]+=a[n][0]*Le(d),f[1]+=a[n][0]*ze(d)):(f[0]+=a[n][0]*Le(d),f[1]-=a[n][0]*ze(d))}return f[0]/=3,f[1]/=3,f}}function yn(e){return e[0]*=$e,e[1]*=$e,e}function bn(){return wn([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function wn(e,t,n){var r=dn({type:"MultiPoint",coordinates:[e,t,n]}),o=[-r[0],-r[1]],i=J(o),a=Se(gn(yn(i(e)),yn(i(t)),yn(i(n)))).rotate(o),u=a.center;return delete a.rotate,a.center=function(e){return arguments.length?u(i(e)):i.invert(u())},a.clipAngle(90)}function Cn(e,t){var n=nt(1-ze(t));return[2/Ke*e*n,Ke*(1-n)]}Cn.invert=function(e,t){var n=(n=t/Ke-1)*n;return[n>0?e*nt(qe/n)/2:0,et(1-n)]};var Mn=function(){return Se(Cn).scale(95.6464).center([0,30])};function En(e){var t=Ge(e);function n(e,n){return[e,(e?e/ze(e):1)*(ze(n)*Le(e)-t*Le(n))]}return n.invert=t?function(e,n){e&&(n*=ze(e)/e);var r=Le(e);return[e,2*Ne(nt(r*r+t*t-n*n)-r,t-n)]}:function(e,t){return[e,et(e?t*Ge(e)/e:t)]},n}var Pn=function(){return kt(En).scale(249.828).clipAngle(90)},On=nt(3);function _n(e,t){return[On*e*(2*Le(2*t/3)-1)/Ke,On*Ke*ze(t/3)]}_n.invert=function(e,t){var n=3*et(t/(On*Ke));return[Ke*e/(On*(2*Le(2*n/3)-1)),n]};var Sn=function(){return Se(_n).scale(156.19)};function xn(e){var t=Le(e);function n(e,n){return[e*t,ze(n)/t]}return n.invert=function(e,n){return[e/t,et(n*t)]},n}var jn=function(){return kt(xn).parallel(38.58).scale(195.044)};function kn(e){var t=Le(e);function n(e,n){return[e*t,(1+t)*Ge(n/2)]}return n.invert=function(e,n){return[e/t,2*ke(n/(1+t))]},n}var Nn=function(){return kt(kn).scale(124.75)};function Ln(e,t){var n=nt(8/(3*qe));return[n*e*(1-je(t)/qe),n*t]}Ln.invert=function(e,t){var n=nt(8/(3*qe)),r=t/n;return[e/(n*(1-je(r)/qe)),r]};var Rn=function(){return Se(Ln).scale(165.664)};function Tn(e,t){var n=nt(4-3*ze(je(t)));return[2/nt(6*qe)*e*n,Ue(t)*nt(2*qe/3)*(2-n)]}Tn.invert=function(e,t){var n=2-je(t)/nt(2*qe/3);return[e*nt(6*qe)/(2*n),Ue(t)*et((4-n*n)/3)]};var An=function(){return Se(Tn).scale(165.664)};function Fn(e,t){var n=nt(qe*(4+qe));return[2/n*e*(1+nt(1-4*t*t/(qe*qe))),4/n*t]}Fn.invert=function(e,t){var n=nt(qe*(4+qe))/2;return[e*n/(1+nt(1-t*t*(4+qe)/(4*qe))),t*n/2]};var Dn=function(){return Se(Fn).scale(180.739)};function Bn(e,t){var n=(2+We)*ze(t);t/=2;for(var r=0,o=1/0;r<10&&je(o)>He;r++){var i=Le(t);t-=o=(t+ze(t)*(i+2)-n)/(2*i*(1+i))}return[2/nt(qe*(4+qe))*e*(1+Le(t)),2*nt(qe/(4+qe))*ze(t)]}Bn.invert=function(e,t){var n=t*nt((4+qe)/qe)/2,r=et(n),o=Le(r);return[e/(2/nt(qe*(4+qe))*(1+o)),et((r+n*(o+2))/(2+We))]};var In=function(){return Se(Bn).scale(180.739)};function Un(e,t){return[e*(1+Le(t))/nt(2+qe),2*t/nt(2+qe)]}Un.invert=function(e,t){var n=nt(2+qe),r=t*n/2;return[n*e/(1+Le(r)),r]};var zn=function(){return Se(Un).scale(173.044)};function Gn(e,t){for(var n=(1+We)*ze(t),r=0,o=1/0;r<10&&je(o)>He;r++)t-=o=(t+ze(t)-n)/(1+Le(t));return n=nt(2+qe),[e*(1+Le(t))/n,2*t/n]}Gn.invert=function(e,t){var n=1+We,r=nt(n/2);return[2*e*r/(1+Le(t*=r)),et((t+ze(t))/n)]};var Hn=function(){return Se(Gn).scale(173.044)},Vn=3+2*Xe;function qn(e,t){var n=ze(e/=2),r=Le(e),o=nt(Le(t)),i=Le(t/=2),a=ze(t)/(i+Xe*r*o),u=nt(2/(1+a*a)),s=nt((Xe*i+(r+n)*o)/(Xe*i+(r-n)*o));return[Vn*(u*(s-1/s)-2*Ae(s)),Vn*(u*a*(s+1/s)-2*ke(a))]}qn.invert=function(e,t){if(!(n=ft.invert(e/1.2,1.065*t)))return null;var n,r=n[0],o=n[1],i=20;e/=Vn,t/=Vn;do{var a=r/2,u=o/2,s=ze(a),c=Le(a),l=ze(u),f=Le(u),p=Le(o),d=nt(p),h=l/(f+Xe*c*d),v=h*h,m=nt(2/(1+v)),g=(Xe*f+(c+s)*d)/(Xe*f+(c-s)*d),y=nt(g),b=y-1/y,w=y+1/y,C=m*b-2*Ae(y)-e,M=m*h*w-2*ke(h)-t,E=l&&Ze*d*s*v/l,P=(Xe*c*f+d)/(2*(f+Xe*c*d)*(f+Xe*c*d)*d),O=-.5*h*m*m*m,_=O*E,S=O*P,x=(x=2*f+Xe*d*(c-s))*x*y,j=(Xe*c*f*d+p)/x,k=-Xe*s*l/(d*x),N=b*_-2*j/y+m*(j+j/g),L=b*S-2*k/y+m*(k+k/g),R=h*w*_-2*E/(1+v)+m*w*E+m*h*(j-j/g),T=h*w*S-2*P/(1+v)+m*w*P+m*h*(k-k/g),A=L*R-T*N;if(!A)break;var F=(M*L-C*T)/A,D=(C*R-M*N)/A;r-=F,o=Fe(-We,De(We,o-D))}while((je(F)>He||je(D)>He)&&--i>0);return je(je(o)-We)r){var c=nt(s),l=Ne(u,a),f=n*Ie(l/n),p=l-f,d=e*Le(p),h=(e*ze(p)-p*ze(d))/(We-d),v=ir(p,h),m=(qe-e)/ar(v,d,qe);a=c;var g,y=50;do{a-=g=(e+ar(v,d,a)*m-c)/(v(a)*m)}while(je(g)>He&&--y>0);u=p*ze(a),ar){var a=nt(i),u=Ne(o,t),s=n*Ie(u/n),c=u-s;t=a*Le(c),o=a*ze(c);for(var l=t-We,f=ze(t),p=o/f,d=tHe||je(f)>He)&&--h>0);return[p,d]},s},cr=sr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),lr=function(){return Se(cr).scale(149.995)},fr=sr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),pr=function(){return Se(fr).scale(153.93)},dr=sr(5/6*qe,-.62636,-.0344,0,1.3493,-.05524,0,.045),hr=function(){return Se(dr).scale(130.945)};function vr(e,t){var n=e*e,r=t*t;return[e*(1-.162388*r)*(.87-952426e-9*n*n),t*(1+r/12)]}vr.invert=function(e,t){var n,r=e,o=t,i=50;do{var a=o*o;o-=n=(o*(1+a/12)-t)/(1+a/4)}while(je(n)>He&&--i>0);i=50,e/=1-.162388*a;do{var u=(u=r*r)*u;r-=n=(r*(.87-952426e-9*u)-e)/(.87-.00476213*u)}while(je(n)>He&&--i>0);return[r,o]};var mr=function(){return Se(vr).scale(131.747)},gr=sr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762),yr=function(){return Se(gr).scale(131.087)},br=function(e){var t=e(We,0)[0]-e(-We,0)[0];function n(n,r){var o=n>0?-.5:.5,i=e(n+o*qe,r);return i[0]-=o*t,i}return e.invert&&(n.invert=function(n,r){var o=n>0?-.5:.5,i=e.invert(n+o*t,r),a=i[0]-o*qe;return a<-qe?a+=2*qe:a>qe&&(a-=2*qe),i[0]=a,i}),n};function wr(e,t){var n=Ue(e),r=Ue(t),o=Le(t),i=Le(e)*o,a=ze(e)*o,u=ze(r*t);e=je(Ne(a,u)),t=et(i),je(e-We)>He&&(e%=We);var s=function(e,t){if(t===We)return[0,0];var n,r,o=ze(t),i=o*o,a=i*i,u=1+a,s=1+3*a,c=1-a,l=et(1/nt(u)),f=c+i*u*l,p=(1-o)/f,d=nt(p),h=p*u,v=nt(h),m=d*c;if(0===e)return[0,-(m+i*v)];var g,y=Le(t),b=1/y,w=2*o*y,C=(-f*y-(-3*i+l*s)*w*(1-o))/(f*f),M=-b*w,E=-b*(i*u*C+p*s*w),P=-2*b*(c*(.5*C/d)-2*i*d*w),O=4*e/qe;if(e>.222*qe||t.175*qe){if(n=(m+i*nt(h*(1+a)-m*m))/(1+a),e>qe/4)return[n,n];var _=n,S=.5*n;n=.5*(S+_),r=50;do{var x=nt(h-n*n),j=n*(P+M*x)+E*et(n/v)-O;if(!j)break;j<0?S=n:_=n,n=.5*(S+_)}while(je(_-S)>He&&--r>0)}else{n=He,r=25;do{var k=n*n,N=nt(h-k),L=P+M*N,R=n*L+E*et(n/v)-O,T=L+(E-M*k)/N;n-=g=N?R/T:0}while(je(g)>He&&--r>0)}return[n,-m-i*nt(h-n*n)]}(e>qe/4?We-e:e,t);return e>qe/4&&(u=s[0],s[0]=-s[1],s[1]=-u),s[0]*=n,s[1]*=-r,s}wr.invert=function(e,t){var n=Ue(e),r=Ue(t),o=-n*e,i=-r*t,a=i/o<1,u=function(e,t){var n=0,r=1,o=.5,i=50;for(;;){var a=o*o,u=nt(o),s=et(1/nt(1+a)),c=1-a+o*(1+a)*s,l=(1-u)/c,f=nt(l),p=l*(1+a),d=f*(1-a),h=nt(p-e*e),v=t+d+o*h;if(je(r-n)0?n=o:r=o,o=.5*(n+r)}if(!i)return null;var m=et(u),g=Le(m),y=1/g,b=2*u*g,w=(-c*g-(-3*o+s*(1+3*a))*b*(1-u))/(c*c);return[qe/4*(e*(-2*y*(.5*w/f*(1-a)-2*o*f*b)+-y*b*h)+-y*(o*(1+a)*w+l*(1+3*a)*b)*et(e/nt(p))),m]}(a?i:o,a?o:i),s=u[0],c=u[1],l=Le(c);return a&&(s=-We-s),[n*(Ne(ze(s)*l,-ze(c))+qe),r*et(Le(s)*l)]};var Cr=function(){return Se(br(wr)).scale(239.75)};function Mr(e,t){var n,r,o,i,a,u;if(t=1-He)return n=(1-t)/4,o=1/(r=ot(e)),[(i=((u=Re(2*(u=e)))-1)/(u+1))+n*((a=r*rt(e))-e)/(r*r),o-n*i*o*(a-e),o+n*i*o*(a+e),2*ke(Re(e))-We+n*(a-e)/r];var s=[1,0,0,0,0,0,0,0,0],c=[nt(t),0,0,0,0,0,0,0,0],l=0;for(r=nt(1-t),a=1;je(c[l]/s[l])>He&&l<8;)n=s[l++],c[l]=(n-r)/2,s[l]=(n+r)/2,r=nt(n*r),a*=2;o=a*s[l]*e;do{o=(et(i=c[l]*ze(r=o)/s[l])+o)/2}while(--l);return[ze(o),i=Le(o),i/Le(o-r),o]}function Er(e,t){if(!t)return e;if(1===t)return Ae(Ge(e/2+Ye));for(var n=1,r=nt(1-t),o=nt(t),i=0;je(o)>He;i++){if(e%qe){var a=ke(r*Ge(e)/n);a<0&&(a+=qe),e+=a+~~(e/qe)*qe}else e+=e;o=(n+r)/2,r=nt(n*r),o=((n=o)-r)/2}return e/(Be(2,i)*n)}function Pr(e,t){var n=(Xe-1)/(Xe+1),r=nt(1-n*n),o=Er(We,r*r),i=Ae(Ge(qe/4+je(t)/2)),a=Re(-1*i)/nt(n),u=function(e,t){var n=e*e,r=t+1,o=1-n-t*t;return[.5*((e>=0?We:-We)-Ne(o,2*e)),-.25*Ae(o*o+4*n)+.5*Ae(r*r+n)]}(a*Le(-1*e),a*ze(-1*e)),s=function(e,t,n){var r=je(e),o=rt(je(t));if(r){var i=1/ze(r),a=1/(Ge(r)*Ge(r)),u=-(a+n*(o*o*i*i)-1+n),s=(-u+nt(u*u-4*((n-1)*a)))/2;return[Er(ke(1/nt(s)),n)*Ue(e),Er(ke(nt((s/a-1)/n)),1-n)*Ue(t)]}return[0,Er(ke(o),1-n)*Ue(t)]}(u[0],u[1],r*r);return[-s[1],(t>=0?1:-1)*(.5*o-s[0])]}Pr.invert=function(e,t){var n=(Xe-1)/(Xe+1),r=nt(1-n*n),o=function(e,t,n){var r,o,i;return e?(r=Mr(e,n),t?(i=(o=Mr(t,1-n))[1]*o[1]+n*r[0]*r[0]*o[0]*o[0],[[r[0]*o[2]/i,r[1]*r[2]*o[0]*o[1]/i],[r[1]*o[1]/i,-r[0]*r[2]*o[0]*o[2]/i],[r[2]*o[1]*o[2]/i,-n*r[0]*r[1]*o[0]/i]]):[[r[0],0],[r[1],0],[r[2],0]]):[[0,(o=Mr(t,1-n))[0]/o[1]],[1/o[1],0],[o[2]/o[1],0]]}(.5*Er(We,r*r)-t,-e,r*r),i=function(e,t){var n=t[0]*t[0]+t[1]*t[1];return[(e[0]*t[0]+e[1]*t[1])/n,(e[1]*t[0]-e[0]*t[1])/n]}(o[0],o[1]);return[Ne(i[1],i[0])/-1,2*ke(Re(-.5*Ae(n*i[0]*i[0]+n*i[1]*i[1])))-We]};var Or=function(){return Se(br(Pr)).scale(151.496)},_r=gt((function(e){return y(2/(1+e))}));_r.invert=yt((function(e){return 2*w(e/2)}));function Sr(e,t){if(arguments.length<2&&(t=e),1===t)return _r;if(t===1/0)return xr;function n(n,r){var o=_r(n/t,r);return o[0]*=e,o}return n.invert=function(n,r){var o=_r.invert(n/e,r);return o[0]*=t,o},n}function xr(e,t){return[e*Le(t)/Le(t/=2),2*ze(t)]}xr.invert=function(e,t){var n=2*et(t/2);return[e*Le(n/2)/Le(n),n]};var jr=function(){var e=2,t=xe(Sr),n=t(e);return n.coefficient=function(n){return arguments.length?t(e=+n):e},n.scale(169.529)};function kr(e){var t=ze(e),n=Le(e),r=Nr(e);function o(e,o){var i=r(e,o);e=i[0],o=i[1];var a=ze(o),u=Le(o),s=Le(e),c=tt(t*a+n*u*s),l=ze(c),f=je(l)>He?c/l:1;return[f*n*ze(e),(je(e)>We?f:-f)*(t*u-n*a*s)]}return r.invert=Nr(-e),o.invert=function(e,n){var o=nt(e*e+n*n),i=-ze(o),a=Le(o),u=o*a,s=-n*i,c=o*t,l=nt(u*u+s*s-c*c),f=Ne(u*c+s*l,s*c-u*l),p=(o>We?-1:1)*Ne(e*i,o*Le(f)*a+n*ze(f)*i);return r.invert(p,f)},o}function Nr(e){var t=ze(e),n=Le(e);return function(e,r){var o=Le(r),i=Le(e)*o,a=ze(e)*o,u=ze(r);return[Ne(a,i*n-u*t),et(u*n+i*t)]}}var Lr=function(){var e=0,t=xe(kr),n=t(e),r=n.rotate,o=n.stream,i=function(){var e,t,n=V([0,0]),r=V(90),o=V(6),i={point:function(n,r){e.push(n=t(n,r)),n[0]*=l,n[1]*=l}};function a(){var a=n.apply(this,arguments),u=r.apply(this,arguments)*f,s=o.apply(this,arguments)*f;return e=[],t=Y(-a[0]*f,-a[1]*f,0).invert,Q(i,u,s,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"===typeof e?e:V([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"===typeof e?e:V(+e),a):r},a.precision=function(e){return arguments.length?(o="function"===typeof e?e:V(+e),a):o},a}();return n.parallel=function(r){if(!arguments.length)return e*Qe;var o=n.rotate();return t(e=r*$e).rotate(o)},n.rotate=function(t){return arguments.length?(r.call(n,[t[0],t[1]-e*Qe]),i.center([-t[0],-t[1]]),n):((t=r.call(n))[1]+=e*Qe,t)},n.stream=function(e){return(e=o(e)).sphere=function(){e.polygonStart();var t,n=i.radius(89.99)().coordinates[0],r=n.length-1,o=-1;for(e.lineStart();++o=0;)e.point((t=n[o])[0],t[1]);e.lineEnd(),e.polygonEnd()},e},n.scale(79.4187).parallel(45).clipAngle(179.999)},Rr=41+48/36+37/3600,Tr=xn(0);function Ar(e){var t=Rr*$e,n=Cn(qe,t)[0]-Cn(-qe,t)[0],r=Tr(0,t)[1],o=Cn(0,t)[1],i=Ke-o,a=Je/e,u=4/Je,s=r+i*i*4/Je;function c(c,l){var f,p=je(l);if(p>t){var d=De(e-1,Fe(0,Te((c+qe)/a)));(f=Cn(c+=qe*(e-1)/e-d*a,p))[0]=f[0]*Je/n-Je*(e-1)/(2*e)+d*Je/e,f[1]=r+4*(f[1]-o)*i/Je,l<0&&(f[1]=-f[1])}else f=Tr(c,l);return f[0]*=u,f[1]/=s,f}return c.invert=function(t,c){t/=u;var l=je(c*=s);if(l>r){var f=De(e-1,Fe(0,Te((t+qe)/a)));t=(t+qe*(e-1)/e-f*a)*n/Je;var p=Cn.invert(t,.25*(l-r)*Je/i+o);return p[0]-=qe*(e-1)/e-f*a,c<0&&(p[1]=-p[1]),p}return Tr.invert(t,c)},c}var Fr=function(){var e=4,t=xe(Ar),n=t(e),r=n.stream;return n.lobes=function(n){return arguments.length?t(e=+n):e},n.stream=function(t){var o=n.rotate(),i=r(t),a=(n.rotate([0,0]),r(t));return n.rotate(o),i.sphere=function(){var t;de((t=180/e,{type:"Polygon",coordinates:[Object(I.b)(-180,180+t/2,t).map((function(e,t){return[e,1&t?90-1e-6:Rr]})).concat(Object(I.b)(180,-180-t/2,-t).map((function(e,t){return[e,1&t?1e-6-90:-Rr]})))]}),a)},i},n.scale(239.75)};function Dr(e){var t,n=1+e,r=et(ze(1/n)),o=2*nt(qe/(t=qe+4*r*n)),i=.5*o*(n+nt(e*(2+e))),a=e*e,u=n*n;function s(s,c){var l,f,p=1-ze(c);if(p&&p<2){var d,h=We-c,v=25;do{var m=ze(h),g=Le(h),y=r+Ne(m,n-g),b=1+u-2*n*g;h-=d=(h-a*r-n*m+b*y-.5*p*t)/(2*n*m*y)}while(je(d)>Ve&&--v>0);l=o*nt(b),f=s*y/qe}else l=o*(e+p),f=s*r/qe;return[l*ze(f),i-l*Le(f)]}return s.invert=function(e,s){var c=e*e+(s-=i)*s,l=(1+u-c/(o*o))/(2*n),f=tt(l),p=ze(f),d=r+Ne(p,n-l);return[et(e/nt(c))*qe/d,et(1-2*(f-a*r-n*p+(1+u-2*n*l)*d)/t)]},s}var Br=function(){var e=1,t=xe(Dr),n=t(e);return n.ratio=function(n){return arguments.length?t(e=+n):e},n.scale(167.774).center([0,18.67])},Ir=.7109889596207567,Ur=.0528035274542;function zr(e,t){return t>-Ir?((e=Pt(e,t))[1]+=Ur,e):Nt(e,t)}zr.invert=function(e,t){return t>-Ir?Pt.invert(e,t-Ur):Nt.invert(e,t)};var Gr=function(){return Se(zr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])};function Hr(e,t){return je(t)>Ir?((e=Pt(e,t))[1]-=t>0?Ur:-Ur,e):Nt(e,t)}Hr.invert=function(e,t){return je(t)>Ir?Pt.invert(e,t+(t>0?Ur:-Ur)):Nt.invert(e,t)};var Vr=function(){return Se(Hr).scale(152.63)};function qr(e,t){return je(e[0]-t[0])=0;--u)n=(t=e[1][u])[0][0],r=t[0][1],o=t[1][1],i=t[2][0],a=t[2][1],s.push(Wr([[i-He,a-He],[i-He,o+He],[n+He,o+He],[n+He,r-He]],30));return{type:"Polygon",coordinates:[Object(I.a)(s)]}}(t),r=(t=t.map((function(e){return e.map((function(e){return[[e[0][0]*$e,e[0][1]*$e],[e[1][0]*$e,e[1][1]*$e],[e[2][0]*$e,e[2][1]*$e]]}))}))).map((function(t){return t.map((function(t){var n,r=e(t[0][0],t[0][1])[0],o=e(t[2][0],t[2][1])[0],i=e(t[1][0],t[0][1])[1],a=e(t[1][0],t[1][1])[1];return i>a&&(n=i,i=a,a=n),[[r,i],[o,a]]}))}));function o(n,r){for(var o=r<0?-1:1,i=t[+(r<0)],a=0,u=i.length-1;ai[a][2][0];++a);var s=e(n-i[a][1][0],r);return s[0]+=e(i[a][1][0],o*r>o*i[a][0][1]?i[a][0][1]:r)[0],s}e.invert&&(o.invert=function(n,i){for(var a=r[+(i<0)],u=t[+(i<0)],s=0,c=a.length;s2)return null;var o=(t/=2)*t,i=(n/=2)*n,a=2*n/(1+o+i);return a=Be((1+a)/(1-a),1/e),[Ne(2*t,1-o-i)/e,et((a-1)/(a+1))]},t}var co=function(){var e=.5,t=xe(so),n=t(e);return n.spacing=function(n){return arguments.length?t(e=+n):e},n.scale(124.75)},lo=qe/Xe;function fo(e,t){return[e*(1+nt(Le(t)))/2,t/(Le(t/2)*Le(e/6))]}fo.invert=function(e,t){var n=je(e),r=je(t),o=He,i=We;rHe||je(m)>He)&&--o>0);return o&&[n,r]};var vo=function(){return Se(ho).scale(139.98)};function mo(e,t){return[ze(e)/Le(t),Ge(t)*Le(e)]}mo.invert=function(e,t){var n=e*e,r=t*t,o=r+1,i=e?Ze*nt((o-nt(n*n+2*n*(r-1)+o*o))/n+1):1/nt(o);return[et(e*i),Ue(t)*tt(i)]};var go=function(){return Se(mo).scale(144.049).clipAngle(89.999)};function yo(e){var t=Le(e),n=Ge(Ye+e/2);function r(r,o){var i=o-e,a=je(i)=0;)f=(l=e[c])[0]+u*(o=f)-s*p,p=l[1]+u*p+s*o;return[f=u*(o=f)-s*p,p=u*p+s*o]}return n.invert=function(n,r){var o=20,i=n,a=r;do{for(var u,s=t,c=e[s],l=c[0],f=c[1],p=0,d=0;--s>=0;)p=l+i*(u=p)-a*d,d=f+i*d+a*u,l=(c=e[s])[0]+i*(u=l)-a*f,f=c[1]+i*f+a*u;var h,v,m=(p=l+i*(u=p)-a*d)*p+(d=f+i*d+a*u)*d;i-=h=((l=i*(u=l)-a*f-n)*p+(f=i*f+a*u-r)*d)/m,a-=v=(f*p-l*d)/m}while(je(h)+je(v)>He*He&&--o>0);if(o){var g=nt(i*i+a*a),y=2*ke(.5*g),b=ze(y);return[Ne(i*b,g*Le(y)),g?et(a*b/g):0]}},n}var Eo=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Po=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Oo=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],_o=[[.9245,0],[0,0],[.01943,0]],So=[[.721316,0],[0,0],[-.00881625,-.00617325]];function xo(){return Ro(Eo,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)}function jo(){return Ro(Po,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function ko(){return Ro(Oo,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function No(){return Ro(_o,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Lo(){return Ro(So,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Ro(e,t){var n=Se(Mo(e)).rotate(t).clipAngle(90),r=J(t),o=n.center;return delete n.rotate,n.center=function(e){return arguments.length?o(r(e)):r.invert(o())},n}var To=nt(6),Ao=nt(7);function Fo(e,t){var n=et(7*ze(t)/(3*To));return[To*e*(2*Le(2*n/3)-1)/Ao,9*ze(n/3)/Ao]}Fo.invert=function(e,t){var n=3*et(t*Ao/9);return[e*Ao/(To*(2*Le(2*n/3)-1)),et(3*ze(n)*To/7)]};var Do=function(){return Se(Fo).scale(164.859)};function Bo(e,t){for(var n,r=(1+Ze)*ze(t),o=t,i=0;i<25&&(o-=n=(ze(o/2)+ze(o)-r)/(.5*Le(o/2)+Le(o)),!(je(n)He&&--o>0);return[e/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]};var Ho=function(){return Se(Go).scale(175.295)};function Vo(e,t){return[e*(1+Le(t))/2,2*(t-Ge(t/2))]}Vo.invert=function(e,t){for(var n=t/2,r=0,o=1/0;r<10&&je(o)>He;++r){var i=Le(t/2);t-=o=(t-Ge(t/2)-n)/(1-.5/(i*i))}return[2*e/(1+Le(t)),t]};var qo=function(){return Se(Vo).scale(152.63)},Wo=1.0148,Yo=.23185,Zo=-.14499,Xo=.02406,Ko=Wo,Jo=5*Yo,Qo=7*Zo,$o=9*Xo;function ei(e,t){var n=t*t;return[e,t*(Wo+n*n*(Yo+n*(Zo+Xo*n)))]}ei.invert=function(e,t){t>1.790857183?t=1.790857183:t<-1.790857183&&(t=-1.790857183);var n,r=t;do{var o=r*r;r-=n=(r*(Wo+o*o*(Yo+o*(Zo+Xo*o)))-t)/(Ko+o*o*(Jo+o*(Qo+$o*o)))}while(je(n)>He);return[e,r]};var ti=function(){return Se(ei).scale(139.319)};function ni(e,t){if(je(t)He&&--i>0);return a=Ge(o),[(je(t)=0?1:-1,o=r*n,i=v(t=(t*=f)/2+s),a=m(t),u=ui*a,c=ai*i+u*v(o),l=u*r*m(o);ci.add(h(l,c)),ii=e,ai=i,ui=a}var mi,gi,yi,bi,wi,Ci,Mi,Ei,Pi,Oi,_i=_(),Si={point:xi,lineStart:ki,lineEnd:Ni,polygonStart:function(){Si.point=Li,Si.lineStart=Ri,Si.lineEnd=Ti,_i.reset(),fi.polygonStart()},polygonEnd:function(){fi.polygonEnd(),Si.point=xi,Si.lineStart=ki,Si.lineEnd=Ni,ci<0?(mi=-(yi=180),gi=-(bi=90)):_i>i?bi=90:_i<-i&&(gi=-90),Oi[0]=mi,Oi[1]=yi},sphere:function(){mi=-(yi=180),gi=-(bi=90)}};function xi(e,t){Pi.push(Oi=[mi=e,yi=e]),tbi&&(bi=t)}function ji(e,t){var n=N([e*f,t*f]);if(Ei){var r=R(Ei,n),o=R([r[1],-r[0],0],r);F(o),o=k(o);var i,a=e-wi,u=a>0?1:-1,s=o[0]*l*u,c=p(a)>180;c^(u*wibi&&(bi=i):c^(u*wi<(s=(s+360)%360-180)&&sbi&&(bi=t)),c?eAi(mi,yi)&&(yi=e):Ai(e,yi)>Ai(mi,yi)&&(mi=e):yi>=mi?(eyi&&(yi=e)):e>wi?Ai(mi,e)>Ai(mi,yi)&&(yi=e):Ai(e,yi)>Ai(mi,yi)&&(mi=e)}else Pi.push(Oi=[mi=e,yi=e]);tbi&&(bi=t),Ei=n,wi=e}function ki(){Si.point=ji}function Ni(){Oi[0]=mi,Oi[1]=yi,Si.point=xi,Ei=null}function Li(e,t){if(Ei){var n=e-wi;_i.add(p(n)>180?n+(n>0?360:-360):n)}else Ci=e,Mi=t;fi.point(e,t),ji(e,t)}function Ri(){fi.lineStart()}function Ti(){Li(Ci,Mi),fi.lineEnd(),p(_i)>i&&(mi=-(yi=180)),Oi[0]=mi,Oi[1]=yi,Ei=null}function Ai(e,t){return(t-=e)<0?t+360:t}function Fi(e,t){return e[0]-t[0]}function Di(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tAi(r[0],r[1])&&(r[1]=o[1]),Ai(o[0],r[1])>Ai(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,t=0,r=i[n=i.length-1];t<=n;r=o,++t)o=i[t],(u=Ai(r[1],o[0]))>a&&(a=u,mi=o[0],yi=r[1])}return Pi=Oi=null,mi===1/0||gi===1/0?[[NaN,NaN],[NaN,NaN]]:[[mi,gi],[yi,bi]]},Ii=function(e,t){var n=e[0]*f,r=e[1]*f,o=t[0]*f,i=t[1]*f,a=v(r),u=m(r),s=v(i),c=m(i),p=a*v(n),d=a*m(n),g=s*v(o),b=s*m(o),M=2*w(y(C(i-r)+a*s*C(o-n))),E=m(M),P=M?function(e){var t=m(e*=M)/E,n=m(M-e)/E,r=n*p+t*g,o=n*d+t*b,i=n*u+t*c;return[h(o,r)*l,h(i,y(r*r+o*o))*l]}:function(){return[n*l,r*l]};return P.distance=M,P},Ui=function(e,t){var n=Gi(e[1],e[0]),r=Gi(t[1],t[0]),o=function(e,t){return Ne(e[0]*t[1]-e[1]*t[0],e[0]*t[0]+e[1]*t[1])}(n,r),i=Hi(n)/Hi(r);return zi([1,0,e[0][0],0,1,e[0][1]],zi([i,0,0,0,i,0],zi([Le(o),ze(o),0,-ze(o),Le(o),0],[1,0,-t[0][0],0,1,-t[0][1]])))};function zi(e,t){return[e[0]*t[0]+e[1]*t[3],e[0]*t[1]+e[1]*t[4],e[0]*t[2]+e[1]*t[5]+e[2],e[3]*t[0]+e[4]*t[3],e[3]*t[1]+e[4]*t[4],e[3]*t[2]+e[4]*t[5]+e[5]]}function Gi(e,t){return[e[0]-t[0],e[1]-t[1]]}function Hi(e){return nt(e[0]*e[0]+e[1]*e[1])}var Vi=function(e,t,n){function r(e,n){var r,o=t(e,n),i=o.project([e*Qe,n*Qe]);return(r=o.transform)?[r[0]*i[0]+r[1]*i[1]+r[2],-(r[3]*i[0]+r[4]*i[1]+r[5])]:(i[1]=-i[1],i)}(function e(t,n){if(t.edges=function(e){for(var t=e.length,n=[],r=e[t-1],o=0;o=0;)if(r=t[u],n[0]===r[0]&&n[1]===r[1]){if(i)return[i,n];i=n}}}(t.face,n.face),o=Ui(r.map(n.project),r.map(t.project));t.transform=n.transform?zi(n.transform,o):o;for(var i=n.edges,a=0,u=i.length;a0?[-t[0],0]:[180-t[0],180])};var t=Ki.map((function(t){return{face:t,project:e(t)}}));return[-1,0,0,1,0,1,4,5].forEach((function(e,n){var r=t[e];r&&(r.children||(r.children=[])).push(t[n])})),Vi(t[0],(function(e,n){return t[e<-qe/2?n<0?6:4:e<0?n<0?2:0:er^d>r&&n<(p-c)*(r-l)/(d-l)+c&&(o=!o)}return o}(e[0],n))return e.push(t),!0}))||e.push([t])})),fa=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}},va=function(e){var t=e(We,0)[0]-e(-We,0)[0];function n(n,r){var o=je(n)0?n-qe:n+qe,r),a=(i[0]-i[1])*Ze,u=(i[0]+i[1])*Ze;if(o)return[a,u];var s=t*Ze,c=a>0^u>0?-1:1;return[c*a-Ue(u)*s,c*u-Ue(a)*s]}return e.invert&&(n.invert=function(n,r){var o=(n+r)*Ze,i=(r-n)*Ze,a=je(o)<.5*t&&je(i)<.5*t;if(!a){var u=t*Ze,s=o>0^i>0?-1:1,c=-s*(n+(i>0?1:-1)*u),l=-s*(r+(o>0?1:-1)*u);o=(-c-l)*Ze,i=(c-l)*Ze}var f=e.invert(o,i);return a||(f[0]+=o>0?qe:-qe),f}),Se(n).rotate([-90,-90,45]).clipAngle(179.999)},ma=function(){return va(wr).scale(176.423)},ga=function(){return va(Pr).scale(111.48)},ya=function(e,t){if(!(0<=(t=+t)&&t<=20))throw new Error("invalid digits");function n(e){e[0]=+e[0].toFixed(t),e[1]=+e[1].toFixed(t)}function r(e){e.forEach(n)}function o(e){e.forEach(r)}function i(e){if(e)switch(e.type){case"GeometryCollection":e.geometries.forEach(i);break;case"Point":n(e.coordinates);break;case"MultiPoint":case"LineString":r(e.coordinates);break;case"MultiLineString":case"Polygon":o(e.coordinates);break;case"MultiPolygon":e.coordinates.forEach(o);break;default:return}}function a(e){i(e.geometry)}if(e)switch(e.type){case"Feature":a(e);break;case"FeatureCollection":e.features.forEach(a);break;default:i(e)}return e};function ba(e){var t=ze(e);function n(n,r){var o=t?Ge(n*t/2)/t:n/2;if(!r)return[2*o,-e];var i=2*ke(o*ze(r)),a=1/Ge(r);return[ze(i)*a,r+(1-Le(i))*a-e]}return n.invert=function(n,r){if(je(r+=e)He&&--u>0);var f=n*(s=Ge(a)),p=Ge(je(r)0?We:-We)*(c+i*(f-u)/2+i*i*(f-2*c+u)/2)]}Ca.forEach((function(e){e[1]*=1.0144})),Ma.invert=function(e,t){var n=t/We,r=90*n,o=De(18,je(r/5)),i=Fe(0,Te(o));do{var a=Ca[i][1],u=Ca[i+1][1],s=Ca[De(19,i+2)][1],c=s-a,l=s-2*u+a,f=2*(je(n)-u)/c,p=l/c,d=f*(1-p*f*(1-2*p*f));if(d>=0||1===i){r=(t>=0?5:-5)*(d+o);var h,v=50;do{d=(o=De(18,je(r)/5))-(i=Te(o)),a=Ca[i][1],u=Ca[i+1][1],s=Ca[De(19,i+2)][1],r-=(h=(t>=0?We:-We)*(u+d*(s-a)/2+d*d*(s-2*u+a)/2)-t)*Qe}while(je(h)>Ve&&--v>0);break}}while(--i>=0);var m=Ca[i][0],g=Ca[i+1][0],y=Ca[De(19,i+2)][0];return[e/(g+d*(y-m)/2+d*d*(y-2*g+m)/2),r*$e]};var Ea=function(){return Se(Ma).scale(152.63)};function Pa(e,t){var n=function(e){function t(t,n){var r=Le(n),o=(e-1)/(e-r*Le(t));return[o*r*ze(t),o*ze(n)]}return t.invert=function(t,n){var r=t*t+n*n,o=nt(r),i=(e-nt(1-r*(e+1)/(e-1)))/((e-1)/o+o/(e-1));return[Ne(t*i,o*nt(1-i*i)),o?et(n*i/o):0]},t}(e);if(!t)return n;var r=Le(t),o=ze(t);function i(t,i){var a=n(t,i),u=a[1],s=u*o/(e-1)+r;return[a[0]*r/s,u/s]}return i.invert=function(t,i){var a=(e-1)/(e-1-i*o);return n.invert(a*t,a*i*r)},i}var Oa=function(){var e=2,t=0,n=xe(Pa),r=n(e,t);return r.distance=function(r){return arguments.length?n(e=+r,t):e},r.tilt=function(r){return arguments.length?n(e,t=r*$e):t*Qe},r.scale(432.147).clipAngle(tt(1/e)*Qe-1e-6)},_a=1e4,Sa=-180,xa=Sa+1e-4,ja=180,ka=ja-1e-4,Na=-90,La=Na+1e-4,Ra=90,Ta=Ra-1e-4;function Aa(e){return e===Na||e===Ra?[0,e]:[Sa,(t=e,Math.floor(t*_a)/_a)];var t}function Fa(e){e[0]<=xa?e[0]=Sa:e[0]>=ka&&(e[0]=ja),e[1]<=La?e[1]=Na:e[1]>=Ta&&(e[1]=Ra)}function Da(e){e.forEach(Fa)}function Ba(e,t){for(var n=0,r=e.length;n=ka||c<=La||c>=Ta){Fa(u);for(var l=i+1;lxa&&pLa&&d=a)break;t.push(o=o.slice(l-1)),o[0]=Aa(o[0][1]),o.polygon=e,i=-1,a=o.length}}}e.length=0}function Ia(e){Ua(e.geometry)}function Ua(e){if(e){var t,n,r;switch(e.type){case"GeometryCollection":return void e.geometries.forEach(Ua);case"Point":Fa(e.coordinates);break;case"MultiPoint":case"LineString":Da(e.coordinates);break;case"MultiLineString":e.coordinates.forEach(Da);break;case"Polygon":Ba(e.coordinates,t=[]);break;case"MultiPolygon":for(t=[],n=-1,r=e.coordinates.length;++n0?qe-u:u)*Qe],c=Se(e(a)).rotate(s),l=J(s),f=c.center;return delete c.rotate,c.center=function(e){return arguments.length?f(l(e)):l.invert(f())},c.clipAngle(90)};function qa(e){var t=Le(e);function n(e,n){var r=Yi(e,n);return r[0]*=t,r}return n.invert=function(e,n){return Yi.invert(e/t,n)},n}function Wa(){return Ya([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Ya(e,t){return Va(qa,e,t)}function Za(e){if(!(e*=2))return bt;var t=-e/2,n=-t,r=e*e,o=Ge(n),i=.5/ze(n);function a(o,i){var a=tt(Le(i)*Le(o-t)),u=tt(Le(i)*Le(o-n));return[((a*=a)-(u*=u))/(2*e),(i<0?-1:1)*nt(4*r*u-(r-a+u)*(r-a+u))/(2*e)]}return a.invert=function(e,r){var a,u,s=r*r,c=Le(nt(s+(a=e+t)*a)),l=Le(nt(s+(a=e+n)*a));return[Ne(u=c-l,a=(c+l)*o),(r<0?-1:1)*tt(nt(a*a+u*u)*i)]},a}function Xa(){return Ka([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ka(e,t){return Va(Za,e,t)}function Ja(e,t){if(je(t)He&&--u>0);return[Ue(e)*(nt(o*o+4)+o)*qe/4,We*a]};var ou=function(){return Se(ru).scale(127.16)},iu=4*qe+3*nt(3),au=2*nt(2*qe*nt(3)/iu),uu=Et(au*nt(3)/qe,au,iu/6),su=function(){return Se(uu).scale(176.84)};function cu(e,t){return[e*nt(1-3*t*t/(qe*qe)),t]}cu.invert=function(e,t){return[e/nt(1-3*t*t/(qe*qe)),t]};var lu=function(){return Se(cu).scale(152.63)};function fu(e,t){var n=.90631*ze(t),r=nt(1-n*n),o=nt(2/(1+r*Le(e/=3)));return[2.66723*r*o*ze(e),1.24104*n*o]}fu.invert=function(e,t){var n=e/2.66723,r=t/1.24104,o=nt(n*n+r*r),i=2*et(o/2);return[3*Ne(e*Ge(i),2.66723*o),o&&et(t*ze(i)/(1.24104*.90631*o))]};var pu=function(){return Se(fu).scale(172.632)};function du(e,t){var n=Le(t),r=Le(e)*n,o=1-r,i=Le(e=Ne(ze(e)*n,-ze(t))),a=ze(e);return[a*(n=nt(1-r*r))-i*o,-i*n-a*o]}du.invert=function(e,t){var n=(e*e+t*t)/-2,r=nt(-n*(2+n)),o=t*n+e*r,i=e*n-t*r,a=nt(i*i+o*o);return[Ne(r*o,a*(1+n)),a?-et(r*i/a):0]};var hu=function(){return Se(du).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)};function vu(e,t){var n=ut(e,t);return[(n[0]+e/We)/2,(n[1]+t)/2]}vu.invert=function(e,t){var n=e,r=t,o=25;do{var i,a=Le(r),u=ze(r),s=ze(2*r),c=u*u,l=a*a,f=ze(n),p=Le(n/2),d=ze(n/2),h=d*d,v=1-l*p*p,m=v?tt(a*p)*nt(i=1/v):i=0,g=.5*(2*m*a*d+n/We)-e,y=.5*(m*u+r)-t,b=.5*i*(l*h+m*a*p*c)+.5/We,w=i*(f*s/4-m*u*d),C=.125*i*(s*d-m*u*l*f),M=.5*i*(c*p+m*h*a)+.5,E=w*C-M*b,P=(y*w-g*M)/E,O=(g*C-y*b)/E;n-=P,r-=O}while((je(P)>He||je(O)>He)&&--o>0);return[n,r]};var mu=function(){return Se(vu).scale(158.837)}},o0o1:function(e,t,n){e.exports=n("ls82")},"oG+/":function(e,t,n){},qFS3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t=200&&n.status<400){var e=JSON.parse(n.responseText);t.setState({geographyPaths:t.parseGeographies(e)},(function(){t.props.onGeographyPathsLoaded&&t.props.onGeographyPathsLoaded(String(n.status))}))}else t.props.onGeographyPathsLoaded&&t.props.onGeographyPathsLoaded(String(n.status))},n.onerror=function(){console.log("There was a connection error...")},n.send(),this.cancelPendingRequest(),this._xhr=n}},{key:"cancelPendingRequest",value:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)}}]),t}(i.Component);s.defaultProps={componentIdentifier:"Geographies",disableOptimization:!1,geography:""},t.default=s},rlHP:function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},rq1c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n