@aftertheflood/londonsquared
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,1 +0,1 @@ | ||
var atf=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n);var r=[{LSAbbreviation:"enf",x:"4",y:"0",irregular:!1,code:"E09000010",name:"Enfield"},{LSAbbreviation:"hrw",x:"2",y:"1",irregular:!1,code:"E09000015",name:"Harrow"},{LSAbbreviation:"brn",x:"3",y:"1",irregular:!1,code:"E09000003",name:"Barnet"},{LSAbbreviation:"hgy",x:"4",y:"1",irregular:!1,code:"E09000014",name:"Haringey"},{LSAbbreviation:"wth",x:"5",y:"1",irregular:!1,code:"E09000031",name:"Waltham Forest"},{LSAbbreviation:"hdn",x:"0",y:"2",irregular:!1,code:"E09000017",name:"Hillingdon"},{LSAbbreviation:"elg",x:"1",y:"2",irregular:!1,code:"E09000009",name:"Ealing"},{LSAbbreviation:"brt",x:"2",y:"2",irregular:!1,code:"E09000005",name:"Brent"},{LSAbbreviation:"cmd",x:"3",y:"2",irregular:!1,code:"E09000007",name:"Camden"},{LSAbbreviation:"isl",x:"4",y:"2",irregular:!1,code:"E09000019",name:"Islington"},{LSAbbreviation:"hck",x:"5",y:"2",irregular:!1,code:"E09000012",name:"Hackney"},{LSAbbreviation:"rdb",x:"6",y:"2",irregular:!1,code:"E09000026",name:"Redbridge"},{LSAbbreviation:"hvg",x:"7",y:"2",irregular:!1,code:"E09000016",name:"Havering"},{LSAbbreviation:"hns",x:"0",y:"3",irregular:!1,code:"E09000018",name:"Hounslow"},{LSAbbreviation:"hms",x:"1",y:"3",irregular:!1,code:"E09000013",name:"Hammersmith and Fulham"},{LSAbbreviation:"kns",x:"2",y:"3",irregular:!1,code:"E09000020",name:"Kensington and Chelsea"},{LSAbbreviation:"wst",x:"3",y:"3",irregular:!0,code:"E09000033",name:"Westminster"},{LSAbbreviation:"cty",x:"4",y:"3",irregular:!0,code:"E09000001",name:"City of London"},{LSAbbreviation:"tow",x:"5",y:"3",irregular:!0,code:"E09000030",name:"Tower Hamlets"},{LSAbbreviation:"nwm",x:"6",y:"3",irregular:!0,code:"E09000025",name:"Newham"},{LSAbbreviation:"bar",x:"7",y:"3",irregular:!0,code:"E09000002",name:"Barking and Dagenham"},{LSAbbreviation:"rch",x:"1",y:"4",irregular:!1,code:"E09000027",name:"Richmond upon Thames"},{LSAbbreviation:"wns",x:"2",y:"4",irregular:!1,code:"E09000032",name:"Wandsworth"},{LSAbbreviation:"lam",x:"3",y:"4",irregular:!0,code:"E09000022",name:"Lambeth"},{LSAbbreviation:"swr",x:"4",y:"4",irregular:!0,code:"E09000028",name:"Southwark"},{LSAbbreviation:"lsh",x:"5",y:"4",irregular:!0,code:"E09000023",name:"Lewisham"},{LSAbbreviation:"grn",x:"6",y:"4",irregular:!0,code:"E09000011",name:"Greenwich"},{LSAbbreviation:"bxl",x:"7",y:"4",irregular:!0,code:"E09000004",name:"Bexley"},{LSAbbreviation:"kng",x:"2",y:"5",irregular:!1,code:"E09000021",name:"Kingston upon Thames"},{LSAbbreviation:"mrt",x:"3",y:"5",irregular:!1,code:"E09000024",name:"Merton"},{LSAbbreviation:"crd",x:"4",y:"5",irregular:!1,code:"E09000008",name:"Croydon"},{LSAbbreviation:"brm",x:"5",y:"5",irregular:!1,code:"E09000006",name:"Bromley"},{LSAbbreviation:"stn",x:"3",y:"6",irregular:!1,code:"E09000029",name:"Sutton"}],i={E09000002:"M-0.001,0.454L-0.001,96.803C2.349,97.196 4.504,97.685 6.755,98.078C12.337,99.255 17.625,100.333 24.48,100.333L99.878,100.333L99.878,0.454L-0.001,0.454Z",E09000025:"M2.351,95.967C10.379,101.46 20.464,108.322 40.148,108.322C52.484,108.322 61.494,104.791 70.209,101.36C77.747,98.418 84.799,95.573 93.022,95.573C95.471,95.573 97.724,95.672 99.878,95.868L99.878,0.453L-0.001,0.453L-0.001,94.399C0.783,94.889 1.568,95.476 2.351,95.967Z",E09000030:"M15.177,102.84C19.584,101.075 23.012,97.736 26.242,94.401C31.04,89.59 36.523,84.093 45.434,84.879C57.969,86.056 59.142,102.253 59.731,110.108C60.026,114.036 61.396,117.177 63.747,119.14C65.802,120.907 68.643,121.593 72.069,121.201C77.846,120.61 81.077,118.353 80.295,108.734L80.295,108.145C79.805,102.254 78.827,89.984 90.674,88.806C94.1,88.51 97.038,89.002 99.879,90.181L99.879,0.453L0,0.453L0,106.177C5.385,105.789 10.281,104.806 15.177,102.84Z",E09000028:"M86.858,6.489L86.66,6.489L4.114,-5.152C2.645,-5.249 1.37,-5.443 -0.001,-5.54L-0.001,100.332L99.879,100.332L99.879,7.364C95.767,7.266 91.459,6.976 86.858,6.489Z",E09000004:"M5.09,-1.564C3.427,-1.954 1.762,-2.249 -0.001,-2.543L-0.001,100.332L99.878,100.332L99.878,0.883L24.48,0.883C16.842,0.883 10.867,-0.39 5.09,-1.564Z",E09000022:"M92.044,-9.535C81.763,-9.535 74.123,-5.248 65.997,-0.764C57.381,4.011 48.469,8.981 36.228,8.981C26.925,8.981 20.953,6.35 15.176,3.817C10.574,1.77 6.168,-0.18 0,-0.667L0,100.332L99.879,100.332L99.879,-9.048C97.429,-9.341 94.882,-9.535 92.044,-9.535Z",E09000033:"M18.31,105.809C23.596,108.163 28.592,110.322 36.229,110.322C46.412,110.322 54.15,106.005 62.178,101.494C70.795,96.687 79.705,91.684 92.045,91.684C94.884,91.684 97.43,91.88 99.878,92.174L99.878,0.454L-0.001,0.454L-0.001,100.61C7.832,101.101 13.12,103.456 18.31,105.809Z",E09000023:"M91.554,-11.583C88.421,-11.291 87.441,-9.637 88.127,-0.788L88.224,-0.205C89.204,12.341 84.111,19.342 72.949,20.509C72.068,20.606 71.285,20.606 70.405,20.606C65.9,20.606 61.885,19.244 58.752,16.619C54.835,13.313 52.387,8.256 51.994,2.324C51.408,-6.235 50.037,-14.986 44.75,-15.473C39.755,-15.959 36.72,-13.138 31.823,-8.276C28.2,-4.677 24.088,-0.592 18.114,1.838C12.239,4.172 6.365,5.339 -0.001,5.726L-0.001,100.331L99.878,100.331L99.878,-9.444C97.135,-10.998 94.49,-11.874 91.554,-11.583Z",E09000001:"M4.895,93.665L5.09,93.665L87.639,105.439C92.044,105.929 96.059,106.224 99.878,106.322L99.878,0.451L-0.001,0.451L-0.001,93.175C1.566,93.372 3.131,93.566 4.895,93.665Z",E09000011:"M93.024,-4.538C86.269,-4.538 80.199,-2.092 73.147,0.649C64.235,4.171 54.051,8.184 40.148,8.184C19.782,8.184 8.323,1.432 0,-4.149L0,100.335L99.879,100.335L99.879,-4.246C97.726,-4.44 95.472,-4.538 93.024,-4.538Z"},a=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},o=function(t){return 1===t.length&&(t=function(t){return function(n,e){return a(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}};var u=o(a),c=u.right,l=(u.left,c);var s=Array.prototype,f=(s.slice,s.map,Math.sqrt(50)),h=Math.sqrt(10),g=Math.sqrt(2),d=function(t,n,e){var r,i,a,o,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(o=p(t,n,e))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),n=Math.floor(n/o),a=new Array(i=Math.ceil(n-t+1));++u<i;)a[u]=(t+u)*o;else for(t=Math.floor(t*o),n=Math.ceil(n*o),a=new Array(i=Math.ceil(t-n+1));++u<i;)a[u]=(t-u)/o;return r&&a.reverse(),a};function p(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=f?10:a>=h?5:a>=g?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=f?10:a>=h?5:a>=g?2:1)}function m(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=f?i*=10:a>=h?i*=5:a>=g&&(i*=2),n<t?-i:i}function y(){}function b(t,n){var e=new y;if(t instanceof y)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==n)for(;++i<a;)e.set(i,t[i]);else for(;++i<a;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}y.prototype=b.prototype={constructor:y,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var v=b;function M(){}var w=v.prototype;function x(t,n){var e=new M;if(t instanceof M)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}M.prototype=x.prototype={constructor:M,has:w.has,add:function(t){return this["$"+(t+="")]=t,this},remove:w.remove,clear:w.clear,values:w.keys,size:w.size,empty:w.empty,each:w.each};var C=Array.prototype,S=C.map,T=C.slice;var L=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function k(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function A(){}var N="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",D="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",E=/^#([0-9a-f]{3})$/,F=/^#([0-9a-f]{6})$/,$=new RegExp("^rgb\\("+[N,N,N]+"\\)$"),Y=new RegExp("^rgb\\("+[D,D,D]+"\\)$"),H=new RegExp("^rgba\\("+[N,N,N,U]+"\\)$"),z=new RegExp("^rgba\\("+[D,D,D,U]+"\\)$"),P=new RegExp("^hsl\\("+[U,D,D]+"\\)$"),j=new RegExp("^hsla\\("+[U,D,D,U]+"\\)$"),Z={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function X(t){var n;return t=(t+"").trim().toLowerCase(),(n=E.exec(t))?new V((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=F.exec(t))?O(parseInt(n[1],16)):(n=$.exec(t))?new V(n[1],n[2],n[3],1):(n=Y.exec(t))?new V(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=H.exec(t))?q(n[1],n[2],n[3],n[4]):(n=z.exec(t))?q(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=P.exec(t))?R(n[1],n[2]/100,n[3]/100,1):(n=j.exec(t))?R(n[1],n[2]/100,n[3]/100,n[4]):Z.hasOwnProperty(t)?O(Z[t]):"transparent"===t?new V(NaN,NaN,NaN,0):null}function O(t){return new V(t>>16&255,t>>8&255,255&t,1)}function q(t,n,e,r){return r<=0&&(t=n=e=NaN),new V(t,n,e,r)}function G(t){return t instanceof A||(t=X(t)),t?new V((t=t.rgb()).r,t.g,t.b,t.opacity):new V}function I(t,n,e,r){return 1===arguments.length?G(t):new V(t,n,e,null==r?1:r)}function V(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function W(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function R(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Q(t,n,e,r)}function B(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Q)return new Q(t.h,t.s,t.l,t.opacity);if(t instanceof A||(t=X(t)),!t)return new Q;if(t instanceof Q)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=n===a?(e-r)/u+6*(e<r):e===a?(r-n)/u+2:(n-e)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new Q(o,u,c,t.opacity)}(t):new Q(t,n,e,null==r?1:r)}function Q(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function _(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}L(A,X,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),L(V,I,k(A,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+W(this.r)+W(this.g)+W(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),L(Q,B,k(A,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Q(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Q(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new V(_(t>=240?t-240:t+120,i,r),_(t,i,r),_(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var J=Math.PI/180,K=180/Math.PI,tt=.96422,nt=1,et=.82521,rt=4/29,it=6/29,at=3*it*it,ot=it*it*it;function ut(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof mt){if(isNaN(t.h))return new lt(t.l,0,0,t.opacity);var n=t.h*J;return new lt(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof V||(t=G(t));var e,r,i=gt(t.r),a=gt(t.g),o=gt(t.b),u=st((.2225045*i+.7168786*a+.0606169*o)/nt);return i===a&&a===o?e=r=u:(e=st((.4360747*i+.3850649*a+.1430804*o)/tt),r=st((.0139322*i+.0971045*a+.7141733*o)/et)),new lt(116*u-16,500*(e-u),200*(u-r),t.opacity)}function ct(t,n,e,r){return 1===arguments.length?ut(t):new lt(t,n,e,null==r?1:r)}function lt(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function st(t){return t>ot?Math.pow(t,1/3):t/at+rt}function ft(t){return t>it?t*t*t:at*(t-rt)}function ht(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function gt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dt(t){if(t instanceof mt)return new mt(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=ut(t)),0===t.a&&0===t.b)return new mt(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*K;return new mt(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function pt(t,n,e,r){return 1===arguments.length?dt(t):new mt(t,n,e,null==r?1:r)}function mt(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}L(lt,ct,k(A,{brighter:function(t){return new lt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new lt(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new V(ht(3.1338561*(n=tt*ft(n))-1.6168667*(t=nt*ft(t))-.4906146*(e=et*ft(e))),ht(-.9787684*n+1.9161415*t+.033454*e),ht(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),L(mt,pt,k(A,{brighter:function(t){return new mt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new mt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return ut(this).rgb()}}));var yt=-.14861,bt=1.78277,vt=-.29227,Mt=-.90649,wt=1.97294,xt=wt*Mt,Ct=wt*bt,St=bt*vt-Mt*yt;function Tt(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Lt)return new Lt(t.h,t.s,t.l,t.opacity);t instanceof V||(t=G(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(St*r+xt*n-Ct*e)/(St+xt-Ct),a=r-i,o=(wt*(e-i)-vt*a)/Mt,u=Math.sqrt(o*o+a*a)/(wt*i*(1-i)),c=u?Math.atan2(o,a)*K-120:NaN;return new Lt(c<0?c+360:c,u,i,t.opacity)}(t):new Lt(t,n,e,null==r?1:r)}function Lt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function kt(t,n,e,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*n+(4-6*a+3*o)*e+(1+3*t+3*a-3*o)*r+o*i)/6}L(Lt,Tt,k(A,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Lt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Lt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*J,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new V(255*(n+e*(yt*r+bt*i)),255*(n+e*(vt*r+Mt*i)),255*(n+e*(wt*r)),this.opacity)}}));var At=function(t){return function(){return t}};function Nt(t,n){return function(e){return t+e*n}}function Ut(t,n){var e=n-t;return e?Nt(t,e>180||e<-180?e-360*Math.round(e/360):e):At(isNaN(t)?n:t)}function Dt(t){return 1==(t=+t)?Et:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):At(isNaN(n)?e:n)}}function Et(t,n){var e=n-t;return e?Nt(t,e):At(isNaN(t)?n:t)}var Ft=function t(n){var e=Dt(n);function r(t,n){var r=e((t=I(t)).r,(n=I(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),o=Et(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function $t(t){return function(n){var e,r,i=n.length,a=new Array(i),o=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=I(n[e]),a[e]=r.r||0,o[e]=r.g||0,u[e]=r.b||0;return a=t(a),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=u(t),r+""}}}$t(function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r<n-1?t[r+2]:2*a-i;return kt((e-r/n)*n,o,i,a,u)}}),$t(function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],a=t[r%n],o=t[(r+1)%n],u=t[(r+2)%n];return kt((e-r/n)*n,i,a,o,u)}});var Yt=function(t,n){return n-=t=+t,function(e){return t+n*e}},Ht=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zt=new RegExp(Ht.source,"g");var Pt,jt,Zt,Xt,Ot=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?At(n):("number"===r?Yt:"string"===r?(e=X(n))?(n=e,Ft):function(t,n){var e,r,i,a=Ht.lastIndex=zt.lastIndex=0,o=-1,u=[],c=[];for(t+="",n+="";(e=Ht.exec(t))&&(r=zt.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:Yt(e,r)})),a=zt.lastIndex;return a<n.length&&(i=n.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}:n instanceof X?Ft:n instanceof Date?function(t,n){var e=new Date;return n-=t=+t,function(r){return e.setTime(t+n*r),e}}:Array.isArray(n)?function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(e=0;e<i;++e)a[e]=Ot(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<i;++e)o[e]=a[e](t);return o}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Ot(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}:Yt)(t,n)},qt=function(t,n){return n-=t=+t,function(e){return Math.round(t+n*e)}},Gt=180/Math.PI,It={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Vt=function(t,n,e,r,i,a){var o,u,c;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,c/=u),t*r<n*e&&(t=-t,n=-n,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(n,t)*Gt,skewX:Math.atan(c)*Gt,scaleX:o,scaleY:u}};function Wt(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var u=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,u){if(t!==i||r!==a){var c=o.push("translate(",null,n,null,e);u.push({i:c-4,x:Yt(t,i)},{i:c-2,x:Yt(r,a)})}else(i||a)&&o.push("translate("+i+n+a+e)}(a.translateX,a.translateY,o.translateX,o.translateY,u,c),function(t,n,e,a){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),a.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Yt(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(a.rotate,o.rotate,u,c),function(t,n,e,a){t!==n?a.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Yt(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(a.skewX,o.skewX,u,c),function(t,n,e,r,a,o){if(t!==e||n!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:Yt(t,e)},{i:u-2,x:Yt(n,r)})}else 1===e&&1===r||a.push(i(a)+"scale("+e+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var n,e=-1,r=c.length;++e<r;)u[(n=c[e]).i]=n.x(t);return u.join("")}}}Wt(function(t){return"none"===t?It:(Pt||(Pt=document.createElement("DIV"),jt=document.documentElement,Zt=document.defaultView),Pt.style.transform=t,t=Zt.getComputedStyle(jt.appendChild(Pt),null).getPropertyValue("transform"),jt.removeChild(Pt),t=t.slice(7,-1).split(","),Vt(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Wt(function(t){return null==t?It:(Xt||(Xt=document.createElementNS("http://www.w3.org/2000/svg","g")),Xt.setAttribute("transform",t),(t=Xt.transform.baseVal.consolidate())?(t=t.matrix,Vt(t.a,t.b,t.c,t.d,t.e,t.f)):It)},", ",")",")"),Math.SQRT2;function Rt(t){return function(n,e){var r=t((n=B(n)).h,(e=B(e)).h),i=Et(n.s,e.s),a=Et(n.l,e.l),o=Et(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=a(t),n.opacity=o(t),n+""}}}Rt(Ut),Rt(Et);function Bt(t){return function(n,e){var r=t((n=pt(n)).h,(e=pt(e)).h),i=Et(n.c,e.c),a=Et(n.l,e.l),o=Et(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=a(t),n.opacity=o(t),n+""}}}Bt(Ut),Bt(Et);function Qt(t){return function n(e){function r(n,r){var i=t((n=Tt(n)).h,(r=Tt(r)).h),a=Et(n.s,r.s),o=Et(n.l,r.l),u=Et(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=a(t),n.l=o(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}Qt(Ut),Qt(Et);var _t=function(t){return function(){return t}},Jt=function(t){return+t},Kt=[0,1];function tn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:_t(n)}function nn(t,n,e,r){var i=t[0],a=t[1],o=n[0],u=n[1];return a<i?(i=e(a,i),o=r(u,o)):(i=e(i,a),o=r(o,u)),function(t){return o(i(t))}}function en(t,n,e,r){var i=Math.min(t.length,n.length)-1,a=new Array(i),o=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<i;)a[u]=e(t[u],t[u+1]),o[u]=r(n[u],n[u+1]);return function(n){var e=l(t,n,1,i)-1;return o[e](a[e](n))}}function rn(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function an(t,n){var e,r,i,a=Kt,o=Kt,u=Ot,c=!1;function l(){return e=Math.min(a.length,o.length)>2?en:nn,r=i=null,s}function s(n){return(r||(r=e(a,o,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,u)))(+n)}return s.invert=function(t){return(i||(i=e(o,a,tn,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},s.domain=function(t){return arguments.length?(a=S.call(t,Jt),l()):a.slice()},s.range=function(t){return arguments.length?(o=T.call(t),l()):o.slice()},s.rangeRound=function(t){return o=T.call(t),u=qt,l()},s.clamp=function(t){return arguments.length?(c=!!t,l()):c},s.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}var on=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},un=function(t){return(t=on(Math.abs(t)))?t[1]:NaN},cn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ln(t){return new sn(t)}function sn(t){if(!(n=cn.exec(t)))throw new Error("invalid format: "+t);var n;this.fill=n[1]||" ",this.align=n[2]||">",this.sign=n[3]||"-",this.symbol=n[4]||"",this.zero=!!n[5],this.width=n[6]&&+n[6],this.comma=!!n[7],this.precision=n[8]&&+n[8].slice(1),this.trim=!!n[9],this.type=n[10]||""}ln.prototype=sn.prototype,sn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var fn,hn,gn,dn,pn=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t},mn=function(t,n){var e=on(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},yn={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return mn(100*t,n)},r:mn,s:function(t,n){var e=on(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(fn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+on(t,Math.max(0,n+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},bn=function(t){return t},vn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Mn=function(t){var n=t.grouping&&t.thousands?function(t,n){return function(e,r){for(var i=e.length,a=[],o=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(n)}}(t.grouping,t.thousands):bn,e=t.currency,r=t.decimal,i=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):bn,a=t.percent||"%";function o(t){var o=(t=ln(t)).fill,u=t.align,c=t.sign,l=t.symbol,s=t.zero,f=t.width,h=t.comma,g=t.precision,d=t.trim,p=t.type;"n"===p?(h=!0,p="g"):yn[p]||(null==g&&(g=12),d=!0,p="g"),(s||"0"===o&&"="===u)&&(s=!0,o="0",u="=");var m="$"===l?e[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",y="$"===l?e[1]:/[%p]/.test(p)?a:"",b=yn[p],v=/[defgprs%]/.test(p);function M(t){var e,a,l,M=m,w=y;if("c"===p)w=b(t)+w,t="";else{var x=(t=+t)<0;if(t=b(Math.abs(t),g),d&&(t=pn(t)),x&&0==+t&&(x=!1),M=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+M,w=("s"===p?vn[8+fn/3]:"")+w+(x&&"("===c?")":""),v)for(e=-1,a=t.length;++e<a;)if(48>(l=t.charCodeAt(e))||l>57){w=(46===l?r+t.slice(e+1):t.slice(e))+w,t=t.slice(0,e);break}}h&&!s&&(t=n(t,1/0));var C=M.length+t.length+w.length,S=C<f?new Array(f-C+1).join(o):"";switch(h&&s&&(t=n(S+t,S.length?f-w.length:1/0),S=""),u){case"<":t=M+t+w+S;break;case"=":t=M+S+t+w;break;case"^":t=S.slice(0,C=S.length>>1)+M+t+w+S.slice(C);break;default:t=S+M+t+w}return i(t)}return g=null==g?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:o,formatPrefix:function(t,n){var e=o(((t=ln(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(un(n)/3))),i=Math.pow(10,-r),a=vn[8+r/3];return function(t){return e(i*t)+a}}}};!function(t){hn=Mn(t),gn=hn.format,dn=hn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var wn=function(t,n,e){var r,i=t[0],a=t[t.length-1],o=m(i,a,null==n?10:n);switch((e=ln(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(un(n)/3)))-un(Math.abs(t)))}(o,u))||(e.precision=r),dn(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,un(n)-un(t))+1}(o,Math.max(Math.abs(i),Math.abs(a))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-un(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return gn(e)};function xn(t){var n=t.domain;return t.ticks=function(t){var e=n();return d(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return wn(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),a=0,o=i.length-1,u=i[a],c=i[o];return c<u&&(r=u,u=c,c=r,r=a,a=o,o=r),(r=p(u,c,e))>0?r=p(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=p(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(c/r)*r,n(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(c*r)/r,n(i)),t},t}var Cn=new Date,Sn=new Date;function Tn(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,a){var o,u=[];if(e=i.ceil(e),a=null==a?1:Math.floor(a),!(e<r&&a>0))return u;do{u.push(o=new Date(+e)),n(e,a),t(e)}while(o<e&&e<r);return u},i.filter=function(e){return Tn(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return Cn.setTime(+n),Sn.setTime(+r),t(Cn),t(Sn),Math.floor(e(Cn,Sn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Ln=Tn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});Ln.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Tn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):Ln:null};Ln.range;var kn=6e4,An=6048e5,Nn=Tn(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),Un=(Nn.range,Tn(function(t){t.setTime(Math.floor(t/kn)*kn)},function(t,n){t.setTime(+t+n*kn)},function(t,n){return(n-t)/kn},function(t){return t.getMinutes()})),Dn=(Un.range,Tn(function(t){var n=t.getTimezoneOffset()*kn%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()})),En=(Dn.range,Tn(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*kn)/864e5},function(t){return t.getDate()-1})),Fn=En;En.range;function $n(t){return Tn(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*kn)/An})}var Yn=$n(0),Hn=$n(1),zn=$n(2),Pn=$n(3),jn=$n(4),Zn=$n(5),Xn=$n(6),On=(Yn.range,Hn.range,zn.range,Pn.range,jn.range,Zn.range,Xn.range,Tn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),qn=(On.range,Tn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));qn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Tn(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var Gn=qn,In=(qn.range,Tn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*kn)},function(t,n){return(n-t)/kn},function(t){return t.getUTCMinutes()})),Vn=(In.range,Tn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()})),Wn=(Vn.range,Tn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1})),Rn=Wn;Wn.range;function Bn(t){return Tn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/An})}var Qn=Bn(0),_n=Bn(1),Jn=Bn(2),Kn=Bn(3),te=Bn(4),ne=Bn(5),ee=Bn(6),re=(Qn.range,_n.range,Jn.range,Kn.range,te.range,ne.range,ee.range,Tn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),ie=(re.range,Tn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));ie.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Tn(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var ae=ie;ie.range;function oe(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ue(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ce(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var le,se,fe,he={"-":"",_:" ",0:"0"},ge=/^\s*\d+/,de=/^%/,pe=/[\\^$*+?|[\]().{}]/g;function me(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<e?new Array(e-a+1).join(n)+i:i)}function ye(t){return t.replace(pe,"\\$&")}function be(t){return new RegExp("^(?:"+t.map(ye).join("|")+")","i")}function ve(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Me(t,n,e){var r=ge.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function we(t,n,e){var r=ge.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function xe(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Ce(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Se(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Te(t,n,e){var r=ge.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Le(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function ke(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ae(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Ne(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Ue(t,n,e){var r=ge.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function De(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Ee(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Fe(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function $e(t,n,e){var r=ge.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Ye(t,n,e){var r=ge.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function He(t,n,e){var r=de.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function ze(t,n,e){var r=ge.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Pe(t,n,e){var r=ge.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function je(t,n){return me(t.getDate(),n,2)}function Ze(t,n){return me(t.getHours(),n,2)}function Xe(t,n){return me(t.getHours()%12||12,n,2)}function Oe(t,n){return me(1+Fn.count(Gn(t),t),n,3)}function qe(t,n){return me(t.getMilliseconds(),n,3)}function Ge(t,n){return qe(t,n)+"000"}function Ie(t,n){return me(t.getMonth()+1,n,2)}function Ve(t,n){return me(t.getMinutes(),n,2)}function We(t,n){return me(t.getSeconds(),n,2)}function Re(t){var n=t.getDay();return 0===n?7:n}function Be(t,n){return me(Yn.count(Gn(t),t),n,2)}function Qe(t,n){var e=t.getDay();return t=e>=4||0===e?jn(t):jn.ceil(t),me(jn.count(Gn(t),t)+(4===Gn(t).getDay()),n,2)}function _e(t){return t.getDay()}function Je(t,n){return me(Hn.count(Gn(t),t),n,2)}function Ke(t,n){return me(t.getFullYear()%100,n,2)}function tr(t,n){return me(t.getFullYear()%1e4,n,4)}function nr(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+me(n/60|0,"0",2)+me(n%60,"0",2)}function er(t,n){return me(t.getUTCDate(),n,2)}function rr(t,n){return me(t.getUTCHours(),n,2)}function ir(t,n){return me(t.getUTCHours()%12||12,n,2)}function ar(t,n){return me(1+Rn.count(ae(t),t),n,3)}function or(t,n){return me(t.getUTCMilliseconds(),n,3)}function ur(t,n){return or(t,n)+"000"}function cr(t,n){return me(t.getUTCMonth()+1,n,2)}function lr(t,n){return me(t.getUTCMinutes(),n,2)}function sr(t,n){return me(t.getUTCSeconds(),n,2)}function fr(t){var n=t.getUTCDay();return 0===n?7:n}function hr(t,n){return me(Qn.count(ae(t),t),n,2)}function gr(t,n){var e=t.getUTCDay();return t=e>=4||0===e?te(t):te.ceil(t),me(te.count(ae(t),t)+(4===ae(t).getUTCDay()),n,2)}function dr(t){return t.getUTCDay()}function pr(t,n){return me(_n.count(ae(t),t),n,2)}function mr(t,n){return me(t.getUTCFullYear()%100,n,2)}function yr(t,n){return me(t.getUTCFullYear()%1e4,n,4)}function br(){return"+0000"}function vr(){return"%"}function Mr(t){return+t}function wr(t){return Math.floor(+t/1e3)}!function(t){le=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,u=t.months,c=t.shortMonths,l=be(i),s=ve(i),f=be(a),h=ve(a),g=be(o),d=ve(o),p=be(u),m=ve(u),y=be(c),b=ve(c),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:je,e:je,f:Ge,H:Ze,I:Xe,j:Oe,L:qe,m:Ie,M:Ve,p:function(t){return i[+(t.getHours()>=12)]},Q:Mr,s:wr,S:We,u:Re,U:Be,V:Qe,w:_e,W:Je,x:null,X:null,y:Ke,Y:tr,Z:nr,"%":vr},M={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:er,e:er,f:ur,H:rr,I:ir,j:ar,L:or,m:cr,M:lr,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Mr,s:wr,S:sr,u:fr,U:hr,V:gr,w:dr,W:pr,x:null,X:null,y:mr,Y:yr,Z:br,"%":vr},w={a:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.w=d[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=b[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=p.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return S(t,n,e,r)},d:Ne,e:Ne,f:Ye,H:De,I:De,j:Ue,L:$e,m:Ae,M:Ee,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},Q:ze,s:Pe,S:Fe,u:we,U:xe,V:Ce,w:Me,W:Se,x:function(t,n,r){return S(t,e,n,r)},X:function(t,n,e){return S(t,r,n,e)},y:Le,Y:Te,Z:ke,"%":He};function x(t,n){return function(e){var r,i,a,o=[],u=-1,c=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u<l;)37===t.charCodeAt(u)&&(o.push(t.slice(c,u)),null!=(i=he[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(a=n[r])&&(r=a(e,i)),o.push(r),c=u+1);return o.push(t.slice(c,u)),o.join("")}}function C(t,n){return function(e){var r,i,a=ce(1900);if(S(a,t,e+="",0)!=e.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=ue(ce(a.y))).getUTCDay())>4||0===i?_n.ceil(r):_n(r),r=Rn.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=n(ce(a.y))).getDay())>4||0===i?Hn.ceil(r):Hn(r),r=Fn.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?ue(ce(a.y)).getUTCDay():n(ce(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ue(a)):n(a)}}function S(t,n,e,r){for(var i,a,o=0,u=n.length,c=e.length;o<u;){if(r>=c)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(a=w[i in he?n.charAt(o++):i])||(r=a(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return v.x=x(e,v),v.X=x(r,v),v.c=x(n,v),M.x=x(e,M),M.X=x(r,M),M.c=x(n,M),{format:function(t){var n=x(t+="",v);return n.toString=function(){return t},n},parse:function(t){var n=C(t+="",oe);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",M);return n.toString=function(){return t},n},utcParse:function(t){var n=C(t,ue);return n.toString=function(){return t},n}}}(t),le.format,le.parse,se=le.utcFormat,fe=le.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||se("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||fe("%Y-%m-%dT%H:%M:%S.%LZ");e.d(n,"londonSquared",function(){return Cr});const xr=r.reduce((t,n)=>(t[n.code]=n,t),{}),Cr=()=>{const t={width:800,height:700,blockSize:100,data:void 0,dataLookup:void 0,dataColumns:void 0,accessor:t=>t.code,classPrefix:"ls",classDict:{borough:"borough",background:"background",interaction:"interaction",masked:"masked",foreground:"foreground"},gridGapProportion:.05,parent:null};function n(){let n=t.width,e=8;t.width/t.height>=8/7&&(n=t.height,e=7),t.gridScale=function t(){var n=an(tn,Yt);return n.copy=function(){return rn(n,t())},xn(n)}().range([0,n]).domain([0,e]),t.blockSize=t.gridScale(1*(1-t.gridGapProportion)),t.gridGap=t.gridScale(t.gridGapProportion),t.scaleFactor=t.blockSize/100}t.className=(n=>`${t.classPrefix}-${t.classDict[n]}`);const e=e=>{n();const a=r.map(n=>t.dataLookup[n.code]);return e.selectAll("defs").data([!0]).enter().append("defs").selectAll("clipPath").data(a).enter().append("clipPath").attr("id",n=>`${t.classPrefix}-mask-${n.code}`).attr("fill","#000"),e.selectAll("clipPath").filter(t=>t.irregular).append("path").attr("class",t.className("background")).attr("transform",n=>`scale(${t.scaleFactor})`).attr("d",t=>i[t.code]),e.selectAll("clipPath").filter(t=>!t.irregular).append("rect").attr("width",t.blockSize).attr("height",t.blockSize),e.selectAll(`.${t.className("borough")}`).data(a).enter().append("g").attr("transform",n=>`translate(${t.gridScale(n.x)}, ${t.gridScale(n.y)})`).attr("class",t.className("borough"),!0).call(n=>{n.append("rect").attr("class",t.className("interaction")).attr("fill-opacity",0).attr("x",t.gridGap/2).attr("y",t.gridGap/2).attr("width",t.blockSize).attr("height",t.blockSize),n.filter(t=>!t.irregular).append("rect").attr("class",t.className("background")).attr("x",t.gridGap/2).attr("y",t.gridGap/2).attr("width",t.blockSize).attr("height",t.blockSize),n.filter(t=>t.irregular).append("path").attr("class",t.className("background")).attr("transform",`translate(${t.gridGap/2}, ${t.gridGap/2}) scale(${t.scaleFactor})`).attr("d",t=>i[t.code]),n.append("g").attr("transform",`translate(${t.gridGap/2},${t.gridGap/2})`).attr("class",t.className("masked")).attr("clip-path",n=>`url(#${t.classPrefix}-mask-${n.code})`),n.append("g").attr("transform",`translate(${t.gridGap/2},${t.gridGap/2})`).attr("class",t.className("foreground"))}),t.parent=e,e};return e.data=function(n,e){return void 0!=n?(t.data=n,t.dataColumns=t.data.columns,t.accessor=e||t.accessor,t.dataLookup=t.data.reduce((n,e)=>{const r=t.accessor(e),i=xr[r];return n[r]=Object.assign({data:e},i),n},{}),this):t.parent.selectAll(`.${t.className("borough")}`).data()},e.width=function(e){return t.width=e,n(),this},e.height=function(e){return t.height=e,n(),this},e.centroid=function(){return[t.blockSize/2,t.blockSize/2]},e.blockSize=function(){return t.blockSize},e.masked=function(){return t.parent.selectAll(`.${t.className("masked")}`)},e.foreground=function(){return t.parent.selectAll(`.${t.className("foreground")}`)},e.background=function(){return t.parent.selectAll(`.${t.className("background")}`)},e.interaction=function(){return t.parent.selectAll(`.${t.className("interaction")}`)},e.blockSize=(()=>t.blockSize),e}}]); | ||
var atf=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n);var r=[{LSAbbreviation:"enf",x:"4",y:"0",irregular:!1,code:"E09000010",name:"Enfield"},{LSAbbreviation:"hrw",x:"2",y:"1",irregular:!1,code:"E09000015",name:"Harrow"},{LSAbbreviation:"brn",x:"3",y:"1",irregular:!1,code:"E09000003",name:"Barnet"},{LSAbbreviation:"hgy",x:"4",y:"1",irregular:!1,code:"E09000014",name:"Haringey"},{LSAbbreviation:"wth",x:"5",y:"1",irregular:!1,code:"E09000031",name:"Waltham Forest"},{LSAbbreviation:"hdn",x:"0",y:"2",irregular:!1,code:"E09000017",name:"Hillingdon"},{LSAbbreviation:"elg",x:"1",y:"2",irregular:!1,code:"E09000009",name:"Ealing"},{LSAbbreviation:"brt",x:"2",y:"2",irregular:!1,code:"E09000005",name:"Brent"},{LSAbbreviation:"cmd",x:"3",y:"2",irregular:!1,code:"E09000007",name:"Camden"},{LSAbbreviation:"isl",x:"4",y:"2",irregular:!1,code:"E09000019",name:"Islington"},{LSAbbreviation:"hck",x:"5",y:"2",irregular:!1,code:"E09000012",name:"Hackney"},{LSAbbreviation:"rdb",x:"6",y:"2",irregular:!1,code:"E09000026",name:"Redbridge"},{LSAbbreviation:"hvg",x:"7",y:"2",irregular:!1,code:"E09000016",name:"Havering"},{LSAbbreviation:"hns",x:"0",y:"3",irregular:!1,code:"E09000018",name:"Hounslow"},{LSAbbreviation:"hms",x:"1",y:"3",irregular:!1,code:"E09000013",name:"Hammersmith and Fulham"},{LSAbbreviation:"kns",x:"2",y:"3",irregular:!1,code:"E09000020",name:"Kensington and Chelsea"},{LSAbbreviation:"wst",x:"3",y:"3",irregular:!0,code:"E09000033",name:"Westminster"},{LSAbbreviation:"cty",x:"4",y:"3",irregular:!0,code:"E09000001",name:"City of London"},{LSAbbreviation:"tow",x:"5",y:"3",irregular:!0,code:"E09000030",name:"Tower Hamlets"},{LSAbbreviation:"nwm",x:"6",y:"3",irregular:!0,code:"E09000025",name:"Newham"},{LSAbbreviation:"bar",x:"7",y:"3",irregular:!0,code:"E09000002",name:"Barking and Dagenham"},{LSAbbreviation:"rch",x:"1",y:"4",irregular:!1,code:"E09000027",name:"Richmond upon Thames"},{LSAbbreviation:"wns",x:"2",y:"4",irregular:!1,code:"E09000032",name:"Wandsworth"},{LSAbbreviation:"lam",x:"3",y:"4",irregular:!0,code:"E09000022",name:"Lambeth"},{LSAbbreviation:"swr",x:"4",y:"4",irregular:!0,code:"E09000028",name:"Southwark"},{LSAbbreviation:"lsh",x:"5",y:"4",irregular:!0,code:"E09000023",name:"Lewisham"},{LSAbbreviation:"grn",x:"6",y:"4",irregular:!0,code:"E09000011",name:"Greenwich"},{LSAbbreviation:"bxl",x:"7",y:"4",irregular:!0,code:"E09000004",name:"Bexley"},{LSAbbreviation:"kng",x:"2",y:"5",irregular:!1,code:"E09000021",name:"Kingston upon Thames"},{LSAbbreviation:"mrt",x:"3",y:"5",irregular:!1,code:"E09000024",name:"Merton"},{LSAbbreviation:"crd",x:"4",y:"5",irregular:!1,code:"E09000008",name:"Croydon"},{LSAbbreviation:"brm",x:"5",y:"5",irregular:!1,code:"E09000006",name:"Bromley"},{LSAbbreviation:"stn",x:"3",y:"6",irregular:!1,code:"E09000029",name:"Sutton"}],i={E09000002:"M-0.001,0.454L-0.001,96.803C2.349,97.196 4.504,97.685 6.755,98.078C12.337,99.255 17.625,100.333 24.48,100.333L99.878,100.333L99.878,0.454L-0.001,0.454Z",E09000025:"M2.351,95.967C10.379,101.46 20.464,108.322 40.148,108.322C52.484,108.322 61.494,104.791 70.209,101.36C77.747,98.418 84.799,95.573 93.022,95.573C95.471,95.573 97.724,95.672 99.878,95.868L99.878,0.453L-0.001,0.453L-0.001,94.399C0.783,94.889 1.568,95.476 2.351,95.967Z",E09000030:"M15.177,102.84C19.584,101.075 23.012,97.736 26.242,94.401C31.04,89.59 36.523,84.093 45.434,84.879C57.969,86.056 59.142,102.253 59.731,110.108C60.026,114.036 61.396,117.177 63.747,119.14C65.802,120.907 68.643,121.593 72.069,121.201C77.846,120.61 81.077,118.353 80.295,108.734L80.295,108.145C79.805,102.254 78.827,89.984 90.674,88.806C94.1,88.51 97.038,89.002 99.879,90.181L99.879,0.453L0,0.453L0,106.177C5.385,105.789 10.281,104.806 15.177,102.84Z",E09000028:"M86.858,6.489L86.66,6.489L4.114,-5.152C2.645,-5.249 1.37,-5.443 -0.001,-5.54L-0.001,100.332L99.879,100.332L99.879,7.364C95.767,7.266 91.459,6.976 86.858,6.489Z",E09000004:"M5.09,-1.564C3.427,-1.954 1.762,-2.249 -0.001,-2.543L-0.001,100.332L99.878,100.332L99.878,0.883L24.48,0.883C16.842,0.883 10.867,-0.39 5.09,-1.564Z",E09000022:"M92.044,-9.535C81.763,-9.535 74.123,-5.248 65.997,-0.764C57.381,4.011 48.469,8.981 36.228,8.981C26.925,8.981 20.953,6.35 15.176,3.817C10.574,1.77 6.168,-0.18 0,-0.667L0,100.332L99.879,100.332L99.879,-9.048C97.429,-9.341 94.882,-9.535 92.044,-9.535Z",E09000033:"M18.31,105.809C23.596,108.163 28.592,110.322 36.229,110.322C46.412,110.322 54.15,106.005 62.178,101.494C70.795,96.687 79.705,91.684 92.045,91.684C94.884,91.684 97.43,91.88 99.878,92.174L99.878,0.454L-0.001,0.454L-0.001,100.61C7.832,101.101 13.12,103.456 18.31,105.809Z",E09000023:"M91.554,-11.583C88.421,-11.291 87.441,-9.637 88.127,-0.788L88.224,-0.205C89.204,12.341 84.111,19.342 72.949,20.509C72.068,20.606 71.285,20.606 70.405,20.606C65.9,20.606 61.885,19.244 58.752,16.619C54.835,13.313 52.387,8.256 51.994,2.324C51.408,-6.235 50.037,-14.986 44.75,-15.473C39.755,-15.959 36.72,-13.138 31.823,-8.276C28.2,-4.677 24.088,-0.592 18.114,1.838C12.239,4.172 6.365,5.339 -0.001,5.726L-0.001,100.331L99.878,100.331L99.878,-9.444C97.135,-10.998 94.49,-11.874 91.554,-11.583Z",E09000001:"M4.895,93.665L5.09,93.665L87.639,105.439C92.044,105.929 96.059,106.224 99.878,106.322L99.878,0.451L-0.001,0.451L-0.001,93.175C1.566,93.372 3.131,93.566 4.895,93.665Z",E09000011:"M93.024,-4.538C86.269,-4.538 80.199,-2.092 73.147,0.649C64.235,4.171 54.051,8.184 40.148,8.184C19.782,8.184 8.323,1.432 0,-4.149L0,100.335L99.879,100.335L99.879,-4.246C97.726,-4.44 95.472,-4.538 93.024,-4.538Z"},a=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},o=function(t){return 1===t.length&&(t=function(t){return function(n,e){return a(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}};var u=o(a),c=u.right,l=(u.left,c);var s=Array.prototype,f=(s.slice,s.map,Math.sqrt(50)),h=Math.sqrt(10),g=Math.sqrt(2),d=function(t,n,e){var r,i,a,o,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(o=p(t,n,e))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),n=Math.floor(n/o),a=new Array(i=Math.ceil(n-t+1));++u<i;)a[u]=(t+u)*o;else for(t=Math.floor(t*o),n=Math.ceil(n*o),a=new Array(i=Math.ceil(t-n+1));++u<i;)a[u]=(t-u)/o;return r&&a.reverse(),a};function p(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=f?10:a>=h?5:a>=g?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=f?10:a>=h?5:a>=g?2:1)}function m(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=f?i*=10:a>=h?i*=5:a>=g&&(i*=2),n<t?-i:i}function y(){}function b(t,n){var e=new y;if(t instanceof y)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==n)for(;++i<a;)e.set(i,t[i]);else for(;++i<a;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}y.prototype=b.prototype={constructor:y,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var v=b;function M(){}var w=v.prototype;function x(t,n){var e=new M;if(t instanceof M)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}M.prototype=x.prototype={constructor:M,has:w.has,add:function(t){return this["$"+(t+="")]=t,this},remove:w.remove,clear:w.clear,values:w.keys,size:w.size,empty:w.empty,each:w.each};var C=Array.prototype,S=C.map,T=C.slice;var L=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function k(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function A(){}var N="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",D="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",E=/^#([0-9a-f]{3})$/,F=/^#([0-9a-f]{6})$/,$=new RegExp("^rgb\\("+[N,N,N]+"\\)$"),Y=new RegExp("^rgb\\("+[D,D,D]+"\\)$"),H=new RegExp("^rgba\\("+[N,N,N,U]+"\\)$"),z=new RegExp("^rgba\\("+[D,D,D,U]+"\\)$"),P=new RegExp("^hsl\\("+[U,D,D]+"\\)$"),j=new RegExp("^hsla\\("+[U,D,D,U]+"\\)$"),Z={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function X(t){var n;return t=(t+"").trim().toLowerCase(),(n=E.exec(t))?new V((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=F.exec(t))?O(parseInt(n[1],16)):(n=$.exec(t))?new V(n[1],n[2],n[3],1):(n=Y.exec(t))?new V(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=H.exec(t))?q(n[1],n[2],n[3],n[4]):(n=z.exec(t))?q(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=P.exec(t))?R(n[1],n[2]/100,n[3]/100,1):(n=j.exec(t))?R(n[1],n[2]/100,n[3]/100,n[4]):Z.hasOwnProperty(t)?O(Z[t]):"transparent"===t?new V(NaN,NaN,NaN,0):null}function O(t){return new V(t>>16&255,t>>8&255,255&t,1)}function q(t,n,e,r){return r<=0&&(t=n=e=NaN),new V(t,n,e,r)}function G(t){return t instanceof A||(t=X(t)),t?new V((t=t.rgb()).r,t.g,t.b,t.opacity):new V}function I(t,n,e,r){return 1===arguments.length?G(t):new V(t,n,e,null==r?1:r)}function V(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function W(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function R(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Q(t,n,e,r)}function B(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Q)return new Q(t.h,t.s,t.l,t.opacity);if(t instanceof A||(t=X(t)),!t)return new Q;if(t instanceof Q)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=n===a?(e-r)/u+6*(e<r):e===a?(r-n)/u+2:(n-e)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new Q(o,u,c,t.opacity)}(t):new Q(t,n,e,null==r?1:r)}function Q(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function _(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}L(A,X,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),L(V,I,k(A,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+W(this.r)+W(this.g)+W(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),L(Q,B,k(A,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Q(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Q(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new V(_(t>=240?t-240:t+120,i,r),_(t,i,r),_(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var J=Math.PI/180,K=180/Math.PI,tt=.96422,nt=1,et=.82521,rt=4/29,it=6/29,at=3*it*it,ot=it*it*it;function ut(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof mt){if(isNaN(t.h))return new lt(t.l,0,0,t.opacity);var n=t.h*J;return new lt(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof V||(t=G(t));var e,r,i=gt(t.r),a=gt(t.g),o=gt(t.b),u=st((.2225045*i+.7168786*a+.0606169*o)/nt);return i===a&&a===o?e=r=u:(e=st((.4360747*i+.3850649*a+.1430804*o)/tt),r=st((.0139322*i+.0971045*a+.7141733*o)/et)),new lt(116*u-16,500*(e-u),200*(u-r),t.opacity)}function ct(t,n,e,r){return 1===arguments.length?ut(t):new lt(t,n,e,null==r?1:r)}function lt(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function st(t){return t>ot?Math.pow(t,1/3):t/at+rt}function ft(t){return t>it?t*t*t:at*(t-rt)}function ht(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function gt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dt(t){if(t instanceof mt)return new mt(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=ut(t)),0===t.a&&0===t.b)return new mt(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*K;return new mt(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function pt(t,n,e,r){return 1===arguments.length?dt(t):new mt(t,n,e,null==r?1:r)}function mt(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}L(lt,ct,k(A,{brighter:function(t){return new lt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new lt(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new V(ht(3.1338561*(n=tt*ft(n))-1.6168667*(t=nt*ft(t))-.4906146*(e=et*ft(e))),ht(-.9787684*n+1.9161415*t+.033454*e),ht(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),L(mt,pt,k(A,{brighter:function(t){return new mt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new mt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return ut(this).rgb()}}));var yt=-.14861,bt=1.78277,vt=-.29227,Mt=-.90649,wt=1.97294,xt=wt*Mt,Ct=wt*bt,St=bt*vt-Mt*yt;function Tt(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Lt)return new Lt(t.h,t.s,t.l,t.opacity);t instanceof V||(t=G(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(St*r+xt*n-Ct*e)/(St+xt-Ct),a=r-i,o=(wt*(e-i)-vt*a)/Mt,u=Math.sqrt(o*o+a*a)/(wt*i*(1-i)),c=u?Math.atan2(o,a)*K-120:NaN;return new Lt(c<0?c+360:c,u,i,t.opacity)}(t):new Lt(t,n,e,null==r?1:r)}function Lt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function kt(t,n,e,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*n+(4-6*a+3*o)*e+(1+3*t+3*a-3*o)*r+o*i)/6}L(Lt,Tt,k(A,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Lt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Lt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*J,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new V(255*(n+e*(yt*r+bt*i)),255*(n+e*(vt*r+Mt*i)),255*(n+e*(wt*r)),this.opacity)}}));var At=function(t){return function(){return t}};function Nt(t,n){return function(e){return t+e*n}}function Ut(t,n){var e=n-t;return e?Nt(t,e>180||e<-180?e-360*Math.round(e/360):e):At(isNaN(t)?n:t)}function Dt(t){return 1==(t=+t)?Et:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):At(isNaN(n)?e:n)}}function Et(t,n){var e=n-t;return e?Nt(t,e):At(isNaN(t)?n:t)}var Ft=function t(n){var e=Dt(n);function r(t,n){var r=e((t=I(t)).r,(n=I(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),o=Et(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function $t(t){return function(n){var e,r,i=n.length,a=new Array(i),o=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=I(n[e]),a[e]=r.r||0,o[e]=r.g||0,u[e]=r.b||0;return a=t(a),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=u(t),r+""}}}$t(function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r<n-1?t[r+2]:2*a-i;return kt((e-r/n)*n,o,i,a,u)}}),$t(function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],a=t[r%n],o=t[(r+1)%n],u=t[(r+2)%n];return kt((e-r/n)*n,i,a,o,u)}});var Yt=function(t,n){return n-=t=+t,function(e){return t+n*e}},Ht=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zt=new RegExp(Ht.source,"g");var Pt,jt,Zt,Xt,Ot=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?At(n):("number"===r?Yt:"string"===r?(e=X(n))?(n=e,Ft):function(t,n){var e,r,i,a=Ht.lastIndex=zt.lastIndex=0,o=-1,u=[],c=[];for(t+="",n+="";(e=Ht.exec(t))&&(r=zt.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:Yt(e,r)})),a=zt.lastIndex;return a<n.length&&(i=n.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}:n instanceof X?Ft:n instanceof Date?function(t,n){var e=new Date;return n-=t=+t,function(r){return e.setTime(t+n*r),e}}:Array.isArray(n)?function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(e=0;e<i;++e)a[e]=Ot(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<i;++e)o[e]=a[e](t);return o}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Ot(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}:Yt)(t,n)},qt=function(t,n){return n-=t=+t,function(e){return Math.round(t+n*e)}},Gt=180/Math.PI,It={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Vt=function(t,n,e,r,i,a){var o,u,c;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,c/=u),t*r<n*e&&(t=-t,n=-n,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(n,t)*Gt,skewX:Math.atan(c)*Gt,scaleX:o,scaleY:u}};function Wt(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var u=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,u){if(t!==i||r!==a){var c=o.push("translate(",null,n,null,e);u.push({i:c-4,x:Yt(t,i)},{i:c-2,x:Yt(r,a)})}else(i||a)&&o.push("translate("+i+n+a+e)}(a.translateX,a.translateY,o.translateX,o.translateY,u,c),function(t,n,e,a){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),a.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Yt(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(a.rotate,o.rotate,u,c),function(t,n,e,a){t!==n?a.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Yt(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(a.skewX,o.skewX,u,c),function(t,n,e,r,a,o){if(t!==e||n!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:Yt(t,e)},{i:u-2,x:Yt(n,r)})}else 1===e&&1===r||a.push(i(a)+"scale("+e+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var n,e=-1,r=c.length;++e<r;)u[(n=c[e]).i]=n.x(t);return u.join("")}}}Wt(function(t){return"none"===t?It:(Pt||(Pt=document.createElement("DIV"),jt=document.documentElement,Zt=document.defaultView),Pt.style.transform=t,t=Zt.getComputedStyle(jt.appendChild(Pt),null).getPropertyValue("transform"),jt.removeChild(Pt),t=t.slice(7,-1).split(","),Vt(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Wt(function(t){return null==t?It:(Xt||(Xt=document.createElementNS("http://www.w3.org/2000/svg","g")),Xt.setAttribute("transform",t),(t=Xt.transform.baseVal.consolidate())?(t=t.matrix,Vt(t.a,t.b,t.c,t.d,t.e,t.f)):It)},", ",")",")"),Math.SQRT2;function Rt(t){return function(n,e){var r=t((n=B(n)).h,(e=B(e)).h),i=Et(n.s,e.s),a=Et(n.l,e.l),o=Et(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=a(t),n.opacity=o(t),n+""}}}Rt(Ut),Rt(Et);function Bt(t){return function(n,e){var r=t((n=pt(n)).h,(e=pt(e)).h),i=Et(n.c,e.c),a=Et(n.l,e.l),o=Et(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=a(t),n.opacity=o(t),n+""}}}Bt(Ut),Bt(Et);function Qt(t){return function n(e){function r(n,r){var i=t((n=Tt(n)).h,(r=Tt(r)).h),a=Et(n.s,r.s),o=Et(n.l,r.l),u=Et(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=a(t),n.l=o(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}Qt(Ut),Qt(Et);var _t=function(t){return function(){return t}},Jt=function(t){return+t},Kt=[0,1];function tn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:_t(n)}function nn(t,n,e,r){var i=t[0],a=t[1],o=n[0],u=n[1];return a<i?(i=e(a,i),o=r(u,o)):(i=e(i,a),o=r(o,u)),function(t){return o(i(t))}}function en(t,n,e,r){var i=Math.min(t.length,n.length)-1,a=new Array(i),o=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<i;)a[u]=e(t[u],t[u+1]),o[u]=r(n[u],n[u+1]);return function(n){var e=l(t,n,1,i)-1;return o[e](a[e](n))}}function rn(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function an(t,n){var e,r,i,a=Kt,o=Kt,u=Ot,c=!1;function l(){return e=Math.min(a.length,o.length)>2?en:nn,r=i=null,s}function s(n){return(r||(r=e(a,o,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,u)))(+n)}return s.invert=function(t){return(i||(i=e(o,a,tn,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},s.domain=function(t){return arguments.length?(a=S.call(t,Jt),l()):a.slice()},s.range=function(t){return arguments.length?(o=T.call(t),l()):o.slice()},s.rangeRound=function(t){return o=T.call(t),u=qt,l()},s.clamp=function(t){return arguments.length?(c=!!t,l()):c},s.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}var on=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},un=function(t){return(t=on(Math.abs(t)))?t[1]:NaN},cn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ln(t){return new sn(t)}function sn(t){if(!(n=cn.exec(t)))throw new Error("invalid format: "+t);var n;this.fill=n[1]||" ",this.align=n[2]||">",this.sign=n[3]||"-",this.symbol=n[4]||"",this.zero=!!n[5],this.width=n[6]&&+n[6],this.comma=!!n[7],this.precision=n[8]&&+n[8].slice(1),this.trim=!!n[9],this.type=n[10]||""}ln.prototype=sn.prototype,sn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var fn,hn,gn,dn,pn=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t},mn=function(t,n){var e=on(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},yn={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return mn(100*t,n)},r:mn,s:function(t,n){var e=on(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(fn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+on(t,Math.max(0,n+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},bn=function(t){return t},vn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Mn=function(t){var n=t.grouping&&t.thousands?function(t,n){return function(e,r){for(var i=e.length,a=[],o=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(n)}}(t.grouping,t.thousands):bn,e=t.currency,r=t.decimal,i=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):bn,a=t.percent||"%";function o(t){var o=(t=ln(t)).fill,u=t.align,c=t.sign,l=t.symbol,s=t.zero,f=t.width,h=t.comma,g=t.precision,d=t.trim,p=t.type;"n"===p?(h=!0,p="g"):yn[p]||(null==g&&(g=12),d=!0,p="g"),(s||"0"===o&&"="===u)&&(s=!0,o="0",u="=");var m="$"===l?e[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",y="$"===l?e[1]:/[%p]/.test(p)?a:"",b=yn[p],v=/[defgprs%]/.test(p);function M(t){var e,a,l,M=m,w=y;if("c"===p)w=b(t)+w,t="";else{var x=(t=+t)<0;if(t=b(Math.abs(t),g),d&&(t=pn(t)),x&&0==+t&&(x=!1),M=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+M,w=("s"===p?vn[8+fn/3]:"")+w+(x&&"("===c?")":""),v)for(e=-1,a=t.length;++e<a;)if(48>(l=t.charCodeAt(e))||l>57){w=(46===l?r+t.slice(e+1):t.slice(e))+w,t=t.slice(0,e);break}}h&&!s&&(t=n(t,1/0));var C=M.length+t.length+w.length,S=C<f?new Array(f-C+1).join(o):"";switch(h&&s&&(t=n(S+t,S.length?f-w.length:1/0),S=""),u){case"<":t=M+t+w+S;break;case"=":t=M+S+t+w;break;case"^":t=S.slice(0,C=S.length>>1)+M+t+w+S.slice(C);break;default:t=S+M+t+w}return i(t)}return g=null==g?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:o,formatPrefix:function(t,n){var e=o(((t=ln(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(un(n)/3))),i=Math.pow(10,-r),a=vn[8+r/3];return function(t){return e(i*t)+a}}}};!function(t){hn=Mn(t),gn=hn.format,dn=hn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var wn=function(t,n,e){var r,i=t[0],a=t[t.length-1],o=m(i,a,null==n?10:n);switch((e=ln(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(un(n)/3)))-un(Math.abs(t)))}(o,u))||(e.precision=r),dn(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,un(n)-un(t))+1}(o,Math.max(Math.abs(i),Math.abs(a))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-un(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return gn(e)};function xn(t){var n=t.domain;return t.ticks=function(t){var e=n();return d(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return wn(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),a=0,o=i.length-1,u=i[a],c=i[o];return c<u&&(r=u,u=c,c=r,r=a,a=o,o=r),(r=p(u,c,e))>0?r=p(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=p(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(c/r)*r,n(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(c*r)/r,n(i)),t},t}var Cn=new Date,Sn=new Date;function Tn(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,a){var o,u=[];if(e=i.ceil(e),a=null==a?1:Math.floor(a),!(e<r&&a>0))return u;do{u.push(o=new Date(+e)),n(e,a),t(e)}while(o<e&&e<r);return u},i.filter=function(e){return Tn(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return Cn.setTime(+n),Sn.setTime(+r),t(Cn),t(Sn),Math.floor(e(Cn,Sn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Ln=Tn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});Ln.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Tn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):Ln:null};Ln.range;var kn=6e4,An=6048e5,Nn=Tn(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),Un=(Nn.range,Tn(function(t){t.setTime(Math.floor(t/kn)*kn)},function(t,n){t.setTime(+t+n*kn)},function(t,n){return(n-t)/kn},function(t){return t.getMinutes()})),Dn=(Un.range,Tn(function(t){var n=t.getTimezoneOffset()*kn%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()})),En=(Dn.range,Tn(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*kn)/864e5},function(t){return t.getDate()-1})),Fn=En;En.range;function $n(t){return Tn(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*kn)/An})}var Yn=$n(0),Hn=$n(1),zn=$n(2),Pn=$n(3),jn=$n(4),Zn=$n(5),Xn=$n(6),On=(Yn.range,Hn.range,zn.range,Pn.range,jn.range,Zn.range,Xn.range,Tn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),qn=(On.range,Tn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));qn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Tn(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var Gn=qn,In=(qn.range,Tn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*kn)},function(t,n){return(n-t)/kn},function(t){return t.getUTCMinutes()})),Vn=(In.range,Tn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()})),Wn=(Vn.range,Tn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1})),Rn=Wn;Wn.range;function Bn(t){return Tn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/An})}var Qn=Bn(0),_n=Bn(1),Jn=Bn(2),Kn=Bn(3),te=Bn(4),ne=Bn(5),ee=Bn(6),re=(Qn.range,_n.range,Jn.range,Kn.range,te.range,ne.range,ee.range,Tn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),ie=(re.range,Tn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));ie.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Tn(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var ae=ie;ie.range;function oe(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ue(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ce(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var le,se,fe,he={"-":"",_:" ",0:"0"},ge=/^\s*\d+/,de=/^%/,pe=/[\\^$*+?|[\]().{}]/g;function me(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<e?new Array(e-a+1).join(n)+i:i)}function ye(t){return t.replace(pe,"\\$&")}function be(t){return new RegExp("^(?:"+t.map(ye).join("|")+")","i")}function ve(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Me(t,n,e){var r=ge.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function we(t,n,e){var r=ge.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function xe(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Ce(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Se(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Te(t,n,e){var r=ge.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Le(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function ke(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ae(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Ne(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Ue(t,n,e){var r=ge.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function De(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Ee(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Fe(t,n,e){var r=ge.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function $e(t,n,e){var r=ge.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Ye(t,n,e){var r=ge.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function He(t,n,e){var r=de.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function ze(t,n,e){var r=ge.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Pe(t,n,e){var r=ge.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function je(t,n){return me(t.getDate(),n,2)}function Ze(t,n){return me(t.getHours(),n,2)}function Xe(t,n){return me(t.getHours()%12||12,n,2)}function Oe(t,n){return me(1+Fn.count(Gn(t),t),n,3)}function qe(t,n){return me(t.getMilliseconds(),n,3)}function Ge(t,n){return qe(t,n)+"000"}function Ie(t,n){return me(t.getMonth()+1,n,2)}function Ve(t,n){return me(t.getMinutes(),n,2)}function We(t,n){return me(t.getSeconds(),n,2)}function Re(t){var n=t.getDay();return 0===n?7:n}function Be(t,n){return me(Yn.count(Gn(t),t),n,2)}function Qe(t,n){var e=t.getDay();return t=e>=4||0===e?jn(t):jn.ceil(t),me(jn.count(Gn(t),t)+(4===Gn(t).getDay()),n,2)}function _e(t){return t.getDay()}function Je(t,n){return me(Hn.count(Gn(t),t),n,2)}function Ke(t,n){return me(t.getFullYear()%100,n,2)}function tr(t,n){return me(t.getFullYear()%1e4,n,4)}function nr(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+me(n/60|0,"0",2)+me(n%60,"0",2)}function er(t,n){return me(t.getUTCDate(),n,2)}function rr(t,n){return me(t.getUTCHours(),n,2)}function ir(t,n){return me(t.getUTCHours()%12||12,n,2)}function ar(t,n){return me(1+Rn.count(ae(t),t),n,3)}function or(t,n){return me(t.getUTCMilliseconds(),n,3)}function ur(t,n){return or(t,n)+"000"}function cr(t,n){return me(t.getUTCMonth()+1,n,2)}function lr(t,n){return me(t.getUTCMinutes(),n,2)}function sr(t,n){return me(t.getUTCSeconds(),n,2)}function fr(t){var n=t.getUTCDay();return 0===n?7:n}function hr(t,n){return me(Qn.count(ae(t),t),n,2)}function gr(t,n){var e=t.getUTCDay();return t=e>=4||0===e?te(t):te.ceil(t),me(te.count(ae(t),t)+(4===ae(t).getUTCDay()),n,2)}function dr(t){return t.getUTCDay()}function pr(t,n){return me(_n.count(ae(t),t),n,2)}function mr(t,n){return me(t.getUTCFullYear()%100,n,2)}function yr(t,n){return me(t.getUTCFullYear()%1e4,n,4)}function br(){return"+0000"}function vr(){return"%"}function Mr(t){return+t}function wr(t){return Math.floor(+t/1e3)}!function(t){le=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,u=t.months,c=t.shortMonths,l=be(i),s=ve(i),f=be(a),h=ve(a),g=be(o),d=ve(o),p=be(u),m=ve(u),y=be(c),b=ve(c),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:je,e:je,f:Ge,H:Ze,I:Xe,j:Oe,L:qe,m:Ie,M:Ve,p:function(t){return i[+(t.getHours()>=12)]},Q:Mr,s:wr,S:We,u:Re,U:Be,V:Qe,w:_e,W:Je,x:null,X:null,y:Ke,Y:tr,Z:nr,"%":vr},M={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:er,e:er,f:ur,H:rr,I:ir,j:ar,L:or,m:cr,M:lr,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Mr,s:wr,S:sr,u:fr,U:hr,V:gr,w:dr,W:pr,x:null,X:null,y:mr,Y:yr,Z:br,"%":vr},w={a:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.w=d[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=b[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=p.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return S(t,n,e,r)},d:Ne,e:Ne,f:Ye,H:De,I:De,j:Ue,L:$e,m:Ae,M:Ee,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},Q:ze,s:Pe,S:Fe,u:we,U:xe,V:Ce,w:Me,W:Se,x:function(t,n,r){return S(t,e,n,r)},X:function(t,n,e){return S(t,r,n,e)},y:Le,Y:Te,Z:ke,"%":He};function x(t,n){return function(e){var r,i,a,o=[],u=-1,c=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u<l;)37===t.charCodeAt(u)&&(o.push(t.slice(c,u)),null!=(i=he[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(a=n[r])&&(r=a(e,i)),o.push(r),c=u+1);return o.push(t.slice(c,u)),o.join("")}}function C(t,n){return function(e){var r,i,a=ce(1900);if(S(a,t,e+="",0)!=e.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=ue(ce(a.y))).getUTCDay())>4||0===i?_n.ceil(r):_n(r),r=Rn.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=n(ce(a.y))).getDay())>4||0===i?Hn.ceil(r):Hn(r),r=Fn.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?ue(ce(a.y)).getUTCDay():n(ce(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ue(a)):n(a)}}function S(t,n,e,r){for(var i,a,o=0,u=n.length,c=e.length;o<u;){if(r>=c)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(a=w[i in he?n.charAt(o++):i])||(r=a(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return v.x=x(e,v),v.X=x(r,v),v.c=x(n,v),M.x=x(e,M),M.X=x(r,M),M.c=x(n,M),{format:function(t){var n=x(t+="",v);return n.toString=function(){return t},n},parse:function(t){var n=C(t+="",oe);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",M);return n.toString=function(){return t},n},utcParse:function(t){var n=C(t,ue);return n.toString=function(){return t},n}}}(t),le.format,le.parse,se=le.utcFormat,fe=le.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||se("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||fe("%Y-%m-%dT%H:%M:%S.%LZ");e.d(n,"londonSquared",function(){return Cr});const xr=r.reduce((t,n)=>(t[n.code]=n,t),{}),Cr=()=>{const t={width:800,height:700,blockSize:100,data:void 0,dataLookup:void 0,dataColumns:void 0,accessor:t=>t.code,classPrefix:"ls",classDict:{borough:"borough",background:"background",interaction:"interaction",masked:"masked",foreground:"foreground"},gridGapProportion:.05,parent:null};function n(){let n=t.width,e=8;t.width/t.height>=8/7&&(n=t.height,e=7),t.gridScale=function t(){var n=an(tn,Yt);return n.copy=function(){return rn(n,t())},xn(n)}().range([0,n]).domain([0,e]),t.blockSize=t.gridScale(1*(1-t.gridGapProportion)),t.gridGap=t.gridScale(t.gridGapProportion),t.scaleFactor=t.blockSize/100}t.className=(n=>`${t.classPrefix}-${t.classDict[n]}`);const e=e=>{n();const a=r.map(n=>t.dataLookup[n.code]);return e.selectAll("defs").data([!0]).enter().append("defs").selectAll("clipPath").data(a).enter().append("clipPath").attr("id",n=>`${t.classPrefix}-mask-${n.code}`).attr("fill","#000"),e.selectAll("clipPath").filter(t=>t.irregular).append("path").attr("class",t.className("background")).attr("transform",n=>`scale(${t.scaleFactor})`).attr("d",t=>i[t.code]),e.selectAll("clipPath").filter(t=>!t.irregular).append("rect").attr("width",t.blockSize).attr("height",t.blockSize),e.selectAll(`.${t.className("borough")}`).data(a).enter().append("g").attr("transform",n=>`translate(${t.gridScale(n.x)}, ${t.gridScale(n.y)})`).attr("class",t.className("borough"),!0).call(n=>{n.append("rect").attr("class",t.className("interaction")).attr("fill-opacity",0).attr("x",t.gridGap/2).attr("y",t.gridGap/2).attr("width",t.blockSize).attr("height",t.blockSize),n.filter(t=>!t.irregular).append("rect").attr("class",t.className("background")).attr("x",t.gridGap/2).attr("y",t.gridGap/2).attr("width",t.blockSize).attr("height",t.blockSize),n.filter(t=>t.irregular).append("path").attr("class",t.className("background")).attr("transform",`translate(${t.gridGap/2}, ${t.gridGap/2}) scale(${t.scaleFactor})`).attr("d",t=>i[t.code]),n.append("g").attr("transform",`translate(${t.gridGap/2},${t.gridGap/2})`).attr("class",t.className("masked")).attr("clip-path",n=>`url(#${t.classPrefix}-mask-${n.code})`),n.append("g").attr("transform",`translate(${t.gridGap/2},${t.gridGap/2})`).attr("class",t.className("foreground"))}),t.parent=e,e};return e.data=function(n,e){return void 0!=n?(t.data=n,t.dataColumns=t.data.columns,t.accessor=e||t.accessor,t.dataLookup=t.data.reduce((n,e)=>{const r=t.accessor(e),i=xr[r];return n[r]=Object.assign({data:e},i),n},{}),this):t.parent.selectAll(`.${t.className("borough")}`).data()},e.width=function(e){return t.width=e,n(),this},e.height=function(e){return t.height=e,n(),this},e.centroid=function(){return[t.blockSize/2,t.blockSize/2]},e.blockSize=function(){return t.blockSize},e.masked=function(){return t.parent.selectAll(`.${t.className("masked")}`)},e.foreground=function(){return t.parent.selectAll(`.${t.className("foreground")}`)},e.background=function(){return t.parent.selectAll(`.${t.className("background")}`)},e.interaction=function(){return t.parent.selectAll(`.${t.className("interaction")}`)},e.blockSize=(()=>t.blockSize),e};Cr.version="0.1.0"}]); |
{ | ||
"name": "@aftertheflood/londonsquared", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Visualise london brough data in the style of After the Floods London Squared cartograms", | ||
@@ -5,0 +5,0 @@ "keywords": ["d3-module","cartogram","london","visualization"], |
@@ -183,2 +183,4 @@ import layout from './ls-layout'; | ||
londonSquared.version = '0.1.0'; | ||
export { londonSquared as londonSquared }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
59347
214