// http://geoexamples.com/d3-composite-projections/ v1.3.2 Copyright 2019 Roger Veciana i Rovira !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("d3-geo"),require("d3-path")):"function"==typeof define&&define.amd?define(["exports","d3-geo","d3-path"],t):t((n=n||self).d3=n.d3||{},n.d3,n.d3)}(this,(function(n,t,e){"use strict";var r=1e-6;function o(){}var i=1/0,a=i,l=-i,s=l,c={point:function(n,t){nl&&(l=n);ts&&(s=t)},lineStart:o,lineEnd:o,polygonStart:o,polygonEnd:o,result:function(){var n=[[i,a],[l,s]];return l=s=-(a=i=1/0),n}};function u(n,e,r){var o=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=n.clipExtent&&n.clipExtent();n.scale(150).translate([0,0]),null!=a&&n.clipExtent(null),t.geoStream(r,n.stream(c));var l=c.result(),s=Math.min(o/(l[1][0]-l[0][0]),i/(l[1][1]-l[0][1])),u=+e[0][0]+(o-s*(l[1][0]+l[0][0]))/2,p=+e[0][1]+(i-s*(l[1][1]+l[0][1]))/2;return null!=a&&n.clipExtent(a),n.scale(150*s).translate([u,p])}function p(n,t,e){return u(n,[[0,0],t],e)}n.geoAlbersUk=function(){var n,o,i,a,l,s=t.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),c=t.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),f={point:function(n,t){l=[n,t]}};function v(n){var t=n[0],e=n[1];return l=null,i.point(t,e),l||(a.point(t,e),l)}function m(){return n=o=null,v}return v.invert=function(n){var t=s.scale(),e=s.translate(),r=(n[0]-e[0])/t,o=(n[1]-e[1])/t;return(o>=-.089&&o<.06&&r>=.029&&r<.046?c:s).invert(n)},v.stream=function(t){return n&&o===t?n:(e=[s.stream(o=t),c.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=.12&&o<.234&&r>=-.425&&r<-.214?f:o>=.166&&o<.234&&r>=-.214&&r<-.115?v:c).invert(n)},g.stream=function(t){return n&&o===t?n:(e=[c.stream(o=t),f.stream(t),v.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=.12&&o<.234&&r>=-.425&&r<-.214?g:o>=.166&&o<.234&&r>=-.214&&r<-.115?T:o>=.2064&&o<.2413&&r>=.312&&r<.385?h:o>=.09&&o<.1197&&r>=-.4243&&r<-.3232?E:o>=-.0518&&o<.0895&&r>=-.4243&&r<-.3824?d:m).invert(n)},S.stream=function(t){return n&&o===t?n:(e=[m.stream(o=t),g.stream(t),T.stream(t),h.stream(t),E.stream(t),d.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=-.31&&o<-.24&&r>=.14&&r<.24?S:o>=-.24&&o<-.17&&r>=.14&&r<.24?x:o>=-.17&&o<-.12&&r>=.21&&r<.24?P:o>=-.17&&o<-.14&&r>=.14&&r<.165?B:o>=-.17&&o<-.1&&r>=.14&&r<.24?y:o>=-.1&&o<-.03&&r>=.14&&r<.24?M:o>=-.03&&o<.04&&r>=.14&&r<.24?w:o>=-.31&&o<-.24&&r>=.24&&r<.34?q:o>=-.24&&o<-.17&&r>=.24&&r<.34?z:o>=-.17&&o<-.1&&r>=.24&&r<.34?A:o>=-.1&&o<-.03&&r>=.24&&r<.34?b:C).invert(n)},j.stream=function(t){return n&&o===t?n:(e=[C.stream(o=t),x.stream(t),q.stream(t),S.stream(t),w.stream(t),M.stream(t),z.stream(t),A.stream(t),b.stream(t),y.stream(t),P.stream(t),B.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=.029&&o<.0864&&r>=-.14&&r<-.0996?S:o>=0&&o<.029&&r>=-.14&&r<-.0996?x:o>=-.032&&o<0&&r>=-.14&&r<-.0996?y:o>=-.052&&o<-.032&&r>=-.14&&r<-.0996?P:o>=-.076&&o<.052&&r>=-.14&&r<-.0996?B:o>=-.076&&o<-.052&&r>=.0967&&r<.1371?M:o>=-.052&&o<-.02&&r>=.0967&&r<.1371?w:o>=-.02&&o<.012&&r>=.0967&&r<.1371?q:o>=.012&&o<.033&&r>=.0967&&r<.1371?z:o>=.033&&o<.0864&&r>=.0967&&r<.1371?A:C).invert(n)},j.stream=function(t){return n&&o===t?n:(e=[C.stream(o=t),S.stream(t),x.stream(t),y.stream(t),P.stream(t),B.stream(t),M.stream(t),w.stream(t),q.stream(t),z.stream(t),A.stream(t),b.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=.0093&&o<.03678&&r>=-.03875&&r<-.0116?f:o>=-.0412&&o<.0091&&r>=-.07782&&r<-.01166?v:c).invert(n)},g.stream=function(t){return n&&o===t?n:(e=[c.stream(o=t),f.stream(t),v.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=.05346&&o<.0897&&r>=-.13388&&r<-.0322?c:s).invert(n)},v.stream=function(t){return n&&o===t?n:(e=[s.stream(o=t),c.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=-.10925&&o<-.02701&&r>=-.135&&r<-.0397?f:o>=.04713&&o<.11138&&r>=-.03986&&r<.051?v:c).invert(n)},g.stream=function(t){return n&&o===t?n:(e=[c.stream(o=t),f.stream(t),v.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=-.0676&&o<-.026&&r>=-.0857&&r<-.0263?c:s).invert(n)},v.stream=function(t){return n&&o===t?n:(e=[s.stream(o=t),c.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=-.02&&o<0&&r>=-.038&&r<-.005?f:o>=0&&o<.02&&r>=-.038&&r<-.005?v:c).invert(n)},g.stream=function(t){return n&&o===t?n:(e=[c.stream(o=t),f.stream(t),v.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=-.0521&&o<.0229&&r>=-.0111&&r<.1?c:s).invert(n)},v.stream=function(t){return n&&o===t?n:(e=[s.stream(o=t),c.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o=.2582&&o<.32&&r>=-.1036&&r<-.087?v:o>=-.01298&&o<.0133&&r>=-.11396&&r<-.05944?m:o>=.01539&&o<.03911&&r>=-.089&&r<-.0588?g:f).invert(n)},h.stream=function(t){return n&&o===t?n:(e=[f.stream(o=t),v.stream(t),m.stream(t),g.stream(t)],r=e.length,n={point:function(n,t){for(var o=-1;++o